* gcov-io.c (gcov_open): Deconstify 'mode'.
[official-gcc.git] / gcc / ChangeLog
blobde8a650f26043c70b374f0fbf9f3c172275a946b
1 2016-10-14  Nathan Sidwell  <nathan@acm.org>
3         * gcov-io.c (gcov_open): Deconstify 'mode'.
5 2016-10-14  Martin Liska  <mliska@suse.cz>
7         * fold-const.c (c_getstr): Support of properly \0-terminated
8         string constants.  New argument is added.
9         * fold-const.h: New argument is added.
11 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
14         New function.
15         (aarch64_print_hint_for_core): Likewise.
16         (aarch64_print_hint_for_arch): Likewise.
17         (aarch64_validate_march): Use it.  Fix indentation in type signature.
18         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
19         (aarch64_validate_mtune): Likewise.
20         (aarch64_handle_attr_arch): Likewise.
21         (aarch64_handle_attr_cpu): Likewise.
22         (aarch64_handle_attr_tune): Likewise.
24 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
27         and udivmod_optab.
29 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
31         * config/m68k/m68k.c (m68k_option_override): Check
32         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
33         instead of stack_limit_rtx.
35 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
37         * dwarf2out.c (gen_member_die): Handle inline static data member
38         definitions.
40 2016-10-13  Nathan Sidwell  <nathan@acm.org>
42         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
43         gcov_var.mode.  Remove unnecessary fstat.
45 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
47         PR bootstrap/77962
48         * function.c (thread_prologue_and_epilogue_insns): Call all
49         make_*logue_seq in the same order as traditional.  Call them
50         all a second time if shrink_wrapped_separate.
52 2016-10-13  Marek Polacek  <polacek@redhat.com>
54         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
55         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
56         use -Wno-error.
58 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
60         PR tree-optimization/77937
61         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
62         to infinite when we have a pointer with an increment of -1.
64 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
66         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
67         into ...
68         * memmodel.h: This file.
69         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
70           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
71           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
72           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
73           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
74           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
75           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
76           compare-elim.c, config/aarch64/aarch64-builtins.c,
77           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
78           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
79           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
80           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
81           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
82           config/darwin.c, config/epiphany/epiphany.c,
83           config/epiphany/mode-switch-use.c,
84           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
85           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
86           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
87           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
88           config/m68k/m68k.c, config/mcore/mcore.c,
89           config/microblaze/microblaze.c, config/mmix/mmix.c,
90           config/mn10300/mn10300.c, config/moxie/moxie.c,
91           config/msp430/msp430.c, config/nds32/nds32-cost.c,
92           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
93           config/nds32/nds32-memory-manipulation.c,
94           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
95           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
96           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
97           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
98           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
99           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
100           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
101           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
102           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
103           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
104           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
105           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
106           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
107           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
108           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
109           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
110           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
111           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
112           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
113           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
114           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
115           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
116           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
117           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
118           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
119           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
120           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
121           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
122           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
123           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
124           var-tracking.c, varasm.c: Include memmodel.h.
125         * genattrtab.c (write_header): Include memmodel.h in generated file.
126         * genautomata.c (main): Likewise.
127         * gengtype.c (open_base_files): Likewise.
128         * genopinit.c (main): Likewise.
129         * genconditions.c (write_header): Include memmodel.h earlier in
130         generated file.
131         * genemit.c (main): Likewise.
132         * genoutput.c (output_prologue): Likewise.
133         * genpeep.c (main): Likewise.
134         * genpreds.c (write_insn_preds_c): Likewise.
135         * genrecog.c (write_header): Likewise.
136         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
138 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
140         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
141         for new "compact" param of print_rtx_function.  Check for "cinsn"
142         rather than "insn".
143         * print-rtl-function.c (flag_compact): New decl.
144         (print_rtx_function): Add param "compact" and use it to set
145         flag_compact, adding a description of the effect to the leading
146         comment, and updating the example output.
147         * print-rtl.c (flag_compact): New variable.
148         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
149         mode.
150         (print_rtx_operand_code_i): When printing source locations, wrap
151         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
152         (print_rtx_operand_code_r): Don't print regnos for hard regs and
153         virtuals in compact mode.
154         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
155         apart from in LABEL_REFs.
156         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
157         Don't print basic block ids in compact mode.
158         (print_rtx):  In compact mode, prefix the code of insns with "c",
159         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
160         * print-rtl.h (print_rtx_function): Add "compact" param.
162 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
164         * arm.h (TARGET_VFP): Delete.
165         (TARGET_VFPD32): Remove references to TARGET_VFP.
166         (TARGET_VFP3, TARGET_VFP5): Likewise.
167         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
168         (TARGET_NEON_FP16): Likewise.
169         (TARGET_FMA): Likewise.
170         (TARGET_CRYPTO): Likewise.
171         (TARGET_NEON): Likewise.
172         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
173         (FUNCTION_ARG_REGNO_P): Likewise.
174         * arm.c (arm_option_check_internal): Likewise.
175         (arm_option_override): Likewise.
176         (use_return_insn): Likewise.
177         (arm_function_value_regno_p): Likewise.
178         (arm_apply_result_size): Likewise.
179         (use_vfp_abi): Likewise.
180         (arm_legitimate_address_outer_p): Likewise.
181         (thumb2_legitimate_address_p): Likewise.
182         (arm_legitimate_index_p): Likewise.
183         (thumb2_legitimate_index_p): Likewise.
184         (arm_legitimate_address): Likewise.
185         (arm_get_vfp_saved_size): Likewise.
186         (arm_emit_vfp_multi_reg_pop): Likewise.
187         (arm_get_frame_offsets): Likewise.
188         (arm_save_coproc_regs): Likewise.
189         (arm_hard_regno_mode_ok): Likewise.
190         (arm_expand_epilogue_apcs_frame): Likewise.
191         (arm_expand_epilogue): Likewise.
192         (arm_file_start): Likewise.
193         (arm_conditional_register_usage): Likewise.
194         (arm_validize_comparison): Use vfp_compare_operand directly.
195         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
196         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
197         unsupported usage.
198         (arm_atomic_assign_expand_fenv): Likewise.
199         * arm.md (divsf3): Likewise.
200         (arm_negsi2): Likewise.
201         (absdf2): Likewise.
202         (arm_movdi): Likewise.
203         (arm_movt): Likewise.
204         (cbranchsf4): Change predicate to vfp_compare_operand.
205         (cbranchdf4): Change predicate to vfp_compare_operand.
206         (cstorehf4): Change predicate to vfp_compare_operand.
207         (cstoresf4): Change predicate to vfp_compare_operand.
208         (cstoredf4): Change predicate to vfp_compare_operand.
209         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
210         (movhi_insn_arch4, movhi_bytes): Likewise.
211         * constraints.md (Dt): Likewise.
212         (Dp): Likewise.
213         * iterators.md (SDF): Likewise.
214         * predicates.md (arm_float_compare_operand): Delete.
215         (const_double_vcvt_power_of_two_reciprocal): Remove references to
216         TARGET_VFP.
217         (const_double_vcvt_power_of_two): Likewise.
218         * thumb2.md thumb2_movsi_insn): Likewise.
219         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
220         (movhf_vfp): Likewise.
221         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
222         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
223         (movsf_vfp, thumb2_movsf_vfp): Likewise.
224         (movdf_vfp, thumb2_movdf_vfp): Likewise.
225         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
226         (subsf3_vfp, divsf3_vfp): Likewise.
227         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
228         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
229         (mulsf3negsfsubsf_vfp): Likewise.
230         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
231         (floatunssisf2, sqrtsf2_vfp): Likewise.
232         (movcc_vfp): Likewise.
233         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
234         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
235         (push_multi_vfp): Likewise.
236         (set_fpscr, get_fpscr): Likewise.
237         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
239 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
241         * arm.h (TARGET_VFP): Unconditionally define to 1.
242         (arm_fpu_desc): Remove 'model' field.
243         (TARGET_FPU_MODEL): Delete.
244         * arm.c (all_fpus): Don't initialize the model field.
245         (arm_can_inline_p): Don't check the FPU model.
246         * arm-fpus.def: Remove redundant model field from all FPU
247         descriptions.
249 2016-10-13  Richard Biener  <rguenther@suse.de>
251         PR middle-end/77826
252         * genmatch.c (struct capture): Add value_match member.
253         (commutate): Preserve value_match.
254         (lower_opt_convert): Likewise.
255         (lower_cond): Likewise.
256         (replace_id): Likewise.
257         (struct dt_operand): Add value_match member.
258         (decision_tree::cmp_node): Compare it.
259         (decision_tree::insert_operand): Honor it when finding and
260         when appending a DT_MATCH.
261         (dt_operand::gen_match_op): Generate a type check after
262         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
263         (parser::get_internal_capture_id): New helper.
264         (parser::finish_match_operand): New function lowering @@<id>.
265         (parser::parse_capture): Parse @@<id> as value-match.
266         (parser::parse_expr): Use get_internal_capture_id.
267         (parser::parse_simplify): Call finish_match_operand.
268         (walk_captures): New helper.
269         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
270         of operand_equal_p.
271         ((X /[ex] A) * A -> X): Likewise.
272         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
273         convert[12] and value-matching.
274         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
275         ((X | Y) | Y -> X | Y): Likewise.
276         ((X ^ Y) ^ Y -> X): Likewise.
277         (A - (A & B) -> ~B & A): Likewise.
278         ((T)(P + A) - (T)P -> (T) A): Likewise.
279         ((T)P - (T)(P + A) -> -(T) A): Likewise.
280         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
281         * doc/match-and-simplify.texi: Amend capture section.
283 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
285         * config/arc/arc.md (umul_600): Remove predicated variant.
286         (umul64_600): Likewise.
288 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
290         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
292 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
294         * tree-vect-loop.c (loop_niters_no_overflow): New func.
295         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
296         no-overflow information to vect_do_peeling_for_loop_bound and
297         vect_gen_vector_loop_niters.
299 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
301         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
302         iterates 1 time.
304 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
306         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
307         adjust_vec automatically.
308         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
309         param exit_bb to guard_to.
310         (slpeel_checking_verify_cfg_after_peeling):
311         (set_prologue_iterations):
312         (create_lcssa_for_virtual_phi): New func which is factored out from
313         slpeel_tree_peel_loop_to_edge.
314         (slpeel_tree_peel_loop_to_edge):
315         (iv_phi_p): New func.
316         (vect_can_advance_ivs_p): Call iv_phi_p.
317         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
318         new gimple stmts in basic block.
319         (vect_do_peeling_for_loop_bound):
320         (vect_do_peeling_for_alignment):
321         (vect_gen_niters_for_prolog_loop): Rename to...
322         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
323         adjust implementation.
324         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
325         sizetype if necessary.
326         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
327         it to external function.
328         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
329         (vect_gen_vector_loop_niters_mult_vf): New.
330         (slpeel_update_phi_nodes_for_loops): New.
331         (slpeel_update_phi_nodes_for_guard1): Reimplement.
332         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
333         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
334         * tree-vect-loop.c (vect_build_loop_niters): Move to file
335         tree-vect-loop-manip.c
336         (vect_generate_tmps_on_preheader): Delete.
337         (vect_transform_loop): Rename vectorization_factor to vf.  Call
338         vect_do_peeling instead of vect_do_peeling-* functions.
339         * tree-vectorizer.h (vect_do_peeling): New decl.
340         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
341         (vect_do_peeling_for_loop_bound): Delete.
342         (vect_do_peeling_for_alignment): Delete.
344 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
346         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
347         duplicated loop after its preheader and after the original loop.
349 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
351         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
352         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
354 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
356         * tree-vect-loop.c (vectorizable_live_operation): Support handling
357         for live variable outside loop but not in lcssa form.
359 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
361         * cfg.c (reset_original_copy_tables): New func.
362         * cfg.h (reset_original_copy_tables): New decl.
364 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
366         PR c/77946
367         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
368         public_flag.
369         * varasm.c (default_binds_local_p_3): Formatting fix.
371 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
373         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
374         style issue.
375         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
376         Remove useless code.
378 2016-10-13  Martin Liska  <mliska@suse.cz>
380         PR tree-optimization/77943
381         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
382         a different EH landing pads.
384 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
386         PR target/77957
387         * hooks.h (hook_tree_void_null): Declare.
388         * hooks.c (hook_tree_void_null): New function.
389         * langhooks.c (lhd_return_null_tree_v): Remove.
390         * langhooks-def.h (lhd_return_null_tree_v): Remove.
391         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
392         set y to const0_rtx.
393         * function.c (stack_protect_epilogue): Likewise.
394         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
395         if TARGET_THREAD_SSP_OFFSET is defined.
396         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
397         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
398         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
399         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
400         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
401         (ix86_stack_protect_guard): New function.
403 2016-10-13  Richard Biener  <rguenther@suse.de>
405         * dwarf2out.c (tree_add_const_value_attribute): Do not try
406         rtl_for_decl_init during early phase.
407         (gen_variable_die): Do not create locations during early phase.
408         (gen_label_die): Likewise.
409         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
410         twice.
412 2016-10-12  Richard Biener  <rguenther@suse.de>
414         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
415         try_add_new_range and made to eturn new range.
416         (evrp_dom_walker::before_dom_children): Push op1 value range before
417         pushing op0 value range.
419 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
421         PR tree-optimization/77937
422         * gimple-ssa-strength-reduction.c (analyze_increments): Use
423         POINTER_TYPE_P on the candidate type to determine whether
424         candidates in this chain require pointer arithmetic.
426 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
428         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
429         correction if the type is smaller than a word.
430         (visium_select_cc_mode): Add ... fall through ... comment.
432 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
434         * config/rs6000/rs6000.c (machine_function): Add new fields
435         gpr_is_wrapped_separately and lr_is_wrapped_separately.
436         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
437         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
438         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
439         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
440         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
441         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
442         (rs6000_get_separate_components): New function.
443         (rs6000_components_for_bb): New function.
444         (rs6000_disqualify_components): New function.
445         (rs6000_emit_prologue_components): New function.
446         (rs6000_emit_epilogue_components): New function.
447         (rs6000_set_handled_components): New function.
448         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
449         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
450         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
451         (rs6000_emit_epilogue): Don't emit GPR restores if
452         gpr_is_wrapped_separately for that register.  Don't make a
453         REG_CFA_RESTORE note for registers we did not restore, either.
455 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
457         * function.c (thread_prologue_and_epilogue_insns): Call
458         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
459         if it has possibly changed.  Compute the split_prologue_seq and
460         epilogue_seq later, too.
461         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
462         (dump_components): New function.
463         (struct sw): New struct.
464         (SW): New function.
465         (init_separate_shrink_wrap): New function.
466         (fini_separate_shrink_wrap): New function.
467         (place_prologue_for_one_component): New function.
468         (spread_components): New function.
469         (disqualify_problematic_components): New function.
470         (emit_common_heads_for_components): New function.
471         (emit_common_tails_for_components): New function.
472         (insert_prologue_epilogue_for_components): New function.
473         (try_shrink_wrapping_separate): New function.
474         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
476 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
478         * regrename.c (build_def_use): Invalidate chains that have a
479         REG_CFA_RESTORE on some instruction.
481 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
483         * dce.c (delete_unmarked_insns): Don't delete instructions with
484         a REG_CFA_RESTORE note.
486 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
488         * common.opt (-fshrink-wrap-separate): New flag.
489         * doc/invoke.texi: Document it.
490         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
491         * doc/tm.texi: Regenerate.
492         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
493         * target.def (shrink_wrap): New hook vector.
494         (get_separate_components, components_for_bb, disqualify_components,
495         emit_prologue_components, emit_epilogue_components,
496         set_handled_components): New hooks.
498 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
500         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
501         vector return by reference only if -Wpsabi.
502         (rs6000_pass_by_reference): Similarly, for argument passing.
504 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
506         * function-tests.c: Include "print-rtl.h".
507         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
508         function, and verify what is dumped.
509         * print-rtl-function.c (print_edge): New function.
510         (begin_any_block): New function.
511         (end_any_block): New function.
512         (can_have_basic_block_p): New function.
513         (print_rtx_function): Track the basic blocks of insns in the
514         chain, wrapping those that are within blocks within "(block)"
515         directives.  Remove the "(cfg)" directive.
517 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
519         * selftest.c (selftest::read_file): New function.
520         (selftest::test_read_file): New function.
521         (selftest::selftest_c_tests): Call test_read_file.
522         * selftest.h (selftest::read_file): New decl.
524 2016-10-12  Richard Biener  <rguenther@suse.de>
526         PR debug/77947
527         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
528         function context.
530 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
532         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
534         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
535         dwarf2out_assembly_start.
537         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
539         * Makefile.in (SELFTEST_FLAGS): New variable.
540         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
542         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
543         early_finish hook.
545 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
547         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
548         dumped in RTL dumps.
550 2016-10-12  Martin Liska  <mliska@suse.cz>
552         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
553         (gimple_fold_builtin_memory_op): Use the function.
554         (gimple_fold_builtin_strchr): Likewise.
555         (gimple_fold_builtin_strcat): Likewise.
556         (gimple_build): Likewise.
558 2016-10-12  Nathan Sidwell  <nathan@acm.org>
560         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
562 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
564         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
565         equivalent 32-bit constant (modulo 2**32) when that yields
566         smaller instructions.
567         (size_of_int_loc_descriptor): Update accordingly.
569 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
571         * dwarf2out.c (dwarf2out_early_global_decl): For nested
572         functions, call dwarf2out_decl on the parent function first.
574 2016-10-12  Richard Biener  <rguenther@suse.de>
576         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
577         on the conversion.
579 2016-10-12  Richard Biener  <rguenther@suse.de>
581         * tree-ssa-propagate.c
582         (substitute_and_fold_dom_walker::before_dom_children): Do not
583         ignore ASSERT_EXPRs but only preserve them.
584         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
585         that have been propagated into.
586         (vrp_finalize): Enable DCE for substitute_and_fold.
588 2016-10-12  Richard Biener  <rguenther@suse.de>
590         PR tree-optimization/77920
591         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
592         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
593         (simplify_abs_using_ranges): Likewise.
594         (simplify_conversion_using_ranges): Likewise.
595         (simplify_stmt_using_ranges): Adjust.
597 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
599         PR tree-optimization/77929
600         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
601         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
603 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
605         PR target/77934
606         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
607         needs a base register for arg 1.
609 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
611         * common.opt (Wimplicit-fallthrough) Turn into alias to
612         -Wimplicit-fallthrough=3.  Remove EnabledBy.
613         (Wimplicit-fallthrough=): New option.
614         * gimplify.c (warn_implicit_fallthrough_r): Use
615         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
616         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
617         to -Wimplicit-fallthrough=3.
618         (-Wimplicit-fallthrough=): Document.
620 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
622         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
623         and GEU in DImode if TARGET_SUBXC.
624         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
625         (seqdi<W:mode>_zero_subxc): Delete.
626         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
627         (neg_seqdi<W:mode>_zero_vis3): Delete.
628         (plus_seqdi<W:mode>_zero): Likewise.
629         (minus_seqdi<W:mode>_zero): Likewise.
630         (plus_plus_sltu<W:mode>): Accept only register.
631         (addx<W:mode>): Likewise.
632         (plus_sltu<W:mode>_vis3): Likewise.
633         (plus_plus_sltu<W:mode>_vis3): Likewise.
634         (neg_sgeu<W:mode>_vis3): Delete.
635         (minus_sgeu<W:mode>_vis3): Likewise.
636         (addxc<W:mode>): Accept only registers.
637         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
638         (minus_neg_sltu<W:mode>_subxc): Accept only register.
639         (neg_plus_sltu<W:mode>_subxc): Likewise.
640         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
641         (minus_minus_sltu<W:mode>_subxc): Accept only register.
642         (sgeu<W:mode>_insn_subxc): Delete.
643         (plus_sgeu<W:mode>_subxc): Likewise.
644         (subxc<W:mode>): Accept only register.
645         (scc splitter): Split always GEU again.
647 2016-10-11  Jeff Law  <law@redhat.com>
649         PR tree-optimization/77424
650         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
651         dead conditionals.  Assert that all e->aux fields are NULL.
653 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
655         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
656         operand-printing "switch" statement into...
657         (print_rtx_operand_code_0): ...this new function, ...
658         (print_rtx_operand_code_e): ...this new function, ...
659         (print_rtx_operand_codes_E_and_V): ...this new function, ...
660         (print_rtx_operand_code_i): ...this new function, ...
661         (print_rtx_operand_code_r): ...this new function, ...
662         (print_rtx_operand_code_u): ...this new function, ...
663         (print_rtx_operand): ...and this new function.
665 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
667         * config/alpha/alpha-passes.def: New file.
668         * config/alpha/t-alpha: New file.
669         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
670         (make_pass_handle_trap_shadows): New prototype.
671         (make_pass_align_insns): Ditto.
672         * config/alpha/alpha.c (alpha_option_override): Don't register
673         passes here.
674         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
676 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
678         PR target/77924
679         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
680         distinct __ibm128 IBM extended double type if long doubles are
681         128-bits and the default format for long double is IEEE 128-bit.
683 2016-10-11  Richard Biener  <rguenther@suse.de>
685         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
686         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
687         (verify_die): New function.
688         (dwarf2out_finish): Call it.
689         (output_line_info): Handle case of -gsplit-dwarf without
690         DWARF2_ASM_LINE_DEBUG_INFO.
692 2016-10-11  Richard Biener  <rguenther@suse.de>
694         PR debug/77931
695         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
696         sub-chains of BLOCK_VARS and gimple_bind_vars.
698 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
700         * config/i386/znver1.md : Fix imov/imovx load type reservations.
702 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
704         * config/sparc/sparc.opt (msubxc): New option.
705         * doc/invoke.texi (SPARC options): Document it and tidy up.
706         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
707         * doc/tm.texi: Regenerate.
708         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
709         (CCNZ): ...this.
710         (CCX_NOOV): Rename into...
711         (CCXNZ): ...this.
712         (CCC): New.
713         (CCXC): Likewise.
714         * config/sparc/predicates.m (fcc_register_operand): Simplify.
715         (fcc0_register_operand): Likewise.
716         (icc_register_operand): New.
717         (icc_or_fcc_register_operand): Simplify.
718         (nz_comparison_operator): New.
719         (c_comparison_operator): Likewise.
720         (noov_compare_operator): Rename into...
721         (icc_comparison_operator): ...this.  Use above predicates.
722         (noov_compare64_operator): Rename into...
723         (v9_comparison_operator): ...this and tidy up.
724         (fcc_comparison_operator): New.
725         (icc_or_fcc_comparison_operator): Likewise.
726         (v9_register_compare_operator): Rename info...
727         (v9_register_comparison_operator): ...this.
728         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
729         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
730         for Niagara-7.
731         (sparc_fixed_condition_code_regs): New function.
732         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
733         renaming and add support for CCC/CCXC.
734         (output_cbranch): Likewise.
735         (sparc_print_operand): Likewise.
736         (gen_v9_scc): Remove obsolete assertion.
737         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
738         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
739         (output_cbcond): Remove bogus handling of CC modes.
740         (sparc_register_move_cost): Return 100 for NO_REGS.
741         * config/sparc/sparc.md (W): New mode iterator.
742         (length): Adjust for noov_compare64_operator renaming.
743         (cmpsi_sne): New instruction.
744         (cmpdi_sne): Likewise.
745         (seqdi_special): Delete.
746         (seqdi_special): Likewise.
747         (snesi<P:mode>_special): Likewise.
748         (snedi_special): Likewise.
749         (snedi_special_vis3): Likewise.
750         (snesi patterns): Use W iterator.
751         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
752         (sltu patterns): Likewise.
753         (sgeu patterns): Likewise.
754         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
755         (normal_branch): Use icc_comparison_operator predicate.
756         (inverted_branch): Likewise.
757         (cbcond_sp32): Use comparison_operator predicate.
758         (cbcond_sp64): Likewise.
759         (normal_int_branch_sp64): Adjust for renaming
760         (inverted_int_branch_sp64): Likewise.
761         (mov<I:mode>_cc_reg_sp64): Likewise.
762         (movsf_cc_reg_sp6): Likewise.
763         (movdf_cc_reg_sp64): Likewise.
764         (movtf_cc_reg_hq_sp64): Likewise.
765         (movtf_cc_reg_sp64): Likewise.
766         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
767         (movsf_cc_v9): Likewise.
768         (movdf_cc_v9): Likewise.
769         (movtf_cc_hq_v9): Likewise.
770         (movtf_cc_v9): Likewise.
771         (adddi3): Call gen_adddi3_sp32.
772         (adddi3_insn_sp32): Rename to...
773         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
774         and use CCCmode for the carry.
775         (addx_extend_sp32): Use CCCmode for the carry.
776         (addx_extend_sp64): Delete.
777         (adddi3_extend_sp32): Use CCCmode for the carry.
778         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
779         (subdi3): Call gen_subdi3_sp32.
780         (subdi3_insn_sp32): Rename to...
781         (subdi3_sp32): ...this and use CCmode for the carry.
782         (subx_extend_sp32): Use CCCmode for the carry.
783         (subx_extend_sp64): Delete.
784         (subdi3_extend_sp32): Use CCmode for the carry.
785         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
786         (negdi3): Call gen_negdi3_sp32.
787         (negdi3_sp32): Use CCCmode for the carry.
788         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
789         (cmp_nz_ashift_1): Use CCNZ mode.
790         (cmp_nz_set_ashift_1): Likewise.
791         (ctrapsi4): Use comparison_operator predicate.
792         (ctrapdi4): Likewise.
793         (trapsi_insn): Use icc_comparison_operator predicate.
794         (trapdi_insn): Likewise.
795         (edge8 patterns): Use CCNZmode.
796         (edge16 patterns): Likewise.
797         (edge32 patterns): Likewise.
799 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
801         * config/visium/visium-modes.def (CC_NOOV): Rename into...
802         (CCNZ): ...this.
803         (CC_BTST): Rename into...
804         (CCC): ...this.
805         * config/visium/predicates.md (real_add_operand): New.
806         (visium_btst_operator): Rename into...
807         (visium_equality_comparison_operator): ...this.
808         (visium_noov_operator): Rename into...
809         (visium_nz_comparison_operator): ...this.
810         (visium_c_comparison_operator): New.
811         (visium_branch_operator): Adjust and deal with all CC modes.
812         * config/visium/visium.c (visium_adjust_cost): Adjust.
813         (visium_split_double_add): Use the *_set_carry patterns.
814         (visium_select_cc_mode): Add support for CCC mode and adjust.
815         (output_cbranch): Adjust and use the carry-based operators for
816         floating-point comparisons.
817         * config/visium/visium.md (flags_subst_arith): Adjust.
818         (addsi3_insn_set_carry): New instruction.
819         (subsi3_insn_set_carry): Likewise.
820         (negsi2_insn_set_carry): Likewise.
821         (btst): Adjust.
822         (cmp<mode>_sne): Likewise.
823         (cbranch<mode>4): Use ordered_comparison_operator.
824         (cbranch<mode>4_insn): Likewise.
825         (cbranchsi4_btst_insn): Adjust.
827 2016-10-11  Tom de Vries  <tom@codesourcery.com>
829         PR middle-end/77558
830         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
831         special-casing.
833 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
835         * tree.h (build_complex_type): Add second parameter with default.
836         * tree.c (build_complex_type): Add NAMED second parameter and adjust
837         recursive call.  Create a TYPE_DECL only if NAMED is true.
838         (build_common_tree_nodes): Pass true in calls to build_complex_type.
840 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
842         New avr-passes.def to register AVR specific passes.
844         * config/avr/avr-passes.def: New file.
845         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
846         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
847         (make_avr_pass_recompute_note): New proto.
848         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
849         (avr_pass_recompute_notes): Use anonymous namespace.
850         (avr_register_passes): Remove function...
851         (avr_option_override): ...and its call.
853 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
855         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
856         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
857         PTF_AVOID_BRANCHLIKELY_SPEED for others.
858         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
859         flags.
860         * config/mips/mips.c (mips_option_override): Enable the branch
861         likely depending on the tune flags and optimization level.
862         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
863         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
864         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
865         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
867 2016-10-11  Richard Biener  <rguenther@suse.de>
869         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
870         (output_function): Properly stream the whole block tree.
871         * lto-streamer-in.c (input_function): Likewise.
873 2016-10-11  Marek Polacek  <polacek@redhat.com>
875         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
877 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
879         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
880         (evrp_dom_walker::before_dom_children): Infer and push new value
881         ranges for x in y < x.
883 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
885         PR target/77586
886         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
887         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
888         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
889         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
890         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
891         (IA64_NO_LIBGCC_TFMODE): Likewise.
893 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
895         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
896           copying.
898 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
900         * config.gcc: Add aarch64-*-freebsd* support.
901         * config.host: Likewise.
902         * config/aarch64/aarch64-freebsd.h: New file.
903         * config/aarch64/t-aarch64-freebsd: Ditto.
905 2016-10-10  Jeff Law  <law@redhat.com>
907         PR tree-optimization/71947
908         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
909         B with A within a single statement.
911 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
913         PR tree-optimization/77824
914         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
915         zero cost for copies.
916         (find_candidates_dom_walker::before_dom_children): Replace
917         MODIFY_EXPR with SSA_NAME.
918         (replace_mult_candidate): Likewise.
919         (replace_profitable_candidates): Likewise.
921 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
923         * config/s390/s390.h: Wrap more macros args in brackets and fix
925 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
927         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
929 2016-10-10  Andreas Schwab  <schwab@suse.de>
931         PR target/77738
932         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
933         pseudo is not DImode.
935 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
937         * common/config/arc/arc-common.c (arc_option_optimization_table):
938         Remove compact casesi option.
939         * config/arc/arc.c (arc_override_options): Use compact casesi
940         option only for pre-ARCv2 cores.
941         * doc/invoke.texi (mcompact-casesi): Update text.
943 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
945         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
946         Add macro to say we can efficiently handle overlapping unaligned
947         loads.
948         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
949         poor code for processors older than p8.
951 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
953         * gen-pass-instances.awk: Remove GNUism.
955 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
957         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
958         NULL of (*ipcp_transformations)][node->uid].
960 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
962         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
963         (MALLOC_ABI_ALIGNMENT): Define.
965 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
967         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
968         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
969         VAR_OR_FUNCTION_DECL_P macros.
970         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
971         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
972         chkp_find_bounds_1): Likewise.
973         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
974         * hsa-gen.c (get_symbol_for_decl): Likewise.
975         * cgraphunit.c (check_global_declaration, analyze_functions,
976         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
977         Likewise.
978         * gimple-fold.c (can_refer_decl_in_current_unit_p,
979         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
980         Likewise.
981         * tree.c (set_decl_section_name, copy_node_stat,
982         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
983         merge_dllimport_decl_attributes, handle_dll_attribute,
984         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
985         verify_type): Likewise.
986         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
987         find_explicit_erroneous_behavior): Likewise.
988         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
989         * ipa.c (process_references): Likewise.
990         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
991         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
992         notice_global_symbol, assemble_variable, mark_decl_referenced,
993         build_constant_desc, output_constant_def_contents, do_assemble_alias,
994         make_decl_one_only, default_section_type_flags,
995         categorize_decl_for_section, default_encode_section_info): Likewise.
996         * trans-mem.c (requires_barrier): Likewise.
997         * gimple-expr.c (mark_addressable): Likewise.
998         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
999         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1000         expand_debug_expr): Likewise.
1001         * tree-dump.c (dequeue_and_dump): Likewise.
1002         * ubsan.c (instrument_bool_enum_load): Likewise.
1003         * tree-pretty-print.c (print_declaration): Likewise.
1004         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1005         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1006         * asan.c (asan_protect_global, instrument_derefs): Likewise.
1007         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1008         pass_build_ssa::execute): Likewise.
1009         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1010         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1011         Likewise.
1012         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1013         Likewise.
1014         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1015         can_be_nonlocal, remap_decls, copy_debug_stmt,
1016         initialize_inlined_parameters, add_local_variables,
1017         reset_debug_binding, replace_locals_op): Likewise.
1018         * dse.c (can_escape): Likewise.
1019         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1020         Likewise.
1021         * tree-diagnostic.c (default_tree_printer): Likewise.
1022         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1023         unpack_ts_decl_with_vis_value_fields,
1024         lto_input_ts_decl_common_tree_pointers): Likewise.
1025         * builtins.c (builtin_save_expr, fold_builtin_expect,
1026         readonly_data_expr): Likewise.
1027         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1028         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1029         Likewise.
1030         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1031         * gimplify.c (force_constant_size, gimplify_bind_expr,
1032         gimplify_decl_expr, gimplify_var_or_parm_decl,
1033         gimplify_compound_lval, gimplify_init_constructor,
1034         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1035         gimplify_type_sizes): Likewise.
1036         * cgraphbuild.c (record_reference, record_type_list, mark_address,
1037         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1038         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1039         remove_unused_locals): Likewise.
1040         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1041         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1042         * function.c (instantiate_expr, instantiate_decls_1,
1043         setjmp_vars_warning, add_local_decl): Likewise.
1044         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1045         Likewise.
1046         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1047         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1048         optimize_va_list_gpr_fpr_size): Likewise.
1049         * tree-nrv.c (pass_nrv::execute): Likewise.
1050         * tsan.c (instrument_expr): Likewise.
1051         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1052         * vtable-verify.c (verify_bb_vtables): Likewise.
1053         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1054         get_ref_base_and_extent): Likewise.
1055         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1056         Likewise.
1057         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1058         analyze_all_variable_accesses): Likewise.
1059         * tree-nested.c (get_nonlocal_debug_decl,
1060         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1061         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1062         get_local_debug_decl, convert_local_omp_clauses,
1063         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1064         Likewise.
1065         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1066         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1067         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1068         dbxout_symbol, dbxout_common_check): Likewise.
1069         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1070         string_constant): Likewise.
1071         * hsa.c (hsa_get_declaration_name): Likewise.
1072         * passes.c (rest_of_decl_compilation): Likewise.
1073         * tree-ssanames.c (make_ssa_name_fn): Likewise.
1074         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1075         pack_ts_decl_with_vis_value_fields,
1076         write_ts_decl_common_tree_pointers): Likewise.
1077         * stor-layout.c (place_field): Likewise.
1078         * symtab.c (symtab_node::maybe_create_reference,
1079         symtab_node::verify_base, symtab_node::make_decl_local,
1080         symtab_node::copy_visibility_from,
1081         symtab_node::can_increase_alignment_p): Likewise.
1082         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1083         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1084         fortran_common, add_location_or_const_value_attribute,
1085         add_scalar_info, add_linkage_name, set_block_abstract_flags,
1086         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1087         optimize_one_addr_into_implicit_ptr,
1088         optimize_location_into_implicit_ptr): Likewise.
1089         * gimple-low.c (record_vars_into): Likewise.
1090         * ipa-visibility.c (update_vtable_references): Likewise.
1091         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1092         Likewise.
1093         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1094         DFS::DFS_write_tree_body, write_symbol): Likewise.
1095         * langhooks.c (lhd_warn_unused_global_decl,
1096         lhd_set_decl_assembler_name): Likewise.
1097         * attribs.c (decl_attributes): Likewise.
1098         * except.c (output_ttype): Likewise.
1099         * varpool.c (varpool_node::get_create, ctor_for_folding,
1100         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1101         * fold-const.c (fold_unary_loc): Likewise.
1102         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1103         ipa_find_agg_cst_from_init): Likewise.
1104         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1105         expand_omp_target, lower_omp_regimplify_p,
1106         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1107         find_link_var_op): Likewise.
1108         * tree-chrec.c (chrec_contains_symbols): Likewise.
1109         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1110         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1111         execute_fixup_cfg): Likewise.
1113         PR tree-optimization/77901
1114         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1115         if ranges[i].exp is SSA_NAME when looking for >= and only when
1116         ranges[i].exp is NULL or SSA_NAME when looking for the other
1117         comparison.
1119 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1121         * ipa-cp.c (ipcp_alignment_lattice): Remove.
1122         (ipcp_param_lattices): Remove field alignment.
1123         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1124         (set_all_contains_variable): Remove call to
1125         ipcp_alignment_lattice::set_to_bottom.
1126         (initialize_node_lattices): Likewise.
1127         (propagate_alignment_accross_jump_function): Remove.
1128         (propagate_constants_accross_call): Remove call to
1129         propagate_alignment_accross_jump_function.
1130         (ipcp_store_alignment_results): Remove.
1131         (ipcp_driver): Remove call to ipcp_store_alignment_results.
1132         (propagate_bits_accross_jump_function): Handle ancestor jump function.
1133         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1134         pretty-printing of alignment jump function.
1135         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1136         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1137         alignments and remove computing ipa_alignment jump function.
1138         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1139         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1140         (ipa_read_jump_function): Remove reading of ipa_alignment.
1141         (write_ipcp_transformation_info): Remove streaming for alignment
1142         propagation summary.
1143         (read_ipcp_transformation_info): Remove reading of alignment
1144         propagation summary.
1145         (ipcp_update_alignments): Remove.
1146         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1147         type.
1148         (ipcp_transform_function): Remove call to ipcp_update_alignments()
1149         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1150         * ipa-prop.h (ipa_alignment): Remove.
1151         (ipa_jump_func): Remove field alignment.
1152         (ipcp_transformation_summary): Remove field alignments.
1153         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1154         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1155         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1157 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
1159         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1161         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1162         change.
1163         (visium_expand_fp_cstore): Likewise.
1165 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1167         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1168         * diagnostic.c (warning_at_rich_loc_n): New function.
1169         (diagnostic_n_impl_richloc): Likewise.
1170         (diagnostic_n_impl): Move most of the function to
1171         diagnostic_n_impl_richloc and call it.
1173 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1175         * gen-pass-instances.awk: Rewritten.
1176         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1177         $(PASSES_EXTRA) after passes.def to the script.
1178         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1179         * config/i386/i386-passes.def: New file.
1180         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1181         make_pass_stv): Declare.
1182         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1183         false.
1184         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1185         or !TARGET_64BIT.
1186         (pass_stv::clone, pass_stv::set_pass_param): New methods.
1187         (pass_stv::timode_p): New non-static data member.
1188         (ix86_option_override): Don't register passes here.
1190         * doc/invoke.texi: Document accepting Else, fallthrough.
1192         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1193         style changes.
1195         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1196         FALLTHRU comment styles.
1198 2016-10-07  Andrew Pinski  <apinski@cavium.com>
1200         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1201         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1202         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1203         Likewise.
1204         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1205         Likewise.
1206         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1207         Likewise.
1208         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1209         (AARCH64_ARCH): Likewise.
1210         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1211         Likewise.
1212         (AARCH64_CORE): Likewise.
1213         (AARCH64_ARCH): Likewise.
1214         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1215         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1216         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1217         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1218         (AARCH64_ARCH): Likewise.
1219         (AARCH64_CORE): Likewise.
1220         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1221         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1222         (AARCH64_CORE): Likewise.
1223         (AARCH64_ARCH): Likewise.
1225 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1227         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1228         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1229         floating point type infrastructre, and -mfloat128 that enables the
1230         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1231         if -mfloat128-type.  Define __ibm128 to be long double by default.
1232         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1233         the IEEE 128-bit floating point type infrastructure should
1234         automatically be enabled.
1235         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1236         instead of -mfloat128 to enable KFmode.
1237         (rs6000_option_override_internal): Split the option -mfloat128
1238         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
1239         systems, automatically set -mfloat128-type, but don't enable it on
1240         other operating systems.  Move setting the long double size and
1241         IEEE quad support before the IEEE 128-bit floating point changes.
1242         (rs6000_init_builtins): Do not create a unique type for __ibm128
1243         if long double is IBM extended double, instead rely on __ibm128
1244         being defined as 'long double'.  If -mfloat128-type and not
1245         -mfloat128, create the KFmode type with an undocumented __ieee128
1246         keyword.
1247         (rs6000_init_libfuncs): Use -mfloat128-type instead of
1248         -mfloat128 for tests about the types, but keep tests for
1249         -mfloat128 to enable the keyword support.
1250         (rs6000_complex_function_value): Likewise.
1251         (rs6000_scalar_mode_supported_p): Likewise.
1252         (rs6000_floatn_mode): Likewise.
1253         (rs6000_c_mode_for_suffix): Likewise.
1254         (rs6000_opt_masks): Add -mfloat128-type.
1255         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
1256         -mfloat128-type being split from -mfloat128.  Add
1257         -mfloat128-hardware, which was missing.
1258         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
1259         -mfloat128 and -mfloat128-type:
1260         (-mfloat128-type): Likewise.
1261         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
1262         that 64-bit Linux systems with enable -mfloat128-type by default
1263         on VSX systems.
1264         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
1265         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
1266         -mfloat128-type instead of -mfloat128.
1267         (FLOAT128_2REG_P): Likewise.
1268         (MASK_FLOAT128_TYPE): Likewise.
1269         (ALTIVEC_ARG_MAX_RETURN): Likewise.
1270         (RS6000_BTM_FLOAT128): Likewise.
1271         (TARGET_FLOAT128): Poison old identifiers.
1272         (OPTION_MASK_FLOAT128): Likewise.
1273         (MASK_FLOAT128): Likewise.
1274         * config/rs6000/rs6000.md (FP): Likewise.
1275         (FLOAT128): Likewise.
1276         (fix_trunc<mode>di2): Likewise.
1277         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1278         (floatdi<mode>2): Likewise.
1279         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
1280         (neg<mode>2, FLOAT128 iterator): Likewise.
1281         (abs<mode>2, FLOAT128 iterator): Likewise.
1282         (ieee_128bit_negative_zero): Likewise.
1283         (ieee_128bit_vsx_neg<mode>2): Likewise.
1284         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1285         (ieee_128bit_vsx_abs<mode>2): Likewise.
1286         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1287         (ieee_128bit_vsx_nabs<mode>2): Likewise.
1288         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1289         (extendiftf2): Likewise.
1290         (extendifkf2): Likewise.
1291         (extendtfkf2): Likewise.
1292         (trunciftf2): Likewise.
1293         (truncifkf2): Likewise.
1294         (trunckftf2): Likewise.
1295         (trunctfif2): Likewise.
1296         (extendkftf2): Likewise.
1297         (trunctfkf2): Likewise.
1299 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1301         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
1302         before merging in bytes to pass down to real_from_target.
1304 2016-10-07  Richard Biener  <rguenther@suse.de>
1306         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
1307         required hack.
1308         (substitute_and_fold_dom_walker::before_dom_children):
1309         Substitute and fold before pass specific folding to avoid
1310         feeding that with SSA names that will be later released.
1311         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
1312         introduced by folding and visited by evaluate_stmt called during
1313         ccp_fold_stmt.
1314         (likely_value): Likewise.
1315         (evaluate_stmt): Likewise.
1316         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
1317         (simplify_div_or_mod_using_ranges): Likewise.
1318         (simplify_min_or_max_using_ranges): Likewise.
1319         (simplify_abs_using_ranges): Likewise.
1320         (simplify_conversion_using_ranges): Likewise.
1321         (simplify_float_conversion_using_ranges): Likewise.
1322         (simplify_stmt_using_ranges): Likewise.
1324 2016-10-07  Marek Polacek  <polacek@redhat.com>
1326         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
1327         FALLTHROUGH_LABEL_P here...
1328         (warn_implicit_fallthrough_r): ...not here.
1330 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
1332         PR tree-optimization/77880
1333         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
1334         necessary.
1336 2016-10-07  Marek Polacek  <polacek@redhat.com>
1338         PR c++/77803
1339         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
1341 2016-10-07  Richard Biener  <rguenther@suse.de>
1343         * bitmap.h: Document constraints on bitmap modification while
1344         iterating over it.
1346 2016-10-07  Richard Biener  <rguenther@suse.de>
1348         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
1349         * bitmap.h (bmp_iter_set): When advancing to the next element
1350         check that we didn't remove the current one.
1351         (bmp_iter_and): Likewise.
1352         (bmp_iter_and_compl): Likewise.
1353         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
1354         we currently iterate on but keep a one-level queue.
1355         * sched-deps.c (remove_from_deps): Do not clear current bit
1356         but keep a one-level queue.
1358 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1360         PR tree-optimization/77664
1361         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
1362         for the other ranges.
1363         (optimize_range_tests_diff): Fix up formatting.
1364         (optimize_range_tests_var_bound): New function.
1365         (optimize_range_tests): Use it.
1367 2016-10-07  Martin Liska  <mliska@suse.cz>
1369         * coverage.c (build_gcov_exit_decl): Fix priority what
1370         should be really 99.
1372 2016-10-07  Richard Biener  <rguenther@suse.de>
1374         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
1375         vars in gimple_bind_vars but not in BLOCK_VARS.
1377 2016-10-07  Richard Biener  <rguenther@suse.de>
1379         PR tree-optimization/77879
1380         * tree-ssa-structalias.c (handle_const_call): Properly handle
1381         NRV return slots.
1382         (handle_pure_call): Likewise.
1384 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1386         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
1387         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
1388         possible overflow.
1390 2016-10-06  Andrew Pinski  <apinski@cavium.com>
1392         * config/aarch64/aarch64-cores.def: Add a comment before each
1393         set of cores.
1395 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
1397         PR tree-optimization/77862
1398         * tree-vrp.c (add_equivalence): Use get_value_range so that
1399         num_vr_values is checked before accessing vr_values.
1401 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
1403         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1404           POINTER_TYPE_P.
1406 2016-10-05  Jeff Law  <law@redhat.com>
1408         PR tree-optimization/71661
1409         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1410         removal of a forwarder exposes a new natural loop.
1412 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1414         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1415         Introduce ssesuffix variable.
1416         (<mask_codefor><code><mode>3<mask_name>): Ditto.
1417         (*<code><mode>3): Ditto.
1419 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
1421         * postreload.c (reload_cse_simplify): Skip also USE when detecting
1422         noop move.
1424 2016-10-06  Richard Biener  <rguenther@suse.de>
1426         PR tree-optimization/77855
1427         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1428         instead of removing the current item while iterating over the set
1429         which is not safe.
1431 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1432             Eric Botcazou  <ebotcazou@adacore.com>
1434         PR target/77759
1435         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1436         (classify_registers): Don't set it
1437         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1439 2016-10-06  Richard Biener  <rguenther@suse.de>
1441         PR tree-optimization/77839
1442         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1443         lattice transition.
1445 2016-10-06  Martin Liska  <mliska@suse.cz>
1447         * gcc.c: Set -fprofile-update=atomic when profiling is
1448         enabled and -pthread is set.  Warn when one combines
1449         -pthread and -fprofile-update=single for an app using
1450         profiling code.
1452 2016-10-06  Martin Liska  <mliska@suse.cz>
1454         PR bootstrap/77788
1455         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1456         * gimple-ssa-strength-reduction.c (slsr_process_cast):
1457         Initialize a pointer to NULL.
1458         (slsr_process_copy): Likewise.
1459         * input.c (location_get_source_line): Likewise.
1460         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1462 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
1464         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1465         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1466         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1467         * config.gcc: Deleted pcommitintrin.h
1468         * config/i386/pcommitintrin.h: Deleted file.
1469         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1470         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1471         detection.
1472         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1473         __PCOMMIT__.
1474         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1475         (PTA_PCOMMIT): Deleted define.
1476         (ix86_option_override_internal): Deleted handle of option.
1477         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1478         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1479         __builtin_ia32_pcommit): Deleted.
1480         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1481         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1482         (pcommit): Deleted instruction.
1483         * config/i386/i386.opt: Mention -mpcommit deprecation.
1484         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1486 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
1488         PR target/77874
1489         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1490         Remove wrong assert.
1491         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1492         Use <round_constraint> as operand 1 constraint.
1494 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1496         PR sanitizer/66343
1497         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1498         (ubsan_instrument_float_cast): And not here.
1500         PR sanitizer/66343
1501         * ubsan.c (ubsan_ids): New GTY(()) array.
1502         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1503         instead of static local counters.
1505 2016-10-05  Martin Sebor  <msebor@redhat.com>
1507         PR bootstrap/77819
1508         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1509         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1510         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1511         (default_printf_pointer_format): Define function.
1512         * targhooks.c (linux_printf_pointer_format): Define new function.
1513         * targhooks.h (linux_printf_pointer_format): Declare.
1514         (gnu_libc_printf_pointer_format): Remove declaration.
1516 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1518         * fold-const.c (native_encode_real): Fix logic for selecting offset
1519         to write to when BYTES_BIG_ENDIAN.
1521 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
1523         * builtins.c (fold_builtin_strchr): Remove function.
1524         (fold_builtin_strrchr): Likewise.
1525         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1526         * gimple-fold.c (target_char_cst_p): New function.
1527         (gimple_fold_builtin_strchr) Add more foldings.
1528         (gimple_fold_builtin): Add index, strrchr, rindex cases.
1530 2016-10-05  Richard Biener  <rguenther@suse.de>
1532         PR middle-end/77863
1533         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1534         capture ids in c-exprs.
1536 2016-10-05  Richard Biener  <rguenther@suse.de>
1538         PR middle-end/77826
1539         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1540         with types_match for GIMPLE code gen to handle type mismatched
1541         constants properly.
1542         (dt_operand::gen): Adjust.
1543         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1544         and constant A.
1546 2016-10-05  Richard Biener  <rguenther@suse.de>
1548         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1550 2016-10-05  Richard Biener  <rguenther@suse.de>
1552         PR middle-end/77842
1553         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1555 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
1557         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1558         version check to protect only DW_TAG_imported_module generation.
1560 2016-10-05  Richard Biener  <rguenther@suse.de>
1562         PR middle-end/55152
1563         * match.pd (min(a,-a) -> -abs(a)): New pattern.
1565 2016-10-04  Ian Lance Taylor  <iant@golang.org>
1567         * explow.c (allocate_dynamic_stack_space): Call
1568         do_pending_stack_adjust before handling flag_split_stack.
1570 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
1572         * genattrtab.c (make_internal_attr): Supply dummy column number to
1573         file_location ctor.
1574         (main): Likewise.
1575         * genoutput.c (init_insn_for_nothing): Likewise.
1576         * gensupport.c (add_define_attr): Likewise.
1577         * read-md.c (message_at_1): Print column number.
1578         (fatal_with_file_and_line): Likewise.
1579         (rtx_reader::read_char): Track column numbers.
1580         (rtx_reader::unread_char): Likewise.
1581         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1582         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1583         (rtx_reader::handle_file): Initialize m_read_md_colno.
1584         (rtx_reader::get_current_location): Supply column number to
1585         file_location ctor.
1586         * read-md.h (struct file_location): Add field "colno".
1587         (file_location::file_location): Likewise.
1588         (rtx_reader::get_colno): New accessor.
1589         (rtx_reader::m_read_md_colno): New field.
1590         (rtx_reader::m_last_line_colno): New field.
1592 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1594         * doc/extend.texi (Java Exceptions): Remove.
1595         (java_interface): Remove.
1597 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
1599         PR tree-optimization/77808
1600         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1601         and addr are different before copying points-to information.
1603 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1605         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1606         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1607         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1608         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1610 2016-10-04  Richard Biener  <rguenther@suse.de>
1612         PR tree-optimization/77399
1613         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1614         verify the target can convert.
1616 2016-10-04  Richard Biener  <rguenther@suse.de>
1618         PR middle-end/77833
1619         * explow.c (plus_constant): Verify the mode of the constant
1620         pool offset before calling plus_constant.
1622 2016-10-04  Richard Biener  <rguenther@suse.de>
1624         PR middle-end/77407
1625         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1626         type support, mark with :C.
1627         (X / -X -> -1): Mark with :C.
1629 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1631         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1632         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1633         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1634         * doc/tm.texi: Regenerated.
1635         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1636         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1637         * config/darwin.h (JCR_SECTION_NAME): Remove.
1638         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1639         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1640         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1641         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1642         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1643         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1645 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1647         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1648         between "because" and "param" in dump message in call to fprintf.
1650 2016-10-03  Jeff Law  <law@redhat.com>
1652         PR tree-optimization/71550
1653         PR tree-optimization/71403
1654         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1655         (profitable_jump_thread_path): Also return boolean indicating if
1656         the realized path will create an irreducible loop.
1657         Remove loop depth tests from 71403.
1658         (fsm_find_control_statement_thread_paths): Remove loop depth tests
1659         from 71403.  If threading will create an irreducible loop, then
1660         throw away loop iteration and related information.
1662 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
1664         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1665         -Woverloaded-virtual checks for warning options.
1666         * configure: Regenerate.
1668 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1670         PR preprocessor/77699
1671         * input.c (maybe_grow): Don't allocate one byte extra headroom.
1672         (get_next_line): Return false on error.
1673         (read_next_line): Removed, use get_next_line instead.
1674         (read_line_num): Don't copy the line.
1675         (location_get_source_line): Don't use static data.
1676         (selftest::test_reading_source_line): Add more test cases.
1678 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1680         Revert
1681         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1683         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1684         (noce_process_if_block): Use it.
1686 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1688         * doc/invoke.texi: Update -Wint-in-bool-context.
1690 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
1692         * dwarf2out.c (output_fde, output_call_frame_info,
1693         dwarf2out_do_cfi_startproc, set_indirect_string,
1694         gen_internal_sym, output_die, output_line_info): Use
1695         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1696         ASM_GENERATE_INTERNAL_LABEL output.
1698 2016-10-01  Richard Biener  <rguenther@suse.de>
1700         PR middle-end/77798
1701         * genmatch.c (get_operand_type): Add operand position arg
1702         and handle COND_EXPR comparison operand with fixed boolean_type_node.
1703         (expr::gen_transform): Adjust.
1704         (dt_simplify::gen_1): Likewise.
1706 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
1708         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1709         comments.  Simplify asserts, remove unnecessary conditions.
1710         Formatting fixes.
1711         (*<code><mode>3): Likewise.
1713 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
1715         * doc/invoke.texi (-Wregister): Document.
1717 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1719         * configure.ac: Split CHECKING_P into CHECKING_P and
1720         ENABLE_EXTRA_CHECKING.
1721         * configure: Regenerated.
1722         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
1723         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1725 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
1727         PR other/31566
1728         * gcc.c (process_command): For @filename handling, output
1729         the correct name if the file does not exist.
1731 2016-09-30  Marek Polacek  <polacek@redhat.com>
1733         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1734         * config/alpha/predicates.md: Likewise.
1736 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1738         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1739         (noce_process_if_block): Use it.
1741 2016-09-30  Martin Liska  <mliska@suse.cz>
1743         * doc/invoke.texi: Document asan-use-after-return that
1744         it's disabled by default in runtime.
1746 2016-09-30  Richard Biener  <rguenther@suse.de>
1748         * tree-vrp.c (intersect_ranges): If we failed to handle
1749         the intersection choose a constant singleton range if available.
1751 2016-09-30  Richard Biener  <rguenther@suse.de>
1753         PR tree-optimization/77399
1754         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1755         float <-> int conversions.
1757 2016-09-30  Alan Modra  <amodra@gmail.com>
1759         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1761 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1763         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1764         ext_level before calling CPUID with 0x80000008.
1765         Simplify xgetbv checks.
1767 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
1769         * Makefile.in (OBJS): Add print-rtl-function.o.
1770         * print-rtl-function.c: New file.
1771         * print-rtl.h (print_rtx_function): New decl.
1773 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1775         PR target/77756
1776         * config/i386/cpuid.h (__get_cpuid_count): New.
1777         (__get_cpuid): Rename __level to __leaf.
1779 2016-09-29  Marek Polacek  <polacek@redhat.com>
1781         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1783 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
1785         * builtins.c (expand_builtin_memcmp): don't swap args unless
1786         result is only being compared with zero.
1788 2016-09-29  Marek Polacek  <polacek@redhat.com>
1790         * dwarf2out.c (loc_descriptor): Add fall through comment.
1791         (add_const_value_attribute): Likewise.
1793 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
1795         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1796         with "v6t2".  Move "arch" attribute above "pool_range".
1797         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1798         with "v6t2".
1799         (*thumb2_movhi_vfp): Likewise.
1800         (*arm_movhi_fp16): Likewise.
1801         (*thumb2_movhi_fp16): Likewise.
1802         (*arm_movsi_vfp): Remove "arch" attribute.
1803         (*thumb2_movsi_vfp): Likewise.
1805 2016-09-29  Martin Liska  <mliska@suse.cz>
1807         * doc/extend.texi: Remove limitation of Objective C for
1808         __attribute__((constructor)) and __attribute__((destructor)).
1810 2016-09-29  Richard Biener  <rguenther@suse.de>
1812         PR tree-optimization/77768
1813         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1814         Handle stores to readonly memory when removing redundant stores.
1816 2016-09-29  Richard Biener  <rguenther@suse.de>
1818         PR middle-end/77407
1819         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1820         X / -X -> -1 simplifications.
1822 2016-09-29  Richard Biener  <rguenther@suse.de>
1824         PR middle-end/55152
1825         * match.pd: Add max(a,-a) -> abs(a) pattern.
1826         * tree-ssa-phiopt.c (minmax_replacement): Disable for
1827         HONOR_SIGNED_ZEROS types.
1829 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1831         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1832         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1834 2016-09-29  Richard Biener  <rguenther@suse.de>
1836         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1837         writing to vr_const_varying.
1838         (vrp_initialize): Call it.
1839         (vrp_visit_stmt): Likewise.
1840         (evrp_dom_walker::before_dom_children): Likewise.
1842 2016-09-29  Richard Biener  <rguenther@suse.de>
1844         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1845         constructors with vector elements.
1847 2016-09-29  Richard Biener  <rguenther@suse.de>
1849         PR tree-optimization/77768
1850         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1851         with stores to a place we know has a constant value.
1853 2016-09-29  Alan Modra  <amodra@gmail.com>
1855         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1856         * doc/invoke.texi: Document it.
1857         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1858         (rs6000_passes_float): Comment.
1859         (rs6000_passes_long_double): New static var.
1860         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1861         (init_cumulative_args): Set up to emit fp .gnu_attribute for
1862         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
1863         to include fp values returned in vectors.
1864         Set rs6000_passes_long_double.
1865         (rs6000_function_arg_advance_1): Likewise for function args.
1866         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1867         and SPE.  Emit long double tag value too.
1868         (rs6000_opt_vars): Add gnu-attr.
1869         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1870         * configure: Regenerate.
1871         * config.in: Regenerate.
1873 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1875         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1876         of 0 < x.
1877         (format_floating, format_string, format_directive,
1878         get_destination_size, pass_sprintf_length::handle_gimple_call):
1879         Likewise.
1881 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1883         * gimple-ssa-sprintf.c: Fix comment formatting.
1884         (format_integer): Use is_gimple_assign.
1885         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1886         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
1887         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
1888         (pass_sprintf_length::execute): Use is_gimple_call.
1890 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1892         * gimple-fold.c (gimple_fold_builtin): After failing to fold
1893         strchr, also try the generic folding.
1895 2016-09-28  Martin Sebor  <msebor@redhat.com>
1897         PR c/77762
1898         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1899         Fix typos.
1901 2016-09-28  Martin Sebor  <msebor@redhat.com>
1903         PR middle-end/77683
1904         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1905         length modifier is not expected.
1906         (format_floating): Ignore l length modifier and fail gracefuly
1907         when it isn't one of the other expected ones.
1909 2016-09-28  Martin Sebor  <msebor@redhat.com>
1911         PR bootstrap/77753
1912         * varasm.c (assemble_addr_to_section): Increase local buffer size.
1914 2016-09-27  Richard Biener  <rguenther@suse.de>
1916         * dwarf2out.c (cu_die_list): New global.
1917         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
1918         main_comp_unit_die to cu_die_list if we created it.
1919         Move break_out_includes ...
1920         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
1921         the cu_die_list.
1923 2016-09-28  Richard Biener  <rguenther@suse.de>
1925         * dwarf2out.c (struct die_struct): Add removed flag.
1926         (lookup_type_die): If the DIE is marked as removed, clear
1927         TYPE_SYMTAB_DIE and return NULL.
1928         (lookup_decl_die): If the DIE is marked as removed, remove it
1929         from the hash and return NULL.
1930         (mark_removed): New helper.
1931         (prune_unused_types_prune): Call it for removed DIEs.
1932         (gen_subprogram_die): Move the premark_used_types call to after
1933         DIEs for the functions scopes are generated.
1934         (process_scope_var): Do not re-create pruned types or type decls.
1935         Make sure to also re-parent type decls.
1936         (dwarf2out_finish): Move unused type pruning and debug_types
1937         handling ...
1938         (dwarf2out_early_finish): ... here.
1940 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1942         * config/arc/arc-c.c: New file.
1943         * config/arc/arc-c.def: Likewise.
1944         * config/arc/t-arc: Likewise.
1945         * config.gcc: Include arc-c.o as c and cpp object.
1946         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1947         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1948         arc_cpu_cpp_builtins.
1950 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1952         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1953         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1955 2016-09-28  Nathan Sidwell  <nathan@acm.org>
1957         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1958         printing.
1960 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1962         PR tree-optimization/61056
1963         * gimple-fold.c (gimple_fold_builtin_strchr):
1964         New function to optimize strchr (s, 0) to strlen.
1965         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1967 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1969         PR tree-optimization/77724
1970         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1971         Add tree_fits_shwi_p check.
1973 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1975         * auto-inc-dec.c (try_merge): Remove break after return.
1976         * cselib.c (autoinc_split): Likewise.
1977         * explow.c (promote_mode): Likewise.
1978         * fixed-value.c (fixed_arithmetic): Likewise.
1979         * hsa.c (hsa_internal_fn::get_arity): Likewise.
1980         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
1981         * trans-mem.c (get_attrs_for): Likewise.
1982         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1983         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
1984         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
1985         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
1986         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
1987         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
1988         * config/cris/cris.c (cris_op_str): Likewise.
1989         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
1990         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
1992 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
1994         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
1995         IFN_GOACC_REDUCTION_CODES): New.
1996         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
1997         ifn_goacc_reduction_kind): Use them.
1998         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
1999         of internal functions, when applicable.
2001 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
2003         * config/mips/constraints.md (d): Fix documentation.
2004         * doc/md.texi (Machine Constraints): Update accordingly.
2006 2016-09-27  Richard Biener  <rguenther@suse.de>
2008         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2009         cur_line_info_table initialization ...
2010         (dwarf2out_assembly_start): ... here.
2012 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
2014         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2015         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2016         (*thumb2_movhi_vfp): Likewise.
2017         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2018         template.  Expand predicable attribute to mark VMOV.F16 as not
2019         predicable.  Add "arch" attribute.
2020         (*thumb2_movhi_fp16): Likewise.
2021         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
2022         (*thumb2_movsi_vfp): Add "arch" attribute.
2024 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
2026         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2027         VAR_DECL string.
2029 2016-09-27  Marek Polacek  <polacek@redhat.com>
2031         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2032         comment.
2034         * config/c6x/c6x.h: Adjust fall through comment.
2035         * config/sh/sh.c (final_prescan_insn): Likewise.
2036         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2037         (visium_expand_fp_cstore): Likewise.
2039 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2041         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2042         expected by -Wimplicit-fallthrough.
2043         (thumb1_size_rtx_costs): Likewise.
2044         (thumb2_reorg): Likewise.
2045         (tls_mentioned_p): Add "Fall through" comment.
2046         (thumb2_reorg): Likewise.
2047         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2048         comment form expected by -Wimplicit-fallthrough.
2050 2016-09-27  Martin Liska  <mliska@suse.cz>
2052         PR gcov-profile/46266
2053         * input.h (RESERVED_LOCATION_P): New macro.
2054         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2055         instread of comparison with UNKNOWN_LOCATION.
2057 2016-09-27  Richard Biener  <rguenther@suse.de>
2059         PR tree-optimization/77745
2060         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2061         When removing redundant stores make sure to check compatibility
2062         of the TBAA state for downstream accesses.
2063         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2064         value-numbering virtual operands for store matches.
2066 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
2068         PR target/51244
2069         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2070         movrt patterns.  Match them before anything else in the SET case.
2072 2016-09-27  Martin Liska  <mliska@suse.cz>
2074         PR gcov-profile/7970
2075         PR gcov-profile/16855
2076         PR gcov-profile/44779
2077         * coverage.c (build_gcov_exit_decl): New function.
2078         (coverage_obj_init): Call the function and generate __gcov_exit
2079         destructor.
2080         * doc/gcov.texi: Document when __gcov_exit function is called.
2082 2016-09-27  Marek Polacek  <polacek@redhat.com>
2084         PR bootstrap/77751
2085         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2086         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2087         -Wno-error instead of -Wno-implicit-fallthrough.
2089 2016-09-27  Martin Liska  <mliska@suse.cz>
2091         PR bootstrap/77749
2092         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2094 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
2096         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2097         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2098         comments.  Remove break after return.
2099         (ix86_fp_compare_code_to_integer, has_dispatch,
2100         ix86_simd_clone_usable): Remove break after return.
2102 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2104         PR rlt-optimization/77714
2105         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2106         REG_EQUAL note.
2108 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
2110         PR ipa/77677
2111         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2112         extract_range_from_unary_expr to convert value_range.
2113         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2114         (extract_range_from_unary_expr): This.
2115         * tree-vrp.h (extract_range_from_unary_expr): Declare.
2117 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
2119         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2121 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2123         * config/i386/i386.c (ix86_print_operand)
2124         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2125         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2126         (epilogue_renumber): Likewise.
2128 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
2130         PR middle-end/77719
2131         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2132         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2134 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2136         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2137         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2138         is_mm_seq_cst, is_mm_sync): Move to ...
2139         * memmodel.h: This.  New file.
2140         * builtins.c: Include memmodel.h.
2141         * optabs.c: Likewise.
2142         * tsan.c: Likewise.
2143         * config/aarch64/aarch64.c: Likewise.
2144         * config/alpha/alpha.c: Likewise.
2145         * config/arm/arm.c: Likewise.
2146         * config/i386/i386.c: Likewise.
2147         * config/ia64/ia64.c: Likewise.
2148         * config/mips/mips.c: Likewise.
2149         * config/rs6000/rs6000.c: Likewise.
2150         * config/sparc/sparc.c: Likewise.
2151         * genconditions.c: Include memmodel.h in generated file.
2152         * genemit.c: Likewise.
2153         * genoutput.c: Likewise.
2154         * genpeep.c: Likewise.
2155         * genpreds.c: Likewise.
2156         * genrecog.c: Likewise.
2158 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
2160         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2161         "c" instead when parsing characters.  Move operand parsing into...
2162         (read_rtx_operand): ...this new function, renaming "i" to "idx",
2163         and tightening the scope of various locals.
2165 2016-09-26  Liu Hao  <lh_mouse@126.com>
2167         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2169 2016-09-26  Marek Polacek  <polacek@redhat.com>
2171         * system.h: Use __has_attribute to check whether the fallthrough
2172         attribute is supported.
2174 2016-09-26  Marek Polacek  <polacek@redhat.com>
2176         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2177         gimple_call_internal_p.
2178         * ipa-split.c (find_return_bb): Likewise.
2179         (execute_split_functions): Likewise.
2180         * omp-low.c (dump_oacc_loop_part): Likewise.
2181         (oacc_loop_xform_head_tail): Likewise.
2182         * predict.c (predict_loops): Likewise.
2183         * sanopt.c (pass_sanopt::execute): Likewise.
2184         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2185         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2186         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2187         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2188         (expand_ifn_va_arg): Likewise.
2189         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2190         (optimize_mask_stores): Likewise.
2191         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2192         (vect_transform_stmt): Likewise.
2193         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2194         * tsan.c (instrument_memory_accesses): Likewise.
2196 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2197             Alexander Monakov  <amonakov@ispras.ru>
2199         * regrename.c (rename_chains): Check
2200         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2201         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2202         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2204 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2206         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2207         (s390_sched_score): Likewise.
2209 2016-09-26  Martin Liska  <mliska@suse.cz>
2211         * doc/gcov.texi: Update program output of gcov tool.
2213 2016-09-26  Martin Liska  <mliska@suse.cz>
2215         PR gcov-profile/23332
2216         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2217         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2218         * value-prof.c (dump_histogram_value): Do not handle
2219         HIST_TYPE_CONST_DELTA.
2220         (stream_in_histogram_value): Likewise.
2221         (gimple_find_values_to_profile): Likewise.
2222         * value-prof.h (enum hist_type): Likewise.
2224 2016-09-26  Martin Liska  <mliska@suse.cz>
2226         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2227         from default sanitize recover values.
2228         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2229         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2230         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2231         consistent.
2232         * opts.c (finish_options): Do a generic loop over options
2233         that can be recovered.
2234         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2235         SANITIZE_RETURN.
2236         (common_handle_option): Likewise.
2237         * opts.h: Declare can_recover to sanitizer_opts_s.
2239 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2241         * target.def(elf_flags_numeric): Change documentation to present tense.
2242         * doc/tm.texi: Regenerate.
2244 2016-09-26  Marek Polacek  <polacek@redhat.com>
2246         PR c/7652
2247         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2248         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2249         -Wno-switch-fallthrough.
2250         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2251         (expand_builtin): Likewise.
2252         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
2253         * convert.c (convert_to_real_1): Likewise.
2254         (convert_to_integer_1): Likewise.
2255         * final.c (output_alternate_entry_point): Likewise.
2256         * genattrtab.c (make_canonical): Likewise.
2257         (write_test_expr): Likewise.
2258         * genpreds.c (validate_exp): Likewise.
2259         * gimple-ssa-strength-reduction.c
2260         (find_candidates_dom_walker::before_dom_children): Likewise.
2261         * godump.c (go_format_type): Likewise.
2262         * reload1.c (elimination_effects): Likewise.
2263         * resource.c (mark_referenced_resources): Likewise.
2264         (mark_set_resources): Likewise.
2265         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
2266         * varasm.c (output_addressed_constants): Likewise.
2268 2016-09-26  Marek Polacek  <polacek@redhat.com>
2270         PR c/7652
2271         * common.opt (Wimplicit-fallthrough): New option.
2272         * doc/extend.texi: Document statement attributes and the fallthrough
2273         attribute.
2274         * doc/invoke.texi: Document -Wimplicit-fallthrough.
2275         * gimple.h (gimple_call_internal_p): New function.
2276         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
2277         (struct label_entry): New struct.
2278         (find_label_entry): New function.
2279         (case_label_p): New function.
2280         (collect_fallthrough_labels): New function.
2281         (last_stmt_in_scope): New function.
2282         (should_warn_for_implicit_fallthrough): New function.
2283         (warn_implicit_fallthrough_r): New function.
2284         (maybe_warn_implicit_fallthrough): New function.
2285         (expand_FALLTHROUGH_r): New function.
2286         (expand_FALLTHROUGH): New function.
2287         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
2288         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
2289         (gimplify_label_expr): New function.
2290         (gimplify_case_label_expr): Set location.
2291         (gimplify_expr): Call gimplify_label_expr.
2292         * internal-fn.c (expand_FALLTHROUGH): New function.
2293         * internal-fn.def (FALLTHROUGH): New internal function.
2294         * langhooks.c (lang_GNU_OBJC): New function.
2295         * langhooks.h (lang_GNU_OBJC): Declare.
2296         * system.h (gcc_fallthrough): Define.
2297         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
2298         * tree.h (FALLTHROUGH_LABEL_P): Define.
2300 2016-09-26  Richard Biener  <rguenther@suse.de>
2302         * dwarf2out.c (stripattributes): Remove unused function.
2303         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
2304         Push dwarf_split_debug_info handling into init_sections_and_labels.
2305         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
2306         (DEBUG_MACRO_SECTION_FLAGS): Remove.
2307         (debug_macinfo_section_name): New global.
2308         (output_macinfo): Use debug_macinfo_section_name.
2309         (init_sections_and_labels): Split out section and label generation
2310         from dwarf2out_init.  Set debug_macinfo_section_name.
2311         (dwarf2out_init): Move text section label generation and emission
2312         to ...
2313         (dwarf2out_assembly_start): ... here.
2314         (dwarf2out_finish): Call init_sections_and_labels before DWARF
2315         output starts.
2317 2016-09-26  Richard Biener  <rguenther@suse.de>
2319         PR debug/77692
2320         * cgraphunit.c (analyze_functions): Before early removing
2321         global vars calls the late_global_decl debug handler mark
2322         the variable as readonly.
2324 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
2326         PR target/51244
2327         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
2328         (sh_rtx_costs): Handle SET of movt and movrt patterns.
2329         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
2330         declare new overloads.
2331         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
2332         operand.
2334 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2336         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
2337         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
2339 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
2341         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
2342         * configure: Regenerate.
2344 2016-09-24  Marek Polacek  <polacek@redhat.com>
2346         PR c/77490
2347         * doc/invoke.texi: Document -Wbool-operation.
2349 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2351         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
2352         * config/rs6000/rs6000.c (expand_block_compare): New function used by
2353         cmpmemsi pattern to do builtin expansion of memcmp ().
2354         (compute_current_alignment): Add helper function for
2355         expand_block_compare used to compute alignment as the compare proceeds.
2356         (select_block_compare_mode): Used by expand_block_compare to select
2357         the mode used for reading the next chunk of bytes in the compare.
2358         (do_load_for_compare): Used by expand_block_compare to emit the load
2359         insns for the compare.
2360         (rs6000_emit_dot_insn): Moved this function to avoid a forward
2361         reference from expand_block_compare ().
2362         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
2363         prototype for this function.
2364         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
2365         target option for controlling how much code inline expansion of
2366         memcmp() will be allowed to generate.
2368 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2370         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
2371         hook_bool_mode_false, hook_bool_mode_true,
2372         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
2373         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2374         hook_bool_const_rtx_insn_const_rtx_insn_true,
2375         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
2376         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
2377         hook_bool_const_tree_hwi_hwi_const_tree_false,
2378         hook_bool_const_tree_hwi_hwi_const_tree_true,
2379         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
2380         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2381         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
2382         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
2383         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
2384         hook_bool_const_tree_true, hook_bool_tree_tree_false,
2385         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
2386         hook_bool_rtx_insn_true, hook_bool_rtx_false,
2387         hook_bool_uintp_uintp_false,
2388         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
2389         hook_rtx_tree_int_null, hook_uint_mode_0,
2390         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
2391         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
2392         hook_constcharptr_const_rtx_insn_null,
2393         hook_constcharptr_const_tree_const_tree_null,
2394         hook_constcharptr_int_const_tree_null,
2395         hook_constcharptr_int_const_tree_const_tree_null,
2396         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
2397         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
2398         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
2400         * vec.h (vNULL): Extend comment to say = vNULL initialization
2401         isn't needed for static vars.
2403         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2404         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2405         = vNULL initialization of file scope vec.
2406         * passes.c (pass_tab, enabled_pass_uid_range_tab,
2407         disabled_pass_uid_range_tab): Likewise.
2408         * haifa-sched.c (sched_luids, h_i_d): Likewise.
2409         * tree-chkp-opt.c (check_infos): Likewise.
2410         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2412         * vec.h (vnull::operator vec): Add constexpr keyword for
2413         C++11 and later.
2415 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
2417         PR tree-optimization/77654
2418         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2419         to duplicate_ssa_name_ptr_info.
2421 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
2423         PR preprocessor/77672
2424         * input.c (selftest::test_lexer_string_locations_simple): Update
2425         test to expect location information of the terminator character
2426         at the location of the final closing quote.
2427         (selftest::test_lexer_string_locations_hex): Likewise.
2428         (selftest::test_lexer_string_locations_oct): Likewise.
2429         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2430         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2431         (selftest::test_lexer_string_locations_ucn4): Likewise.
2432         (selftest::test_lexer_string_locations_ucn8): Likewise.
2433         (selftest::test_lexer_string_locations_u8): Likewise.
2434         (selftest::test_lexer_string_locations_utf8_source): Likewise.
2435         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2436         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2437         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2438         (selftest::test_lexer_string_locations_macro): Likewise.
2439         (selftest::test_lexer_string_locations_long_line): Likewise.
2441 2016-09-23  Richard Biener  <rguenther@suse.de>
2443         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2444         virtual definition to virtual use if the call devirtualizes
2445         to a const or pure function.
2446         (visit_use): Also visit calls we can devirtualize to a
2447         const or pure function.
2449 2016-09-23  Richard Biener  <rguenther@suse.de>
2451         PR tree-optimization/77697
2452         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2453         signal error if we have sth ternary or unhandled.
2455 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2457         * config/arm/arm_neon.h (vabd_f16): New.
2458         (vabdq_f16): New.
2459         (vabs_f16): New.
2460         (vabsq_f16): New.
2461         (vadd_f16): New.
2462         (vaddq_f16): New.
2463         (vcage_f16): New.
2464         (vcageq_f16): New.
2465         (vcagt_f16): New.
2466         (vcagtq_f16): New.
2467         (vcale_f16): New.
2468         (vcaleq_f16): New.
2469         (vcalt_f16): New.
2470         (vcaltq_f16): New.
2471         (vceq_f16): New.
2472         (vceqq_f16): New.
2473         (vceqz_f16): New.
2474         (vceqzq_f16): New.
2475         (vcge_f16): New.
2476         (vcgeq_f16): New.
2477         (vcgez_f16): New.
2478         (vcgezq_f16): New.
2479         (vcgt_f16): New.
2480         (vcgtq_f16): New.
2481         (vcgtz_f16): New.
2482         (vcgtzq_f16): New.
2483         (vcle_f16): New.
2484         (vcleq_f16): New.
2485         (vclez_f16): New.
2486         (vclezq_f16): New.
2487         (vclt_f16): New.
2488         (vcltq_f16): New.
2489         (vcltz_f16): New.
2490         (vcltzq_f16): New.
2491         (vcvt_f16_s16): New.
2492         (vcvt_f16_u16): New.
2493         (vcvt_s16_f16): New.
2494         (vcvt_u16_f16): New.
2495         (vcvtq_f16_s16): New.
2496         (vcvtq_f16_u16): New.
2497         (vcvtq_s16_f16): New.
2498         (vcvtq_u16_f16): New.
2499         (vcvta_s16_f16): New.
2500         (vcvta_u16_f16): New.
2501         (vcvtaq_s16_f16): New.
2502         (vcvtaq_u16_f16): New.
2503         (vcvtm_s16_f16): New.
2504         (vcvtm_u16_f16): New.
2505         (vcvtmq_s16_f16): New.
2506         (vcvtmq_u16_f16): New.
2507         (vcvtn_s16_f16): New.
2508         (vcvtn_u16_f16): New.
2509         (vcvtnq_s16_f16): New.
2510         (vcvtnq_u16_f16): New.
2511         (vcvtp_s16_f16): New.
2512         (vcvtp_u16_f16): New.
2513         (vcvtpq_s16_f16): New.
2514         (vcvtpq_u16_f16): New.
2515         (vcvt_n_f16_s16): New.
2516         (vcvt_n_f16_u16): New.
2517         (vcvtq_n_f16_s16): New.
2518         (vcvtq_n_f16_u16): New.
2519         (vcvt_n_s16_f16): New.
2520         (vcvt_n_u16_f16): New.
2521         (vcvtq_n_s16_f16): New.
2522         (vcvtq_n_u16_f16): New.
2523         (vfma_f16): New.
2524         (vfmaq_f16): New.
2525         (vfms_f16): New.
2526         (vfmsq_f16): New.
2527         (vmax_f16): New.
2528         (vmaxq_f16): New.
2529         (vmaxnm_f16): New.
2530         (vmaxnmq_f16): New.
2531         (vmin_f16): New.
2532         (vminq_f16): New.
2533         (vminnm_f16): New.
2534         (vminnmq_f16): New.
2535         (vmul_f16): New.
2536         (vmul_lane_f16): New.
2537         (vmul_n_f16): New.
2538         (vmulq_f16): New.
2539         (vmulq_lane_f16): New.
2540         (vmulq_n_f16): New.
2541         (vneg_f16): New.
2542         (vnegq_f16): New.
2543         (vpadd_f16): New.
2544         (vpmax_f16): New.
2545         (vpmin_f16): New.
2546         (vrecpe_f16): New.
2547         (vrecpeq_f16): New.
2548         (vrnd_f16): New.
2549         (vrndq_f16): New.
2550         (vrnda_f16): New.
2551         (vrndaq_f16): New.
2552         (vrndm_f16): New.
2553         (vrndmq_f16): New.
2554         (vrndn_f16): New.
2555         (vrndnq_f16): New.
2556         (vrndp_f16): New.
2557         (vrndpq_f16): New.
2558         (vrndx_f16): New.
2559         (vrndxq_f16): New.
2560         (vrsqrte_f16): New.
2561         (vrsqrteq_f16): New.
2562         (vrecps_f16): New.
2563         (vrecpsq_f16): New.
2564         (vrsqrts_f16): New.
2565         (vrsqrtsq_f16): New.
2566         (vsub_f16): New.
2567         (vsubq_f16): New.
2569 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2571         * config.gcc (extra_headers): Add arm_fp16.h
2572         * config/arm/arm_fp16.h: New.
2573         * config/arm/arm_neon.h: Include "arm_fp16.h".
2575 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2577         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2578         variants).
2579         (vmulf): New (v8hf, v4hf variants).
2580         (vfma): New (v8hf, v4hf variants).
2581         (vfms): New (v8hf, v4hf variants).
2582         (vsub): New (v8hf, v4hf variants).
2583         (vcage): New (v8hf, v4hf variants).
2584         (vcagt): New (v8hf, v4hf variants).
2585         (vcale): New (v8hf, v4hf variants).
2586         (vcalt): New (v8hf, v4hf variants).
2587         (vceq): New (v8hf, v4hf variants).
2588         (vcgt): New (v8hf, v4hf variants).
2589         (vcge): New (v8hf, v4hf variants).
2590         (vcle): New (v8hf, v4hf variants).
2591         (vclt): New (v8hf, v4hf variants).
2592         (vceqz): New (v8hf, v4hf variants).
2593         (vcgez): New (v8hf, v4hf variants).
2594         (vcgtz): New (v8hf, v4hf variants).
2595         (vcltz): New (v8hf, v4hf variants).
2596         (vclez): New (v8hf, v4hf variants).
2597         (vabd): New (v8hf, v4hf variants).
2598         (vmaxf): New (v8hf, v4hf variants).
2599         (vmaxnm): New (v8hf, v4hf variants).
2600         (vminf): New (v8hf, v4hf variants).
2601         (vminnm): New (v8hf, v4hf variants).
2602         (vpmaxf): New (v4hf variant).
2603         (vpminf): New (v4hf variant).
2604         (vpadd): New (v4hf variant).
2605         (vrecps): New (v8hf, v4hf variants).
2606         (vrsqrts): New (v8hf, v4hf variants).
2607         (vabs): New (v8hf, v4hf variants).
2608         (vneg): New (v8hf, v4hf variants).
2609         (vrecpe): New (v8hf, v4hf variants).
2610         (vrnd): New (v8hf, v4hf variants).
2611         (vrnda): New (v8hf, v4hf variants).
2612         (vrndm): New (v8hf, v4hf variants).
2613         (vrndn): New (v8hf, v4hf variants).
2614         (vrndp): New (v8hf, v4hf variants).
2615         (vrndx): New (v8hf, v4hf variants).
2616         (vrsqrte): New (v8hf, v4hf variants).
2617         (vmul_lane): Add v4hf and v8hf variants.
2618         (vmul_n): Add v4hf and v8hf variants.
2619         (vext): New (v8hf, v4hf variants).
2620         (vcvts): New (v8hi, v4hi variants).
2621         (vcvts): New (v8hf, v4hf variants).
2622         (vcvtu): New (v8hi, v4hi variants).
2623         (vcvtu): New (v8hf, v4hf variants).
2624         (vcvts_n): New (v8hf, v4hf variants).
2625         (vcvtu_n): New (v8hi, v4hi variants).
2626         (vcvts_n): New (v8hi, v4hi variants).
2627         (vcvtu_n): New (v8hf, v4hf variants).
2628         (vbsl): New (v8hf, v4hf variants).
2629         (vcvtas): New (v8hf, v4hf variants).
2630         (vcvtau): New (v8hf, v4hf variants).
2631         (vcvtms): New (v8hf, v4hf variants).
2632         (vcvtmu): New (v8hf, v4hf variants).
2633         (vcvtns): New (v8hf, v4hf variants).
2634         (vcvtnu): New (v8hf, v4hf variants).
2635         (vcvtps): New (v8hf, v4hf variants).
2636         (vcvtpu): New (v8hf, v4hf variants).
2638 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2640         * config/arm/arm-builtins.c (hf_UP): New.
2641         (si_UP): New.
2642         (vfp_builtin_data): New.  Update comment.
2643         (enum arm_builtins): Include "arm_vfp_builtins.def".
2644         (ARM_BUILTIN_VFP_PATTERN_START): New.
2645         (arm_init_vfp_builtins): New.
2646         (arm_init_builtins): Add arm_init_vfp_builtins.
2647         (arm_expand_vfp_builtin): New.
2648         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
2649         long line.
2650         * config/arm/arm_vfp_builtins.def: New file.
2651         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2652         (arm-builtins.o): Likewise.
2654 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2656         PR ipa/77677
2657         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2658         from constant while creating value range.
2660 2016-09-23  Renlin Li  <renlin.li@arm.com>
2662         * ira.c (ira): Move ira_use_lra_p initialization code to ...
2663         (ira_init_once): Here.
2665 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
2666             Jakub Jelinek  <jakub@redhat.com>
2668         * hooks.h (hook_uint_uintp_false): Rename to...
2669         (hook_bool_uint_uintp_false): ... this.
2670         * hooks.c (hook_uint_uintp_false): Rename to...
2671         (hook_bool_uint_uintp_false): ... this.
2672         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2673         instead of hook_uint_uintp_false.
2675 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2677         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2678         (arm_init_builtins): Move body of a loop to the standalone
2679         function arm_init_neon_builtin.
2680         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
2681         moved from arm_neon_builtin with some white-space fixes.
2682         (arm_expand_neon_builtin): Move code into the standalone function
2683         arm_expand_neon_builtin_1.
2685 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2687         * config/arm/iterators.md (VCVTHI): New.
2688         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
2689         (NEON_VAGLTE): New.
2690         (VFM_LANE_AS): New.
2691         (VH_CVTTO): New.
2692         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
2693         (V_HALF): Add V4HF.  Fix white-space.
2694         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
2695         (V_s_elem): Likewise.
2696         (V_sz_elem): Fix white-space.
2697         (V_elem_ch): Likewise.
2698         (VH_elem_ch): New.
2699         (scalar_mul_constraint): Add V8HF and V4HF.
2700         (Is_float_mode): Fix white-space.
2701         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
2702         (q): Add HF.  Fix white-space.
2703         (float_sup): New.
2704         (float_SUP): New.
2705         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2706         (neon_vfm_lane_as): New.
2707         * config/arm/neon.md (add<mode>3_fp16): New.
2708         (sub<mode>3_fp16): New.
2709         (mul<mode>3add<mode>_neon): New.
2710         (fma<VH:mode>4_intrinsic): New.
2711         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2712         (fmsub<VH:mode>4_intrinsic): New.
2713         (<absneg_str><mode>2): New.
2714         (neon_v<absneg_str><mode>): New.
2715         (neon_v<fp16_rnd_str><mode>): New.
2716         (neon_vrsqrte<mode>): New.
2717         (neon_vpaddv4hf): New.
2718         (neon_vadd<mode>): New.
2719         (neon_vsub<mode>): New.
2720         (neon_vmulf<mode>): New.
2721         (neon_vfma<VH:mode>): New.
2722         (neon_vfms<VH:mode>): New.
2723         (neon_vc<cmp_op><mode>): New.
2724         (neon_vc<cmp_op><mode>_fp16insn): New
2725         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2726         (neon_vca<cmp_op><mode>): New.
2727         (neon_vca<cmp_op><mode>_fp16insn): New.
2728         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2729         (neon_vc<cmp_op>z<mode>): New.
2730         (neon_vabd<mode>): New.
2731         (neon_v<maxmin>f<mode>): New.
2732         (neon_vp<maxmin>fv4hf: New.
2733         (neon_<fmaxmin_op><mode>): New.
2734         (neon_vrecps<mode>): New.
2735         (neon_vrsqrts<mode>): New.
2736         (neon_vrecpe<mode>): New (VH variant).
2737         (neon_vdup_lane<mode>_internal): New.
2738         (neon_vdup_lane<mode>): New.
2739         (neon_vcvt<sup><mode>): New (VCVTHI variant).
2740         (neon_vcvt<sup><mode>): New (VH variant).
2741         (neon_vcvt<sup>_n<mode>): New (VH variant).
2742         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2743         (neon_vcvt<vcvth_op><sup><mode>): New.
2744         (neon_vmul_lane<mode>): New.
2745         (neon_vmul_n<mode>): New.
2746         * config/arm/unspecs.md (UNSPEC_VCALE): New
2747         (UNSPEC_VCALT): New.
2748         (UNSPEC_VFMA_LANE): New.
2749         (UNSPECS_VFMS_LANE): New.
2751 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2753         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2754         ("*extzv<mode><clobbercc_or_nocc>"):
2755         Correct a typo in a comment.
2756         Merged patterns.
2757         ("*insv<mode>_zEC12", "*insv<mode>_z10")
2758         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2759         ("*insv<mode>_zEC12_appendbitsleft")
2760         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2761         ("*insv<mode>_z10_appendbitsleft"): Ditto.
2762         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2763         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2764         Provide pattern with operands switched.
2765         ("*pre_z10_extv<mode>"):
2766         Use new subst patterns.
2767         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2768         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2769         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2770         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2771         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2772         ("*<risbg_n>_sidi_ior_and_lshiftrt")
2773         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2774         New patterns.
2775         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2776         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2777         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2778         on zEC12.
2779         ("SINT"): New mode_iterator with SI, HI, QI.
2780         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2781         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2782         duplication.
2784 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2786         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2787         new interface of s390_contiguous_bitmask_p.
2788         ("contiguous_bitmask_nowrap_operand"): New predicate.
2789         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2790         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2791         of s390_contiguous_bitmask_p.
2792         ("NxxDw"): Rename NxxDq constraint to NxxDw.
2793         ("NxxSw"): New constraint.
2794         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2795         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2796         interface.
2797         (s390_contiguous_bitmask_nowrap_p): Export.
2798         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2799         former s390_contiguous_bitmask_p.
2800         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2801         detect contiguous bit ranges with wraparound.  Change signature to
2802         return START and END position instead of POS and LENGTH.
2803         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2804         ranges with wraparound.
2805         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2806         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2807         Adapt to new signature of s390_contiguous_bitmask_p.
2809 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
2811         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2812         (create_intersect_range_checks): New.
2813         (vect_create_cond_for_alias_checks): Call above function.
2815 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2817         * config/arm/iterators.md (Code iterators): Fix some white-space
2818         in the comments.
2819         (GLTE): New.
2820         (ABSNEG): New
2821         (FCVT): Moved from vfp.md.
2822         (VCVT_HF_US_N): New.
2823         (VCVT_SI_US_N): New.
2824         (VCVT_HF_US): New.
2825         (VCVTH_US): New.
2826         (FP16_RND): New.
2827         (absneg_str): New.
2828         (FCVTI32typename): Moved from vfp.md.
2829         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2830         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2831         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2832         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
2833         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2834         (vcvth_op): New.
2835         (fp16_rnd_str): New.
2836         (fp16_rnd_insn): New.
2837         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2838         (UNSPEC_VCVT_HF_U_N): New.
2839         (UNSPEC_VCVT_SI_S_N): New.
2840         (UNSPEC_VCVT_SI_U_N): New.
2841         (UNSPEC_VCVTH_S): New.
2842         (UNSPEC_VCVTH_U): New.
2843         (UNSPEC_VCVTA_S): New.
2844         (UNSPEC_VCVTA_U): New.
2845         (UNSPEC_VCVTM_S): New.
2846         (UNSPEC_VCVTM_U): New.
2847         (UNSPEC_VCVTN_S): New.
2848         (UNSPEC_VCVTN_U): New.
2849         (UNSPEC_VCVTP_S): New.
2850         (UNSPEC_VCVTP_U): New.
2851         (UNSPEC_VCVTP_S): New.
2852         (UNSPEC_VCVTP_U): New.
2853         (UNSPEC_VRND): New.
2854         (UNSPEC_VRNDA): New.
2855         (UNSPEC_VRNDI): New.
2856         (UNSPEC_VRNDM): New.
2857         (UNSPEC_VRNDN): New.
2858         (UNSPEC_VRNDP): New.
2859         (UNSPEC_VRNDX): New.
2860         * config/arm/vfp.md (<absneg_str>hf2): New.
2861         (neon_vabshf): New.
2862         (neon_v<fp16_rnd_str>hf): New.
2863         (neon_vrndihf): New.
2864         (addhf3): New.
2865         (subhf3): New.
2866         (divhf3): New.
2867         (mulhf3): New.
2868         (*mulsf3neghf_vfp): New.
2869         (*negmulhf3_vfp): New.
2870         (*mulsf3addhf_vfp): New.
2871         (*mulhf3subhf_vfp): New.
2872         (*mulhf3neghfaddhf_vfp): New.
2873         (*mulhf3neghfsubhf_vfp): New.
2874         (fmahf4): New.
2875         (neon_vfmahf): New.
2876         (fmsubhf4_fp16): New.
2877         (neon_vfmshf): New.
2878         (*fnmsubhf4): New.
2879         (*fnmaddhf4): New.
2880         (neon_vsqrthf): New.
2881         (neon_vrsqrtshf): New.
2882         (FCVT): Move to iterators.md.
2883         (FCVTI32typename): Likewise.
2884         (neon_vcvth<sup>hf): New.
2885         (neon_vcvth<sup>si): New.
2886         (neon_vcvth<sup>_nhf_unspec): New.
2887         (neon_vcvth<sup>_nhf): New.
2888         (neon_vcvth<sup>_nsi_unspec): New.
2889         (neon_vcvth<sup>_nsi): New.
2890         (neon_vcvt<vcvth_op>h<sup>si): New.
2891         (neon_<fmaxmin_op>hf): New.
2893 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2895         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2896         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2897         ("*insv<mode>_zEC12_appendbitsleft")
2898         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2899         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2901 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2903         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2904         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2905         construct values without normalization.
2906         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2907         static local lhs_ops to vNULL.
2909 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2910             Jiong Wang <jiong.wang@arm.com>
2912         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2913         available when FP16 instructions are available.
2914         (output_move_vfp): Add support for 16-bit data moves.
2915         (arm_validize_comparison): Fix some white-space.  Support HFmode
2916         by conversion to SFmode.
2917         * config/arm/arm.md (truncdfhf2): Fix a comment.
2918         (extendhfdf2): Likewise.
2919         (cstorehf4): New.
2920         (movsicc): Fix some white-space.
2921         (movhfcc): New.
2922         (movsfcc): Fix some white-space.
2923         (*cmovhf): New.
2924         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2925         instructions are available.
2926         (*thumb2_movhi_vfp): Likewise.
2927         (*arm_movhi_fp16): New.
2928         (*thumb2_movhi_fp16): New.
2929         (*movhf_vfp_fp16): New.
2930         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2931         (*movhf_vfp): Likewise.
2932         (extendhfsf2): Enable when VFP FP16 instructions are available.
2933         (truncsfhf2):  Enable when VFP FP16 instructions are available.
2935 2016-09-23  Martin Liska  <mliska@suse.cz>
2937         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2939 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2941         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2942         V4HF modes.
2943         (arm_evpc_neon_vtrn): Likewise.
2944         (arm_evpc_neon_vrev): Likewise.
2945         (arm_evpc_neon_vext): Likewise.
2946         * config/arm/arm_neon.h (vbsl_f16): New.
2947         (vbslq_f16): New.
2948         (vdup_n_f16): New.
2949         (vdupq_n_f16): New.
2950         (vdup_lane_f16): New.
2951         (vdupq_lane_f16): New.
2952         (vext_f16): New.
2953         (vextq_f16): New.
2954         (vmov_n_f16): New.
2955         (vmovq_n_f16): New.
2956         (vrev64_f16): New.
2957         (vrev64q_f16): New.
2958         (vtrn_f16): New.
2959         (vtrnq_f16): New.
2960         (vuzp_f16): New.
2961         (vuzpq_f16): New.
2962         (vzip_f16): New.
2963         (vzipq_f16): New.
2964         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2965         (vdup_lane): New (v8hf, v4hf variants).
2966         (vext): New (v8hf, v4hf variants).
2967         (vbsl): New (v8hf, v4hf variants).
2968         * config/arm/iterators.md (VDQWH): New.
2969         (VH): New.
2970         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
2971         (Scalar_mul_8_16): Fix white-space.
2972         (Is_d_reg): Add V4HF and V8HF.
2973         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2974         (neon_vdup_lane<mode>): New.
2975         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2976         (*neon_vtrn<mode>_insn): Likewise.
2977         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
2978         (*neon_vzip<mode>_insn): Likewise
2979         (neon_vuzp<mode>_internal): Likewise.
2980         (*neon_vuzp<mode>_insn): Likewise
2981         * config/arm/vec-common.md (vec_perm_const<mode>): New.
2983 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
2984             Matthew Wahab  <matthew.wahab@arm.com>
2986         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
2987         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
2988         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
2989         available.  Also fix some white-space.
2990         * config/arm/vfp.md (*arm_movhi_vfp): New.
2991         (*thumb2_movhi_vfp): New.
2993 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2995         * config/arm/arm-c.c (arm_cpu_builtins): Define
2996         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
2997         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
2999 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3001         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3002         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
3003         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3004         arm_v8_2a_fp16_neon_hw.
3005         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3006         arm_v8_2a_neon.
3008 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3010         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3011         arm_fp16_alternative_ok and arm_fp16_none_ok.
3013 2016-09-23  Martin Liska  <mliska@suse.cz>
3015         * ipa-icf.c (sem_variable::merge): Replace adress with address.
3017 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3019         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3020         ("armv8.2-a"): New.
3021         ("armv8.2-a+fp16"): New.
3022         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3023         (FL2_FP16INST): New.
3024         (FL2_FOR_ARCH8_2A): New.
3025         * config/arm/arm-tables.opt: Regenerate.
3026         * config/arm/arm.c (arm_arch8_2): New.
3027         (arm_fp16_inst): New.
3028         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
3029         for incompatible fp16-format settings.
3030         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3031         (TARGET_NEON_FP16INST): New.
3032         (arm_arch8_2): Declare.
3033         (arm_fp16_inst): Declare.
3034         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3035         march=armv8.2-a and march=armv8.2-a+fp16.
3036         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3037         and armv8.2-a+fp16.
3038         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3039         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3041 2016-09-23  Martin Liska  <mliska@suse.cz>
3043         * doc/extend.texi: Remove fused-madd from i386 target options.
3045 2016-09-23  Martin Liska  <mliska@suse.cz>
3047         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3048         Handle movbe.
3050 2016-09-23  Martin Liska  <mliska@suse.cz>
3052         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3053         Handle crc32.
3055 2016-09-23  Martin Liska  <mliska@suse.cz>
3057         PR target/71652
3058         * config/i386/i386.c (ix86_option_override_internal): Change
3059         signature and return false when there's an error related to
3060         arch string.
3061         (release_options_strings): New function.
3062         (ix86_valid_target_attribute_tree): Call the function.
3064 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
3066         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3067         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3068         (gen_hsa_ctor_assignment): Likewise.
3069         * print-tree.c (print_node): Likewise.
3070         * tree-dump.c (dequeue_and_dump): Likewise.
3071         * tree-sra.c (sra_modify_constructor_assign): Likewise.
3072         * expr.c (store_constructor): Likewise.
3073         * fold-const.c (operand_equal_p): Likewise.
3074         * tree-pretty-print.c (dump_generic_node): Likewise.
3075         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3076         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3078 2016-09-23  Richard Biener  <rguenther@suse.de>
3080         * hooks.h (hook_uint_uintp_false): Declare.
3082 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3084         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3085         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3087 2016-09-22  Martin Sebor  <msebor@redhat.com>
3089         PR target/77676
3090         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3091         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3092         (target_int_min): Correct computation.
3093         (format_integer): Use long long as the argument for the ll length
3094         modifier.
3095         (format_floating): Use target_int_max().
3096         (get_string_length): Same.
3097         (format_string): Avoid setting the bounded flag for strings
3098         of unknown length.
3099         (try_substitute_return_value): Avoid setting range info when
3100         the result isn't bounded.
3101         * varasm.c (assemble_name): Increase buffer size.
3103 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3104             Terry Guo  <terry.guo@arm.com>
3106         * target.def (elf_flags_numeric): New target hook.
3107         * targhooks.h (default_asm_elf_flags_numeric): New.
3108         * varasm.c (default_asm_elf_flags_numeric): New.
3109         (default_elf_asm_named_section): Use new target hook.
3110         * config/arm/arm.opt (mpure-code): New.
3111         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3112         * config/arm/arm.c (arm_asm_init_sections): Add section
3113         attribute to default text section if -mpure-code.
3114         (arm_option_check_internal): Diagnose use of option with
3115         non supported targets and/or options.
3116         (arm_asm_elf_flags_numeric): New.
3117         (arm_function_section): New.
3118         (arm_elf_section_type_flags): New.
3119         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3120         for -mpure-code.
3121         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3122         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3124 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
3126         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3128 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3130         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3131         * rtl.h: Adjust prototype.
3133 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3135         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3136         (prev_active_insn): Likewise.
3137         (active_insn_p): Likewise.
3138         * rtl.h: Adjust prototypes.
3139         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3140         * config/arc/arc.md: Likewise.
3141         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3142         (branch_needs_nop_p): Likewise.
3143         (use_skip_p): Likewise.
3144         * config/sh/sh.c (gen_block_redirect): Likewise.
3145         (split_branches): Likewise.
3146         * reorg.c (optimize_skip): Likewise.
3147         (fill_simple_delay_slots): Likewise.
3148         (fill_slots_from_thread): Likewise.
3149         (relax_delay_slots): Likewise.
3150         * resource.c (mark_target_live_regs): Likewise.
3152 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3154         * config/cris/cris.c (cris_asm_output_case_end): Change argument
3155         type to rtx_insn *.
3156         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3157         (prev_nonnote_nondebug_insn): Likewise.
3158         * config/cris/cris-protos.h: Adjust prototype.
3159         * rtl.h: Likewise.
3160         * jump.c (rtx_renumbered_equal_p): Adjust.
3162 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3164         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3165         * rtl.h: Adjust prototype.
3166         * config/sh/sh.md: Adjust.
3167         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3169 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3171         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3172         (prev_nondebug_insn): Likewise.
3173         * loop-doloop.c (doloop_condition_get): Likewise.
3174         * rtl.h: Adjust prototype.
3175         * cfgloop.h: Likewise.
3177 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3179         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3180         (prev_nonnote_insn): Likewise.
3181         * jump.c (reversed_comparison_code_parts): Likewise.
3182         (reversed_comparison): Likewise.
3183         * rtl.h: Adjust prototypes.
3184         * config/arc/arc.md: Adjust.
3185         * cse.c (find_comparison_args): Likewise.
3186         * reorg.c (redundant_insn): Change return type to rtx_insn *.
3187         (fix_reg_dead_note): Change argument type to rtx_insn *.
3188         (delete_prior_computation): Likewise.
3189         (delete_computation): Likewise.
3190         (fill_slots_from_thread): Adjust.
3191         (relax_delay_slots): Likewise.
3192         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3193         (simplify_relational_operation_1): Likewise.
3194         (simplify_ternary_operation): Likewise.
3196 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3198         * config/arc/arc-protos.h (arc_label_align): Change type of
3199         variables from rtx to rtx_insn *.
3200         * config/arc/arc.c (arc_label_align): Likewise.
3201         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3202         * config/bfin/bfin.c (workaround_speculation): Likewise.
3203         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3204         (find_last_same_clock): Likewise.
3205         (reorg_split_calls): Likewise.
3206         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3207         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3208         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3209         (same_cmp_following_p): Likewise.
3210         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3211         (same_cmp_following_p): Likwise.
3212         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3213         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3214         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3215         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3216         (rl78_alloc_physical_registers_cmp): Likewise.
3217         (rl78_alloc_physical_registers_umul): Likewise.
3218         (rl78_calculate_death_notes): Likewise.
3219         * config/s390/s390-protos.h (s390_label_align): Likewise.
3220         * config/s390/s390.c (s390_label_align): Likewise.
3221         * config/sh/sh.c (barrier_align): Likewise.
3222         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3223         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3224         (emit_cbcond_nop): Likewise.
3226 2016-09-22  Martin Liska  <mliska@suse.cz>
3228         PR ipa/77653
3229         * ipa-icf.c (sem_variable::merge): Yield merge operation if
3230         alias address matters, not necessarily address of original.
3232 2016-09-22  Richard Biener  <rguenther@suse.de>
3234         PR middle-end/77697
3235         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3236         fold fails.
3238 2016-09-22  Richard Biener  <rguenther@suse.de>
3240         PR middle-end/77677
3241         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3242         from constant folding results.
3243         (gimple_resimplify2): Likewise.
3244         (gimple_resimplify3): Likewise.
3246 2016-09-22  Richard Biener  <rguenther@suse.de>
3248         PR middle-end/77678
3249         * expr.c (expand_expr_real_1): Guard array access against negative
3250         offset.
3252 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3254         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
3255         of MPFR_RNDN.
3256         (format_floating): Likewise.
3258 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
3260         PR fortran/77665
3261         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
3262         for all IFN_GOMP_SIMD_* internal fns, not just for
3263         IFN_GOMP_SIMD_ORDERED_*.
3265 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3267         PR target/77670
3268         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
3269         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
3270         instructions when you want to invert the test.
3271         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
3272         correct order for XXSEL.
3273         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
3274         for using XSCMP{EQ,GT,GE}DP.
3276 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
3278         * genconstants.c (main): Introduce noop_reader and convert call
3279         to read_md_files to a method call.
3280         * genenums.c (main): Likewise.
3281         * genmddeps.c (main): Likewise.
3282         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
3283         rtx_reader_ptr->get_top_level_filename ().
3284         (write_tm_preds_h): Likewise.
3285         (write_insn_preds_c): Likewise.
3286         * gensupport.c (class gen_reader): New subclass of rtx_reader.
3287         (rtx_handle_directive): Convert to...
3288         (gen_reader::handle_unknown_directive): ...this.
3289         (init_rtx_reader_args_cb): Convert return type from bool to
3290         rtx_reader *.  Create a gen_reader instance, using it for the
3291         call to read_md_files.  Return it if no errors occur.
3292         (init_rtx_reader_args): Convert return type from bool to
3293         rtx_reader *.
3294         * gensupport.h (init_rtx_reader_args_cb): Likewise.
3295         (init_rtx_reader_args_cb): Likewise.
3296         * read-md.c (struct file_name_list): Move to class rtx_reader.
3297         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
3298         (read_md_filename): Delete in favor of
3299         rtx_reader::m_read_md_filename.
3300         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
3301         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
3302         (base_dir): Delete in favor of rtx_reader::m_base_dir.
3303         (first_dir_md_include): Delete in favor of
3304         rtx_reader::m_first_dir_md_include.
3305         (last_dir_md_include_ptr): Delete in favor of
3306         rtx_reader::m_last_dir_md_include_ptr.
3307         (max_include_len): Delete.
3308         (rtx_reader_ptr): New.
3309         (fatal_with_file_and_line): Use get_filename and get_lineno
3310         accessors of rtx_reader_ptr.
3311         (require_char_ws): Likewise.
3312         (rtx_reader::read_char): New method, based on ::read_char.
3313         (rtx_reader::unread_char): New method, based on ::unread_char.
3314         (read_escape): Use get_filename and get_lineno accessors of
3315         rtx_reader_ptr.
3316         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
3317         (read_string): Use get_filename and get_lineno accessors of
3318         rtx_reader_ptr.
3319         (rtx_reader::rtx_reader): New ctor.
3320         (rtx_reader::~rtx_reader): New dtor.
3321         (handle_include): Convert from a function to...
3322         (rtx_reader::handle_include): ...this method, converting
3323         handle_directive from a callback to a virtual function.
3324         (handle_file): Likewise, converting to...
3325         (rtx_reader::handle_file): ...this method.
3326         (handle_toplevel_file): Likewise, converting to...
3327         (rtx_reader::handle_toplevel_file): ...this method.
3328         (rtx_reader::get_current_location): New method.
3329         (parse_include): Convert from a function to...
3330         (rtx_reader::add_include_path): ...this method, dropping redundant
3331         update to unused max_include_len.
3332         (read_md_files): Convert from a function to...
3333         (rtx_reader::read_md_files): ...this method, converting
3334         handle_directive from a callback to a virtual function.
3335         (noop_reader::handle_unknown_directive): New method.
3336         * read-md.h (directive_handler_t): Delete this typedef.
3337         (in_fname): Delete.
3338         (read_md_file): Delete.
3339         (read_md_lineno): Delete.
3340         (read_md_filename): Delete.
3341         (class rtx_reader): New class.
3342         (rtx_reader_ptr): New decl.
3343         (class noop_reader): New subclass of rtx_reader.
3344         (read_char): Reimplement in terms of rtx_reader::read_char.
3345         (unread_char): Reimplement in terms of rtx_reader::unread_char.
3346         (read_md_files): Delete.
3347         * read-rtl.c (read_rtx_code): Update for deletion of globals
3348         read_md_filename and read_md_lineno.
3350 2016-09-21  Jason Merrill  <jason@redhat.com>
3352         * input.h (from_macro_definition_at): New.
3354 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3356         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
3358 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3360         PR tree-optimization/77550
3361         * tree-vect-stmts.c (create_array_ref): Change parameters.
3362         (get_group_alias_ptr_type): New function.
3363         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
3365 2016-09-21  Marek Polacek  <polacek@redhat.com>
3367         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
3368         Add falls through comment.
3370 2016-09-21  Richard Biener  <rguenther@suse.de>
3372         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
3373         (replace_child): Likewise.
3374         (remove_child_TAG): Adjust.
3375         (move_marked_base_types): Likewise.
3376         (prune_unused_types_prune): Clear die_sib of removed children.
3378 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
3380         PR target/77326
3381         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
3382         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3384 2016-09-21  Richard Biener  <rguenther@suse.de>
3386         PR tree-optimization/77648
3387         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3388         with complex RHS.
3389         (make_transitive_closure_constraints): Adjust comment.
3390         (make_any_offset_constraints): New function.
3391         (handle_rhs_call): Make sure to first expand a pointer to all
3392         subfields before transitively closing it.
3393         (handle_const_call): Likewise.  Properly expand returned
3394         pointers as well.
3395         (handle_pure_call): Likewise.
3397 2016-09-21  Richard Biener  <rguenther@suse.de>
3398             Jakub Jelinek  <jakub@redhat.com>
3400         PR tree-optimization/77621
3401         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3402         group at non-vectorizable stmts.
3404 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3406         PR tree-optimization/72835
3407         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3408         (make_new_ssa_for_all_defs): Likewise.
3409         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3411 2016-09-20  Martin Sebor  <msebor@redhat.com>
3413         PR middle-end/49905
3414         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3415         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3416         * config/linux.c (gnu_libc_printf_pointer_format): New function.
3417         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3418         * config/sol2.c (solaris_printf_pointer_format): New function.
3419         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3420         options.
3421         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3422         * doc/tm.texi: Regenerate.
3423         * gimple-fold.h (get_range_strlen): New function.
3424         (get_maxval_strlen): Declare existing function.
3425         * gimple-fold.c (get_range_strlen): Add arguments and compute both
3426         maximum and minimum.
3427          (get_range_strlen): Define overload.
3428         (get_maxval_strlen): Adjust.
3429         * gimple-ssa-sprintf.c: New file and pass.
3430         * passes.def (pass_sprintf_length): Add new pass.
3431         * targhooks.h (default_printf_pointer_format): Declare new function.
3432         (gnu_libc_printf_pointer_format): Same.
3433         (solaris_libc_printf_pointer_format): Same.
3434         * targhooks.c (default_printf_pointer_format): Define new function.
3435         * tree-pass.h (make_pass_sprintf_length): Declare new function.
3436         * print-tree.c: Increase buffer size.
3438 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3440         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3442 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3444         * common.opt: New option -fipa-vrp.
3445         * ipa-cp.c (ipa_get_vr_lat): New.
3446         (ipcp_vr_lattice::print): Likewise.
3447         (print_all_lattices): Call ipcp_vr_lattice::print.
3448         (ipcp_vr_lattice::meet_with): New.
3449         (ipcp_vr_lattice::meet_with_1): Likewise.
3450         (ipcp_vr_lattice::top_p): Likewise.
3451         (ipcp_vr_lattice::bottom_p): Likewsie.
3452         (ipcp_vr_lattice::set_to_bottom): Likewise.
3453         (set_all_contains_variable): Call VR set_to_bottom.
3454         (initialize_node_lattices): Init VR lattices.
3455         (propagate_vr_accross_jump_function): New.
3456         (propagate_constants_accross_call): Call
3457         propagate_vr_accross_jump_function.
3458         (ipcp_store_vr_results): New.
3459         (ipcp_driver): Handle VR.
3460         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3461         (ipa_set_jf_unknown): Likewise.
3462         (ipa_compute_jump_functions_for_edge): Likewise.
3463         (ipa_node_params_t::duplicate): Likewise.
3464         (ipa_write_jump_function): Likewise.
3465         (ipa_read_jump_function): Likewise.
3466         (write_ipcp_transformation_info): Likewise.
3467         (read_ipcp_transformation_info): Likewise.
3468         (ipcp_update_vr): New.
3469         (ipcp_transform_function): Handle VR.
3470         * ipa-prop.h (struct ipa_vr): New.
3471         * cgraph.c: Include tree-vrp.h.
3472         * cgraphunit.c: Likewise.
3473         * ipa-utils.c: Likewise.
3474         * ipa.c: Likewise.
3475         * opts.c: Likewise.
3476         * toplev.c: Likewise.
3477         * ipa-devirt.c: Likewise.
3478         * ipa-inline-transform.c: Likewise.
3479         * ipa-inline.c: Likewise.
3480         * ipa-profile.c: Likewise.
3482 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3484         * doc/invoke.texi: Document -fdump-tree-evrp.
3485         * passes.def: Define new pass_early_vrp.
3486         * timevar.def: Define new TV_TREE_EARLY_VRP.
3487         * tree-pass.h (make_pass_early_vrp): New.
3488         * tree-ssa-propagate.c: Make replace_uses_in non static.
3489         * tree-ssa-propagate.h: Export replace_uses_in.
3490         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3491         (extract_range_from_assert): Factor out
3492         extract_range_for_var_from_comparison_expr.
3493         (vrp_initialize_lattice): New.
3494         (vrp_initialize): Factor out vrp_initialize_lattice.
3495         (vrp_valueize): Fix it to reject complex value ranges.
3496         (vrp_free_lattice): New.
3497         (evrp_dom_walker::before_dom_children): Likewise.
3498         (evrp_dom_walker::after_dom_children): Likewise.
3499         (evrp_dom_walker::push_value_range): Likewise.
3500         (evrp_dom_walker::pop_value_range): Likewise.
3501         (execute_early_vrp): Likewise.
3502         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3503         (make_pass_early_vrp): New.
3505 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3507         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3508         instead of exact_log2.
3510 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3512         PR target/77621
3513         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3514         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3515         (ix86_add_stmt_cost): Penalize DFmode vector operations
3516         for !TARGET_VECTORIZE_DOUBLE.
3518 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
3520         * doc/invoke.texi (Warning Options): Simplify language.
3521         (Optimize Options): Complete sentence.
3523 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
3525         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
3526         early_finish hook.
3528 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3530         PR target/71395
3531         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3532         inits on power8 and above, use the VMRGEW instruction instead of a
3533         permute.
3535         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3536         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3537         initialization.
3539 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3541         * config/aarch64/arm_neon.h
3542         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3543         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3544         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3546 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3548         * config/var/vax.h (ELIMINABLE_REGS): Define.
3549         (INITIAL_ELIMINATION_OFFSET): Define.
3551 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
3553         PR middle-end/77624
3554         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3555         cast to void * if the cast is from some other pointer type.
3557 2016-09-20  Richard Biener  <rguenther@suse.de>
3559         PR tree-optimization/77646
3560         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3561         a VDEF.
3563 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3565         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3566         attributes to all inlined functions and make them extern.
3568 2016-09-20  Richard Biener  <rguenther@suse.de>
3570         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3571         hook.
3572         * debug.c (do_nothing_debug_hooks): Adjust.
3573         * dbxout.c (dbx_debug_hooks): Likewise.
3574         * sdbout.c (sdb_debug_hooks): Likewise.
3575         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3576         (dwarf2out_finish): Move producer, filename and
3577         path annotation ...
3578         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
3579         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3581 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3583         PR c++/77434
3584         * doc/invoke.texi: Document -Wint-in-bool-context.
3586         PR middle-end/77421
3587         * dwarf2out.c (output_loc_operands): Fix an assertion.
3589 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3591         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3592         (CR_DECIMAL_DIG): New macro.
3594 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3596         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3597         element.
3599 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
3601         PR rtl-optimization/77416
3602         * lra-remat.c (operand_to_remat): Process hard coded insn
3603         registers.
3605 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3607         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3608         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3610 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
3612         * target.def (lra_p): Wordsmithing.
3613         * doc/tm.texi: Regenerate.
3615 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
3616             Jan Hubicka  <jh@suse.cz>
3618         PR target/77587
3619         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3620         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3621         Call ultimate_alias_target just once, not up to 4 times.
3623 2016-09-19  Richard Biener  <rguenther@suse.de>
3625         * dwarf2out.c (early_dwarf_finished): New global.
3626         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3627         is false.
3628         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3629         if called from LTO exit early.
3630         (dwarf2out_late_global_decl): When being during the early
3631         debug phase do not add locations but only const value attributes.
3632         Adjust the way we generate early DIEs for LTO.
3634 2016-09-19  Richard Biener  <rguenther@suse.de>
3636         PR middle-end/77605
3637         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3638         proper niter to bound the loops.
3640 2016-09-19  Richard Biener  <rguenther@suse.de>
3642         PR tree-optimization/77514
3643         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3644         search for folded stmt.
3646 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
3648         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3649         * tree-pass.h (make_pass_early_thread_jumps): Declare.
3650         * tree-ssa-threadbackward.c (fsm_find_thread_path,
3651         fsm_find_thread_path, profitable_jump_thread_path,
3652         fsm_find_control_statement_thread_paths,
3653         find_jump_threads_backwards): Add speed_p parameter.
3654         (pass_data_early_thread_jumps): New pass.
3655         (make_pass_early_thread_jumps): New function.
3657 2016-09-17  Andreas Schwab  <schwab@suse.de>
3659         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3660         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3662 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3664         * recog.c (rest_of_handle_split_after_reload): Delete.
3665         (pass_split_after_reload::gate): New method.
3666         (pass_split_after_reload::execute): Call split_all_insns directly.
3668 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
3670         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3671         parameters for functions taking long long arguments.
3673 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3675         PR target/77613
3676         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3677         splat with truncate.
3679 2016-09-16  Jason Merrill  <jason@redhat.com>
3681         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3682         New.
3683         * hwint.c (exact_log2): Use pow2p_hwi.
3684         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3685         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3686         * builtins.c (get_object_alignment_2, get_object_alignment)
3687         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3688         least_bit_hwi.
3689         * calls.c (compute_argument_addresses, store_one_arg): Use
3690         least_bit_hwi.
3691         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3692         * combine.c (force_to_mode): Use least_bit_hwi.
3693         (contains_muldiv, find_split_point, combine_simplify_rtx)
3694         (simplify_if_then_else, simplify_set, force_to_mode)
3695         (if_then_else_cond, simplify_and_const_int_1)
3696         (simplify_compare_const): Use pow2p_hwi.
3697         * cse.c (fold_rtx): Use pow2p_hwi.
3698         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3699         Use least_bit_hwi.
3700         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3701         (init_expmed_one_conv): Use pow2p_hwi.
3702         * expr.c (is_aligning_offset): Use pow2p_hwi.
3703         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3704         (fold_binary_loc): Use pow2p_hwi.
3705         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3706         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3707         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3708         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3709         Use least_bit_hwi.
3710         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3711         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3712         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3713         * omp-low.c (oacc_loop_fixed_partitions)
3714         (oacc_loop_auto_partitions): Use least_bit_hwi.
3715         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3716         * stor-layout.c (place_field): Use least_bit_hwi.
3717         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3718         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3719         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3720         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3721         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3722         * tree-vect-data-refs.c (vect_analyze_group_access_1)
3723         (vect_grouped_store_supported, vect_grouped_load_supported)
3724         (vect_permute_load_chain, vect_shift_permute_load_chain)
3725         (vect_transform_grouped_load): Use pow2p_hwi.
3726         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3727         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3728         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3729         least_bit_hwi.
3730         * tsan.c (instrument_expr): Use least_bit_hwi.
3731         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3733 2016-09-16  Andreas Schwab  <schwab@suse.de>
3735         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3736         OFFSET, not offset.
3737         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3739 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3741         PR target/77526
3742         * combine.c (rest_of_handle_combine): If any edges have been purged,
3743         free dominators if available.
3745 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3746             Eric Botcazou  <ebotcazou@adacore.com>
3748         PR middle-end/77594
3749         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3750         through into expand_addsub_overflow after expand_neg_overflow.
3752 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
3754         * diagnostic-show-locus.c
3755         (selftest::test_fixit_insert_containing_newline): New function.
3756         (selftest::test_fixit_replace_containing_newline): New function.
3757         (selftest::diagnostic_show_locus_c_tests): Call the above.
3759 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
3761         PR tree-optimization/77503
3762         * tree-vect-loop.c (vectorizable_reduction): Record reduction
3763         code for CONST_COND_REDUCTION at analysis stage and use it at
3764         transform stage.
3765         * tree-vectorizer.h (struct _stmt_vec_info): New field.
3766         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3767         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3768         field.
3770 2016-09-15  Richard Biener  <rguenther@suse.de>
3772         PR middle-end/77544
3773         * fold-const.c (split_tree): Do not split constant ~X.
3775 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
3777         PR rtl-optimization/77425
3778         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3779         is NULL.
3781         PR middle-end/77475
3782         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3783         use %qs instead of %s where desirable, use argument instead of arg in
3784         the diagnostic wording, add list of supported strategies and
3785         spellcheck hint.
3786         (ix86_option_override_internal): Emit target("m...") instead of
3787         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
3788         -march/-mtune option diagnostic.  Add list of supported arches/tunings
3789         and spellcheck hint.  Remove prefix, suffix and sw variables, use
3790         main_args_p ? "..." : "..." in diagnostics to make translation
3791         possible.
3793 2016-09-15  Richard Biener  <rguenther@suse.de>
3795         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3796         extra offset argument.
3797         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3798         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3799         to reflect new offset parameter.
3800         * doc/tm.texi: Regenerate.
3801         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3802         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3803         offset argument.
3804         (darwin_asm_output_dwarf_offset): Likewise.
3805         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3806         argument.
3807         (darwin_asm_output_dwarf_offset): Pass offset argument through.
3808         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3809         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3811 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
3813         PR fortran/72743
3814         * ipa-icf.c (set_alias_uids): New function.
3815         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3816         all the merged variable's referring aliases.
3818 2016-09-15  Richard Biener  <rguenther@suse.de>
3820         PR tree-optimization/77514
3821         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3822         only forced_stmts sequence.
3824 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
3826         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3827         * cfgexpand.c (update_alias_info_with_stack_vars): Use
3828         FOR_EACH_SSA_NAME to iterate over SSA variables.
3829         (pass_expand::execute): Likewise.
3830         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3831         * tree-cfg.c (dump_function_to_file): Likewise.
3832         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3833         (update_ssa): Likewise.
3834         * tree-ssa-alias.c (dump_alias_info): Likewise.
3835         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3836         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3837         (create_outofssa_var_map): Likewise.
3838         (coalesce_ssa_name): Likewise.
3839         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3840         * tree-ssa-pre.c (compute_avail): Likewise.
3841         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3842         (scc_vn_restore_ssa_info): Likewise.
3843         (free_scc_vn): Likwise.
3844         (run_scc_vn): Likewise.
3845         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3846         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3847         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3848         * tree-ssa.c (verify_ssa): Likewise.
3850 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3852         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3853         and mips64r2 as default 32-bit and 64-bit architectures.
3854         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3855         as default 32-bit and 64-bit architectures.
3857 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
3859         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3860         of succ edge.
3862 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3864         * target.def (lra_p): Change commentary (for the manual) for the
3865         new default.
3866         * doc/tm.texi: Regenerate.
3868 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3870         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3871         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3872         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3873         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3875 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3877         * targhooks.c (default_lra_p): Return true instead of false.
3879 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3881         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3882         hook_bool_void_false.
3883         * config/avr/avr.c: Ditto.
3884         * config/bfin/bfin.c: Ditto.
3885         * config/c6x/c6x.c: Ditto.
3886         * config/cr16/cr16.c: Ditto.
3887         * config/cris/cris.c: Ditto.
3888         * config/epiphany/epiphany.c: Ditto.
3889         * config/fr30/fr30.c: Ditto.
3890         * config/frv/frv.c: Ditto.
3891         * config/h8300/h8300.c: Ditto.
3892         * config/ia64/ia64.c: Ditto.
3893         * config/iq2000/iq2000.c: Ditto.
3894         * config/lm32/lm32.c: Ditto.
3895         * config/m32c/m32c.c: Ditto.
3896         * config/m32r/m32r.c: Ditto.
3897         * config/m68k/m68k.c: Ditto.
3898         * config/mcore/mcore.c: Ditto.
3899         * config/microblaze/microblaze.c: Ditto.
3900         * config/mmix/mmix.c: Ditto.
3901         * config/mn10300/mn10300.c: Ditto.
3902         * config/moxie/moxie.c: Ditto.
3903         * config/msp430/msp430.c: Ditto.
3904         * config/nios2/nios2.c: Ditto.
3905         * config/nvptx/nvptx.c: Ditto.
3906         * config/pa/pa.c: Ditto.
3907         * config/pdp11/pdp11.c: Ditto.
3908         * config/rl78/rl78.c: Ditto.
3909         * config/sparc/sparc.c: Ditto.
3910         * config/spu/spu.c: Ditto.
3911         * config/stormy16/stormy16.c: Ditto.
3912         * config/tilegx/tilegx.c: Ditto.
3913         * config/tilepro/tilepro.c: Ditto.
3914         * config/v850/v850.c: Ditto.
3915         * config/vax/vax.c: Ditto.
3916         * config/visium/visium.c: Ditto.
3917         * config/xtensa/xtensa.c: Ditto.
3919 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
3921         PR sanitizer/68260
3922         * tsan.c: Include target.h.
3923         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3924         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3925         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3926         BUILT_IN_ATOMIC_TEST_AND_SET entries.
3927         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3929 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3930             Martin Liska  <mliska@suse.cz>
3932         PR middle-end/77574
3933         * predict.c (force_edge_cold): Add braces to a condition.
3935 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3937         PR rtl-optimization/77289
3938         * lra-constraints.c (get_final_hard_regno): Removed.
3939         (get_hard_regno): Add new parameter final_p.
3940         (get_reg_class): Directly call lra_get_elimination_hard_regno.
3941         (operands_match_p): Adjust call to get_hard_regno.
3942         (uses_hard_regs_p): Likewise.
3943         (process_alt_operands): Likewise.
3945 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
3947         PR target/70713
3948         * config/msp430/msp430.c (msp430_start_function): Emit an error
3949         if a function is both weak and specifies an interrupt number.
3951 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
3953         PR tree-optimization/77454
3954         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3955         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
3956         Formatting fix.
3958 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
3960         * config/aarch64/aarch64-builtins.c
3961         (aarch64_init_simd_builtins): Fix builtin type signature printing.
3963 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
3965         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3966         SFmode and SCmode arguments by reference.
3968 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
3970         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3971         Rename to...
3972         (selftest::test_one_liner_fixit_insert_before): ...this, and update
3973         for renaming of add_fixit_insert to add_fixit_insert_before.
3974         (selftest::test_one_liner_fixit_insert_after): New function.
3975         (selftest::test_one_liner_fixit_validation_adhoc_locations):
3976         Update for renaming of add_fixit_insert to add_fixit_insert_before.
3977         (selftest::test_one_liner_many_fixits): Likewise.
3978         (selftest::test_diagnostic_show_locus_one_liner): Update for
3979         renaming, call new test function.
3980         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
3981         renaming of add_fixit_insert to add_fixit_insert_before.
3982         (selftest::test_fixit_consolidation): Likewise.
3983         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
3984         Likewise.
3985         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
3986         (selftest::test_applying_fixits_insert_before): ...this.
3987         (selftest::test_applying_fixits_insert): Update for renaming of
3988         add_fixit_insert to add_fixit_insert_before.
3989         (selftest::test_applying_fixits_insert_after): New function.
3990         (selftest::test_applying_fixits_insert_after_at_line_end): New
3991         function.
3992         (selftest::test_applying_fixits_insert_after_failure): New function.
3993         (selftest::test_applying_fixits_multiple): Update for renaming of
3994         add_fixit_insert to add_fixit_insert_before.
3995         (selftest::change_line): Likewise.
3996         (selftest::test_applying_fixits_unreadable_file): Likewise.
3997         (selftest::test_applying_fixits_line_out_of_range): Likewise.
3998         (selftest::test_applying_fixits_column_validation): Likewise.
3999         (selftest::test_applying_fixits_column_validation): Likewise.
4000         (selftest::edit_context_c_tests): Update for renamed test function;
4001         call new test functions.
4003 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
4005         PR tree-optimization/77536
4006         PR rtl-optimization/68212
4007         * config/rs6000/rs6000.md (div->recip splitter): Remove
4008         optimize_insn_for_speed_p condition.
4010 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
4012         * optabs.c (prepare_cmp_insn): Update documentation comment.
4014 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
4015             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4017         PR middle-end/77475
4018         * opts.h (candidates_list_and_hint): Declare.
4019         * opts-common.c (candidates_list_and_hint): New function.
4020         (cmdline_handle_error): Use it.
4022 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
4024         * edit-context.c (edited_line::get_len): New accessor.
4025         (edited_file::print_diff): Split out hunk-printing into...
4026         (edited_file::print_diff_hunk): New method.
4027         (edited_file::print_diff_line): New method.
4029 2016-09-12  Andrew Pinski  <apinski@cavium.com>
4031         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4032         New tuning option.
4033         * config/aarch64/aarch64.c (thunderx_tunings): Enable
4034         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4035         (aarch64_operands_ok_for_ldpstp): Return false if
4036         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4037         was SImode and the alignment is less than 8 byte.
4038         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4040 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
4042         PR target/77570
4043         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4045 2016-09-12  Marek Polacek  <polacek@redhat.com>
4047         * doc/extend.texi: Use lowercase "boolean".
4048         * doc/invoke.texi: Likewise.
4049         * doc/md.texi: Likewise.
4050         * target.def: Likewise.
4051         * doc/tm.texi: Regenerated.
4053 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4055         PR middle-end/77426
4056         * expmed.c (synth_mult): Delete duplicate mode check.
4058 2016-09-10  Tom de Vries  <tom@codesourcery.com>
4060         PR C/71602
4061         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4062         va_list type only.
4063         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4064         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4066 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
4068         PR rtl-optimization/77289
4069         * lra-constraints.c (get_final_hard_regno): Add support for non hard
4070         register numbers.  Remove support for subregs.
4071         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
4072         (get_reg_class): Delete removed get_final_hard_regno() argument.
4073         (uses_hard_regs_p): Call get_final_hard_regno().
4075 2016-09-09  Martin Sebor  <msebor@redhat.com>
4077         PR c/77520
4078         PR c/77521
4079         * pretty-print.c (pp_quoted_string): New function.
4080         (pp_format): Call it for %c and %s directives.
4082 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4084         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4085         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4086         INITIAL_ELIMINATION_OFFSET) : Update documentation.
4087         * target.def (frame_pointer_required, can_eliminate): Likewise.
4088         * doc/tm.texi: Regenerated.
4089         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4090         ELIMINABLE_REGS.
4091         * df-scan.c (df_hard_reg_init): Likewise.
4092         * ira.c (ira_setup_eliminable_regset): Likewise.
4093         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4094         init_elim_table): Likewise.
4095         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4096         set_initial_elim_offsets, update_eliminables,
4097         init_elim_table): Likewise.
4098         * rtlanal.c (get_initial_register_offset): Likewise.
4099         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4100         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4101         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4102         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4103         * config/fr30/fr30.h: Fix comment.
4104         * config/frv/frv.c: Likewise.
4105         * config/frv/frv.h: Likewise.
4106         * config/ft32/ft32.h: Likewise.
4107         * config/visium/visium.h: Likewise.
4108         * config/pa/pa64-linux.h: Likewise.
4109         * config/v850/v850.h: Likewise.
4110         * config/cris/cris.c: Likewise.
4111         * config/ia64/ia64.h: Likewise.
4112         * config/moxie/moxie.h: Likewise.
4113         * config/m32r/m32r.h: Likewise.
4115 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4117         PR target/77267
4118         * config.in: Regenerate.
4119         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4120         New macro.
4121         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4122         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4123         static-libmpxwrappers case.
4124         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4125         MPX_LD_AS_NEEDED_GUARD_POP.
4126         * configure: Regenerate.
4127         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4128         defined if linker support "--push-state"/"--pop-state".
4130 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4132         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4134 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
4136         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4137         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4138         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4139         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4140         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4141         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4142         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4143         Document.
4144         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4145         width macros from TS 18661-1.
4146         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4148 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
4150         PR fortran/77516
4151         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4152         OMP_CLAUSE_SAFELEN_EXPR.
4154 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
4156         * Makefile.in (OBJS): Add substring-locations.o.
4157         * langhooks-def.h (class substring_loc): New forward decl.
4158         (lhd_get_substring_location): New decl.
4159         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4160         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4161         * langhooks.c (lhd_get_substring_location): New function.
4162         * langhooks.h (class substring_loc): New forward decl.
4163         (struct lang_hooks): Add field get_substring_location.
4164         * substring-locations.c: New file, taking definition of
4165         format_warning_va and format_warning_at_substring from
4166         c-family/c-format.c, making them non-static.
4167         * substring-locations.h (class substring_loc): Move class here
4168         from c-family/c-common.h.  Add and rewrite comments.
4169         (format_warning_va): New decl.
4170         (format_warning_at_substring): New decl.
4171         (get_source_location_for_substring): Add comment.
4173 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
4175         * config/i386/i386.c: Add 'U' suffix to processor feature bits
4176         to avoid -Wnarrowing warning.
4177         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4178         * opts.c: Likewise for SANITIZER_OPT bitmasks.
4180 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
4182         * config/aarch64/aarch64.c (aarch64_legitimize_address):
4183         Avoid use of base_offset if offset already in range.
4185 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4187         * config/sh/sh-protos.h (struct sh_atomic_model,
4188         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4189         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4190         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4191         * config/sh/sh.h (struct sh_atomic_model,
4192         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4193         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4194         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4195         Guard with __cplusplus.
4197 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
4199         PR target/69255
4200         * config/i386/i386.c (ix86_expand_builtin): For builtin with
4201         unsupported or unknown ISA, use expand_call.
4203 2016-09-06  Martin Liska  <mliska@suse.cz>
4205         PR gcov-profile/77378
4206         PR gcov-profile/77466
4207         * tree-profile.c (tree_profiling): Detect whether target can use
4208         -fprofile-update=atomic.
4210 2016-09-06  Richard Biener  <rguenther@suse.de>
4212         PR tree-optimization/77479
4213         * tree-vrp.c (update_value_range): Extend overflow handling to
4214         VARYING.
4216 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4218         PR target/77476
4219         * config/i386/i386.md (isa): Add x64_avx512bw.
4220         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4221         (kmov_isa): New mode attr.
4222         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4223         (*zero_extend<mode>si2): Likewise.
4224         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4226 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
4228         * doc/invoke.texi (SPU Options): nops -> NOPs.
4229         (x86 Options): Ditto.
4231 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4233         PR middle-end/77475
4234         * toplev.c (process_options): Temporarily set input_location
4235         to UNKNOWN_LOCATION around targetm.target_option.override () call.
4237 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
4239         PR rtl-optimization/77452
4240         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4241         inner-mode reference to a CONST_VECTOR constant in the constant pool.
4243 2016-09-05  Marek Polacek  <polacek@redhat.com>
4245         PR c/77423
4246         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4248 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4250         PR other/77421
4251         * gensupport.c (alter_output_for_subst_insn): Remove redundant
4252         *insn_out == '*' test.  Don't copy unnecessary to yet another
4253         memory buffer, and don't leak it.
4255         PR rtl-optimization/77425
4256         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
4258 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
4260         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
4262 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4264         * common.opt (fdiagnostics-generate-patch): New option.
4265         * diagnostic.c: Include "edit-context.h".
4266         (diagnostic_initialize): Initialize context->edit_context_ptr.
4267         (diagnostic_finish): Delete context->edit_context_ptr.
4268         (diagnostic_report_diagnostic): Add fix-it hints from the
4269         diagnostic to context->edit_context_ptr, if any.
4270         * diagnostic.h (class edit_context): Add forward decl.
4271         (struct diagnostic_context): Add field "edit_context_ptr".
4272         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4273         -fdiagnostics-generate-patch.
4274         (-fdiagnostics-generate-patch): New item.
4275         * toplev.c: Include "edit-context.h".
4276         (process_options): Set global_dc->edit_context_ptr to a new
4277         edit_context if the options need one.
4278         (toplev::main): Handle -fdiagnostics-generate-patch by using
4279         global_dc->edit_context_ptr.
4281 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4283         PR c/65467
4284         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
4285         map and firstprivate clauses on target construct for _Atomic
4286         qualified decls.
4287         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
4288         on target construct for _Atomic qualified decls.
4289         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
4290         decls.
4291         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
4292         _Atomic qualified arguments not mentioned in uniform clause.
4294 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4296         * Makefile.in (OBJS-libcommon): Add edit-context.o.
4297         * diagnostic-color.c (color_dict): Add "diff-filename",
4298         "diff-hunk", "diff-delete", and "diff-insert".
4299         (parse_gcc_colors): Update default value of GCC_COLORS in comment
4300         to reflect above changes.
4301         * doc/invoke.texi (-fdiagnostics-color): Update description of
4302         default GCC_COLORS, and of the supported capabilities.
4303         * edit-context.c: New file.
4304         * edit-context.h: New file.
4305         * input.c (struct fcache): Add field "missing_trailing_newline".
4306         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
4307         true.
4308         (add_file_to_cache_tab): Likewise.
4309         (fcache::fcache): Likewise.
4310         (get_next_line): Update c->missing_trailing_newline.
4311         (location_missing_trailing_newline): New function.
4312         * input.h (location_missing_trailing_newline): New decl.
4313         * selftest-run-tests.c (selftest::run_tests): Call
4314         edit_context_c_tests.
4315         * selftest.h (edit_context_c_tests): New decl.
4317 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4318             Richard Biener  <rguenth@suse.de>
4320         PR tree-optimization/77444
4321         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
4322         as steptype, remove redundant initialization.
4324 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4326         PR sanitizer/77396
4327         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
4328         (sanopt_optimize_walker): Optimize away
4329         __asan_before_dynamic_init (...) followed by
4330         __asan_after_dynamic_init () without intervening memory loads/stores.
4331         * ipa-pure-const.c (special_builtin_state): Handle
4332         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
4333         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
4335 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4337         * cfg.c (free_original_copy_tables): Replace second assignment of
4338         bb_copy = NULL by bb_original = NULL.
4340 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4342         PR other/77421
4343         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
4344         assignment added in r216794.
4346 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4348         * Makefile.in (OBJS): Add typed-splay-tree.o.
4349         * selftest-run-tests.c (selftest::run_tests): Call
4350         typed_splay_tree_c_tests.
4351         * selftest.h (typed_splay_tree_c_tests): New decl.
4352         * typed-splay-tree.c: New file.
4353         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
4354         (typed_splay_tree::max): New method.
4355         (typed_splay_tree::min): New method.
4356         (typed_splay_tree::foreach): New method.
4357         (typed_splay_tree::closure): New struct.
4358         (typed_splay_tree::inner_foreach_fn): New function.
4360 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4362         * ipa-cp.c (ipcp_store_bits_results): Change option name from
4363         -fipa-cp-bit to -fipa-bit-cp.
4365 2016-09-01  Martin Sebor  <msebor@redhat.com>
4367         PR tree-optimization/71831
4368         * tree-object-size.h: Return bool instead of the size and add
4369         argument for the size.
4370         * tree-object-size.c (compute_object_offset): Update signature.
4371         (addr_object_size): Same.
4372         (compute_builtin_object_size): Return bool instead of the size
4373         and add argument for the size.  Handle POINTER_PLUS_EXPR when
4374         optimization is disabled.
4375         (expr_object_size): Adjust.
4376         (plus_stmt_object_size): Adjust.
4377         (pass_object_sizes::execute): Adjust.
4378         * builtins.c (fold_builtin_object_size): Adjust.
4379         * doc/extend.texi (Object Size Checking): Update.
4380         * ubsan.c (instrument_object_size): Adjust.
4382 2016-09-01  Martin Sebor  <msebor@redhat.com>
4384         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
4385         it fits the output of the formatted function regardless of its
4386         arguments.
4387         * gcc/genmodes.c (parser::parse_expr): Same.
4388         * gimplify.c (gimplify_asm_expr): Same.
4389         * passes.c (pass_manager::register_one_dump_file): Same.
4390         * print-tree.c (print_node): Same.
4392 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4394         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
4396 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4398         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
4400 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4402         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4403         * config/rs6000/vector.md: Ditto.
4404         * config/rs6000/vsx.md: Ditto.
4406 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4408         * ipa-inline-analysis.c (param_change_prob): Get to the base object
4409         first in all cases.
4411 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4413         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4414         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4415         *return_and_restore_gpregs_<mode>_r11,
4416         *return_and_restore_gpregs_<mode>_r12,
4417         *return_and_restore_gpregs_<mode>_r1,
4418         *return_and_restore_fpregs_<mode>_r11,
4419         *return_and_restore_fpregs_<mode>_r12,
4420         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4421         directly instead of via the "l" constraint.  Renumber operands.
4422         Fix whitespace.
4424 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4426         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4427         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4428         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4429         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4430         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4431         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4432         *call_value_nonlocal_darwin64, reload_macho_picbase,
4433         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4434         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4435         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4436         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4437         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4438         *save_fpregs_<mode>_r1): Ditto.
4439         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4440         *return_and_restore_gpregs_spe): Ditto.
4442 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4444         * config/rs6000/rs6000.md
4445         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4446         the use of the link register.
4447         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4449 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4450             Michael Meissner  <meissner@linux.vnet.ibm.com>
4452         PR target/72827
4453         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4454         reg+reg addressing for TImode.
4455         (rs6000_legitimate_address_p): Only allow register indirect
4456         addressing for TImode, even without TARGET_QUAD_MEMORY.
4458 2016-09-01  Richard Biener  <rguenther@suse.de>
4460         PR middle-end/77436
4461         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4462         check whether the result fits the desired result type.
4464 2016-09-01  Nathan Sidwell  <nathan@acm.org>
4466         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4468 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
4470         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4471         New function.
4472         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4474 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4476         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4477         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4478         for comparisons of integer ZERO_EXTEND against zero.
4480 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4482         * config/i386/i386.c (ix86_option_override_internal): Also disable the
4483         STV pass if -mstackrealign is enabled.
4485 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
4487         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4488         AVX512IFMA.
4490 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4492         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4493         (layout_range::intersects_line_p): New method.
4494         (test_range_contains_point_for_single_point): Rename to...
4495         (test_layout_range_for_single_point): ...this, and add testing
4496         for layout_range::intersects_line_p.
4497         (test_range_contains_point_for_single_line): Rename to...
4498         (test_layout_range_for_single_line): ...this,  and add testing
4499         for layout_range::intersects_line_p.
4500         (test_range_contains_point_for_multiple_lines): Rename to...
4501         (test_layout_range_for_multiple_lines): ...this,  and add testing
4502         for layout_range::intersects_line_p.
4503         (layout::layout): Populate m_fixit_hints.
4504         (layout::get_expanded_location): Handle the case of a line-span
4505         for a fix-it hint.
4506         (layout::validate_fixit_hint_p): New method.
4507         (get_line_span_for_fixit_hint): New function.
4508         (layout::calculate_line_spans): Add spans for fixit-hints.
4509         (layout::should_print_annotation_line_p): New method.
4510         (layout::print_any_fixits): Drop param "richloc", instead using
4511         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
4512         (diagnostic_show_locus): Avoid printing blank annotation lines.
4513         (selftest::test_diagnostic_context::test_diagnostic_context):
4514         Initialize show_column and start_span.
4515         (selftest::test_diagnostic_context::start_span_cb): New static
4516         function.
4517         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4518         (selftest::diagnostic_show_locus_c_tests): Update for function
4519         renamings.  Call test_diagnostic_show_locus_fixit_lines.
4521 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4523         PR tree-optimization/73714
4524         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4526 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4528         * selftest.c: Move "namespace selftest {" to top of file,
4529         removing explicit "selftest::" qualifiers throughout.
4531 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4533         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4534         New types.
4535         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4536         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4537         Replace builtin with vector extension.
4538         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4539         New types.
4540         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4541         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4542         Replace builtin with vector extension.
4543         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4544         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4545         Replace builtin with vector extension.
4546         * config/i386/xmmintrin.h (__m128_u): New type.
4547         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4548         (_mm_load_ps, _mm_store_ps): Simplify.
4550 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4552         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4554 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4556         * diagnostic-show-locus.c (colorizer::begin_state): Support more
4557         than 3 ranges per diagnostic by alternating between color 1 and
4558         color 2.
4559         (layout::layout): Replace use of rich_location::MAX_RANGES
4560         with richloc->get_num_locations ().
4561         (layout::calculate_line_spans): Replace use of
4562         rich_location::MAX_RANGES with m_layout_ranges.length ().
4563         (layout::print_annotation_line): Handle arbitrary numbers of
4564         ranges in caret-printing by defaulting to '^'.
4565         (selftest::test_one_liner_many_fixits): New function.
4566         (test_diagnostic_show_locus_one_liner): Call it.
4567         * diagnostic.c (diagnostic_initialize): Update for renaming
4568         of rich_location::MAX_RANGES to
4569         rich_location::STATICALLY_ALLOCATED_RANGES.
4570         * diagnostic.h (struct diagnostic_context): Likewise.
4572 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4574         * selftest.c (selftest::named_temp_file::named_temp_file): New
4575         ctor.
4576         (selftest::temp_source_file::~temp_source_file): Move to...
4577         (selftest::named_temp_file::~named_temp_file): ...here.
4578         (selftest::test_named_temp_file): New function.
4579         (selftest::selftest_c_tests): Call test_named_temp_file.
4580         * selftest.h (class named_temp_file): New class.
4581         (class temp_source_file): Convert to a subclass of named_temp_file.
4583 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
4585         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4586         USEs of LR_REGNO in returns and sibcalls.
4587         (rs6000_output_mi_thunk): Similar.
4588         (rs6000_sibcall_aix): Similar.
4589         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4590         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4591         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4592         Remove the USE of LR_REGNO from the patterns as well.  Delete an
4593         obsolete comment.
4594         (return_internal_<mode>): Delete.
4596 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
4598         * gcc/config/aarch64/aarch64-simd.md
4599         (aarch64_ld2<mode>_dreg_le): New.
4600         (aarch64_ld2<mode>_dreg_be): New.
4601         (aarch64_ld2<mode>_dreg): Removed.
4602         (aarch64_ld3<mode>_dreg_le): New.
4603         (aarch64_ld3<mode>_dreg_be): New.
4604         (aarch64_ld3<mode>_dreg): Removed.
4605         (aarch64_ld4<mode>_dreg_le): New.
4606         (aarch64_ld4<mode>_dreg_be): New.
4607         (aarch64_ld4<mode>_dreg): Removed.
4608         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4610 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4612         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4613         redundant location param.
4614         (test_one_liner_fixit_remove): Likewise.
4615         (test_one_liner_fixit_replace): Likewise.
4616         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4617         * gcc-rich-location.c
4618         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4619         get_range_from_loc.  Drop overload taking a const char *.
4620         * gcc-rich-location.h
4621         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4622         a const char *.
4624 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4626         * config/linux.c (linux_libc_has_function): Return true on musl.
4628 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4630         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4632 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4634         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4635         used for abnormal egdes.
4637 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
4639         PR tree-optimization/72866
4640         * tree-vect-patterns.c (search_type_for_mask): Turn into
4641         a small wrapper, move all code to ...
4642         (search_type_for_mask_1): ... this new function.  Add caching
4643         and adjust recursive calls.
4645         PR debug/77363
4646         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4647         instead of lookup_type_die (type_main_variant (type)) even for array
4648         types.
4650         PR middle-end/77377
4651         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4652         constant pool reference return x instead of c.
4654 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
4656         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4657         include MQ.
4659 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4661         * input.c
4662         (selftest::test_make_location_nonpure_range_endpoints): Fix
4663         header comment.
4665 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4667         * diagnostic-show-locus.c
4668         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4669         function.
4670         (selftest::test_diagnostic_show_locus_one_liner): Call it.
4671         * input.c (get_pure_location): Move to libcpp/line-map.c.
4672         * input.h (get_pure_location): Convert decl to an inline function
4673         calling implementation in libcpp.
4675 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
4677         PR target/77403
4678         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4679         template for intel asm dialect.
4680         (vec_set_hi_<mode><mask_name>): Ditto.
4682 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4684         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4685         (selftest::fail_formatted): Likewise.
4687 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4689         * input.c (make_location): Call get_start and get_finish
4690         on the endpoints to avoid storing packed ranges or ad-hoc
4691         ranges in them.
4692         (selftest::test_make_location_nonpure_range_endpoints): New function.
4693         (selftest::input_c_tests): Call it.
4694         * input.h (get_start): New inline function.
4696 2016-08-29  Tom de Vries  <tom@codesourcery.com>
4698         PR c/77398
4699         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4700         with assert.
4702 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4704         * Makefile.in (gcov-iov.h): Add dummy recipe.
4706 2016-08-29  Nathan Sidwell  <nathan@acm.org>
4708         * config/nvptx/nvptx.c: #include tree-vrp.h.
4710 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4712         PR target/77324
4713         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4714         HIGH+LO construct during reload.
4716 2016-08-28  Tom de Vries  <tom@codesourcery.com>
4718         PR lto/70955
4719         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4720         'sysv_abi va_list' attribute.
4721         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4722         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4723         attributes.
4725 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4727         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4728         * emit-rtl.c (unshare_all_rtl_1): Adjust.
4729         (unshare_all_rtl_again): Likewise.
4730         * function.c (assign_stack_local_1): Likewise.
4731         (assign_stack_temp_for_type): Likewise.
4733 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4735         * cfgbuild.c (make_edges): Adjust.
4736         * cfgrtl.c (can_delete_label_p): Likewise.
4737         * dwarf2cfi.c (create_trace_edges): Likewise.
4738         * except.c (sjlj_emit_dispatch_table): Likewise.
4739         * function.h (struct expr_status): make x_forced_labels a vector.
4740         * jump.c (rebuild_jump_labels_1): Adjust.
4741         * reload1.c (set_initial_label_offsets): Likewise.
4742         * stmt.c (force_label_rtx): Likewise.
4743         (expand_label): Likewise.
4745 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4747         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4749 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
4751         PR tree-optimization/71077
4752         PR tree-optimization/68542
4753         * fold-const.c (fold_relational_const): Fix folding of
4754         VECTOR_CST comparisons that have a scalar boolean result type.
4755         (selftest::test_vector_folding): New static function.
4756         (selftest::fold_const_c_tests): Call it.
4758 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4760         * doc/extend.texi (SPU Built-in Functions): Remove stale
4761         references to material formerly at IBM and Sony.
4763 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
4765         PR target/77349
4766         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4768 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4770         * diagnostic-show-locus.c
4771         (selftest::test_fixit_consolidation): New function.
4772         (selftest::diagnostic_show_locus_c_tests): Call it.
4773         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4774         constructor based on source_range.
4776 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4778         * diagnostic-color.c (color_dict): Add "fixit-insert" and
4779         "fixit-delete".
4780         (parse_gcc_colors): Update description of default GCC_COLORS.
4781         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4782         (colorizer::set_fixit_insert): New method.
4783         (colorizer::set_fixit_delete): New method.
4784         (colorizer::get_color_by_name): New method.
4785         (colorizer::STATE_FIXIT_INSERT): New constant.
4786         (colorizer::STATE_FIXIT_DELETE): New constant.
4787         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
4788         fields in favor of new field "m_stop_color".  Add fields
4789         "m_fixit_insert" and "m_fixit_delete".
4790         (colorizer::colorizer): Update for above changes.  Replace
4791         colorize_start calls with calls to get_color_by_name.
4792         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4793         STATE_FIXIT_DELETE.  Update for field renamings.
4794         (colorizer::finish_state): Simplify by using m_stop_color,
4795         rather than multiple identical "*_ce" fields.
4796         (colorizer::get_color_by_name): New method.
4797         (layout::print_any_fixits): Print insertions and replacements
4798         using the "fixit-insert" color, and deletions using the
4799         "fixit-delete" color.
4800         * doc/invoke.texi (-fdiagnostics-color): Update description of
4801         default GCC_COLORS, and of the supported capabilities.
4803 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
4805         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4806         current_function_static_stack_size variable with the static
4807         stack frame size of the current function when
4808         flag_stack_usage_info is enabled.
4810 2016-08-26  Nathan Sidwell  <nathan@acm.org>
4812         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4813         assignment inside if condition.
4815 2016-08-26  Richard Biener  <rguenther@suse.de>
4817         PR tree-optimization/69047
4818         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4819         extracts similar to what FRE does.
4820         (non_rewritable_mem_ref_base): Likewise.
4822 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
4824         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4825         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4826         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4827         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4828         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4829         Likewise.
4830         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4831         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4832         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4833         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4834         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4836 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4838         PR target/70473
4839         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4840         reservation duration to 15 cycles.
4841         (cortex_a8_vfp_macs): Likewise.
4842         (cortex_a8_vfp_macd): Likewise.
4843         (cortex_a8_vfp_divs): Likewise.
4844         (cortex_a8_vfp_divd): Likewise.
4846 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4848         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4849         (aarch_macro_fusion_pair_p): Use above to avoid early return.
4851 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4852             Martin Jambhor  <mjambor@suse.cz>
4854         * common.opt: New option -fipa-bit-cp.
4855         * doc/invoke.texi: Document -fipa-bit-cp.
4856         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4857         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4858         * tree-ssa-ccp.h: New header file.
4859         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4860         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4861         Replace all occurences of tree parameter by two new params: signop, int.
4862         (bit_value_unop_1): Change to bit_value_unop and export it.
4863         Replace all occurences of tree parameter by two new params: signop,
4864         int.
4865         (bit_value_binop): Change call from bit_value_binop_1 to
4866         bit_value_binop.
4867         (bit_value_assume_aligned): Likewise.
4868         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4869         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4870         to ccp_finalize.
4871         (ccp_finalize): Skip processing if val->mask == 0.
4872         * ipa-cp.c: Include tree-ssa-ccp.h
4873         (ipcp_bits_lattice): New class.
4874         (ipcp_param_lattice (bits_lattice): New member.
4875         (print_all_lattices): Call ipcp_bits_lattice::print.
4876         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4877         (initialize_node_lattices): Likewise.
4878         (propagate_bits_accross_jump_function): New function.
4879         (propagate_constants_accross_call): Call
4880         propagate_bits_accross_jump_function.
4881         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4882         (ipcp_store_bits_results): New function.
4883         (ipcp_driver): Call ipcp_store_bits_results.
4884         * ipa-prop.h (ipa_bits): New struct.
4885         (ipa_jump_func): Add new member bits of type ipa_bits.
4886         (ipa_param_descriptor): Change decl to decl_or_type.
4887         (ipa_get_param): Change decl to decl_or_type and assert on
4888         PARM_DECL.
4889         (ipa_get_type): New function.
4890         (ipcp_transformation_summary): New member bits.
4891         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4892         (ipa_populate_param_decls): Likewise.
4893         (ipa_dump_param): Likewise.
4894         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4895         function.
4896         (ipa_set_jf_unknown): Set ipa_bits::known to false.
4897         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4898         propagation.
4899         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4900         (ipa_write_jump_function): Add streaming for ipa_bits.
4901         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4902         (write_ipcp_transformation_info): Add streaming for ipa_bits
4903         summary for ltrans.
4904         (read_ipcp_transfomration_info): Add support for reading streamed
4905         ipa_bits.
4906         (ipcp_update_bits): New function.
4907         (ipcp_transform_function): Call ipcp_update_bits.
4909 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4911         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4912         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4914 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
4916         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4918 2016-08-25  Richard Biener  <rguenther@suse.de>
4920         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4921         Only add locations in late dwarf.
4922         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4923         (dwarf2out_early_finish): But do it here.
4925 2016-08-24  Michael Collison  <michael.collison@linaro.org>
4926             Michael Collison  <michael.collison@arm.com>
4928         * config/arm/arm-modes.def: Add new condition code mode CC_V
4929         to represent the overflow bit.
4930         * config/arm/arm.c (maybe_get_arm_condition_code):
4931         Add support for CC_Vmode.
4932         (arm_gen_unlikely_cbranch): New function to generate common
4933         rtl conditional branches for overflow patterns.
4934         * config/arm/arm-protos.h: Add prototype for
4935         arm_gen_unlikely_cbranch.
4936         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4937         addsi3_compareV_upper): New patterns to support signed
4938         builtin overflow add operations.
4939         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4940         New patterns to support unsigned builtin add overflow operations.
4941         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4942         builtin overflow subtract operations,
4943         (usubv<mode>4): New patterns to support unsigned builtin subtract
4944         overflow operations.
4945         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4946         to support builtin overflow negate operations.
4948 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4950         Revert
4951         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4953         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4954         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4955         needed.
4957 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4959         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4960         MULTILIB_OPTIONS should be used.  Small wording fixes.
4961         * genmultilib: Memorize set of all option combinations in
4962         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
4963         found in MULTILIB_OPTIONS by checking if option set is listed in
4964         combination_space.  Output new and existing error message to stderr.
4966 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4968         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4969         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4970         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4971         (MULTILIB_REUSE): Remove reuse rules for option set including
4972         -mfpu=fp-armv8 and -mfpu=vfpv4
4974 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4976         * config/arm/t-rtems: Add vfp multilib.
4978 2016-08-23  Ian Lance Taylor  <iant@golang.org>
4980         * config/s390/s390.c (s390_asm_file_start): Call
4981         default_file_start.
4983 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4985         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
4986         initialization of all 0's to the 0 constant, instead of directly
4987         generating XOR.  Add support for V4SImode vector initialization on
4988         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
4989         initialization.  Change variables used in V4SFmode vector
4990         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
4991         any memory addresses are in index form.  Add support for using
4992         VSPLTH/VSPLTB to initialize vector short and vector char vectors
4993         with all of the same element.
4994         (regno_or_subregno): New helper function to return a register
4995         number for either REG or SUBREG.
4996         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
4997         Use regno_or_subregno where possible.
4998         (rs6000_split_v4si_init_di_reg): New helper function to build up a
4999         DImode value from two SImode values in order to generate V4SImode
5000         vector initialization on 64-bit systems with direct move.
5001         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5002         initialization.
5003         (rtx_is_swappable_p): V4SImode vector initialization insn is not
5004         swappable.
5005         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5006         declaration.
5007         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5008         attributes to initialize V8HImode and V16QImode vectors with the
5009         same element.
5010         (VSX_SPLAT_COUNT): Likewise.
5011         (VSX_SPLAT_SUFFIX): Likewise.
5012         (UNSPEC_VSX_VEC_INIT): New unspec.
5013         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5014         Allow SFmode values to come from Altivec registers.
5015         (vsx_init_v4si): New insn/split for V4SImode vector initialization
5016         on 64-bit systems with direct move.
5017         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5018         vector initializations, to allow V4SImode vector initializations
5019         on 64-bit systems with direct move.
5020         (vsx_splat_v4si): Likewise.
5021         (vsx_splat_v4si_di): Likewise.
5022         (vsx_splat_v4sf): Likewise.
5023         (vsx_splat_v4sf_internal): Likewise.
5024         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5025         register classes.
5026         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5027         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5028         initializing V8HImode and V16QImode vectors with the same
5029         element.
5030         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5031         optimization if -maltivec=be.
5033 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
5035         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5036         attribute for alternatives 3 and 4.
5038 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
5040         * selftest.c (selftest::assert_str_contains): New function.
5041         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5042         * selftest.h (selftest::assert_str_contains): New decl.
5043         (ASSERT_STR_CONTAINS): New macro.
5045 2016-08-23  Richard Biener  <rguenther@suse.de>
5047         PR tree-optimization/77286
5048         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5049         the CFG here.
5050         (vect_transform_loop): Split exit edges of loop and scalar
5051         loop if required and at the appropriate time.
5053 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5055         * explow.c (get_dynamic_stack_size): Take known alignment of stack
5056         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5057         needed.
5058         Correct a typo in a comment.
5060 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5062         * config/s390/s390.md ("*andc_split"): New splitter for and with
5063         complement.
5065 2016-08-23  Richard Biener  <rguenther@suse.de>
5067         PR tree-optimization/27336
5068         * tree-vrp.c (infer_value_range): Handle stmts that can throw
5069         by looking for a non-EH edge.
5070         (process_assert_insertions_for): Likewise.
5072 2016-08-23  Richard Biener  <rguenther@suse.de>
5074         PR middle-end/77305
5075         * statistics.c (statistics_counter_event): Robustify against
5076         NULL current_pass.
5078 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5080         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5081         for targets amdfam10 and barcelona.
5083 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
5085         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5086         (zero_extend<mode>di2): Ditto.
5087         (*zero_extend<mode>si2): Ditto.
5088         (*zero_extendqihi2): Ditto.
5090 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5092         PR middle-end/77269
5093         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5094         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5096 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
5098         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5099         identical consecutive elements.
5100         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
5101         the node's def stmt, avoid printing an unwanted trailing newline by
5102         replacing the call to print_gimple_stmt() with its inlined body and
5103         adjusting it to not set pp_needs_newline and to call pp_flush()
5104         instead of pp_newline_and_flush().
5106 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5108         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5109         (float32_type_node, float64_type_node, float32x_type_node)
5110         (float128x_type_node): New macros.
5111         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5112         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5113         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5114         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5115         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5116         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5117         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5118         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5119         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5120         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5121         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5122         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5123         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5124         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5125         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5126         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5127         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5128         (copysign, fabs, huge_val, inf, nan, nans): Use it.
5129         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5130         and copysign.
5131         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5132         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5133         * doc/extend.texi (Other Builtins): Document these built-in
5134         functions.
5135         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5136         for nan and nans.
5138 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
5140         * doc/install.texi (Binaries): www.opencsw.org now uses https.
5142 2016-08-22  Richard Biener  <rguenther@suse.de>
5144         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5146 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
5148         PR target/77270
5149         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5150         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5151         non-SSE2 athlons only, otherwise prefer SSE prefetches.
5153 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5155         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5156         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5157         (vrp_visit_switch_stmt): Likewise.
5158         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5159         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5160         (vrp_visit_stmt): Use extract_range_from_stmt.
5161         (vrp_visit_phi_node): Use extract_range_from_phi_node.
5163 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5165         * Makefile.in: Add tree-vrp.h to GTFILES.
5166         * gengtype.c (open_base_files): Add tree-vrp.h.
5167         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5168         * builtins.c: Likewise.
5169         * fold-const.c: Likewise.
5170         * gimple-builder.c: Likewise.
5171         * gimple-laddress.c: Likewise.
5172         * hsa-gen.c: Likewise.
5173         * internal-fn.c: Likewise.
5174         * ssa.h: Likewise.
5175         * targhooks.c: Liewise,
5176         * tree-ssa-address.c: Likewise.
5177         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5178         * tree-vrp.c (struct value_range): Move to tree-vrp.h
5179         * tree-vrp.h: New file.
5181 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5183         PR tree-optimization/61839
5184         * tree-vrp.c (two_valued_val_range_p): New.
5185         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5186         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5187         Also Convert VAR BINOP CST where VAR is two-valued to
5188         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5190 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
5192         * diagnostic-show-locus.c
5193         (layout::annotation_line_showed_range_p): New method.
5194         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5195         Reimplement case fixit_hint::REPLACE to cover removals, and
5196         replacements where the range of the replacement isn't one
5197         of the ranges in the rich_location.
5198         (test_one_liner_fixit_replace): Likewise.
5199         (selftest::test_one_liner_fixit_replace_non_equal_range): New
5200         function.
5201         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5202         New function.
5203         (selftest::test_diagnostic_show_locus_one_liner): Call the new
5204         functions.
5205         * diagnostic.c (print_parseable_fixits): Remove case
5206         fixit_hint::REMOVE.
5208 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
5210         PR target/77270
5211         * config/i386/i386.c (ix86_option_override_internal): Remove
5212         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5213         Enable SSE prefetch also for TARGET_PREFETCHWT1.
5214         Do not try to enable TARGET_PRFCHW ISA flag here.
5215         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5216         Rewrite expander function body.
5217         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5219 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
5221         PR c/32187
5222         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5223         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5224         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5225         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5226         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5227         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5228         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5229         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5230         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5231         tree_index values.
5232         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5233         macros.
5234         (struct floatn_type_info): New structure type.
5235         (floatn_nx_types): New variable declaration.
5236         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5237         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5238         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5239         * tree.c (floatn_nx_types): New variable.
5240         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5241         corresponding complex types.
5242         * target.def (floatn_mode): New hook.
5243         * targhooks.c: Include "real.h".
5244         (default_floatn_mode): New function.
5245         * targhooks.h (default_floatn_mode): New prototype.
5246         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5247         types.
5248         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5249         effective-target and dg-add-options keywords.
5250         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5251         Document new effective-target keywords.
5252         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
5253         * doc/tm.texi: Regenerate.
5254         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
5255         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
5256         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
5257         18661-3.
5258         * real.h (struct real_format): Add field ieee_bits.
5259         * real.c (ieee_single_format, mips_single_format)
5260         (motorola_single_format, spu_single_format, ieee_double_format)
5261         (mips_double_format, motorola_double_format)
5262         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
5263         (ieee_extended_intel_128_format)
5264         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
5265         (mips_extended_format, ieee_quad_format, mips_quad_format)
5266         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
5267         (decimal_double_format, decimal_quad_format, ieee_half_format)
5268         (arm_half_format, real_internal_format: Initialize ieee_bits
5269         field.
5270         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
5271         float128_type_node.  Set float80_type_node to float64x_type_node
5272         if appropriate and long_double_type_node not appropriate.
5273         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
5274         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
5275         Initialize ieee_bits field.
5276         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
5277         (rs6000_init_builtins): Set ieee128_float_type_node to
5278         float128_type_node.
5279         (rs6000_floatn_mode): New function.
5281 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
5283         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5284         _rdseed64_step): Uglify argument names and/or local variable names
5285         in inline functions.
5286         * config/i386/rtmintrin.h (_xabort): Likewise.
5287         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
5288         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
5289         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
5290         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
5291         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
5292         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
5293         _mm_maskz_ternarylogic_epi32): Likewise.
5294         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
5295         __lwpins32, __lwpins64): Likewise.
5296         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
5297         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
5298         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
5299         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
5300         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
5301         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
5302         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
5303         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
5304         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
5305         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
5306         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
5307         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
5308         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
5309         _mm256_mask_i64gather_epi32): Likewise.
5310         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5311         * config/i386/ia32intrin.h (__writeeflags): Likewise.
5312         * config/i386/pkuintrin.h (_wrpkru): Likewise.
5313         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
5314         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
5315         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
5316         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
5317         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
5318         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
5319         _mm512_mask_prefetch_i64scatter_ps): Likewise.
5320         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5321         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
5322         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
5323         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
5324         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
5325         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
5326         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
5327         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
5329         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
5330         returning void.
5331         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
5332         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
5333         Likewise.
5334         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
5335         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
5336         function name.
5337         (_rdpkru_u32): Add space after function name.
5339         * config/i386/t-i386 (i386-c.o): Don't depend on
5340         i386-builtin-types.inc.
5341         (i386.o): Depend on i386-builtin-types.inc.
5343 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
5345         PR target/77281
5346         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
5347         Use const_vec_duplicate to check for duplicated elements.
5349 2016-08-19  Richard Biener  <rguenther@suse.de>
5351         PR tree-optimization/77290
5352         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5353         Fix flag_tree_parallelize_loops check.
5355 2016-08-19  Richard Biener  <rguenther@suse.de>
5357         * match.pd (x | 0 -> x): Add.
5359 2016-08-19  Richard Biener  <rguenther@suse.de>
5361         PR tree-optimization/77286
5362         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5363         Deal with virtual PHIs being out-of-order.
5365 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5367         * doc/invoke.texi (fverbose-asm): Note that source code lines
5368         are emitted, and provide an example.
5369         * final.c (asm_show_source): New function.
5370         (final_scan_insn): Call asm_show_source.
5372 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5374         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
5375         param with diagnostic_kind.
5376         (class colorizer): Similarly replace field m_diagnostic with
5377         m_diagnostic_kind.
5378         (colorizer::colorizer): Replace diagnostic
5379         param with diagnostic_kind.
5380         (colorizer::begin_state): Update for above field change.
5381         (layout::layout): Replace diagnostic param with rich_location *
5382         and diagnostic_kind.
5383         (diagnostic_show_locus): Replace diagnostic param with richloc
5384         and diagnostic_kind.
5385         (class selftest::test_diagnostic_context): New class.
5386         (selftest::test_diagnostic_show_locus_unknown_location): New
5387         function.
5388         (selftest::test_one_liner_simple_caret): New function.
5389         (selftest::test_one_liner_caret_and_range): New function.
5390         (selftest::test_one_liner_multiple_carets_and_ranges): New
5391         function.
5392         (selftest::test_one_liner_fixit_remove): New function.
5393         (selftest::test_one_liner_fixit_replace): New function.
5394         (selftest::test_diagnostic_show_locus_one_liner): New function.
5395         (selftest::diagnostic_show_locus_c_tests): Call the new test
5396         functions.
5397         * diagnostic.c (diagnostic_initialize): Initialize
5398         colorize_source_p, show_ruler_p and parseable_fixits_p.
5399         (default_diagnostic_finalizer): Update for change to
5400         diagnostic_show_locus.
5401         (diagnostic_append_note): Likewise.
5402         * diagnostic.h (diagnostic_show_locus): Replace
5403         const diagnostic_info * param with location * and diagnostic_t.
5405 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5407         * input.c (saved_line_table): New global.
5408         (class selftest::temp_line_table): Rename to line_table_test and
5409         move declaration to selftest.h, and drop field m_old_line_table.
5410         (selftest::temp_line_table::temp_line_table): Rename ctor to...
5411         (selftest::line_table_test::line_table_test): ...this.  Add a
5412         default ctor.  Store current value of line_table within
5413         saved_line_table.
5414         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5415         (selftest::line_table_test::~line_table_test): ...this, and
5416         restore line_table from the saved_line_table, rather than
5417         m_old_line_table.
5418         (selftest::test_accessing_ordinary_linemaps): Update for above
5419         renaming.
5420         (selftest::test_lexer): Likewise.
5421         (struct selftest::lexer_test): Likewise.
5422         (selftest::lexer_test::lexer_test): Likewise.
5423         (selftest::input_c_tests): Move the looping over test cases from
5424         here into...
5425         (selftest::for_each_line_table_case): New function.
5426         * input.h (saved_line_table): New decl.
5427         * selftest.h (struct selftest::line_table_case): New forward decl.
5428         (class selftest::line_table_test): New class, moved here from
5429         selftest::temp_line_table in input.c, and renamed.
5430         (selftest::for_each_line_table_case): New decl.
5432 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5434         PR target/72839
5435         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5437 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5439         PR middle-end/70895
5440         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5441         enclosing parallel construct for reduction variables on OpenACC loop
5442         directives.
5444 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
5446         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5447         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5448         -gdwarf-3.
5449         (function_to_dwarf_procedure): Update comment.
5451 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5453         * input.c (diagnostics_file_cache_forcibly_evict_file): New
5454         function.
5455         * input.h (diagnostics_file_cache_forcibly_evict_file): New
5456         declaration.
5457         * selftest.c (selftest::temp_source_file::~temp_source_file):
5458         Evict m_filename from the diagnostic file cache.
5460 2016-08-18  Richard Biener  <rguenther@suse.de>
5462         * tree-pass.h (make_pass_materialize_all_clones): Declare.
5463         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5464         make_pass_materialize_all_clones): New simple IPA pass encapsulating
5465         clone materialization.
5466         * passes.def (all_late_ipa_passes): Start with
5467         pass_materialize_all_clones.
5468         * cgraphunit.c (symbol_table::compile): Remove call to
5469         materialize_all_clones.
5470         * tree-into-ssa.c: Include statistics.h.
5471         (update_ssa): Count number of times we do incremental/rewrite
5472         SSA update.
5474 2016-08-18  Richard Biener  <rguenther@suse.de>
5476         PR tree-optimization/77282
5477         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5478         When doing auto-parallelizing also prevent use of PHIs that
5479         carry dependences across loop backedges.
5481 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
5482             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5484         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5486 2016-08-18  Richard Biener  <rguenther@suse.de>
5488         * ssa-iterators.h (ssa_vuse_operand): New inline.
5489         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5490         (predicate_all_scalar_phis): Use remove_phi_node to remove
5491         phi nodes predicated.  Delay removing virtual PHIs.
5492         (predicate_mem_writes): Update virtual operands.
5493         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
5494         (tree_if_conversion): Do not rewrite virtual SSA form.
5495         * tree-phinodes.c (release_phi_node): Make static.
5496         * tree-phinodes.h (release_phi_node): Remove.
5498 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
5500         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5501         codes that appear in bdesc_* arrays, instead include i386-builtin.def
5502         twice to define those.
5503         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5504         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5505         bdesc_multi_arg): Define by including i386-builtin.def the third time.
5506         * config/i386/i386-builtin.def: New file.
5508 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
5510         * input.c (get_source_range_for_char): Rename to...
5511         (selftest::get_source_range_for_char): ...this, and move within
5512         the #if CHECKING_P guard.
5513         (get_num_source_ranges_for_substring): Rename to...
5514         (selftest::get_num_source_ranges_for_substring): ...this, move
5515         within the #if CHECKING_P guard, and make static.
5516         (selftest::assert_num_substring_ranges): Initialize
5517         actual_num_ranges.
5519 2016-08-18  Alan Modra  <amodra@gmail.com>
5521         PR rtl-optimization/72771
5522         * reload.c (find_reloads): Don't assume that a subreg mem is OK
5523         when find_reloads_toplev returns address_reloaded==-1.
5524         (alternative_allows_const_pool_ref): Update comment.
5526 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
5528         PR tree-optimization/71752
5529         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5530         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5532 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
5534         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5535         instead of testing ECF_NORETURN bit in gimple_call_flags.
5536         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5537         * predict.c (tree_bb_level_predictions): Likewise.
5538         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5540         PR middle-end/77259
5541         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5542         turning a call into __builtin_unreachable-like noreturn call, adjust
5543         gimple_call_set_fntype.
5544         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5545         gimple_call_fntype has void return type.
5547 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
5549         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5550         maybe_lookup_decl, to handle nested acc loop directives.
5552 2016-08-17  Richard Biener  <rguenther@suse.de>
5554         PR tree-optimization/76490
5555         * tree-vrp.c (update_value_range): Preserve overflow infinities
5556         when intersecting with ranges from get_range_info.
5557         (operand_less_p): Handle overflow infinities correctly.
5558         (value_range_constant_singleton): Use vrp_operand_equal_p
5559         to handle overflow max/min correctly.
5560         (vrp_valueize): Likewise.
5561         (union_ranges): Likewise.
5562         (intersect_ranges): Likewise.
5563         (vrp_visit_phi_node): Improve iteration limitation to only
5564         apply when we'll possibly re-visit the PHI via a changed argument
5565         on the backedge.
5567 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5569         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5570         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5571         rather than those that should not be built.
5573 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
5575         PR target/66488
5576         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5578 2016-08-17  Richard Biener  <rguenther@suse.de>
5580         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5581         (verify_vssa): New function verifying virtual SSA form.
5582         (verify_ssa): Call it.
5583         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5584         Do not apply loop-closed SSA handling to virtuals.
5585         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5586         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5587         when rewriting their symbol.
5588         (prepare_def_site_for): Likewise.
5589         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5590         operands of moved stmts.
5592 2016-08-17  Richard Biener  <rguenther@suse.de>
5594         PR tree-optimization/23855
5595         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5596         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5597         find guards to hoist.  Do not update SSA form but rewrite virtuals
5598         into loop closed SSA.
5599         (find_loop_guard): Adjust to skip already hoisted guards.  Do
5600         not mark virtuals for renaming or update SSA form.
5602 2016-08-17  Martin Liska  <mliska@suse.cz>
5604         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5605         a LONG_LONG_TYPE_SIZE comparison.
5606         * gcov-io.h: Remove macro definitions.
5607         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5608         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5609         comparison.
5611 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5613         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5614         that builtins not mentioned in bdesc_* arrays come first, then
5615         the ones mentioned in bdesc_* arrays in the order they appear in
5616         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5617         IX86_BUILTIN__BDESC_*_LAST enumerator.
5618         (bdesc_mpx): Fix up a comment typo.
5619         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5620         __builtin_ia32_vpcomneu[bwdq] builtins.
5621         (BDESC_VERIFY, BDESC_VERIFYS): Define.
5622         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5623         enum ix86_builtins ordering.
5624         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5625         for direct bdesc_* array member access instead of searching all the
5626         arrays until an fcode match is found.
5628 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
5630         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5631         pattern as define_insn_and_split.  Split insn before reload to
5632         ashl<mode>3_1.
5633         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
5634         <shift_insn><mode>3_1.
5635         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
5636         <rotate_insn><mode>3_1.
5638 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5640         PR c/72857
5641         * input.c (get_source_range_for_substring): Rename to...
5642         (get_source_location_for_substring): ...this, adding param
5643         "caret_idx", and converting output param from source_range * to
5644         location_t *.
5645         (get_source_range_for_char): New function.
5646         (get_num_source_ranges_for_substring): Update comment to reflect
5647         above renaming.
5648         (assert_char_at_range): Update to use get_source_range_for_char
5649         rather than get_source_range_for_substring.
5650         (test_lexer_string_locations_concatenation_2): Likewise.
5651         * substring-locations.h (get_source_range_for_substring): Rename
5652         to...
5653         (get_source_location_for_substring): ...this, and adding param
5654         "caret_idx", and converting output param from source_range * to
5655         location_t *.
5657 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5659         * input.c (class selftest::temp_source_file): Move to
5660         selftest.h.
5661         (selftest::temp_source_file::temp_source_file): Move to
5662         selftest.c.
5663         (selftest::temp_source_file::~temp_source_file): Likewise.
5664         * selftest.c (selftest::temp_source_file::temp_source_file): Move
5665         here from input.c.
5666         (selftest::temp_source_file::~temp_source_file): Likewise.
5667         * selftest.h (class selftest::temp_source_file): Move here from
5668         input.c
5670 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5672         PR target/71910
5673         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
5674         inlining, add cgraph edge for the added __builtin_unreachable call.
5676         PR middle-end/67485
5677         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5678         only cast it to SHWI for the final comparison.
5680 2016-08-16  Martin Liska  <mliska@suse.cz>
5682         PR gcov-profile/36412
5683         * doc/gcov.texi: Document --hash-filenames(-x).
5684         * gcov.c (print_usage): Add the option.
5685         (process_args): Process the option, sort options alphabetically.
5686         (md5sum_to_hex): New function.
5687         (make_gcov_file_name): Do the md5sum and append it to a
5688         filename.
5690 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5692         PR tree-optimization/69848
5693         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5694         and swtich operands to avoid additional NOT instruction.
5695         (vcond<v_cmp_mixed><mode>): Ditto.
5696         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5698 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5700         * doc/install.texi (*-*-solaris2*): Adjust latest change.
5702 2016-08-16  Richard Biener  <rguenther@suse.de>
5704         PR tree-optimization/76783
5705         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
5706         BB visited flags at start.
5708 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5710         PR tree-optimization/72817
5711         PR tree-optimization/73450
5712         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5713         multiple_of_p for adjusted IV.base.
5715 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
5717         PR target/72867
5718         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5719         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5720         for !flag_finite_math_only or flag_signed_zeros.
5721         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5722         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
5723         depend on flag_finite_math_only.
5724         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5725         New insn pattern.
5726         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5727         (*ieee_smin<mode>3): Ditto.
5728         (*ieee_smax<mode>3): Ditto.
5729         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5730         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5731         flag_signed_zeros.
5732         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
5733         depend on flag_finite_math_only.
5734         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5735         (*mmx_<code>v2sf3): Remove.
5736         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5737         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5738         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5740 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
5742         PR rtl-optimization/73650
5743         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5744         it is not a simple move.
5746 2016-08-15  Martin Liska  <mliska@suse.cz>
5748         PR driver/72765
5749         * gcc.c (do_spec_1): Call save_string with the right size.
5750         (save_string): Do an assert about string we copy.
5752 2016-08-15  Richard Biener  <rguenther@suse.de>
5754         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5755         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5756         TV_MACH_DEP.
5757         (pass_data_stv): Likewise.
5759 2016-08-15  Richard Biener  <rguenther@suse.de>
5761         PR tree-optimization/73434
5762         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5763         TBAA info on the base when forwarding a non-invariant address.
5765 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
5767         * dwarf2out.c (struct checksum_attributes): Add
5768         at_string_length_bit_size and at_string_length_byte_size fields.
5769         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5770         and DW_AT_string_length_byte_size.
5771         (die_checksum_ordered): Handle at_string_length_bit_size and
5772         at_string_length_byte_size.
5773         (gen_array_type_die): For dwarf_version >= 5 emit
5774         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5775         (adjust_string_types): For dwarf_version >= 5 remove
5776         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5777         (resolve_addr): Likewise.
5779         PR debug/71906
5780         * dwarf2out.c (string_types): New variable.
5781         (gen_array_type_die): Change early_dwarf handling of
5782         DW_AT_string_length, create DW_OP_call4 referencing the
5783         length var temporarily.  Handle parameters that are pointers
5784         to string length.
5785         (adjust_string_types): New function.
5786         (gen_subprogram_die): Temporarily set string_types to local var,
5787         call adjust_string_types if needed.
5788         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5789         New functions.
5790         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5792 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
5794         * doc/install.texi (*-*-solaris2*): Fix version number and document
5795         requirement on GNU make for building libjava with the Solaris linker.
5797 2016-08-15  Martin Liska  <mliska@suse.cz>
5798             Jakub Jelinek  <jakub@redhat.com>
5800         PR tree-optimization/72824
5801         * tree-loop-distribution.c (const_with_all_bytes_same)
5802         <case VECTOR_CST>: Fix a typo.
5804 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
5806         PR target/76342
5807         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5808         Renamed from _mm512_undefined_si512.
5809         (_mm_undefined_si512): New definition.
5811 2016-08-13  Richard Biener  <rguenther@suse.de>
5813         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5814         into PHIs and update the lattice for its def.
5816 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5818         PR c/71512
5819         * ubsan.c (instrument_si_overflow): Pass true instead of false
5820         to gsi_replace.
5821         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5822         of bbs.  Return TODO_cleanup_cfg if any returned true.
5824 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5826         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5827         ISA 3.0 MTVSRDD instruction.
5828         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5829         vecperm.
5831 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5833         PR tree-optimization/71083
5834         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5835         bitfield access when possible.
5837 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
5839         PR middle-end/71654
5840         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5841         sign-changing cast from a shorter unsigned type to a wider
5842         signed type.
5844 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5846         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5847         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5848         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5850 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5852         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5853         Correct costs for vec_construct.
5855 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
5857         PR tree-optimization/69848
5858         * tree-vectorizer.h (enum vect_def_type): New condition reduction
5859         type CONST_COND_REDUCTION.
5860         * tree-vect-loop.c (vectorizable_reduction): Support new condition
5861         reudction type CONST_COND_REDUCTION.
5863 2016-08-12  Richard Biener  <rguenther@suse.de>
5865         PR tree-optimization/57326
5866         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5867         returning an SSA name.
5868         (phi_translate_1): When fully_constant_expression returns a NAME
5869         make sure we have a leader for it.
5871 2016-08-12  Martin Liska  <mliska@suse.cz>
5872             Adam Fineman  <afineman@afineman.com>
5874         * gcov.c (process_file): Create .gcov file when .gcda
5875         file is missing.
5877 2016-08-12  Marek Polacek  <polacek@redhat.com>
5879         PR c/7652
5880         * alias.c (find_base_value): Adjust fall through comment.
5881         * cfgexpand.c (expand_debug_expr): Likewise.
5882         * combine.c (find_split_point): Likewise.
5883         (expand_compound_operation): Likewise.  Add FALLTHRU.
5884         (make_compound_operation): Adjust fall through comment.
5885         (canon_reg_for_combine): Add FALLTHRU.
5886         (force_to_mode): Adjust fall through comment.
5887         (simplify_shift_const_1): Likewise.
5888         (simplify_comparison): Likewise.
5889         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5890         FALLTHRU.
5891         * config/aarch64/predicates.md: Likewise.
5892         * config/i386/i386.c (function_arg_advance_32): Likewise.
5893         (ix86_gimplify_va_arg): Likewise.
5894         (print_reg): Likewise.
5895         (ix86_print_operand): Likewise.
5896         (ix86_build_const_vector): Likewise.
5897         (ix86_expand_branch): Likewise.
5898         (ix86_sched_init_global): Adjust fall through comment.
5899         (ix86_expand_args_builtin): Add FALLTHRU.
5900         (ix86_expand_builtin): Likewise.
5901         (ix86_expand_vector_init_one_var): Likewise.
5902         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5903         (rs6000_adjust_cost): Likewise.
5904         (insn_must_be_first_in_group): Likewise.
5905         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
5906         * dbxout.c (dbxout_symbol): Adjust fall through comment.
5907         * df-scan.c (df_uses_record): Likewise.
5908         * dojump.c (do_jump): Add FALLTHRU.
5909         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
5910         comment.
5911         (resolve_args_picking_1): Adjust fall through comment.
5912         (loc_list_from_tree_1): Likewise.
5913         * expmed.c (make_tree): Likewise.
5914         * expr.c (expand_expr_real_2): Add FALLTHRU.
5915         (expand_expr_real_1): Likewise.  Adjust fall through comment.
5916         * fold-const.c (const_binop): Adjust fall through comment.
5917         (fold_truth_not_expr): Likewise.
5918         (fold_cond_expr_with_comparison): Add FALLTHRU.
5919         (fold_binary_loc): Likewise.
5920         (contains_label_1): Adjust fall through comment.
5921         (multiple_of_p): Likewise.
5922         * gcov-tool.c (process_args): Add FALLTHRU.
5923         * genattrtab.c (check_attr_test): Likewise.
5924         (write_test_expr): Likewise.
5925         * genconfig.c (walk_insn_part): Likewise.
5926         * genpreds.c (validate_exp): Adjust fall through comment.
5927         (needs_variable): Likewise.
5928         * gensupport.c (get_alternatives_number): Add FALLTHRU.
5929         (subst_dup): Likewise.
5930         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5931         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5932         (gimplify_scan_omp_clauses): Add FALLTHRU.
5933         (goa_stabilize_expr): Likewise.
5934         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5935         through comment.
5936         * hsa-gen.c (get_address_from_value): Likewise.
5937         * ipa-icf.c (sem_function::hash_stmt): Likewise.
5938         * ira.c (ira_setup_alts): Add FALLTHRU.
5939         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5940         comment.
5941         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5942         * opts.c (common_handle_option): Likewise.
5943         * read-rtl.c (read_rtx_code): Likewise.
5944         * real.c (round_for_format): Likewise.
5945         * recog.c (asm_operand_ok): Likewise.
5946         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5947         * reload1.c (set_label_offsets): Likewise.
5948         (eliminate_regs_1): Likewise.
5949         (reload_reg_reaches_end_p): Likewise.
5950         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5951         (rtx_cost): Likewise.
5952         * sched-rgn.c (is_exception_free): Likewise.
5953         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5954         * stor-layout.c (int_mode_for_mode): Likewise.
5955         * toplev.c (print_to_asm_out_file): Likewise.
5956         (print_to_stderr): Likewise.
5957         * tree-cfg.c (gimple_verify_flow_info): Likewise.
5958         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5959         (chrec_fold_multiply): Likewise.
5960         (evolution_function_is_invariant_rec_p): Likewise.
5961         (for_each_scev_op): Likewise.
5962         * tree-data-ref.c (siv_subscript_p): Likewise.
5963         (get_references_in_stmt): Likewise.
5964         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5965         (substitute_in_expr): Likewise.
5966         (type_cache_hasher::equal): Likewise.
5967         (walk_type_fields): Likewise.
5968         * var-tracking.c (adjust_mems): Add FALLTHRU.
5969         (set_dv_changed): Adjust fall through comment.
5970         * varasm.c (default_function_section): Add FALLTHRU.
5972 2016-08-12  Marek Polacek  <polacek@redhat.com>
5974         PR c/7652
5975         * tree-complex.c (expand_complex_division): Add missing break.
5977 2016-08-12  Richard Biener  <rguenther@suse.de>
5979         * passes.c (execute_todo): Do not push/pop TV_TODO.
5980         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
5981         (execute_one_pass): Likewise.
5982         * common.opt (ftime-report-details): New switch.
5983         * doc/invoke.texi (ftime-report-details): Document.
5984         * timevar.h (timer::print_row): Adjust signature.
5985         (timer::all_zero): New static helper.
5986         (timer::child_map_t): New typedef.
5987         (timer::time_var_def): Add children field.
5988         * timevar.c (timer::named_items::print): Adjust.
5989         (timer::~timer): Free timevar recorded children.
5990         (timer::pop_internal): When -ftime-report-details record
5991         time spent in sub-timevars.
5992         (timer::print_row): Adjust.
5993         (timer::print): Print sub-timevar stats, use all_zero.
5994         * timevar.def (TV_TODO): Remove.
5996 2016-08-12  Richard Biener  <rguenther@suse.de>
5998         PR tree-optimization/72851
5999         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
6000         worklists to use bitmaps indexed in execution order.
6001         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6002         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6003         (cfg_blocks): Make a bitmap.
6004         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6005         New globals.
6006         (cfg_blocks_empty_p): Adjust.
6007         (cfg_blocks_add): Likewise.
6008         (cfg_blocks_get): Likewise.
6009         (add_ssa_edge): Likewise.
6010         (add_control_edge): Likewise.
6011         (simulate_stmt): Likewise.
6012         (process_ssa_edge_worklist): Likewise.
6013         (simulate_block): Likewise.
6014         (ssa_prop_init): Compute PRE order and stmt UIDs.
6015         (ssa_prop_fini): Adjust.
6016         (ssa_propagate): Adjust.
6018 2016-08-12  Richard Biener  <rguenther@suse.de>
6020         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6021         the currently executable edges have fixed ranges.  Always
6022         go through update_value_range.
6024 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
6026         PR debug/63240
6027         * langhooks-def.h
6028         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6029         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6030         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6031         (LANG_HOOKS_DECLS): Add it.
6032         * langhooks.h (struct lang_hooks_for_decls): Add
6033         function_decl_defaulted.  Const_tree-ify
6034         function_decl_explicit_p and function_decl_deleted_p.
6035         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6036         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6037         also at strict DWARF v5.
6039         PR debug/55641
6040         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6041         TYPE_QUAL_CONST in reference-typed decls.
6043         PR debug/49366
6044         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6045         in DW_OP_pieces, just enough to handle pointers to member
6046         functions.
6047         (gen_remaining_tmpl_value_param_die_attribute): Use a location
6048         expression on DWARFv5 if a constant value doesn't work.
6050 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
6052         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6053         * selftest.c (selftest::test_assertions): New function.
6054         (selftest::selftest_c_tests): New function.
6055         * selftest.h (selftest::selftest_c_tests): New declaration.
6057 2016-08-11  Richard Biener  <rguenther@suse.de>
6058             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6060         PR rtl-optimization/72855
6061         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6063 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6065         PR target/72863
6066         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6067         (vsx_store_<mode>): Likewise.
6069 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
6071         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6072         TImode CONST_WIDE_INT store.
6073         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6075 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
6077         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6078         mode if unaligned SSE load and store are optimal.
6080 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6082         PR tree-optimization/71083
6083         * tree-predcom.c (ref_at_iteration): Correctly align the
6084         reference type.
6086 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6088         * config/s390/s390-builtin-types.def: Add INT128 types.
6089         * config/s390/s390-builtins.def: Add INT128 variants for the add
6090         sub low-level builtins dealing with TImode.
6091         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6092         via subreg when expanding a builtin.
6093         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6094         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6095         Fix comment.
6096         * config/s390/vecintrin.h: Adjust builtin names accordingly.
6097         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6098         ("vec_addc<mode>", "vec_addc_u128"): Merge to
6099         "vacc<bhfgq>_<mode>".
6100         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6101         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6102         ("vec_subc<mode>", "vec_subc_u128"): Merge to
6103         "vscbi<bhfgq>_<mode>".
6104         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6105         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6107 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6109         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6111 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
6113         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6114         unused declaration.
6115         (vcond<v_cmp_mixed><mode>): Ditto.
6116         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6118 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
6120         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6121         variable explicitly, also assert on it before use.
6123 2016-08-11  Richard Biener  <rguenther@suse.de>
6125         PR tree-optimization/72772
6126         * cfgloopmanip.c (create_preheader): Use split_edge if there
6127         is a single loop entry, avoiding degenerate PHIs.
6129 2016-08-11  Richard Biener  <rguenther@suse.de>
6131         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6132         unconditional TODO_cleanup_cfg.
6133         (pass_thread_jumps::execute): Initialize loops, perform a CFG
6134         cleanup only if we threaded a jump.
6136 2016-08-11  Alan Modra  <amodra@gmail.com>
6138         PR target/71680
6139         * lra-constraints.c (simplify_operand_subreg): Allow subreg
6140         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6141         slow.  Emit two reloads for slow mem case, first loading in
6142         fast innermode, then converting to required mode.
6144 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6146         * config/rs6000/altivec.h (vec_extract_exp): New macro.
6147         (vec_extract_sig): New macro.
6148         (vec_insert_exp): New macro.
6149         (vec_test_data_class): New macro.
6150         (scalar_extract_exp): New macro.
6151         (scalar_extract_sig): New macro.
6152         (scalar_insert_exp): New macro.
6153         (scalar_test_data_class): New macro.
6154         (scalar_test_neg): New macro.
6155         (scalar_cmp_exp_gt): New macro.
6156         (scalar_cmp_exp_lt): New macro.
6157         (scalar_cmp_exp_eq): New macro.
6158         (scalar_cmp_exp_unordered): New macro.
6159         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6160         to enforce constraint that operand is a 7-bit unsigned literal.
6161         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6162         for power9 built-ins.
6163         (BU_P9V_VSX_2): Likewise.
6164         (BU_P9V_64BIT_VSX_2): Likewise.
6165         (VSEEDP): Add scalar extract exponent support.
6166         (VSEESP): Add scalar extract signature support.
6167         (VSTDCNDP): Add scalar test negative support.
6168         (VSTDCNSP): Likewise.
6169         (VSIEDP): Add scalar insert exponent support.
6170         (VSCEDPGT): Add scalar compare exponent greater than support.
6171         (VSCEDPLT): Add scalar compare exponent less than support.
6172         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6173         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6174         (VSTDCDP): Add scalar test data class support.
6175         (VSTDCSP): Likewise.
6176         (VSEEDP): Add overload support for scalar extract exponent
6177         operation.
6178         (VSESDP): Add overload support for scalar extract signature
6179         operation.
6180         (VSTDCN): Add overload support for scalar test negative
6181         operation.
6182         (VSTDCNDP): Add overload support for scalar test negative
6183         operation.
6184         (VSTDCNSP): Add overload support for scalar test negative
6185         operation.
6186         (VSIEDP): Add overload support for scalar insert exponent
6187         operation.
6188         (VSTDC): Add overload support for scalar test data class
6189         operation.
6190         (VSTDCDP): Add overload support for scalar test data class
6191         operation.
6192         (VSTDCSP): Add overload support for scalar test data class
6193         opreation.
6194         (VSCEDPGT): Add overload support for scalar compare exponent
6195         greater than operation.
6196         (VSCEDPLT): Add overload support for scalar compare exponent
6197         less than operation.
6198         (VSCEDPEQ): Add overload support for scalar compare exponent
6199         test-for-equality operation.
6200         (VSCEDPUO): Add overload support for scalar compare exponent
6201         test-for-unordered operation.
6202         (VEEDP): Add vector extract exponent support.
6203         (VEESP): Likewise.
6204         (VESDP): Add vector extract significand support.
6205         (VESSP): Likewise.
6206         (VIEDP): Add vector insert exponent support.
6207         (VIESP): Likewise.
6208         (VTDCDP): Add vector test data class support.
6209         (VTDCSP): Likewise.
6210         (VES): Add overload support for vector extract significand operation.
6211         (VESDP): Likewise.
6212         (VESSP): Likewise
6213         (VEE): Add overload support for vector extract exponent operation.
6214         (VEEDP): Likewise.
6215         (VEESP): Likewise.
6216         (VTDC): Add overload support for vector test data class operation.
6217         (VTDCDP): Likewise.
6218         (VTDCSP): Likewise.
6219         (VIE): Add overload support for vector insert exponent operation.
6220         (VIEDP): Likewise.
6221         (VIESP): Likewise.
6222         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6223         overloaded binary floating point functions.
6224         (altivec_resolve_overloaded_builtin): Improve error messages to
6225         distinguish between functions not supported in the current
6226         compiler configuration and functions that were invoked with an
6227         invalid parameter combination, and include the built-in function
6228         name in both error messages.
6229         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6230         New prototype.
6231         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6232         function.
6233         (rs6000_expand_binop_builtin): Add check to enforce that argument
6234         2 of the test data class operations is a 7-bit unsigned literal.
6235         (rs6000_invalid_builtin): Add code to issue an error message if a
6236         built-in function that requires the power9_vector and -m32
6237         command-line options is compiled without these options.
6238         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6239         (UNSPEC_VSX_SXSIGDP): New value.
6240         (UNSPEC_VSX_SXSIGPDP): New value.
6241         (UNSPEC_VSX_SIEXPDP): New value.
6242         (UNSPEC_VSX_SCMPEXPDP): New value.
6243         (UNSPEC_VSX_STSTDC): New value.
6244         (UNSPEC_VSX_VXEXP): New value.
6245         (UNSPEC_VSX_VXSIG): New value.
6246         (UNSPEC_VSX_VIEXP): New value.
6247         (UNSPEC_VSX_VTSTDC): New value.
6248         (xsxexpdp): New insn for scalar extract exponent.
6249         (xsxsigdp): New insn for scalar extract significand.
6250         (xsiexpdp): New insn for scalar insert exponent.
6251         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6252         (*xscmpexpdp): New insn for scalar compare exponents.
6253         (xststdc<Fvsx): New expansion for both single- and
6254         double-precision scalar test data class operations.
6255         (xststdcneg<Fvsx>): New expansion for both single- and
6256         double-precision scalar test for negative value operations.
6257         (*xststdc<Fvsx>): New insn for scalar test data class
6258         operation.
6259         (xvxexp<VSs>): New insn for single- and double-precision
6260         vector extract exponent operation.
6261         (xvxsig<VSs>): New insn for single- and double-precision
6262         vector extract significand operation.
6263         (xviexp<VSs>): New insn for single- and double-precision
6264         vector insert exponent operation.
6265         (xvtstdc<VSs>): New insn for single- and double-precision
6266         vector test data class operation.
6267         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6268         built-in functions to represent the Power9 binary floating-point
6269         support instructions.
6271 2016-08-10  bin cheng  <bin.cheng@arm.com>
6273         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
6275 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
6276             Renlin Li  <renlin.li@arm.com>
6277             Bin Cheng  <bin.cheng@arm.com>
6279         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
6280         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
6281         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
6282         (aarch64_vcond_internal<mode><mode>): Delete pattern.
6283         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
6284         (vcond<v_cmp_result><mode>): Ditto.
6285         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
6286         (vcondu<mode><mode>): Ditto.
6287         (vcond<v_cmp_mixed><mode>): New pattern.
6288         (vcondu<mode><v_cmp_mixed>): New pattern.
6289         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
6290         of aarch64_vcond_internal.
6292 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
6293             Renlin Li  <renlin.li@arm.com>
6294             Bin Cheng  <bin.cheng@arm.com>
6296         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
6297         (vec_cmp<mode><v_cmp_result>): New pattern.
6298         (vec_cmpu<mode><mode>): New pattern.
6299         (vcond_mask_<mode><v_cmp_result>): New pattern.
6301 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
6303         PR tree-optimization/71734
6304         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
6305         REF_LOOP, invoke ref_indep_loop_p_1.
6306         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
6307         to ref_indep_loop_p.
6308         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
6309         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
6310         is inside LOOP, do not cache dpendence value for loops with
6311         non-zero SAFELEN.
6312         (ref_indep_loop_p_2): Delete function.
6313         (can_sm_ref_p): Pass LOOP as additional argument to
6314         ref_indep_loop_p.
6316 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6318         PR target/72853
6319         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
6320         being an offsettable address.
6322 2016-08-10  Martin Liska  <mliska@suse.cz>
6324         PR gcov-profile/58306
6325         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
6326         atomic variants of profile update functions.
6328 2016-08-10  Martin Liska  <mliska@suse.cz>
6330         Cherry picked (and modified) from google-4_7 branch
6331         2012-12-26  Rong Xu  <xur@google.com>
6332         * common.opt (fprofile-update): Add new flag.
6333         * coretypes.h: Define enum profile_update.
6334         * doc/invoke.texi: Document -fprofile-update.
6335         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
6336         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
6337         * tree-profile.c (gimple_init_edge_profiler): Generate
6338         also atomic profiler update.
6339         (gimple_gen_edge_profiler): Likewise.
6341 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
6343         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
6344         stack_usage_file to NULL after fclose calls.
6346 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6348         PR target/71873
6349         * reload.c (push_reload): Compute subreg_in_class for
6350         subregs of constants and plus expressions. Remove special
6351         handling of SYMBOL_REFs.
6353 2016-08-10  Alan Modra  <amodra@gmail.com>
6355         PR target/71680
6356         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
6357         SImode for TARGET_E500_DOUBLE when given SImode.
6359 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
6361         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
6362         unused variable __O.
6364 2016-08-09  Martin Liska  <mliska@suse.cz>
6366         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
6367         _gcov_reset to __gcov_reset.
6368         * doc/gcov-tool.texi: Fix typo.
6370 2016-08-09  Martin Liska  <mliska@suse.cz>
6372         * value-prof.c (gimple_divmod_values_to_profile): Do not
6373         instrument MOD histogram if a value is not a SSA name.
6375 2016-08-09  Martin Liska  <mliska@suse.cz>
6377         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
6378         values.
6380 2016-08-09  Renlin Li  <renlin.li@arm.com>
6382         PR middle-end/64971
6383         * calls.c (prepare_call_address): Convert funexp to Pmode when
6384         necessary.
6385         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
6386         (sibcall_value): Likewise.
6388 2016-08-09  Marek Polacek  <polacek@redhat.com>
6390         PR c/7652
6391         * cselib.c (cselib_expand_value_rtx_1): Add return.
6392         * gengtype.c (dbgprint_count_type_at): Likewise.
6393         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
6394         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
6396 2016-08-09  Martin Jambor  <mjambor@suse.cz>
6398         PR ipa/71981
6399         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
6400         if instance is a MEM_REF.
6402 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
6404         PR target/72843
6405         * config/i386/i386.md (*movtf_internal): Use
6406         lra_in_progress || reload_completed instead of !can_create_pseudo_p
6407         in the insn constraint.
6408         (*movxf_internal): Ditto.
6409         (*movdf_internal): Ditto.
6410         (*movsf_internal): Ditto.
6412 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6414         PR tree-optimization/72772
6415         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6416         for expanded base.
6418 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6420         PR tree-optimization/72772
6421         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6422         parameter STOP.
6423         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6424         parameter STOP and update calls.  Move expand_simple_operations
6425         function call from here...
6426         (simplify_using_initial_conditions): ...to here.  Delete parameter
6427         STOP.
6428         (tree_simplify_using_condition): Delete parameter STOP.
6429         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6430         simplify_using_initial_conditions.
6432 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
6434         PR c/65345
6435         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6436         Use create_tmp_var_raw instead of create_tmp_var.
6438 2016-08-09  Richard Biener  <rguenther@suse.de>
6440         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6441         Treat same SSA names related.
6443 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
6445         PR tree-optimization/72824
6446         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6447         real_zerop is not negative.
6449 2016-08-09  Richard Biener  <rguenther@suse.de>
6451         PR tree-optimization/71802
6452         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6453         all merge opportunities with the predecessor.
6455 2016-08-09  Richard Biener  <rguenther@suse.de>
6457         PR ipa/68273
6458         * ipa-prop.c (ipa_modify_formal_parameters): Build
6459         parameter types with natural alignment also for the
6460         over-aligned case.
6462 2016-08-08  Andi Kleen  <ak@linux.intel.com>
6464         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6466 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6468         PR c/64955
6469         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6470         do-nothing langhook.
6471         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6472         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6473         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6474         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6476 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6478         PR bootstrap/72844
6479         * input.c: Ensure that HAVE_ICONV is defined.
6481 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6483         PR middle-end/72781
6484         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6485         private vars for lastprivate and for linear iterator.
6487         PR middle-end/68762
6488         * omp-simd-clone.c: Include varasm.h.
6489         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6490         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6491         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
6492         update function name.
6494 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6496         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6497         (avr_diagnose_devicespecs_error): Remove.
6498         (avr_devicespecs_file): Remove composing absolute path for specfile
6499         and its verbose info. Remove conditions to check specs-file,
6501 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6503         PR rtl-optimization/72821
6504         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6505         just return false for them.
6507 2016-08-08  Alan Modra  <amodra@gmail.com>
6509         PR target/72771
6510         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6511         toc refs created during reload.  Update function comment.
6513 2016-08-08  Alan Modra  <amodra@gmail.com>
6515         PR target/72802
6516         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6517         alternatives.  Put loads first, then stores, and reg/reg moves
6518         within same class later.  Delete attr length.
6520 2016-08-08  Alan Modra  <amodra@gmail.com>
6522         PR target/72802
6523         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6524         (mem_operand_ds_form): New predicate.
6525         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6526         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6527         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6528         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6529         (extendsfdf2_fpr): Replace o constraint with wY.
6531 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
6533         * tree-ssa-threadbackward.c: Include tree-inline.h
6534         (profitable_jump_thread_path): Use estimate_num_insns to estimate
6535         size of copied block; for cold paths reduce duplication.
6536         (find_jump_threads_backwards): Remove redundant tests.
6537         (pass_thread_jumps::gate): Enable for -Os.
6539 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
6541         PR c/72816
6542         * stor-layout.c (layout_decl): Fix up formatting.
6543         (relayout_decl): Allow DECL to be FIELD_DECL.
6545 2016-08-07  Alan Modra  <amodra@gmail.com>
6547         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6549 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6551         * data-streamer-in.c (streamer_read_wide_int): New.
6552         (streamer_read_widest_int): Renamed function.
6553         * data-streamer-out.c (streamer_write_wide_int): New
6554         (streamer_write_widest_int): Renamed function.
6555         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6556         data-stream-in.c.
6557         (input_cfg): Call renamed function.
6558         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6559         data-stream-out.c.
6560         (output_cfg): Call renamed function.
6561         * data-streamer.h: Add declarations.
6563 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6565         * tree-ssa-ccp.c (extend_mask): New param sgn.
6566         Remove ORing with wi::mask.
6567         (get_default_value): Adjust call to extend_mask to pass sign.
6568         (evaluate_stmt): Likewise.
6570 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
6572         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6573         INT64_MAX.
6575 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6577         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6578         transform if operand's type is pointer to function or method.
6580 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6582         PR tree-optimization/18046
6583         * tree-ssa-threadedge.c: Include cfganal.h.
6584         (simplify_control_statement_condition): If simplifying a
6585         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6586         with the dominating ASSERT_EXPR before handing it off to VRP.
6587         Mention that a CASE_LABEL_EXPR may be returned.
6588         (thread_around_empty_blocks): Adjust to handle
6589         simplify_control_statement_condition() returning a
6590         CASE_LABEL_EXPR.
6591         (thread_through_normal_block): Likewise.
6592         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6593         a switch statement by trying to determine which case label
6594         will be taken.
6596 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
6598         PR rtl-optimization/69847
6599         * lra-constraints.c (process_invariant_for_inheritance): Save
6600         pattern instead of src.
6601         (remove_inheritance_pseudos): Use the pattern.  Add assert.
6603 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
6605         * input.c (string_concat::string_concat): New constructor.
6606         (string_concat_db::string_concat_db): New constructor.
6607         (string_concat_db::record_string_concatenation): New method.
6608         (string_concat_db::get_string_concatenation): New method.
6609         (string_concat_db::get_key_loc): New method.
6610         (class auto_cpp_string_vec): New class.
6611         (get_substring_ranges_for_loc): New function.
6612         (get_source_range_for_substring): New function.
6613         (get_num_source_ranges_for_substring): New function.
6614         (class selftest::lexer_test_options): New class.
6615         (struct selftest::lexer_test): New struct.
6616         (class selftest::ebcdic_execution_charset): New class.
6617         (selftest::ebcdic_execution_charset::s_singleton): New variable.
6618         (selftest::lexer_test::lexer_test): New constructor.
6619         (selftest::lexer_test::~lexer_test): New destructor.
6620         (selftest::lexer_test::get_token): New method.
6621         (selftest::assert_char_at_range): New function.
6622         (ASSERT_CHAR_AT_RANGE): New macro.
6623         (selftest::assert_num_substring_ranges): New function.
6624         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6625         (selftest::assert_has_no_substring_ranges): New function.
6626         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6627         (selftest::test_lexer_string_locations_simple): New function.
6628         (selftest::test_lexer_string_locations_ebcdic): New function.
6629         (selftest::test_lexer_string_locations_hex): New function.
6630         (selftest::test_lexer_string_locations_oct): New function.
6631         (selftest::test_lexer_string_locations_letter_escape_1): New function.
6632         (selftest::test_lexer_string_locations_letter_escape_2): New function.
6633         (selftest::test_lexer_string_locations_ucn4): New function.
6634         (selftest::test_lexer_string_locations_ucn8): New function.
6635         (selftest::uint32_from_big_endian): New function.
6636         (selftest::test_lexer_string_locations_wide_string): New function.
6637         (selftest::uint16_from_big_endian): New function.
6638         (selftest::test_lexer_string_locations_string16): New function.
6639         (selftest::test_lexer_string_locations_string32): New function.
6640         (selftest::test_lexer_string_locations_u8): New function.
6641         (selftest::test_lexer_string_locations_utf8_source): New function.
6642         (selftest::test_lexer_string_locations_concatenation_1): New
6643         function.
6644         (selftest::test_lexer_string_locations_concatenation_2): New
6645         function.
6646         (selftest::test_lexer_string_locations_concatenation_3): New
6647         function.
6648         (selftest::test_lexer_string_locations_macro): New function.
6649         (selftest::test_lexer_string_locations_stringified_macro_argument):
6650         New function.
6651         (selftest::test_lexer_string_locations_non_string): New function.
6652         (selftest::test_lexer_string_locations_long_line): New function.
6653         (selftest::test_lexer_char_constants): New function.
6654         (selftest::input_c_tests): Call the new test functions once per
6655         case within the line_table test matrix.
6656         * input.h (struct string_concat): New struct.
6657         (struct location_hash): New struct.
6658         (class string_concat_db): New class.
6659         * substring-locations.h: New header.
6661 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6663         PR tree-optimization/72810
6664         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6665         the type of the case labels when truncating.
6667 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
6669         PR Target/72819
6670         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6671         (aarch64_fp16_ptr_type_node): Likewise.
6672         * config/aarch64/aarch64-simd-builtins.c
6673         (aarch64_fp16_ptr_type_node): Define.
6674         (aarch64_init_fp16_types): New, refactored out of...
6675         (aarch64_init_builtins): ...here, update to call
6676         aarch64_init_fp16_types.
6677         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6678         HFmode.
6679         (aapcs_vfp_sub_candidate): Likewise.
6681 2016-08-05  Martin Liska  <mliska@suse.cz>
6682             Joshua Cranmer  <Pidgeot18@gmail.com>
6684         * gcov.c (line_t::has_block): New function.
6685         (enum loop_type): New enum.
6686         (handle_cycle): New function.
6687         (unblock): Likewise.
6688         (circuit): Likewise.
6689         (get_cycles_count): Likewise.
6690         (accumulate_line_counts): Use new loop detection algorithm.
6692 2016-08-05  Martin Liska  <mliska@suse.cz>
6694         * gcov.c (output_intermediate_file): Rename
6695         function_info::line_next to next_file_fn.
6696         (process_file): Likewise.
6697         (read_graph_file): Likewise.
6698         (accumulate_line_counts): Likewise.
6699         (output_lines): Likewise.
6701 2016-08-05  Richard Biener  <rguenther@suse.de>
6703         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6704         restriction on threading to a loop header.
6706 2016-08-05  Richard Biener  <rguenther@suse.de>
6708         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6709         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6710         adjust loop info accordingly.
6712 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
6714         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6715         before folding call to __builtin_constant_p with parameters to false.
6717 2016-08-05  Alan Modra  <amodra@gmail.com>
6719         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6720         code accidentally committed 2016-05-02 providing class when given
6721         NO_REGS.
6723 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6725         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6726         the case label ranges that partially overlap with OP's value
6727         range.
6729 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
6731         PR target/72805
6732         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6733         Cast builtin function result to __mmask16 instead of __mmask8.
6734         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6735         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6736         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6738 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
6740         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6741         (ASSERT_TRUE_AT): New macro.
6742         (ASSERT_FALSE): Reimplement in terms of...
6743         (ASSERT_FALSE_AT): New macro.
6744         (ASSERT_STREQ_AT): Fix typo in comment.
6746 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6748         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6749         labels are exhaustive, designate the label with the widest
6750         range to be the default label.
6752 2016-08-04  Andrew Pinski  <apinski@cavium.com>
6754         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6755         (thunderx_tunings): Use thunderx_vector_cost instead of
6756         generic_vector_cost.
6758 2016-08-04  Martin Liska  <mliska@suse.cz>
6760         * gcov.c (main): Fix GNU coding style.
6761         (output_intermediate_file): Likewise.
6762         (process_file): Likewise.
6763         (generate_results): Likewise.
6764         (release_structures): Likewise.
6765         (create_file_names): Likewise.
6766         (find_source): Likewise.
6767         (read_graph_file): Likewise.
6768         (find_exception_blocks): Likewise.
6769         (canonicalize_name): Likewise.
6770         (make_gcov_file_name): Likewise.
6771         (mangle_name): Likewise.
6772         (accumulate_line_counts): Likewise.
6773         (output_branch_count): Likewise.
6774         (read_line): Likewise.
6776 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6778         PR rtl-optimization/71779
6779         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6780         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6781         or if it was truncated.
6783         PR rtl-optimization/70903
6784         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6786 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6788         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6789         accessing SSA_NAME_PTR_INFO.
6791 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6793         PR 70677
6794         * common/config/avr/avr-common.c (avr_option_optimization_table)
6795         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6797 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6799         PR 55181
6800         * config/avr/avr.md: New pattern to work around do_store_flag
6801         generating shift instructions for bit extractions.
6803 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6805         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6806         BITMAP_ALLOC.
6807         (add_equivalence): Likewise.
6808         (get_value_range): Allocate value range with vrp_value_range_pool.
6809         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6810         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6812 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
6814         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6815         the default for the rs6000 port.
6817 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6819         PR middle-end/71876
6820         * calls.c (special_function_p): Remove special handling of
6821         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6822         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
6823         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6825 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
6827         PR middle-end/72778
6828         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6829         Don't stop on regular insns.
6831 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
6833         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6834         size to DImode boundary.
6835         (nvptx_propagate): Likewise.
6837 2016-08-03  Alan Modra  <amodra@gmail.com>
6839         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6840         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6841         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6842         from -mefficient-unaligned-vector.  Note that this affects fp too.
6844 2016-08-03  Alan Modra  <amodra@gmail.com>
6846         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6847         cost more.
6849 2016-08-03  Alan Modra  <amodra@gmail.com>
6851         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6852         to a reg.  Localize vars.
6854 2016-08-03  Alan Modra  <amodra@gmail.com>
6856         * config/rs6000/rs6000.opt: Remove negatives from help strings
6857         and comments.
6859 2016-08-03  Alan Modra  <amodra@gmail.com>
6861         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6862         Delete duplicated code.
6864 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6866         PR middle-end/72778
6867         * lra-spills.c (regno_in_use_p): New.
6868         (lra_final_code_change): Use it.
6870 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6872         PR rtl-optimization/69847
6873         * lra-int.h (struct lra-reg): Use restore_rtx instead of
6874         restore_regno.
6875         (lra_rtx_hash): New.
6876         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6877         of restore_regno.
6878         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6879         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6880         * lra-spills.c (lra_final_code_change): Don't delete insn when the
6881         next insn is USE with the same reg as the current insn source.
6882         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6883         of restore_regno.
6884         (lra_constraints_init): Call initiate_invariants.
6885         (lra_constraints_finish): Call finish_invariants.
6886         (struct invariant, invariant_t, invariant_ptr_t): New.
6887         (const_invariant_ptr_t, invariants, invariants_pool): New.
6888         (invariant_table, invariant_hash, invariant_eq_p): New.
6889         (insert_invariant, initiate_invariants, finish_invariants): New.
6890         (clear_invariants, invalid_invariant_regs): New.
6891         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6892         instead of restore_regno.
6893         (invariant_p, process_invariant_for_inheritance): New.
6894         (inherit_in_ebb): Implement invariant inheritance.
6895         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6896         (remove_inheritance_pseudos): Implement undoing invariant
6897         inheritance.
6898         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6899         instead of restore_regno.
6900         * lra-assigns.c (regno_live_length): New.
6901         (reload_pseudo_compare_func): Use regno_live_length.
6902         (assign_by_spills): Use restore_rtx instead of restore_regno.
6903         (lra_assign): Ditto.  Initiate regno_live_length.
6905 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
6907         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6908         __builtin_aarch64_fmindf.
6910 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6912         PR tree-optimization/34114
6913         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6914         information for more control IVs.
6916 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6918         PR tree-optimization/34114
6919         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6920         PLUS_EXPR case.  Handle SSA_NAME case.
6922 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
6924         * config/aarch64/aarch64-simd-builtins.def
6925         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6926         (__builtin_aarch64_fmaxdf): Likewise.
6927         (__builtin_aarch64_smin_nandf): Likewise.
6928         (__builtin_aarch64_smax_nandf): Likewise.
6929         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6930         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6931         (<fmaxmin><mode>3): ...this.
6932         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6933         (vminnm_f64): Likewise.
6934         (vmin_f64): Likewise.
6935         (vmax_f64): Likewise.
6936         * config/aarch64/iterators.md (FMAXMIN): Merge with...
6937         (FMAXMIN_UNS): ...this.
6938         (fmaxmin): Merged with
6939         (fmaxmin_op): ...this...
6940         (maxmin_uns_op): ...in to this.
6942 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6944         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6945         Add support for vec_extract on vector float, vector int, vector
6946         short, and vector char vector types.
6947         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6948         vector float, vector int, vector short, and vector char
6949         optimizations on 64-bit ISA 2.07 systems for both constant and
6950         variable element numbers.
6951         (rs6000_split_vec_extract_var): Likewise.
6952         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6953         Altivec registers on ISA 2.07 and above.
6954         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6955         which never was matched due to the split occuring before register
6956         allocation (and the code would not have worked on little endian
6957         systems if it did match).  Allow extracts to go to the Altivec
6958         registers if ISA 2.07 (power8).  Change from using "" around the
6959         C++ code to using {}'s.
6960         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6961         vec_extracts when the vector is in memory.
6962         (vsx_extract_v4sf_var): New insn to optimize vector float
6963         vec_extracts when the element number is variable on 64-bit ISA
6964         2.07 systems.
6965         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6966         for 64-bit ISA 2.07 as well as ISA 3.0.
6967         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6968         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6969         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6970         optimize vector int, vector short, and vector char vec_extracts
6971         when the vector is in memory.
6972         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6973         optimize vector int, vector short, and vector char vec_extracts
6974         when the element number is variable.
6976 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6978         PR target/71948
6979         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
6980         does not overlap with other symbol flags.
6982 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
6984         * config/aarch64/aarch64.h (aarch64_frame):
6985         Remove padding0 and hardfp_offset.  Add locals_offset,
6986         initial_adjust, callee_adjust, callee_offset and final_adjust.
6987         * config/aarch64/aarch64.c (aarch64_layout_frame):
6988         Remove unused padding0 and hardfp_offset initializations.
6989         Choose frame layout and set frame variables accordingly.
6990         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
6991         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
6992         (aarch64_pop_regs): Likewise.
6993         (aarch64_expand_prologue): Remove all decision code, just emit
6994         prolog according to frame variables.
6995         (aarch64_expand_epilogue): Remove all decision code, just emit
6996         epilog according to frame variables.
6997         (aarch64_initial_elimination_offset): Use offset to local/arg area.
6999 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7001         PR target/72748
7002         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7003         fix_debug_reg_uses after changing source register mode to
7004         V1TImode if source register is undefined.
7006 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
7008         PR tree-optimization/71818
7009         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7010         with non invariant evolutions
7012 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
7014         PR target/72767
7015         * config/avr/avr.md (length) [branch]: Correct insn length
7016         attribute for forward branches.
7018 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
7020         * doc/extend.texi (AVR Built-in Functions): Document
7021         __builtin_avr_nops.
7022         * config/avr/builtins.def (NOPS): New.
7023         * config/avr/avr.c (avr_expand_nops): New static function.
7024         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7026 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7028         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7029         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7030         addresses.
7032 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
7034         * config/aarch64/aarch64.c (vulcan_tunings): Update
7035         vulcan L1 cache_line_size.
7037 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7039         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7040         function that takes a vector memory address, a hard register, an
7041         element number and a temporary base register, and recreates an
7042         address that points to the appropriate element within the vector.
7043         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7044         (rs6000_split_vec_extract_var): Add support for the target of a
7045         vec_extract with variable element number being a scalar memory
7046         location.
7047         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7048         swappable.
7049         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7050         vsx_extract_<mode>_load insn with a new insn that optimizes
7051         storing either element to a memory location, using scratch
7052         registers to pick apart the vector and reconstruct the address.
7053         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7054         (vsx_extract_<mode>_store): Rework alternatives to more correctly
7055         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
7056         store instruction.
7057         (vsx_extract_<mode>_var): Add support for extracting a variable
7058         element number from memory.
7060 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
7062         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7063         when testing for compares against constants of the form 0xabab.
7065 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
7067         PR tree-optimization/57558
7068         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7069         function.
7070         (vect_loop_versioning): Support versioning with niter assumptions.
7071         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7072         (vect_get_loop_niters): New parameter.  Reimplement to support
7073         assumptions in loop niter info.
7074         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7075         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7076         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7077         Support loop versioning for niters.
7078         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7079         (vect_free_loop_info_assumptions): New function.
7080         (vectorize_loops): Free loop niter info for loops with flag
7081         LOOP_F_ASSUMPTIONS set if vectorization failed.
7082         * tree-vectorizer.h (struct _loop_vec_info): New field
7083         num_iters_assumptions.
7084         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7085         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7086         (LOOP_REQUIRES_VERSIONING): New macro.
7087         (vect_free_loop_info_assumptions): New decl.
7089 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
7091         * cfgloop.h (struct loop): New field constraints.
7092         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7093         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7094         functions.
7095         * cfgloop.c (alloc_loop): Initialize new field.
7096         * cfgloopmanip.c (copy_loop_info): Copy constraints.
7097         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7098         Adjust niter analysis wrto loop constraints.
7099         * doc/loop.texi (@node Number of iterations): Add description for loop
7100         constraints.
7102 2016-07-29  Marek Polacek  <polacek@redhat.com>
7104         PR c/7652
7105         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7106         (ix86_expand_round_builtin): Likewise.
7108 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
7109             Georg-Johann Lay  <avr@gjlay.de>
7111         PR rtl-optimization/71976
7112         * combine.c (get_last_value): Return 0 if the argument for which
7113         the function is called has a wider mode than the recorded value.
7115 2016-07-29  Marek Polacek  <polacek@redhat.com>
7117         PR c/7652
7118         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7119         (altivec_expand_st_builtin): Likewise.
7121 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
7123         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7124         introduced in r238381.
7126 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
7128         PR middle-end/68217
7129         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7130         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7132 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7134         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7135         New declaration.
7136         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7137         Add support for vec_extract of vector double or vector long having
7138         a variable element number on 64-bit ISA 2.07 systems or newer.
7139         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7140         Likewise.
7141         (rs6000_split_vec_extract_var): New function to split a
7142         vec_extract built-in function with variable element number.
7143         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7144         swappable.
7145         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7146         (UNSPEC_VSX_EXTRACT): Likewise.
7147         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7148         direct move instructions to be generated on 64-bit ISA 2.07
7149         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7150         instruction.
7151         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7152         arguments for vec_extract variable element.
7153         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7154         vec_extract with variable element on V2DFmode and V2DImode
7155         vectors.
7156         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7157         -mupper-regs-df requirement, since it isn't needed.
7158         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7159         do direct moves on 64-bit systems, which allows optimization of
7160         vec_extract on 64-bit ISA 2.07 systems and newer.
7162 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
7163 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
7165          * config/aarch64/aarch64.md
7166         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7167         statement and type.
7168         (<optab>qihi2_aarch64): Likewise, and split into two.
7169         (extendqihi2_aarch64): New.
7170         (zero_extendqihi2_aarch64): New.
7171         * config/aarch64/iterators.md (ldrxt): Remove.
7172         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7173         uxtb/uxth.
7175 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
7177         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7179 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
7181         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7182         (aarch64_push_reg): New function to push 1 or 2 registers.
7183         (aarch64_pop_reg): New function to pop 1 or 2 registers.
7184         (aarch64_expand_prologue): Use aarch64_push_regs.
7185         (aarch64_expand_epilogue): Use aarch64_pop_regs.
7187 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
7189         PR tree-optimization/71734
7190         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7191         attribute instead of REF_LOOP and use it.
7192         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7193         set it for Loops having non-zero safelen attribute.
7194         (ref_indep_loop_p): Pass zero as initial value for safelen.
7196 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
7198         PR middle-end/72657
7199         PR target/72683
7200         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7201         call using chkp_gimple_call_builtin_p.
7202         (chkp_copy_bounds_for_assign): Likewise.
7204 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7206         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7207         * config/arm/arm-protos.h (struct tune_params): Likewise.
7208         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7209         (cortex_a9_sched_adjust_cost): Likewise.
7210         (fa726te_sched_adjust_cost): Likewise.
7211         (arm_adjust_cost): Likewise.
7212         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7213         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7214         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7215         * config/i386/i386.c (ix86_adjust_cost): Likewise.
7216         * config/ia64/ia64.c: Likewise.
7217         * config/m68k/m68k.c: Likewise.
7218         * config/mep/mep.c (mep_adjust_cost): Likewise.
7219         * config/microblaze/microblaze.c (microblaze_adjust_cost):
7220         * Likewise.
7221         * config/mips/mips.c (mips_adjust_cost): Likewise.
7222         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7223         * Likewise.
7224         * config/pa/pa.c (pa_adjust_cost): Likewise.
7225         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7226         (rs6000_debug_adjust_cost): Likewise.
7227         * config/sh/sh.c (sh_adjust_cost): Likewise.
7228         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7229         (hypersparc_adjust_cost): Likewise.
7230         (sparc_adjust_cost): Likewise.
7231         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7232         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7233         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7234         * Likewise.
7235         * config/visium/visium.c (visium_adjust_cost): Likewise.
7236         * doc/tm.texi: Regenerate.
7237         * haifa-sched.c (dep_cost_1): Adjust.
7238         * target.def: Merge adjust_cost and adjust_cost_2.
7240 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7242         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7244 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7246         * store-motion.c (struct st_expr): Make pattern_regs a vector.
7247         (extract_mentioned_regs): Append to a vector instead of
7248         returning a rtx_expr_list.
7249         (st_expr_entry): Adjust.
7250         (free_st_expr_entry): Likewise.
7251         (store_ops_ok): Likewise.
7252         (store_killed_in_insn): Likewise.
7253         (find_moveable_store): Likewise.
7255 2016-07-28  Martin Liska  <mliska@suse.cz>
7257         PR gcov-profile/68025
7258         * tree-profile.c (tree_profiling): Respect
7259         no_profile_instrument_function attribute.
7260         * doc/extend.texi: Document no_profile_instrument_function
7261         attribute.
7263 2016-07-28  Martin Liska  <mliska@suse.cz>
7265         PR rtl-optimization/70944
7266         * combine.c (make_compound_operation):
7267         Do not allow make_compound_operation for vector mode
7269 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
7271         PR middle-end/71994
7272         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
7273          before calling get_ops.
7275 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7277         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
7278         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
7279         (BITS_PER_UNIT_LOG): Remove.
7280         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
7281         * expr.c (expand_assignment): Likewise.
7282         * stor-layout.c (initialize_sizetypes): Likewise.
7284 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
7286         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
7287         signature of rs6000_expand_vector_extract so that the element
7288         number is a RTX instead of a constant integer.
7289         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
7290         Likewise.
7291         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
7292         (altivec_expand_vec_ext_builtin): Likewise.
7293         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
7294         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
7295         MFVSRLD instruction.
7297 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
7299         * input.c (get_pure_location): Move here from tree.c.
7300         (make_location): Likewise.  Add header comment.
7301         (selftest::test_accessing_ordinary_linemaps): Verify
7302         pure_location_p, make_location, get_location_from_adhoc_loc and
7303         get_range_from_loc.
7304         * input.h (get_pure_location): Move declaration here from tree.h.
7305         (get_finish): Likewise for inline function.
7306         (make_location): Likewise for declaration.
7307         * tree.c (get_pure_location): Move to input.c.
7308         (make_location): Likewise.
7309         * tree.h (get_pure_location): Move declaration to tree.h.
7310         (get_finish): Likewise for inline function.
7311         (make_location): Likewise for declaration.
7313 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7315         PR middle-end/71078
7316         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
7318 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
7320         * system.h (STATIC_ASSERT): Use static_assert if building
7321         with C++11 onwards.
7323 2016-07-27  Richard Biener  <rguenther@suse.de>
7325         PR tree-optimization/72517
7326         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7327         Revert change to not compute read-read dependences.
7329 2016-07-27  Richard Biener  <rguenther@suse.de>
7331         * predict.c (set_even_probabilities): Make nedges unsigned.
7333 2016-07-27  Martin Liska  <mliska@suse.cz>
7335         * predict.c (set_even_probabilities): Handle unlikely edges.
7336         (combine_predictions_for_bb): Likewise.
7338 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7340         PR target/71869
7341         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
7342         __float128 support when we don't have hardware support, so that
7343         the IEEE built-in functions like isgreater, first call __unordkf3
7344         to make sure neither operand is a NaN, and if both operands are
7345         ordered, do the normal comparison.
7347 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
7349         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
7350         name.
7351         (extract_code_and_val_from_cond_with_ops): Verify that name is
7352         either cond_op0 or cond_op1.
7354 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
7356         PR tree-optimization/18046
7357         * genmodes.c (emit_mode_size_inline): Emit an assert that
7358         verifies that mode is a valid array index.
7359         (emit_mode_nuinits_inline): Likewise.
7360         (emit_mode_inner_inline): Likewise.
7361         (emit_mode_unit_size_inline): Likewise.
7362         (emit_mode_unit_precision_inline): Likewise.
7363         * tree-vrp.c: Include params.h.
7364         (find_switch_asserts): Register edge assertions for the default
7365         label which correspond to the anti-ranges of each case label.
7366         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
7367         * doc/invoke.texi: Document it.
7369 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7371         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
7372         and unnecessary call to gimple_bb.
7374 2016-07-26  Richard Biener  <rguenther@suse.de>
7376         PR rtl-optimization/71984
7377         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
7378         for VOIDmode.
7380 2016-07-26  Richard Biener  <rguenther@suse.de>
7382         PR middle-end/72517
7383         * expmed.c (extract_bit_field_1): Constrain the vector mode
7384         with element size matching the extraction mode size when
7385         choosing a better vector mode to do the extraction from.
7387 2016-07-26  Richard Biener  <rguenther@suse.de>
7388             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7390         PR middle-end/70920
7391         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
7392         pattern.
7394 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7396         * tree-ssa-structalias.c (struct scc_info): Change types of
7397         members to auto_sbitmap and auto_vec.
7398         (scc_info::scc_info): New constructor.
7399         (scc_info::~scc_info): New destructor.
7400         (init_scc_info): Remove.
7401         (free_scc_info): Remove.
7402         (find_indirect_cycles): Adjust.
7403         (perform_var_substitution): Likewise.
7404         (free_var_substitution_info): Likewise.
7406 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7408         * tree-outof-ssa.c (struct elim_graph): Change type of members
7409         to auto_vec and auto_sbitmap.
7410         (elim_graph::elim_graph): New constructor.
7411         (delete_elim_graph): Remove.
7412         (expand_phi_nodes): Adjust.
7414 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7416         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7417         (new_elim_graph): Adjust.
7418         (clear_elim_graph): Likewise.
7419         (delete_elim_graph): Likewise.
7420         (elim_graph_size): Likewise.
7421         (elim_graph_add_node): Likewise.
7422         (elim_graph_add_edge): Likewise.
7423         (elim_graph_remove_succ_edge): Likewise.
7424         (eliminate_name): Likewise.
7425         (eliminate_build): Likewise.
7426         (elim_forward): Likewise.
7427         (elim_unvisited_predecessor): Likewise.
7428         (elim_backward): Likewise.
7429         (elim_create): Likewise.
7430         (eliminate_phi): Likewise.
7431         (expand_phi_nodes): Likewise.
7433 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7435         * bt-load.c (compute_out): Use auto_sbitmap class.
7436         (link_btr_uses): Likewise.
7437         * cfganal.c (mark_dfs_back_edges): Likewise.
7438         (post_order_compute): Likewise.
7439         (inverted_post_order_compute): Likewise.
7440         (pre_and_rev_post_order_compute_fn): Likewise.
7441         (single_pred_before_succ_order): Likewise.
7442         * cfgexpand.c (pass_expand::execute): Likewise.
7443         * cfgloop.c (verify_loop_structure): Likewise.
7444         * cfgloopmanip.c (fix_bb_placements): Likewise.
7445         (remove_path): Likewise.
7446         (update_dominators_in_loop): Likewise.
7447         * cfgrtl.c (break_superblocks): Likewise.
7448         * ddg.c (check_sccs): Likewise.
7449         (create_ddg_all_sccs): Likewise.
7450         * df-core.c (df_worklist_dataflow): Likewise.
7451         * dse.c (dse_step3): Likewise.
7452         * except.c (eh_region_outermost): Likewise.
7453         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7454         * gcse.c (prune_expressions): Likewise.
7455         (prune_insertions_deletions): Likewise.
7456         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7457         * graph.c (draw_cfg_nodes_no_loops): Likewise.
7458         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7459         * lcm.c (compute_earliest): Likewise.
7460         (compute_farthest): Likewise.
7461         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7462         (unroll_loop_runtime_iterations): Likewise.
7463         (unroll_loop_stupid): Likewise.
7464         * lower-subreg.c (decompose_multiword_subregs): Likewise.
7465         * lra-lives.c: Likewise.
7466         * lra.c (lra): Likewise.
7467         * modulo-sched.c (schedule_reg_moves): Likewise.
7468         (optimize_sc): Likewise.
7469         (get_sched_window): Likewise.
7470         (sms_schedule_by_order): Likewise.
7471         (check_nodes_order): Likewise.
7472         (order_nodes_of_sccs): Likewise.
7473         (order_nodes_in_scc): Likewise.
7474         * recog.c (split_all_insns): Likewise.
7475         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7476         * reload1.c (reload): Likewise.
7477         * sched-rgn.c (haifa_find_rgns): Likewise.
7478         (split_edges): Likewise.
7479         (compute_trg_info): Likewise.
7480         * sel-sched.c (init_seqno): Likewise.
7481         * store-motion.c (remove_reachable_equiv_notes): Likewise.
7482         * tree-into-ssa.c (update_ssa): Likewise.
7483         * tree-ssa-live.c (live_worklist): Likewise.
7484         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7485         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7486         * Likewise.
7487         (try_peel_loop): Likewise.
7488         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7489         * Likewise.
7490         * tree-ssa-pre.c (compute_antic): Likewise.
7491         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7492         * tree-stdarg.c (reachable_at_most_once): Likewise.
7493         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7494         * var-tracking.c (vt_find_locations): Likewise.
7496 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7498         * sbitmap.h (auto_sbitmap): New class.
7500 2016-07-26  Alan Modra  <amodra@gmail.com>
7502         PR target/72103
7503         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7504         sri->t_icode.
7506 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
7508         * input.c (selftest::temp_source_file::temp_source_file): Fix
7509         missing "%s" in fprintf.
7511 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
7513         PR middle-end/71732
7514         * cselib.c (cselib_process_insn): Invalidate argument slots for
7515         const/pure calls.
7517 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7519         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7520         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7521         vmulxh_lane_f16, vmulxh_laneq_f16): New.
7523 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7525         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7526         * config/aarch64/aarch64.md (fma, fnma): Support HF.
7527         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7529 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7531         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7532         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7533         New.
7534         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7535         (add<mode>3): Likewise.
7536         (sub<mode>3): Likewise.
7537         (mul<mode>3): Likewise.
7538         (div<mode>3): Likewise.
7539         (*div<mode>3): Likewise.
7540         (<fmaxmin><mode>3): Extend to HF.
7541         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7542         (fabd<mode>3): Likewise.
7543         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7544         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7545         (aarch64_fmulx<mode>): Likewise.
7546         (aarch64_fac<optab><mode>): Likewise.
7547         (aarch64_frecps<mode>): Likewise.
7548         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7549         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7550         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7551         (VSDQ_HSDI): Support HI.
7552         (fcvt_target, FCVT_TARGET): Likewise.
7553         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7554         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7555         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7556         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7557         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7558         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7559         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7560         vrsqrtsh_f16): New.
7562 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7564         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7565         * config/aarch64/aarch64-builtins.c (hi_UP): New.
7566         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7567         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7568         mode.
7569         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7570         (aarch64_cm<optab><mode>): Likewise.
7571         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7572         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7573         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7574         (sqrt<mode>2): Likewise.
7575         (*sqrt<mode>2): Likewise.
7576         (abs<mode>2): Likewise.
7577         (<optab><mode>hf2): New pattern for HF mode.
7578         (<optab>hihf2): Likewise.
7579         * config/aarch64/arm_neon.h: Include arm_fp16.h.
7580         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7581         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7582         Support HF mode.
7583         * config/aarch64/arm_fp16.h: New file.
7584         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7585         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7586         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7587         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7588         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7589         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7590         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7591         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7592         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7593         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7594         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7595         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7596         vsqrth_f16): New.
7598 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7600         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7601         reduc_smin_scal_): Use VDQIF_F16.
7602         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7603         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7604         Use VHSDF.
7605         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7606         * config/aarch64/iterators.md (VDQIF_F16): New.
7607         (vp): Support HF modes.
7608         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7609         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7611 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7613         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7614         "*aarch64_mulx_elt_from_dup<mode>".
7615         (*aarch64_mul3_elt<mode>): Update schedule type.
7616         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7617         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7618         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7619         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7620         (f, fp): Support HF modes.
7621         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7622         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7623         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7624         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7625         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7626         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7628 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7630         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7631         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7632         modes.
7633         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7634         vfmsq_f16): New.
7636 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7638         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7639         * config/aarch64/aarch64-simd.md
7640         (aarch64_rsqrts<mode>): Extend to HF modes.
7641         (fabd<mode>3): Likewise.
7642         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7643         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7644         (aarch64_<maxmin_uns>p<mode>): Likewise.
7645         (<su><maxmin><mode>3): Likewise.
7646         (<maxmin_uns><mode>3): Likewise.
7647         (<fmaxmin><mode>3): Likewise.
7648         (aarch64_faddp<mode>): Likewise.
7649         (aarch64_fmulx<mode>): Likewise.
7650         (aarch64_frecps<mode>): Likewise.
7651         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7652         (add<mode>3): Extend to HF modes.
7653         (sub<mode>3): Likewise.
7654         (mul<mode>3): Likewise.
7655         (div<mode>3): Likewise.
7656         (*div<mode>3): Likewise.
7657         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7658         HF, V4HF and V8HF.
7659         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7660         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7661         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7662         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7663         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7664         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7665         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7666         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7667         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7668         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7669         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7670         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7671         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7672         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7674 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7676         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7677         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7678         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7679         (neg<mode>2): Likewise.
7680         (abs<mode>2): Likewise.
7681         (<frint_pattern><mode>2): Likewise.
7682         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7683         (<optab><VDQF:mode><fcvt_target>2): Likewise.
7684         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7685         (ftrunc<VDQF:mode>2): Likewise.
7686         (<optab><fcvt_target><VDQF:mode>2): Likewise.
7687         (sqrt<mode>2): Likewise.
7688         (*sqrt<mode>2): Likewise.
7689         (aarch64_frecpe<mode>): Likewise.
7690         (aarch64_cm<optab><mode>): Likewise.
7691         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7692         HF, V4HF and V8HF.
7693         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7694         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7695         (stype): New.
7696         * config/aarch64/arm_neon.h (vdup_n_f16): New.
7697         (vdupq_n_f16): Likewise.
7698         (vld1_dup_f16): Use vdup_n_f16.
7699         (vld1q_dup_f16): Use vdupq_n_f16.
7700         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7701         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7702         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7703         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7704         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7705         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7706         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7707         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7708         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7709         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7710         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7711         vsqrt_f16, vsqrtq_f16): New.
7713 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7715         * config/aarch64/aarch64-simd.md
7716         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7717         (aarch64_ext<mode>): Likewise.
7718         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7719         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7720         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7721         and V8HFmode.
7722         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7723         float16x8_t.
7724         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7725         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7726         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7727         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7728         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7729         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7730         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7731         New.
7732         (vmov_n_f16): Reimplement using vdup_n_f16.
7733         (vmovq_n_f16): Reimplement using vdupq_n_f16..
7735 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7737         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7738         "frame_related_p".  Generate CFA annotation when it's necessary.
7739         (aarch64_expand_prologue): Use aarch64_add_constant.
7740         (aarch64_expand_epilogue): Likewise.
7741         (aarch64_output_mi_thunk): Pass "false" when calling
7742         aarch64_add_constant.
7744 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7746         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7747         sequences.
7749 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7751         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7752         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7753         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7754         (aarch64_build_constant): Delete.
7756 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
7758         Revert
7759         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7761         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7762         flag_toplevel_reorder.
7764 2016-07-25  Richard Biener  <rguenther@suse.de>
7766         * cgraph.c (cgraph_node::verify_node): Compare against builtin
7767         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7768         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7769         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7770         (streamer_get_builtin_tree): Likewise.
7771         (streamer_write_builtin): Likewise.
7772         * lto-streamer.h (LTO_builtin_decl): Remove.
7773         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7774         (lto_input_scc): Remove LTO_builtin_decl handling.
7775         (lto_input_tree_1): Liekwise.
7776         * lto-streamer-out.c (lto_output_tree_1): Remove special
7777         handling of builtins.
7778         (DFS::DFS): Likewise.
7779         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7780         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7781         assert.
7782         (streamer_write_builtin): Remove.
7784 2016-07-25  Martin Liska  <mliska@suse.cz>
7786         * lto-cgraph.c (input_symtab): Don't call get_working_sets
7787         if flag_auto_profile is set to true.
7789 2016-07-25  Martin Liska  <mliska@suse.cz>
7791         PR gcov-profile/71868
7792         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7793         have a function with multiple latches, count them all.
7795 2016-07-25  Martin Liska  <mliska@suse.cz>
7797         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7799 2016-07-25  Martin Liska  <mliska@suse.cz>
7801         PR tree-optimization/71987
7802         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7803         just for SSA_NAMEs. Fix GNU coding style.
7805 2016-07-25  Martin Liska  <mliska@suse.cz>
7807         PR gcov-profile/64874
7808         * gcov-io.h: Update command about file format.
7809         * gcov-iov.c (main): Adapt the numbering scheme.
7811 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
7813         PR middle-end/66726
7814         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7815         whose result is used in PHI.
7816         (final_range_test_p): Likewise.
7817         (maybe_optimize_range_tests): Likewise.
7819 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7821         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7822         Reformat two multi-line strings.
7824 2016-07-22  Martin Sebor  <msebor@redhat.com>
7826         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7828 2016-07-22  Martin Sebor  <msebor@redhat.com>
7830         PR c/71560
7831         * doc/extend.texi (Compound Literals): Correct and clarify.
7832         (Cast to Union): Same.
7834 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7836         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7837         comments to explain why certain error messages make mention of
7838         undocumented options.
7839         (rs6000_invalid_builtin): Change error messages to replace mention
7840         of undocumented options with mention of the -mcpu=power9 option
7841         that enables those undocumented options.
7842         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7843         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7844         definition of this macro to correct an existing error.
7845         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7846         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7847         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7848         descriptions of built-in functions so that they depend on
7849         -mcpu=power9 instead of on the corresponding undocumented flags.
7850         * doc/invoke.texi (Option Summary):  Remove all mention of newly
7851         undocumented flags.
7852         (IBM RS/6000 and PowerPC Options): Likewise.
7853         * doc/md.texi (Constraints for Particuliar Machines): Remove all
7854         mention of newly undocumented flags.
7856 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
7858         * ipa-cp.c (determine_versionability): Do not create constprop clones,
7859         when target_clones attribute is set.
7861 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7863         * common.opt (funsafe-loop-optimizations): Mark ignore.
7864         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7865         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7866         related code.
7867         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7868         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7870 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7872         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7873         Parameter.
7874         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7875         Parameter.
7876         (number_of_iterations_exit): Warn missed loop optimization for
7877         possible infinite loops.
7879 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
7881         PR target/71216
7882         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7883         when to emit a ".machine" pseudo-op.
7885 2016-07-22  Martin Liska  <mliska@suse.cz>
7887         PR gcov-profile/69028
7888         PR gcov-profile/62047
7889         * coverage.c (coverage_compute_lineno_checksum): Do not
7890         calculate checksum for fns w/o xloc.file.
7891         (coverage_compute_profile_id): Likewise.
7893 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
7895         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7896         (avr_secondary_reload): ...and implementation.
7897         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7898         * config/avr/avr.md (reload_in<mode>): Remove insns.
7899         (adjust_len) [lpm]: Remove insn attribute value.
7900         * config/avr/predicates.md (flash_operand): Remove insn predicate.
7902 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7904         PR middle-end/71876
7905         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7906         attribute.
7907         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7908         * calls.c (special_function_p): Remove the special handling of the
7909         "__builtin_" prefix.
7911 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7913         PR middle-end/71876
7914         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
7915         if STMT may be an alloca call.
7916         (gimple_alloca_call_p, alloca_call_p): Return only true for the
7917         builtin alloca call.
7918         * calls.h (gimple_maybe_alloca_call_p): New function.
7919         * tree-inline.c (inline_forbidden_p_stmt): Use
7920         gimple_maybe_alloca_call_p here.
7922 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
7924         * spellcheck-tree.c (best_macro_match::best_macro_match):
7925         Explictly specify the template arguments when invoking the base
7926         class constructor, to help older C++ compilers.
7928 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
7930         PR sanitizer/71953
7931         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7932         before builtin_decl_implicit.
7934 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7936         * optabs.c (emit_condiitonal_move): Short circuit for identical
7937         sources.
7939 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7941         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7942         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
7943         (noce_conversion_profitable_p): New.
7944         (noce_try_store_flag_constants): Use it.
7945         (noce_try_addcc): Likewise.
7946         (noce_try_store_flag_mask): Likewise.
7947         (noce_try_cmove): Likewise.
7948         (noce_try_cmove_arith): Likewise.
7949         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7950         overwriting it.
7951         (noce_convert_multiple_sets): Move cost model to here, from...
7952         (bb_ok_for_noce_convert_multiple_sets) ...here.
7953         (noce_process_if_block): Update calls for above changes.
7954         (noce_find_if_block): Record new noce_if_info parameters.
7956 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7958         * target.def (max_noce_ifcvt_seq_cost): New.
7959         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7960         * doc/tm.texi: Regenerate.
7961         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7962         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7963         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7964         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7965         * doc/invoke.texi: Document new params.
7967 2016-07-21  Richard Biener  <rguenther@suse.de>
7969         PR tree-optimization/71947
7970         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7971         ranges have useful limit_vr information.
7973 2016-07-21  Richard Biener  <rguenther@suse.de>
7975         * function-tests.c (build_trivial_generic_function): Set
7976         BLOCK_SUPERCONTEXT of DECL_INITIAL.
7977         * omp-low.c (create_omp_child_function): Likewise.
7978         (grid_expand_target_grid_body): Likewise.
7979         * cgraphunit.c (init_lowered_empty_function): Likewise.
7980         (cgraph_node::expand_thunk): Likewise.
7981         * tree-parloops.c (create_loop_fn): Likewise.
7982         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
7984 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7986         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
7987         in comment.
7989 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
7991         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
7992         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
7993         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
7994         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
7995         values for insn attribute.
7996         * config/avr/avr.c (avr_out_insert_notbit): New function.
7997         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
7998         ADJUST_LEN_INSV_NOTBIT_0/_7.
7999         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8001 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
8003         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
8004         (chrec_convert_1, chrec_convert): Ditto.
8005         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8006         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8007         * tree-vrp.c (adjust_range_with_scev): Ditto.
8008         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8009         (scev_var_range_cant_overflow): New function.
8010         (scev_probably_wraps_p): New parameter.  Call above function.
8011         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8013 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
8015         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8016         by removing computation of may_be_zero.
8018 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
8020         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8022 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
8024         Improving concepts performance and diagnostics.
8025         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8026         for constraint satisfaction and subsumption.
8027         * timevar.h (auto_timevar): New constructor that matches the push/pop
8028         pattern of usage in pt.c.
8030 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
8032         * hwint.h (HOST_WIDE_INT_0): New define.
8033         (HOST_WIDE_INT_0U): Ditto.
8034         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8035         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8036         * simplify-rtx.c: Ditto.
8037         * tree-object-size.c: Ditto.
8039 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8041         * config/s390/s390.c (s390_encode_section_info): Remove mode size
8042         check.
8044 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
8046         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8047         * combine.c: Use HOST_WIDE_INT_M1U instead of
8048         ~(unsigned HOST_WIDE_INT) 0.
8049         * double-int.h: Ditto.
8050         * dse.c: Ditto.
8051         * dwarf2asm.c:Ditto.
8052         * expmed.c: Ditto.
8053         * genmodes.c: Ditto.
8054         * match.pd: Ditto.
8055         * read-rtl.c: Ditto.
8056         * tree-ssa-loop-ivopts.c: Ditto.
8057         * tree-ssa-loop-prefetch.c: Ditto.
8058         * tree-vect-generic.c: Ditto.
8059         * tree-vect-patterns.c: Ditto.
8060         * tree.c: Ditto.
8062 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8064         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8065         constant addresses outside [0,0xc0] into a register.
8066         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
8067         cases where the base address register is unused after.
8068         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8069         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8070         (avr_out_store_psi_reg_disp_tiny): Same.
8072 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8074         Implement attribute progmem on reduced Tiny cores by adding
8075         flash offset 0x4000 to respective symbols.
8077         PR target/71948
8078         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8079         documentation how it works on reduced Tiny cores.
8080         (AVR Named Address Spaces): No support for reduced Tiny.
8081         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8082         (avr_address_tiny_pm_p): New static function.
8083         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8084         if the address is in progmem.
8085         (avr_assemble_integer): Same.
8086         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8087         for symbol_ref in progmem.
8088         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8089         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8090         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8092 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
8094         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
8095         * configure: Regenerate.
8096         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8097         (USE_THIN_ARCHIVES): New variable.
8098         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8099         this archive as a thin archive.
8101 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
8103         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8104         same location as last time, don't skip if we have fix-it hints.
8105         Clarify the skipping logic by converting it from one "if" clause
8106         to repeated "if" clauses.
8107         * spellcheck-tree.c: Include "cpplib.h".
8108         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8109         (best_macro_match::best_macro_match): New constructor.
8110         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8111         Move here from c/c-decl.c.
8112         (class best_macro_match): Move here from c/c-decl.c, converting
8113         from a typedef to a subclass, gaining a ctor.
8115 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8117         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8118         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8119         define...
8120         (avr_addr_space_diagnose_usage): ...and implementation.
8121         (avr_addr_space_supported_p): New function.
8122         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8123         report bad address space usage if that space is supported.
8124         (avr_insert_attributes): Same.  No more complain about unsupported
8125         address spaces.
8126         * config/avr/avr-c.c (tm_p.h): Include it.
8127         (avr_cpu_cpp_builtins): Only define addr-space related built-in
8128         macro if avr_addr_space_supported_p.
8130 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
8132         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8133         flag_toplevel_reorder.
8135 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
8137         * gcc-rich-location.c
8138         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8139         a const char *.
8140         * gcc-rich-location.h
8141         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8143 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8145         * target.def (addr_space): Add new diagnose_usage to hook vector.
8146         * targhooks.c (default_addr_space_diagnose_usage): Add default
8147         implementation and...
8148         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8149         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8150         is some address space, call targetm.addr_space.diagnose_usage.
8151         * doc/tm.texi.in (Named Address Spaces): Add anchor for
8152         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8153         * doc/tm.texi: Regenerate.
8155 2016-07-20  Martin Liska  <mliska@suse.cz>
8157         PR middle-end/71898
8158         * graphite-isl-ast-to-gimple.c (later_of_the_two):
8159         Properly handly PHI stmts.
8161 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
8163         PR tree-optimization/71503
8164         PR tree-optimization/71683
8165         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8166         and break.
8168 2016-07-20  Martin Liska  <mliska@suse.cz>
8170         * doc/invoke.texi (-fipa-ra): Document when the option is
8171         disabled. Fix a typo.
8173 2016-07-20  Martin Liska  <mliska@suse.cz>
8175         * Makefile.in: Include fibonacci_heap.c
8176         * fibonacci_heap.c: New file.
8177         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8178         (fibonacci_heap::union_with): Fix deletion of the second heap.
8179         * selftest-run-tests.c (selftest::run_tests): Incorporate
8180         fibonacci heap tests.
8181         * selftest.h: Declare fibonacci_heap_c_tests.
8183 2016-07-20  Martin Liska  <mliska@suse.cz>
8185         * selftest-run-tests.c (selftest::run_tests): New function.
8186         * selftest.h (sreal_c_tests): Declare.
8187         * sreal.c (sreal_verify_basics): New function.
8188         (verify_aritmetics): Likewise.
8189         (sreal_verify_arithmetics): Likewise.
8190         (verify_shifting): Likewise.
8191         (sreal_verify_shifting): Likewise.
8192         (void sreal_c_tests): Likewise.
8194 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
8196         PR rtl-optimization/71916
8197         * cfgrtl.c (contains_no_active_insn_p): Return false also for
8198         bb which have a single succ fake edge.
8200 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
8202         PR debug/71855
8203         * dwarf2out.c (gen_subprogram_die): Only call
8204         gen_unspecified_parameters_die while dumping early dwarf.
8206 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
8208         PR middle-end/71874
8209         * gimple-fold.c (fold_builtin_memory_op): Use
8210         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8212 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
8214         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8215         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8216         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8217         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8218         * combine.c: Ditto.
8219         * cse.c: Ditto.
8220         * dojump.c: Ditto.
8221         * double-int.c: Ditto.
8222         * dse.c: Ditto.
8223         * dwarf2out.c: Ditto.
8224         * expmed.c: Ditto.
8225         * expr.c: Ditto.
8226         * fold-const.c: Ditto.
8227         * function.c: Ditto.
8228         * fwprop.c: Ditto.
8229         * genmodes.c: Ditto.
8230         * hwint.c: Ditto.
8231         * hwint.h: Ditto.
8232         * ifcvt.c: Ditto.
8233         * loop-doloop.c: Ditto.
8234         * loop-invariant.c: Ditto.
8235         * loop-iv.c: Ditto.
8236         * match.pd: Ditto.
8237         * optabs.c: Ditto.
8238         * real.c: Ditto.
8239         * reload.c: Ditto.
8240         * rtlanal.c: Ditto.
8241         * simplify-rtx.c: Ditto.
8242         * stor-layout.c: Ditto.
8243         * toplev.c: Ditto.
8244         * tree-ssa-loop-ivopts.c: Ditto.
8245         * tree-vect-generic.c: Ditto.
8246         * tree-vect-patterns.c: Ditto.
8247         * tree.c: Ditto.
8248         * tree.h: Ditto.
8249         * ubsan.c: Ditto.
8250         * varasm.c: Ditto.
8251         * wide-int-print.cc: Ditto.
8252         * wide-int.cc: Ditto.
8253         * wide-int.h: Ditto.
8255 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
8257         * selftest.c (selftest::assert_streq): Handle NULL values of
8258         val_actual and val_expected.
8260 2016-07-19  Martin Jambor  <mjambor@suse.cz>
8262         PR fortran/71688
8263         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
8264         rather than cgraph_create_node to get a call graph node.
8266 2016-07-19  Richard Biener  <rguenther@suse.de>
8268         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
8269         handle all tcc_constant bases and valueize SSA names.
8270         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
8271         tcc_constant bases.
8273 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
8275         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
8276         the flags of the exit block and bb2, not just the entry block.
8278 2016-07-19  Richard Biener  <rguenther@suse.de>
8280         PR tree-optimization/71901
8281         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8282         align member, group stuff with the bitfield.
8283         (vn_ref_op_align_unit): New inline.
8284         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
8285         record element alignment and operand 3 unchanged.
8286         (ao_ref_init_from_vn_reference): Adjust.
8287         (valueize_refs_1): Likewise.
8288         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8290 2016-07-19  Richard Biener  <rguenther@suse.de>
8292         PR tree-optimization/71908
8293         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
8294         symbolic constants in a more reliable way.
8296 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
8298         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
8299         comment.
8300         (vect_update_inits_of_drs): Likewise.
8301         (vect_create_cond_for_alias_checks): Likewise.
8302         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
8304 2016-07-19  Richard Biener  <rguenther@suse.de>
8306         PR lto/71907
8307         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
8308         with an abstract origin that is not an inlined function outer
8309         scope add a self-reference as abstract origin.
8310         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
8312 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8314         PR target/71493
8315         * config/rs6000/rs6000.c (rs6000_function_value): Fix
8316         unintentional System V.4 structure return breakage for structures
8317         with a single floating point element.
8319 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8321         PR tree-optimization/71734
8322         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
8323         contains REF, use it to check safelen, assume that safelen value
8324         must be greater 1, fix style.
8325         (ref_indep_loop_p_2): Add REF_LOOP argument.
8326         (ref_indep_loop_p): Pass LOOP as additional argument to
8327         ref_indep_loop_p_2.
8329 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8331         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
8332         allocation in the prologue.
8333         * explow.c (get_dynamic_stack_base): New function to return an address
8334         expression for the dynamic stack base.
8335         (get_dynamic_stack_size): New function to do the required dynamic stack
8336         space size calculations.
8337         (allocate_dynamic_stack_space): Use new functions.
8338         (align_dynamic_address): Move some code from
8339         allocate_dynamic_stack_space to new function.
8340         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
8342 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8344         * config/s390/s390.c (s390_encode_section_info): Always set
8345         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
8346         found.
8348 2016-07-18  Richard Biener  <rguenther@suse.de>
8350         PR tree-optimization/71893
8351         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
8352         for sizetype cast added by array_ref_element_size.
8353         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8355 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
8357         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
8358         register parameters.  Remove code to initialize argument pointer
8359         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
8360         using a pc-relative branch.  Cleanup conditional code.
8361         * config/pa/pa.md (call_mcount): New expander.
8362         (call_mcount_nonpic): New insn.
8363         (call_mcount_pic): New insn and split.
8364         (call_mcount_pic_post_reload): New insn.
8365         (call_mcount_64bit): New insn and split.
8366         (call_mcount_64bit_post_reload): New insn.
8368 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
8370         * config/avr/predicates.md (const_m255_to_m1_operand): New.
8371         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
8372         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
8373         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
8374         (*usum_widenqihi3, *udiff_widenqihi3)
8375         (*addhi3_zero_extend.const): New combiner insns.
8376         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
8377         just 1 bit is affected.
8378         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
8379         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
8381 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8383         * omp-low.c (lower_omp_target): Mark data clauses with
8384         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
8385         zero-length subarrays.
8387 2016-07-15  Richard Biener  <rguenther@suse.de>
8389         PR tree-optimization/71881
8390         * tree-loop-distribution.c (destroy_loop): Remove blocks in
8391         reverse DOM order to make debug temp generation happy.
8393 2016-07-15  Richard Biener  <rguenther@suse.de>
8395         PR tree-optimization/71887
8396         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
8397         verify it is not zero for division / modulo handling.
8398         (value_replacement): Adjust.
8400 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
8401             Julian Brown  <julian@codesourcery.com>
8403         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8404         * config/aarch64/aarch64-cost-tables.h
8405         (vulcan_extra_costs): New variable.
8406         * config/aarch64/aarch64.c
8407         (vulcan_addrcost_table): Likewise.
8408         (vulcan_regmove_cost): Likewise.
8409         (vulcan_vector_cost): Likewise.
8410         (vulcan_branch_cost): Likewise.
8411         (vulcan_tunings): Likewise.
8413 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
8415         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8416         (output_in_order): Loop over undefined variables too.  Output them
8417         via assemble_undefined_decl.  Skip variables that correspond to hard
8418         registers or have value-exprs.
8419         * varpool.c (symbol_table::output_variables): Handle undefined
8420         variables together with defined ones.
8422 2016-07-15  Richard Biener  <rguenther@suse.de>
8424         * tree-ssa-pre.c (get_representative_for): Make sure to return
8425         the value number of SSA names.
8426         (phi_translate_1): get_representative_for cannot return NULL.
8427         (do_pre_regular_insertion): Remove redundant call to
8428         fully_constant_expression.
8429         (do_pre_partial_partial_insertion): Likewise.
8431 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
8433         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8434         (derive_simple_iv_with_niters): New function.
8435         (simple_iv): Rewrite using simple_iv_with_niters.
8436         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8437         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8438         function.
8439         (number_of_iterations_exit): Rewrite using above function.
8440         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8441         Decl.
8443 2016-07-15  Richard Biener  <rguenther@suse.de>
8445         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8446         vec_construct cost.
8448 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
8450         PR tree-optimization/71872
8451         * tree-data-ref.c (get_references_in_stmt): Ignore references
8452         with is_gimple_constant get_base_address.
8454 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8456         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8457         (TARGET_HAVE_LDACQD): New macro.
8458         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8459         than TARGET_HAVE_LDACQ.
8460         (arm_load_acquire_exclusivedi): Likewise.
8461         (arm_store_release_exclusivedi): Likewise.
8463 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8465         PR rtl-optimization/71878
8466         * lra-constraints.c (match_reload): Pass information about other
8467         output operands.  Create new unique register value if matching input
8468         operand shares same register value as output operand being considered.
8469         (curr_insn_transform): Record output operands already processed.
8471 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8473         PR target/65951
8474         PR tree-optimization/70923
8475         * tree-vect-patterns.c: Include mult-synthesis.h.
8476         (target_supports_mult_synth_alg): New function.
8477         (synth_lshift_by_additions): Likewise.
8478         (apply_binop_and_append_stmt): Likewise.
8479         (vect_synth_mult_by_constant): Likewise.
8480         (target_has_vecop_for_code): Likewise.
8481         (vect_recog_mult_pattern): Use above functions to synthesize vector
8482         multiplication by integer constants.
8484 2016-07-14  Alan Modra  <amodra@gmail.com>
8486         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8487         gpr alternatives.  Correct '*' placement on Y,r alternative.
8488         Add '*' on operand 1 of r,r alternative.
8490 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8492         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8493         * expmed.h: ... Here.
8495 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
8497         * gimple.h (stmt_can_terminate_bb_p): New function.
8498         * tree-cfg.c (need_fake_edge_p): Rename to ...
8499         (stmt_can_terminate_bb_p): ... this; return true if stmt can
8500         throw external; handle const and pure calls.
8501         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8503 2016-07-14  Richard Biener  <rguenther@suse.de>
8505         PR tree-optimization/71866
8506         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8507         (do_hoist_insertion): Avoid endless recursion when we
8508         didn't insert anything because we managed to simplify
8509         things down to a constant or SSA name.
8510         (fully_constant_expression): Re-write in terms of ...
8511         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
8512         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8513         vn_nary_build_or_lookup_1.
8514         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8515         (vn_nary_build_or_lookup): ... this which now wraps it.
8517 2016-07-14  Alan Modra  <amodra@gmail.com>
8519         PR target/71733
8520         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8521         with p9_vector override before power9-dform override.
8523 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8525         * value-prof.c (gimple_value_profile_transformations): Don't run
8526         when auto_profile is on.
8528 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8530         * auto-profile.c (update_inlined_ind_target,
8531         afdo_indirect_call): Print information to dump file.
8533 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8535         * genrecog.c (special_predicate_operand_p): New function.
8536         (predicate_name): Move function.
8537         (validate_pattern): Don't warn about missing mode for all
8538         define_special_predicate predicates.
8540 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
8542         * tree-vect-data-refs.c (vect_no_alias_p): New function.
8543         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8544         resolve alias checks which are known at compilation time.
8545         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8546         alias checks are resolved.  Move dump info for too many runtime
8547         alias checks to here...
8548         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8550 2016-07-13  Richard Biener  <rguenther@suse.de>
8552         PR tree-optimization/24574
8553         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8554         position and add shift, rotate, divison and modulo support
8555         for left zero.
8556         (value_replacement): Pass in argument position to absorbing_element_p.
8558 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8560         PR ipa/71633
8561         * ipa-inline-transform.c (inline_call): Support
8562         instrumented thunks.
8564 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8566         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8567         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8568         divide feature.
8569         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8570         Baseline.  Make initial alternative TARGET_32BIT only.
8571         (udivsi3): Likewise.
8572         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8573         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8574         target.
8576 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8578         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8579         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8580         availability with TARGET_HAVE_MOVT.
8581         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8582         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8583         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8584         UINTVAL.
8585         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8586         extra instruction if MOVW is available.  Use a cost variable
8587         incremented by COSTS_N_INSNS (1) when the condition match rather than
8588         returning an arithmetic expression based on COSTS_N_INSNS.  Make
8589         constant with bottom half word zero cost 2 instruction if MOVW is
8590         available.
8591         * config/arm/arm.md (define_attr "arch"): Add v8mb.
8592         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8593         target is ARMv8-M Baseline.
8594         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8595         (arm_movtas_ze): Likewise.
8596         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8597         alternative for constants satisfying j constraint.
8598         (thumb1_movsi_insn): Likewise.
8599         (movsi splitter for K alternative): Tighten condition to not trigger
8600         if movt is available and j constraint is satisfied.
8601         (Pe immediate splitter): Likewise.
8602         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8603         constant fitting in an halfword to use MOVW.
8604         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8605         effective target.
8607 2016-07-13  Richard Biener  <rguenther@suse.de>
8609         PR middle-end/71104
8610         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8611         gimplifying the LHS.  Make sure to gimplify a returning twice
8612         call LHS without using SSA names.
8614 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8616         * tree-data-ref.c (find_data_references_in_stmt): Remove
8617         unnecessary call to vec::release.
8618         (graphite_find_data_references_in_stmt): Likewise.
8619         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8620         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8622 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8624         * cfgexpand.c (expand_used_vars): Make the type of a local
8625         variable auto_vec.
8626         * genmatch.c (lower_for): Likewise.
8627         * haifa-sched.c (haifa_sched_init): Likewise.
8628         (add_to_speculative_block): Likewise.
8629         (create_check_block_twin): Likewise.
8630         * predict.c (handle_missing_profiles): Likewise.
8631         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8632         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8633         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8634         Likewise.
8635         (maybe_lower_iteration_bound): Likewise.
8636         * tree-ssa-sccvn.c (DFS): Likewise.
8637         * tree-stdarg.c (reachable_at_most_once): Likewise.
8638         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8639         (vectorizable_store): Likewise.
8641 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8643         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8644         (sccvn_dom_walker): make cond_stack an auto_vec.
8646 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8648         * ree.c (struct ext_state): Make type of members auto_vec.
8649         (find_and_remove_re): Adjust.
8651 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8653         * cfgexpand.c (struct stack_vars_data): Make type of fields
8654         auto_vec.
8655         (expand_used_vars): Adjust.
8657 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8659         * ipa.c (record_cdtor_fn): Adjust.
8660         (build_cdtor_fns): Likewise.
8661         (ipa_cdtor_merge): Make static_ctors and static_dtors local
8662         variables.
8664 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8666         * genextract.c (struct accum_extract): Add constructor and make
8667         members auto_vec.
8668         (gen_insn): Adjust.
8670 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8672         * tree.c (struct free_lang_data_d): Add constructor and change
8673         types of members to ones that automatically manage resources.
8674         (fld_worklist_push): Adjust.
8675         (find_decls_types): Likewise.
8676         (find_decls_types_in_eh_region): Likewise.
8677         (free_lang_data_in_cgraph): Stop manually creating and
8678         destroying members of free_lang_data_d.
8680 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
8682         PR rtl-optimization/68961
8683         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8684         peephole variant.  Use sse_reg_operand predicates.
8686 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
8688         * config/i386/predicates.md (x86_64_immediate_operand)
8689         <case CONST_INT>: Remove unneeded truncation to DImode.
8690         <case CONST>: Ditto.
8691         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8693 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8695         PR target/71805
8696         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8697         The xxperm and xxpermr instructions require that the 2nd input
8698         operand overlap with the output operand, and not the 1st.
8699         (altivec_vperm_v8hiv16qi): Likewise.
8700         (altivec_vperm_<mode>_uns_internal): Likewise.
8701         (altivec_vpermr_<mode>_internal): Likewise.
8702         (vperm_v8hiv4si): Likewise.
8703         (vperm_v16qiv8hi): Likewise.
8705 2016-07-12  Nathan Sidwell  <nathan@acm.org>
8707         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8708         when -mno-pic-data-is-text-relative is in effect, by default.
8709         * doc/invoke.texi (mpic-data-is-text-relative): Document new
8710         behavior and clarify.
8712 2016-07-12  Martin Liska  <mliska@suse.cz>
8714         * params.def: Add avg-loop niter.
8715         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8716         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8717         * doc/invoke.texi: Document the new parameter.
8719 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8721         PR middle-end/71700
8722         * expr.c (store_constructor): Mask sign-extended bits when widening
8723         sub-word constructor element at the start of a word.
8725 2016-07-12  Martin Liska  <mliska@suse.cz>
8727         * Makefile.in: Append rule for params-options.h.
8728         * params-options.h: New file.
8730 2016-07-12  Martin Liska  <mliska@suse.cz>
8732         * ira-build.c (mark_loops_for_removal): Properly iterate
8733         loops.
8735 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
8736             Richard Biener  <rguenther@suse.de>
8738         PR tree-optimization/23286
8739         PR tree-optimization/70159
8740         * doc/invoke.texi: Document -fcode-hoisting.
8741         * common.opt (fcode-hoisting): New flag.
8742         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8743         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8744         (do_regular_insertion): Rename to ...
8745         (do_pre_regular_insertion): ... this and amend general comments
8746         on insertion strathegy.
8747         (do_partial_partial_insertion): Rename to ...
8748         (do_pre_partial_partial_insertion): ... this.
8749         (do_hoist_insertion): New function.
8750         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8751         and call do_hoist_insertion properly.
8752         (insert): Adjust.
8753         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8754         (pass_pre::execute): Register hoist_insert stats.
8756 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
8758         PR middle-end/71716
8759         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8760         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8761         is different from mode's bitsize.  Small cleanup.
8763 2016-07-12  Richard Biener  <rguenther@suse.de>
8765         PR rtl-optimization/68961
8766         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8767         to simplify to a non-constant.
8769 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
8771         PR middle-end/71758
8772         * omp-low.c (expand_omp_target): Gimplify device.
8774         PR tree-optimization/71823
8775         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8776         to get vec_oprnds2 from op2.
8778 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
8780         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8781         Hoist common subexpressions.
8782         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8784 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
8786         PR target/71800
8787         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8788         prevent generation of 'stxsiwx' on pre Power8 hardware.
8790 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8792         * input.c: Include cpplib.h.
8793         (selftest::temp_source_file): New class.
8794         (selftest::temp_source_file::temp_source_file): New ctor.
8795         (selftest::temp_source_file::~temp_source_file): New dtor.
8796         (selftest::should_have_column_data_p): New function.
8797         (selftest::test_should_have_column_data_p): New function.
8798         (selftest::temp_line_table): New class.
8799         (selftest::temp_line_table::temp_line_table): New ctor.
8800         (selftest::temp_line_table::~temp_line_table): New dtor.
8801         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8802         it to create a temp_line_table.
8803         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8804         locations that are known to have column data.
8805         (selftest::line_table_case): New struct.
8806         (selftest::test_reading_source_line): Move tempfile handling
8807         to class temp_source_file.
8808         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8809         (selftest::assert_token_loc_eq): New function.
8810         (ASSERT_TOKEN_LOC_EQ): New macro.
8811         (selftest::test_lexer): New function.
8812         (selftest::boundary_locations): New array.
8813         (selftest::input_c_tests): Call test_should_have_column_data_p.
8814         Loop over a test matrix of interesting values of location and
8815         default_range_bits, calling test_lexer on each case in the matrix.
8816         Move call to test_accessing_ordinary_linemaps into the matrix.
8817         * selftest.h (ASSERT_EQ): Reimplement in terms of...
8818         (ASSERT_EQ_AT): New macro.
8820 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
8822         PR target/71801
8823         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8824         Don't convert TImode in debug insn.
8826 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8828         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8829         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8830         (tree_type_common::lang_flag_7): New.
8831         (tree_type_common::spare): Reduce size.
8832         * tree.h (TYPE_ALIGN_OK): Remove.
8833         (TYPE_LANG_FLAG_7): New.
8834         (get_inner_reference): Adjust header.
8835         * print-tree.c (print_node): Adjust.
8836         * expr.c (get_inner_reference): Remove parameter keep_aligning.
8837         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8838         calls to get_inner_reference.
8839         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
8840         handling of TYPE_ALIGN_OK.
8841         * builtins.c (get_object_alignment_2): Adjust call to
8842         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
8843         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8844         TYPE_ALIGN_OK.
8845         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8846         * cfgexpand.c (expand_debug_expr): Likewise.
8847         * dbxout.c (dbxout_expand_expr): Likewise.
8848         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8849         loc_list_from_tree, fortran_common): Likewise.
8850         * fold-const.c (optimize_bit_field_compare,
8851         decode_field_reference, fold_unary_loc, fold_comparison,
8852         split_address_to_core_and_offset): Likewise.
8853         * gimple-laddress.c (execute): Likewise.
8854         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8855         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8856         * hsa-gen.c (gen_hsa_addr): Likewise.
8857         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8858         * tsan.c (instrument_expr): Likewise.
8859         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8860         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8861         * tree-affine.c (tree_to_aff_combination,
8862         get_inner_reference_aff): Adjust calls to get_inner_reference.
8863         * tree-data-ref.c (split_constant_offset_1,
8864         dr_analyze_innermost): Likewise.
8865         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8866         * tree-sra.c (ipa_sra_check_caller): Likewise.
8867         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8868         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8869         bswap_replace): Likewise.
8870         * tree-vect-data-refs.c (vect_check_gather,
8871         vect_analyze_data_refs): Likewise.
8872         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8873         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8874         TYPE_ALIGN_OK.
8876 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8878         * Makefile.in (selftest-valgrind): New phony target.
8879         * function-tests.c (selftest::build_cfg): Delete pass instances
8880         created by the test.
8881         (selftest::convert_to_ssa): Likewise.
8882         (selftest::test_expansion_to_rtl): Likewise.
8883         * tree-cfg.c (selftest::test_linear_chain): Release dominator
8884         vectors.
8885         (selftest::test_diamond): Likewise.
8887 2016-07-11  Richard Biener  <rguenther@suse.de>
8889         PR tree-optimization/71816
8890         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8891         than replacing all of its operands.
8893 2016-07-11  Alan Modra  <amodra@gmail.com>
8895         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8896         (ctr<mode>): Add unspec.
8897         (ctr<mode>_internal*): Likewise.
8899 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
8901         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8902         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8904 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
8906         PR rtl-optimization/71621
8907         * lra-constraints.c (process_alt_operands): Check combination of
8908         reg class and mode.
8910 2016-07-08  Jason Merrill  <jason@redhat.com>
8911             Richard Biener  <rguenther@suse.de>
8913         P0145: Refining Expression Order for C++.
8914         * gimplify.c (initial_rhs_predicate_for): New.
8915         (gimplfy_modify_expr): Gimplify RHS before LHS.
8917 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8919         PR target/71297
8920         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8921         Allow standard error handling to take over when a wrong number
8922         of arguments is presented to __builtin_vec_ld () or
8923         __builtin_vec_st ().
8925 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
8927         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8928         variants.
8929         (smin): Likewise.
8930         (fmax): New entry.
8931         (fmin): Likewise.
8932         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8933         __builtin_aarch64_fmaxv2sf.
8934         (vmaxnmq_f32): Likewise.
8935         (vmaxnmq_f64): Likewise.
8936         (vminnm_f32): Likewise.
8937         (vminnmq_f32): Likewise.
8938         (vminnmq_f64): Likewise.
8940 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8942         PR target/71806
8943         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8944         enable -mfloat128-hardware by default.
8945         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8946         that IEEE 128-bit hardware support needs.
8947         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8948         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8949         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8950         floating point requires.
8951         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8952         -mfloat128 and -mfloat128-hardware changes.
8954 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
8956         PR tree-optimization/71667
8957         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8959 2016-07-08  Martin Liska  <mliska@suse.cz>
8961         PR middle-end/71606
8962         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8963         folding produces SAVE_EXPRs, thus return false for the type.
8965 2016-07-07  Martin Liska  <mliska@suse.cz>
8967         * file-find.c (remove_prefix): New function.
8968         * file-find.h (remove_prefix): Declare the function.
8969         * gcc-ar.c (main): Skip a folder of the wrapper if
8970         a wrapped binary would point to the same file.
8972 2016-07-07  Jan Hubicka  <jh@suse.cz>
8974         * tree-scalar-evolution.c (iv_can_overflow_p): export.
8975         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8976         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
8978 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8980         PR ipa/71624
8981         * ipa-inline-analysis.c (compute_inline_parameters): Set
8982         local.can_change_signature to false for intrumentation
8983         thunk callees.
8985 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8987         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
8988         with TARGET_HAVE_MOVT.
8989         (TARGET_HAVE_MOVT): Define.
8990         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
8991         availability with TARGET_HAVE_MOVT.
8992         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
8993         availability.
8994         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
8995         TARGET_THUMB2.
8996         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
8997         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
8998         * config/arm/constraints.md (define_constraint "j"): Use
8999         TARGET_HAVE_MOVT to check MOVT availability.
9001 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9003         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9005 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9007         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9008         (armv8-m.main): Likewise.
9009         (armv8-m.main+dsp): Likewise.
9010         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9011         (FL_FOR_ARCH8M_MAIN): Likewise.
9012         * config/arm/arm-tables.opt: Regenerate.
9013         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9014         armv8-m.main+dsp to BE8_LINK_SPEC.
9015         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9016         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9017         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9018         Baseline and Mainline.
9019         (arm_option_override_internal): Also disable arm_restrict_it when
9020         !arm_arch_notm.  Update comment for -munaligned-access to also cover
9021         ARMv8-M Baseline.
9022         (arm_file_start): Increase buffer size for printing architecture name.
9023         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9024         and armv8-m.main+dsp.
9025         (mno-unaligned-access): Clarify that this is disabled by default for
9026         ARMv8-M Baseline architectures as well.
9028 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9030         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9031         decide whether to prevent some libgcc routines being included for some
9032         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9033         link between this condition and the one in
9034         libgcc/config/arm/lib1func.S.
9036 2016-07-07  Richard Biener  <rguenther@suse.de>
9038         * tree-ssa-pre.c: Include alias.h.
9039         (compute_avail): If we have multiple VN_REFERENCEs with the
9040         same hashtable entry adjust that to make it a valid replacement
9041         for all of them with respect to alignment and aliasing
9042         when doing insertion.
9043         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9044         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9046 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
9048         PR target/70098
9049         PR target/71763
9050         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9051         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9052         constraint.
9054 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9056         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9057         (adjust_mems): Adjust.
9058         (adjust_insn): Likewise.
9059         (prepare_call_arguments): Likewise.
9061 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9063         * gcse.c (struct ls_expr): Make stores field a vector.
9064         (ldst_entry): Adjust.
9065         (free_ldst_entry): Likewise.
9066         (print_ldst_list): Likewise.
9067         (compute_ld_motion_mems): Likewise.
9068         (update_ld_motion_stores): Likewise.
9070 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9072         * gcse.c (struct ls_expr): Remove loads field.
9073         (ldst_entry): Adjust.
9074         (free_ldst_entry): Likewise.
9075         (print_ldst_list): Likewise.
9076         (compute_ld_motion_mems): Likewise.
9078 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9080         * store-motion.c (struct st_expr): Make antic_stores a vector.
9081         (st_expr_entry): Adjust.
9082         (free_st_expr_entry): Likewise.
9083         (print_store_motion_mems): Likewise.
9084         (find_moveable_store): Likewise.
9085         (compute_store_table): Likewise.
9086         (remove_reachable_equiv_notes): Likewise.
9087         (replace_store_insn): Likewise.
9088         (build_store_vectors): Likewise.
9090 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9092         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9093         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9095 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
9097         PR tree-optimization/71518
9098         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9099         misalign also for outer loops with negative step.
9101 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
9103         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9104         (cortex_a53_shift): Add mov_shift.
9105         (cortex_a53_shift_reg): Add new reservation for register shifts.
9106         (cortex_a53_alu): Remove bfm.
9107         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9108         (cortex_a53_alu_extr): Add new reservation for EXTR.
9109         (bypasses): Improve bypass modelling.
9111 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9113         PR target/50739
9114         * config/avr/avr.c (avr_asm_select_section): Strip off
9115         SECTION_DECLARED from flags when calling get_section.
9117 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9119         * tree-vectorizer.h (vect_memory_access_type): Add
9120         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9121         * tree-vect-stmts.c (compare_step_with_zero): New function.
9122         (perm_mask_for_reverse): Move further up file.
9123         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9124         step is negative.
9125         (get_negative_load_store_type): New function.
9126         (get_load_store_type): Call it.  Add an ncopies argument.
9127         (vectorizable_mask_load_store): Update call accordingly and
9128         remove tests for negative steps.
9129         (vectorizable_store, vectorizable_load): Likewise.  Handle new
9130         memory_access_types.
9132 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9134         * tree-vectorizer.h (vect_memory_access_type): New enum.
9135         (_stmt_vec_info): Add a memory_access_type field.
9136         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9137         (vect_model_store_cost): Take an access type instead of a boolean.
9138         (vect_model_load_cost): Likewise.
9139         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9140         vect_model_store_cost and vect_model_load_cost.
9141         * tree-vect-stmts.c (vec_load_store_type): New enum.
9142         (vect_model_store_cost): Take an access type instead of a
9143         store_lanes_p boolean.  Simplify tests.
9144         (vect_model_load_cost): Likewise, but for load_lanes_p.
9145         (get_group_load_store_type, get_load_store_type): New functions.
9146         (vectorizable_store): Use get_load_store_type.  Record the access
9147         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9148         (vectorizable_load): Likewise.
9149         (vectorizable_mask_load_store): Likewise.  Replace is_store
9150         variable with vls_type.
9152 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9154         * tree-vectorizer.h (vect_grouped_load_supported): Add a
9155         single_element_p parameter.
9156         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9157         Check the PR65518 case here rather than in vectorizable_load.
9158         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9159         * tree-vect-stmts.c (vectorizable_load): Likewise.
9161 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9163         * tree-vectorizer.h (gather_scatter_info): New structure.
9164         (vect_check_gather_scatter): Return a bool rather than a decl.
9165         Replace return-by-pointer arguments with a single
9166         gather_scatter_info *.
9167         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9168         (vect_analyze_data_refs): Update call accordingly.
9169         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9170         (vectorizable_mask_load_store): Likewise.  Also record the
9171         offset dt and vectype in the gather_scatter_info.
9172         (vectorizable_store): Likewise.
9173         (vectorizable_load): Likewise.
9175 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9177         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9178         strided groups, use the cost of N scalar accesses instead
9179         of ncopies vector accesses.
9180         (vect_model_load_cost): Likewise.
9182 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9184         * tree-vect-stmts.c (vect_cost_group_size): Delete.
9185         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
9186         variable to indicate when once-per-group costs are being used.
9187         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
9189 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9191         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9192         peeling-for-gaps condition.
9194 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9196         * config/s390/s390.c (s390_expand_vec_init): Force initializer
9197         element to register if it doesn't match general_operand.
9199 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9200             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9202         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9203         prototype.
9204         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9205         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9206         (SIGNBIT): New mode iterator.
9207         (Fsignbit): New mode attribute.
9208         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9209         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9210         when direct moves are available.
9211         (signbit<mode>2_dm): New define_insn_and_split).
9212         (signbit<mode>2_dm2): New define_insn.
9214 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9216         PR rtl-optimization/71594
9217         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9218         into subregs of appropriate mode before trying to emit a conditional
9219         move.
9221 2016-07-05  Jan Hubicka  <jh@suse.cz>
9223         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9224         (simple_iv): Use it.
9226 2016-07-05  Jan Hubicka  <jh@suse.cz>
9228         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9230 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
9232         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9233         "offmemok".
9235 2016-07-05  Jan Hubicka  <jh@suse.cz>
9237         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9238         IV can overflow.
9240 2016-07-05  Richard Biener  <rguenther@suse.de>
9242         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9243         Handle empty else block.
9244         (is_feasible_trace): Likewise.
9245         (split_paths): Likewise.
9247 2016-07-05  Richard Biener  <rguenther@suse.de>
9249         * tree-loop-distribution.c (distribute_loop): Fix issue with
9250         the cost model loop.
9252 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
9254         * config/arm/neon-testgen.ml: Delete.
9255         * config/arm/neon.ml: Delete.
9257 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
9259         PR c++/71739
9260         * tree.c (attribute_value_equal): Use get_attribute_name instead of
9261         directly using TREE_PURPOSE.
9263 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
9265         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
9266         * config/aarch64/aarch64_neon.h: Likewise.
9267         * config/aarch64/arm_neon.h: Likewise.
9268         * config/aarch64/atomics.md: Likewise.
9269         * config/aarch64/aarch64-simd-builtins.def: Likewise.
9270         * doc/invoke.texi: Likewise.
9272 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9274         * config/s390/s390.md: Add "z13" cpu_facility.
9275         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
9276         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
9277         condition" type instructions.
9279 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9280             Jeff Law  <law@redhat.com>
9282         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
9283         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
9285 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
9287         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
9288         permutation for TARGET_AVX512F.
9289         (ix86_expand_vec_one_operand_perm_avx512): New function.
9290         (expand_vec_perm_1): Invoke introduced function.
9291         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9292         it may be not valid after vectorization.
9294 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9296         PR target/63874
9297         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
9298         typo in comment.  Only force to memory if it is a weak
9299         external reference.
9301 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
9302             Jiong Wang  <jiong.wang@arm.com>
9304         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
9305         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
9306         (AARCH64_FL_F16): New.
9307         (AARCH64_FL_FOR_ARCH8_2): New.
9308         (AARCH64_ISA_8_2): New.
9309         (AARCH64_ISA_F16): New.
9310         (TARGET_FP_F16INST): New.
9311         (TARGET_SIMD_F16INST): New.
9312         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
9313         ("fp"): Disabling "fp" also disables "fp16".
9314         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
9315         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
9316         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
9317         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
9319 2016-07-04  Jan Beulich  <jbeulich@suse.com>
9321         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
9323 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9325         PR target/71720
9326         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
9327         the insns, use an insn form that does not adjust the offset on
9328         little endian systems.
9330 2016-07-01  Jan Beulich  <jbeulich@suse.com>
9332         * varasm.c (get_variable_section): Validate initializer in
9333         named .bss-like sections.
9335 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9337         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
9338         Exchange the order of the second and third operands in the vpermr
9339         instruction tmeplate.
9341 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
9343         PR target/71698
9344         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
9345         Disallow TDmode values.
9347 2016-07-01  Alan Modra  <amodra@gmail.com>
9349         PR rtl-optimization/71709
9350         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
9351         being set, not referenced.
9353 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
9355         PR tree-optimization/70729
9356         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
9357         of loop since it can be not valid after transformation.
9359 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9361         * config/arm/arm.c (thumb_reload_in_hi): Delete.
9362         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
9364 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
9366         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
9367         for NULL decl.
9369 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9371         PR target/71677
9372         * config/rs6000/constraints.md (wY constraint): New constraint to
9373         match the requirements for the LXSD and STXSD instructions.
9374         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
9375         predicate to match the requirements for the LXSD and STXSD
9376         instructions.
9377         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
9378         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
9379         to make sure that the bottom 2 bits of offset are 0, the address
9380         form is offsettable, and no updating is done in the address mode.
9381         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
9382         (movdi_internal32): Likewise
9383         (movdi_internal64): Likewise.
9385 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
9387         PR tree-optimization/71707
9388         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
9389         strinfo even for ADDR_EXPR ptr.
9391 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9393         * config/rs6000/altivec.md (darn_32): Change the condition to
9394         TARGET_P9_MISC instead of TARGET_MODULO.
9395         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
9396         condition expression.
9397         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
9398         condition expression.
9399         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
9400         (DFP_TEST): New code iterator.
9401         (dfptstsfi_<code>_mode>): New define_expand.
9402         (*dfp_sgnfcnc_<mode>): New define_insn.
9403         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9404         definition next to BU_P9_MISC_1 definition and change the MASK
9405         value to RS6000_BTM_P9_MISC.
9406         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9407         (BU_P9_64BIT_MISC_0): Likewise.
9408         (BU_P9_DFP_MISC_0): New macro definition.
9409         (BU_P9_DFP_MISC_1): New macro definition.
9410         (BU_P9_DFP_MISC_2): New macro definition.
9411         (BU_P9_DFP_OVERLOAD_1): New macro definition.
9412         (BU_P9_DFP_OVERLOAD_2): New macro definition.
9413         (BU_P9_DFP_OVERLOAD_3): New macro definition.
9414         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9415         (TSTSFI_LT_TD): Likewise.
9416         (TSTSFI_EQ_DD): Likewise.
9417         (TSTSFI_EQ_TD): Likewise.
9418         (TSTSFI_GT_DD): Likewise.
9419         (TSTSFI_GT_TD): Likewise.
9420         (TSTSFI_OV_DD): Likewise.
9421         (TSTSFI_OV_TD): Likewise.
9422         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9423         (TSTSFI_LT_DD): Likewise.
9424         (TSTSFI_LT_TD): Likewise.
9425         (TSTSFI_EQ): Likewise.
9426         (TSTSFI_EQ_DD): Likewise.
9427         (TSTSFI_EQ_TD): Likewise.
9428         (TSTSFI_GT): Likewise.
9429         (TSTSFI_GT_DD): Likewise.
9430         (TSTSFI_GT_TD): Likewise.
9431         (TSTSFI_OV): Likewise.
9432         (TSTSFI_OV_DD): Likewise.
9433         (TSTSFI_OV_TD): Likewise.
9434         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9435         overloaded test significance functions.
9436         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9437         OPTION_MASK_P9_MISC into the representation of this mask.
9438         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9439         of this mask.
9440         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9441         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9442         non-zero.
9443         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9444         argument is a 6-bit unsigned literal value if the icode argument
9445         represents a DFP test significance built-in call.
9446         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9447         flag used independently and in combination with the
9448         RS6000_BTM_64BIT flag.
9449         (rs6000_opt_masks): Add entry for power9-misc command-line option.
9450         (rs6000_builtin_mask_names): Add entry for power9-misc
9451         command-line option.
9452         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9453         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
9454         RS6000_BTM_P9_MISC macros.
9455         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9456         option and change the description of the -mpower9-vector option to
9457         enable only vector instructions, removing its erroneously claimed
9458         support for scalar instructions.
9459         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9460         the ISA 3.0 digital floating point test significance built-in
9461         functions.
9463 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
9465         * config/aarch64/aarch64.c (cortexa35_tunings):
9466         Enable AES fusion.  Use cortexa57_branch_cost.
9467         (cortexa53_tunings): Use cortexa57_branch_cost.
9468         (cortexa72_tunings): Use cortexa57_branch_cost.
9469         Use AUTOPREFETCHER_WEAK.
9470         (cortexa73_tunings): Use cortexa57_branch_cost.
9472 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9473             James Greenhalgh  <james.greenhalgh@arm.com>
9475         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9476         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9477         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9478         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9479         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9480         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9481         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9482         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9483         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9484         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9485         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9486         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9487         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9488         New intrinsics.
9490 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
9491             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9493         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9494         New define_insn.
9495         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9497 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
9499         PR driver/71651
9500         * gcc.c (driver::build_option_suggestions): Pass "option" to
9501         add_misspelling_candidates.
9502         * opts-common.c (add_misspelling_candidates): Add "option" param;
9503         use it to avoid adding negated forms for options marked with
9504         RejectNegative.
9505         * opts.h (add_misspelling_candidates): Add "option" param.
9507 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
9509         PR middle-end/71693
9510         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9511         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9512         first when permuting bitwise operation with rotate.  Cast
9513         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9515 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
9517         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9518         for misspelled param names.
9519         * params.c: Include spellcheck.h.
9520         (find_param_fuzzy): New function.
9521         * params.h (find_param_fuzzy): New prototype.
9522         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9523         * spellcheck.h (struct edit_distance_traits<const char *>):
9524         ...here.
9526 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9528         * config/rs6000/predicates.md (const_0_to_7_operand): New
9529         predicate, recognize 0..7.
9530         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9531         support for doing extracts from V16QImode, V8HImode, V4SImode
9532         under ISA 3.0.
9533         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9534         vector extract support.
9535         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9536         for ISA 3.0 vector extract.
9537         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9538         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9539         extracts of a constant element number from small integer vectors
9540         on 64-bit ISA 3.0 systems.
9541         (vsx_extract_<mode>_di): Likewise.
9542         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9543         say when we can do ISA 3.0 vector extracts.
9544         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9545         registers, using the stxsiwx instruction.
9547 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
9549         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9550         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9551         qdf24xx_regmove_cost, qdf24xx_tunings): New.
9552         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9553         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9554         * config/arm/arm.c (arm_qdf24xx_tune): New.
9556 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
9558         * config/aarch64/aarch64.c (cortexa53_tunings):
9559         Increase loop alignment to 8.  Set function alignment to 16.
9560         (cortexa35_tunings): Likewise.
9561         (cortexa57_tunings): Increase loop alignment to 8.
9562         (cortexa72_tunings): Likewise.
9563         (cortexa73_tunings): Likewise.
9565 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9567         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9568         for arm_fp16_ok and arm_fp16_hw.
9569         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9570         arm_fp16_alternative.
9572 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9574         PR tree-optimization/71655
9575         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9576         types when swapping operands.
9578 2016-06-29  Martin Liska  <mliska@suse.cz>
9580         PR middle-end/71585
9581         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9582         * ipa-inline-transform.c (inline_call): Remove unnecessary call
9583         of build_optimization_node.
9585 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9587         PR tree-optimization/70729
9588         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9589         independent in loops having positive safelen value.
9590         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9591         it may be not valid after vectorization.
9593 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
9595         PR tree-optimization/71625
9596         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
9597         is sorted by ascending list->offset.  If PTR is non-NULL and there is
9598         previous strinfo, call get_stridx_plus_constant.
9599         (get_stridx): Pass exp as second argument to get_addr_stridx.
9600         (addr_stridxptr): Add missing list = list->next, so that there can be
9601         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
9602         the list is sorted by ascending list->offset.
9603         (get_stridx_plus_constant): Adjust so that it can be also called with
9604         ADDR_EXPR instead of SSA_NAME as PTR.
9605         (handle_char_store): Pass NULL_TREE as second argument to
9606         get_addr_stridx.
9608 2016-06-29  Richard Biener  <rguenther@suse.de>
9610         PR rtl-optimization/68961
9611         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9613 2016-06-29  Richard Biener  <rguenther@suse.de>
9615         PR middle-end/71002
9616         * alias.c (component_uses_parent_alias_set_from): Handle
9617         type punning through union accesses by using the union alias set.
9618         * gimple.c (gimple_get_alias_set): Remove union type punning case.
9620 2016-07-29  Richard Biener  <rguenther@suse.de>
9622         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9623         precision not matching mode precision.
9625 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
9627         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9628         pa_output_arg_descriptor.
9629         (call_val_symref_64bit_post_reload): Likewise.
9630         (call_val_powf_64bit_post_reload): Likewise.
9631         (sibcall_internal_symref_64bit): Likewise.
9632         (sibcall_value_internal_symref_64bit): Likewise.
9634 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9636         PR middle-end/71626
9637         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9638         a constant, force its SUBREG_REG into memory or register instead
9639         of whole op1.
9641 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9643         PR target/58655
9644         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9645         * doc/invoke.texi (AVR Options): Document it.
9647 2016-06-28  Walter Lee  <walt@tilera.com>
9649         * config/tilegx/linux.h: Do not include arch/icache.h
9650         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9651         * config/tilepro/linux.h: Do not include arch/icache.h
9652         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9654 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
9656         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9657         for big-endian BIT_FIELD_REF.
9659 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
9661         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9662         ('size' attribute): Add '128'.
9663         Include power9.md.
9664         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9665         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9666         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9667         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9668         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9669         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9670         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9671         *trunc<mode>df2_odd): Set size attribute to '128'.
9672         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9673         * config/rs6000/power6.md (power6-fp): Include dfp type.
9674         * config/rs6000/power7.md (power7-fp): Likewise.
9675         * config/rs6000/power8.md (power8-fp): Likewise.
9676         * config/rs6000/power9.md: New file.
9677         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9678         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9679         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9680         htmsimple.
9681         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9682         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9683         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9684         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9685         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9686         dfp_dscri_<mode>): Change type attribute to dfp.
9687         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9688         attribute to vecsimple.
9689         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9690         and prefetch streams.
9691         (rs6000_option_override_internal): Remove temporary code setting
9692         tuning to power8.  Don't set rs6000_sched_groups for power9.
9693         (last_scheduled_insn): Change to rtx_insn *.
9694         (divide_cnt, vec_load_pendulum): New variables.
9695         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9696         (rs6000_issue_rate): Set issue rate for Power9.
9697         (is_power9_pairable_vec_type): New.
9698         (power9_sched_reorder2): New.
9699         (rs6000_sched_reorder2): Call new function for Power9 specific
9700         reordering.
9701         (insn_must_be_first_in_group): Remove Power9.
9702         (insn_must_be_last_in_group): Likewise.
9703         (force_new_group): Likewise.
9704         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9705         Initialize divide_cnt/vec_load_pendulum.
9706         (_rs6000_sched_context, rs6000_init_sched_context,
9707         rs6000_set_sched_context): Handle context save/restore of new
9708         variables.
9710 2016-06-28  Richard Biener  <rguenther@suse.de>
9712         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9713         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9714         COMPONENT_REF operand.
9715         (nonoverlapping_component_refs_p): Likewise.
9716         * stor-layout.c (start_bitfield_representative): Mark
9717         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9719 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9721         * Makefile.in: Don't cat ../stage_current if it does not exist.
9723         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9724         last argument is a bit-field.
9726         PR rtl-optimization/71673
9727         * internal-fn.c (expand_arith_overflow_result_store): Use
9728         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9729         expand_simple_binop.
9731         PR middle-end/66867
9732         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9733         expand_ifn_atomic_compare_exchange): New functions.
9734         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9735         * tree.h (build_call_expr_internal_loc): Rename to ...
9736         (build_call_expr_internal_loc_array): ... this.  Fix up type of
9737         last argument.
9738         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9739         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9740         ATOMIC_COMPARE_EXCHANGE result.
9741         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9742         * gimple-fold.h (optimize_atomic_compare_exchange_p,
9743         fold_builtin_atomic_compare_exchange): New prototypes.
9744         * gimple-fold.c (optimize_atomic_compare_exchange_p,
9745         fold_builtin_atomic_compare_exchange): New functions..
9746         * tree-ssa.c (execute_update_addresses_taken): If
9747         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9748         of call when finding addressable vars, and if such var becomes
9749         non-addressable, call fold_builtin_atomic_compare_exchange.
9751 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
9753         PR target/71670
9754         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9755         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9757 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
9759         * config/rs6000/rs6000.md ('type' attribute): Add
9760         veclogical,veccmpfx,vecexts,vecmove insn types.
9761         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9762         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9763         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9764         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9765         *nabs<mode>2_hw): Change type to vecmove.
9766         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9767         *boolcc<mode>3_internal, *eqv<mode>3_internal,
9768         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9769         *ieee_128bit_vsx_abs<mode>2_internal,
9770         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9771         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9772         *ieee128_mtvsrd_32bit): Change type to veclogical.
9773         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9774         *movdi_internal32, *movdi_internal64): Update insn types.
9775         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9776         vsx_extract_<mode>): Change type to veclogical.
9777         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9778         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9779         *vsx_sign_extend_si_v2di): Change type to vecexts.
9780         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9781         type to veclogical.
9782         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9783         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9784         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9785         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9786         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9787         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9788         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9789         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9790         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9791         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9792         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9793         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9794         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9795         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9796         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9797         (ppc7450-vecsimple): Add veclogical, vecmove.
9798         (ppc7450-veccmp): Add veccmpfx.
9799         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9800         vecmove.
9801         (ppc8540_vector_compare): Add veccmpfx.
9802         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9803         * config/rs6000/cell.md (cell-fp): Add fpsimple.
9804         (cell-vecsimple): Add veclogical, vecmove.
9805         (cell-veccmp): Add veccmpfx.
9806         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9807         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9808         veccmpfx.
9809         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9810         * config/rs6000/power4.md (power4-fp): Add fpsimple.
9811         (power4-vecsimple): Add veclogical, vecmove.
9812         (power4-veccmp): Add veccmpfx.
9813         * config/rs6000/power5.md (power5-fp): Add fpsimple.
9814         * config/rs6000/power6.md (power6-fp): Add fpsimple.
9815         (power6-vecsimple): Add veclogical, vecmove.
9816         (power6-veccmp): Add veccmpfx.
9817         * config/rs6000/power7.md (power7-fp): Add fpsimple.
9818         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9819         * config/rs6000/power8.md (power8-fp): Add fpsimple.
9820         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9821         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9822         * config/rs6000/titan.md (titan_fp): Add fpsimple.
9823         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9824         fpsimple.
9825         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9827 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
9829         PR target/71656
9830         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9831         OPTION_MASK_P9_DFORM_VECTOR.
9832         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9833         disable -mpower9-dform-vector when using reload.
9834         (quad_address_p): Remove 'gpr_p' argument and all associated code.
9835         New 'strict' argument.  Update all callers.  Add strict addressing
9836         support.
9837         (rs6000_legitimate_offset_address_p): Remove call to
9838         virtual_stack_registers_memory_p.
9839         (rs6000_legitimize_reload_address): Add quad address support.
9840         (rs6000_legitimate_address_p): Move call to quad_address_p above
9841         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
9842         to account for new strict usage.
9843         (rs6000_output_move_128bit): Adjust quad_address_p args to account
9844         for new strict usage.
9845         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9847 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
9849         PR target/70902
9850         PR target/71453
9851         PR target/71555
9852         PR target/71596
9853         PR target/71657
9854         * config/i386/i386.c (ix86_spill_class): Disable condition to
9855         always return NO_REGS.
9857 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
9859         * predict.c: Include gimple-pretty-print.h
9860         (predicted_by_loop_heuristics_p): Check also
9861         PRED_LOOP_EXIT_WITH_RECURSION
9862         (predict_loops): Find self recursive calls and use special purpose
9863         predictors for them; dump log about decisions.
9864         (pass_profile::execute): Dump info about #of iterations.
9865         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9866         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9868 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
9870         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9871         output_asm_insn calls and shorten long lines.  Output .CALL
9872         argument descriptor using pa_output_arg_descriptor.  Add various
9873         inline $$dyncall and other optimizations.
9874         (pa_attr_length_indirect_call): Adjust ordering and lengths.
9876 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
9878         PR tree-optimization/71643
9879         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9880         EH preds.
9882         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9883         leak a bitmap if dep_bb is NULL.
9885         PR tree-optimization/71631
9886         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9887         to rewrite_expr_tree even if negate_result, move new_lhs var
9888         declaration and initialization earlier, for powi_result set afterwards
9889         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
9890         if new_lhs != lhs, and don't shadow gsi var.
9892 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9894         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9895         Add in_loop parameter.
9896         (predict_loops): Add loop guard heuristics.
9897         * predict.def (PRED_LOOP_GUARD): New heuristics.
9899 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9901         * predict.c: Include ipa-utils.h
9902         (tree_bb_level_prediction): Predict recursive calls.
9903         (tree_estimate_probability_bb): Skip inexpensive calls for call
9904         predictor.
9905         * predict.def (PRED_RECURSIVE_CALL): New.
9907 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9909         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9910         (BU_FLOAT128_1): Likewise.
9911         (FABSQ): Likewise.
9912         (COPYSIGNQ): Likewise.
9913         (RS6000_BUILTIN_NANQ): Likewise.
9914         (RS6000_BUILTIN_NANSQ): Likewise.
9915         (RS6000_BUILTIN_INFQ): Likewise.
9916         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9917         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9918         (TARGET_FOLD_BUILTIN): New #define.
9919         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9920         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9921         (rs6000_fold_builtin): New target hook implementation, handling
9922         folding of 128-bit NaNs and infinities.
9923         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9924         entries are filled in to avoid problems during bootstrap
9925         self-test; define builtins for 128-bit NaNs and infinities.
9926         (rs6000_opt_mask): Add entry for float128.
9927         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9928         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9929         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9930         (const_str_type_node): New #define.
9931         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9932         to a define_expand that dispatches to either copysign<mode>3_soft
9933         or copysign<mode>3_hard.
9934         (copysign<mode>3_hard): Rename from copysign<mode>3.
9935         (copysign<mode>3_soft): New define_insn.
9936         * doc/extend.texi: Document new builtins.
9938 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9940         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9941         PRIu64 instead of lu.
9943 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
9945         PR debug/71642
9946         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9947         copy the type name.
9949 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9951         PR tree-optimization/71647
9952         * omp-low.c (lower_rec_input_clauses): Convert
9953         omp_clause_aligned_alignment (c) to size_type_node for the
9954         last argument of __builtin_assume_aligned.
9956 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9958         * configure.ac (calling ___tls_get_addr via GOT): New
9959         assembler/linker check.
9960         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
9961         assembler and linker supports calling ___tls_get_addr via GOT.
9962         Otherise, defined to 0.
9963         * config.in: Regenerated.
9964         * configure: Likewise.
9965         * config/i386/constraints.md (Yb): New constraint.
9966         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9967         (REG_CLASS_NAMES): Likewise.
9968         (REG_CLASS_CONTENTS): Likewise.
9969         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9970         the b constraint with the Yb constraint.  Call ___tls_get_addr
9971         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9972         is 1.
9973         (*tls_local_dynamic_base_32_gnu): Likewise.
9974         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9975         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9976         (*tls_local_dynamic_base_64_<mode>): Likewise.
9978 2016-06-24  Martin Liska  <mliska@suse.cz>
9980         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
9981         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
9982         few functions.
9983         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
9984         argument to true if the expected number of iterations is
9985         loop-based.
9987 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
9989         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
9990         assemble for 32bit target.
9991         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
9992         and $ld_ix86_gld_32_opt to link for 32bit target.
9993         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
9994         * configure: Regenerate.
9996 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9998         * config/arm/arm.c (int_log2): Delete definition and prototype.
9999         (shift_op): Use exact_log2 instead of int_log2.
10000         (vfp3_const_double_for_fract_bits): Likewise.
10002 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
10004         * internal-fn.c (expand_arith_set_overflow): New function.
10005         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10006         Use it.
10007         (expand_arith_overflow_result_store): Likewise.  Handle precision
10008         smaller than mode precision.
10009         * tree-vrp.c (extract_range_basic): For imag part, handle
10010         properly signed 1-bit precision result.
10011         * doc/extend.texi (__builtin_add_overflow): Document that last
10012         argument can't be pointer to enumerated or boolean type.
10013         (__builtin_add_overflow_p): Document that last argument can't
10014         have enumerated or boolean type.
10016 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10017             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10019         * config/rs6000/predicates.md (splat_input_operand): Rework.
10020         Don't allow constants, since the insns that use this predicate
10021         don't support constants.  Constants are handled by other insns
10022         that are created via combine.  During and after register
10023         allocation, only allow indexed or indirect addresses, and not
10024         general addresses.  Only allow modes supported by the hardware.
10025         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10026         comment.  Move check for using VSPLTIS<x> to a common location,
10027         instead of doing it in two different places.
10029 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
10031         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10032         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10033         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10034         signature_CENTAUR_ebx.
10036 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10038         PR target/66232
10039         PR target/67400
10040         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10041         (as_ix86_gas_32_opt): This.
10042         (ld_ix86_tls_ldm_opt): Renamed to ...
10043         (ld_ix86_gld_32_opt): This.
10044         (R_386_TLS_LDM reloc): Updated.
10045         (R_386_GOT32X reloc): New assembler/linker check.
10046         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
10047         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
10048         defined to 0.
10049         * config.in: Regenerated.
10050         * configure: Likewise.
10051         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10052         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10053         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10054         if ix86_force_load_from_GOT_p returns true.
10055         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10056         ix86_force_load_from_GOT_p returns true.
10057         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10058         the external function address via the GOT slot.
10059         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10060         HAVE_AS_IX86_GOT32X before returning false.
10061         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10062         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10064 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
10066         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10068 2016-06-23  Andi Kleen  <ak@linux.intel.com>
10070         * Makefile.in: Regenerate.
10071         * doc/install.texi: Document autoprofiledbootstrap.
10073 2016-06-23  Andi Kleen  <ak@linux.intel.com>
10075         * config/i386/gcc-auto-profile: New file.
10077 2016-06-23  Martin Liska  <mliska@suse.cz>
10079         PR middle-end/71619
10080         * predict.c (predict_loops): Revert the hunk that was removed
10081         in r237103.
10083 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
10085         * config.gcc: Add support for arm*-*-phoenix* targets.
10086         * config/arm/t-phoenix: New.
10087         * config/phoenix.h: New.
10089 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
10090             H.J. Lu  <hongjiu.lu@intel.com>
10092         PR target/67400
10093         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10094         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10095         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10096         ix86_force_load_from_GOT_p returns true.
10097         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10098         ix86_force_load_from_GOT_p returns true.
10099         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10100         ix86_force_load_from_GOT_p returns true.
10101         (ix86_expand_move): Load the external function address via the
10102         GOT slot if ix86_force_load_from_GOT_p returns true.
10103         * config/i386/predicates.md (x86_64_immediate_operand): Return
10104         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10105         (x86_64_zext_immediate_operand): Ditto.
10107 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
10109         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10111 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
10113         PR c/70339
10114         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10115         * diagnostic.c (pedwarn_at_rich_loc): New function.
10116         * spellcheck.h (best_match::best_match): Add a
10117         "best_distance_so_far" optional parameter.
10118         (best_match::set_best_so_far): New method.
10119         (best_match::get_best_distance): New accessor.
10120         (best_match::get_best_candidate_length): New accessor.
10122 2016-06-22  Nick Clifton  <nickc@redhat.com>
10124         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10125         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10126         modes are accepted as well.
10127         (ucompare_loc_descriptor): Likewise.
10128         (minmax_loc_descriptor): Likewise.
10129         (clz_loc_descriptor): Likewise.
10130         (popcount_loc_descriptor): Likewise.
10131         (bswap_loc_descriptor): Likewise.
10132         (rotate_loc_descriptor): Likewise.
10133         (mem_loc_descriptor): Likewise.
10134         (loc_descriptor): Likewise.
10136 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
10138         * common.opt (fdiagnostics-parseable-fixits): New option.
10139         * diagnostic.c: Include "selftest.h".
10140         (print_escaped_string): New function.
10141         (print_parseable_fixits): New function.
10142         (diagnostic_report_diagnostic): Call print_parseable_fixits.
10143         (selftest::assert_print_escaped_string): New function.
10144         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10145         (selftest::test_print_escaped_string): New function.
10146         (selftest::test_print_parseable_fixits_none): New function.
10147         (selftest::test_print_parseable_fixits_insert): New function.
10148         (selftest::test_print_parseable_fixits_remove): New function.
10149         (selftest::test_print_parseable_fixits_replace): New function.
10150         (selftest::diagnostic_c_tests): New function.
10151         * diagnostic.h (struct diagnostic_context): Add field
10152         "parseable_fixits_p".
10153         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10154         -fdiagnostics-parseable-fixits.
10155         (-fdiagnostics-parseable-fixits): New option.
10156         * opts.c (common_handle_option): Handle
10157         -fdiagnostics-parseable-fixits.
10158         * selftest-run-tests.c (selftest::run_tests): Call
10159         selftest::diagnostic_c_tests.
10160         * selftest.h (selftest::diagnostic_c_tests): New prototype.
10162 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
10164         PR tree-optimization/71488
10165         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10166         comparison of boolean vectors.
10167         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10168         of boolean vectors using bitwise operations.
10170 2016-06-22  Andreas Schwab  <schwab@suse.de>
10172         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10173         Remove declaration.
10175 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10177         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10179 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10181         * config/i386/i386.c (print_reg): Emit an error message on attempt to
10182         print FLAGS_REG.
10184 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10186         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10187         * config/arm/arm-cores.def (cortex-a73): New entry.
10188         (cortex-a73.cortex-a35): Likewise.
10189         (cortex-a73.cortex-a53): Likewise.
10190         * config/arm/arm-tables.opt: Regenerate.
10191         * config/arm/arm-tune.md: Likewise.
10192         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10193         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10194         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10195         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10196         * doc/invoke.texi (ARM Options): Document cortex-a73,
10197         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10199 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10201         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10202         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10203         (cortex-a73.cortex-a35): Likewise.
10204         (cortex-a73.cortex-a53): Likewise.
10205         * config/aarch64/aarch64-tune.md: Regenerate.
10206         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10207         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10208         -mcpu and -mtune.
10210 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10212         * configure.ac (gcc_cv_as_compress_debug): Remove
10213         --compress-debug-sections as extra as switch.
10214         Handle gas --compress-debug-sections=type.
10215         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10216         Handle gld --compress-debug-sections=type.
10217         * configure: Regenerate.
10219 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
10221         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10223 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
10225         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10226         (do_rewrite): likewise.
10228 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10230         * common/config/mep/mep-common.c: Remove.
10231         * config.gcc: Remove mep-* support.
10232         * config/mep/constraints.md: Remove.
10233         * config/mep/default.h: Remove.
10234         * config/mep/intrinsics.h: Remove.
10235         * config/mep/intrinsics.md: Remove.
10236         * config/mep/ivc2-template.h: Remove.
10237         * config/mep/mep-c5.cpu: Remove.
10238         * config/mep/mep-core.cpu: Remove.
10239         * config/mep/mep-default.cpu: Remove.
10240         * config/mep/mep-ext-cop.cpu: Remove.
10241         * config/mep/mep-intrin.h: Remove.
10242         * config/mep/mep-ivc2.cpu: Remove.
10243         * config/mep/mep-pragma.c: Remove.
10244         * config/mep/mep-protos.h: Remove.
10245         * config/mep/mep.c: Remove.
10246         * config/mep/mep.cpu: Remove.
10247         * config/mep/mep.h: Remove.
10248         * config/mep/mep.md: Remove.
10249         * config/mep/mep.opt: Remove.
10250         * config/mep/predicates.md: Remove.
10251         * config/mep/t-mep: Remove.
10252         * doc/install.texi: Remove mep-* documentation.
10253         * doc/md.texi: Likewise.
10255 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10257         * config.gcc: Remove support for avr-rtems.
10258         * config/avr/gen-avr-mmcu-specs.c: Likewise.
10259         * config/avr/rtems.h: Remove.
10260         * config/avr/t-rtems: Remove.
10262 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10264         * config.gcc: Remove m32r-rtems support.
10265         * config/m32r/rtems.h: Remove.
10267 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10269         * config.gcc: Remove h8300-rtems support.
10270         * config/h8300/rtems.h: Remove.
10271         * config/h8300/t-rtems: Remove.
10273 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10275         * config.gcc: Remove support for knetbsd.
10276         * configure.ac: Likewise.
10277         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
10278         * config/knetbsd-gnu.h: Remove.
10279         * configure: Regenerate.
10281 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10283         * config.gcc: Remove support for openbsd 2 and 3.
10284         * config/openbsd-oldgas.h: Remove.
10286 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10288         * config.gcc: Remove interix support.
10289         * config/i386/i386-interix.h: Remove.
10290         * config/i386/interix.opt: Remove.
10291         * config/i386/t-interix: Remove.
10292         * configure: Regenerate.
10293         * configure.ac: Remove interix support.
10294         * doc/install.texi: Remove interix documentation.
10296 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10298         * config/rs6000/rs6000.h: Add conditional preprocessing directives
10299         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
10300         not defined.
10302 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10304         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
10305         they are both PLACEHOLDER_EXPRs.
10307 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10309         * stor-layout.c (layout_type): Move setting complex MODE to
10310         layout_type, instead of setting it ahead of time by the caller.
10311         * tree.c (build_complex_type): Likewise.
10313 2016-06-21  Martin Liska  <mliska@suse.cz>
10315         * predict.c (force_edge_cold): Replace imposisble with
10316         impossible.
10318 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
10320         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
10321         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
10323 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
10325         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
10327 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10328             Ilya Enkovich  <ilya.enkovich@intel.com>
10330         PR target/71549
10331         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10332         New member function to convert V1TImode register to SUBREG
10333         TImode in debug insn.
10334         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
10335         after changing register mode to V1TImode.
10337 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
10339         * config/aarch64/aarch64-cores.def (vulcan): New core.
10340         * config/aarch64/aarch64-tune.md: Regenerate.
10341         * doc/invoke.texi: Document vulcan as an available option.
10343 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10345         * cse.c (canon_asm_operands): New function extracted from...
10346         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
10347         either standalone or member of a PARALLEL.
10349 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
10351         PR target/30417
10352         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
10353         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
10354         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
10356 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
10358         PR target/71103
10359         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
10360         constant addresses if can_create_pseudo_p.
10362 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
10364         PR tree-optimization/71588
10365         * tree-ssa-strlen.c (valid_builtin_call): New function.
10366         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
10367         it.
10369 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
10371         PR middle-end/71581
10372         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
10373         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
10374         for conversion of scalar user var to complex type and use the
10375         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
10376         punt.
10378         PR rtl-optimization/71591
10379         * toplev.c (toplev::run_self_tests): If no_backend, complain and
10380         don't run any tests.
10382 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
10384         PR target/71571
10385         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
10386         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
10387         space for PIC with non-v32 and the common non-PIC "jump".
10389 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
10391         PR target/71559
10392         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
10393         returned values and add UN*/LTGT/*ORDERED cases with values matching
10394         D operand modifier on vcmp for AVX.
10396 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10398         * config/aarch64/aarch64.opt
10399         (mpc-relative-literal-loads): Rename internal option name.
10400         * config/aarch64/aarch64.c
10401         (aarch64_nopcrelative_literal_loads): Rename to
10402         aarch64_pcrelative_literal_loads.
10403         (aarch64_expand_mov_immediate): Likewise.
10404         (aarch64_secondary_reload): Likewise.
10405         (aarch64_can_use_per_function_literal_pools_p): Likewise.
10406         (aarch64_override_options_after_change_1): Rename and simplify logic.
10407         (aarch64_classify_symbol): Merge large model checks into switch,
10408         remove pc-relative load check.
10410 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10412         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10413         costs relative to the cost of a register move.
10415 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10417         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10418         (vcvt_n_f64_u64): Likewise.
10419         (vcvt_n_s64_f64): Likewise.
10420         (vcvt_n_u64_f64): Likewise.
10421         (vcvt_f64_s64): Likewise.
10422         (vrecpe_f64): Likewise.
10423         (vcvt_f64_u64): Likewise.
10424         (vrecps_f64): Likewise.
10426 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10428         * config/aarch64/aarch64.md
10429         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10430         iterators.
10431         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
10432         attributes.
10433         * config/aarch64/aarch64-builtins.c
10434         (aarch64_types_binop_uss_qualifiers): Delete.
10435         (TYPES_BINOP_USS): Likewise.
10436         (aarch64_types_binop_sus_qualifiers): Likewise.
10437         (TYPES_BINOP_SUS): Likewise.
10438         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10439         (TYPES_FCVTIMM_SUS): Likewise.
10440         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10441         rather than BINOP.
10442         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10443         (fcvtzs): Use SHIFTIMM rather than BINOP.
10444         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10446 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10448         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10449         costs relative to the cost of a register move.
10451 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10453         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10454         Allow scalar/single vector modes to be tieable.
10456 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10458         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10460 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10462         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10463         "alignement".
10464         * tree.h (TYPE_ALIGN): Likewise.
10466 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10468         PR target/71103
10469         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10471 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10473         * config/avr/avr.c (avr_print_operand): Fix "format not a string
10474         literal" build warnings.
10475         (avr_print_operand_address): Dito.
10477 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
10479         PR target/71375
10480         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10481         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10483 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
10485         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10487 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10489         PR bootstrap/71435
10490         * reload1.c (reload): Pass 0 to finish_spills when called because
10491         update_eliminables_and_spill returns true and remove did_spill.
10492         (finish_spills): Adjust comment and document GLOBAL parameter.
10494 2016-06-17  DJ Delorie  <dj@redhat.com>
10496         PR target/71338
10497         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10498         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10499         (umulqihi3_virt): Likewise.
10500         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10501         (umulqihi3_real): Likewise.
10503 2016-06-17  Martin Liska  <mliska@suse.cz>
10505         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10507 2016-06-17  Martin Liska  <mliska@suse.cz>
10509         * predict.def: PRED_LOOP_EXIT from 92 to 85.
10511 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
10513         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10514         __FAST_MATH__.
10515         (vaddq_f32): Likewise.
10516         (vmul_f32): Likewise.
10517         (vmulq_f32): Likewise.
10518         (vsub_f32): Likewise.
10519         (vsubq_f32): Likewise.
10521 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10523         PR tree-optimization/71347
10524         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10525         cost for all uses in group.
10527 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10529         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10530         insert gimple seq if it's not empty.
10532 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10534         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10535         member OFFSET.
10536         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10537         rather than OFFSET.
10538         (comp_dr_with_seg_len_pair): Ditto.
10539         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
10540         struct dr_with_seg_len_pair against DR_OFFSET.
10541         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10542         DR_OFFSET directly.
10544 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10546         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10548 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
10550         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10551         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10552         (pa_output_millicode_call): Likewise.
10553         (pa_output_call): Likewise.
10554         (pa_output_indirect_call): Likewise.
10555         (pa_asm_output_mi_thunk): Likewise.
10557 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10559         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10561 2016-06-16  Martin Liska  <mliska@suse.cz>
10563         * predict.c (combine_predictions_for_insn): When we find a first
10564         match predictor, we should consider just predictors with
10565         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
10566         DS theory predictor.
10567         (combine_predictions_for_bb): Likewise.
10569 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10571         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10572         with base of reference to struct.
10574 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10576         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10578 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10580         PR target/71151
10581         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10582         progmem_swtable_section.
10583         (progmem_swtable_section): Remove.
10584         (avr_asm_function_rodata_section): Remove.
10585         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10586         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10588 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
10590         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10591         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10592         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10593         signature_CENTAUR_ebx.
10594         * config/i386/i386.c (ix86_option_override_internal): Add
10595         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10596         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10597         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10599 2016-06-16  Martin Liska  <mliska@suse.cz>
10601         * predict.def: Add fortran loop preheader predictor.
10602         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10603         fold IFN_BUILTIN_EXPECT with a known constant argument.
10605 2016-06-16  Martin Liska  <mliska@suse.cz>
10607         * predict.def: Add 'Fortran' to display text of all
10608         PRED_FORTRAN_* predictors.
10610 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10612         PR target/71242
10613         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10614         [IA64_BUILTIN_NANSQ]: Ditto.
10615         (ia64_fold_builtin): New function.
10616         (TARGET_FOLD_BUILTIN): New define.
10617         (ia64_init_builtins) Declare const_string_type node.
10618         Add __builtin_nanq and __builtin_nansq builtin functions.
10619         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10621 2016-06-16  Nick Clifton  <nickc@redhat.com>
10623         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10624         MSP430_HWMULT_ prefix to enum values.
10625         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10626         * config/msp430/msp430.c: Update use of enum values.
10627         * config/msp430/msp430.md: Likewise.
10628         * config/msp430/msp430.opt: Likewise.
10630 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
10632         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10633         of comparsions in the last iteration.
10635 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10636             Joern Rennecke  <joern.rennecke@embecosm.com>
10638         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10639         addresses.
10640         (arc_needs_pcl_p): Add GOTOFFPC.
10641         (arc_legitimate_pic_addr_p): Likewise.
10642         (arc_output_pic_addr_const): Likewise.
10643         (arc_legitimize_pic_address): Generate a pc-relative address using
10644         GOTOFFPC.
10645         (arc_output_libcall): Use @pcl syntax.
10646         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10647         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10648         (*movsi_insn): Use @pcl syntax.
10649         (doloop_begin_i): Likewise.
10651 2016-06-16  Martin Liska  <mliska@suse.cz>
10653         * predict.def: Define a new predictor.
10655 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10657         * config/arc/arc.opt (mtp-regno): Update text.
10659 2016-06-16  Renlin Li  <renlin.li@arm.com>
10661         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10663 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10665         PR target/71554
10666         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10667         (setcc + and peephole2): Likewise.
10669         PR rtl-optimization/71532
10670         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10671         memory slots.
10673 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10675         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10676         DImode constants with XXSPLTIB in vector registers.
10677         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10678         vsx_extract_<mode>_internal{1,2} into a single insn that handles
10679         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10680         extraction of the element at the top of the register as a scalar
10681         value.
10682         (vsx_extract_<mode>_internal1): Likewise.
10683         (vsx_extract_<mode>_internal2): Likewise.
10684         * config/rs6000/constraints.md (wi constraint): Remove a comment
10685         about DImode not being allowed in Altivec registers.
10686         (wB constraint): New constraint for constants that can be
10687         generated in Altivec registers with VSPLTISW/VUPKHSW.
10688         * config/rs6000/predicates.md (xxspltib_constant_split): Update
10689         comments.
10690         (xxspltib_constant_nosplit): Likewise.
10691         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10692         support for -mupper-regs-di to enable DImode to go into Altivec
10693         registers.
10694         (POWERPC_MASKS): Likewise.
10695         (power7 cpu): Likewise.
10696         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10697         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10698         for DImode being allowed in Altivec registers.  Update wi/wj
10699         constraints.  Set scalar_in_vmx_p flag.
10700         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10701         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
10702         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10703         (rs6000_opt_masks): Add -mupper-regs-di.
10704         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10705         direct move to use wi and not wj.
10706         (lfiwzx): Likewise.
10707         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10708         alternative.
10709         (floatunssi<mode>2_lfiwzx_mem): Likewise.
10710         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10711         any VSX register, instead of just Altivec registers, to allow
10712         either operand to be an Altivec register or both.
10713         (fixuns_trunc<mode>di2_fctiduz): Likewise.
10714         (movdi_internal32): Add support for -mupper-regs-di.  Add support
10715         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
10716         the alternatives and attributes to be lined up to be easier to
10717         read.
10718         (movdi_internal64): Likewise.
10719         (64-bit DImode splitters): Change predicates to only split loading
10720         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
10721         load constants in ISA 3.0 or ISA 2.07 respectively.
10722         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10723         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
10724         mention -mcpu=power9 sets these options.
10725         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10726         wB constraint.
10728 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10730         PR target/67353
10731         * config/avr/avr.c (avr_set_current_function): Warn misspelled
10732         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10733         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10734         by default to warn misspelled interrupt/ signal handler.
10735         * doc/invoke.texi (AVR Options): Document it. Update description
10736         for -nodevicelib option.
10738 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10740         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10741         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
10742         (aarch64_<sur>shll2_n<mode>): Likewise.
10744 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10746         PR middle-end/71529
10747         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10748         DECL_CONTEXT for copied arguments.
10750 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10752         PR tree-optimization/71483
10753         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10754         for slp
10756 2016-06-15  Martin Liska  <mliska@suse.cz>
10758         * predict.c (tree_predict_by_opcode): Call predict_edge_def
10759         instead of predict_edge w/o a probability.
10761 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10763         PR tree-optimization/71439
10764         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10765         live PHIs.
10767 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10769         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10770         register subregs in SET_SRC.
10772 2016-06-15  Richard Biener  <rguenther@suse.de>
10774         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10775         store restrictions.
10777 2016-06-15  Richard Biener  <rguenther@suse.de>
10779         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10780         not consider dependences between accesses that belong to the
10781         same group.
10782         (vect_analyze_data_ref_dependences): Do not analyze read-read
10783         or self-dependences.
10785 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10787         * spellcheck-tree.c: Include spellcheck-tree.h rather than
10788         spellcheck.h.
10789         (find_closest_identifier): Reimplement in terms of
10790         best_match<tree,tree>.
10791         * spellcheck-tree.h: New file.
10792         * spellcheck.c (struct edit_distance_traits<const char *>): New
10793         struct.
10794         (find_closest_string): Reimplement in terms of
10795         best_match<const char *, const char *>.
10796         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10797         overload to spellcheck-tree.h.
10798         (find_closest_identifier): Likewise.
10799         (struct edit_distance_traits<T>): New template.
10800         (class best_match): New class.
10802 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10804         * selftest-run-tests.c (selftest::run_tests): Call
10805         selftest::spellcheck_tree_c_tests.
10806         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10807         * spellcheck-tree.c: Include selftest.h and stringpool.h.
10808         (selftest::test_find_closest_identifier): New function.
10809         (selftest::spellcheck_tree_c_tests): New function.
10810         * spellcheck.c (selftest::test_find_closest_string): Verify that
10811         the order of the vec does not affect the results for this case.
10812         (selftest::test_data): New array.
10813         (selftest::test_metric_conditions): New function.
10814         (selftest::spellcheck_c_tests): Add a test of case-comparison.
10815         Call selftest::test_metric_conditions.
10817 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10819         * config/rs6000/rs6000-builtin.def (commentary): Typo.
10820         (BU_P9_MISC_1): Likewise.
10821         (BU_P9_64BIT_MISC_0): Likewise.
10822         (BU_P9_MISC_0): Likewise.
10824 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10826         * gcc-rich-location.c
10827         (gcc_rich_location::add_fixit_misspelled_id): New method.
10828         * gcc-rich-location.h
10829         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10831 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
10833         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10834         FreeBSD 11 and above.
10836 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
10838         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10840 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10842         * expmed.h: Close parenthesis in "at your option" in copyright
10843         boilerplate.
10844         * lower-subreg.h: Likewise.
10846 2016-06-14  Richard Biener  <rguenther@suse.de>
10848         PR middle-end/71526
10849         * genmatch.c (expr::gen_transform): Use in_type for comparisons
10850         if available.
10852 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10854         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10855         New function.
10856         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
10857         mask+shift version.
10858         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10859         New prototype.
10860         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10861         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10863 2016-06-14  Richard Biener  <rguenther@suse.de>
10865         PR tree-optimization/71522
10866         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10867         copying into float copying.
10869 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
10871         PR tree-optimization/71520
10872         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10873         (replace_block_by): Move user labels from bb1 to bb2.
10875 2016-06-14  Richard Biener  <rguenther@suse.de>
10877         PR middle-end/71310
10878         PR bootstrap/71510
10879         * expr.h (get_bit_range): Declare.
10880         * expr.c (get_bit_range): Export.
10881         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10882         word_mode again to constrain the bitfield access.
10884 2016-06-14  Richard Biener  <rguenther@suse.de>
10886         PR tree-optimization/71521
10887         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10888         division int_const_binop against zero divisor.
10890 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10892         * config/i386/i386.md (signbittf2): New expander.
10893         * config/i386/sse.md (ptesttf2): New insn pattern.
10895 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10897         PR bootstrap/71481
10898         * input.c (selftest::test_reading_source_line): Avoid reading from
10899         __FILE__ by creating a tempfile with known content and reading
10900         from that instead.
10902 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10904         * pretty-print.c (assert_pp_format_colored): Skip the test if
10905         GCC_COLORS is set.
10906         (test_pp_format): Remove comment about GCC_COLORS.
10908 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10910         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10911         * pretty-print.c (assert_pp_format_va): Add location param and use
10912         it with ASSERT_STREQ_AT.
10913         (assert_pp_format): Add location param and pass it to
10914         assert_pp_format_va.
10915         (assert_pp_format_colored): Likewise.
10916         (ASSERT_PP_FORMAT_1): New.
10917         (ASSERT_PP_FORMAT_2): New.
10918         (ASSERT_PP_FORMAT_3): New.
10919         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10920         explicitly, or implicitly via the above macros.
10921         * selftest.c (selftest::pass): Use a selftest::location rather
10922         than file and line.
10923         (selftest::fail): Likewise.  Print the function name.
10924         (selftest::fail_formatted): Likewise.
10925         (selftest::assert_streq): Use a selftest::location rather than
10926         file and line.
10927         * selftest.h (selftest::location): New struct.
10928         (SELFTEST_LOCATION): New macro.
10929         (selftest::pass): Accept a const location & rather than file
10930         and line.
10931         (selftest::fail): Likewise.
10932         (selftest::fail_formatted): Likewise.
10933         (selftest::assert_streq): Likewise.
10934         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10935         (ASSERT_FALSE): Likewise.
10936         (ASSERT_EQ): Likewise.
10937         (ASSERT_NE): Likewise.
10938         (ASSERT_STREQ): Likewise.
10939         (ASSERT_PRED1): Likewise.
10940         (ASSERT_STREQ_AT): New macro.
10942 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10944         * selftest.c (selftest::fail_formatted): New function.
10945         (selftest::assert_streq): New function.
10946         * selftest.h (selftests::fail_formatted): New decl.
10947         (selftest::assert_streq): New decl.
10948         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10950 2016-06-13  Jeff Law  <law@redhat.com>
10952         PR tree-optimization/71403
10953         * tree-ssa-threadbackward.c
10954         (convert_and_register_jump_thread_path): No longer accept reference
10955         to path.  Do not pop items off the path anymore.
10956         (fsm_find_control_statement_thread_paths): Do not allow threading
10957         to a deeper loop nest.  Pop the last item off the path here rather
10958         than in convert_and_register_jump_thread_path.
10960 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10961             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
10963         [AArch64] Emit division using the Newton series
10965         * config/aarch64/aarch64-protos.h
10966         (cpu_approx_modes): Add new member "division".
10967         (aarch64_emit_approx_div): Declare new function.
10968         * config/aarch64/aarch64.c
10969         (generic_approx_modes): New member "division".
10970         (exynosm1_approx_modes): Likewise.
10971         (xgene1_approx_modes): Likewise.
10972         (aarch64_emit_approx_div): Define new function.
10973         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10974         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10975         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10976         * doc/invoke.texi (-mlow-precision-div): Describe new option.
10978 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10979             Wilco Dijkstra  <wilco.dijkstra@arm.com>
10981         [AArch64] Emit square root using the Newton series
10983         * config/aarch64/aarch64-protos.h
10984         (aarch64_emit_approx_rsqrt): Replace with new function
10985         "aarch64_emit_approx_sqrt".
10986         (cpu_approx_modes): New member "sqrt".
10987         * config/aarch64/aarch64.c
10988         (generic_approx_modes): New member "sqrt".
10989         (exynosm1_approx_modes): Likewise.
10990         (xgene1_approx_modes): Likewise.
10991         (aarch64_emit_approx_rsqrt): Replace with new function
10992         "aarch64_emit_approx_sqrt".
10993         (aarch64_override_options_after_change_1): Handle new option.
10994         * config/aarch64/aarch64-simd.md
10995         (rsqrt<mode>2): Use new function instead.
10996         (sqrt<mode>2): New expansion and insn definitions.
10997         * config/aarch64/aarch64.md: Likewise.
10998         * config/aarch64/aarch64.opt
10999         (mlow-precision-sqrt): Add new option description.
11000         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11002 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
11004         [AArch64] Add more choices for the reciprocal square root approximation
11006         Allow a target to prefer such operation depending on the operation mode.
11008         * config/aarch64/aarch64-protos.h
11009         (AARCH64_APPROX_MODE): New macro.
11010         (AARCH64_APPROX_{NONE,ALL}): Likewise.
11011         (cpu_approx_modes): New structure.
11012         (tune_params): New member "approx_modes".
11013         * config/aarch64/aarch64-tuning-flags.def
11014         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11015         * config/aarch64/aarch64.c
11016         (generic_approx_modes): New core "cpu_approx_modes" structure.
11017         (exynosm1_approx_modes): Likewise.
11018         (xgene1_approx_modes): Likewise.
11019         (generic_tunings): New member "approx_modes".
11020         (cortexa35_tunings): Likewise.
11021         (cortexa53_tunings): Likewise.
11022         (cortexa57_tunings): Likewise.
11023         (cortexa72_tunings): Likewise.
11024         (exynosm1_tunings): Likewise.
11025         (thunderx_tunings): Likewise.
11026         (xgene1_tunings): Likewise.
11027         (use_rsqrt_p): New argument for the mode and use new member from
11028         "tune_params".
11029         (aarch64_builtin_reciprocal): Devise mode from builtin.
11030         (aarch64_optab_supported_p): New argument for the mode.
11031         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11033 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11035         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11036         RS6000_BTM_MODULO flag into the set of flags that are considered
11037         to be part of the common configuration.
11039 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11041         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11042         difference unsigned.
11043         (vec_absdb): New macro for vector absolute difference unsigned
11044         byte.
11045         (vec_absdh): New macro for vector absolute difference unsigned
11046         half-word.
11047         (vec_absdw): New macro for vector absolute difference unsigned word.
11048         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11049         (vadu<mode>3): New insn.
11050         (*p9_vadu<mode>3): New insn.
11051         * config/rs6000/rs6000-builtin.def (vadub): New built-in
11052         definition.
11053         (vaduh): New built-in definition.
11054         (vaduw): New built-in definition.
11055         (vadu): New overloaded built-in definition.
11056         (vadub): New overloaded built-in definition.
11057         (vaduh): New overloaded built-in definition.
11058         (vaduw): New overloaded built-in definition.
11059         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11060         overloaded vector absolute difference unsigned functions.
11061         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11062         the ISA 3.0 vector absolute difference unsigned built-in functions.
11064 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
11066         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11067         update shared_lookup_references only once after changing operands.
11069 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
11071         PR middle-end/71373
11072         * tree-nested.c (convert_nonlocal_omp_clauses)
11073         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11075         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11076         * tree.def (CASE_LABEL_EXPR): Likewise.
11078 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11080         PR bootstrap/71481
11081         * input.c (test_builtins): Fix an assertion.
11083 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
11085         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11086         (paritysi2): Ditto.
11087         (isinfxf2): Ditto.
11088         (isinf<mode>2): Ditto.
11090 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
11092         * ggc-tests.c (test_finalization): Only test need_finalization_p
11093         for GCC_VERSION >= 4003.
11095 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11097         * config/s390/vecintrin.h: Fix file description in comment.
11099 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11101         * config/s390/s390-builtin-types.def: Change builtin type naming
11102         scheme to match builtin-types.def.
11104 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
11106         * fold-const.c (optimize_minmax_comparison): Remove.
11107         (fold_comparison): Remove call to the above.
11108         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11109         New transformations.
11111 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
11113         PR tree-optimization/71416
11114         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11115         multiple entries
11117 2016-06-13  Martin Liska  <mliska@suse.cz>
11119         * predict.c (enum predictor_reason): Prefix enum with REASON_.
11120         (combine_predictions_for_insn): Likewise.
11121         (prune_predictions_for_bb): Likewise.
11122         (combine_predictions_for_bb): Likewise.
11124 2016-06-13  Richard Biener  <rguenther@suse.de>
11126         PR tree-optimization/71505
11127         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11128         assert match comment.
11130 2016-06-13  Marek Polacek  <polacek@redhat.com>
11132         PR middle-end/71476
11133         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11134         gimplify_switch_expr.
11135         (warn_switch_unreachable_r): New function.
11137 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11139         PR target/71379
11140         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11141         one.
11143 2016-06-13  Richard Biener  <rguenther@suse.de>
11145         PR middle-end/64516
11146         * fold-const.c (fold_unary_loc): Preserve alignment when
11147         folding a VIEW_CONVERT_EXPR into a MEM_REF.
11149 2016-06-13  Martin Liska  <mliska@suse.cz>
11151         PR sanitizer/71458
11152         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11153         w/ -fsanitize=bounds.
11155 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
11157         * config/i386/i386.c (ix86_init_builtins): Calculate
11158         FLOAT128_FTYPE_CONST_STRING function type only once.
11159         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11160         built-in functions are available for x86-32 and x86-64 targets.
11162 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
11164         PR target/71241
11165         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11166         New primitive type.
11167         (FLOAT128_FTYPE_CONST_STRING): New function type.
11168         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11169         [IX86_BUILTIN_NANSQ]: Ditto.
11170         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11171         (ix86_init_builtin_types): Declare const_string_type_node.
11172         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11173         builtin functions.
11174         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11175         * doc/extend.texi (x86 Built-in Functions): Document
11176         __builtin_nanq and __builtin_nansq.
11178 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
11180         PR target/71061
11181         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11182         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11183         length for pop patterns.
11184         (arm_attr_length_push_multi): Update comments.
11185         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11186         attribute.
11187         (*pop_multiple_with_writeback_and_return): Likewise.
11188         (*pop_multiple_with_return): Likewise.
11190 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
11192         PR middle-end/71310
11193         * fold-const.c (optimize_bit_field_compare): Don't try to use
11194         word_mode unconditionally for reading the bit field, look at
11195         DECL_BIT_FIELD_REPRESENTATIVE instead.
11197 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
11199         PR middle-end/71478
11200         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11201         vector integer type.
11203 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
11205         PR middle-end/71494
11206         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11207         without LABEL_DECL, set *handled_ops_p to false instead of true.
11209 2016-06-10  Martin Sebor  <msebor@redhat.com>
11211         PR c/71392
11212         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11213         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11214         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11215         them.
11216         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11217         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11218         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11219         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11220         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11221         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11222         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11223         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11225 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11227         * config/arm/arm.h (pool_vector_label,
11228         return_used_this_function): Remove.
11230 2016-06-10  Jeff Law  <law@redhat.com>
11232         PR tree-optimization/71335
11233         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11234         zero length paths here.
11235         (convert_and_register_jump_thread_path): Remove hacks related to
11236         duplicated blocks in the jump thread path.
11237         (fsm_find_control_statement_thread_paths): Avoid putting the same
11238         block on the thread path twice, but ensure the thread path is
11239         unchanged from the caller's point of view.
11241 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
11243         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11244         * predict.def (PRED_LOOP_BRANCH): Remove.
11246 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
11248         * Makefile.in (OBJS): Add ggc-tests.o.
11249         (GTFILES): Add ggc-tests.c.
11250         * ggc-tests.c: New file.
11251         * selftest-run-tests.c (selftest::run_tests): Call
11252         selftest::ggc_tests_c_tests.
11253         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
11255 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
11257         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
11259 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
11261         PR sanitizer/71480
11262         * varasm.c (place_block_symbol): Adjust alignment for asan protected
11263         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
11265 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
11267         * profile.c: Include cfgloop.h.
11268         (branch_prob): Compute estimated number of iterations.
11269         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
11270         recompute estimate number of iterations from profile.
11272 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11274         PR inline-asm/68843
11275         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
11276         must be grouped on top of stack.  Don't force early clobber
11277         on ordinary reg outputs.
11279 2016-06-10  Richard Biener  <rguenther@suse.de>
11281         * targhooks.c (default_builtin_vectorization_cost): Adjust
11282         vec_construct cost.
11284 2016-06-10  Richard Biener  <rguenther@suse.de>
11286         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
11287         to fold the RHS to a constant if possible.
11289 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11291         PR middle-end/71373
11292         * tree-nested.c (convert_nonlocal_omp_clauses)
11293         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
11294         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11295         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
11297         * gimplify.c (gimplify_adjust_omp_clauses): Discard
11298         OMP_CLAUSE_TILE.
11299         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
11301         * omp-low.c (scan_sharing_clauses): Don't expect
11302         OMP_CLAUSE__CACHE_.
11304 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
11306         PR tree-optimization/71407
11307         PR tree-optimization/71416
11308         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
11309         BIT_FIELD_REF type.
11311 2016-06-10  Richard Biener  <rguenther@suse.de>
11313         PR middle-end/71477
11314         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
11316 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11318         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
11320 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
11321             Jiong Wang  <jiong.wang@arm.com>
11323         PR rtl-optimization/70751
11324         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
11325         spilled into memory.
11327 2016-06-09  Jonathan Yong  <10walls@gmail.com>
11329         Revert:
11330         2015-09-21  Jonathan Yong  <10walls@gmail.com>
11332         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11333         sysroot/usr/lib/32api for additional win32 libraries,
11334         fixes failing Cygwin bootstrapping.
11336 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
11338         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
11339         Delete.
11341 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
11343         PR bootstrap/71471
11344         * pretty-print.c (pp_indent): Specify that %p is printed in a
11345         host-dependent manner.
11346         (test_pp_format): Remove the test for %p.
11348 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
11350         * config/mips/mips.c (mips_output_jump): Fix formatting.
11352 2016-06-09  Richard Biener  <rguenther@suse.de>
11354         PR tree-optimization/71462
11355         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
11356         removed blocks.
11358 2016-06-09  Martin Liska  <mliska@suse.cz>
11360         * predict.c (dump_prediction): Add new argument.
11361         (enum predictor_reason): New enum.
11362         (struct predictor_hash): New struct.
11363         (predictor_hash::hash): New function.
11364         (predictor_hash::equal): Likewise.
11365         (not_removed_prediction_p): New function.
11366         (prune_predictions_for_bb): Likewise.
11367         (combine_predictions_for_bb): Prune predictions.
11369 2016-06-09  Martin Liska  <mliska@suse.cz>
11371         * predict.c (filter_predictions): New function.
11372         (remove_predictions_associated_with_edge): Use the filter
11373         function.
11374         (equal_edge_p): New function.
11376 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
11378         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
11379         Correct usage of @samp vs @option, add @samp where appropriate.
11380         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
11381         Add armv6s-m and document it, as it is no official ARM name.
11383 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11385         * ifcvt.c (struct noce_if_info): Add transform_name field.
11386         (noce_try_move): Set if_info->transform_name to the function name.
11387         (noce_try_ifelse_collapse): Likewise.
11388         (noce_try_store_flag): Likewise.
11389         (noce_try_inverse_constants): Likewise.
11390         (noce_try_store_flag_constants): Likewise.
11391         (noce_try_addcc): Likewise.
11392         (noce_try_store_flag_mask): Likewise.
11393         (noce_try_cmove): Likewise.
11394         (noce_try_cmove_arith): Likewise.
11395         (noce_try_minmax): Likewise.
11396         (noce_try_abs): Likewise.
11397         (noce_try_sign_mask): Likewise.
11398         (noce_try_bitop): Likewise.
11399         (noce_convert_multiple_sets): Likewise.
11400         (noce_process_if_block): Print if_info->transform_name to
11401         dump_file if transformation succeeded.
11403 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11405         * config/arm/cortex-a57.md (cortex_a57_alu):
11406         Handle csel type.
11408 2016-06-08  Martin Sebor  <msebor@redhat.com>
11409             Jakub Jelinek  <jakub@redhat.com>
11411         PR c++/70507
11412         PR c/68120
11413         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11414         BUILT_IN_MUL_OVERFLOW_P): New builtins.
11415         * builtins.c: Include gimple-fold.h.
11416         (fold_builtin_arith_overflow): Handle
11417         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11418         (fold_builtin_3): Likewise.
11419         * doc/extend.texi (Integer Overflow Builtins): Document
11420         __builtin_{add,sub,mul}_overflow_p.
11422 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
11424         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11425         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11427 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
11429         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11430         Rewrite, looking one level down for records and arrays.
11432 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
11434         * pretty-print.c: Include "selftest.h".
11435         (pp_format): Fix comment.
11436         (identifier_to_locale): Likewise.
11437         (selftest::test_basic_printing): New function.
11438         (selftest::assert_pp_format): New function.
11439         (selftest::test_pp_format): New function.
11440         (selftest::pretty_print_c_tests): New function.
11441         * selftest-run-tests.c (selftest::run_tests): Call
11442         selftest::pretty_print_c_tests.
11443         * selftest.h (pretty_print_c_tests): New declaration.
11445 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11447         * invoke.texi (max-loop-headers-insns): Document.
11448         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11449         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11450         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11452 2016-06-08  Richard Biener  <rguenther@suse.de>
11454         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11455         on strided SLP loads and fall back to scalar loads in case
11456         we can't chunk them.
11458 2016-06-08  Richard Biener  <rguenther@suse.de>
11460         PR tree-optimization/71452
11461         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11462         type used for the SSA rewrite has enough precision to cover
11463         the dynamic type of the location.
11465 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
11466             Richard Biener  <rguenther@suse.de>
11468         PR c++/71448
11469         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11470         the same as DECL_P (base0) for indirect_base0.  Use equality_code
11471         in one further place.
11473 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
11475         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11476         to one word if the field is known to overlap other words.
11477         (extract_bit_field_1): Likewise.
11478         (store_split_bit_field): Remove compensating code.
11479         (extract_split_bit_field): Likewise.
11481 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
11483         PR debug/71432
11484         PR ada/71413
11485         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11487 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11489         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11490         VDQF.
11491         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11492         (arch64_addpv4sf): Delete.
11493         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11494         "gen_aarch64_addpv4sf".
11495         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
11496         builtin.
11497         (vpadds_f32): Likewise.
11498         (vpaddq_f32): Likewise.
11499         (vpaddq_f64): Likewise.
11501 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11503         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11504         VALLF.
11505         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11506         to VALLF.  Rename to "fabd<mode>3".
11507         "*fabd_scalar<mode>3): Delete.
11508         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11509         Use builtin.
11510         (vabdd_f64): Likewise.
11511         (vabd_f32): Likewise.
11512         (vabd_f64): Likewise.
11513         (vabdq_f32): Likewise.
11514         (vabdq_f64): Likewise.
11516 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11518         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11519         VALLF.
11520         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11521         "aarch64_rsqrts<mode>".
11522         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11523         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
11524         builtin.
11525         (vrsqrtsd_f64): Likewise.
11526         (vrsqrts_f32): Likewise.
11527         (vrsqrts_f64): Likewise.
11528         (vrsqrtsq_f32): Likewise.
11529         (vrsqrtsq_f64): Likewise.
11531 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11533         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11534         VALLF.
11535         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11536         "aarch64_rsqrte<mode>".
11537         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11538         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
11539         builtin.
11540         (vrsqrted_f64): Likewise.
11541         (vrsqrte_f32): Likewise.
11542         (vrsqrte_f64): Likewise.
11543         (vrsqrteq_f32): Likewise.
11544         (vrsqrteq_f64): Likewise.
11546 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11548         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11549         (ucvtf): Likewise.
11550         (fcvtzs): Likewise.
11551         (fcvtzu): Likewise.
11552         * config/aarch64/aarch64-simd.md
11553         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11554         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11555         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11556         Use builtin.
11557         (vcvt_n_f32_u32): Likewise.
11558         (vcvt_n_s32_f32): Likewise.
11559         (vcvt_n_u32_f32): Likewise.
11560         (vcvtq_n_f32_s32): Likewise.
11561         (vcvtq_n_f32_u32): Likewise.
11562         (vcvtq_n_f64_s64): Likewise.
11563         (vcvtq_n_f64_u64): Likewise.
11564         (vcvtq_n_s32_f32): Likewise.
11565         (vcvtq_n_s64_f64): Likewise.
11566         (vcvtq_n_u32_f32): Likewise.
11567         (vcvtq_n_u64_f64): Likewise.
11568         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11569         (VSDQ_SDI): Likewise.
11570         (fcvt_target): Support V4DI, V4SI and V2SI.
11571         (FCVT_TARGET): Likewise.
11573 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11575         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11576         (TYPES_BINOP_SUS): Likewise.
11577         (aarch64_simd_builtin_data): Update include file name.
11578         (aarch64_builtins): Likewise.
11579         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11580         for conversion between scalar float-point and fixed-point.
11581         (ucvtf): Likewise.
11582         (fcvtzs): Likewise.
11583         (fcvtzu): Likewise.
11584         * config/aarch64/aarch64.md
11585         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11586         pattern for conversion between scalar float to fixed-pointer.
11587         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11588         (UNSPEC_FCVTZS): New UNSPEC enumeration.
11589         (UNSPEC_FCVTZU): Likewise.
11590         (UNSPEC_SCVTF): Likewise.
11591         (UNSPEC_UCVTF): Likewise.
11592         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11593         Use builtin.
11594         (vcvtd_n_f64_u64): Likewise.
11595         (vcvtd_n_s64_f64): Likewise.
11596         (vcvtd_n_u64_f64): Likewise.
11597         (vcvtd_n_f32_s32): Likewise.
11598         (vcvts_n_f32_u32): Likewise.
11599         (vcvtd_n_s32_f32): Likewise.
11600         (vcvts_n_u32_f32): Likewise.
11601         * config/aarch64/iterators.md (fcvt_target): Support integer to float
11602         mapping.
11603         (FCVT_TARGET): Likewise.
11604         (FCVT_FIXED2F): New iterator.
11605         (FCVT_F2FIXED): Likewise.
11606         (fcvt_fixed_insn): New define_int_attr.
11608 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11610         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11611         some statements was removed.
11613 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
11615         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11616         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11617         (vect_can_advance_ivs_p): likewise.
11618         (vect_update_ivs_after_vectorizer): likewise.
11619         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11620         (vect_analyze_scalar_cycles_1): likewise.
11621         (vect_analyze_loop_operations): likewise.
11622         (report_vect_op): likewise.
11623         (vect_is_slp_reduction): likewise.
11624         (vect_is_simple_reduction): likewise.
11625         (get_initial_def_for_induction): likewise.
11626         (vect_transform_loop): likewise.
11627         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11628         (vect_recog_sad_pattern): likewise.
11629         (vect_recog_widen_sum_pattern): likewise.
11630         (vect_recog_widening_pattern): likewise.
11631         (vect_recog_divmod_pattern): likewise.
11632         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11633         (vect_analyze_slp_instance): likewise.
11634         (vect_transform_slp_perm_load): likewise.
11635         (vect_schedule_slp_instance): likewise.
11637 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11639         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11640         (return_prediction): PRED_CONST_RETURN predict return as not taken.
11641         * predict.def (PRED_CONTINUE): Change hitrate 50->67
11642         (PRED_LOOP_BRANCH): Document predictor as broken.
11643         (PRED_LOOP_EXIT): Change hitrate 91->92.
11644         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11645         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11646         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11647         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11648         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11649         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11650         (PRED_CALL): Chane hitrate 71->67.
11651         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11652         (PRED_GOTO): Document as unused right now.
11653         (PRED_CONST_RETURN): Change hitrate 67->69
11654         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11655         (PRED_NULL_RETURN): Change hitrate 91->90.
11656         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11657         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11658         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11660 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
11662         * config/rs6000/altivec.h: Add __builtin_vec_mul.
11663         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11664         special case Altivec builtin.
11665         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11666         VSX_BUILTIN_VEC_MUL (replaced with special case code).
11667         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11668         code for ALTIVEC_BUILTIN_VEC_MUL.
11669         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11670         for __builtin_vec_mul.
11672 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
11674         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11675         -mno-htm.
11677 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
11679         * spellcheck.c (selftest::test_find_closest_string): New function.
11680         (spellcheck_c_tests): Call the above.
11682 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11684         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11686 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
11688         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11689         Yv=Yv,C alternatives.
11691 2016-06-07  Richard Biener  <rguenther@suse.de>
11693         PR c/61564
11694         * common.opt (ffast-math): Make Optimization.
11696 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
11697             Prachi Godbole  <prachi.godbole@imgtec.com>
11699         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11700         `fabs' and `fneg' type attributes.
11701         (p5600_fpu_fabs): Add `fmove' to the comment.
11703 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11705         * gimple.c: Include builtins.h
11706         (gimple_inexpensive_call_p): New function.
11707         * gimple.h (gimple_inexpensive_call_p): Declare.
11708         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11709         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11710         fix formatting.
11712 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
11714         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11715         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11716         warning_at_rich_loc, warning_n, pedwarn, permerror,
11717         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11718         sorry, fatal_error, internal_error, internal_error_no_backtrace):
11719         Use the above.
11721 2016-06-07  Richard Biener  <rguenther@suse.de>
11723         PR tree-optimization/71428
11724         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11725         BIT_FIELD_REF op vs. load.
11727 2016-06-07  Richard Biener  <rguenther@suse.de>
11729         PR middle-end/71423
11730         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11731         for signed ops.
11733 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11735         * config/pa/pa.md (call): Generate indirect long calls to non-local
11736         functions on TARGET_64BIT.
11737         (call_value): Likewise.
11739 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11741         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11742         pattern and subsequent splitters.
11743         (call_val_reg_64bit_post_reload): Likewise.
11745 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11747         PR middle-end/71408
11748         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11749         propagate_op_to_single_use.
11751 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11753         PR middle-end/71281
11754         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11756 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
11758         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11759         (enum x86_dirflag_state): New enum.
11760         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11761         (machine_function): Remove needs_cld.
11762         (ix86_current_function_needs_cld): Remove.
11763         * config/i386/i386.c (ix86_set_func_type): Set
11764         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11765         (ix86_expand_prologue): Do not emit CLD here.
11766         (ix86_dirflag_mode_needed): New function.
11767         (ix86_dirflag_mode_entry): Ditto.
11768         (ix86_mode_needed): Handle X86_DIRFLAG entity.
11769         (ix86_mode_after): Ditto.
11770         (ix86_mode_entry): Ditto.
11771         (ix86_mode_exit): Ditto.
11772         (ix86_emit_mode_set): Ditto.
11773         * config/i386/i386.md (strmov_singleop): Set
11774         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11775         Do not set ix86_current_function_needs_cld.
11776         (rep_mov): Ditto.
11777         (strset_singleop): Ditto.
11778         (rep_stos): Ditto.
11779         (cmpstrnqi_nz_1): Ditto.
11780         (cmpstrnqi_1): Ditto.
11781         (strlenqi_1): Ditto.
11783 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
11785         PR tree-optimization/71259
11786         * tree-vect-slp.c (vect_get_constant_vectors): For
11787         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11788         one for constant op, and use COND_EXPR for non-constant.
11790 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
11792         * Makefile.in (OBJS): Add function-tests.o,
11793         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11794         selftest-run-tests.o.
11795         (OBJS-libcommon): Add selftest.o.
11796         (OBJS-libcommon-target): Add selftest.o.
11797         (all.internal): Add "selftest".
11798         (all.cross): Likewise.
11799         (selftest): New phony target.
11800         (s-selftest): New target.
11801         (selftest-gdb): New phony target.
11802         (COLLECT2_OBJS): Add selftest.o.
11803         * bitmap.c: Include "selftest.h".
11804         (selftest::test_gc_alloc): New function.
11805         (selftest::test_set_range): New function.
11806         (selftest::test_clear_bit_in_middle): New function.
11807         (selftest::test_copying): New function.
11808         (selftest::test_bitmap_single_bit_set_p): New function.
11809         (selftest::bitmap_c_tests): New function.
11810         * common.opt (fself-test): New.
11811         * diagnostic-show-locus.c: Include "selftest.h".
11812         (make_range): New function.
11813         (test_range_contains_point_for_single_point): New function.
11814         (test_range_contains_point_for_single_line): New function.
11815         (test_range_contains_point_for_multiple_lines): New function.
11816         (assert_eq): New function.
11817         (test_get_line_width_without_trailing_whitespace): New function.
11818         (selftest::diagnostic_show_locus_c_tests): New function.
11819         * et-forest.c: Include "selftest.h".
11820         (selftest::test_single_node): New function.
11821         (selftest::test_simple_tree): New function.
11822         (selftest::test_disconnected_nodes): New function.
11823         (selftest::et_forest_c_tests): New function.
11824         * fold-const.c: Include "selftest.h".
11825         (selftest::assert_binop_folds_to_const): New function.
11826         (selftest::assert_binop_folds_to_nonlvalue): New function.
11827         (selftest::test_arithmetic_folding): New function.
11828         (selftest::fold_const_c_tests): New function.
11829         * function-tests.c: New file.
11830         * gimple.c: Include "selftest.h".
11831         Include "gimple-pretty-print.h".
11832         (selftest::verify_gimple_pp): New function.
11833         (selftest::test_assign_single): New function.
11834         (selftest::test_assign_binop): New function.
11835         (selftest::test_nop_stmt): New function.
11836         (selftest::test_return_stmt): New function.
11837         (selftest::test_return_without_value): New function.
11838         (selftest::gimple_c_tests): New function.
11839         * hash-map-tests.c: New file.
11840         * hash-set-tests.c: New file.
11841         * input.c: Include "selftest.h".
11842         (selftest::assert_loceq): New function.
11843         (selftest::test_accessing_ordinary_linemaps): New function.
11844         (selftest::test_unknown_location): New function.
11845         (selftest::test_builtins): New function.
11846         (selftest::test_reading_source_line): New function.
11847         (selftest::input_c_tests): New function.
11848         * rtl-tests.c: New file.
11849         * selftest-run-tests.c: New file.
11850         * selftest.c: New file.
11851         * selftest.h: New file.
11852         * spellcheck.c: Include "selftest.h".
11853         (selftest::levenshtein_distance_unit_test_oneway): New function,
11854         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11855         (selftest::levenshtein_distance_unit_test): Likewise.
11856         (selftest::spellcheck_c_tests): Likewise.
11857         * toplev.c: Include selftest.h.
11858         (toplev::run_self_tests): New.
11859         (toplev::main): Handle -fself-test.
11860         * toplev.h (toplev::run_self_tests): New.
11861         * tree.c: Include "selftest.h".
11862         (selftest::test_integer_constants): New function.
11863         (selftest::test_identifiers): New function.
11864         (selftest::test_labels): New function.
11865         (selftest::tree_c_tests): New function.
11866         * tree-cfg.c: Include "selftest.h".
11867         (selftest::push_fndecl): New function.
11868         (selftest::test_linear_chain): New function.
11869         (selftest::test_diamond): New function.
11870         (selftest::test_fully_connected): New function.
11871         (selftest::tree_cfg_c_tests): New function.
11872         * vec.c: Include "selftest.h".
11873         (selftest::safe_push_range): New function.
11874         (selftest::test_quick_push): New function.
11875         (selftest::test_safe_push): New function.
11876         (selftest::test_truncate): New function.
11877         (selftest::test_safe_grow_cleared): New function.
11878         (selftest::test_pop): New function.
11879         (selftest::test_safe_insert): New function.
11880         (selftest::test_ordered_remove): New function.
11881         (selftest::test_unordered_remove): New function.
11882         (selftest::test_block_remove): New function.
11883         (selftest::reverse_cmp): New function.
11884         (selftest::test_qsort): New function.
11885         (selftest::vec_c_tests): New function.c.
11886         * wide-int.cc: Include selftest.h and wide-int-print.h.
11887         (selftest::from_int <wide_int>): New function.
11888         (selftest::from_int <offset_int>): New function.
11889         (selftest::from_int <widest_int>): New function.
11890         (selftest::assert_deceq): New function.
11891         (selftest::assert_hexeq): New function.
11892         (selftest::test_printing <VALUE_TYPE>): New function template.
11893         (selftest::test_ops <VALUE_TYPE>): New function template.
11894         (selftest::test_comparisons <VALUE_TYPE>): New function template.
11895         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11896         template.
11897         (selftest::wide_int_cc_tests): New function.
11899 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11901         PR middle-end/37780
11902         * ifcvt.c (noce_try_ifelse_collapse): New function.
11903         Declare prototype.
11904         (noce_process_if_block): Call noce_try_ifelse_collapse.
11905         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11906         (simplify_ternary_operation): Use the above to simplify
11907         conditional CLZ/CTZ expressions.
11909 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11911         PR middle-end/37780
11912         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11913         define_insn_and_split.
11915 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11917         PR middle-end/37780
11918         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11920 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11922         PR c/24414
11923         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11924         Implicitly clobber memory for basic asm with non-empty assembler
11925         string.  Use targetm.md_asm_adjust also here.
11926         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11927         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11928         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11929         non-empty assembler string.
11930         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11931         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11932         (decode_asm_operands): Handle basic asm in PARALLEL block.
11933         (extract_insn): Handle basic asm in PARALLEL block.
11934         * doc/extend.texi: Mention new behavior of basic asm.
11935         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11936         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11937         branch_needs_nop_p): Use asm_noperands.
11939 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
11941         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11942         Include the M7 SPARC DFA scheduler.
11943         New attribute v3pipe.
11944         Annotate insns with v3pipe where appropriate.
11945         Define cpu_feature vis4.
11946         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11947         Add (V8QI "8") to vbits.
11948         Add insns {add,sub}v8qi3
11949         Add insns ss{add,sub}v8qi3
11950         Add insns us{add,sub}{v8qi,v4hi}3
11951         Add insns {min,max}{v8qi,v4hi,v2si}3
11952         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11953         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11954         * config/sparc/niagara4.md: Add a comment explaining the
11955         discrepancy between the documented latenty numbers and the
11956         implemented ones.
11957         * config/sparc/niagara7.md: New file.
11958         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11959         supports SPARC5 and VIS 4.0 instructions.
11960         * configure: Regenerate.
11961         * config.in: Likewise.
11962         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11963         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11964         TARGET_CPU_niagara7.
11965         (ASM_CPU64_DEFAULT_SPEC): Likewise.
11966         (CPP_CPU_SPEC): Handle niagara7.
11967         (ASM_CPU_SPEC): Likewise.
11968         * config/sparc/sparc-opts.h (processor_type): Add
11969         PROCESSOR_NIAGARA7.
11970         (mvis4): New option.
11971         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11972         (AS_NIAGARA7_FLAG): Define.
11973         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11974         (CPP_CPU64_DEFAULT_SPEC): Likewise.
11975         (CPP_CPU_SPEC): Handle niagara7.
11976         (ASM_CPU_SPEC): Likewise.
11977         * config/sparc/sparc.c (niagara7_costs): Define.
11978         (sparc_option_override): Handle niagara7 and adjust cache-related
11979         parameters with better values for niagara cpus.  Also support VIS4.
11980         (sparc32_initialize_trampoline): Likewise.
11981         (sparc_use_sched_lookahead): Likewise.
11982         (sparc_issue_rate): Likewise.
11983         (sparc_register_move_cost): Likewise.
11984         (dump_target_flag_bits): Support VIS4.
11985         (sparc_vis_init_builtins): Likewise.
11986         (sparc_builtins): Likewise.
11987         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
11988         VIS4 4.0.
11989         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
11990         UltraSparc M7.
11991         * config/sparc/sparc.opt (sparc_processor_type): New value
11992         niagara7.
11993         * config/sparc/visintrin.h (__attribute__): Prototypes for the
11994         VIS4 builtins.
11995         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
11996         -mvis4.
11997         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
11998         VIS4 builtins.
12000 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
12002         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12004 2016-06-06  Richard Biener  <rguenther@suse.de>
12006         PR tree-optimization/71398
12007         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12008         remove edges.
12010 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
12012         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12013         ft32_expand_prolog, ft32_expand_epilogue):
12014         Handle pretend_args.
12015         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12016         * config/ft32/ft32.md: Add pretend_returner.
12018 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
12020         PR target/71389
12021         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12022         Copy op1 RTX to avoid invalid sharing.
12023         (ix86_expand_vector_move_misalign): Ditto.
12025 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
12027         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12028         ATTRIBUTE_UNUSED.
12030 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
12032         * predict.c (predicted_by_loop_heuristics_p): New function.
12033         (predict_iv_comparison): Use it.
12034         (predict_loops): Walk from innermost loops; do not predict edges
12035         leaving multiple loops multiple times; implement
12036         PRED_LOOP_ITERATIONS_MAX heuristics.
12037         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12039 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
12041         * cfg.c (check_bb_profile): Do not report mismatched profiles when
12042         only edges out of BB are EH edges.
12044 2016-06-04  Martin Sebor  <msebor@redhat.com>
12045             Marcin Baczyński  <marbacz@gmail.com>
12047         PR c/48116
12048         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12049         a void expression in a void function.
12051 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
12053         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12054         aux; dump reasons of decisions.
12055         (should_duplicate_loop_header_p): Likewise.
12056         (do_while_loop_p): Likewise.
12057         (ch_base::copy_headers): Dump asi num insns duplicated.
12059 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
12061         PR tree-optimization/71405
12062         * tree-ssa.c (execute_update_addresses_taken): For clobber with
12063         incompatible type, build a new clobber with the right type instead
12064         of building a VIEW_CONVERT_EXPR around it.
12066 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
12068         PR tree-optimization/52171
12069         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12070         by_pieces_ninsns instead of move_by_pieces_ninsns.
12072 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
12074         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12075         for reg+reg addressing mode.
12077 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12079         * rs6000-c.c (c/c-tree.h): Add #include.
12080         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12081         in C++ when found in the base position of vec_ld or vec_st.
12083 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
12085         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12086         use of profile unless profile status is PROFILE_READ.
12087         * profile.c (compute_branch_probabilities): Set profile status
12088         only after reporting predictor hitrates.
12090 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
12092         PR target/71276
12093         PR target/71277
12094         * common.opt (ffp-int-builtin-inexact): New option.
12095         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12096         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12097         (ceil@var{m}2): Document dependence on this option.
12098         * ipa-inline-transform.c (inline_call): Handle
12099         flag_fp_int_builtin_inexact.
12100         * ipa-inline.c (can_inline_edge_p): Likewise.
12101         * config/i386/i386.md (rintxf2): Do not test
12102         flag_unsafe_math_optimizations.
12103         (rint<mode>2_frndint): New define_insn.
12104         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12105         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
12106         for 387 instead of extending and truncating.
12107         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12108         !flag_trapping_math instead of flag_unsafe_math_optimizations.
12109         Change to frndint<mode>2_<rounding>.
12110         (frndintxf2_<rounding>_i387): Likewise.  Change to
12111         frndint<mode>2_<rounding>_i387.
12112         (<rounding_insn>xf2): Likewise.
12113         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12114         !flag_trapping_math instead of flag_unsafe_math_optimizations for
12115         x87.  Test TARGET_ROUND || !flag_trapping_math ||
12116         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12117         SSE.  Use ROUND_NO_EXC in constant operand of
12118         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
12119         for 387 instead of extending and truncating.
12121 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12122             Julia Koval  <julia.koval@intel.com>
12124         PR target/66960
12125         PR target/67630
12126         PR target/67634
12127         PR target/67841
12128         PR target/68037
12129         PR target/68618
12130         PR target/68661
12131         PR target/69575
12132         PR target/69596
12133         PR target/69734
12134         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12135         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12136         all registers, except for function return registers if there are
12137         no caller-saved registers.
12138         (ix86_set_func_type): New function.
12139         (ix86_set_current_function): Call ix86_set_func_type to set
12140         no_caller_saved_registers and func_type.  Call reinit_regs if
12141         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
12142         nor x87 instructions in interrupt handler nor function with
12143         no_caller_saved_registers attribute.
12144         (ix86_function_ok_for_sibcall): Return false if there are no
12145         caller-saved registers.
12146         (type_natural_mode): Don't warn ABI change for MMX in interrupt
12147         handler.
12148         (ix86_function_arg_advance): Skip for callee in interrupt handler.
12149         (ix86_function_arg): Return special arguments in interrupt handler.
12150         (ix86_promote_function_mode): Promote pointer to word_mode only
12151         for normal functions.
12152         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12153         interrupt handler.
12154         (ix86_epilogue_uses): New function.
12155         (ix86_hard_regno_scratch_ok): Likewise.
12156         (ix86_save_reg): Preserve all registers in interrupt handler
12157         after reload.  Preserve all registers, except for function return
12158         registers, if there are no caller-saved registers after reload.
12159         (find_drap_reg): Always use callee-saved register if there are
12160         no caller-saved registers.
12161         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12162         for interrupt handler.
12163         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12164         Emit cld instruction if stringops are used in interrupt handler
12165         or interrupt handler isn't a leaf function.
12166         (ix86_expand_epilogue): Generate interrupt return for interrupt
12167         handler and pop the 'ERROR_CODE' off the stack before interrupt
12168         return in exception handler.
12169         (ix86_expand_call): Disallow calling interrupt handler directly.
12170         If there are no caller-saved registers, mark all registers that
12171         are clobbered by the call which returns as clobbered.
12172         (ix86_handle_no_caller_saved_registers_attribute): New function.
12173         (ix86_handle_interrupt_attribute): Likewise.
12174         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12175         attributes.
12176         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12177         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12178         accumulation in interrupt function if stack may be realigned to
12179         avoid DRAP.
12180         (EPILOGUE_USES): New.
12181         (function_type): New enum.
12182         (machine_function): Add func_type and no_caller_saved_registers.
12183         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12184         (interrupt_return): New pattern.
12185         * doc/extend.texi: Document x86 interrupt and
12186         no_caller_saved_registers attributes.
12188 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
12190         PR tree-optimization/52171
12191         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12192         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
12193         Look for constant strings.  Move some code to emit_block_cmp_hints
12194         and use it.
12195         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12196         * defaults.h (COMPARE_MAX_PIECES): New macro.
12197         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12198         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12199         (clear_by_pieces_1): Don't declare.  Move definition before use.
12200         (can_do_by_pieces): New static function.
12201         (can_move_by_pieces): Use it.  Return bool.
12202         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
12203         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
12204         (class pieces_addr); New.
12205         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12206         pieces_addr::adjust, pieces_addr::increment_address,
12207         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12208         functions for it.
12209         (class op_by_pieces_d): New.
12210         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12211         functions for it.
12212         (class move_by_pieces_d, class compare_by_pieces_d,
12213         class store_by_pieces_d): New subclasses of op_by_pieces_d.
12214         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12215         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12216         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12217         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12218         compare_by_pieces_d::finish_mode): New member functions.
12219         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12220         functions.
12221         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12222         (emit_block_cmp_hints): New function.
12223         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12224         use the newly defined classes.
12225         * expr.h (by_pieces_constfn): New typedef.
12226         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12227         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12228         (move_by_pieces_ninsns): Don't declare.
12229         (can_move_by_pieces): Change return value to bool.
12230         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12231         (compare_by_pieces_branch_ratio): New hook.
12232         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12233         (by_pieces_ninsns): Declare.
12234         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12235         COMPARE_BY_PIECES.
12236         (default_compare_by_pieces_branch_ratio): New function.
12237         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12238         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12239         * doc/tm.texi: Regenerate.
12240         * tree-ssa-strlen.c: Include "builtins.h".
12241         (handle_builtin_memcmp): New static function.
12242         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12243         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12245 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12247         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12248         relevant stmts which are simple and invariant.
12249         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12250         instead of simple and invariant
12252 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12254         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
12255         (vectorizable_reduction): Check for new relevant state.
12256         (vectorizable_live_operation): vectorize live stmts using
12257         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
12258         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
12259         (vect_stmt_relevant_p): Check for stmts which are only used live.
12260         (process_use): Use of a stmt does not inherit it's live value.
12261         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
12262         (vect_analyze_stmt): Check for new relevant state.
12263         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
12264         outside the loop, but not inside it.
12266 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12268         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
12269         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
12270         (vect_get_vec_def_for_operand): Split out code.
12272 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
12274         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
12276 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12278         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
12280 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12282         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
12284 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
12286         PR middle-end/71387
12287         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
12288         to noreturn e->callee->decl that has void return type and void
12289         arguments, adjust gimple_call_fntype and remove lhs even if it had
12290         previously addressable type.
12292 2016-06-02  Jeff Law  <law@redhat.com>
12294         PR tree-optimization/71328
12295         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
12296         error when checking for a jump back onto the copied path.
12298 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
12300         * config/microblaze/microblaze.c (get_branch_target): Add return
12301         NULL_RTX for the non-CALL_P case.
12302         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
12303         (insert_wic): Remove unused local "j".
12305 2016-06-02  Martin Liska  <mliska@suse.cz>
12307         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
12309 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12310             Julia Koval  <julia.koval@intel.com>
12312         * function.c (assign_parm_setup_stack): Force source into a
12313         register if needed.
12314         * target.def (function_incoming_arg): Update documentation to
12315         allow arbitrary address computation based on hard register.
12316         * doc/tm.texi: Regenerated.
12318 2016-06-02  Martin Liska  <mliska@suse.cz>
12320         * predict.c (combine_predictions_for_bb): Fix first match in
12321         cases where a first predictor contains more than one occurence
12322         in list of predictors.  Take the best value in such case.
12324 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12326         PR rtl-optimization/71295
12327         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
12328         offset would go over the size of the inner mode reject it.
12330 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
12332         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
12333         x=x,x and v=v,m instead of x=x,m.
12335         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
12336         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
12337         alternative to v=rm,C.
12339         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
12340         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
12341         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
12342         instead of vex for the last two above mentioned alternatives.
12344 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12346         PR target/70830
12347         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
12349 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
12351         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
12353 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
12355         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
12356         from int to unsigned.
12358 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
12360         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
12361         alternatives, eliminating preferred register class.  Add support
12362         for the MTVSRDD instruction in ISA 3.0.
12363         (vsx_splat_v4si_internal): Use splat_input_operand instead of
12364         reg_or_indexed_operand.
12365         (vsx_splat_v4sf_internal): Likewise.
12367 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
12369         PR target/71186
12370         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
12371         for loading up all 0's or all 1's.
12373 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12375         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
12377 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
12379         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
12380         extension.
12381         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
12382         * gcc.c (set_source_date_epoch_envvar): New function, sets
12383         the SOURCE_DATE_EPOCH environment variable to the current time.
12385 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12387         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
12388         the factor for live Phi nodes.
12390 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
12392         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
12393         * tree-parloops.c (parallelize_loops): likewise.
12394         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
12395         tree_unswitch_outer_loop): likewise.
12397 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
12399         PR middle-end/71371
12400         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
12401         around creation of the temporary.
12403 2016-06-01  Richard Biener  <rguenther@suse.de>
12405         PR tree-optimization/71366
12406         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12407         (unloop_loops): Move removing edges here ...
12408         (try_unroll_loop_completely): ... from here.
12409         (try_peel_loop): ... and here.
12410         (tree_unroll_loops_completely_1): Track parent loops via
12411         bitmap of header BBs.
12412         (tree_unroll_loops_completely): Adjust for that.
12414 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12416         * config/rs6000/altivec.h (vec_slv): New macro.
12417         (vec_srv): New macro.
12418         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12419         (UNSPEC_VSRV): New value.
12420         (vslv): New insn.
12421         (vsrv): New insn.
12422         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12423         (vsrv): New builtin definition.
12424         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12425         define argument types for new builtin.
12426         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12427         new builtin.
12428         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12429         functions.
12431 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
12432             Jocelyn Mayer  <l_indien@magic.fr>
12434         PR target/67310
12435         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12436         detect processor family for signature_CENTAUR_ebx.
12437         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12438         signature_CENTAUR_ebx.
12439         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12440         <default>: Pass x86-64 for has_longmode.
12442 2016-06-01  Nathan Sidwell  <nathan@acm.org>
12444         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12445         undefined weak.
12447 2016-06-01  Richard Biener  <rguenther@suse.de>
12449         PR tree-optimization/71261
12450         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12451         of stmts successfully put in the bool pattern.  Remove
12452         single-use restriction.
12453         (adjust_bool_pattern_cast): Add cast at the use site via the
12454         pattern def sequence.
12455         (adjust_bool_pattern): Remove recursion, maintain a hash-map
12456         of patterned defs.  Use the pattern def seqence instead of
12457         multiple independent patterns.
12458         (sort_after_uid): New qsort compare function.
12459         (adjust_bool_stmts): New function to process stmts in the bool
12460         pattern in IL order.
12461         (vect_recog_bool_pattern): Adjust.
12462         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12463         (ifcvt_walk_pattern_tree): Likewise.
12464         (stmt_is_root_of_bool_pattern): Likewise.
12465         (ifcvt_repair_bool_pattern): Likewise.
12466         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12468 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
12470         * loop-unroll.c (decide_unroll_constant_iterations,
12471         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12472         likely upper bounds.
12473         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12475 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
12477         * tree-core.h (enum omp_clause_code): Remove
12478         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
12480 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12482         * config/arm/sync.md (arm_store_exclusive<mode>):
12483         Use 'H' output modifier on operands[2] rather than creating a new
12484         entry in out-of-bounds memory of the operands array.
12485         (arm_store_release_exclusivedi): Likewise.
12487 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12489         * config/arm/arm.c (arm_fusion_enabled_p): New function.
12490         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12491         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12492         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12494 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12496         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12497         into account live statements for mask producers.
12499 2016-06-01  Richard Biener  <rguenther@suse.de>
12501         PR tree-optimization/71311
12502         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12503         restrict to non-INTEGER_CST @0.
12505 2016-06-01  Richard Biener  <rguenther@suse.de>
12507         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12508         (relational patterns): Use :c to avoid pattern duplications.
12510 2016-06-01  Richard Biener  <rguenther@suse.de>
12512         * genmatch.c (comparison_code_p): New predicate.
12513         (swap_tree_comparison): New function.
12514         (commutate): Add for_vec parameter to append new for entries.
12515         Support commutating relational operators by swapping it alongside
12516         operands.
12517         (lower_commutative): Adjust.
12518         (dt_simplify::gen): Do not pass artificial operators to gen
12519         functions.
12520         (decision_tree::gen): Do not add artificial operators as parameters.
12521         (parser::parse_expr): Verify operator commutativity when :c is
12522         applied.  Allow :C to override this.
12523         * match.pd: Adjust patterns to use :C instead of :c where required.
12525 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
12527         PR tree-optimization/71077
12528         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12529         the combining step, use boolean_false_node and boolean_true_node
12530         as the designated false/true return values.
12532 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12534         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12535         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12536         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12537         PRED_LOOP_EXIT.
12539 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12541         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12542         of flags impliying the register renaming.
12543         * toplev.c (process_options): Do not imply flag_rename_registers with
12544         loop peeling.
12546 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12548         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12549         default implementation.
12551 2016-05-31  Nathan Sidwell  <nathan@acm.org>
12553         * dwarf2out.c (cur_line_info_table): Add GTY marker.
12555 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12557         * config/sh/constraints.md (b): Remove constraint.
12558         * config/sh/predicates.md (arith_reg_operand): Remove
12559         TARGET_REGISTER_P.
12560         * config/sh/sh-modes.def (PDI): Remove.
12561         * config/sh/sh.c (sh_target_reg_class,
12562         sh_optimize_target_register_callee_saved): Remove functions.
12563         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12564         (sh_expand_epilogue): Update comment.
12565         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12566         sh_secondary_reload): Remove TARGET_REGS related code.
12567         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12568         TARGET_REGISTER_P): Remove macros.
12569         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12570         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12571         TR1_REG, TR2_REG): Remove constants.
12572         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12574 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12576         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12577         define_expand patterns.
12578         (adddi3_compact): Rename to adddi3.
12579         (subdi3_compact): Rename to subdi3.
12580         (*negdi2): Rename to negdi2.
12581         (*abs<mode>2): Rename to abs<mode>2.
12583 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12585         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12586         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12587         (atomic_sub_fetchsi): ... this new pattern.
12588         (mvtc): Add CC_REG clobber.
12590 2016-05-31  Marek Polacek  <polacek@redhat.com>
12592         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12594 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12596         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12597         aarch64_fusion_enabled_p to check for fusion capabilities.
12599 2016-05-31  Richard Biener  <rguenther@suse.de>
12601         PR tree-optimization/71352
12602         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12603         minus one and a negate.
12605 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12607         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12608         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12609         Delete prototype.
12610         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12611         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12612         Remove use of aarch64_simd_attr_length_move, set length attribute
12613         directly.
12614         (*aarch64_be_movoi): Likewise.
12615         (*aarch64_be_movci): Likewise.
12616         (*aarch64_be_movxi): Likewise.
12618 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12620         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12621         It no longer does that.
12622         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12624 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
12626         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12627         attribute __unused__.
12629 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12631         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12632         * config/arm/arm.c (arm_arch_thumb1): Define.
12633         (arm_option_override): Initialize arm_arch_thumb1.
12634         * config/arm/arm.h (arm_arch_thumb1): Declare.
12635         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12636         support Thumb-1 ISA.
12638 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12640         PR target/71346
12641         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12642         `Yv' for scalar operand.
12644 2016-05-31  Tom de Vries  <tom@codesourcery.com>
12646         PR tree-optimization/69068
12647         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12648         phis with more than two args.
12650 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
12652         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12653         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12654         target.
12656 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
12658         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12659         tune_64.
12660         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12661         support on SPARC.
12662         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12663         cpu_32, cpu_64, tune_32 and tune_64.
12664         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12666 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
12668         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12670 2016-05-30  Andi Kleen  <ak@linux.intel.com>
12672         * auto-profile.c (read_profile): Replace asserts with errors
12673         when file does not exist.
12674         * gcov-io.c (gcov_read_words): Dito.
12676 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12678         * tree-cfg.c (print_loop): Print likely upper bounds.
12680 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12682         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12683         * opts.c (default_options): Enable peel loops at -O3.
12684         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12685         (try_peel_loop): Do not re-peel already peeled loops;
12686         use likely upper bounds; fix profile updating.
12687         (pass_complete_unroll::execute): Initialize peeled_loops.
12689 2016-05-30  Martin Liska  <mliska@suse.cz>
12691         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12692         computed costs by frequency of BB they belong to.
12693         (get_scaled_computation_cost_at): New function.
12695 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
12696             Marc Glisse  <marc.glisse@inria.fr>
12698         PR tree-optimization/71289
12699         * match.pd (-1 / B < A, A > -1 / B): New transformations.
12701 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12703         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12705 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12707         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12708         for peeled copies; avoid underflow when updating estimates; correctly
12709         scale loop profile.
12711 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12713         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12714         r236875. Corrected oe3 to oe2 as obvious.
12716 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12718         PR middle-end/71269
12719         PR middle-end/71252
12720         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12721         that inserted stmt will not dominate stmts that defines its operand.
12722         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12723         (rewrite_expr_tree_parallel): Likewise.
12725 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12727         PR middle-end/71252
12728         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12729         all fields including stmt_to_insert are swapped.
12731 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12733         * predict.h (force_edge_cold): Declare.
12734         * predict.c (force_edge_cold): New function.
12735         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12736         updating.
12737         (canonicalize_loop_induction_variables): Fix formating.
12739 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12741         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12742         (visium_expand_copysign): Use gen_int_mode directly.
12743         (visium_compute_frame_size): Minor tweaks.
12745 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12747         * tree-vect-loop.c (vect_analyze_loop_2): Use
12748         likely_max_stmt_executions_int.
12750 2016-05-30  Tom de Vries  <tom@codesourcery.com>
12752         PR tree-optimization/69067
12753         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12755 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
12757         PR target/71245
12758         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12759         New peepholes to remove unneeded fild/fistp pairs.
12760         (define_peephole2 atomic_loaddi_fpu): Ditto.
12762 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12764         * predict.c (maybe_hot_frequency_p): Avoid division.
12766 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
12768         * doc/install.texi: Use https for shop.fsf.org.
12770 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12772         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12773         likely_max_stmt_executions_int.
12775 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12777         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12778         likely_max_stmt_executions_int.
12780 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12782         * profile.c (compute_branch_probabilities): Do not report hitrates
12783         here.
12784         (branch_prob): Report hitrates here.
12785         * predict.c (gimple_predict_edge): Do not assert profile status;
12786         fix formatting issues.
12788 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12790         * predict.c (edge_predicted_by_p): New function.
12791         (predict_paths_for_bb): Do not put multiple predictions of the same type
12792         on one edge.
12794 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12796         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12797         commit.
12799 2016-05-28  Alan Modra  <amodra@gmail.com>
12801         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12803 2016-05-28  Alan Modra  <amodra@gmail.com>
12805         PR rtl-optimization/71275
12806         * ira.c (ira): Free dominance info.
12808 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
12810         * doc/sourcebuild.texi: New address for upstream Go repository.
12812 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12814         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12815         (TARGET_ARM_V7M): Likewise.
12817 2016-05-26  Jeff Law  <law@redhat.com>
12819         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12820         (thread_across_edge): Remove calls to find_jump_threads_backwards.
12821         * passes.def: Add jump threading passes before DOM/VRP.
12822         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12823         argument to a basic block from an edge.  Remove tests which are
12824         handled elsewhere.
12825         (pass_data_thread_jumps, class pass_thread_jumps): New.
12826         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12827         (make_pass_thread_jumps): Likewise.
12828         * tree-pass.h (make_pass_thread_jumps): Declare.
12830 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12832         * config/visium/visium-protos.h (split_double_move): Rename into...
12833         (visium_split_double_move): ...this.
12834         (visium_split_double_add): Declare.
12835         * config/visium/visium.c (split_double_move): Rename into...
12836         (visium_split_double_move): ...this.
12837         (visium_split_double_add): New function.
12838         (visium_expand_copysign): Renumber operands for consistency.
12839         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12840         (DFmode move splitter): Likewise.
12841         (*addi3_insn): Split by means of visium_split_double_add.
12842         (*adddi3_insn_flags): Delete.
12843         (*plus_plus_sltu<subst_arith>): New insn.
12844         (*subdi3_insn): Split by means of visium_split_double_add.
12845         (subdi3_insn_flags): Delete.
12846         (*minus_minus_sltu<subst_arith>): New insn.
12847         (*negdi2_insn): Split by means of visium_split_double_add.
12848         (*negdi2_insn_flags): Delete.
12850 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
12852         * configure.ac: Treat a --with-headers option without argument
12853         the same as the default (i.e. consult sys-include directory).
12854         * configure: Regenerate.
12856 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12858         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12859         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12860         prototype.
12861         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12862         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12864 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12866         PR target/63596
12867         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12868         tree-stdarg analysis results.
12869         (aarch64_setup_incoming_varargs): Likewise.
12871 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12873         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12874         va_list_gpr_counter_field and va_list_fpr_counter_field.
12876 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
12878         PR67609
12879         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12880         * config/aarch64/aarch64.c
12881         (aarch64_cannot_change_mode_class): Remove function.
12882         * config/aarch64/aarch64-protos.h
12883         (aarch64_cannot_change_mode_class): Remove.
12885 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12887         * cfgloop.c (record_niter_bound): Record likely upper bounds.
12888         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12889         get_likely_max_loop_iterations_int): New.
12890         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12891         any_likely_upper_bound.
12892         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12893         Declare.
12894         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12895         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12896         upper bound.
12897         (unroll_loop_constant_iterations): Likewise.
12898         (unroll_loop_runtime_iterations): Likewise.
12899         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12900         * lto-streamer-out.c (output_cfg): Likewise.
12901         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12902         bounds.
12903         (canonicalize_loop_induction_variables): Dump likely upper bounds.
12904         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12905         (likely_max_loop_iterations): New.
12906         (likely_max_loop_iterations_int): New.
12907         (likely_max_stmt_executions): New.
12908         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12909         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12910         likely_max_stmt_executions): Declare.
12912 2016-05-27  Marek Polacek  <polacek@redhat.com>
12914         PR middle-end/71308
12915         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12917 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12919         * config/s390/s390.md (2x risbg splitters): Use
12920         reg_overlap_mentioned_p instead of rtx_equal_p.
12922 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12924         * combine.c (make_compound_operation): Take known zero bits into
12925         account when checking for possible zero_extend.
12927 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12929         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12930         Use const_int_operand for operand 2 predicate.  Simplify expand code
12931         as a result.
12933 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
12935         PR middle-end/71279
12936         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12937         into comparison.
12939 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12941         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12942         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12943         that returns CC_SESWPmode and CC_ZESWPmode.
12944         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12945         and CC_SESWPmode.
12946         (aarch64_rtx_costs): Likewise.
12948 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12950         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12951         for ISA 3.0 min/max support.
12952         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12953         conditional move support.
12954         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12955         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12956         available.
12957         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12958         conditional moves where the comparison type is different from move
12959         type.
12960         (fp_minmax): New code iterator for smin/smax.
12961         (minmax): New code attributes for min/max.
12962         (SMINMAX): Likewise.
12963         (smax<mode>3): Combine min, max insns into one insn using the
12964         fp_minmax code iterator.  Add support for ISA 3.0 min/max
12965         instructions that don't need -ffast-math.
12966         (s<minmax><mode>3): Likewise.
12967         (smax<mode>3_vsx): Likewise.
12968         (smin<mode>3): Likewise.
12969         (s<minmax><mode>3_vsx): Likewise.
12970         (smin<mode>3_vsx): Likewise.
12971         (pre-VSX min/max splitters): Likewise.
12972         (s<minmax><mode>3_fpr): Likewise.
12973         (movsfcc): Rewrite floating point conditional moves to combine
12974         SFmode/DFmode into a single insn.
12975         (mov<mode>cc): Likewise.
12976         (movdfcc): Likewise.
12977         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
12978         SFDF2 iterators to handle all combinations.
12979         (fseldfsf4): Likewise.
12980         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
12981         (fseldfdf4): Likewise.
12982         (fselsfdf4): Likewise.
12983         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
12984         comparison instructions that set a 0/-1 mask, and use it for
12985         floating point conditional move via XXSEL.
12986         (fpmask<mode>): Likewise.
12987         (xxsel<mode>): Likewise.
12988         * config/rs6000/predicates.md (min_max_operator): Delete, no
12989         longer used.
12990         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
12991         instructions that generate a 0/-1 mask for use with XXSEL.
12992         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
12993         say whether floating point min/max is available, either through
12994         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
12995         (TARGET_MINMAX_DF): Likewise.
12997 2016-05-27  Alan Modra  <amodra@gmail.com>
12999         PR rtl-optimization/71275
13000         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13001         for update_equiv_regs and combine_and_move_insns.
13003 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
13005         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13006         if_then_else or cond RTXes to calculate attribute value.
13007         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13008         <attr "length_immediate>: Ditto.
13009         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13010         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13011         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13012         <attr "type">: Ditto.
13013         <attr "prefix_data16">: Ditto.
13014         <attr "prefix_extra">: Ditto.
13015         <attr "length_immediate">: Ditto.
13016         <attr "prefix">: Ditto.
13017         (vec_set<mode>_0) <attr "isa">: Ditto.
13018         <attr "prefix_extra">: Ditto.
13019         <attr "length_immediate">: Ditto.
13020         <attr "prefix">: Ditto.
13021         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13022         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13023         (sse2_storelpd) <attr "prefix_data16">: Ditto.
13024         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13025         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13026         <attr "length_immediate">: Ditto.
13027         <attr "prefix">: Ditto.
13028         (sse2_movsd) <attr "length_immediate">: Ditto.
13029         <attr "prefix">: Ditto.
13030         (vec_concatv2df)  <attr "isa">: Ditto.
13031         <attr "prefix">: Ditto.
13032         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13033         (*vec_extractv2di_1) <attr "isa">: Ditto.
13034         <attr "type">: Ditto.
13035         <attr "length_immediate">: Ditto.
13036         <attr "prefix_rex">: Ditto.
13037         <attr "prefix_extra">: Ditto.
13038         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13039         <attr "prefix_extra">: Ditto.
13040         <attr "length_immediate">: Ditto.
13041         (vec_concatv2di) <attr "isa">: Ditto.
13042         <attr "prefix_extra">: Ditto.
13043         <attr "length_immediate">: Ditto.
13044         <attr "prefix">: Ditto.
13046 2016-05-26  Martin Liska  <mliska@suse.cz>
13048         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13049         function.
13050         (operator+): Likewise.
13051         (operator-): Likewise.
13052         (comp_cost::operator+=): Likewise.
13053         (comp_cost::operator-=): Likewise.
13054         (comp_cost::operator/=): Likewise.
13055         (comp_cost::operator*=): Likewise.
13056         (operator<): Likewise.
13057         (operator==): Likewise.
13058         (operator<=): Likewise.
13059         (new_cost): Remove.
13060         (infinite_cost_p): Likewise.
13061         (add_costs): Likewise.
13062         (sub_costs): Likewise.
13063         (compare_costs): Likewise.
13064         (set_group_iv_cost): Use the newly introduced functions.
13065         (get_address_cost): Likewise.
13066         (get_shiftadd_cost): Likewise.
13067         (force_expr_to_var_cost): Likewise.
13068         (split_address_cost): Likewise.
13069         (ptr_difference_cost): Likewise.
13070         (difference_cost): Likewise.
13071         (get_computation_cost_at): Likewise.
13072         (determine_group_iv_cost_generic): Likewise.
13073         (determine_group_iv_cost_address): Likewise.
13074         (determine_group_iv_cost_cond): Likewise.
13075         (autoinc_possible_for_pair): Likewise.
13076         (determine_group_iv_costs): Likewise.
13077         (cheaper_cost_pair): Likewise.
13078         (iv_ca_recount_cost): Likewise.
13079         (iv_ca_set_no_cp): Likewise.
13080         (iv_ca_set_cp): Likewise.
13081         (iv_ca_cost): Likewise.
13082         (iv_ca_new): Likewise.
13083         (iv_ca_dump): Likewise.
13084         (iv_ca_narrow): Likewise.
13085         (iv_ca_prune): Likewise.
13086         (iv_ca_replace): Likewise.
13087         (try_add_cand_for): Likewise.
13088         (try_improve_iv_set): Likewise.
13089         (find_optimal_iv_set): Likewise.
13091 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13093         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13094         that internal functions will clobber all caller-saved registers.
13096 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
13098         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13099         Return a better case_values_threshold when optimizing.
13101 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
13103         * config/aarch64/aarch64-simd.md (aarch64_combinez):
13104         Add ? to integer variant.
13105         (aarch64_combinez_be): Likewise.
13107 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13109         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13110         instead of x constraint.
13111         (vcvtps2ph256<mask_name>): Likewise.
13113         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13114         alternative.  Formatting fix.
13116         * config/i386/sse.md
13117         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13118         to ...
13119         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13120         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
13121         maybe_evex prefix instead of vex.
13122         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
13123         EXT_REX_SSE_REG_P (op0) case in the splitter.
13125 2016-05-25  Jeff Law  <law@redhat.com>
13127         PR tree-optimization/71272
13128         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13129         Update comments.  Add test for empty path.
13131 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
13133         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13134         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13135         special case builtin.
13136         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13137         code for ALTIVEC_BUILTIN_VEC_CMPNE.
13138         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13139         for __builtin_vec_cmpne.
13141 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13143         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13144         redundant test and bail out if the type of the new operand is not
13145         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13147 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
13149         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13150         (x_ix86_target_flags_explicit): Remove.
13151         * config/i386/i386.c (ix86_function_specific_save): Do not copy
13152         x_ix86_target_flags_explicit.
13153         (ix86_function_specific_restore): Ditto.
13155 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
13156             H.J. Lu  <hongjiu.lu@intel.com>
13158         PR target/70738
13159         * common/config/i386/i386-common.c
13160         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13161         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13162         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13163         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13164         (-mgeneral-regs-only): Add new option.
13165         * config/i386/i386.c (ix86_option_override_internal): Don't enable
13166         x87 instructions if only general registers are allowed.
13167         (ix86_target_string): Add ix86_flags argument. Handle additional
13168         flags options through ix86_flags argument.  Update all callers.
13169         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13171 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13173         PR rtl-optimization/66940
13174         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13175         decrementing desired_val will not overflow before performing these
13176         operations.
13178 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
13180         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13181         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13182         * config/i386/i386.c (enum ix86_builtins): Add
13183         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13184         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13185         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13186         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13187         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13188         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13189         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13190         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13191         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13192         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13193         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13194         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13195         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13196         __builtin_ia32_cvtps2dq512_mask.
13197         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13198         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13199         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13200         * config/i386/sse.md
13201         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13202         Rename to ...
13203         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13204         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13205         to ...
13206         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13207         (avx512f_vec_pack_sfix_v8df): New define_expand.
13208         (avx512f_roundpd512): Rename to ...
13209         (avx512f_round<castmode>512): ... this.  Change iterator.
13210         (avx512f_roundps512_sfix): New define_expand.
13211         (round<mode>2_sfix): Change iterator.
13213 2016-05-25  Nick Clifton  <nickc@redhat.com>
13215         * config/msp430/msp430.c (msp430_attr): Produce an error if a
13216         static interrupt handler is detected.
13217         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13218         default linker script.
13219         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13220         the low part of a symbolic pointer.
13222 2016-05-25  Richard Biener  <rguenther@suse.de>
13224         PR tree-optimization/71261
13225         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13226         interesting stmt instead of immediate uses when looking
13227         for the use operand to replace.
13229 2016-05-25  Martin Liska  <mliska@suse.cz>
13231         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13233 2016-05-25  Richard Biener  <rguenther@suse.de>
13235         PR tree-optimization/71264
13236         * tree-vect-stmts.c (vect_init_vector): Properly deal with
13237         vector type val.
13239 2016-05-25  Martin Liska  <mliska@suse.cz>
13241         PR tree-optimization/71239
13242         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13243         if DECL_SIZE is NULL.
13245 2016-05-25  Richard Biener  <rguenther@suse.de>
13247         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13248         * tree-if-conv.c (pass_data_if_conversion): Use it.
13250 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13252         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
13253         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
13254         * varpool.c (varpool_node::get_availability): Likewise.
13256 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13258         * config/rs6000/altivec.md (VNEG iterator): New iterator for
13259         VNEGW/VNEGD instructions.
13260         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
13261         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
13262         support for ISA 3.0 VNEGW/VNEGD instructions.
13264 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13266         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
13267         pointers inside OACC_DATA regions.
13268         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
13269         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
13270         (gimplify_adjust_omp_clauses): Fix typo in comment.
13272 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13274         * config/rs6000/altivec.md (VParity): New mode iterator for vector
13275         parity built-in functions.
13276         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
13277         zeros.
13278         (p9v_parity<mode>2): Likewise.
13279         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
13280         parity.
13281         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
13282         (parity<mode>2): ISA 3.0 expander for vector parity.
13283         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
13284         power9 built-ins.
13285         (BU_P9_64BIT_MISC_0): Likewise.
13286         (BU_P9_MISC_0): Likewise.
13287         (BU_P9V_AV_1): Likewise.
13288         (BU_P9V_AV_2): Likewise.
13289         (BU_P9V_AV_3): Likewise.
13290         (BU_P9V_AV_P): Likewise.
13291         (BU_P9V_VSX_1): Likewise.
13292         (BU_P9V_OVERLOAD_1): Likewise.
13293         (BU_P9V_OVERLOAD_2): Likewise.
13294         (BU_P9V_OVERLOAD_3): Likewise.
13295         (VCTZB): Add vector count trailing zeros support.
13296         (VCTZH): Likewise.
13297         (VCTZW): Likewise.
13298         (VCTZD): Likewise.
13299         (VPRTYBD): Add vector parity support.
13300         (VPRTYBQ): Likewise.
13301         (VPRTYBW): Likewise.
13302         (VCTZ): Add overloaded vector count trailing zeros support.
13303         (VPRTYB): Add overloaded vector parity support.
13304         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13305         overloaded vector count trailing zeros and parity instructions.
13306         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
13307         vector parity support.
13308         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
13309         trailing zeros support.
13310         (vec_cntlz): Likewise.
13311         (vec_vctzb): Likewise.
13312         (vec_vctzd): Likewise.
13313         (vec_vctzh): Likewise.
13314         (vec_vctzw): Likewise.
13315         (vec_vprtyb): Add ISA 3.0 vector parity support.
13316         (vec_vprtybd): Likewise.
13317         (vec_vprtybw): Likewise.
13318         (vec_vprtybq): Likewise.
13319         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13320         the ISA 3.0 vector count trailing zeros and vector parity built-in
13321         functions.
13323 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13325         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
13326         when there is stmt_to_insert.
13328 2016-05-24  Martin Sebor  <msebor@redhat.com>
13330         PR c++/71147
13331         * tree.h (complete_or_array_type_p): New inline function.
13333 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
13335         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
13336         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
13337         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
13339         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
13340         Limit 1st alternative to noavx isa, split 2nd alternative into one
13341         noavx and one avx alternative, use *x and Bm in the former and
13342         x and m in the latter.
13344         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
13345         of sse4 for the first alternative, drop %v from the template
13346         and d operand modifier.  Split second alternative into one sse4_noavx
13347         and one avx alternative, use *x instead of *v in the former and v
13348         instead of *v in the latter.
13349         (*sse4_1_extractps): Use noavx isa instead of * for the first
13350         alternative, drop %v from the template.  Split second alternative into
13351         one noavx and one avx alternative, use *x instead of *v in the
13352         former and v instead of *v in the latter.
13353         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
13354         with noavx and the last one with avx.
13355         (sse4_1_phminposuw): Guard first alternative with noavx isa,
13356         split the second one into one noavx and one avx alternative,
13357         use *x and Bm in the former and x and m in the latter one.
13358         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
13359         alternatives.
13361         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
13362         first two alternatives to noavx, use *x instead of *v in the second
13363         one, add avx alternative without *.
13364         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
13365         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
13366         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
13368 2016-05-24  Jeff Law  <law@redhat.com>
13370         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
13371         New function, extracted from...
13372         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
13373         Allow simple copies and constant initializations in the SSA chain.
13375 2016-05-24  Marek Polacek  <polacek@redhat.com>
13377         PR c/71249
13378         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
13379         scope.
13381 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
13383         PR c++/71257
13384         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
13385         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
13386         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
13387         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
13388         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
13390 2016-05-24  Richard Biener  <rguenther@suse.de>
13392         PR tree-optimization/71240
13393         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
13394         has integral type.
13396 2016-05-24  Richard Biener  <rguenther@suse.de>
13398         PR tree-optimization/71230
13399         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
13401 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13403         * tree-vectorizer.h (vectorizable_comparison): Delete.
13404         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13405         PURE_SLP_STMT check.
13406         * tree-vect-stmts.c (vectorizable_call): Likewise.
13407         (vectorizable_simd_clone_call): Likewise.
13408         (vectorizable_conversion): Likewise.
13409         (vectorizable_assignment): Likewise.
13410         (vectorizable_shift): Likewise.
13411         (vectorizable_operation): Likewise.
13412         (vectorizable_load): Likewise.
13413         (vectorizable_condition): Likewise.
13414         (vectorizable_store): Likewise.  Assert that we don't have
13415         hybrid SLP.
13416         (vectorizable_comparison): Make static.  Remove redundant
13417         PURE_SLP_STMT check.
13418         (vect_transform_stmt): Assert that we always have an slp_node
13419         if PURE_SLP_STMT.
13421 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13423         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
13424         operands[2] against 1 with comparison against CONST1_RTX.
13425         (<shift>di3_neon): Likewise.
13426         * config/arm/predicates.md (const0_operand): Replace with comparison
13427         against CONST0_RTX.
13429 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13431         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13432         operands[2] against 1 with comparison against CONST1_RTX.
13433         (ashrdi3): Likewise.
13434         (lshrdi3): Likewise.
13435         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13436         UINTVAL.
13437         (ashrsi3): Likewise.
13438         (lshrsi3): Likewise.
13439         (rotrsi3): Likewise.
13440         (define_split above *compareqi_eq0): Likewise.
13441         (define_split above "prologue"): Likewise.
13442         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13443         * config/arm/predicates.md (shift_operator): Likewise.
13444         (shift_nomul_operator): Likewise.
13445         (sat_shift_operator): Likewise.
13446         (thumb1_cmp_operand): Likewise.
13447         (const_neon_scalar_shift_amount_operand): Replace manual range
13448         check with IN_RANGE.
13449         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13450         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13452 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13454         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13455         with HOST_WIDE_INT_1.
13456         (insv): Likewise.
13457         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13458         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13459         (arm_canonicalize_comparison): Likewise.
13460         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13461         HOST_WIDE_INT_1.
13462         (thumb1_size_rtx_costs): Likewise.
13463         (vfp_const_double_index): Replace cast of 1 to unsigned
13464         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13465         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13466         HOST_WIDE_INT_1.
13467         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13468         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13469         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13470         HOST_WIDE_INT with HOST_WIDE_INT_1.
13472 2016-05-24  Marek Polacek  <polacek@redhat.com>
13474         * tree-cfg.h (should_remove_lhs_p): New predicate.
13475         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13476         * gimplify.c (gimplify_modify_expr): Likewise.
13477         * tree-cfg.c (verify_gimple_call): Likewise.
13478         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13479         * gimple-fold.c: Include "tree-cfg.h".
13480         (gimple_fold_call): Use should_remove_lhs_p.
13482 2016-05-24  Richard Biener  <rguenther@suse.de>
13484         PR tree-optimization/71253
13485         * cfganal.h (control_dependences): Make robust against edge
13486         and BB removal.
13487         (control_dependences::control_dependences): Remove edge_list argument.
13488         (control_dependences::get_edge): Remove.
13489         (control_dependences::get_edge_src): Add.
13490         (control_dependences::get_edge_dest): Likewise.
13491         (control_dependences::m_el): Make a vector of edge src/dest index.
13492         * cfganal.c (control_dependences::find_control_dependence): Adjust.
13493         (control_dependences::control_dependences): Likewise.
13494         (control_dependences::~control_dependence): Likewise.
13495         (control_dependences::get_edge): Remove.
13496         (control_dependences::get_edge_src): Add.
13497         (control_dependences::get_edge_dest): Likewise.
13498         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13499         get_edge_src.
13500         (perform_tree_ssa_dce): Adjust.
13501         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13502         get_edge_src.
13503         (pass_loop_distribution::execute): Adjust.  Do loop destroying
13504         conditional on changed.
13506 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13508         PR target/69857
13509         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13510         return.  Reindent transformation comment and mention the ARM state
13511         behavior.
13513 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13515         PR middle-end/71252
13516         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13517         after build_and_add_sum creates new use stmt.
13519 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13521         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13522         load_lanes/grouped_load classification comes first.  Don't check
13523         whether the vectorization factor is a multiple of the group size
13524         for load_lanes.
13526 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13528         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13529         GROUP_GAP for single-element interleaving.
13530         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13531         variable.
13533 2016-05-24  Richard Biener  <rguenther@suse.de>
13535         PR middle-end/70434
13536         PR c/69504
13537         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13538         bases which are accessed with non-invariant indices.
13539         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13540         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13542 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13544         PR middle-end/71170
13545         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13546         (add_to_ops_vec): Add stmt_to_insert.
13547         (add_repeat_to_ops_vec): Init stmt_to_insert.
13548         (insert_stmt_before_use): New.
13549         (transform_add_to_multiply): Remove mult_stmt insertion and add it
13550         to ops vector.
13551         (get_ops): Init stmt_to_insert.
13552         (maybe_optimize_range_tests): Likewise.
13553         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13554         (rewrite_expr_tree_parallel): Likewise.
13555         (reassociate_bb): Likewise.
13557 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13559         PR target/71201
13560         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13561         ISA 3.0 xxperm fusion alternative.
13562         (altivec_vperm_v8hiv16qi): Likewise.
13563         (altivec_vperm_<mode>_uns_internal): Likewise.
13564         (vperm_v8hiv4si): Likewise.
13565         (vperm_v16qiv8hi): Likewise.
13567 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13568             Kelvin Nilsen  <kelvin@gcc.gnu.org>
13570         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13571         vpermr/xxpermr on ISA 3.0.
13572         (altivec_expand_vec_perm_le): Likewise.
13573         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13574         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13575         ISA 3.0.
13577 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
13579         * config/i386/i386.h (IS_STACK_MODE): Enable for
13580         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
13581         SSE_FLOAT_MODE_P macros.
13582         * config/i386/i386.c (ix86_preferred_reload_class): Use
13583         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13584         Cleanup regclass processing for CONST_DOUBLE_P.
13585         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13586         (ix86_rtx_costs): Remove redundant TARGET_80387 check
13587         with IS_STACK_MODE macro.
13588         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13589         with TARGET_SSE2.
13590         (*movdf_internal): Use IS_STACK_MODE macro.
13591         (*movsf_internal): Ditto.
13593 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
13595         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13596         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13598 2016-05-23  Jeff Law  <law@redhat.com>
13600         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13601         extracted from ...
13602         (fsm_find_control_statement_thread_paths): Call it.
13604 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13606         PR ipa/71234
13607         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13608         from_global_constant if t is not NULL.
13610 2016-05-23  Marek Polacek  <polacek@redhat.com>
13612         PR c/49859
13613         * common.opt (Wswitch-unreachable): New option.
13614         * doc/invoke.texi: Document -Wswitch-unreachable.
13615         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13616         warning.
13618 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
13620         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13621         TMR_INDEX is non-NULL.
13623 2016-05-23  Richard Biener  <rguenther@suse.de>
13625         PR tree-optimization/71230
13626         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13627         (try_special_add_to_ops): ... here.  Always test for single-use.
13629 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13631         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13632         default block if a PHI node in the original one would be resized.
13634 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13636         PR tree-optimization/58135
13637         * tree-vect-slp.c: When group size is not multiple
13638         of vector size, allow splitting of store group at
13639         vector boundary.
13641 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
13643         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13645 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
13647         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13648         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13649         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
13650         of 64x2.
13652         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13653         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13654         v constraint instead of x and vinserti32x4 insn.
13656         * config/i386/sse.md (i128vldq): New mode iterator.
13657         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13658         avx512dq and avx512vl alternatives.
13660         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13661         constraint, use maybe_evex prefix instead of vex.
13662         (vec_dupv4sf): Use v constraint instead of x for output
13663         operand except for noavx alternative, use Yv constraint
13664         instead of x for input.  Use maybe_evex prefix instead of vex.
13665         (*vec_dupv4si): Likewise.
13666         (*vec_dupv2di): Likewise.
13668 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13670         PR middle-end/40921
13671         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13672         (linearize_expr_tree): Call try_special_add_to_ops.
13673         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13675 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13677         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13678         to computed stack_usage.
13680 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13682         PR target/71103
13683         * config/avr/avr.md (define_expand "mov<mode>"): If the source
13684         operand is subreg (symbol_ref) then move the symbol ref to register.
13686 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
13688         * tree.c (array_at_struct_end_p): Look through MEM_REF.
13690 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13692         PR middle-end/71179
13693         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13694         VECTOR type.
13696 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13698         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13699         ranges by calling get_single_symbol and tidy up.  Look more closely
13700         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13702 2016-05-20  Jeff Law  <law@redhat.com>
13704         * bitmap.c (bitmap_find_bit): Remove useless test.
13706 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13708         * function.c (thread_prologue_and_epilogue_insns): Commit the
13709         insertion of the epilogue.
13711 2016-05-20  Martin Jambor  <mjambor@suse.cz>
13713         PR tree-optimization/70884
13714         * tree-sra.c (initialize_constant_pool_replacements): Do not check
13715         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13716         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13717         of constant pool data as a reason for scalarization.
13719 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13721         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13722         for naked functions.
13723         (thumb1_expand_prologue): Likewise.
13725 2016-05-20  Nathan Sidwell  <nathan@acm.org>
13727         * config/nvptx/nptx.c (nvptx_option_override): Only set
13728         flag_toplevel_reorder, if not explicitly specified.  Set
13729         flag_no_common, unless explicitly specified.
13731 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13733         * calls.c (can_implement_as_sibling_call_p): Mark param
13734         reg_parm_stack_space with ATTRIBUTE_UNUSED.
13736 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
13738         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13739         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13740         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13741         constants.
13742         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13743         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13744         and CASE_CONST_ANY.
13746 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
13748         * config/nvptx/nvptx.md (sincossf3): New pattern.
13750 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13752         * calls.c (maybe_complain_about_tail_call): New function.
13753         (initialize_argument_information): Call
13754         maybe_complain_about_tail_call when clearing *may_tailcall.
13755         (can_implement_as_sibling_call_p): Call
13756         maybe_complain_about_tail_call when returning false.
13757         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13758         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
13759         if tail-call optimization fails.
13760         * cfgexpand.c (expand_call_stmt): Initialize
13761         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13762         * gimple-pretty-print.c (dump_gimple_call): Dump
13763         gimple_call_must_tail_p.
13764         * gimple.c (gimple_build_call_from_tree): Call
13765         gimple_call_set_must_tail with the value of
13766         CALL_EXPR_MUST_TAIL_CALL.
13767         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13768         (gimple_call_set_must_tail): New function.
13769         (gimple_call_must_tail_p): New function.
13770         * print-tree.c (print_node): Update printing of TREE_STATIC
13771         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13772         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13773         trailing comment listing applicable flags.
13774         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13776 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13778         * calls.c (expand_call): Move "Rest of purposes for tail call
13779         optimizations to fail" to...
13780         (can_implement_as_sibling_call_p): ...this new function, and
13781         split into multiple "if" statements.
13783 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13785         * cfgloop.h (expected_loop_iterations_unbounded,
13786         expected_loop_iterations): Unconstify.
13787         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13788         profile with known upper bound; return 3 when profile is absent.
13789         (expected_loop_iterations): Update.
13791 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13793         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13794         and get_max_loop_iterations_int.
13796 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13798         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13799         realistic upper bounds here.
13801 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
13803         PR c++/71210
13804         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13805         calls if the LHS is variable length or has addressable type.
13806         If targets[0]->decl is a noreturn call with void return type and
13807         zero arguments, adjust fntype and remove lhs in that case.
13809 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
13811         PR tree-optimization/71079
13812         PR tree-optimization/71206
13813         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13815 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13817         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13818         (get_vec_alignment_for_array_decl): Likewise.
13819         (get_vec_alignment_for_record_decl): Likewise.
13820         (increase_alignment::execute): Move code to find alignment to
13821         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13822         (type_align_map): New hash_map.
13824 2016-05-20  Richard Guenther  <rguenther@suse.de>
13826         PR tree-optimization/29756
13827         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13828         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13829         * fold-const.c (operand_equal_p): Likewise.
13830         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13831         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13832         * tree-inline.c (estimate_operator_cost): Likewise.
13833         * tree-pretty-print.c (dump_generic_node): Likewise.
13834         * tree-ssa-operands.c (get_expr_operands): Likewise.
13835         * cfgexpand.c (expand_debug_expr): Likewise.
13836         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13837         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13838         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13839         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13840         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13841         (execute_update_addresses_taken): Do it.
13843 2016-05-20  Richard Biener  <rguenther@suse.de>
13845         PR tree-optimization/71185
13846         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13847         register operations.
13849 2016-05-20  Richard Biener  <rguenther@suse.de>
13851         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13852         gimple_seq_add_seq_without_update.
13853         (release_bb_predicate): Assert we have no operands to free.
13854         (if_convertible_loop_p_1): Calculate post dominators later.
13855         Do not free BB predicates here.
13856         (combine_blocks): Do not recompute BB predicates.
13857         (version_loop_for_if_conversion): Save BB predicates around
13858         loop versioning.
13860 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
13862         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13863         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
13864         code.  Ignore sibcalls on EDGE_IGNORE edges.
13865         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
13866         on edges for sibcalls that run without prologue.  The rest of the
13867         function is combined from...
13868         (fix_fake_fallthrough_edge): ... this, and ...
13869         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
13870         function argument, make it a local variable.
13872 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
13874         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13875         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13876         for 32-bit mode and SEH for 64-bit.
13877         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13878         TARGET_64BIT_DEFAULT.
13880 2016-05-19  Ryan Burn  <contact@rnburn.com>
13882         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13883         * gengtype.c (open_base_files): Add cilk.h to ifiles.
13885 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
13887         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13888         force pending loads from memory.
13890 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13892         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13893         (UNSPEC_DARN_32): New unspec constant.
13894         (UNSPEC_DARN_RAW): New unspec constant.
13895         (darn_32): New instruction.
13896         (darn_raw): New instruction.
13897         (darn): New instruction.
13898         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13899         support and documentation for this macro.
13900         (BU_P9_MISC_1): New macro definition.
13901         (BU_P9_64BIT_MISC_0): New macro definition.
13902         (BU_P9_MISC_0): New macro definition.
13903         (darn_32): New builtin definition.
13904         (darn_raw): New builtin definition.
13905         (darn): New builtin definition.
13906         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13907         RS6000_BUILTIN_0 directives to surround each occurrence of
13908         #include "rs6000-builtin.def".
13909         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13910         RS6000_BTM_64BIT flags to the returned mask, depending on
13911         configuration.
13912         (def_builtin): Correct an error in the assignments made to the
13913         debugging variable attr_string.
13914         (rs6000_expand_builtin): Add support for no-operand built-in
13915         functions.
13916         (builtin_function_type): Remove fatal_error assertion that is no
13917         longer valid.
13918         (rs6000_common_init_builtins): Add support for no-operand built-in
13919         functions.
13920         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13921         definition.
13922         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13923         definition.
13924         (RS6000_BTM_64BIT): New macro definition.
13925         * doc/extend.texi: Document __builtin_darn (void),
13926         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13927         functions.
13929 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
13931         * tree-vect-loop.c (vect_analyze_loop_2): Use also
13932         max_loop_iterations_int.
13934 2016-05-19  Marek Polacek  <polacek@redhat.com>
13936         PR tree-optimization/71031
13937         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13938         condition and adjust the code a bit.
13940 2016-05-19  Martin Liska  <mliska@suse.cz>
13942         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13943         auto_vec instead of vec.
13945 2016-05-19  Martin Liska  <mliska@suse.cz>
13947         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13949 2016-05-19  Martin Liska  <mliska@suse.cz>
13951         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13953 2016-05-19  Martin Liska  <mliska@suse.cz>
13955         * ipa-pure-const.c (set_function_state): Remove an existing
13956         funct_state.
13957         (remove_node_data): Do not free it as it's released
13958         in set_function_state.
13960 2016-05-19  Martin Liska  <mliska@suse.cz>
13962         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13963         bitmap.
13965 2016-05-19  Martin Liska  <mliska@suse.cz>
13967         * omp-simd-clone.c (simd_clone_adjust): Release vector.
13969 2016-05-19  Martin Liska  <mliska@suse.cz>
13971         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13972         an auto_vec instead of re-creating it.
13974 2016-05-19  Martin Liska  <mliska@suse.cz>
13976         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
13977         auto_vec instead of vec.
13979 2016-05-19  Martin Liska  <mliska@suse.cz>
13981         * lto-section-in.c (lto_get_section_data): Call
13982         lto_check_version with additional argument.
13983         * lto-streamer.c (lto_check_version): Add new argument.
13984         * lto-streamer.h (lto_check_version): Likewise.
13986 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13988         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
13989         Don't add cost of inner memory when handling sign-extended loads.
13991 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13993         PR rtl-optimization/71148
13994         * cse.c (cse_main): Free dominance info.
13995         (rest_of_handle_cse): Don't free dominance info.
13996         (rest_of_handle_cse2): Likewise.
13997         (rest_of_handle_cse_after_global_opts): Likewise.
13999 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14001         PR target/71056
14002         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14003         NULL_TREE early if NEON is not available.  Remove now redundant check
14004         in ARM_CHECK_BUILTIN_MODE.
14006 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
14008         PR sanitizer/64354
14009         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14010         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14011         * doc/cpp.texi: Document new macros.
14013 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
14015         PR tree-optimization/69848
14016         * tree-vect-loop.c (vectorizable_reduction): Don't factor
14017         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14019 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
14021         * function.c (thread_prologue_and_epilogue_insn): Move the
14022         "goto epilogue_done" one block later.
14024 2016-05-19  Richard Biener  <rguenther@suse.de>
14026         PR tree-optimization/70729
14027         * passes.def: Move LIM pass before PRE.  Remove no longer
14028         required copyprop and move first DCE out of the loop pipeline.
14030 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
14032         PR driver/69265
14033         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14034         (OBJS-libcommon-target): ...here.
14035         * opts-common.c: Include spellcheck.h.
14036         (cmdline_handle_error): Build a vec of valid options and use it
14037         to suggest provide hints for misspelled arguments.
14039 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
14041         PR c++/71100
14042         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14043         lhs if it has TREE_ADDRESSABLE type.
14045 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
14047         PR target/71145
14048         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14049         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14051 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14053         PR ipa/69708
14054         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14055         input for NOP_EXPR pass-through functions.
14056         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14057         aggregate global constant VAR_DECLs in constant jump functions.
14059 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14061         PR ipa/69708
14062         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14063         from TREE_READONLY parameters.
14065 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14067         PR ipa/69708
14068         * cgraph.h (cgraph_indirect_call_info): New field
14069         guaranteed_unmodified.
14070         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14071         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14072         appropriate.
14073         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14074         pass the parameter value to ipa_find_agg_cst_for_param.
14075         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14076         guaranteed_unmodified, store AA results there instead of bailing out
14077         if present.
14078         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14079         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14080         (find_constructor_constant_at_offset): New function.
14081         (ipa_find_agg_cst_from_init): Likewise.
14082         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14083         static initializers of contants, report back through a new paameter
14084         from_global_constant if that was the case.
14085         (try_make_edge_direct_simple_call): Also pass parameter value to
14086         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14087         appropriate.
14088         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14089         (ipa_read_indirect_edge_info): Likewise.
14090         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14091         (ipa_load_from_parm_agg): Likewise.
14093 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
14095         PR rtl-optimization/71150
14096         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14097         check.
14099 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14101         PR target/70915
14102         * config/rs6000/constraints.md (wE constraint): New constraint
14103         for a vector constant that can be loaded with XXSPLTIB.
14104         (wM constraint): New constraint for a vector constant of a 1's.
14105         (wS constraint): New constraint for a vector constant that can be
14106         loaded with XXSPLTIB and a vector sign extend instruction.
14107         * config/rs6000/predicates.md (xxspltib_constant_split): New
14108         predicates for wE/wS constraints.
14109         (xxspltib_constant_nosplit): Likewise.
14110         (easy_vector_constant): Add support for constants that can be
14111         loaded via XXSPLTIB.
14112         (all_ones_constant): New predicate for vector constant with all
14113         1's set.
14114         (splat_input_operand): Add support for ISA 3.0 word splat operations.
14115         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14116         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14117         instruction and possibly with a sign extension.
14118         (output_vec_const_move): Add support for XXSPLTIB. If we are
14119         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14120         instead of XXLXOR/XXLORC.
14121         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14122         operations.
14123         (rs6000_legitimize_reload_address): Likewise.
14124         (rs6000_output_move_128bit): Use output_vec_const_move to emit
14125         constants.
14126         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14127         combine VSX_M and VSX_M2 into one iterator.
14128         (VSX_M2): Likewise.
14129         (VSINT_84): New iterators for loading constants with XXSPLTIB.
14130         (VSINT_842): Likewise.
14131         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14132         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14133         XXSPLTIB instruction.
14134         (xxspltib_<mode>_nosplit): Likewise.
14135         (xxspltib_<mode>_split): New insn to load up constants with
14136         XXSPLTIB and a sign extend instruction.
14137         (vsx_mov<mode>): Replace single move that handled all vector types
14138         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
14139         moves (when -mvsx-timode is in effect) into the main vector
14140         moves.  Eliminate separate moves for <VSr> <VSa>, where the
14141         preferred register class (<VSr>) is listed first, and the
14142         secondary register class (<VSa>) is listed second with a '?' to
14143         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
14144         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14145         that if the register was involved in a slow operation, the
14146         clear/set operation does not wait for the slow operation to
14147         finish.  Adjust the length attributes for 32-bit mode.  Use
14148         rs6000_output_move_128bit and drop the use of the string
14149         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
14150         spacing so that the alternatives and attributes don't generate
14151         long lines, and put things in columns, so that it is easier to
14152         match up the operands and attributes with the insn alternatives.
14153         (vsx_mov<mode>_64bit): Likewise.
14154         (vsx_mov<mode>_32bit): Likewise.
14155         (vsx_movti_64bit): Fold movti into normal vector moves.
14156         (vsx_movti_32bit): Likewise.
14157         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14158         splat instructions.
14159         (vsx_splat_v4si_internal): Likewise.
14160         (vsx_splat_v4sf_internal): Likewise.
14161         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14162         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14163         extend vector elements.
14164         (vsx_sign_extend_hi_<mode>): Likewise.
14165         (vsx_sign_extend_si_v2di): Likewise.
14166         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14167         declaration.
14168         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14169         constraints.  Add trailing period to wL documentation.
14171 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
14173         PR middle-end/71020
14174         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14175         * tree-dfa.c (replace_abnormal_ssa_names): New function.
14176         * tree-call-cdce.c: Include tree-dfa.h.
14177         (can_guard_call_p): New function, extracted from...
14178         (can_use_internal_fn): ...here.
14179         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14180         and return void.
14181         (shrink_wrap_one_built_in_call): Likewise.
14182         (use_internal_fn): Likewise.
14183         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14184         and return void.  Call replace_abnormal_ssa_names.
14185         (pass_call_cdce::execute): Check can_guard_call_p during the
14186         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
14187         will always change something.
14189 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14191         PR ipa/70646
14192         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14193         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14195 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14197         PR ipa/70646
14198         * ipa-inline.h (condition): New field size.
14199         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14200         for comaprison and store it into the new condition.
14201         (evaluate_conditions_for_known_args): Use condition size to check
14202         access sizes for all but CHANGED conditions.
14203         (unmodified_parm_1): New parameter size_p, store access size into it.
14204         (unmodified_parm): Likewise.
14205         (unmodified_parm_or_parm_agg_item): Likewise.
14206         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14207         (set_cond_stmt_execution_predicate): Extract access sizes and store
14208         them to conditions.
14209         (set_switch_stmt_execution_predicate): Likewise.
14210         (will_be_nonconstant_expr_predicate): Likewise.
14211         (will_be_nonconstant_predicate): Likewise.
14212         (inline_read_section): Stream condition size.
14213         (inline_write_summary): Likewise.
14215 2016-05-18  Richard Biener  <rguenther@suse.de>
14217         * tree-ssa-loop-im.c (determine_max_movement): Properly add
14218         condition cost to PHI cost instead of total_cost.
14220 2016-05-18  Martin Liska  <mliska@suse.cz>
14222         PR fortran/70856
14223         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14224         merged variables.
14226 2016-05-18  Richard Biener  <rguenther@suse.de>
14228         * lto-streamer.h (LTO_major_version): Bump to 6.
14230 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
14232         * function.c (make_split_prologue_seq, make_prologue_seq,
14233         make_epilogue_seq): New functions, factored out from...
14234         (thread_prologue_and_epilogue_insns): Here.
14236 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
14238         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14239         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14240         of before.  Add a comment.
14242 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
14244         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14245         expression pointer, not pointer to the pointer.
14247 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
14249         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14250         (avx2_pbroadcast<mode>): Add another alternative with v instead
14251         of x constraints in it, using <pbroadcast_evex_isa> isa.
14252         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
14254         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
14255         constraint x instead of v in second alternative, add avx512bw
14256         alternative.
14258         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
14259         constraint x instead of v in second alternative, add avx512bw
14260         alternative.
14262         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
14263         constraint x instead of v in second alternative, add avx512bw
14264         alternative.
14266         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
14267         avx512bw alternative.
14269 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
14271         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
14272         array to 128 chars.
14273         (define_insn "*andnottf3"): Ditto.
14274         (define_insn "*<code><mode>3"/any_logic): Ditto.
14275         (define_insn "*<code>tf3"/any_logic): Ditto.
14276         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
14277         operand to block AVX-512VL insn variant emit when it is not enabled.
14279 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
14281         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
14282         constraint fot SF mode.
14284 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
14285             Kirill Yukhin  <kirill.yukhin@intel.com>
14287         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
14288         modifiers.
14289         (define_insn "rsqrt14<mode>"): Ditto.
14290         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14291         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
14292         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
14293         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14294         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
14295         Ditto.
14296         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
14297         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
14298         * config/i386/i386.c (ix86_print_operand): Expand check for size
14299         override codes for Intel syntax.
14301 2016-05-18  Richard Biener  <rguenther@suse.de>
14303         PR tree-optimization/71168
14304         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
14305         initialization earlier.
14307 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
14309         * config/aarch64/aarch64-simd.md
14310         (aarch64_reduc_plus_internal<mode>): Rename to...
14311         (reduc_plus_scal): ...This, and remove previous implementation.
14313 2016-05-18  Richard Biener  <rguenther@suse.de>
14315         * passes.def: Put late dse and cd_dce in canonical order.
14317 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
14319         * ipa-inline-transform.c (preserve_function_body_p): Look for
14320         first non-thunk clone.
14321         (save_function_body): Save into first non-thunk.
14322         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
14323         up call stmt id.
14324         (lto_output_node): Inline thunks don't need body in every
14325         partition.
14326         * lto-streamer-in.c: Do not fixup thunk clones.
14327         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
14328         thunks.
14329         * tree-inline.c (copy_bb): Be prepared for target node to be new after
14330         folding suceeds.
14332 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14334         PR middle-end/63586
14335         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
14336         (reassociate_bb): Call transform_add_to_multiply.
14338 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14340         * config/aarch64/aarch64.c (all_extensions): Removed unused
14341         static variable.
14343 2016-05-17  Nathan Sidwell  <nathan@acm.org>
14345         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
14346         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
14348 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
14350         PR tree-optimization/54579
14351         PR middle-end/55299
14352         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
14354 2016-05-17  Marek Polacek  <polacek@redhat.com>
14356         PR ipa/71146
14357         * tree-inline.c (expand_call_inline): Call
14358         maybe_remove_unused_call_args.
14360 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
14362         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
14363         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
14364         * doc/md.texi (fmin@var{m}3): Likewise.
14366 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14368         * match.pd (X & C): New transformation.
14370 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14372         * match.pd (~X & Y): New transformation.
14374 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14376         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
14377         information for new SSA_NAME.
14378         (simplify_conversion_using_ranges): Get range through get_range_info
14379         instead of get_value_range.
14381 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14383         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
14384         Remove inline assembly.
14385         (vmvn_s16): Likewise.
14386         (vmvn_s32): Likewise.
14387         (vmvn_u8): Likewise.
14388         (vmvn_u16): Likewise.
14389         (vmvn_u32): Likewise.
14390         (vmvnq_s8): Likewise.
14391         (vmvnq_s16): Likewise.
14392         (vmvnq_s32): Likewise.
14393         (vmvnq_u8): Likewise.
14394         (vmvnq_u16): Likewise.
14395         (vmvnq_u32): Likewise.
14396         (vmvn_p8): Likewise.
14397         (vmvnq_p16): Likewise.
14399 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14401         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14402         Use builtin.
14403         (vmul_n_s16): Likewise.
14404         (vmul_n_s32): Likewise.
14405         (vmul_n_u16): Likewise.
14406         (vmul_n_u32): Likewise.
14407         (vmulq_n_f32): Likewise.
14408         (vmulq_n_f64): Likewise.
14409         (vmulq_n_s16): Likewise.
14410         (vmulq_n_s32): Likewise.
14411         (vmulq_n_u16): Likewise.
14412         (vmulq_n_u32): Likewise.
14414 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14416         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14417         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
14419 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14421         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14422         to *aarch64_fma4_elt_from_dup<mode>.
14423         (*aarch64_fnma4_elt_to_128df): Rename to
14424         *aarch64_fnma4_elt_from_dup<mode>.
14425         * config/aarch64/arm_neon.h (vfma_n_f64): New.
14426         (vfms_n_f32): Likewise.
14427         (vfms_n_f64): Likewise.
14428         (vfmsq_n_f32): Likewise.
14429         (vfmsq_n_f64): Likewise.
14431 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
14433         * wide-int.h: Change fixed_wide_int_storage from class to struct.
14435 2016-05-17  Richard Biener  <rguenther@suse.de>
14437         PR tree-optimization/71132
14438         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14439         Only add control dependences for blocks in the loop.
14440         (build_rdg): Adjust.
14441         (generate_code_for_partition): Return whether loop should
14442         be destroyed and delay that.
14443         (distribute_loop): Likewise.
14444         (pass_loop_distribution::execute): Record loops to be destroyed
14445         and perform delayed destroying of loops.
14447 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14449         PR target/70809
14450         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14452 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14454         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14456 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
14458         PR target/71114
14459         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14460         insertion point for instructions generated by validize_mem.
14462 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14464         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14465         in brackets.
14467 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14469         * config/aarch64/aarch64.c
14470         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14471         rather than a macro.
14473 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14475         * doc/invoke.texi (AArch64 Options): Various updates.
14477 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14479         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14480         into instrumentation thunks.
14481         * cif-code.def (CIF_CHKP): New.
14483 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
14485         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14487 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14489         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14490         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14492 2016-05-16  Marek Polacek  <polacek@redhat.com>
14494         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14495         commentary.
14497 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14499         PR hsa/70857
14500         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14501         the outlined kernel function.
14503 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14505         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14506         (ISA_HAS_DLSA): Ditto.
14508 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14510         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14512 2016-05-16  Nathan Sidwell  <nathan@acm.org>
14514         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14515         (nvptx_name_replacement): Restore.  Add comment.
14516         (write_fn_proto, write_fn_proto_from_insn,
14517         nvptx_output_call_insn): Restore
14518         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14520 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14522         * config/aarch64/aarch64.md
14523         (add<mode>3_compareC_cconly_imm): Remove use of %w.
14524         (add<mode>3_compareC_imm): Likewise.
14525         (<optab>si3_uxtw): Split into register and immediate variants.
14526         (andsi3_compare0_uxtw): Likewise.
14527         (and<mode>3_compare0): Likewise.
14528         (and<mode>3nr_compare0): Likewise.
14529         (stack_protect_test_<mode>): Don't use %x for memory operands.
14531 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14533         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14535 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14537         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14538         Split integer shifts into shift_reg and bfm.
14539         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14540         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14541         (ror<mode>3_insn): Likewise.
14542         (<optab>si3_insn_uxtw): Likewise.
14543         (<optab><mode>3_insn): Change to rotate_imm.
14544         (extr<mode>5_insn_alt): Likewise.
14545         (extrsi5_insn_uxtw): Likewise.
14546         (extrsi5_insn_uxtw_alt): Likewise.
14548 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14550         * doc/tm.texi: Regenerate.
14551         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14552         (TARGET_INVALID_RETURN_TYPE): Remove.
14553         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14554         TARGET_INVALID_RETURN_TYPE.
14555         * target.def (invalid_parameter_type): Remove.
14556         (invalid_return_type): Remove.
14558 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14560         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14561         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14562         calls from thunk.
14563         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14564         gimple body.
14565         (preserve_function_body_p): No need to preserve function body
14566         * cif-codes.def (CIF_THUNK): Remove.
14567         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14569 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14571         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14573 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14575         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14576         for thunks.
14578 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14580         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14581         (inline_small_functions): Do not look for function symbol when
14582         resetting caches.
14584 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14586         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14587         of inline thunks
14589 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14590             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14591             Jiong Wang  <jiong.wang@arm.com>
14593         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14594         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14595         Define __ARM_FP16_ARGS when appropriate.
14596         * config/arm/arm.c (arm_invalid_parameter_type): Remove
14597         declaration.
14598         (arm_invalid_return_type): Likewise.
14599         (TARGET_INVALID_PARAMETER_TYPE): Remove.
14600         (TARGET_INVALID_RETURN_TYPE): Remove.
14601         (aapcs_vfp_sub_candidate): Allow HFmode.
14602         (aapcs_vfp_allocate): Add comment.  Support HFmode.
14603         (aapcs_vfp_allocate_return_reg): Likewise.
14604         (struct aapcs_cp_arg_layout): Slightly reword comments for
14605         is_return_candidate and allocate_return_reg.
14606         (output_mov_vfp): Update assert.
14607         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14608         condition.
14609         (arm_invalid_parameter_type): Remove.
14610         (amr_invalid_return_type): Remove.
14611         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14612         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14613         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14615 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14617         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14618         * config/aarch64/arch64-protos.h
14619         (aarch64_legitimize_reload_address): Remove.
14620         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14621         Remove.
14623 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14625         * configure.ac: Add ACX_NONCANONICAL_HOST.
14626         * configure: Regenerate.
14627         * Makefile.in: Set host_noncanonical.
14629 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
14631         PR target/71097
14632         * config/i386/i386.md (*movtf_internal): Before register allocation,
14633         do not allow FP constants for CM_MEDIUM memory model, allow only
14634         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14635         (*movxf_internal): Ditto.
14636         (*movdf_internal): Ditto.
14637         (*movsf_internal): Ditto.
14639 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
14641         PR rtl-optimization/67483
14642         * combine.c (make_compound_operation): Don't call extract_left_shift
14643         with negative shift amounts.
14645 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
14647         PR bootstrap/71071
14648         * fold-const.c (fold_checksum_tree): Allow modification
14649         of TYPE_ALIAS_SET during folding.
14651         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14652         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14653         (ix86_split_to_parts): Likewise.  Fix up formatting.
14655 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14657         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14658         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14659         printf format.
14661 2016-05-13  Nathan Sidwell  <nathan@acm.org>
14663         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14664         (nvptx_name_replacement): Delete.
14665         (write_fn_proto, write_fn_proto_from_insn,
14666         nvptx_output_call_insn): Remove nvptx_name_replacement call.
14667         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14668         * langhooks.c (add_builtin_funcction_common): Call
14669         targetm.mangle_decl_assembler_name.
14671         * config/nvptx/nvptx.c (write_fn_proto): Handle
14672         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14674 2016-05-13  Martin Liska  <mliska@suse.cz>
14676         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14677         and PRIu64 in printf format.
14679 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14681         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14682         comment.
14684 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14686         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14687         Change --param max-completely-peeled-times to
14688         --param max-completely-peel-times in dump file printing.
14690 2016-05-13  Richard Biener  <rguenther@suse.de>
14692         PR tree-optimization/42587
14693         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14694         (find_bswap_or_nop_1): Likewise.
14695         (bswap_replace): Likewise.
14697 2016-05-13  Martin Liska  <mliska@suse.cz>
14699         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14700         Initialize a variable with default value.
14702 2016-05-13  Martin Liska  <mliska@suse.cz>
14704         * doc/invoke.texi: Enhance explanation of error recovery
14705         of sanitizers.
14707 2016-05-13  Martin Liska  <mliska@suse.cz>
14709         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14710         (struct cost_pair): Change inv_expr_id (int) to inv_expr
14711         (iv_inv_expr_ent *).
14712         (struct iv_inv_expr_ent): Comment struct fields.
14713         (sort_iv_inv_expr_ent): New function.
14714         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14715         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14716         a hash_map between iv_inv_expr_ent and number of usages.
14717         (niter_for_exit): Fix coding style.
14718         (tree_ssa_iv_optimize_init): Use renamed variable.
14719         (determine_base_object): Fix coding style.
14720         (alloc_iv): Likewise.
14721         (find_interesting_uses_outside): Likewise.
14722         (add_candidate_1): Likewise.
14723         (add_standard_iv_candidates): Likewise.
14724         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14725         (prepare_decl_rtl): Fix coding style.
14726         (get_address_cost): Likewise.
14727         (get_shiftadd_cost): Likewise.
14728         (force_expr_to_var_cost): Likewise.
14729         (compare_aff_trees): Likewise.
14730         (get_expr_id): Restructure the function.
14731         (get_loop_invariant_expr_id): Renamed to
14732         get_loop_invariant_expr.
14733         (get_computation_cost_at): Replace usage of inv_expr_id with
14734         inv_expr.
14735         (get_computation_cost): Likewise.
14736         (determine_group_iv_cost_generic): Likewise.
14737         (determine_group_iv_cost_address): Likewise.
14738         (iv_period): Fix coding style.
14739         (iv_elimination_compare_lt): Likewise.
14740         (may_eliminate_iv): Likewise.
14741         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
14742         inv_expr.
14743         (determine_group_iv_costs): Dump invariant expressions.
14744         (iv_ca_recount_cost): Use the newly added hash_map.
14745         (iv_ca_set_remove_invariants): Fix coding style.
14746         (iv_ca_set_add_invariants): Fix coding style.
14747         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14748         invariants.
14749         (iv_ca_set_cp): Likewise.
14750         (iv_ca_new): Initialize the newly added hash_map and remove
14751         initialization of fields.
14752         (iv_ca_free): Delete the hash_map.
14753         (iv_ca_dump): Dump invariant expressions.
14754         (iv_ca_extend): Fix coding style.
14755         (try_add_cand_for): Likewise.
14756         (create_new_ivs): Dump information about # of avg iterations and
14757         # of used invariant expressions.
14758         (rewrite_use_compare): Fix coding style.
14759         (free_loop_data): Set default value for max_inv_expr_id.
14761 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14763         * cse.c (rest_of_handle_cse): Use cleanup_cfg
14764         returned value cse_cfg_altered computation.
14765         (rest_of_handle_cse2): Likewise.
14766         (rest_of_handle_cse_after_global_opts): Likewise.
14768 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14770         PR target/53440
14771         * config/arm/arm.c (arm32_output_mi_thunk): New.
14772         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14773         to split Thumb1 vs TARGET_32BIT functionality.
14774         (arm_thumb1_mi_thunk): New.
14776 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14778         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14779         to true.
14781 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14783         PR target/71080
14784         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14786 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14788         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14789         (expand_builtin_trap): Emit a regular call.
14790         (set_builtin_user_assembler_name): Remove obsolete cases.
14791         * dse.c (scan_insn): Adjust.
14792         * except.c: Include calls.h.
14793         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14794         emit a regular call to setjmp.
14795         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14796         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14797         (emit_block_move_via_libcall): Delete.
14798         (block_move_fn): Delete.
14799         (init_block_move_fn): Likewise.
14800         (emit_block_move_libcall_fn): Likewise.
14801         (emit_block_op_via_libcall): New function.
14802         (set_storage_via_libcall): Tidy up and use memset builtin.
14803         (block_clear_fn): Delete.
14804         (init_block_clear_fn): Likewise.
14805         (clear_storage_libcall_fn): Likewise.
14806         (expand_assignment): Call emit_block_move_via_libcall.
14807         Do not include gt-expr.h.
14808         * expr.h (emit_block_op_via_libcall): Declare.
14809         (emit_block_copy_via_libcall): New inline function.
14810         (emit_block_move_via_libcall): Likewise.
14811         (emit_block_comp_via_libcall): Likewise.
14812         (block_clear_fn): Delete.
14813         (init_block_move_fn): Likewise.
14814         (init_block_clear_fn): Likewise.
14815         (emit_block_move_via_libcall): Likewise.
14816         (set_storage_via_libcall): Add default parameter value.
14817         * libfuncs.h (enum libfunc_index): Remove obsolete values.
14818         (abort_libfunc): Delete.
14819         (memcpy_libfunc): Likewise.
14820         (memmove_libfunc): Likewise.
14821         (memcmp_libfunc): Likewise.
14822         (memset_libfunc): Likewise.
14823         (setbits_libfunc): Likewise.
14824         (setjmp_libfunc): Likewise.
14825         (longjmp_libfunc): Likewise.
14826         (profile_function_entry_libfunc): Likewise.
14827         (profile_function_exit_libfunc): Likewise.
14828         (gcov_flush_libfunc): Likewise.
14829         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14830         and DECL_VISIBILITY on the declaration.
14831         (init_optabs): Do not initialize obsolete libfuncs.
14832         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14833         * tree-core.h (ECF_RET1): Define.
14834         (ECF_TM_PURE): Adjust.
14835         (ECF_TM_BUILTIN): Likewise.
14836         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14837         (build_common_builtin_nodes): Initialize abort builtin.
14838         Add ECF_RET1 on memcpy, memmove and memset builtins.
14839         Pass final flags for alloca and alloca_with_align builtins.
14840         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14841         obsolete builtins.
14842         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14843         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14844         set_storage_via_libcall and call emit_block_copy_via_libcall.
14846 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
14848         * config/i386/i386.md (*call_got_x32): Change operand 0 to
14849         DImode before it is passed to ix86_output_call_operand.
14850         (*call_value_got_x32): Ditto for operand 1.
14852 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
14854         PR rtl-optimization/70904
14855         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14856         reload for wide mode.
14858 2016-05-12  Marek Polacek  <polacek@redhat.com>
14860         PR c/70756
14861         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14862         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14863         * langhooks.h (incomplete_type_error): Likewise.
14864         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
14865         parameter, pass it down to incomplete_type_error.
14866         * tree.h (size_in_bytes): New inline overload.
14867         (size_in_bytes_loc): Renamed from size_in_bytes.
14869 2016-05-12  Richard Biener  <rguenther@suse.de>
14871         PR tree-optimization/71059
14872         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14873         nary before looking up or entering the expression into the VN
14874         hashes.
14875         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14876         Make sure to re-use NARYs without result as inserted by
14877         phi-translation.
14879 2016-05-12  Richard Biener  <rguenther@suse.de>
14881         PR tree-optimization/71062
14882         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14883         field.
14884         * tree-ssa-structalias.c (set_uids_in_ptset): Set
14885         vars_contains_restrict if the var is a restrict tag.
14886         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14887         do not disambiguate pointers against it.
14888         (dump_points_to_solution): Re-structure and adjust for new
14889         vars_contains_restrict flag.
14890         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14892 2016-05-12  Martin Liska  <mliska@suse.cz>
14894         * doc/invoke.texi: Explain connection between
14895         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14897 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
14899         PR tree-optimization/71006
14900         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14901         consider COND_EXPR as a mask producer.
14903 2016-05-12  Marek Polacek  <polacek@redhat.com>
14905         PR driver/71063
14906         * opts.c (common_handle_option): Detect missing argument for --help^.
14908 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14910         PR target/70830
14911         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14912         when popping the PC and within an interrupt handler routine.
14913         Add missing tab to output of "ldmfd".
14914         (output_return_instruction): Output LDMFD with SP update rather
14915         than POP when returning from interrupt handler.
14917 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
14919         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14920         TARGET_64BIT && TARGET_AVX512DQ.
14921         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14922         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14923         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14924         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14925         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14926         (*vec_extractv4si_zext): Add avx512dq alternative.
14927         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14928         use v instead of x constraint in other alternatives where possible.
14930         * config/i386/sse.md (sse2_loadld): Use v instead of x
14931         constraint in alternatives 0,1,4.
14933         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14934         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14935         v constraints instead of x and <pinsr_evex_isa> isa attribute.
14937         PR target/71019
14938         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14939         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14940         is not emitted unless TARGET_AVX512BW.
14941         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14942         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14943         for the result operand.
14945         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14946         constraint instead of x in avx alternatives.  Use maybe_evex instead
14947         of vex prefix.
14949         * config/i386/constraints.md (Yv): New constraint.
14950         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14951         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14952         * config/i386/i386.md (avx512fvecmode): New mode attr.
14953         (*pushtf): Use v constraint instead of x.
14954         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
14955         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14956         (*absneg<mode>2): Use Yv constraint instead of x constraint.
14957         (*absnegtf2_sse): Likewise.
14958         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14959         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14960         avx512f alternatives.
14961         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14963 2016-05-12  Richard Biener  <rguenther@suse.de>
14965         PR tree-optimization/71060
14966         * tree-data-ref.c (initialize_data_dependence_relation): Do not
14967         require exact match of DR_BASE_OBJECT but only matching address and
14968         type.
14970 2016-05-12  Richard Biener  <rguenther@suse.de>
14972         PR tree-optimization/70986
14973         * cfganal.c: Include cfgloop.h.
14974         (dfs_find_deadend): Prefer to take edges exiting loops.
14976 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14978         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
14979         compile and run time.
14981 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
14983         PR c/43651
14984         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
14986 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
14988         * config/i386/i386.c (legitimize_pic_address): Use
14989         copy_to_suggested_reg instead of gen_movsi.
14991 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14993         * config/rs6000/predicates.md (quad_memory_operand): Move most of
14994         the code into quad_address_p and call it to share code with
14995         vsx_quad_dform_memory_operand.
14996         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
14997         d-form support.
14998         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
14999         bit instead of being a separate word.  Split -mpower9-dform into
15000         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15001         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15002         for the register class supporting 128-bit quad word memory offsets.
15003         (mode_supports_vsx_dform_quad): Helper function to return if the
15004         register class uses quad word memory offsets.
15005         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15006         (rs6000_debug_reg_global): Always print if we are using LRA or not.
15007         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15008         instructions are enabled, set up the appropriate addr_masks for
15009         128-bit types.
15010         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15011         -mpower9-dform-scalar, instead of -mpower9-dform.
15012         (rs6000_option_override_internal): Split -mpower9-dform into two
15013         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
15014         -mpower9-dform switch sets or clears both.  If we are not using
15015         the LRA register allocator, do not enable -mpower9-dform-vector by
15016         default.  If we are using LRA, enable -mpower9-dform-vector and
15017         -mvsx-timode if it is appropriate.  Issue a warning if either
15018         -mpower9-dform-vector or -mvsx-timode are explicitly used without
15019         enabling LRA.
15020         (quad_address_offset_p): New helper function to return if the
15021         offset is legal for quad word memory instructions.
15022         (quad_address_p): New function to determin if GPR or vector
15023         register quad word memory addresses are legal.
15024         (mem_operand_gpr): Validate quad word address offsets.
15025         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15026         d-form (register + offset) instructions.
15027         (offsettable_ok_by_alignment): Likewise.
15028         (rs6000_legitimate_offset_address_p): Likewise.
15029         (legitimate_lo_sum_address_p): Likewise.
15030         (rs6000_legitimize_address): Likewise.
15031         (rs6000_legitimize_reload_address): Add more debug statements for
15032         -mdebug=addr.
15033         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15034         d-form instructions.
15035         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15036         d-form instructions.  Distinguish different cases in debug
15037         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15038         d-form instructions.
15039         (rs6000_preferred_reload_class): Likewise.
15040         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15041         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
15042         of the ISA 2.06 indexed memory instructions.
15043         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15044         use them to save/restore the saved vector registers instead of
15045         using Altivec instructions.
15046         (rs6000_emit_epilogue): Likewise.
15047         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15048         (rs6000_opt_masks): Split -mpower9-dform into
15049         -mpower9-dform-scalar and -mpower9-dform-vector.
15050         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15051         was not selected.
15052         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15053         ISA 3.0 vector indexed memory instructions, and fold the code into
15054         the normal mov<mode> patterns.
15055         (p9_vecstore_<mode>): Likewise.
15056         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15057         instructions.
15058         (vsx_movti_64bit): Likewise.
15059         (vsx_movti_32bit): Likewise.
15060         * config/rs6000/constraints.md (wO constraint): New constraint for
15061         ISA 3.0 vector d-form support.
15062         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15063         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
15064         include -mpower9-dform-vector until we switch over to LRA.
15065         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15066         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15067         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15068         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15069         for -mpower9-dform and -mlra.
15070         * doc/md.texi (wO constraint): Document wO constraint.
15072 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
15074         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15075         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15076         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15077         Move handling of non-insn arguments inline into the sole user:
15078         (output_trans_func): ...here.
15079         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15080         in emitted function prototype.
15081         (output_internal_insn_latency_func): Ditto.  Simplify.
15082         (output_internal_maximal_insn_latency_func): Ditto.  Delete
15083         always-unused argument.
15084         (output_insn_latency_func): Ditto.
15085         (output_maximal_insn_latency_func): Ditto.
15087 2016-05-11  Richard Biener  <rguenther@suse.de>
15089         PR tree-optimization/71055
15090         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15091         sth with precision not equal to access size verify we don't chop
15092         off bits.
15094 2016-05-11  Richard Biener  <rguenther@suse.de>
15096         PR debug/71057
15097         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15098         (dwarf2out_finish): Move retry_incomplete_types call ...
15099         (dwarf2out_early_finish): ... here.
15101 2016-05-11  Richard Biener  <rguenther@suse.de>
15103         PR middle-end/71002
15104         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15105         if the langhook insists on it.
15106         * fold-const.c (make_bit_field_ref): Add arg for the original
15107         reference and preserve its alias-set.
15108         (decode_field_reference): Take exp by reference and adjust it
15109         to the original memory reference.
15110         (optimize_bit_field_compare): Adjust callers.
15111         (fold_truth_andor_1): Likewise.
15112         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15114 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
15116         PR middle-end/70807
15117         * cfgrtl.h (delete_insn_and_edges): Now return bool.
15118         * cfgrtl.c (delete_insn_and_edges): Likewise.
15119         * config/i386/i386.c (convert_scalars_to_vector): Remove
15120         redundant code.
15121         * cse.c (cse_insn): Compute cse_cfg_altered.
15122         (delete_trivially_dead_insns): Likewise.
15123         (cse_cc_succs): Likewise.
15124         (rest_of_handle_cse): Free dominance info if required.
15125         (rest_of_handle_cse2): Likewise.
15126         (rest_of_handle_cse_after_global_opts): Likewise.
15128 2016-05-11  Alan Modra  <amodra@gmail.com>
15130         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15131         abi_v4_pass_in_fpr): New functions.
15132         (rs6000_function_arg_boundary): Exclude complex IBM long double
15133         from 64-bit alignment when ABI_V4.
15134         (rs6000_function_arg, rs6000_function_arg_advance_1,
15135         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15137 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
15139         PR rtl-optimization/71028
15140         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15141         jump with just a return in the fallthrough block if the branch
15142         block contains just a return as well.
15144 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
15146         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15147         * match.pd ((X & Y) ^ Y): ... this.
15148         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15149         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15151 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
15153         * read-md.c (require_char_ws): New function.
15154         (read_string): Simplify using require_char_ws.
15155         (handle_constants): Likewise.
15156         (handle_enum): Likewise.
15157         (handle_file): Likewise.
15158         * read-md.h (require_char_ws): New declaration.
15159         * read-rtl.c (read_conditions): Simplify using require_char_ws.
15160         (read_mapping): Likewise.
15161         (read_rtx_code): Likewise.
15162         (read_nested_rtx): Likewise.
15164 2016-05-10  James Norris  <jnorris@codesourcery.com>
15166         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15167         if offloading is enabled and -fopenacc or -fopenmp is specified.
15168         (CRTOFFLOADEND): Likewise.
15169         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15170         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15172 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
15174         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15175         gotoff_operand code paths.  Use copy_to_suggested_regs and
15176         expand_simple_binop where appropriate.  Cleanup.
15178 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15180         PR target/70799
15181         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15182         integer constants.
15183         (dimode_scalar_chain::vector_const_cost): New.
15184         (dimode_scalar_chain::compute_convert_gain): Handle constants.
15185         (dimode_scalar_chain::convert_op): Likewise.
15186         (dimode_scalar_chain::convert_insn): Likewise.
15188 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
15190         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15191         unary operation, not a binary one.
15193 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15195         PR middle-end/70877
15196         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15197         calls with type casted fndecl.
15199 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15201         PR tree-optimization/70786
15202         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15203         * calls.c (initialize_argument_information): Bind bounds
15204         with corresponding args passed by reference.
15206 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
15208         PR target/70927
15209         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15210         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15211         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15212         accordingly.
15214 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15216         PR target/70963
15217         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15218         code for a zero scale factor.
15219         (vsx_xvcvdpuxds_scale): Likewise.
15221 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
15223         * diagnostic-show-locus.c (layout::layout): Call show_ruler
15224         if show_ruler_p was set on the context.
15225         (layout::show_ruler): New method.
15226         * diagnostic.h (struct diagnostic_context): Add field
15227         "show_ruler_p".
15229 2016-05-10  Richard Biener  <rguenther@suse.de>
15231         PR tree-optimization/71039
15232         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15233         (chk_uses): New function.
15234         (propagate_with_phi): Verify we can safely replicate the lhs of an
15235         aggregate assignment on all incoming edges.
15237 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
15239         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15240         Forward declare.
15241         (rx_atomic_sequence): New class.
15242         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15243         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15244         non-inline.
15245         (rx_atomic_sequence::rx_atomic_sequence,
15246         rx_atomic_sequence::~rx_atomic_sequence): New functions.
15247         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15248         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15249         CTRLREG_INTB): New constants.
15250         (FETCHOP): New code iterator.
15251         (fethcop_name, fetchop_name2): New iterator code attributes.
15252         (QIHI): New mode iterator.
15253         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
15254         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
15255         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
15257 2016-05-10  Martin Liska  <mliska@suse.cz>
15259         * tree-inline.c (remap_dependence_clique): Do not remap
15260         debugging statements.
15262 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15264         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
15265         ("*fixuns_truncdfdi2_z13")
15266         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
15267         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
15268         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
15270 2016-05-10  Richard Biener  <rguenther@suse.de>
15272         PR tree-optimization/70497
15273         PR tree-optimization/28367
15274         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
15275         split out from ...
15276         (visit_reference_op_load): ... here.
15277         (vn_reference_lookup_3): Use it to handle subreg-like accesses
15278         with simplified BIT_FIELD_REFs.
15279         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
15280         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
15281         correctly.
15283 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
15285         * dwarf2out.c (add_abstract_origin_attribute): Adjust
15286         documentation comment.  For BLOCK nodes, add a
15287         DW_AT_abstract_origin attribute that points to the DIE generated
15288         for the origin BLOCK.
15289         (gen_lexical_block_die): Call add_abstract_origin_attribute for
15290         blocks from inlined functions.
15292 2016-05-10  Alan Modra  <amodra@gmail.com>
15294         PR target/70947
15295         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
15296         regrename modifying insns saving lr before __morestack call.
15297         * config/rs6000/rs6000.md (split_stack_return): Similarly for
15298         insns restoring lr after __morestack call.
15300 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
15302         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
15303         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
15304         expanders.
15305         * config/i386/sse.md (vec_interleave_high<mode>,
15306         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
15307         <avx512>_vpermt2var<mode>3_maskz): Likewise.
15309 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15311         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
15312         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
15313         parallel reassociation for power8 and forward.
15315 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
15317         * config/i386/i386.md (absneg splitters with general regs): Use
15318         general_reg_operand predicate.
15319         (btsq peephole2): Use x86_64_immediate_operand to check if new
15320         value is suitable for immediate operand.  Generate emitted insn
15321         using RTL expressions.
15322         (btcq peephole2): Ditto.
15323         (btrq peephole2): Ditto.  Generate correct immediate operand
15324         for AND masking.
15326 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
15328         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
15329         bitpos.
15331 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
15333         * tree-affine.c (wide_int_constant_multiple_p): Add missing
15334         pointer dereference.
15336 2016-05-09  Richard Biener  <rguenther@suse.de>
15338         PR tree-optimization/70985
15339         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
15340         op0 isn't a gimple register.
15342 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
15344         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
15345         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
15346         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
15347         (i6400_fpu_mult): New cpu units.
15348         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
15349         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
15350         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
15351         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
15352         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
15353         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
15354         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
15355         (i6400_msa_long_float4, i6400_msa_long_float5)
15356         (i6400_msa_long_float8, i6400_msa_fdiv_df)
15357         (i6400_msa_fdiv_sf): New reservations.
15358         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
15359         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
15360         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
15361         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
15362         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
15363         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
15364         (msa_short_cmp, msa_short_float2, msa_short_logic3)
15365         (msa_short_store4, msa_long_load, msa_short_store)
15366         (msa_long_logic, msa_long_float2, msa_long_float4)
15367         (msa_long_float5, msa_long_float8, msa_long_mult)
15368         (msa_long_fdiv, msa_long_div): New reservations.
15370 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
15371             Sameera Deshpande  <sameera.deshpande@imgtec.com>
15372             Matthew Fortune  <matthew.fortune@imgtec.com>
15373             Graham Stott  <graham.stott@imgtec.com>
15374             Chao-ying Fu  <chao-ying.fu@imgtec.com>
15376         * config.gcc: Add MSA header file for mips*-*-* target.
15377         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
15378         (Ubv8i, Urv8):  New constraints.
15379         * config/mips/mips-ftypes.def: Add function types for MSA
15380         builtins.
15381         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
15382         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
15383         * config/mips/mips-msa.md: New file.
15384         * config/mips/mips-protos.h
15385         (mips_split_128bit_const_insns): New prototype.
15386         (mips_msa_idiv_insns): Likewise.
15387         (mips_split_128bit_move): Likewise.
15388         (mips_split_128bit_move_p): Likewise.
15389         (mips_split_msa_copy_d): Likewise.
15390         (mips_split_msa_insert_d): Likewise.
15391         (mips_split_msa_fill_d): Likewise.
15392         (mips_expand_msa_branch): Likewise.
15393         (mips_const_vector_same_val_p): Likewise.
15394         (mips_const_vector_same_bytes_p): Likewise.
15395         (mips_const_vector_same_int_p): Likewise.
15396         (mips_const_vector_shuffle_set_p): Likewise.
15397         (mips_const_vector_bitimm_set_p): Likewise.
15398         (mips_const_vector_bitimm_clr_p): Likewise.
15399         (mips_msa_vec_parallel_const_half): Likewise.
15400         (mips_msa_output_division): Likewise.
15401         (mips_ldst_scaled_shift): Likewise.
15402         (mips_expand_vec_cond_expr): Likewise.
15403         * config/mips/mips.c (enum mips_builtin_type): Add
15404         MIPS_BUILTIN_MSA_TEST_BRANCH.
15405         (mips_gen_const_int_vector_shuffle): New prototype.
15406         (mips_const_vector_bitimm_set_p): New function.
15407         (mips_const_vector_bitimm_clr_p): Likewise.
15408         (mips_const_vector_same_val_p): Likewise.
15409         (mips_const_vector_same_bytes_p): Likewise.
15410         (mips_const_vector_same_int_p): Likewise.
15411         (mips_const_vector_shuffle_set_p): Likewise.
15412         (mips_symbol_insns): Forbid loading symbols via immediate for
15413         MSA.
15414         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15415         stores.
15416         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15417         MSA.
15418         (mips_lx_address_p): Add support load indexed address for MSA.
15419         (mips_address_insns): Add calculation of instructions needed for
15420         stores and loads for MSA.
15421         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
15422         CONST_VECTOR for MSA and let it fall through.
15423         (mips_ldst_scaled_shift): New function.
15424         (mips_subword_at_byte): Likewise.
15425         (mips_msa_idiv_insns): Likewise.
15426         (mips_legitimize_move): Validate MSA moves.
15427         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
15428         calculation of costs for MSA division.
15429         (mips_split_move_p): Check if MSA moves need splitting.
15430         (mips_split_move): Split MSA moves if necessary.
15431         (mips_split_128bit_move_p): New function.
15432         (mips_split_128bit_move): Likewise.
15433         (mips_split_msa_copy_d): Likewise.
15434         (mips_split_msa_insert_d): Likewise.
15435         (mips_split_msa_fill_d): Likewise.
15436         (mips_output_move): Handle MSA moves.
15437         (mips_expand_msa_branch): New function.
15438         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15439         Reinstate 'y' modifier.
15440         (mips_file_start): Add MSA .gnu_attribute.
15441         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15442         FPRs.
15443         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15444         (mips_class_max_nregs): Add register size for MSA supported mode.
15445         (mips_cannot_change_mode_class): Allow conversion between MSA
15446         vector modes and TImode.
15447         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15448         instruction.
15449         (mips_secondary_reload_class): Force MSA loads/stores via memory.
15450         (mips_preferred_simd_mode): Add preffered modes for MSA.
15451         (mips_vector_mode_supported_p): Add MSA supported modes.
15452         (mips_autovectorize_vector_sizes): New function.
15453         (mips_msa_output_division): Likewise.
15454         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15455         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15456         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15457         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15458         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15459         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15460         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15461         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15462         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15463         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15464         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15465         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15466         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15467         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15468         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15469         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15470         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15471         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15472         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15473         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15474         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15475         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15476         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15477         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15478         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15479         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15480         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15481         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15482         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15483         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15484         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15485         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15486         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15487         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15488         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15489         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15490         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15491         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15492         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15493         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15494         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15495         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15496         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15497         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15498         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15499         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15500         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15501         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15502         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15503         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15504         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15505         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15506         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15507         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15508         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15509         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15510         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15511         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15512         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15513         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15514         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15515         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15516         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15517         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15518         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15519         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15520         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15521         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15522         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15523         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15524         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15525         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15526         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15527         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15528         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15529         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15530         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15531         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15532         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15533         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15534         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15535         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15536         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15537         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15538         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15539         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15540         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15541         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15542         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15543         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15544         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15545         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15546         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15547         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15548         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15549         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15550         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15551         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15552         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15553         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15554         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15555         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15556         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15557         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15558         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15559         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15560         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15561         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15562         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15563         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15564         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15565         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15566         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15567         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15568         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15569         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15570         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15571         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15572         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15573         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15574         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15575         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15576         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15577         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15578         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15579         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15580         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15581         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15582         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15583         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15584         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15585         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15586         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15587         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15588         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15589         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15590         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15591         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15592         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15593         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15594         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15595         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15596         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15597         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15598         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15599         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15600         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15601         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15602         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15603         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15604         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15605         move_v builtins.
15606         (mips_get_builtin_decl_index): New array.
15607         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15608         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15609         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15610         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15611         (mips_init_builtins): Initialize mips_get_builtin_decl_index
15612         array.
15613         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15614         hook.
15615         (mips_expand_builtin_insn): Prepare operands for
15616         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15617         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15618         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15619         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15620         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15621         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15622         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15623         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15624         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15625         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15626         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15627         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15628         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15629         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15630         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15631         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15632         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15633         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15634         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15635         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15636         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15637         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15638         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15639         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15640         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15641         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15642         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15643         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15644         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15645         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15646         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15647         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15648         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15649         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15650         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15651         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15652         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15653         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15654         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15655         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15656         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15657         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15658         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15659         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15660         These are set implicitly and an error is reported if overridden.
15661         (mips_expand_builtin_msa_test_branch): New function.
15662         (mips_expand_msa_shuffle): Likewise.
15663         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15664         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15665         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15666         (mips_expand_vec_unpack): Add support for MSA.
15667         (mips_expand_vector_init): Likewise.
15668         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15669         instead of const0_rtx.
15670         (mips_msa_vec_parallel_const_half): New function.
15671         (mips_gen_const_int_vector): Likewise.
15672         (mips_gen_const_int_vector_shuffle): Likewise.
15673         (mips_expand_msa_cmp): Likewise.
15674         (mips_expand_vec_cond_expr): Likewise.
15675         * config/mips/mips.h
15676         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15677         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15678         specified.
15679         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15680         (ISA_HAS_MSA): New macro.
15681         (UNITS_PER_MSA_REG): Likewise.
15682         (BITS_PER_MSA_REG): Likewise.
15683         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15684         (MSA_REG_FIRST): New macro.
15685         (MSA_REG_LAST): Likewise.
15686         (MSA_REG_NUM): Likewise.
15687         (MSA_REG_P): Likewise.
15688         (MSA_REG_RTX_P): Likewise.
15689         (MSA_SUPPORTED_MODE_P): Likewise.
15690         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15691         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15692         * config/mips/mips.md: Include mips-msa.md.
15693         (alu_type): Add simd_add.
15694         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15695         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15696         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15697         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15698         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15699         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15700         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15701         simd_move, simd_load, simd_store.  Choose "multi" for moves
15702         for "qword_mode".
15703         (qword_mode): New attribute.
15704         (insn_count): Add instruction count for quad moves.
15705         Increase the count for MIPS SIMD division.
15706         (UNITMODE): Add UNITMODEs for vector types.
15707         (addsub): New code iterator.
15708         * config/mips/mips.opt (mmsa): New option.
15709         * config/mips/msa.h: New file.
15710         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15711         specified.
15712         * config/mips/mti-linux.h: Likewise.
15713         * config/mips/predicates.md
15714         (const_msa_branch_operand): New constraint.
15715         (const_uimm3_operand): Likewise.
15716         (const_uimm4_operand): Likewise.
15717         (const_uimm5_operand): Likewise.
15718         (const_uimm8_operand): Likewise.
15719         (const_imm5_operand): Likewise.
15720         (aq10b_operand): Likewise.
15721         (aq10h_operand): Likewise.
15722         (aq10w_operand): Likewise.
15723         (aq10d_operand): Likewise.
15724         (const_m1_operand): Likewise.
15725         (reg_or_m1_operand): Likewise.
15726         (const_exp_2_operand): Likewise.
15727         (const_exp_4_operand): Likewise.
15728         (const_exp_8_operand): Likewise.
15729         (const_exp_16_operand): Likewise.
15730         (const_vector_same_val_operand): Likewise.
15731         (const_vector_same_simm5_operand): Likewise.
15732         (const_vector_same_uimm5_operand): Likewise.
15733         (const_vector_same_uimm6_operand): Likewise.
15734         (const_vector_same_uimm8_operand): Likewise.
15735         (par_const_vector_shf_set_operand): Likewise.
15736         (reg_or_vector_same_val_operand): Likewise.
15737         (reg_or_vector_same_simm5_operand): Likewise.
15738         (reg_or_vector_same_uimm6_operand): Likewise.
15739         * doc/extend.texi (MIPS SIMD Architecture Functions): New
15740         section.
15741         * doc/invoke.texi (-mmsa): Document new option.
15743 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15745         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15746         * configure: Regenerate.
15747         * config.in: Regenerate.
15748         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15749         on -fvtable-verify.
15750         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15751         (ENDFILE_VTV_SPEC): Define.
15753 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
15755         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15756         registers in all interrupt handlers if necessary.
15757         (rl78_option_override): Add warning.
15758         (MUST_SAVE_MDUC_REGISTERS): New macro.
15759         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15760         * config/rl78/rl78.c (check_mduc_usage): New function.
15761         (mduc_regs): New structure to hold MDUC register data.
15762         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15763         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15764         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15765         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15766         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15767         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15769 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
15771         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15772         (tree-ssa-loop-niter.h): Ditto.
15773         (idx_within_array_bound, ref_within_array_bound): New functions.
15774         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15775         Factor out check on writable base object to ...
15776         (base_object_writable): ... here.
15778 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15780         * config/arm/arm.md (probe_stack): Add modes to set source
15781         and destination.
15783 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
15785         * regrename.c (base_reg_class_for_rename): New static function.
15786         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15788 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
15790         * cgraph.c (thunk_adjust): Export.
15791         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15792         * cgraphunit.c (thunk_adjust): Export.
15793         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15794         thunks.
15795         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15796         inlinable.
15797         * tree-inline.c (expand_call_inline): Expand thunks inline.
15799 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
15801         PR target/70998
15802         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15803         (*sse2_vd_cvtss2sd): Ditto.
15804         * config/i386/i386.md
15805         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15806         Generate *sse2_vd_cvtsd2ss pattern.
15807         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15808         Generate *sse2_vd_cvtss2sd pattern.
15810 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15812         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15813         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
15814         users.
15816 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15818         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15819         * config/sh/sh.c: Define and declare variables on first use throughout
15820         the file.
15821         (current_function_interrupt): Change to bool type.
15822         (frame_insn): Rename to emit_frame_insn and update users.
15823         (push_regs): Use bool for 'interrupt_handler' argument.
15824         (save_schedule_s): Remove.
15825         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15826         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15827         targetm.asm_out.unaligned_op.di.
15828         (gen_far_branch): Remove redundant forward declaration.
15829         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15830         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15831         (sh_set_return_address, sh_function_ok_for_sibcall,
15832         scavenge_reg): Update comments.
15833         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15834         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15835         (sh_attr_renesas_p): Remove unnecessary parentheses.
15836         (branch_dest): Simplify.
15837         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15838         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15839         (CUMULATIVE_ARGS): Change macro to typedef.
15840         (current_function_interrupt): Change to bool type.
15841         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15842         Surround with __cplusplus ifdef.
15843         (sh_compare_op0, sh_compare_op1): Remove.
15844         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15846 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
15848         * config/arm/arm.md: (arch): Add neon.
15849         (arch_enabled): Return yes for arch neon when TARGET_NEON.
15850         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
15851         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
15852         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
15853         attributes for alt renumbering.  Mark alt 3 as non-predicable.
15854         (thumb2_movdf_vfp): Likewise.
15856 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
15858         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15859         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15860         (*andqi_1): Add preferred_for_speed attribute to disparage
15861         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15862         (*<code>qi_1): Ditto.
15863         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15864         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15865         (*ashlqi3_1): Ditto.
15866         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15867         Add preferred_for_size attribute to disparage alternative 0 and
15868         preferred_for_speed attribute to disparage alternative 1 for
15869         TARGET_PARTIAL_REG_STALL targets.
15871 2016-05-07  Tom de Vries  <tom@codesourcery.com>
15873         PR tree-optimization/70956
15874         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15875         def.
15877 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
15879         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15880         * config/sh/sh.c (sh_cbranch_distance): Implement it.
15881         * config/sh/sh.md (branch_zero): Remove define_attr.
15882         (define_delay): Disable delay slot if branch distance is one insn.
15884 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15886         * config/i386/i386.md (LEAMODE): New mode attribute.
15887         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15888         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15889         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
15890         operand 2 predicate.
15891         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15892         (*lea<mode>_general_3): Ditto.
15893         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15895 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15897         * genmddump.c (main): Convert argv from char ** to const char **.
15899 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15901         * coretypes.h (OVERRIDE): New macro.
15902         (FINAL): New macro.
15904 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
15906         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15907         allow coalescing if the types are compatible.
15909 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15911         * pass_manager.h (pass_manager::register_pass_name): New method.
15912         (pass_manager::get_pass_by_name): New method.
15913         (pass_manager::create_pass_tab): New method.
15914         (pass_manager::m_name_to_pass_map): New field.
15915         * passes.c (name_to_pass_map): Delete global in favor of field
15916         "m_name_to_pass_map" of pass_manager.
15917         (register_pass_name): Rename from a function to...
15918         (pass_manager::register_pass_name): ...this method, updating
15919         for renaming of global "name_to_pass_map" to field
15920         "m_name_to_pass_map".
15921         (create_pass_tab): Rename from a function to...
15922         (pass_manager::create_pass_tab): ...this method, updating
15923         for renaming of global "name_to_pass_map" to field.
15924         (get_pass_by_name): Rename from a function to...
15925         (pass_manager::get_pass_by_name): ...this method.
15926         (enable_disable_pass): Convert use of get_pass_by_name to
15927         a method call, locating the pass_manager singleton.
15929 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15931         * genattr-common.c (main): Convert argv from char ** to const char **.
15932         * genattr.c (main): Likewise.
15933         * genattrtab.c (main): Likewise.
15934         * genautomata.c (initiate_automaton_gen): Likewise.
15935         (main): Likewise.
15936         * gencodes.c (main): Likewise.
15937         * genconditions.c (main): Likewise.
15938         * genconfig.c (main): Likewise.
15939         * genconstants.c (main): Likewise.
15940         * genemit.c (main): Likewise.
15941         * genenums.c (main): Likewise.
15942         * genextract.c (main): Likewise.
15943         * genflags.c (main): Likewise.
15944         * genmddeps.c (main): Likewise.
15945         * genopinit.c (main): Likewise.
15946         * genoutput.c (main): Likewise.
15947         * genpeep.c (main): Likewise.
15948         * genpreds.c (main): Likewise.
15949         * genrecog.c (main): Likewise.
15950         * gensupport.c (init_rtx_reader_args_cb): Likewise.
15951         (init_rtx_reader_args): Likewise.
15952         * gensupport.h (init_rtx_reader_args_cb): Likewise.
15953         (init_rtx_reader_args): Likewise.
15954         * gentarget-def.c (main): Likewise.
15955         * read-md.c (read_md_files): Likewise.
15956         * read-md.h (read_md_files): Likewise.
15958 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15960         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15961         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15962         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15963         Remove unused predicate.
15964         (register_and_not_fp_reg_operand): Ditto.
15966 2016-05-06  Martin Liska  <mliska@suse.cz>
15968         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15969         instead of vec as the vector is local to the function.
15971 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15973         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15974         avx512bw alternative.
15976         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
15977         before the ashr<mode>3 pattern.
15979         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
15980         v instead of x in vex or maybe_vex alternatives, use
15981         maybe_evex instead of vex in prefix.
15983         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
15984         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
15985         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
15986         in vex or maybe_vex alternatives, use maybe_evex instead of vex
15987         in prefix.
15989         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
15990         v instead of x in vex or maybe_vex alternatives, use
15991         maybe_evex instead of vex in prefix.
15993         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
15994         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
15995         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
15996         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
15997         alternatives, use maybe_evex instead of vex in prefix.
15999         * config/i386/sse.md (vec_interleave_lowv4sf,
16000         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16001         v instead of x in vex or maybe_vex alternatives, use
16002         maybe_evex instead of vex in prefix.
16004         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16005         v instead of x in vex or maybe_vex alternatives, use
16006         maybe_evex instead of vex in prefix.
16008         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16009         v constraint instead of x.
16011 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
16013         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16014         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16015         equality first.
16017 2016-05-06  Richard Biener  <rguenther@suse.de>
16019         PR tree-optimization/70948
16020         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16021         Properly clobber all fields of va_list for __builtin_va_start.
16023 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
16025         PR debug/70935
16026         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16027         loop latch destination.
16029 2016-05-06  Martin Liska  <mliska@suse.cz>
16031         * tree-ssa-uninit.c: Apply manual changes
16032         to the GNU coding style.
16033         (prune_uninit_phi_opnds): Rename from
16034         prune_uninit_phi_opnds_in_unrealizable_paths.
16036 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16038         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16039         mspace): Remove deprecated options.
16040         * doc/invoke.texi (SH options): Remove -mspace.
16042 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16044         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16046 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16048         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16049         corresponding combine split pattern.
16051 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16053         PR target/58219
16054         * config/sh/predicates.md (long_displacement_mem_operand): New.
16055         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16056         Add movi20, movi20s alternatives.  Adjust length attribute for
16057         alternatives.
16058         (movsi_ie): Allow for any FPU.  Adjust length attribute for
16059         alternatives.
16060         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
16061         attribute for alternatives.
16062         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16063         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16064         length attribute for alternatives.
16066 2016-05-06  Richard Biener  <rguenther@suse.de>
16068         PR tree-optimization/70960
16069         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16071 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16073         PR target/52933
16074         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16075         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16077 2016-05-06  Marek Polacek  <polacek@redhat.com>
16079         PR sanitizer/70875
16080         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16082 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16084         PR target/54089
16085         * config/sh/sh.md (*rotcr): Add another variant.
16087 2016-05-06  Richard Biener  <rguenther@suse.de>
16089         PR middle-end/70931
16090         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16092 2016-05-06  Richard Biener  <rguenther@suse.de>
16094         PR middle-end/70941
16095         * fold-const.c (split_tree): Always convert to the original type
16096         before negating.
16098 2016-05-06  Richard Biener  <rguenther@suse.de>
16100         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16101         (fwprop_addr): Likewise.
16103 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
16105         PR target/70873
16106         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16107         New prototype.
16108         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16109         * config/i386/i386.md (push mem splitter): Use find_constant_src in
16110         the splitter condition.
16111         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16112         the splitter condition.
16113         (FP float_extend load splitter): Ditto.
16115 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
16117         * config/i386/i386.md (peehole2 patterns): Change true_regnum
16118         to REGNO in all peephole2 patterns.
16119         (post-reload splitters): Change true_regnum to REGNO in
16120         post-reload splitters.
16121         (zero_extend splitters): Use general_reg_operand and
16122         nonimmediate_gr_operand predicates.
16124 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
16126         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16127         v constraint instead of x.
16129 2016-05-05  Alan Modra  <amodra@gmail.com>
16131         PR target/68662
16132         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16133         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
16134         TARGET_NO_FP_IN_TOC for -mrelocatable.
16135         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16136         TARGET_RELOCATABLE test.
16137         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16138         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16139         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16140         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16141         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16142         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16143         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16144         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16145         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16146         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16147         Likewise.
16148         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16149         (rs6000_stack_info): Likewise.
16150         (rs6000_elf_asm_out_constructor): Likewise.
16151         (rs6000_elf_asm_out_destructor): Likewise.
16152         (rs6000_elf_declare_function_name): Likewise.
16153         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16154         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16155         Don't define.
16157 2016-05-05  Alan Modra  <amodra@gmail.com>
16159         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16161 2016-05-05  Alan Modra  <amodra@gmail.com>
16163         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16164         out-of-line gpr restore for one or two regs if that would add
16165         a save of lr.
16167 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
16169         PR target/70873
16170         * config/i386/i386.md
16171         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16172         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
16173         as operand 0 predicate.
16174         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16175         Ditto.
16176         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16177         Ditto.  Emit the pattern using RTX.
16179         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16180         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
16181         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
16182         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16183         Ditto.
16184         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16185         sse_reg_operand as operand 0 predicate.
16187         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16188         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
16189         instead of gen_rtx_REG.
16190         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16191         Ditto.
16193 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16195         * function.c (emit_use_return_register_into_block): Delete.
16196         (gen_return_pattern): Delete.
16197         (emit_return_into_block): Delete.
16198         (active_insn_between): Delete.
16199         (convert_jumps_to_returns): Delete.
16200         (emit_return_for_exit): Delete.
16201         (thread_prologue_and_epilogue_insns): Delete all code dealing with
16202         simple_return for shrink-wrapped blocks.
16203         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16204         end of blocks that need one.
16205         (get_unconverted_simple_return): Delete.
16206         (convert_to_simple_return): Delete.
16207         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16208         (convert_to_simple_return): Ditto.
16210 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16212         * cfgcleanup.c (bb_is_just_return): New function.
16213         (try_optimize_cfg): Simplify jumps to return, branches to return,
16214         and branches around return.
16216 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16218         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16219         branch to a return.
16221 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
16223         PR c++/70906
16224         PR c++/70933
16225         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16226         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16227         assert flags & OEP_HASH_CHECK, instead of asserting it
16228         never happens.  Handle TARGET_EXPR.
16229         * fold-const.c (operand_equal_p): For hash verification,
16230         or in OEP_HASH_CHECK into flags.
16232 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16234         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16235         comment.
16236         (compute_samebase_partition_bases): Fix typo.
16238 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
16240         * config/i386/sse.md (vec_interleave_highv8sf,
16241         vec_interleave_lowv8sf, vec_interleave_highv4df,
16242         vec_interleave_lowv4df): Remove constraints from expanders.
16244         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16246 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
16248         * tree-inline.c (expand_call_inline): Fix path dealing with
16249         making lhs of call statement undefined.
16251 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
16253         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16254         Check availability on NODE, too.
16255         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
16256         (cgraph_node::call_for_symbol_and_aliases): Likewise.
16257         (varpool_node::call_for_symbol_and_aliase): Likewise.
16258         * ipa-pure-const.c (add_new_function): Analyze all bodies.
16259         (propagate_pure_const): Propagate across interposable functions, too.
16260         (skip_function_for_local_pure_const): Do not skip interposable bodies
16261         with aliases.
16262         (pass_local_pure_const::execute): Update.
16264 2016-05-04  Marek Polacek  <polacek@redhat.com>
16266         * doc/invoke.texi: Document -Wdangling-else.
16268 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16270         * config.gcc: Error out when conflicting multilib is detected.  Do not
16271         loop over multilibs since no combination is legal.
16273 2016-05-04  Alan Modra  <amodra@gmail.com>
16275         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
16276         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
16277         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16278         Align .toc.
16280 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
16282         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
16283         Clean up p5600 comments.
16285 2016-05-04  Richard Biener  <rguenther@suse.de>
16287         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
16288         constructor simplifications.
16289         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
16291 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
16293         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
16294         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
16295         result.set_rtx is null instead of aborting.
16296         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
16297         Always enable.
16298         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
16299         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
16300         *mov<mode>_store_postinc): New patterns.
16302 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
16304         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
16305         as commutative.  Check both conversions are NOP.
16306         ((A & B) OP (C & B)): Remove.
16308 2016-05-04  Alan Modra  <amodra@gmail.com>
16310         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
16312 2016-05-04  Alan Modra  <amodra@gmail.com>
16314         PR target/70866
16315         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
16316         when cr2,3,4 are all fixed regs.
16318 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
16320         PR rtl-optimization/57193
16321         * opts.c (default_options_table): Revert OPT_frename_registers change.
16322         * doc/invoke.texi (-frename-registers, -O2): Likewise.
16324 2016-05-03  Martin Sebor  <msebor@redhat.com>
16326         PR c++/66561
16327         * builtins.c (fold_builtin_FILE): New function.
16328         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
16329         (fold_builtin_0): Call them.
16330         * gimplify.c (gimplify_call_expr): Remove the handling of
16331         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
16333         PR c++/66561
16334         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
16335         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
16336         constants.
16338         PR c++/66639
16339         * doc/extend.texi (Function Names as Strings): Update __func__,
16340         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
16341         constants.
16343 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16344             Richard Biener  <rguenther@suse.de>
16346         PR tree-optimization/70916
16347         * tree-if-conv.c: Include cfganal.h.
16348         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
16349         and remove_fake_exit_edges around the optimization pass.
16351 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
16353         * cgraph.c (symbol_table::create_edge): Set inline_failed.
16354         (cgraph_edge::make_direct): Likewise.
16355         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
16356         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
16357         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
16358         (CIF_THUNK): New code.
16359         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
16360         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
16361         (compute_inline_parameters): Set inline_failed for thunks.
16362         (inline_analyze_function): Cleanup.
16363         * ipa-inline.c (can_inline_edge_p): Do not deal with
16364         call_stmt_cannot_inline_p.
16365         (can_early_inline_edge_p): Likewise.
16366         (early_inliner): Initialize inline_failed.
16367         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
16369 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
16371         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
16372         from nonimm_ssenomem_operand.
16373         (nonimm_ssenomem_operand): New predicate.
16374         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
16375         as operand 0 predicate.
16376         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
16377         Disable unsupported alternatives using "enabled" attribute.
16378         Use register_ssemem_operand as operand 0 predicate.
16379         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
16381 2016-05-03  Marek Polacek  <polacek@redhat.com>
16383         PR c/70859
16384         * input.c (expansion_point_location): New function.
16385         * input.h (expansion_point_location): Declare.
16387 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
16389         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
16390         occurence with frame_offset_ ones.
16392 2016-05-03  Alan Modra  <amodra@gmail.com>
16394         PR rtl-optimization/70890
16395         * ira.c (combine_and_move_insns): When moving def_insn, remove
16396         equivs on use_insn.
16398 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16400         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
16401         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16402         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16403         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16405 2016-05-03  Alan Modra  <amodra@gmail.com>
16407         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16408         for SAVE_MULTIPLE/STORE_MULTIPLE.
16410 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16412         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16413         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16415 2016-05-03  Richard Biener  <rguenther@suse.de>
16417         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16418         default true.
16419         (gimplify_arg): Likewise.
16420         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16421         re-writing the result to a decl if required.
16422         (internal_get_tmp_var): Add allow_ssa parameter
16423         and override into_ssa with it.
16424         (get_formal_tmp_var): Adjust.
16425         (get_initialized_tmp_var): Add allow_ssa parameter.
16426         (gimplify_arg): Add allow_ssa parameter and avoid generating
16427         SSA names for the result false.
16428         (gimplify_call_expr): If the call may return twice do not
16429         gimplify parameters into SSA.
16430         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16431         (gimplify_modify_expr): Adjust assert.  For noreturn calls
16432         with a SSA name LHS adjust its def.
16433         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16434         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16435         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16436         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16437         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
16438         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
16439         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16440         (optimize_target_teams): Do not allow SSA names for clause operands.
16441         (gimplify_expr): Likewise for where we mark the result addressable.
16442         * passes.def (pass_init_datastructures): Remove.
16443         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16444         (rewrite_stmt): Likewise.
16445         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16446         (replace_locals_op): Replace SSA names.
16447         (copy_gimple_seq_and_replace_locals): Init src_cfun.
16448         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16449         * cgraph.c (release_function_body): Free CFG annotations only
16450         when we have a CFG.  Simplify.
16451         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16452         force_gimple_operand instead of get_initialized_tmp_var.
16453         * tree-pass.h (make_pass_init_datastructures): Remove.
16454         * tree-ssa.c (execute_init_datastructures): Remove.
16455         (pass_data_init_datastructures): Likewise.
16456         (class pass_init_datastructures): Likewise.
16457         (make_pass_init_datastructures): Likewise.
16458         * omp-low.c (create_omp_child_function): Init SSA data structures.
16459         (grid_expand_target_grid_body): Likewise.
16460         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16461         name before adding it to names_to_release.
16462         (remove_bb): Always release SSA defs.
16463         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16464         before dereferencing it.
16465         * cgraphunit.c (init_lowered_empty_function): Always
16466         int SSA data structures.
16467         * tree-ssanames.c (release_defs): Remove assert that we are in
16468         SSA form.
16469         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16471 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16472             Uros Bizjak  <ubizjak@gmail.com>
16474         PR rtl-optimization/70467
16475         * config/i386/predicates.md (x86_64_hilo_int_operand,
16476         x86_64_hilo_general_operand): New predicates.
16477         * config/i386/constraints.md (Wd): New constraint.
16478         * config/i386/i386.md (mode attr di): Use Wd instead of e.
16479         (general_hilo_operand): New mode attr.
16480         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16481         instead of <general_operand>.
16482         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16483         x86_64_hilo_general_operand instead of <general_operand>.
16485 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16487         PR tree-optimization/70916
16488         * tree-if-conv.c (constant_or_ssa_name): Removed.
16489         (fold_build_cond_expr): Use is_gimple_val instead of
16490         constant_or_ssa_name.
16492         PR tree-optimization/70916
16493         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16494         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16496         PR target/49244
16497         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16498         (optimize_atomic_bit_test_and): New function.
16499         (pass_fold_builtins::execute): Use it.
16500         * optabs.def (atomic_bit_test_and_set_optab,
16501         atomic_bit_test_and_complement_optab,
16502         atomic_bit_test_and_reset_optab): New optabs.
16503         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16504         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16505         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16506         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16507         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16508         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16509         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16510         * doc/md.texi (atomic_bit_test_and_set@var{mode},
16511         atomic_bit_test_and_complement@var{mode},
16512         atomic_bit_test_and_reset@var{mode}): Document.
16513         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16514         atomic_bit_test_and_complement<mode>,
16515         atomic_bit_test_and_reset<mode>): New expanders.
16516         (atomic_bit_test_and_set<mode>_1,
16517         atomic_bit_test_and_complement<mode>_1,
16518         atomic_bit_test_and_reset<mode>_1): New insns.
16520 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
16522         PR rtl-optimization/70687
16523         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
16524         instead of unsigned HOST_WIDE_INT.
16526 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
16528         PR rtl-optimization/44281
16529         * hard-reg-set.h (struct target_hard_regs): New field
16530         x_fixed_nonglobal_reg_set.
16531         (fixed_nonglobal_reg_set): New macro.
16532         * reginfo.c (init_reg_sets_1): Initialize it.
16533         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16534         of fixed_reg_set.
16535         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16537 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16539         PR tree-optimization/56541
16540         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16541         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16542         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16543         (any_complicated_phi): new static variable.
16544         (aggressive_if_conv): delete.
16545         (if_convertible_phi_p): support phis with more than two arguments.
16546         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16547         critical pred edges.
16548         (ifcvt_split_critical_edges): support phis with more than two
16549         arguments by checking new parameter.  only split critical edges
16550         if needed.
16551         (tree_if_conversion): handle simd pragma marked loop using new
16552         local variable aggressive_if_conv.  check any_complicated_phi.
16554 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16556         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16557         before using it.
16559 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16561         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16562         cbase.
16564 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
16566         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16567         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16568         define_insn_and_split.
16569         (mulsi3_i): New define_insn_and_split.
16570         (mulsi3_call): Convert to define_insn.
16571         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16572         Remove constraints.
16574 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16576         * machmode.h (mode_complex): Add support to give the complex mode
16577         for a given mode.
16578         (GET_MODE_COMPLEX_MODE): Likewise.
16579         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16580         stored by build_complex_type and gfc_build_complex_type instead of
16581         trying to figure out the appropriate mode based on the size. Raise
16582         an assertion error, if the type was not set.
16583         * genmodes.c (struct mode_data): Add field for the complex type of
16584         the given type.
16585         (blank_mode): Likewise.
16586         (make_complex_modes): Remember the complex mode created in the
16587         base type.
16588         (emit_mode_complex): Write out the mode_complex array to map a
16589         type mode to the complex version.
16590         (emit_insn_modes_c): Likewise.
16591         * tree.c (build_complex_type): Set the complex type to use before
16592         calling layout_type.
16593         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16594         support for __float128 complex datatypes.
16595         (rs6000_hard_regno_mode_ok): Likewise.
16596         (rs6000_setup_reg_addr_masks): Likewise.
16597         (rs6000_complex_function_value): Likewise.
16598         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16599         __float128 and __ibm128 complex.
16600         (FLOAT128_IBM_P): Likewise.
16601         (ALTIVEC_ARG_MAX_RETURN): Likewise.
16602         * doc/extend.texi (Additional Floating Types): Document that
16603         -mfloat128 must be used to enable __float128.  Document complex
16604         __float128 and __ibm128 support.
16606 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16608         PR target/49244
16609         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16610         char/short arguments promoted to int because of promote_prototypes.
16612 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16614         * config/i386/predicates.md (register_ssemem_operand): New predicate.
16615         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16616         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16617         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
16618         alternatives using "enabled" attribute.  Use register_ssemem_operand
16619         as operand 1 predicate.
16620         (*cmpi<unord>xf_i387): Split XFmode pattern from
16621         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16622         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16623         *absneg<mode>2_i387.  Disable unsupported alternatives using
16624         "enabled" attribute.
16625         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16627 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16629         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16630         marker.
16631         (oacc_loop_process): Check mask for loop termination.
16633 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16635         * cif-code.def (CIF_THUNK): Add.
16636         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16637         accidental change.
16639 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16641         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16642         (dump_inline_summary): Dump it.
16643         (fp_expression_p): New predicate.
16644         (estimate_function_body_sizes): Use it.
16645         (inline_merge_summary): Merge fp_expressions.
16646         (inline_read_section): Read fp_expressions.
16647         (inline_write_summary): Write fp_expressions.
16648         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16649         codegen boundary if either caller or callee is !fp_expressions.
16650         * ipa-inline.h (inline_summary): Add fp_expressions.
16651         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16652         to fp_expressions be sure the fp generation flags are updated.
16654 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16656         PR rtl-optimization/70467
16657         * cse.c (cse_insn): Handle no-op MEM moves after folding.
16659         PR rtl-optimization/70467
16660         * ipa-pure-const.c (check_call): Handle internal calls even in
16661         ipa mode like in local mode.
16663 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16665         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16667 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16669         * match.pd (X u< X, X u> X): New transformations.
16671 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16673         * flag-types.h (enum warn_strict_overflow_code): Move ...
16674         * coretypes.h: ... here.
16675         * fold-const.h (fold_overflow_warning): Declare.
16676         * fold-const.c (fold_overflow_warning): Make non-static.
16677         (fold_comparison): Move the transformation of X +- C1 CMP C2
16678         into X CMP C2 -+ C1 ...
16679         * match.pd: ... here.
16680         * gimple-fold.c (fold_stmt_1): Protect with
16681         fold_defer_overflow_warnings.
16683 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16685         * omp-low.c (struct oacc_loop): Add 'inner' field.
16686         (new_oacc_loop_raw): Initialize it to zero.
16687         (oacc_loop_fixed_partitions): Initialize it.
16688         (oacc_loop_auto_partitions): Partition outermost loop to outermost
16689         available partitioning.
16691 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16693         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16694         register_operand.
16695         (umulsidi3): Likewise.
16696         (indirect_jump): Fix jump instruction assembly patterns.
16698 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
16700         PR target/70860
16701         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16702         (nvptx_function_value): Assert non-NULL cfun.
16704 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
16706         PR rtl-optimization/70886
16707         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16709         * cselib.h (rtx_equal_for_cselib_1): Declare.
16710         (rtx_equal_for_cselib_p: New inline function.
16711         * cselib.c (rtx_equal_for_cselib_p): Delete.
16712         (rtx_equal_for_cselib_1): Make public.
16714 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16716         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16717         (register_mixssei387nonimm_operand): Remove predicate.
16718         * config/i386/i386.md (*fop_<mode>_comm): Merge from
16719         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
16720         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
16721         for TARGET_MIX_SSE_I387 alternatives.
16722         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16723         Disable unsupported alternatives using "enabled" attribute.  Use
16724         nonimm_ssenomem_operand as operand 1 predicate.  Also check
16725         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16727 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16729         * tree.c (cst_and_fits_in_hwi): Simplify.
16731 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16733         * tree.h (wi::to_wide): New function.
16734         * expr.c (expand_expr_real_1): Use wi::to_wide.
16735         * fold-const.c (int_const_binop_1): Likewise.
16736         (extract_muldiv_1): Likewise.
16738 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16740         * wide-int.h: Update offset_int and widest_int documentation.
16741         (WI_SIGNED_SHIFT_RESULT): New macro.
16742         (wi::binary_shift): Define signed_shift_result_type for
16743         shifts on offset_int- and widest_int-like types.
16744         (generic_wide_int): Support <<= and >>= if << and >> are supported.
16745         * tree.h (int_bit_position): Use shift operators instead of wi::
16746          shifts.
16747         * alias.c (adjust_offset_for_component_ref): Likewise.
16748         * expr.c (get_inner_reference): Likewise.
16749         * fold-const.c (fold_comparison): Likewise.
16750         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16751         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16752         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16753         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16754         (stmt_kills_ref_p): Likewise.
16755         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16756         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16757         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16758         (ao_ref_init_from_vn_reference): Likewise.
16760 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16762         * wide-int.h: Update offset_int and widest_int documentation.
16763         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16764         (wi::binary_traits): Allow ordered comparisons between offset_int and
16765         offset_int, between widest_int and widest_int, and between either
16766         of these types and basic C types.
16767         (operator <, <=, >, >=): Define for the same combinations.
16768         * tree.h (tree_int_cst_lt): Use comparison operators instead
16769         of wi:: comparisons.
16770         (tree_int_cst_le): Likewise.
16771         * gimple-fold.c (fold_array_ctor_reference): Likewise.
16772         (fold_nonarray_ctor_reference): Likewise.
16773         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16774         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16775         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16776         * tree-sra.c (completely_scalarize): Likewise.
16777         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16778         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16779         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16780         (check_for_binary_op_overflow): Likewise.
16781         (search_for_addr_array): Likewise.
16782         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16784 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16786         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16787         (arc_save_restore): Likewise.
16788         (arc_dwarf_register_span): Likewise.
16789         (arc_output_pic_addr_const): Initialize suffix variable.
16791 2016-05-02  Martin Liska  <mliska@suse.cz>
16793         * symbol-summary.h (function_summary::function_summary):
16794         Remove checking assert for all cgraph nodes.
16795         (function_summary::get): Check summary_uid.
16796         (symtab_insertion): Check summary_uid.
16798 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16800         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16801         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16802         bmaskn instruction.
16803         (arc_dwarf_register_span): Remove enum keyword.
16804         (compact_memory_operand_p): New function.
16805         * config/arc/arc.h (reg_class): Add code density register classes.
16806         (REG_CLASS_NAMES): Likewise.
16807         (REG_CLASS_CONTENTS): Likewise.
16808         * config/arc/arc.md (*movqi_insn): Add code density instructions.
16809         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16810         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16811         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16812         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16813         constraints.
16814         (h, Rcd, Rsd, Rzd): New register constraints.
16815         (T): Use compact_memory_operand_p function.
16816         * config/arc/predicates.md (compact_load_memory_operand): Remove.
16818 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16820         * config/sh/sh.md (*negnegt, *movtt): Remove.
16822 2016-05-02  Marek Polacek  <polacek@redhat.com>
16823             Tom de Vries  <tom@codesourcery.com>
16825         PR tree-optimization/70700
16826         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16827         bigger than FIRST_REF_NODE.
16829 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16831         PR target/52898
16832         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16833         TARGET_CMPEQDI_T.
16834         (prepare_cbranch_operands): Don't use scratch register.  Assume that
16835         function is used when pseudos can be created.
16836         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
16837         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16838         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16839         define_expand.  Allow it only when pseudos can be created.
16840         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16842 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
16844         * config/i386/constraints.md (BC): Only allow -1 operands.
16845         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16846         Add "enabled" attribute.  Update XI mode attribute calculation.
16847         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16848         (*movoi_internal_avx): Update XI mode attribute calculation.
16849         (*movti_internal): Ditto.
16851 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16853         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16854         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16856 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16858         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16859         statement on instruction code.  Remove trailing spaces.
16860         (altivec_expand_stv_builtin): Likewise.
16862 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16864         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16865         (TARGET_FPU_DOUBLE): Simplify.
16866         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16867         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16868         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16869         with 'TARGET_FPU_DOUBLE'.
16870         * config/sh/sh.md: Likewise.
16872 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
16874         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16875         SH_DIV_STR_FOR_SIZE): Remove.
16876         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16877         SH_DIV_STR_FOR_SIZE): Remove.
16879 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16881         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16882         logical_reg_operand): Delete.
16883         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16884         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16885         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16886         match_operand and match_test.
16887         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
16888         variables on their first use.  Return bool values.
16889         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16890         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16891         arith_reg_operand for input operand.  Remove empty constraints.
16892         (xorsi3): Delete.
16893         (*xorsi3_compact): Rename to xorsi3.
16894         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16895         (*zero_extend<mode>si2_disp_mem): Update comment.
16896         (mov_nop): Delete.
16898 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16900         * config/sh/t-sh: Remove SH5 support.
16901         * config.gcc: Likewise.
16902         * configure: Likewise.
16904 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16906         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16908 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16910         * config/sh/sh.c (register_sh_passes, sh_option_override,
16911         sh_print_operand, prepare_move_operands,
16912         sh_can_follow_jump): Remove TARGET_SH1 checks.
16913         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16914         PROMOTE_MODE): Likewise.
16915         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16916         movdi): Likewise.
16918 2016-04-30  Alan Modra  <amodra@gmail.com>
16920         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16921         restoring when fixed_reg_p, but allow out-of-line or stmw save.
16922         Check for user regs later to avoid unnecessary looping over regs.
16923         Merge user reg check with non-saved reg check.  Don't force
16924         inline VR restore when static chain used.
16925         (rs6000_frame_related): Omit eh_frame info for user regs when
16926         saving.
16927         (fixed_regs_p): Delete.
16929 2016-04-30  Alan Modra  <amodra@gmail.com>
16931         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16932         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
16933         Update all uses.
16935 2016-04-30  Alan Modra  <amodra@gmail.com>
16937         PR target/69645
16938         * config/rs6000/rs6000.c (fixed_reg_p): New function.
16939         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
16940         Update all uses.
16942 2016-04-30  Alan Modra  <amodra@gmail.com>
16944         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16945         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
16946         flag_pic test for Darwin.
16948 2016-04-30  Alan Modra  <amodra@gmail.com>
16950         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16951         throw_calls_crossed.
16952         (REG_FREQ_CALLS_CROSSED): Delete.
16953         (REG_N_THROWING_CALLS_CROSSED): Delete.
16954         * regstat.c (regstat_bb_compute_ri): Don't calculate
16955         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16956         (dump_reg_info): Don't print call cross frequency.
16957         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16958         and REG_N_THROWING_CALLS_CROSSED.
16960 2016-04-30  Alan Modra  <amodra@gmail.com>
16962         * regs.h (struct reg_info_t): Delete live_length.
16963         (REG_LIVE_LENGTH): Delete macro.
16964         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16965         local_live, local_processed and local_live_last_luid params.
16966         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
16967         Formatting fixes.
16968         (regstat_compute_ri): Adjust for above.  Don't set
16969         REG_LIVE_LENGTH.
16970         (dump_reg_info): Don't print live length.
16971         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16972         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
16973         Localize loop_depth var.
16975 2016-04-30  Alan Modra  <amodra@gmail.com>
16977         * ira.c (enum valid_equiv): New.
16978         (validate_equiv_mem): Return enum.
16979         (update_equiv_mem): Create replacement in more cases.
16980         (add_store_equivs): Update validate_equiv_mem call.
16982 2016-04-30  Alan Modra  <amodra@gmail.com>
16984         * ira.c (combine_and_move_insns): Rather than scanning insns,
16985         use DF infrastucture to find use and def insns.
16987 2016-04-30  Alan Modra  <amodra@gmail.com>
16989         ira.c (combine_and_move_insns): Move invariant conditions..
16990         (ira.c): ..to here.  Call combine_and_move_insns before
16991         add_store_equivs.  Call grow_reg_equivs later.  Allocate
16992         req_equiv later using max_reg_num() rather than global max_regno.
16993         (contains_replace_regs): Delete.
16994         (add_store_equivs): Remove contains_replace_regs test.
16996 2016-04-30  Alan Modra  <amodra@gmail.com>
16998         * ira.c (struct equiv_mem_data): New.
16999         (equiv_mem, equiv_mem_modified): Delete static vars.
17000         (validate_equiv_mem_from_store): Use "data" param to communicate..
17001         (validate_equiv_mem): ..from here.
17003 2016-04-30  Alan Modra  <amodra@gmail.com>
17005         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17006         split out from..
17007         (update_reg_equivs): ..here.  Move allocation and freeing of
17008         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17009         end_alias_analysis to..
17010         (ira): ..here.
17012 2016-04-30  Alan Modra  <amodra@gmail.com>
17014         * ira.c (pdx_subregs): Delete.
17015         (struct equivalence): Add pdx_subregs field.
17016         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
17017         pdx_subregs access.
17018         (update_equiv_regs): Don't create or free pdx_subregs.  Update
17019         pdx_subregs access.
17021 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17023         * config/rs6000/altivec.h: Change definitions of vec_xl and
17024         vec_xst.
17025         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17026         (LD_ELEMREV_V2DI): New.
17027         (LD_ELEMREV_V4SF): New.
17028         (LD_ELEMREV_V4SI): New.
17029         (LD_ELEMREV_V8HI): New.
17030         (LD_ELEMREV_V16QI): New.
17031         (ST_ELEMREV_V2DF): New.
17032         (ST_ELEMREV_V2DI): New.
17033         (ST_ELEMREV_V4SF): New.
17034         (ST_ELEMREV_V4SI): New.
17035         (ST_ELEMREV_V8HI): New.
17036         (ST_ELEMREV_V16QI): New.
17037         (XL): New.
17038         (XST): New.
17039         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17040         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17041         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17042         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17043         (altivec_expand_builtin): Add handling for
17044         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17045         (rs6000_invalid_builtin): Add error-checking for
17046         RS6000_BTM_P9_VECTOR.
17047         (altivec_init_builtins): Define builtins used to implement vec_xl
17048         and vec_xst.
17049         (rs6000_builtin_mask_names): Define power9-vector.
17050         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17051         (RS6000_BTM_P9_VECTOR): Define.
17052         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17053         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17054         (vsx_ld_elemrev_v2df): Likewise.
17055         (vsx_ld_elemrev_v4sf): Likewise.
17056         (vsx_ld_elemrev_v4si): Likewise.
17057         (vsx_ld_elemrev_v8hi): Likewise.
17058         (vsx_ld_elemrev_v16qi): Likewise.
17059         (vsx_st_elemrev_v2df): Likewise.
17060         (vsx_st_elemrev_v2di): Likewise.
17061         (vsx_st_elemrev_v4sf): Likewise.
17062         (vsx_st_elemrev_v4si): Likewise.
17063         (vsx_st_elemrev_v8hi): Likewise.
17064         (vsx_st_elemrev_v16qi): Likewise.
17065         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
17066         grammar.
17068 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
17070         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17071         out into ...
17072         (simplify_control_stmt_condition_1): ... here.  Recurse into
17073         BIT_AND_EXPRs and BIT_IOR_EXPRs.
17075 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
17077         PR target/69810
17078         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17079         (zero_extendqi<mode>2_dot): Revert earlier conversion from
17080         define_insn_and_split to define_insn.
17081         (zero_extendqi<mode>2_dot2): Same.
17082         (extendqi<mode>2_dot): Same.
17083         (extendqi<mode>2_dot2): Same.
17085 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17087         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17088         (probe_stack): New expander.
17089         (probe_stack_<mode>): New insn pattern.
17091 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17093         * config/i386/i386.md
17094         (operations with memory inputs setting flags peephole2):
17095         Remove uneeded REG_P checks.  Cleanup pattern generation.
17097 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
17099         * tree-vect-loop.c (vect_transform_loop): Fix
17100         nb_iterations_upper_bound computation for vectorized loop.
17102 2016-04-29  Marek Polacek  <polacek@redhat.com>
17103             Jakub Jelinek  <jakub@redhat.com>
17105         PR sanitizer/70342
17106         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17107         TARGET_EXPR_SLOT as a base.
17109 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
17111         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17112         with 'rCm2' constraints to limit possible immediate size.
17113         (*load_zeroextendqisi_update): Likewise.
17114         (*load_signextendqisi_update): Likewise.
17115         (*loadhi_update): Likewise.
17116         (*load_zeroextendhisi_update): Likewise.
17117         (*load_signextendhisi_update): Likewise.
17118         (*loadsi_update): Likewise.
17119         (*loadsf_update): Likewise.
17121 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17123         * config/i386/predicates.md (constm1_operand): Fix comparison.
17125 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
17127         * testsuite/gcc.target/arc/ieee_eq.c: New test.
17129 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
17131         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17132         remaining SH5 related settings.
17133         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17134         shmedia_prepare_call_address): Delete.
17135         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17136         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17137         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17138         UNSUPPORTED_SH2A): Remove m5 checks.
17139         (sh_divide_strategy_e): Remove SH5 division strategies.
17140         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17141         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17143 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17145         * config/s390/s390.c (s390_rtx_costs): Update documentation.
17147 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17149         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17150         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17151         Change lder to ldr.
17152         * config/s390/vector.md ("mov<mode>"): Likewise.
17154 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
17156         * config/s390/constraints.md ("U", "W"): Invoke
17157         s390_mem_constraint with "ZR" and "ZT".
17158         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17159         addresses when using LRA.  Accept also short displacements for S
17160         and T constraints.  Do not check for long displacement target for
17161         S and T constraints.
17162         (s390_mem_constraint): Remove handling of U and W constraints.
17163         * config/s390/s390.md (various patterns): Remove the short
17164         displacement constraints (Q and R) if a long displacement
17165         constraint is present.  Add longdisp as required CPU capability.
17166         * config/s390/vector.md: Likewise.
17167         * config/s390/vx-builtins.md: Likewise.
17169 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17171         PR target/60040
17172         * reload1.c (reload): Call finish_spills before
17173         restarting reload loop. Skip select_reload_regs
17174         if update_eliminables_and_spill returns true.
17176 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
17178         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17179         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17180         (umulhisi3_imm): Update predicates and constraint letters.
17181         (umulhisi3_reg): Declare instruction as commutative.
17182         * config/arc/constraints.md (J12, J16): New constraints.
17183         * config/arc/predicates.md (short_unsigned_const_operand): New
17184         predicate.
17185         (arc_short_operand): Likewise.
17186         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17188 2016-04-29  Richard Biener  <rguenther@suse.de>
17190         PR tree-optimization/13962
17191         PR tree-optimization/65686
17192         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17193         * tree-ssa-alias.c (ptrs_compare_unequal): New function
17194         using PTA to compare pointers.
17195         * match.pd: Add pattern for pointer equality compare simplification
17196         using ptrs_compare_unequal.
17198 2016-04-29  Richard Biener  <rguenther@suse.de>
17200         * stor-layout.c (layout_type): Do not build a pointer-to-element
17201         type for arrays.
17203 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17205         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17206         Use SWI mode iterator.  Use general_reg_operand predicate.
17207         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17208         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
17209         predicates.
17211 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
17213         PR middle-end/70843
17214         * fold-const.c (operand_equal_p): Don't verify hash value equality
17215         if arg0 == arg1.
17216         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
17217         and OMP_CLAUSE.
17219 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17221         PR target/70858
17222         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17223         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17224         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17225         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17226         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17228 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17230         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17231         to info.  Don't initialize separate fields to 0.  Clean up
17232         formatting a bit.
17234 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17236         * config/i386/i386.md (peephole2s for operations with memory inputs):
17237         Use SWI mode iterator.
17238         (peephole2s for operations with memory outputs): Ditto.
17239         Do not check for stack checking probe.
17241         (probe_stack): Remove expander.
17243 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17244             Andrew Burgess  <andrew.burgess@embecosm.com>
17246         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17247         operands as 32-bits.
17249 2016-04-28  Jason Merrill  <jason@redhat.com>
17251         * gdbinit.in: Skip line-map.h.
17253 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17254             Andrew Burgess  <andrew.burgess@embecosm.com>
17256         * config/arc/arc.c (arc_conditional_register_usage): Take
17257         TARGET_RRQ_CLASS into account.
17258         (arc_print_operand): Support printing 'p' and 's' operands.
17259         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
17260         as 0.
17261         (TARGET_RRQ_CLASS): Define.
17262         (IS_POWEROF2_OR_0_P): Define.
17263         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
17264         alternatives.
17265         (*tst_movb): New define_insn.
17266         (*tst): Avoid recognition if it could prevent '*tst_movb'
17267         combination; replace c/CnL with c/Chs alternative.
17268         (*tst_bitfield_tst): New define_insn.
17269         (*tst_bitfield_asr): New define_insn.
17270         (*tst_bitfield): New define_insn.
17271         (andsi3_i): Add Rrq variant.
17272         (extzv): New define_expand.
17273         (insv): New define_expand.
17274         (*insv_i): New define_insn.
17275         (*movb): New define_insn.
17276         (*movb_signed): New define_insn.
17277         (*movb_high): New define_insn.
17278         (*movb_high_signed): New define_insn.
17279         (*movb_high_signed + 1): New define_split pattern.
17280         (*mrgb): New define_insn.
17281         (*mrgb + 1): New define_peephole2 pattern.
17282         (*mrgb + 2): New define_peephole2 pattern.
17283         * config/arc/arc.opt (mbitops): New option for nps400, uses
17284         TARGET_NPS_BITOPS_DEFAULT.
17285         * config/arc/constraints.md (q): Make register class conditional.
17286         (Rrq): New register constraint.
17287         (Chs): New constraint.
17288         (Clo): New constraint.
17289         (Chi): New constraint.
17290         (Cbf): New constraint.
17291         (Cbn): New constraint.
17292         (C18): New constraint.
17293         (Cbi): New constraint.
17295 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17297         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
17298         dst->popcount.
17299         (bitmap_intersection_of_preds): Ditto.
17300         (bitmap_union_of_succs): Ditto.
17301         (bitmap_union_of_preds): Ditto.
17302         * sbitmap.c (do_popcount): Delete.
17303         (BITMAP_DEBUGGING): Delete.
17304         (sbitmap_verify_popcount): Delete.
17305         (sbitmap_alloc): Don't initialize the popcount field.
17306         (sbitmap_alloc_with_popcount): Delete.
17307         (sbitmap_resize): Don't resize the popcount array.
17308         (sbitmap_vector_alloc): Don't initialize the popcount field.
17309         (bitmap_copy): Don't copy the popcount array.
17310         (bitmap_clear): Don't clear the popcount array.
17311         (bitmap_clear): Delete the popcount array handling.
17312         (bitmap_ior_and_compl): Delete the popcount assert.
17313         (bitmap_not): Ditto.
17314         (bitmap_and_compl): Ditto.
17315         (bitmap_and): Delete the popcount array handling.
17316         (bitmap_xor): Ditto.
17317         (bitmap_ior): Ditto.
17318         (bitmap_or_and): Delete the popcount assert.
17319         (bitmap_and_or): Ditto.
17320         (popcount_table): Delete.
17321         (sbitmap_elt_popcount): Delete.
17322         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
17323         (bitmap_set_bit): Delete the popcount assert.
17324         (bitmap_clear_bit): Ditto.
17325         (sbitmap_free): Don't free the popcount array.
17326         (sbitmap_alloc_with_popcount): Delete declaration.
17327         (sbitmap_popcount): Ditto.
17329 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17330             Andrew Burgess  <andrew.burgess@embecosm.com>
17332         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
17333         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
17334         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
17335         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
17336         * config/arc/arc.opt (mcmem): New option.
17337         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
17338         supply length for r/m alternative.
17339         (*extendqisi2_ac): Likewise.
17340         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
17341         r/Uex alternative.
17342         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
17343         (movhi_insn): Likewise.
17344         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
17345         (*zero_extendqihi2_i): Add r/Ucm alternative.
17346         (*zero_extendqisi2_ac): Likewise.
17347         (*zero_extendhisi2_i): Likewise.
17348         * config/arc/constraints.md (Uex): New memory constraint.
17349         (Ucm): New define_constraint.
17350         * config/arc/predicates.md (long_immediate_loadstore_operand):
17351         Return 0 for MEM with cmem_address address.
17352         (cmem_address_0): New predicates.
17353         (cmem_address_1): Likewise.
17354         (cmem_address_2): Likewise.
17355         (cmem_address): Likewise.
17357 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17359         * config/rs6000/rs6000.c (machine_function): Rename
17360         insn_chain_scanned_p to spe_insn_chain_scanned_p.
17361         (rs6000_stack_info): Adjust.
17363 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17364             Andrew Burgess  <andrew.burgess@embecosm.com>
17366         * config/arc/constraints.md (Usd): Convert to define_constraint.
17367         (Us<): Likewise.
17368         (Us>): Likewise.
17370 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17372         PR target/70821
17373         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
17374         Add new peephole2 where the first insn is *mov<mode>_or instead of
17375         *mov<mode>_internal.
17377 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
17379         * tracer.c (bb_seen): Make static.
17381 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
17383         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
17384         support, setup defaults.
17385         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
17386         * config/arc/arc.c (arc_init): Add NPS400 support.
17387         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
17388         (TARGET_ARC700): NPS400 is also an ARC700.
17389         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
17391 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17393         PR target/70668
17394         * config/nds32/nds32.md (casesi): Don't access the operands array
17395         out of bounds.
17397 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17399         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
17400         (or $-1,reg peephole2): Ditto.
17401         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17403 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17405         * doc/extend.texi (Common Function Attributes) [optimize]:
17406         Discourage use of the optimize attribute.
17408 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
17410         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17411         special case builtin.
17412         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17413         ALTIVEC_BUILTIN_VEC_ADDE.
17414         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17415         support for ALTIVEC_BUILTIN_VEC_ADDE.
17416         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17417         for __builtin_vec_adde.
17419 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17421         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17422         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17424 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17426         PR testsuite/70595
17427         * doc/sourcebuild.texi (Effective-Target Keywords, Other
17428         attributes): Document cilkplus_runtime.
17430 2016-04-28  Martin Jambor  <mjambor@suse.cz>
17432         * tree-cfg.c (verify_expr): Verify that local declarations belong to
17433         this function.  Call verify_expr on MEM_REFs and bases of other
17434         handled_components.
17436 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17438         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17439         for WORD_REGISTER_OPERATIONS to runtime check.
17441 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17443         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17445 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17447         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17448         big-endian compilation.
17449         * config/arc/arc.md (addf3): Likewise.
17450         (subdf3): Likewise.
17451         (muldf3): Likewise.
17453 2016-04-28  Richard Biener  <rguenther@suse.de>
17455         PR tree-optimization/70840
17456         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17457         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17458         Mark x * pow(x,c) -> pow(x,c+1) commutative.
17459         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17461 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17463         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17464         and explain why in a comment.
17466 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17468         * config/arc/arc.md (cpu_facility): Add fpx variant.
17469         (subdf3): Prohibit use reverse sub when assist operations option
17470         is enabled.
17471         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17472         instructions only when FPX is enabled.
17473         * testsuite/gcc.target/arc/trsub.c: New test.
17475 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17477         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17478         mult_operator when calculating "type" attribute.
17479         (*fop_<mode>_1_i387): Ditto.
17480         (*fop_xf_1_i387): Ditto.
17481         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17482         Use std::swap to swap operands.  Use RTL expressions to generate
17483         converted pattern.
17485 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17486             Joern Rennecke  <joern.rennecke@embecosm.com>
17488         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17489         declaration.
17490         (emit_pic_move): Remove.
17491         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17492         * config/arc/arc.c (emit_pic_move): Removed.
17493         (TARGET_HAVE_TLS): Define.
17494         (arc_conditional_register_usage): Test for arc_tp_regno.
17495         (arc_print_operand, arc_print_operand_address): Handle TLS
17496         unspecs.
17497         (arc_needs_pcl_p): New function.
17498         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17499         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17500         (arc_raw_symbolic_reference_mentioned_p): Likewise.
17501         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17502         (arc_legitimize_tls_address): Likewise.
17503         (DTPOFF_ZERO_SYM): Define.
17504         (arc_legitimize_pic_address): Make it static, handle TLS cases.
17505         (arc_output_pic_addr_const): Print TLS unspecs.
17506         (prepare_pic_move): New function, replaces emit_pic_move.
17507         (arc_legitimate_constant_p): Handle TLS unspecs.
17508         (arc_legitimate_address_p): Likewise.
17509         (arc_rewrite_small_data_p): Use assert for TLS constants.
17510         (prepare_move_operands): Use prepare_pic_move.
17511         (arc_legitimize_address): Legitimize tls addresses.
17512         (arc_epilogue_uses): Check for arc_tp_regno.
17513         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17514         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17515         Define.
17516         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17517         Likewise.
17518         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17519         %(arc_tls_extra_start_spec).
17520         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17521         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17522         (EH_USES): Define.
17523         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17524         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17525         (UNSPEC_TLS_OFF): Add.
17526         (R10_REG): Define.
17527         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17528         (get_thread_pointersi): New patterns.
17529         * config/arc/arc.opt (mtp-regno): New option.
17530         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17531         (move_dest_operand): Likewise.
17532         * configure: Regenerate.
17533         * configure.ac: Add arc*-*-* case to test for tls.
17534         * doc/invoke.texi (ARC options): Document mtp-regno.
17536 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17538         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17539         the new ARC HS SIMD instructions.
17540         (arc_preferred_simd_mode): New function.
17541         (arc_autovectorize_vector_sizes): Likewise.
17542         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17543         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17544         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17545         (arc_init_builtins): Add new SIMD builtin types.
17546         (arc_split_move): Handle 64 bit vector moves.
17547         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17548         (TARGET_PLUS_QMACW): Define.
17549         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17550         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17551         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17552         (VSUBADD4H): New builtins.
17553         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17554         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17556 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
17557             Matthias Klose  <doko@debian.org>
17559         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17561 2016-04-28  Richard Biener  <rguenther@suse.de>
17563         PR middle-end/70777
17564         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17565         canonicalization.
17567 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
17569         * common/config/sh/sh-common.c: Remove SH5 support.
17570         * config/sh/constraints.md: Likewise.
17571         * config/sh/config/sh/elf.h: Likewise.
17572         * config/sh/linux.h: Likewise.
17573         * config/sh/netbsd-elf.h: Likewise.
17574         * config/sh/predicates.md: Likewise.
17575         * config/sh/sh-c.c: Likewise.
17576         * config/sh/sh-protos.h: Likewise.
17577         * config/sh/sh.c: Likewise.
17578         * config/sh/sh.h: Likewise.
17579         * config/sh/sh.md: Likewise.
17580         * config/sh/sh.opt: Likewise.
17581         * config/sh/sync.md: Likewise.
17582         * config/sh/sh64.h: Delete.
17583         * config/sh/shmedia.h: Likewise.
17584         * config/sh/shmedia.md: Likewise.
17585         * config/sh/sshmedia.h: Likewise.
17586         * config/sh/t-netbsd-sh5-64: Likewise.
17587         * config/sh/t-sh64: Likewise.
17588         * config/sh/ushmedia.h: Likewise.
17590 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17592         * config/i386/i386.md (sign_extend to memory peephole2s): Use
17593         general_reg_operand instead of register_operand predicate.
17595 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17597         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17599 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
17601         * match.pd (A - B > A, A + B < A): New transformations.
17603 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
17605         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17606         which defaults to true.  Emit an outer pair of parentheses only if
17607         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
17608         don't emit parentheses for the right-hand operand.
17610 2016-04-27  Jeff Law  <law@redhat.com>
17612         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17614 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17616         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17617         (altivec_lvx_<mode>_internal): Document.
17618         (altivec_lvx_<mode>_2op): New define_insn.
17619         (altivec_lvx_<mode>_1op): Likewise.
17620         (altivec_lvx_<mode>_2op_si): Likewise.
17621         (altivec_lvx_<mode>_1op_si): Likewise.
17622         (altivec_stvx_<mode>): Remove.
17623         (altivec_stvx_<mode>_internal): Document.
17624         (altivec_stvx_<mode>_2op): New define_insn.
17625         (altivec_stvx_<mode>_1op): Likewise.
17626         (altivec_stvx_<mode>_2op_si): Likewise.
17627         (altivec_stvx_<mode>_1op_si): Likewise.
17628         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17629         Expand vec_ld and vec_st during parsing.
17630         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17631         changes.
17632         (altivec_expand_stvx_be): Likewise.
17633         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17634         address-masking behavior in RTL.
17635         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17636         address-masking behavior in RTL.
17637         (altivec_expand_builtin): Change builtin code arguments for calls
17638         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17639         (insn_is_swappable_p): Avoid incorrect swap optimization in the
17640         presence of lvx/stvx patterns.
17641         (alignment_with_canonical_addr): New function.
17642         (alignment_mask): Likewise.
17643         (find_alignment_op): Likewise.
17644         (recombine_lvx_pattern): Likewise.
17645         (recombine_stvx_pattern): Likewise.
17646         (recombine_lvx_stvx_patterns): Likewise.
17647         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17648         stvx patterns from expand.
17649         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17650         expansions.
17651         (vector_altivec_store_<mode>): Likewise.
17653 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
17655         * config/aarch64/aarch64.md
17656         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17657         remove the "fp" attributes.
17658         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17659         add the "simd" attributes.
17660         (*movdf_aarch64): Likewise.
17661         (*movtf_aarch64): Remove the "fp" attributes.
17662         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17663         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17665 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17667         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17668         rtx to rtx_code_label *.
17669         * rtl.h (maybe_set_first_label_num): Likewise.
17671 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17673         * df-core.c (df_add_problem): Make the problem param be const.
17674         (df_remove_problem): Make local "problem" be const.
17675         * df-problems.c (problem_RD): Make const.
17676         (problem_LR): Likewise.
17677         (problem_LIVE): Likewise.
17678         (problem_MIR): Likewise.
17679         (problem_CHAIN): Likewise.
17680         (problem_WORD_LR): Likewise.
17681         (problem_NOTE): Likewise.
17682         (problem_MD): Likewise.
17683         * df-scan.c (problem_SCAN): Likewise.
17684         * df.h (struct df_problem): Make field "dependent_problem" be
17685         const.
17686         (struct dataflow): Likewise for field "problem".
17687         (df_add_problem): Make param const.
17689 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17691         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17692         inter-unit moves to/from vector registers are enabled.  Do not disable
17693         for TARGET_MMX.
17695 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17697         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17698         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17699         #define to...
17700         (enum df_problem_id): ...this new enum.
17701         (struct df_problem): Convert field "id" from "int" to
17702         enum df_problem_id.
17704 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17706         * rtl.def: Update comment for "things in the instruction chain" to
17707         reflect the removal of the leading "i" field for INSN_UID in
17708         r210360.  Fix bogus apostrophe.
17710 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17712         * config/i386/i386.md
17713         (lea arith with mem operand + setcc peephole2): Set operator mode.
17715 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
17717         PR target/70155
17718         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17719         (dimode_scalar_to_vector_candidate_p): This.
17720         (timode_scalar_to_vector_candidate_p): New function.
17721         (scalar_to_vector_candidate_p): Likewise.
17722         (timode_check_non_convertible_regs): Likewise.
17723         (timode_remove_non_convertible_regs): Likewise.
17724         (remove_non_convertible_regs): Likewise.
17725         (remove_non_convertible_regs): Renamed to ...
17726         (dimode_remove_non_convertible_regs): This.
17727         (scalar_chain::~scalar_chain): Make it virtual.
17728         (scalar_chain::compute_convert_gain): Make it pure virtual.
17729         (scalar_chain::mark_dual_mode_def): Likewise.
17730         (scalar_chain::convert_insn): Likewise.
17731         (scalar_chain::convert_registers): Likewise.
17732         (scalar_chain::add_to_queue): Make it protected.
17733         (scalar_chain::emit_conversion_insns): Likewise.
17734         (scalar_chain::replace_with_subreg): Likewise.
17735         (scalar_chain::replace_with_subreg_in_insn): Likewise.
17736         (scalar_chain::convert_op): Likewise.
17737         (scalar_chain::convert_reg): Likewise.
17738         (scalar_chain::make_vector_copies): Likewise.
17739         (scalar_chain::convert_registers): New pure virtual function.
17740         (class dimode_scalar_chain): New class.
17741         (class timode_scalar_chain): Likewise.
17742         (scalar_chain::mark_dual_mode_def): Renamed to ...
17743         (dimode_scalar_chain::mark_dual_mode_def): This.
17744         (timode_scalar_chain::mark_dual_mode_def): New function.
17745         (timode_scalar_chain::convert_insn): Likewise.
17746         (dimode_scalar_chain::convert_registers): Likewise.
17747         (scalar_chain::compute_convert_gain): Renamed to ...
17748         (dimode_scalar_chain::compute_convert_gain): This.
17749         (scalar_chain::replace_with_subreg): Renamed to ...
17750         (dimode_scalar_chain::replace_with_subreg): This.
17751         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17752         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17753         (scalar_chain::make_vector_copies): Renamed to ...
17754         (dimode_scalar_chain::make_vector_copies): This.
17755         (scalar_chain::convert_reg): Renamed to ...
17756         (dimode_scalar_chain::convert_reg ): This.
17757         (scalar_chain::convert_op): Renamed to ...
17758         (dimode_scalar_chain::convert_op): This.
17759         (scalar_chain::convert_insn): Renamed to ...
17760         (dimode_scalar_chain::convert_insn): This.
17761         (scalar_chain::convert): Call convert_registers.
17762         (convert_scalars_to_vector): Change to scalar_chain pointer to
17763         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17764         in 32-bit mode.  Delete scalar_chain pointer.  Call
17765         free_dominance_info in 64-bit mode.
17766         (pass_stv::gate): Remove TARGET_64BIT check.
17767         (ix86_option_override): Put the 64-bit STV pass before the CSE
17768         pass.
17770 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
17772         * dwarf2out.h (struct dw_loc_descr_node): Remove the
17773         dw_loc_frame_offset field.
17774         * dwarf2out.c (new_loc_descr): Likewise.
17775         (resolve_args_picking_1): Turn the VISITED hash set into a
17776         FRAME_OFFSET hash map. Use it to associate a frame offset to
17777         visited nodes. Remove uses of the CHECKING_P macro.
17778         (resolve_args_picking): Update call to resolve_args_picking_1.
17780 2016-04-27  Martin Liska  <mliska@suse.cz>
17782         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17783         (free_loop_data): Release vuses of groups.
17785 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
17787         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17788         instead of redundant use_id and boolean have_use_for.
17789         (struct iv_use): Change sub_id into group_id.  Remove field next.
17790         Move fields: related_cands, n_map_members, cost_map and selected
17791         to ...
17792         (struct iv_group): ... here.  New structure.
17793         (struct iv_common_cand): Use structure declaration directly.
17794         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17795         (MAX_CONSIDERED_USES): Rename macro to ...
17796         (MAX_CONSIDERED_GROUPS): ... here.
17797         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17798         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17799         (dump_uses): Rename to ...
17800         (dump_groups): ... here.  Update all uses.
17801         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17802         (find_induction_variables): Refactor format of dump information.
17803         (record_sub_use): Delete.
17804         (record_use): Update all uses.
17805         (record_group): New function.
17806         (record_group_use, find_interesting_uses_op): Call above functions.
17807         Update all uses.
17808         (find_interesting_uses_cond): Ditto.
17809         (group_compare_offset): New function.
17810         (split_all_small_groups): Rename to ...
17811         (split_small_address_groups_p): ... here.  Update all uses.
17812         (split_address_groups):  Update all uses.
17813         (find_interesting_uses): Refactor format of dump information.
17814         (add_candidate_1): Update all uses.  Remove redundant check on iv,
17815         base and step.
17816         (add_candidate, record_common_cand): Remove redundant assert.
17817         (add_iv_candidate_for_biv): Update use.
17818         (add_iv_candidate_derived_from_uses): Update all uses.
17819         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17820         (alloc_use_cost_map): Ditto.
17821         (set_use_iv_cost, get_use_iv_cost): Rename to ...
17822         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
17823         (determine_use_iv_cost_generic): Ditto.
17824         (determine_group_iv_cost_generic): Ditto.
17825         (determine_use_iv_cost_address): Ditto.
17826         (determine_group_iv_cost_address): Ditto.
17827         (determine_use_iv_cost_condition): Ditto.
17828         (determine_group_iv_cost_cond): Ditto.
17829         (determine_use_iv_cost): Ditto.
17830         (determine_group_iv_cost): Ditto.
17831         (set_autoinc_for_original_candidates): Update all uses.
17832         (find_iv_candidates): Update all uses.  Refactor dump information.
17833         (determine_use_iv_costs): Ditto.
17834         (determine_iv_costs): Ditto.
17835         (iv_ca_cand_for_use): Rename to ...
17836         (iv_ca_cand_for_group): ... here.  Update all uses.
17837         (iv_ca_add_use, iv_ca_add_group): Ditto.
17838         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17839         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17840         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17841         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17842         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17843         (create_new_iv, adjust_iv_update_pos): Ditto.
17844         (rewrite_use_address): Delete.
17845         (rewrite_use_address_1): Rename to ...
17846         (rewrite_use_address): ... here.
17847         (rewrite_use_compare): Update all uses.
17848         (rewrite_use): Delete.
17849         (rewrite_uses): Rename to ...
17850         (rewrite_groups): ... here.  Update all uses.
17851         (remove_unused_ivs, free_loop_data): Update all uses.
17852         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17854 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17856         * rtlanal.c (nonzero_bits1): Convert preprocessor check
17857         for WORD_REGISTER_OPERATIONS to runtime check.
17859 2016-04-27  Richard Biener  <rguenther@suse.de>
17861         PR ipa/70760
17862         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17863         aggregate_value_p to determine if a function result is
17864         returned by reference.
17865         (ipa_pta_execute): Functions having their address taken are
17866         not automatically nonlocal.
17868 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17870         PR sanitizer/70683
17871         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17872         * fold-const.c (operand_equal_p): If flag_checking and
17873         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17874         and if it returns non-zero, assert iterative_hash_expr on both
17875         args is the same.
17877 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17879         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17881 2016-04-27  Nick Clifton  <nickc@redhat.com>
17883         PR middle-end/49889
17884         * varasm.c (merge_weak): Generate an error if an attempt is made
17885         to convert a non-weak static function into a weak, public function.
17887 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17889         * params.def (MAX_PARTITION_SIZE): New param.
17890         * doc/invoke.texi: Document lto-max-partition.
17892 2016-04-27  Richard Biener  <rguenther@suse.de>
17894         PR ipa/70785
17895         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17896         function cummulating used_from_other_partition, externally_visible
17897         and force_output from aliases.
17898         (refered_from_nonlocal_var): Likewise.
17899         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17900         node flags properly.
17902 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17904         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17905         (-Wmemset-elt-size): New item.
17907 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17909         PR ada/70759
17910         * stor-layout.h (internal_reference_types): Delete.
17911         * stor-layout.c (reference_types_internal): Likewise.
17912         (internal_reference_types): Likewise.
17913         (layout_type) <REFERENCE_TYPE>: Adjust.
17915 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17917         PR sanitizer/70683
17918         * tree.h (inchash::add_expr): Add FLAGS argument.
17919         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
17920         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
17921         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17922         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
17923         if swap_tree_comparison (code) is smaller than code, hash that
17924         and arguments in the other order.  Hash CONVERT_EXPR the same
17925         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17926         of ADDR_EXPR of decl as the decl itself.  Add or remove
17927         OEP_ADDRESS_OF from recursive flags as needed.  For
17928         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17929         operands commutatively and only the third one normally.
17930         For internal CALL_EXPR hash in CALL_EXPR_IFN.
17932 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17934         * config/rtems.h (LIB_SPEC): Add -latomic.
17936 2016-04-27  Joel Sherrill  <joel@rtems.org>
17938         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17939         xilink.ld and flags not relevant to RTEMS.
17941 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17943         * toplev.c (backend_init_target): Avoid calling init_reload when using
17944         LRA.
17946 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
17948         * reorg.c (try_merge_delay_insns): Declare i and j inside the
17949         for loops rather than one for the whole function.
17951 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17953         * match.pd (X + CST CMP X): New transformation.
17955 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17957         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17958         * fold-const.c (fold_binary_loc): Remove 2 transformations
17959         superseded by match.pd.
17960         * match.pd (x+x -> x*2): Generalize to integers.
17962 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
17964         * config/i386/i386.md (operation on memory peephole): Duplicate an
17965         existing peephole and adapt it to match lea rather than an operation
17966         that clobbers CC.
17968         PR rtl-optimization/57193
17969         * opts.c (default_options_table): Add OPT_frename_registers at -O2
17970         and above.
17971         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17973 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17975         * tree-if-conv.c (any_pred_load_store): New static variable.
17976         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
17977         any_pred_load_store instead of and_mask_load_store.
17978         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
17979         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
17980         (combine_blocks, tree_if_conversion): Ditto.
17982 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17984         PR tree-optimization/70771
17985         PR tree-optimization/70775
17986         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
17987         virtual PHI nodes.  Delete parameter.
17988         (if_convertible_loop_p_1): Delete argument to above function.
17989         (predicate_all_scalar_phis): Delete code handling single-argument
17990         PHIs.
17991         (tree_if_conversion): Mark and update virtual SSA.
17993 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17995         PR target/61821
17996         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
17997         (x86_elf_aligned_common): Rename to ...
17998         (x86_elf_aligned_decl_common): ... this.
17999         Add decl arg.  Switch to .lbss for largecomm object.  Use
18000         LARGECOMM_SECTION_ASM_OP.
18001         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18002         renaming.
18003         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18004         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18005         Pass new decl arg.
18006         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18007         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18009 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18011         PR target/59407
18012         * config/i386/i386.c (SECTION_LARGE): Define.
18013         (x86_64_elf_select_section): Set it for large data/bss sections.
18014         Only clear SECTION_WRITE for .lrodata.
18015         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18016         data/bss sections.
18017         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18018         * varasm.c (default_elf_asm_named_section): Grow flagchars.
18019         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18020         SECTION_MACH_DEP.
18021         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18022         * doc/tm.texi: Regenerate.
18024 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
18026         PR bootstrap/70704
18027         * configure.ac (--enable-checking): Document extra flag, for
18028         non-release builds default to --enable-checking=yes,extra.
18029         If misc checking and extra checking, define CHECKING_P to 2 instead
18030         of 1.
18031         * common.opt (fchecking=): Add.
18032         * doc/invoke.texi (-fchecking=): Document.
18033         * doc/install.texi: Document --enable-checking changes.
18034         * configure: Regenerated.
18035         * config.in: Regenerated.
18037 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18039         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18040         attribute instead of which_alternative.
18041         * config/i386/sse.md (*mov<mode>_internal): Ditto.
18042         Use EXT_REX_SSE_REG_P where appropriate.
18044 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18046         * config/i386/predicates.md (const0_operand): Do not match
18047         const_wide_int code.
18048         (const1_operand): Ditto.
18050 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18052         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18053         for SSE constm1 operands and TARGET_AVX512VL.
18054         (*movti_internal): Ditto.
18055         (*mov<mode>_or): Use constm1_operand predicate.
18056         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18057         for SSE vector_all_ones operands and TARGET_AVX512VL.
18058         * config/i386/predicates.md (constm1_operand): New predicate.
18059         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18060         emission of constant -1 load.
18062 2016-04-25  Jason Merrill  <jason@redhat.com>
18064         * gdbinit.in: Skip is-a.h.
18066         * attribs.c (register_scoped_attributes): Fix logic.
18067         * attribs.h: Declare register_scoped_attributes.
18069 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18071         * config/rs6000/rs6000-builtin.def: Correct pasto error for
18072         stxvd2x and stxvw4x built-in functions.
18074 2016-04-25  DJ Delorie  <dj@redhat.com>
18076         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18077         (ashrhi3): Likewise.
18078         (lshrhi3): Likewise.
18080 2016-04-25  Richard Biener  <rguenther@suse.de>
18082         PR tree-optimization/70780
18083         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18084         wasn't visited yet.
18085         (compute_antic): Mark blocks with abnormal preds as visited as
18086         they have a final empty antic-in solution already.
18088 2016-04-25  Michael Collison  <michael.collison@linaro.org>
18090         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18092 2016-04-25  Michael Collison  <michael.collison@linaro.org>
18094         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18095         mode is VQI to improve mixed mode vectorization.
18096         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18097         define_insn to match low half of signed vaddw.
18098         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18099         define_insn to match high half of signed vaddw.
18100         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18101         define_insn to match low half of unsigned vaddw.
18102         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18103         define_insn to match high half of unsigned vaddw.
18104         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18105         (arm_simd_check_vect_par_cnst_half_p): Likewise.
18106         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18107         for new function.
18108         (arm_simd_check_vect_par_cnst_half_p): Likewise.
18109         * config/arm/predicates.md (vect_par_constant_high): Support
18110         big endian and simplify by calling
18111         arm_simd_check_vect_par_cnst_half
18112         (vect_par_constant_low): Likewise.
18114 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18116         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18117         predicate for operand 2.
18119 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
18120             H.J. Lu  <hongjiu.lu@intel.com>
18122         * config/i386/i386-protos.h (standard_sse_constant_p): Add
18123         machine_mode argument.
18124         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18125         constm1_rtx operands.  For VOIDmode constants, get mode from
18126         pred_mode.  Check mode size if the mode is supported by ABI.
18127         (standard_sse_constant_opcode): Do not use standard_constant_p.
18128         Strictly check ABI support for all-ones operands.
18129         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18130         immediates. Update calls to standard_sse_constant_p.
18131         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18132         (ix86_rtx_costs): Ditto.
18133         * config/i386/i386.md (*movxi_internal_avx512f): Use
18134         nonimmediate_or_sse_const_operand instead of vector_move_operand.
18135         Use (v,BC) alternative instead of (v,C). Use register_operand
18136         checks instead of MEM_P.
18137         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18138         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
18139         isa attribute.  Use register_operand checks instead of MEM_P.
18140         (*movti_internal): Use nonimmediate_or_sse_const_operand for
18141         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
18142         alternative and corresponding sse2 isa attribute.
18143         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18144         to standard_sse_constant_p.
18145         (FP constant splitters): Ditto.
18146         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18147         (C): Ditto.
18148         * config/i386/predicates.md (constm1_operand): Remove.
18149         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18150         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18151         vector_all_ones_operand instead of constm1_operand.
18153 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18155         * print-rtl.c (print_rtx_insn_vec): New function.
18156         * print-rtl.h: New prototype.
18157         * store-motion.c (struct st_expr): Make avail_stores a vector.
18158         (st_expr_entry): Adjust.
18159         (free_st_expr_entry): Likewise.
18160         (print_store_motion_mems): Likewise.
18161         (find_moveable_store): Likewise.
18162         (compute_store_table): Likewise.
18163         (delete_store): Likewise.
18164         (build_store_vectors): Likewise.
18166 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18168         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18170 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18172         * vec.h (vec_safe_contains): New function.
18173         (vec::contains): Likewise.
18174         (vec::begin): Likewise.
18175         (vec::end): Likewise.
18177 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
18179         PR sanitizer/70712
18180         * cfgexpand.c (expand_stack_vars): Fix typo.
18182 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18184         * system.h (list, map, set, vector): Include conditionally.
18185         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18186         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18187         * ipa-icf.c (INCLUDE_LIST): Define.
18188         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18189         * config/sh/sh.c (INCLUDE_VECTOR): Define.
18190         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18191         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18192         * cp/logic.cc (INCLUDE_LIST): Define.
18193         * fortran/trans-common.c (INCLUDE_MAP): Define.
18195 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18197         * auto-profile.c: Remove <string.h> include.
18198         * ipa-icf-gimple.c: Remove <list> include.
18199         * diagnostic.c: Remove <new> include.
18200         * genmatch.c: Likewise.
18201         * pretty-print.c: Likewise.
18202         * toplev.c: Likewise
18203         * c/c-objc-common.c: Likewise.
18204         * cp/error.c: Likewise.
18205         * fortran/error.c: Likewise.
18207 2016-04-22  Richard Biener  <rguenther@suse.de>
18209         * lto-streamer-in.c (input_ssa_names): Do not allocate
18210         GIMPLE_NOP for all SSA names.
18211         * lto-streamer-out.c (output_ssa_names): Do not output
18212         SSA names that should have been released.
18214 2016-04-22  Richard Biener  <rguenther@suse.de>
18216         PR tree-optimization/70740
18217         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18218         VDEF.
18220 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
18222         PR target/70750
18223         * config/i386/predicates.md (call_insn_operand): Replace
18224         sibcall_memory_operand with memory_operand.
18226 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
18228         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18229         has_single_use() tests.
18230         (register_edge_assert_for_1): Likewise.
18231         (find_assert_locations_1): Check the liveness bitmap instead of
18232         checking has_single_use().
18234 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18236         PR target/70728
18237         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18238         Extract AVX-512BW constraint from AVX.
18240 2016-04-21  Richard Biener  <rguenther@suse.de>
18242         PR tree-optimization/70725
18243         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18244         for phi_convertible_by_degenerating_args.
18245         (predicate_all_scalar_phis): Handle single-argument PHIs.
18247 2016-04-21  Richard Biener  <rguenther@suse.de>
18249         PR middle-end/70747
18250         * fold-const.c (fold_comparison): Return properly typed
18251         constant boolean.
18253 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
18255         PR tree-optimization/70715
18256         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
18257         after expanding BASE using expand_simple_operations.
18259 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
18261         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
18262         New transformations.
18264 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
18266         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
18268 2016-04-20  Jan Hubicka  <jh@suse.cz>
18270         * ipa-inline.c (can_inline_edge_p): Pass caller info to
18271         ultiimate_alias_target.
18272         (update_callee_keys): Likewise.
18273         (lookup_recursive_calls): Likewise.
18274         (speculation_useful_p): Likewise.
18276 2016-04-20  Jan Hubicka  <jh@suse.cz>
18278         PR ipa/70018
18279         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
18280         (set_nothrow_flag_1): ... this; handle interposition correctly;
18281         recurse on aliases and thunks.
18282         (cgraph_node::set_nothrow_flag): New.
18283         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
18284         functions compiled with non-call exceptions that binds to current
18285         def.
18286         (propagate_nothrow): Be safe WRT interposition.
18287         * cgraph.h (set_nothrow_flag): Update prototype.
18289 2016-04-18  Jan Hubicka  <jh@suse.cz>
18291         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18292         max_loop_iterations_int.
18293         (tree_unswitch_outer_loop): Likewise.
18295 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18297         PR tree-optimization/69489
18298         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
18299         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
18300         Revise dump message.
18301         (if_convertible_bb_p): Remove check on edge count of basic block's
18302         predecessors.
18304 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18306         PR tree-optimization/56625
18307         PR tree-optimization/69489
18308         * tree-data-ref.h (DR_INNERMOST): New macro.
18309         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
18310         hashing struct innermost_loop_behavior.
18311         (ref_DR_map): Remove.
18312         (innermost_DR_map): New map.
18313         (baseref_DR_map): Revise comment.
18314         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
18315         to innermost_DR_map accroding to its innermost loop behavior.
18316         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
18317         to its innermost loop behavior.
18318         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
18319         Add initialization for innermost_DR_map.  Record memory reference
18320         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
18321         have innermost loop behavior.
18322         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
18323         innermost_DR_map.
18325 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
18327         * config/i386/i386.md (*lea<mode>_general_1): Rename from
18328         *lea_general_1.  Use explicit SWI12 mode interator.
18329         (*lea<mode>_general_2): Rename from *lea_general_2.
18330         Use explicit SWI12 mode interator.
18331         (*lea<mode>_general_3): Rename from *lea_general_3.
18332         Use explicit SWI12 mode interator.
18333         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
18334         Use explicit SWI12 mode interator.
18335         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
18336         Use explicit SWI48 mode interator.
18338 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18340         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18341         Short-cut unaligned load and store cases.  Handle all integer
18342         vector modes.
18343         (ix86_expand_vector_move_misalign): Short-cut unaligned load
18344         and store cases.  Call ix86_avx256_split_vector_move_misalign
18345         directly without checking mode class.
18347 2016-04-20  Andrew Pinski  <apinski@cavium.com>
18348             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18350         PR target/64971
18351         * config/aarch64/aarch64.md (sibcall): Force call
18352         address to be DImode for ILP32.
18353         (sibcall_value): Likewise.
18355 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18357         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
18359 2016-04-20  Richard Biener  <rguenther@suse.de>
18361         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
18362         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
18363         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
18364         (maybe_push_res_to_seq): Adjust.
18365         * gimple-fold.c (maybe_build_generic_op): Likewise.
18367 2016-04-20  Marek Polacek  <polacek@redhat.com>
18369         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
18370         rather than true.
18372 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
18374         * config/i386/sse.md (vec_unpacks_lo_hi): Always
18375         use kmovw to support AVX512F target.
18377 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18379         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
18381 2016-04-20  Marek Polacek  <polacek@redhat.com>
18383         PR tree-optimization/70725
18384         * tree-if-conv.c (is_false_predicate): New function.
18385         (predicate_mem_writes): Use it.
18387 2016-04-20  Richard Biener  <rguenther@suse.de>
18389         PR tree-optimization/70726
18390         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
18391         shift amounts from a pattern stmt operand.
18393 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18395         PR target/70674
18396         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
18397         stack_restore_from_fpr pattern when restoring r15.
18398         (s390_optimize_prologue): Strip away the memory barrier in the
18399         parallel when trying to get rid of restore insns.
18400         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
18401         definition for loading the stack pointer from an FPR.  Compared to
18402         the normal move insn this pattern includes a full memory barrier.
18404 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
18406         PR middle-end/70680
18407         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18408         implicitly linear or lastprivate iterator on the outer context.
18410 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18412         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18413         alignment check.
18414         * config/i386/i386.md (ssememalign): Removed.
18415         * config/i386/sse.md: Remove ssememalign attribute from patterns.
18417 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18419         PR target/69201
18420         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18421         const short * to __builtin_ia32_loaddquhi512_mask.
18422         (_mm512_maskz_loadu_epi16): Likewise.
18423         (_mm512_mask_storeu_epi16): Pass short * to
18424         __builtin_ia32_storedquhi512_mask.
18425         (_mm512_mask_loadu_epi8): Pass const char * to
18426         __builtin_ia32_loaddquqi512_mask.
18427         (_mm512_maskz_loadu_epi8): Likewise.
18428         (_mm512_mask_storeu_epi8): Pass char * to
18429         __builtin_ia32_storedquqi512_mask.
18430         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18431         const double * to __builtin_ia32_loadupd512_mask.
18432         (_mm512_mask_loadu_pd): Likewise.
18433         (_mm512_maskz_loadu_pd): Likewise.
18434         (_mm512_storeu_pd): Pass double * to
18435         __builtin_ia32_storeupd512_mask.
18436         (_mm512_mask_storeu_pd): Likewise.
18437         (_mm512_loadu_ps): Pass const float * to
18438         __builtin_ia32_loadups512_mask.
18439         (_mm512_mask_loadu_ps): Likewise.
18440         (_mm512_maskz_loadu_ps): Likewise.
18441         (_mm512_storeu_ps): Pass float * to
18442         __builtin_ia32_storeups512_mask.
18443         (_mm512_mask_storeu_ps): Likewise.
18444         (_mm512_mask_loadu_epi64): Pass const long long * to
18445         __builtin_ia32_loaddqudi512_mask.
18446         (_mm512_maskz_loadu_epi64): Likewise.
18447         (_mm512_mask_storeu_epi64): Pass long long *
18448         to __builtin_ia32_storedqudi512_mask.
18449         (_mm512_loadu_si512): Pass const int * to
18450         __builtin_ia32_loaddqusi512_mask.
18451         (_mm512_mask_loadu_epi32): Likewise.
18452         (_mm512_maskz_loadu_epi32): Likewise.
18453         (_mm512_storeu_si512): Pass int * to
18454         __builtin_ia32_storedqusi512_mask.
18455         (_mm512_mask_storeu_epi32): Likewise.
18456         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18457         char * to __builtin_ia32_storedquqi256_mask.
18458         (_mm_mask_storeu_epi8): Likewise.
18459         (_mm256_mask_loadu_epi16): Pass const short * to
18460         __builtin_ia32_loaddquhi256_mask.
18461         (_mm256_maskz_loadu_epi16): Likewise.
18462         (_mm_mask_loadu_epi16): Pass const short * to
18463         __builtin_ia32_loaddquhi128_mask.
18464         (_mm_maskz_loadu_epi16): Likewise.
18465         (_mm256_mask_loadu_epi8): Pass const char * to
18466         __builtin_ia32_loaddquqi256_mask.
18467         (_mm256_maskz_loadu_epi8): Likewise.
18468         (_mm_mask_loadu_epi8): Pass const char * to
18469         __builtin_ia32_loaddquqi128_mask.
18470         (_mm_maskz_loadu_epi8): Likewise.
18471         (_mm256_mask_storeu_epi16): Pass short * to.
18472         __builtin_ia32_storedquhi256_mask.
18473         (_mm_mask_storeu_epi16): Pass short * to.
18474         __builtin_ia32_storedquhi128_mask.
18475         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18476         const double * to __builtin_ia32_loadupd256_mask.
18477         (_mm256_maskz_loadu_pd): Likewise.
18478         (_mm_mask_loadu_pd): Pass onst double * to
18479         __builtin_ia32_loadupd128_mask.
18480         (_mm_maskz_loadu_pd): Likewise.
18481         (_mm256_mask_storeu_pd): Pass double * to
18482         __builtin_ia32_storeupd256_mask.
18483         (_mm_mask_storeu_pd): Pass double * to
18484         __builtin_ia32_storeupd128_mask.
18485         (_mm256_mask_loadu_ps): Pass const float * to
18486         __builtin_ia32_loadups256_mask.
18487         (_mm256_maskz_loadu_ps): Likewise.
18488         (_mm_mask_loadu_ps): Pass const float * to
18489         __builtin_ia32_loadups128_mask.
18490         (_mm_maskz_loadu_ps): Likewise.
18491         (_mm256_mask_storeu_ps): Pass float * to
18492         __builtin_ia32_storeups256_mask.
18493         (_mm_mask_storeu_ps): ass float * to
18494         __builtin_ia32_storeups128_mask.
18495         (_mm256_mask_loadu_epi64): Pass const long long * to
18496         __builtin_ia32_loaddqudi256_mask.
18497         (_mm256_maskz_loadu_epi64): Likewise.
18498         (_mm_mask_loadu_epi64): Pass const long long * to
18499         __builtin_ia32_loaddqudi128_mask.
18500         (_mm_maskz_loadu_epi64): Likewise.
18501         (_mm256_mask_storeu_epi64): Pass long long * to
18502         __builtin_ia32_storedqudi256_mask.
18503         (_mm_mask_storeu_epi64): Pass long long * to
18504         __builtin_ia32_storedqudi128_mask.
18505         (_mm256_mask_loadu_epi32): Pass const int * to
18506         __builtin_ia32_loaddqusi256_mask.
18507         (_mm256_maskz_loadu_epi32): Likewise.
18508         (_mm_mask_loadu_epi32): Pass const int * to
18509         __builtin_ia32_loaddqusi128_mask.
18510         (_mm_maskz_loadu_epi32): Likewise.
18511         (_mm256_mask_storeu_epi32): Pass int * to
18512         __builtin_ia32_storedqusi256_mask.
18513         (_mm_mask_storeu_epi32): Pass int * to
18514         __builtin_ia32_storedqusi128_mask.
18515         * config/i386/i386-builtin-types.def (PCSHORT): New.
18516         (PINT64): Likewise.
18517         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18518         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18519         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18520         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18521         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18522         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18523         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18524         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18525         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18526         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18527         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18528         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18529         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18530         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18531         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18532         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18533         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18534         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18535         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18536         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18537         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18538         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18539         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18540         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18541         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18542         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18543         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18544         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18545         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18546         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18547         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18548         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18549         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18550         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18551         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18552         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18553         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18554         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18555         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18556         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18557         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18558         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18559         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18560         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18561         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18562         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18563         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18564         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18565         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18566         use UNSPEC_STOREU.
18567         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18568         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18569         load nor store.
18570         (ix86_expand_vector_move_misalign): Likewise.
18571         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18572         to scalar function prototype for unaligned load/store builtins.
18573         (ix86_expand_special_args_builtin): Updated.
18574         * config/i386/sse.md (UNSPEC_LOADU): Removed.
18575         (UNSPEC_STOREU): Likewise.
18576         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18577         (VI_ULOADSTORE_F_AVX512VL): Likewise.
18578         (ssescalarsize): Handle V4TI, V2TI and V1TI.
18579         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18580         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18581         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18582         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18583         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18584         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18585         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18586         (<avx512>_storedqu<mode>_mask): Likewise.
18587         (*sse4_2_pcmpestr_unaligned): Likewise.
18588         (*sse4_2_pcmpistr_unaligned): Likewise.
18589         (*mov<mode>_internal): Renamed to ...
18590         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
18591         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18592         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18593         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18595 2016-04-19  Richard Biener  <rguenther@suse.de>
18597         PR tree-optimization/70171
18598         * tree-ssa-phiprop.c: Include stor-layout.h.
18599         (phiprop_insert_phi): Handle the aggregate copy case.
18600         (propagate_with_phi): Likewise.
18602 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
18604         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18605         instead of simplify_gen_subreg (... , 0).
18606         (ix86_delegitimize_address): Ditto.
18607         (ix86_split_divmod): Ditto.
18608         (ix86_split_copysign_const): Ditto.
18609         (ix86_split_copysign_var): Ditto.
18610         (ix86_expand_args_builtin): Ditto.
18611         (ix86_expand_round_builtin): Ditto.
18612         (ix86_expand_special_args_builtin): Ditto.
18613         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18614         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18615         (udivmodqi4): Ditto.
18616         (absneg splitters): Ditto.
18617         (*jcc_bt<mode>_1): Ditto.
18619 2016-04-19  Richard Biener  <rguenther@suse.de>
18621         PR tree-optimization/70724
18622         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18623         restoring out from ...
18624         (free_scc_vn): ... here.
18625         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18626         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18627         tail merging.
18628         (pass_fre::execute): Restore SSA info.
18630 2016-04-19  Richard Biener  <rguenther@suse.de>
18632         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18633         * gimple-walk.c (walk_gimple_op): Initialize it.
18634         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18635         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18636         remapping SSA names of defs.
18637         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18638         adjustment.
18640 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
18642         PR middle-end/70689
18643         * lra-constraints.c (equiv_substition_p): New.
18644         (process_alt_operands): Use it.
18645         (swap_operands): Swap it.
18646         (curr_insn_transform): Update it.
18648 2016-04-18  Michael Matz  <matz@suse.de>
18650         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18651         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18652         * tree-core.h (tree_type_common.align): Use bit-field.
18653         (tree_type_common.spare): New.
18654         (tree_decl_common.off_align): Make smaller.
18655         (tree_decl_common.align): Use bit-field.
18657         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18658         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18659         (scan_sharing_clauses): Ditto.
18660         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18661         (omp_finish_file): Ditto.
18662         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18663         (layout_decl): Ditto.
18664         (relayout_decl): Ditto.
18665         (finalize_record_size): Use SET_TYPE_ALIGN.
18666         (finalize_type_size): Ditto.
18667         (finish_builtin_struct): Ditto.
18668         (layout_type): Ditto.
18669         (initialize_sizetypes): Ditto.
18670         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18671         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18672         (lookup_field_for_decl): Use SET_DECL_ALIGN.
18673         (get_chain_field): Ditto.
18674         (get_trampoline_type): Ditto.
18675         (get_nl_goto_field): Ditto.
18676         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18677         SET_DECL_ALIGN.
18678         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18679         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18680         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18681         (build_qualified_type): Use SET_TYPE_ALIGN.
18682         (build_aligned_type, build_range_type_1): Ditto.
18683         (build_atomic_base): Ditto.
18684         (build_common_tree_nodes): Ditto.
18685         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18686         (expand_one_stack_var_at): Ditto.
18687         * coverage.c (build_var): Use SET_DECL_ALIGN.
18688         * except.c (init_eh): Ditto.
18689         * function.c (assign_parm_setup_block): Ditto.
18690         * symtab.c (increase_alignment_1): Ditto.
18691         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18692         * tree-vect-stmts.c (ensure_base_align): Ditto.
18693         * varasm.c (align_variable): Ditto.
18694         (assemble_variable): Ditto.
18695         (build_constant_desc): Ditto.
18696         (output_constant_def_contents): Ditto.
18698         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18699         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18700         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18701         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18702         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18704 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
18706         PR target/70708
18707         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18708         replace %vmovsd with "%vmovq".
18709         (vec_concatv2df): Likewise.
18711 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
18713         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18714         (*vec_extractv2si_0): Ditto.
18715         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18716         (zero_extended_scalar_load_operand splitters): Ditto.
18717         (vec_extract splitters): Ditto.
18718         (*vec_extractv4si_0_zext): Ditto.
18719         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18720         and lowpart_subreg.
18721         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18722         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18723         (*sse4_1_extractps): Use lowpart_subreg.
18724         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18726 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18728         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18729         gld requirements.
18730         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18731         Mention Solaris 11 packaging changes.
18732         Update gas and gld requirements.
18733         Remove reference to pre-Solaris 10 bug.
18734         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18735         systems and bugs.
18736         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18737         with cc.
18739 2016-04-17  Jan Hubicka  <jh@suse.cz>
18741         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18742         max_loop_iterations_int.
18744 2016-04-18  Richard Biener  <rguenther@suse.de>
18746         PR tree-optimization/43434
18747         * tree-ssa-structalias.c (struct vls_data): New.
18748         (visit_loadstore): Handle all pointer-based accesses.
18749         (compute_dependence_clique): Compute a bitmap of restrict tags
18750         assigned bases and pass it to visit_loadstore.
18752 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
18754         PR target/70711
18755         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18756         armv8.1-a and armv8.1-a+crc.
18758 2016-04-18  Richard Biener  <rguenther@suse.de>
18760         PR tree-optimization/70701
18761         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18762         references after translating through a memcpy.
18764 2016-04-18  Richard Biener  <rguenther@suse.de>
18766         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18767         (compute_antic): ... here.  For partial antic use regular
18768         postorder and scrap iteration.
18769         (compute_partial_antic_aux): Remove unused return value.
18770         (init_pre): Do not allocate postorder.
18771         (fini_pre): Do not free postorder.
18773 2016-04-18  Richard Biener  <rguenther@suse.de>
18775         PR middle-end/37870
18776         * expmed.c (extract_bit_field_1): Remove broken case
18777         using a wider MODE_INT mode.
18779 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
18781         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18782         unless compiling with at least GCC-4.8.
18784 2016-04-17  Jan Hubicka  <jh@suse.cz>
18786         PR bootstrap/70706
18787         * graphite.c (graphite_finalize): Update call to
18788         tree_estimate_probability.
18789         * predict.h (tree_estimate_probability): Update prototype.
18791 2016-04-17  Jan Hubicka  <jh@suse.cz>
18793         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18794         (tree_estimate_probability): Likewise.
18795         (pass_profile::execute): Update.
18796         (report_predictor_hitrates): New function.
18797         * profile.c (compute_branch_probabilities): Use it.
18798         * predict.h (report_predictor_hitrates): Declare.
18800 2016-04-17  Jan Hubicka  <jh@suse.cz>
18802         PR ipa/70018
18803         * cgraph.h (cgraph_node::set_const_flag,
18804         cgraph_node::set_pure_flag): Update prototype to return bool;
18805         update comment.
18806         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18807         of interposable symbol are interposable, too.
18808         (cgraph_set_const_flag_1): Rename to ...
18809         (set_const_flag_1): ... this one; change to self recursive function
18810         instead of call_for_symbol_thunks_and_aliases. Handle correctly
18811         clearnig the flag in all variants and also virtual thunks of const
18812         functions are pure; track if any change was done.
18813         (cgraph_node::set_const_flag): Update.
18814         (struct set_pure_flag_info): New struct.
18815         (cgraph_set_pure_flag_1): Rename to ...
18816         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18817         rather than pointer encoded flags; track if any changes was done;
18818         handle correctly clearning flag and setting flag of aliases already
18819         declared const.
18820         (cgraph_node::set_pure_flag): Update.
18821         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18823 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18825         PR other/70433
18826         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18827         backslash in label.
18829 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18831         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18832         '{}<> ' as escape-for-record.
18834 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18836         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18837         structure.
18839 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18841         PR other/70185
18842         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18843         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18844         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18845         * passes.c (finish_optimization_passes): Only call
18846         finish_graph_dump_file if dfi->graph_dump_initialized.
18847         (execute_function_dump, pass_init_dump_file): Use
18848         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18850 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18852         PR tree-optimization/70256
18853         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18854         (debug_varmap): New function.
18856 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18858         PR other/70183
18859         * passes.c (pass_manager::register_pass): Propagate pflags.
18861 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18863         PR other/68875
18864         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18865         * passes.c (pass_manager::pass_manager): Declare and init p_start in
18866         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
18867         check if it's equal to p_start.
18868         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18870 2016-04-15  Jan Hubicka  <jh@suse.cz>
18872         PR ipa/70018
18873         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18874         function does not bind to current def.
18875         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18876         handle conservatively calls to functions that does not need to bind
18877         to current def.
18878         (check_call): Update call of worse_state.
18879         (ignore_edge_for_nothrow): Update.
18880         (ignore_edge_for_pure_const): Likewise.
18881         (propagate_pure_const): Update calls to worse_state.
18882         (skip_function_for_local_pure_const): Reformat comments.
18884 2016-04-15  Jan Hubicka  <jh@suse.cz>
18886         PR ipa/70018
18887         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18888         (cgraph_node::function_symbol): Likewise.
18889         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18890         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18891         (symtab_node::ultimate_alias_target): Add REF parameter.
18892         (symtab_node::binds_to_current_def_p): Declare.
18893         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18894         (cgraph_node::function_symbol): Likewise.
18895         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18896         (cgraph_node::get_availability): Likewise.
18897         (cgraph_edge::binds_to_current_def_p): New inline function.
18898         (varpool_node::get_availability): Add REF parameter.
18899         (varpool_node::ultimate_alias_target): Likewise.
18900         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18901         (symtab_node::binds_to_current_def_p): Likewise.
18902         * varpool.c (varpool_node::get_availability): Likewise.
18904 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18906         PR target/70662
18907         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18908         Fix mode size check.
18910 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18912         * BASE-VER: Set to 7.0.0.
18914 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
18916         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18918 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18920         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18921         architecture revisions.
18923 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
18925         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18926         * config/i386/i386.c (ix86_using_red_zone): No longer static.
18927         * config/i386/i386.md (stack decrement to push peepholes): Guard
18928         with !x86_using_red_zone ().
18930 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18932         PR c++/70675
18933         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18934         to dump_generic_node.
18935         (NIY): Pass also flags to do_niy.
18937 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18939         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18940         (simd_clone_vector_of_formal_parm_types)
18941         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18942         (simd_clone_mangle, simd_clone_create)
18943         (simd_clone_adjust_return_type, create_tmp_simd_array)
18944         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18945         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18946         (ipa_simd_modify_function_body, simd_clone_linear_addend)
18947         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18948         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18949         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18950         * omp-simd-clone.c: ... this new file.
18951         (simd_clone_vector_of_formal_parm_types): Make it static.
18952         * Makefile.in (OBJS): Add omp-simd-clone.o.
18954 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18956         PR target/70662
18957         * config/i386/sse.md: Use proper memory operand modifiers.
18960 2016-04-15  Richard Biener  <rguenther@suse.de>
18961         Alan Modra  <amodra@gmail.com>
18963         PR tree-optimization/70130
18964         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18965         when alignment stays not the same and no not use the realign
18966         scheme then.
18968 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18970         PR target/70669
18971         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18972         direct move handlers for KFmode. Change TFmode handlers test from
18973         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18975 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
18977         PR c++/70594
18978         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
18979         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
18980         (inlined_polymorphic_ctor_dtor_block_p): Use it.
18981         * tree-ssa-live.c (remove_unused_scope_block_p): When
18982         in_ctor_dtor_block, avoid discarding not just BLOCKs with
18983         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
18984         block_ultimate_origin is FUNCTION_DECL.
18985         (remove_unused_locals): If current_function_decl is
18986         polymorphic_ctor_dtor_p, pass initial true to
18987         remove_unused_scope_block_p' is_ctor_dtor_block.
18989 2016-04-14  Martin Sebor  <msebor@redhat.com>
18991         PR c++/69517
18992         PR c++/70019
18993         PR c++/70588
18994         * doc/extend.texi (Variable Length): Revert.
18996 2016-04-14  Marek Polacek  <polacek@redhat.com>
18997             Jan Hubicka  <hubicka@ucw.cz>
18999         PR c++/70029
19000         * tree.c (verify_type): Disable the canonical type of main variant
19001         check.
19003 2016-04-14  Jason Merrill  <jason@redhat.com>
19005         * cfgexpand.c, expr.c: Revert previous change.
19007 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
19009         PR middle-end/70643
19010         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19011         when building a mem ref for the incoming reduction variable.
19013 2016-04-14  Richard Biener  <rguenther@suse.de>
19015         PR tree-optimization/70614
19016         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19017         loop if the evolution dropped to chrec_dont_know.
19018         (interpret_condition_phi): Likewise.
19020 2016-04-14  Richard Biener  <rguenther@suse.de>
19022         PR tree-optimization/70623
19023         * tree-ssa-pre.c (changed_blocks): Make global ...
19024         (compute_antic): ... local here.  Move and fix worklist
19025         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19026         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
19027         worklist handling, dump when ANTIC_IN changed.
19028         (compute_partial_antic_aux): Remove worklist handling.
19029         (init_pre): Do not compute post dominators.  Add a comment about
19030         the CFG order chosen.
19031         (fini_pre): Do not free post dominators.
19033 2016-04-13  Martin Sebor  <msebor@redhat.com>
19035         PR c++/69517
19036         PR c++/70019
19037         PR c++/70588
19038         * doc/extend.texi (Variable Length): Document C++ specifics.
19040 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
19042         PR c++/70641
19043         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19044         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
19045         eh edges have been purged.
19047         PR c++/70594
19048         * tree-sra.c (create_access_replacement,
19049         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19050         gets fancy name.
19051         * tree-pretty-print.c (dump_fancy_name): New function.
19052         (dump_decl_name, dump_generic_node): Use it.
19054 2016-04-13  Jason Merrill  <jason@redhat.com>
19056         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19057         * expr.c (expand_expr_real_1): Likewise.
19059 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19061         * config/i386/i386.md (kunpckhi): Swap operands.
19062         (kunpcksi): Likewise.
19063         (kunpckdi): Likewise.
19064         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19065         (vec_pack_trunc_<mode>): Likewise.
19067 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
19069         PR debug/70628
19070         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19072         PR middle-end/70633
19073         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19074         gimplification turns some element into non-constant.
19076         PR debug/70628
19077         * rtl.h (convert_memory_address_addr_space_1): New prototype.
19078         * explow.c (convert_memory_address_addr_space_1): No longer static,
19079         add NO_EMIT argument and don't call convert_modes if true, pass
19080         it down recursively, remove break after return.
19081         (convert_memory_address_addr_space): Adjust caller.
19082         * simplify-rtx.c (simplify_unary_operation_1): Call
19083         convert_memory_address_addr_space_1 instead of convert_memory_address,
19084         if it returns NULL, don't simplify.
19086 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
19088         PR target/70630
19089         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19091 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19093         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19094         Bump the upper SIMDLEN limits, so that if the return type or
19095         characteristic type if the return type is void can be passed in
19096         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19097         allowed.
19099 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19101         PR target/70640
19102         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19103         Do not use "=" constraint on an input constraint.
19104         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19105         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19106         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19107         generates (neg (abs ...)) instead of (abs ...).
19109 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19111         PR rtl-optimization/70596
19112         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19113         just invalidate LRA data and reset them.  Adjust dump wording.
19115 2016-04-12  Martin Liska  <mliska@suse.cz>
19117         Revert
19118         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19120         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19121         estimates here.
19122         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19123         max_loop_iterations_int.
19124         (tree_unswitch_outer_loop): Likewise.
19125         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19126         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19128 2016-04-12  Tom de Vries  <tom@codesourcery.com>
19130         PR tree-optimization/68756
19131         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19132         instead of new_name.
19134 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19136         PR tree-optimization/70602
19137         * tree-sra.c (generate_subtree_copies): Don't write anything into
19138         constant pool decls.
19140         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19141         regardless whether there are depend clauses or not.
19143 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19145         PR target/70381
19146         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19147         target attribute and pragma from changing the -mfloat128
19148         and -mfloat128-hardware options.
19150         * doc/extend.texi (Additional Floating Types): Document PowerPC
19151         __float128 restrictions.
19153 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19155         PR target/70133
19156         * config/aarch64/driver-aarch64.c
19157         (aarch64_get_extension_string_for_isa_flags): New.
19158         (arch_extension): Rename to...
19159         (aarch64_arch_extension): ...This.
19160         (ext_to_feat_string): Rename to...
19161         (aarch64_extensions): ...This.
19162         (aarch64_core_data): Keep track of architecture extension flags.
19163         (cpu_data): Rename to...
19164         (aarch64_cpu_data): ...This.
19165         (aarch64_arch_driver_info): Keep track of architecture extension
19166         flags.
19167         (get_arch_name_from_id): Rename to...
19168         (get_arch_from_id): ...This, change return type.
19169         (host_detect_local_cpu): Update and reformat for renames, handle
19170         extensions through common infrastructure.
19172 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19174         PR target/70133
19175         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19176         track of a canonical flag name.
19177         (all_extensions): Likewise.
19178         (arch_to_arch_name): Also track extension flags enabled by the arch.
19179         (all_architectures): Likewise.
19180         (aarch64_parse_extension): Move to here.
19181         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19182         rework.
19183         (aarch64_rewrite_selected_cpu): Update for above change.
19184         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19185         are handled, such that the single explicit value enabled by an
19186         extension is kept seperate from the implicit values it also enables.
19187         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19188         to here.
19189         (aarch64_parse_extension): New.
19190         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19191         here to config/aarch64/aarch64-protos.h.
19192         (aarch64_parse_extension): Move from here to
19193         common/config/aarch64/aarch64-common.c.
19194         (aarch64_option_print): Update.
19195         (aarch64_declare_function_name): Likewise.
19196         (aarch64_start_file): Likewise.
19197         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19198         the canonical flag for extensions.
19199         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19200         flags.
19202 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19204         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19205         AARCH64_FL_CRC.
19207 2016-04-09  Tom de Vries  <tom@codesourcery.com>
19209         PR tree-optimization/68953
19210         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19211         first to last subscript.
19213 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
19215         PR tree-optimization/70586
19216         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19217         for any calls.
19219 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
19221         PR lto/70289
19222         PR ipa/70348
19223         PR tree-optimization/70373
19224         PR middle-end/70533
19225         PR middle-end/70534
19226         PR middle-end/70535
19227         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19228         clauses for acc parallel reductions as necessary.  Error on those
19229         that are private.
19230         * omp-low.c (scan_sharing_clauses): Don't install variables which
19231         are used in acc parallel reductions.
19232         (lower_rec_input_clauses): Remove dead code.
19233         (lower_oacc_reductions): Add support for reference reductions.
19234         (lower_reduction_clauses): Remove dead code.
19235         (lower_omp_target): Don't remap variables appearing in acc parallel
19236         reductions.
19237         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19239 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
19241         PR middle-end/70593
19242         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19243         with multiple SSA_NAME defs, force the outputs other than first
19244         to be live before calling live_track_process_def on each output.
19246         PR rtl-optimization/70574
19247         * fwprop.c (forward_propagate_and_simplify): Don't add
19248         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19249         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19250         paradoxical subregs within *loc.
19252 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
19254         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
19255         -ftree-parallelize-loops={0,1}.
19256         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19257         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
19258         * config/ia64/hpux.h (LIB_SPEC): Likewise.
19259         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19260         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
19262 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
19264         PR sanitizer/70541
19265         * asan.c (instrument_derefs): If we get unknown location, extract it
19266         with EXPR_LOCATION.
19267         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
19269 2016-04-08  Tom de Vries  <tom@codesourcery.com>
19271         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
19272         implicit firstprivate clause.
19274 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19276         PR target/70566
19277         * config/arm/thumb2.md (tst + branch-> lsls + branch
19278         peephole below *orsi_not_shiftsi_si): Require that condition
19279         register is dead after the peephole.
19280         (second peephole after the above): Likewise.
19282 2016-04-08  Alan Modra  <amodra@gmail.com>
19284         PR target/70117
19285         * builtins.c (fold_builtin_classify): For IBM extended precision,
19286         look at just the high-order double to test for NaN.
19287         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
19288         test just the high double for Inf but both doubles for subnormal
19289         limit.
19291 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
19293         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
19294         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
19295         node->simdclone->mask_mode != VOIDmode masks.
19296         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
19297         earlier, use it instead of node->simdclone.
19298         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19299         Set clonei->mask_mode.
19301 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
19303         PR c/70436
19304         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
19305         Pass it through to cp_parser_already_scoped_statement.
19306         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
19307         it through to cp_parser_statement.
19308         (cp_parser_statement): Pass IF_P through to
19309         cp_parser_iteration_statement.
19310         (cp_parser_pragma): Adjust call to
19311         cp_parser_iteration_statement.
19313 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
19315         PR c/70436
19316         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
19317         resolve a future -Wparentheses warning.
19318         * omp-low.c (scan_sharing_clauses): Likewise.
19319         * tree-parloops.c (eliminate_local_variables): Likewise.
19321 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
19323         PR rtl-optimization/70398
19324         * lra-constraints.c (process_address_1): Check zero scale and code
19325         for reloading with zero scale.
19327 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
19329         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
19330         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
19332 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
19334         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19335         Add support for AVX512F clones, include them by default for
19336         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
19337         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
19338         up to 128.
19340         PR middle-end/70550
19341         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
19342         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
19343         firstprivate clauses.
19344         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
19345         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
19346         (lower_omp_target): Set TREE_NO_WARNING for
19347         non-addressable possibly uninitialized vars which are copied into
19348         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
19350 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
19352         * config/pa/predicates.md (integer_store_memory_operand): Accept
19353         REG+D operands with a large offset when reload_in_progress is true.
19354         (floating_point_store_memory_operand): Likewise.
19356 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19358         PR c++/70336
19359         * match.pd (nested int casts): Limit to GIMPLE.
19361 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
19363         PR ipa/66223
19364         * ipa-devirt.c (maybe_record_node): Fix comment; use
19365         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
19367 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19369         PR rtl-optimization/70542
19370         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
19371         if there are any uses other than insn or debug insns.
19373 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
19374             Jakub Jelinek  <jakub@redhat.com>
19376         PR tree-optimization/70509
19377         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
19378         Shift HOST_WIDE_INT_1U instead of 1.
19380 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
19382         PR tree-optimization/70509
19383         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
19384         of the vector base type for index.
19386 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
19388         PR target/70510
19389         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
19391 2016-04-05  Richard Biener  <rguenther@suse.de>
19393         PR tree-optimization/70526
19394         * tree-sra.c (build_ref_for_offset): Use prev_base to
19395         extract the alias pointer type.
19397 2016-04-05  Richard Biener  <rguenther@suse.de>
19399         * dse.c (struct store_info): Remove alias_set member.
19400         (struct read_info_type): Likewise.
19401         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19402         spill_deleted, clear_alias_set_lookup): Remove.
19403         (get_group_info): Remove dead base == NULL_RTX case.
19404         (dse_step0): Remove initialization of removed variables.
19405         (delete_dead_store_insn): Reomve alias set dumping.
19406         (free_read_records): Remove alias_set handling.
19407         (canon_address): Remove alias_set_out parameter.
19408         (record_store): Remove spill_alias_set, it's always zero.
19409         (check_mem_read_rtx): Likewise.
19410         (dse_step2): Rename from ...
19411         (dse_step2_nospill): ... this.  Adjust.
19412         (scan_stores): Rename from ...
19413         (scan_stores_nospill): ... this.
19414         (scan_reads): Rename from ...
19415         (scan_reads_nospill): ... this.
19416         (scan_stores_spill, scan_reads_spill): Remove.
19417         (dse_step3_scan): Remove for_spills argument which is always false.
19418         (dse_step3): Likewise.
19419         (dse_step5): Rename from ...
19420         (dse_step5_nospill): ... this.  Remove alias_set handling.
19421         (rest_of_handle_dse): Adjust.
19423 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19425         PR target/70525
19426         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19427         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19428         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19429         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19431 2016-04-05  Richard Biener  <rguenther@suse.de>
19433         PR middle-end/70499
19434         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19435         non-register type temporaries into SSA.
19437 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
19439         PR ipa/66223
19440         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19441         calls when sanitizing.
19442         (possible_polymorphic_call_target_p): Fix formatting.
19444 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19445             Jakub Jelinek  <jakub@redhat.com>
19447         PR middle-end/70457
19448         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19449         to ensure a call statement is compatible with a built-in's
19450         prototype.
19451         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19452         Likewise.
19454 2016-04-04  Richard Biener  <rguenther@suse.de>
19456         PR rtl-optimization/70484
19457         * rtl.h (canon_output_dependence): Declare.
19458         * alias.c (canon_output_dependence): New function.
19459         * dse.c (record_store): Use canon_output_dependence rather
19460         than canon_true_dependence.
19462 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19464         PR ipa/68881
19465         * cgraph.h (symtab_node::copy_visibility_from): New function.
19466         * symtab.c (symtab_node::copy_visibility_from): New function.
19467         * ipa-visibility.c (optimize_weakref): New function.
19468         (function_and_variable_visibility): Use it.
19470 2016-04-04  Martin Liska  <mliska@suse.cz>
19472         PR hsa/70402
19473         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19474         value that is really in range handled by SBR instruction.
19475         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19476         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19477         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19479 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
19481         PR target/70416
19482         PR target/67391
19483         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19484         set, but not for SP_REG operands.
19486 2016-04-02  Martin Sebor  <msebor@redhat.com>
19488         PR c++/67376
19489         * fold-const.c (maybe_nonzero_address): New function.
19490         (fold_comparison): Call it.  Fold equality and relational
19491         expressions involving null pointers.
19492         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19494 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
19496         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19497         the "Y" constraint (scalar FP 0.0 immediate).
19499         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19500         Add the "const_double" to the list of operand constraints.
19502 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
19504         PR rtl-optimization/70467
19505         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19506         If low word of the last operand is 0, just emit addition/subtraction
19507         for the high word.
19509 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19511         PR target/70404
19512         * config/s390/s390.c (s390_expand_insv): Check for everything
19513         constant instead of just VOIDmode stuff.
19515 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19517         PR target/70496
19518         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19520 2016-04-01  Nathan Sidwell  <nathan@acm.org>
19522         * tree.def (TRY_CATCH_EXPR): Correct documentation.
19524 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19526         PR rtl-optimization/70461
19527         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19528         is necessary.
19530 2016-03-31  Martin Liska  <mliska@suse.cz>
19532         PR hsa/70399
19533         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19534         a tree value or an immediate integer value to a buffer
19535         that is eventually copied to a BRIG section.
19536         (emit_immediate_operand): Call the function here.
19537         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19538         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19539         of class' fields that are removed.
19540         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19541         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19542         m_brig_repr_size fields.
19544 2016-03-31  Martin Liska  <mliska@suse.cz>
19546         PR hsa/70391
19547         * hsa-gen.c (hsa_function_representation::update_dominance): New
19548         function.
19549         (convert_addr_to_flat_segment): Likewise.
19550         (gen_hsa_memory_set): New alignment argument.
19551         (gen_hsa_ctor_assignment): Likewise.
19552         (gen_hsa_insns_for_single_assignment): Provide alignment
19553         to gen_hsa_ctor_assignment.
19554         (gen_hsa_insns_for_direct_call): Add new argument.
19555         (expand_lhs_of_string_op): New function.
19556         (expand_string_operation_builtin): Likewise.
19557         (expand_memory_copy): New function.
19558         (expand_memory_set): New function.
19559         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19560         (convert_switch_statements): Change signature.
19561         (generate_hsa): Use a return value of the function.
19562         (pass_gen_hsail::execute): Do not call
19563         convert_switch_statements here.
19564         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19565         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19566         (hsa_function_representation::update_dominance): New function.
19568 2016-03-31  Martin Liska  <mliska@suse.cz>
19570         PR hsa/70391
19571         * hsa-brig.c (emit_directive_variable): Emit alignment
19572         according to hsa_symbol::m_align.
19573         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19574         (dump_hsa_symbol): Dump alignment of HSA symbols.
19575         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19576         (gen_hsa_addr_with_align): New function.
19577         (hsa_bitmemref_alignment): Use newly added function.
19578         (gen_hsa_insns_for_load): Likewise.
19579         (gen_hsa_insns_for_store): Likewise.
19580         (gen_hsa_memory_copy): New argument added.
19581         (gen_hsa_insns_for_single_assignment): Respect
19582         alignment for assignments processed via gen_hsa_memory_copy.
19583         (gen_hsa_insns_for_direct_call): Likewise.
19584         (gen_hsa_insns_for_return): Likewise.
19585         (gen_function_def_parameters): Set default alignment.
19586         * hsa.c (hsa_object_alignment): New function.
19587         (hsa_byte_alignment): Pasted function.
19588         * hsa.h (hsa_symbol::m_align): New field.
19590 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19592         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19593         scratch field for goto case.
19595 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
19597         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19599 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
19601         PR target/70442
19602         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19603         (scalar_chain::convert_insn): Call convert_op for reg
19604         moves to handle undefined registers.
19606 2016-03-31  Nathan Sidwell  <nathan@acm.org>
19608         PR c++/70393
19609         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19610         Assert we don't want to move backwards.
19612 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
19614         PR target/70453
19615         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19617 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
19619         PR rtl-optimization/70460
19620         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19621         with operand from REG_LABEL_OPERAND, instead substitute
19622         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19623         Don't do anything for REG_NON_LOCAL_GOTO jumps.
19625 2016-03-31  Martin Liska  <mliska@suse.cz>
19627         * passes.c (execute_one_pass): Do not call
19628         todo_after for a discarded function.
19630 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19632         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19633         (no_cost, infinite_cost): Initialize the new field.
19634         (get_computation_cost_at): Record setup cost.
19635         (determine_use_iv_cost_address): Skip cost computation for sub
19636         uses if we can estimate it without losing accuracy.
19638 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19640         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19641         estimates here.
19642         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19643         max_loop_iterations_int.
19644         (tree_unswitch_outer_loop): Likewise.
19645         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19646         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19648 2016-03-30  Richard Biener  <rguenther@suse.de>
19650         PR middle-end/70450
19651         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19653 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
19655         PR target/70421
19656         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19657         in gen_blendm expander.
19659 2016-03-30  Nick Clifton  <nickc@redhat.com>
19661         PR target/62254
19662         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19663         case where we are already provided with an SImode SUBREG.
19665 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19667         PR target/70439
19668         * config/i386/i386.c (ix86_expand_epilogue): Properly check
19669         conflict between DRAP register and __builtin_eh_return.
19671 2016-03-30  Michael Matz  <matz@suse.de>
19672             Richard Biener  <rguenther@suse.de>
19674         PR ipa/12392
19675         * ipa-polymorphic-call.c (struct type_change_info): Change
19676         speculative to an unsigned allowing to limit the work we do.
19677         (csftc_abort_walking_p): New inline function..
19678         (check_stmt_for_type_change): Limit the number of may-defs
19679         skipped for speculative devirtualization to
19680         max-speculative-devirt-maydefs.
19681         * params.def (max-speculative-devirt-maydefs): New param.
19682         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19684 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
19686         PR target/63890
19687         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19688         and TARGET_MACHO.
19690 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
19692         PR tree-optimization/59124
19693         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19694         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19696 2016-03-29  Jeff Law  <law@redhat.com>
19698         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19700 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19702         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19703         to HOST_WIDE_INT.
19705 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
19707         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19708         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19709         gcrt0.o if linking dynamically.
19711 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19713         PR ipa/70283
19714         * ipa-devirt.c (methods_equal_p): New function.
19715         (compare_virtual_tables): Use it.
19716         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19717         * cgraphclones.c (clone_function_name_1): Use
19718         symbol_table::symbol_suffix_separator.
19719         * coverage.c (build_var): Likewise.
19720         * symtab.c (symbol_table::symbol_suffix_separator): New.
19722 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
19724         PR rtl-optimization/70429
19725         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19726         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19727         mode != result_mode.
19729         PR c++/70353
19730         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19732         PR tree-optimization/70405
19733         * ssa-iterators.h (num_imm_uses): Add missing braces.
19735 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19737         PR rtl-optimization/68695
19738         * ira-color.c (allocno_copy_cost_saving): New.
19739         (improve_allocation): Use it.
19741 2016-03-29  Richard Henderson  <rth@redhat.com>
19743         PR middle-end/70355
19744         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19746 2016-03-29  Richard Biener  <rguenther@suse.de>
19748         PR middle-end/70424
19749         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19750         use alignment returned by get_pointer_alignment_1 if it is
19751         bigger than BITS_PER_UNIT.
19752         * builtins.c (get_pointer_alignment_1): Do not return true
19753         for alignment extracted from SSA info.
19755 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
19757         * config/ft32/ft32.opt (mnodiv): New.
19758         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19759         * doc/invoke.texi (FT32 Options -mnodiv): New.
19761 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
19763         PR target/70406
19764         * config/i386/i386.md (define_split, andn): Fix modes.
19766 2016-03-26  Richard Biener  <rguenther@suse.de>
19767             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19769         PR ipa/70366
19770         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19771         instead of
19772         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19773         as 2nd argument to cl_optimization_restore().
19775 2016-03-25  Richard Henderson  <rth@redhat.com>
19777         PR target/70120
19778         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19779         * config/aarch64/aarch64-protos.h: Declare it.
19780         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19782 2016-03-25  Alan Modra  <amodra@gmail.com>
19784         PR target/70052
19785         * config/rs6000/constraints.md (j): Simplify.
19786         * config/rs6000/predicates.md (easy_fp_constant): Exclude
19787         decimal float 0.D.
19788         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19789         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19790          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19791         in all constraint alternatives.
19792         (movtd_64bit_nodm): Delete "j" constraint alternative.
19794 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19796         * tree-ssa-propagate.c: Enhance docs for
19797         SSA_PROP_NOT_INTERESTING.
19799 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19801         * doc/extend.texi: Fix typo in documentation to pure attribute.
19803 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
19805         PR target/70319
19806         * config/pa/pa.md (bswapdi2): Use a scratch register.
19808 2016-03-24  Richard Henderson  <rth@redhat.com>
19810         PR middle-end/69845
19811         * fold-const.c (extract_muldiv_1): Correct test for multiplication
19812         overflow.
19814 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
19816         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19817         using ix86_expand_binary_operator instead of gen_andsi3.
19819 2016-03-24  Richard Biener  <rguenther@suse.de>
19821         PR tree-optimization/70396
19822         * tree-vect-stmts.c (vectorizable_comparison): Use
19823         get_vectype_for_scalar_type.
19825 2016-03-24  Richard Biener  <rguenther@suse.de>
19827         PR middle-end/70370
19828         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19829         with register bases.
19831 2016-03-24  Richard Biener  <rguenther@suse.de>
19833         PR tree-optimization/70372
19834         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19835         build_all_ones_cst to also handle vector types correctly.
19837 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19839         PR target/70381
19840         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19841         -mfloat128 here.
19843 2016-03-23  Marek Polacek  <polacek@redhat.com>
19845         PR c++/69884
19846         * doc/invoke.texi: Document -Wignored-attributes.
19848 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19850         PR tree-optimization/69042
19851         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19852         parameter from 30 to 40.
19854 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19856         PR tree-optimization/69042
19857         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19858         for use with constant offset stripped in base.
19860 2016-03-23  Richard Biener  <rguenther@suse.de>
19862         PR middle-end/70251
19863         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19864         mode compatibility check.
19865         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19867 2016-03-23  Jeff Law  <law@redhat.com>
19869         PR tree-optimization/64058
19870         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19871         CONFLICT_COUNT.
19872         (struct ssa_conflicts): Move up earlier in the file.
19873         (conflicts_, var_map_): New static variables.
19874         (initialize_conflict_count): New function to initialize the
19875         CONFLICT_COUNT field for each conflict pair.
19876         (compare_pairs): Lazily initialize the conflict count and use it
19877         as the first tie-breaker.
19878         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
19879         and wipe conflicts_ and map_ around the call to qsort.  Remove
19880         special case for 2 coalesce pairs.
19881         * bitmap.c (bitmap_count_unique_bits): New function.
19882         (bitmap_count_bits_in_word): New function, extracted from
19883         bitmap_count_bits.
19884         (bitmap_count_bits): Use bitmap_count_bits_in_word.
19885         * bitmap.h (bitmap_count_unique_bits): Declare it.
19887 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
19889         PR target/69917
19890         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19891         transparent alias chain for decl assembler name.
19892         * config/sol2.c (solaris_assemble_visibility): Likewise.
19894 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19896         * config/arm/arm1020e.md (1020call_op): Reduce reservation
19897         duration.
19898         (v10_fdivs): Likewise.
19899         (v10_fdivd): Likewise.
19901 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19903         PR driver/70132
19904         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19905         to not call fclose twice on file.
19907 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
19909         PR tree-optimization/70354
19910         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19911         oprnd0 is wider than oprnd1 and there is a cast from the wider
19912         type to oprnd1, mask it with the mask of the narrower type.
19914         PR target/70321
19915         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19916         Optimize TARGET_STV splitters, if high or low word of last argument
19917         is 0 or -1.
19919 2016-03-22  Jeff Law  <law@redhat.com>
19921         PR target/70232
19922         tree-ssa-threadbackward.c
19923         (fsm_find_control_statement_thread_paths): Correctly distinguish
19924         between old style jump threads vs FSM jump threads.
19926 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19928         PR target/70302
19929         * config/i386/i386.c (scalar_chain::convert_op): Support
19930         uninitialized register usage case.
19932 2016-03-22  Richard Biener  <rguenther@suse.de>
19934         PR middle-end/70251
19935         * genmatch.c (gen_transform): Adjust last parameter to a three-state
19936         int...
19937         (capture::gen_transform): ... to change behavior when substituting
19938         a condition into cond or not-cond expr context.
19939         (dt_simplify::gen_1): Adjust.
19940         * gimple-match-head.c: Include gimplify.h for unshare_expr.
19941         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19942         last change and instead change to
19943         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19944         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19946 2016-03-22  Anthony Green  <green@moxielogic.com>
19948         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
19949         issue for moxiebox targets.
19950         (CC1PLUS_SPEC): Ditto.
19952 2016-03-22  Richard Biener  <rguenther@suse.de>
19954         PR middle-end/70333
19955         * fold-const.c (extract_muldiv_1): Properly perform multiplication
19956         in the wide type.
19958 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19960         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19962 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19964         PR target/70325
19965         * config/i386/i386.c (def_builtin): Handle
19966         OPTION_MASK_ISA_AVX512VL to be and-ed with other
19967         bits.
19968         (const struct builtin_description bdesc_special_args[]):
19969         Remove duplicate ISA bits.
19971 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
19973         PR target/70329
19974         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19975         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
19976         in a way that works also for AVX512BW.
19978         PR target/70300
19979         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
19980         instead of source if operands[1] is xmm16 and above and
19981         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
19982         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
19984         PR c++/70295
19985         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
19986         on assign if (*from_p) is a comparison, set it to
19987         TREE_NO_WARNING (*from_p).
19989 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
19991         PR middle-end/70326
19992         * lra.c (restore_scratches): Ignore deleted insns.
19994 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
19995             Jakub Jelinek  <jakub@redhat.com>
19997         PR tree-optimization/70317
19998         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
19999         to HONOR_NANS.
20001 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
20003         PR target/70327
20004         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20005         of ix86_expand_move.
20006         (movoi): Ditto.
20007         (movti): Use general_operand for operand 1 predicate.
20009 2016-03-21  Martin Liska  <mliska@suse.cz>
20011         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20012         insns.
20013         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20015 2016-03-21  Martin Liska  <mliska@suse.cz>
20017         PR ipa/70306
20018         * ipa-icf.c (sem_function::parse): Skip static
20019         constructors and destructors.
20021 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
20023         PR target/70296
20024         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20025         function-like macro, peek following token(s) if it is followed
20026         by CPP_OPEN_PAREN token with optional padding in between, and
20027         if not, don't treat it like a macro.
20029 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
20030             Alexander Monakov  <amonakov@ispras.ru>
20032         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20033         for the stabs debug format.
20035 2016-03-21  Richard Biener  <rguenther@suse.de>
20037         PR tree-optimization/70310
20038         * tree-vect-generic.c (expand_vector_condition): Fold the built
20039         condition.
20041 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
20043         PR target/70293
20044         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20045         Block third alternative for AVX-512VL target,
20047 2016-03-21  Martin Liska  <mliska@suse.cz>
20049         PR hsa/70234
20050         * hsa-brig.c (emit_function_directives): Mark unemitted
20051         global variables for emission.
20052         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20053         (get_symbol_for_decl): Likewise.
20054         * hsa.h (struct hsa_symbol): New flag.
20056 2016-03-21  Richard Biener  <rguenther@suse.de>
20058         PR tree-optimization/70288
20059         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20060         we do not estimate unsimplified all-constant conditionals or
20061         switches as optimized away.
20063 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
20065         PR rtl-optimization/69102
20066         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20067         when we have a readonly dependency context.
20069 2016-03-18  Jeff Law  <law@redhat.com>
20071         PR rtl-optimization/70263
20072         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20073         (update_equiv_regs): When trying to move a store to after the insn
20074         that sets the source of the store, make sure the store occurs after
20075         the insn that sets the source of the store.  When successful note
20076         the REG_EQUIV note created in the dump file.
20078 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
20079             Bernd Schmidt  <bschmidt@redhat.com>
20081         * doc/extend.texi: Document more potential problems with basic asms.
20083 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
20085         PR rtl-optimization/70278
20086         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20087         VOIDmode.
20089 2016-03-18  Jason Merrill  <jason@redhat.com>
20091         * calls.c (load_register_parameters): Fix zero size sibcall logic.
20093 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
20095         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20096         values to 128b regs.
20098 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20100         PR tree-optimization/70252
20101         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20102         boolean vector has a proper number of elements.
20103         (supportable_narrowing_operation): Likewise.
20105 2016-03-18  Tom de Vries  <tom@codesourcery.com>
20107         PR ipa/70269
20108         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20110 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
20112         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20113         instead of replace_rtx for DEBUG_INSNs.
20115 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20117         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20118         load type reservations.
20120 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
20122         PR target/70188
20123         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
20124         define_constraint for "Q" and "T" constraints.
20126 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
20128         Tweak the pipeline model for Exynos M1
20130         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
20131         model.
20133 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
20135         PR c/70264
20136         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20137         where one or both locations aren't within a line_map.
20139 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
20141         PR driver/70192
20142         * opts.c (finish_options): Don't set flag_pie to the default if
20143         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
20144         if it is -1.
20146 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
20148         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20149         true as ALL_REGS argument to replace_rtx.
20151 2016-03-17  Richard Biener  <rguenther@suse.de>
20153         PR debug/70271
20154         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20155         last.
20157 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
20159         PR target/70245
20160         * rtl.h (replace_rtx): Add ALL_REGS argument.
20161         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
20162         equality and assert mode is the same, instead of just rtx pointer
20163         equality.
20164         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20165         true as ALL_REGS argument to replace_rtx.
20167 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
20169         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20170         for boolean vector with vector mode only.
20171         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20173 2016-03-17  Nick Clifton  <nickc@redhat.com>
20175         PR target/70162
20176         * config/rx/rx.c (rx_print_integer): Print negative constants in
20177         decimal.
20179 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
20181         PR target/70261
20182         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20184 2016-03-16  Richard Henderson  <rth@redhat.com>
20185             Richard Biener  <rguenth@suse.de>
20187         PR middle-end/70240
20188         PR middle-end/68215
20189         PR tree-opt/68714
20190         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20191         first operand as is_gimple_condexpr.
20193         PR middle-end/70240
20194         PR middle-end/68215
20195         Revert r231575
20196         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
20197         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20198         Do not gimplify the result.
20199         (do_unop): Adjust call to tree_vec_extract.
20200         (do_binop): Likewise.
20201         (do_compare): Likewise.
20202         (do_plus_minus): Likewise.
20203         (do_negate): Likewise.
20204         (expand_vector_condition): Likewise.
20205         (do_cond): Likewise.
20207 2016-03-16  Richard Henderson  <rth@redhat.com>
20209         PR target/70048
20210         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20211         (aarch64_classify_address): Use it.
20212         (aarch64_legitimize_address): Force all subexpressions of PLUS
20213         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
20215 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
20216             Richard Biener  <rguenth@suse.de>
20218         PR target/70245
20219         * rtlanal.c (replace_rtx): For REG, if from is a REG,
20220         return to even if only REGNO is equal, and assert
20221         mode is the same.
20223 2016-03-11  Jeff Law  <law@redhat.com>
20225         PR rtl-optimization/70224
20226         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20228 2016-03-16  Richard Henderson  <rth@redhat.com>
20230         PR middle-end/70199
20231         * function.h (struct function): Add has_forced_label_in_static.
20232         * gimplify.c (force_labels_r): Set it.
20233         * lto-streamer-in.c (input_struct_function_base): Read it.
20234         * lto-streamer-out.c (output_struct_function_base): Write it.
20235         * tree-inline.c (has_label_address_in_static_1): Remove.
20236         (copy_forbidden): Remove fndecl parameter; test
20237         has_forced_label_in_static.
20238         (inline_forbidden_p): Update call to copy_forbidden.
20239         (tree_versionable_function_p): Likewise.
20240         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20241         (chkp_versioning): Likewise.
20242         * tree-inline.h (copy_forbidden): Update decl.
20244 2016-03-16  Marek Polacek  <polacek@redhat.com>
20246         PR c/70093
20247         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20248         function being thunked if the result type doesn't have fixed size.
20249         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20250         doesn't have fixed size.
20252 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
20254         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
20255         reporting malformed loop nest.
20257 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20259         PR lto/70187
20260         * ipa-devirt.c (possible_polymorphic_call_targets): Move
20261         nodes.length () == 1 test to before first nodes[0] access.
20263 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20265         PR tree-optimization/68715
20266         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
20267         single_pred_p test.
20269 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20271         PR tree-optimization/68809
20272         * graphite-scop-detection.c (same_close_phi_node): Test if result types
20273         are the same.
20275 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
20276             Sandra Loosemore  <sandra@codesourcery.com>
20278         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
20279         on leaf attribute. Mention ELF interposition problems.
20281 2016-03-16  Alan Modra  <amodra@gmail.com>
20283         PR rtl-optimization/69195
20284         PR rtl-optimization/47992
20285         * ira.c (indirect_jump_optimize): Ignore artificial defs.
20286         Add comments.
20288 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20290         PR bootstrap/69513
20291         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
20293 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20295         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
20297 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
20299         PR rtl-optimization/70222
20300         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
20301         optimization if mode is different from result_mode, queue up masking
20302         of the result in outer_op.  Formatting fix.
20304         PR middle-end/70239
20305         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
20306         of safe_grow.
20308 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20310         PR rtl-optimization/69032
20311         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
20312         looping backwards over basic block insns.
20314 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20316         PR target/66660
20317         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
20318         to non-speculative when propagating trap bits.
20320 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20322         PR rtl-optimization/63384
20323         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
20324         DEBUG_INSN_P insns.
20326 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20328         PR target/64411
20329         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
20330         factored out from ...
20331         (sched_analyze_insn): ... here.
20332         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
20333         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
20334         get_implicit_reg_pending_clobbers in it.
20335         (setup_id_reg_sets): Use setup_id_implicit_regs.
20336         (deps_init_id): Ditto.
20338 2016-03-15  Tom de Vries  <tom@codesourcery.com>
20340         PR ipa/70161
20341         * cgraph.c (cgraph_node::get_body): Save, reset and restore
20342         dump_file_name.
20343         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
20344         execute_function_dump.
20345         (execute_one_pass): Don't dump function if it will be dumped after ipa
20346         transform.
20348 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
20350         * genrecog.c (match_pattern_2): If pred is NULL don't call
20351         safe_predicate_mode on it.
20353 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
20355         PR middle-end/70219
20356         * lra-constraints.c (delete_move_and_clobber): Change assertion
20357         to also allow dregno == 0.
20359 2016-03-14  Richard Henderson  <rth@redhat.com>
20361         PR tree-opt/68714
20362         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
20363         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
20364         (reassociate_bb): Use optimize_vec_cond_expr; avoid
20365         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
20366         on vectors.
20368 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
20370         PR target/70083
20371         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
20372         regs.
20373         (lra_create_live_ranges_1): initialize hard register biggest_mode to
20374         VOIDmode.
20375         * lra-constraints.c (split_reg): For hard regs, try to find the
20376         biggest single-register mode used in the function.
20378 2016-03-14  Richard Biener  <rguenther@suse.de>
20380         PR tree-optimization/56365
20381         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
20382         constants to compare against.
20384 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
20386         PR target/70098
20387         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
20388         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
20389         (define_split for the GPR case): Use int_reg_operand instead of
20390         gpc_reg_operand for the output.
20392 2016-03-14  Tom de Vries  <tom@codesourcery.com>
20394         PR tree-optimization/70045
20395         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
20396         create_empty_if_region_on_edge argument.
20398 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
20400         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
20401         (STACK_CHECK_PROTECT): Likewise.
20402         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20403         (STACK_CHECK_PROTECT): Likewise.
20404         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20405         (STACK_CHECK_PROTECT): Likewise.
20406         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20407         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20408         (STACK_CHECK_PROTECT): Likewise.
20410 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
20412         PR rtl-optimization/69307
20413         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20414         registers in modes that span more than one register.
20416 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
20418         PR target/69614
20419         * lra-constraints.c (delete_move_and_clobber): New.
20420         (remove_inheritance_pseudos): Use it.
20422 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
20424         PR ada/70017
20425         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20426         the libcall is LCT_THROW.
20427         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20428         for the checking routine.
20430 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20432         PR target/70131
20433         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20434         optimization if we have direct move.
20435         (roundu32<mode>2_fprs): Likewise.
20437 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
20439         PR target/70123
20440         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20441         be rematerialized.
20442         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20443         Arguments swapped.  All callers changed.  Take reg_renumber into
20444         account, and Calculate and compare register ranges for hard regs.
20446 2016-03-11  Jeff Law  <law@redhat.com>
20448         PR tree-optimization/70190
20449         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20450         Handle cases where we can not extract the taken edge, even though we
20451         found a constant value.
20453         PR tree-optimization/64058
20454         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20455         (num_coalesce_pairs): Move up earlier in file.
20456         (find_coalesce_pair): Initialize the INDEX field for each pair
20457         discovered.
20458         (compare_pairs): No longer sort on the elements in each pair.
20459         Instead break ties with the index of the coalesce pair.
20461 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20463         PR target/70002
20464         * config/aarch64/aarch64-protos.h
20465         (aarch64_save_restore_target_globals): New prototype.
20466         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20467         Call the above when popping pragma.
20468         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20469         New function.
20470         (aarch64_set_current_function): Rewrite using the above.
20472 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20474         PR tree-optimization/70177
20475         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20476         (extract_ops_from_tree): ... this.  In the 2 argument
20477         overload remove _1 suffix.
20478         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20479         (extract_ops_from_tree): ... this.
20480         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20481         Adjust callers.
20482         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20483         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20484         extract_ops_from_tree instead of 2 operand one.
20486 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
20488         PR tree-optimization/70013
20489         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20490         for constant-pool entries.
20492 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20494         PR rtl-optimization/70174
20495         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20496         followed by gen_lowpart on force_reg instead of just gen_lowpart.
20498         PR tree-optimization/70169
20499         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20500         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
20501         for unknown codes.
20503 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
20504             Jakub Jelinek  <jakub@redhat.com>
20506         PR target/70160
20507         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20508         of uninitialized values.
20510 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20512         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20513         define_expand.
20514         ("*trunctddd2"): New pattern definition.
20515         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20516         TD->DD truncation.
20518 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20520         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20521         definitions for BFP and DFP rounding modes.
20522         ("fixuns_truncdddi2", "fixuns_trunctddi2")
20523         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20524         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20525         ("fix_trunctf<mode>2"): Use the new constants instead of magic
20526         numbers.
20528 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20530         * config/s390/constraints.md: Adjust comment.
20531         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
20532         s390_decompose_addrstyle_without_index.
20533         * config/s390/predicates.md (shift_count_or_setmem_operand):
20534         Rename to setmem_operand.
20535         * config/s390/s390-protos.h
20536         (s390_decompose_shift_count): Rename to
20537         s390_decompose_addrstyle_without_index.
20538         * config/s390/s390.c (s390_decompose_shift_count)
20539         (s390_mem_constraint, print_shift_count_operand)
20540         (print_operand_address, print_operand): Rename
20541         s390_decompose_shift_count to
20542         s390_decompose_addrstyle_without_index and rename
20543         print_shift_count_operand to print_addrstyle_operand troughout the
20544         file.
20545         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20546         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20547         Rename shift_count_or_setmem_operand to setmem_operand.
20548         * config/s390/vx-builtins.md ("vec_insert<mode>")
20549         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20550         nonmemory_operand.
20552 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20554         PR target/70168
20555         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20556         Handle overlapping retval and newval.
20558 2016-03-10  Nick Clifton  <nickc@redhat.com>
20560         PR target/7044
20561         * config/aarch64/aarch64.c
20562         (aarch64_override_options_after_change_1): When forcing
20563         flag_omit_frame_pointer to be true, use a special value that can
20564         be detected if this function is called again, thus preventing
20565         flag_omit_leaf_frame_pointer from being forced to be false.
20567 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20569         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20570         Set x_flag_omit_leaf_frame_pointer when handling
20571         -momit-leaf-frame-pointer.
20573 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20575         PR lto/69589
20576         * cgraph.c (cgraph_node::dump): Dump split_part and
20577         indirect_call_target.
20578         * cgraph.h (cgraph_node): Add indirect_call_target flag.
20579         * ipa.c (has_addr_references_p): Cleanup.
20580         (is_indirect_call_target_p): New.
20581         (walk_polymorphic_call_targets): Do not mark virtuals that may be
20582         called indirectly as local.
20583         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20585 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20587         PR ipa/69630
20588         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20589         on cxa_pure_virtual.
20591 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20593         PR lto/69589
20594         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20596 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20598         PR lto/69589
20599         * tree.c (need_assembler_name_p): Only record main variant type names.
20601 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20603         PR target/70113.
20604         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20605         Always define to 0 or 1.
20606         (TARGET_FIX_ERR_A53_843419): New macro.
20607         * config/aarch64/aarch64-elf-raw.h
20608         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20609         * config/aarch64/aarch64-linux.h: Likewise.
20610         * config/aarch64/aarch64.c
20611         (aarch64_override_options_after_change_1): Do not default
20612         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20613         843419 is on.
20614         (aarch64_attributes): Handle fix-cortex-a53-843419.
20615         (aarch64_can_inline_p): Likewise.
20616         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20618 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
20619             Jakub Jelinek  <jakub@redhat.com>
20621         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20622         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20623         DECL_COMMONS if flag_unconstrained_commons is set.
20624         * tree-dfa.c (get_ref_base_and_extent): Likewise.
20625         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20626         (funconstrained-commons): Document.
20628 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20630         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20631         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20633 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
20635         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20636         has a proper number of elements.
20638 2016-03-10  Alan Modra  <amodra@gmail.com>
20640         PR rtl-optimization/69195
20641         PR rtl-optimization/47992
20642         * ira.c (recorded_label_ref): Delete.
20643         (update_equiv_regs): Return void.
20644         (indirect_jump_optimize): New function.
20645         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20646         before regstat_compute_ri.  Don't rebuild_jump_labels here.
20647         Delete update_regstat.
20649 2016-03-10  Richard Biener  <rguenther@suse.de>
20651         PR tree-optimization/70128
20652         * tree-ssa-structalias.c (set_uids_in_ptset): Set
20653         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20655 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20657         PR tree-optimization/70152
20658         * tree-sra.c (replace_removed_params_ssa_names): Copy over
20659         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20661         PR target/70086
20662         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20663         instead of gen_sse2_loadlpd.
20664         * config/i386/sse.md (*vec_concatv2df): Rename to...
20665         (vec_concatv2df): ... this.
20667         PR tree-optimization/70127
20668         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20670 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20672         PR c/68473
20673         PR c++/70105
20674         * diagnostic-show-locus.c (compatible_locations_p): New function.
20675         (layout::layout): Sanitize ranges using compatible_locations_p.
20677 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20679         PR c/68473
20680         PR c++/70105
20681         * diagnostic-show-locus.c (layout_range::layout_range): Replace
20682         location_range param with three const expanded_locations * and a
20683         bool.
20684         (layout::layout): Replace call to
20685         rich_location::lazily_expand_location with get_expanded_location.
20686         Extract the range and perform location expansion here, passing
20687         the results to the layout_range ctor.
20688         * diagnostic.c (source_range::debug): Delete.
20689         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20690         of rich_location::get_expanded_location.
20691         * gcc-rich-location.c (get_range_for_expr): Delete.
20692         (gcc_rich_location::add_expr): Reimplement to avoid the
20693         rich_location::add_range overload that took a location_range,
20694         passing a location_t instead.
20696 2016-03-09  Richard Biener  <rguenther@suse.de>
20697         Jakub Jelinek  <jakub@redhat.com>
20699         PR tree-optimization/70138
20700         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20701         Also skip vect_double_reduction_def.
20703 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20705         PR target/70049
20706         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20707         if the operand is "m".
20709 2016-03-09  Nathan Sidwell  <nathan@acm.org>
20711         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20713 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20715         * config/i386/i386.c (processor_target_table): Fix cost table
20716         intialization order for znver1.
20718 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20720         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20721         - becuase -> because.
20722         * ipa-reference.c (ignore_module_statics): Likewise.
20723         * cgraph.c (cgraph_node::get_body): Likewise.
20724         * ipa-inline.c (early_inliner): Likewise.
20725         * ipa-devirt.c (types_same_for_odr): Likewise.
20726         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20727         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20729 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20731         * tree-ssa-math-opts.c: Fix typo in comment.
20733 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20735         PR target/70110
20736         * config/i386/i386.c (scalar_chain::make_vector_copies,
20737         scalar_chain::convert_reg): Call end_sequence in between
20738         get_insns and emit_conversion_insns rather than after both
20739         calls.
20741 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
20743         PR target/70064
20744         * config/i386/i386.h (machine_function): Add
20745         pc_thunk_call_expanded flag.
20746         (ix86_pc_thunk_call_expanded): New define.
20747         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20748         (*set_got): Rename insn pattern from set_got.
20749         (*set_got_labelled): Rename inst pattern from set_got_labelled.
20750         * config/i386/i386.c (ix86_compute_frame_layout): Use
20751         ix86_pc_thunk_call_expanded to prevent red-zone.
20753 2016-03-07  Martin Jambor  <mjambor@suse.cz>
20755         * hsa.h (hsa_get_ctor_statements): Declare.
20756         (hsa_get_dtor_statements): Likewise.
20757         (hsa_get_kernel_dispatch_type): Likewise.
20758         * hsa.c (hsa_get_ctor_statements): New function.
20759         (hsa_get_dtor_statements): Likewise.
20760         (hsa_get_kernel_dispatch_type): Likewise.
20761         * hsa-brig.c (hsa_cdtor_statements): Removed.
20762         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20763         hsa_get_dtor_statements.
20764         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20765         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20767 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20769         * config/arm/arm-cores.def (cortex-r8): New.
20770         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20771         * config/arm/arm-tune.md: Likewise.
20772         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20774 2016-03-07  Martin Sebor  <msebor@redhat.com>
20776         PR rtl-optimization/19705
20777         * doc/invoke.texi (Options That Control Optimization): Clarify
20778         -fno-branch-count-reg.
20780 2016-02-26  Richard Biener  <rguenther@suse.de>
20781             Jeff Law  <law@redhat.com>
20783         PR tree-optimization/69740
20784         * cfghooks.c (remove_edge): Request loop fixups if we delete
20785         an edge that might turn an irreducible loop into a natural
20786         loop.
20787         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20788         Move after definition of loops_state_clear.
20790 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
20792         PR rtl-optimization/69052
20793         * rtlanal.c (commutative_operand_precedence): Set higher precedence
20794         to CONST_WIDE_INT.
20796 2016-03-07  Tom de Vries  <tom@codesourcery.com>
20798         PR tree-optimization/70116
20799         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20800         is_tm_ending stmts and ubsan/asan internal functions.
20801         (find_duplicate): Use it.  Don't test is_tm_ending here.
20803 2016-03-07  Richard Biener  <rguenther@suse.de>
20805         PR tree-optimization/70115
20806         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20807         (propagate_constants_for_unrolling): Use replace_uses_by.
20809 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
20811         PR middle-end/69916
20812         * omp-low.c (struct oacc_loop): Add ifns.
20813         (new_oacc_loop_raw): Initialize it.
20814         (finish_oacc_loop): Clear mask & flags if no ifns.
20815         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20816         (oacc_loop_xform_loop): Add ifns arg & adjust.
20817         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20819 2016-03-07  Richard Henderson  <rth@redhat.com>
20821         PR rtl-opt/70061
20822         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20823         (insert_value_copy_on_edge): Likewise.
20825 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20827         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20829 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20831         PR target/62281
20832         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20834 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20836         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20838 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20840         Fix sseimul type attribute.
20841         * config/i386/znver1.md
20842         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20843         znver1_sseimul_avx256_load) : Fix the type attribute.
20844         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20845         pipe usage and latency.
20847 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
20849         PR c++/70084
20850         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20851         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20852         to the right type.
20854 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20856         PR c/69973
20857         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20859         PR rtl-optimization/69941
20860         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20861         the reg share its mode.
20863 2016-03-04  Jeff Law  <law@redhat.com>
20865         PR tree-optimization/69196
20866         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20867         If the both SSA_NAMEs are anonymous, then consider them unassociated
20868         and include the PHI in the statement count.
20870 2016-03-05  Tom de Vries  <tom@codesourcery.com>
20872         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20873         construct in oacc routine.  Check for oacc region in oacc routine.
20875 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20877         PR target/70062
20878         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
20879         2016-02-22 changes, instead don't recurse if RECUR is already true.
20880         Don't change *dynamic_check if RECUR.  Adjust recursive caller
20881         to pass true to the new argument.
20882         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20884         PR target/70059
20885         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20886         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20887         fixes.
20888         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
20890 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20892         PR rtl-optimization/57676
20893         * lra-assigns.c (lra_assign): Guard test for maximum iterations
20894         with flag_checking.
20896 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
20898         * tree-vect-patterns.c (search_type_for_mask): Handle
20899         comparison of booleans.
20901 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20903         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20904         Fix @xref usage.
20906         PR debug/69947
20907         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20908         all other ops that have dw_val_class_die_ref operands,
20909         and DW_OP_GNU_entry_value.
20911 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20913         PR rtl-optimization/69904
20914         * config/arm/arm.c (arm_cannot_copy_insn_p):
20915         Return true for load-exclusive instructions.
20917 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
20919         PR target/70021
20920         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20921         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20922         the pattern no matter if it is used just by non-pattern, pattern
20923         or mix thereof.
20924         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20925         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20926         oprnd1 def_stmt is in pattern, don't look through it.
20928 2016-03-03  Marek Polacek  <polacek@redhat.com>
20930         PR middle-end/70050
20931         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20933 2016-03-03  Martin Liska  <mliska@suse.cz>
20935         PR tree-optimization/70043
20936         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20937         previous statement if we see a debug statement.
20939 2016-03-03  Richard Biener  <rguenther@suse.de>
20941         PR tree-optimization/55936
20942         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20943         parameter and guard unsafe equivalence use.
20944         (vrp_evaluate_conditional_warnv_with_ops): Always use
20945         safe equivalences but not via the quadratic compare_names
20946         helper.
20948 2016-03-03  Michael Collison  <michael.collison@linaro.org>
20950         PR target/70014
20951         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20952         for operand 1 to s_register_operand. Change predicate for operand
20953         2 to arm_not_immediate_operand.
20955 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
20957         * doc/tm.texi: Regenerated.
20959 2016-03-02  Richard Henderson  <rth@redhat.com>
20961         PR rtl-opt/67145
20962         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20963         simplification when all args are positive non-fixed registers.
20965 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20967         * target.def (lra_p): Specify that new ports should use LRA.
20969 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
20971         PR libgomp/69555
20972         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20973         gimplify_type_sizes the type they refer to.
20974         (omp_notice_variable): Handle reference vars to VLAs.
20975         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20976         reference to VLA decls in the second pass instead of first pass.
20978 2016-03-02  Tom de Vries  <tom@codesourcery.com>
20980         PR tree-optimization/68659
20981         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
20982         new_expr == NULL_TREE.
20983         (get_new_name): Handle ADDR_EXPR.
20985 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
20987         PR rtl-optimization/69052
20988         * loop-invariant.c (canonicalize_address): New function.
20989         (inv_can_prop_to_addr_use): Check validity of address expression
20990         which is canonicalized by above function.
20992 2016-03-02  Alan Modra  <amodra@gmail.com>
20994         PR ipa/69990
20995         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
20996         larger alignment.
20998 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
21000         PR target/70028
21001         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21002         (*movhi_internal): Put mask moves from and to memory separately
21003         from moves from/to GPRs.
21005 2016-03-02  Richard Biener  <rguenther@suse.de>
21007         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21008         GENERIC expressions in GIMPLE.
21010 2016-03-02  Richard Biener  <rguenther@suse.de>
21012         * config/i386/i386.c (type_natural_mode): Fix typo.
21014 2016-03-02  Nick Clifton  <nickc@redhat.com>
21016         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21018 2016-03-02  Richard Biener  <rguenther@suse.de>
21019             Uros Bizjak  <ubizjak@gmail.com>
21021         PR target/67278
21022         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21024 2016-03-02  Richard Biener  <rguenther@suse.de>
21026         PR middle-end/67278
21027         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21029 2016-03-02  Marek Polacek  <polacek@redhat.com>
21031         PR c/67854
21032         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21033         "is promoted to" warning.
21035 2016-03-01  DJ Delorie  <dj@redhat.com>
21037         * config.gcc: Deprecate mep-*.
21039 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
21041         PR middle-end/70025
21042         * lra-constraints.c (regno_val_use_in): New.
21043         (match_reload): Use it instead of regno_use_in.
21045 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
21047         PR rtl-optimization/70007
21048         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21049         references present in REG_EQUAL notes attached to non-SET patterns.
21051 2016-03-01  Jeff Law  <law@redhat.com>
21053         PR tree-optimization/69196
21054         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21055         Appropriately clamp the number of statements to copy when the
21056         thread path does not traverse a loop backedge.
21058         PR tree-optimization/69196
21059         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21060         Do count some PHIs in the thread path against the insn count.  Decrease
21061         final statement count by one as the control statement in the last
21062         block will get removed.  Remove special cased code for handling PHIs
21063         in the last block.
21065 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
21067         PR target/70027
21068         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21069         asm dialect alternatives to explicit GOTPCREL calls.
21071 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
21073         PR ada/70017
21074         * ira.c (do_reload): Issue warning for generic stack checking here...
21075         * reload1.c (reload): ...instead of here and streamline it.
21077 2016-03-01  Nick Clifton  <nickc@redhat.com>
21079         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21081 2016-03-01  Richard Biener  <rguenther@suse.de>
21083         PR tree-optimization/69983
21084         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21085         types and fall back to operand_equal_p.
21087 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21089         Revert
21090         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21092         * config/s390/constraints.md ("jm8"): New constraint.
21093         * config/s390/predicates.md ("const_int_8bitset_operand"): New
21094         predicate.
21095         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21096         into ...
21097         ("*setmem_long<setmem_and>"): New pattern.
21098         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21099         into ...
21100         ("*setmem_long_31z<setmem_and>"): New pattern.
21101         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21102         New substitution rules with the required attributes.
21105 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21107         Revert
21108         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21110         * gensupport.c (process_substs_on_one_elem): Split loop to
21111         complete mark_operands_used_in_match_dup on all expressions in the
21112         vector first.
21113         (adjust_operands_numbers): Inline into process_substs_on_one_elem
21114         and remove function.
21116 2016-03-01  Richard Biener  <rguenther@suse.de>
21118         PR middle-end/70022
21119         * fold-const.c (fold_indirect_ref_1): Fix range checking for
21120         vector BIT_FIELD_REF extract.
21122 2016-03-01  Richard Biener  <rguenther@suse.de>
21124         PR tree-optimization/69994
21125         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21127 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
21129         PR tree-optimization/69956
21130         * tree-vect-stmts.c (supportable_widening_operation): Support
21131         multi-step conversion of boolean vectors.
21132         (supportable_narrowing_operation): Likewise.
21134 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21136         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21137         anymore.
21139 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21141         * config/s390/subst.md (DSI_VI): New mode iterator.
21142         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21143         * config/s390/vector.md ("vec_set<mode>"): Move expander before
21144         the insn definition.
21145         ("*vec_set<mode>"): Change predicate and add alternative to
21146         support only either register or const_int operands as element
21147         selector.
21148         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21149         operands.
21150         ("vec_extract<mode>"): New expander.
21151         ("*vec_extract<mode>"): New insn definition supporting reg and
21152         const_int element selectors.
21153         ("*vec_extract<mode>_plus"): New insn definition supporting
21154         reg+const_int element selectors.
21155         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21156         following expander+insn definition.
21157         ("<vec_shifts_name><mode>3"): New expander.
21158         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21160 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21162         * config/s390/s390.md ("*tabort_1"): Change predicate to
21163         nonmemory_operand.  Add a second alternative to cover
21164         register as well as const int operands.
21165         ("*tabort_1_plus"): New pattern definition.
21167 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21169         * config/s390/s390.md ("*ashrdi3_cc_31")
21170         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21171         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21172         Merge insn definitions into ...
21173         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21174         New pattern definition.
21175         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21176         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21177         ("*ashr<mode>3_and"): Merge insn definitions into ...
21178         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21179         New pattern definition.
21180         * config/s390/subst.md ("addr_style_op_cc_subst")
21181         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21182         substitutions patterns plus attributes.
21183         Add ashiftrt to SUBST iterator.
21185 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21187         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21188         op2 to nonmemory_operand.
21189         ("*<shift>di3_31", "*<shift>di3_31_and"):
21190         Merge into single pattern definition ...
21191         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21192         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21193         pattern definition ...
21194         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21195         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21196         iterator.
21198 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21200         * config/s390/predicates.md (const_int_6bitset_operand): New
21201         predicate.
21202         * config/s390/s390.md: Include subst.md.
21203         ("rotl<mode>3"): New expander.
21204         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21205         ...
21206         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21207         * config/s390/subst.md: New file.
21209 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21211         * config/s390/s390.md ("op_type", "atype", "length" attributes):
21212         Remove RRR type.  It doesn't really exist.
21213         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21214         attributes.
21215         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21216         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21217         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21218         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21219         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21220         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21221         `enabled' attribute.
21223 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21225         * gensupport.c (process_substs_on_one_elem): Split loop to
21226         complete mark_operands_used_in_match_dup on all expressions in the
21227         vector first.
21228         (adjust_operands_numbers): Inline into process_substs_on_one_elem
21229         and remove function.
21231 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
21233         PR target/69706
21234         * config/sparc/sparc.c (NWORDS_UP): Rename to...
21235         (CEIL_NWORDS): ...this.  Use CEIL macro.
21236         (compute_fp_layout): Adjust to above renaming.
21237         (function_arg_union_value): Likewise.
21238         (sparc_arg_partial_bytes): Likewise.
21239         (sparc_function_arg_advance): Likewise.
21241 2016-02-29  Jeff Law  <law@redhat.com>
21243         PR tree-optimization/70005
21244         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21245         where an object with a boolean range is compared against a value
21246         outside [0..1].
21248         PR tree-optimization/69999
21249         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21250         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21251         loop cleanups.
21253 2016-02-29  Richard Biener  <rguenther@suse.de>
21255         PR tree-optimization/69994
21256         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
21257         (get_unary_op): Look through nop conversions.
21258         (ops_equal_values_p): New function, look for equality diregarding
21259         nop conversions.
21260         (eliminate_plus_minus_pair): Use ops_equal_values_p
21261         (repropagate_negates): Do not use get_unary_op here.
21263 2016-02-29  Martin Liska  <mliska@suse.cz>
21265         * system.h: Poison ENABLE_CHECKING macro.
21267 2016-02-29  Martin Liska  <mliska@suse.cz>
21269         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
21270         is presented in dump flags.
21271         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21272         (hsa_regalloc): Likewise.
21274 2016-02-19  Richard Biener  <rguenther@suse.de>
21276         PR tree-optimization/69980
21277         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
21278         permutation of those we need to keep.
21280 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
21282         PR target/69706
21283         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
21284         (NWORDS_UP): ...this
21285         (init_cumulative_args): Minor tweaks.
21286         (sparc_promote_function_mode): Likewise.
21287         (scan_record_type): Delete.
21288         (traverse_record_type): New function template.
21289         (classify_data_t): New structure type.
21290         (classify_registers): New inline function.
21291         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
21292         exhausted.  Instantiate traverse_record_type on classify_registers and
21293         deal with the case of a structure passed in slot #15 with no FP field
21294         in the first word.
21295         (assign_data_t): New structure type.
21296         (compute_int_layout): New static function.
21297         (compute_fp_layout): Likewise.
21298         (count_registers): New inline function.
21299         (assign_int_registers): New static function.
21300         (assign_fp_registers): Likewise.
21301         (assign_registers): New inline function.
21302         (function_arg_record_value_1): Delete.
21303         (function_arg_record_value_2): Likewise.
21304         (function_arg_record_value_3): Likewise.
21305         (function_arg_record_value): Adjust to above changes.  Instantiate
21306         traverse_record_type on count_registers to first count the number of
21307         registers to be used and then on assign_registers to assign them.
21308         (function_arg_union_value): Adjust to above renaming.
21309         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
21310         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
21311         case of a structure passed in slot #15
21312         (sparc_function_arg_advance): Likewise.
21313         (function_arg_padding): Minor tweak.
21315 2016-02-29  Richard Biener  <rguenther@suse.de>
21317         PR tree-optimization/69720
21318         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
21319         the adjustment_def path for possibly vectorized defs.
21320         (vect_create_epilog_for_reduction): Handle vectorized initial
21321         defs properly.
21323 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
21325         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
21327 2016-02-27  Jeff Law  <law@redhat.com>
21329         Revert
21330         2016-02-26  Richard Biener  <rguenther@suse.de>
21331                     Jeff Law  <law@redhat.com>
21333         PR tree-optimization/69740
21334         * cfghooks.c (remove_edge): Request loop fixups if we delete
21335         an edge that might turn an irreducible loop into a natural
21336         loop.
21338 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
21340         PR rtl-optimization/69896
21341         * tree-vect-generic.c (get_compute_type): Avoid single element
21342         vector types.
21344 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
21346         Rename the AArch64 tuning option and related functions to enable the
21347         Newton series for the reciprocal square root to reflect its
21348         approximative characteristic.
21350         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
21351         function to "aarch64_emit_approx_rsqrt".
21352         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
21353         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
21354         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
21355         (xgene1_tunings): Likewise.
21356         (use_rsqrt_p): Likewise.
21357         (aarch64_emit_swrsqrt): Use new function name.
21358         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
21359         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
21360         text explaining this option.
21361         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
21363 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
21365         PR target/69969
21366         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21367         complain about -mallow-movmisalign without -mvsx if
21368         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
21370 2016-02-26  Joel Sherrill  <joel@rtems.org>
21372         * config.gcc: Add x86_64-*-rtems*.
21373         * config/i386/rtems-64.h: New file.
21375 2016-02-26  Joel Sherrill  <joel@rtems.org>
21377         * config.gcc: Add aarch64-*-rtems*.
21378         * config/aarch64/rtems.h: New file.
21380 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
21382         PR target/69946
21383         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
21384         shift amount using %h.  Add comment.
21386 2016-02-26  Richard Biener  <rguenther@suse.de>
21387             Jeff Law  <law@redhat.com>
21389         PR tree-optimization/69740
21390         * cfghooks.c (remove_edge): Request loop fixups if we delete
21391         an edge that might turn an irreducible loop into a natural
21392         loop.
21394 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21396         PR middle-end/69920
21397         * tree-sra.c (sra_modify_assign): Do not remove loads of
21398         uninitialized aggregates to SSA_NAMEs.
21400 2016-02-26  Richard Henderson  <rth@redhat.com>
21402         PR target/69709
21403         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21404         pseudo in case the target rtx matches the source of the left
21405         shift.
21407 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21409         PR hsa/69568
21410         * hsa.h (hsa_type_packed_p): Declare.
21411         * hsa.c (hsa_type_packed_p): New function.
21412         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21413         loads.
21414         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21415         * hsa-brig.c (emit_basic_insn): Likewise.
21417 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21419         pr hsa/69674
21420         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21421         pointers.
21422         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21424 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21426         * hsa.h (is_a_helper): New overload for hsa_op_immed for
21427         hsa_op_with_type operands.
21428         (hsa_unsigned_type_for_type): Declare.
21429         * hsa.c (hsa_unsigned_type_for_type): New function.
21430         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21431         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21432         the finalizer.  Do not emit extra move.
21434 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21436         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21437         atomic operations in private segment.
21439 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21441         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21442         statements to wi->info.  Also disallow omp simd constructs.
21443         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21444         for not gridifying.  Dump special string for omp_for.
21446 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21448         PR target/69245
21449         * config/aarch64/aarch64.c (aarch64_set_current_function):
21450         Save/restore target globals when switching to
21451         target_option_default_node.
21453 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21455         PR target/69613
21456         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21457         Return 0 if !SHIFT_COUNT_TRUNCATED.
21459 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
21460             Eric Botcazou  <ebotcazou@adacore.com>
21462         PR rtl-optimization/69891
21463         * dse.c (scan_insn): If we can't figure out memset arguments
21464         or they are non-constant, call clear_rhs_from_active_local_stores.
21466 2016-02-26  Martin Liska  <mliska@suse.cz>
21468         * doc/extend.texi: Mention clog10, clog10f an clog10l
21469         in Builtins section.
21471 2016-02-26  Martin Liska  <mliska@suse.cz>
21473         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21474         CHECKING_P.
21475         (resolve_args_picking_1): Likewise.
21476         * dwarf2out.h (struct GTY): Likewise.
21478 2016-02-26  Martin Liska  <mliska@suse.cz>
21480         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21481         with flag_checking.
21482         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21484 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
21485             Martin Liska  <mliska@suse.cz>
21487         * doc/install.texi: Mention --enable-valgrind-annotations.
21489 2016-02-26  Richard Biener  <rguenther@suse.de>
21491         PR tree-optimization/69551
21492         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21493         looking through aliases adjust DECL_PT_UID to refer to the
21494         ultimate alias target.
21496 2016-02-25  Martin Liska  <mliska@suse.cz>
21498         PR middle-end/69919
21499         * alloc-pool.c (after_memory_report): New variable.
21500         * alloc-pool.h (base_pool_allocator ::release): Do not use
21501         the infrastructure if after_memory_report.
21502         * toplev.c (toplev::main): Mark after memory report.
21504 2016-02-25  Richard Biener  <rguenther@suse.de>
21506         PR tree-optimization/48795
21507         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21509 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
21511         PR driver/68463
21512         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
21513         offloading is enabled and -fopenacc or -fopenmp is specified.
21514         (CRTOFFLOADEND): Likewise.
21515         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21516         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21517         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21518         (offload_objects_file_name): New static var.
21519         (tool_cleanup): Remove offload_objects_file_name file.
21520         (find_offloadbeginend): Replace with ...
21521         (find_crtoffloadtable): ... this.
21522         (run_gcc): Remove offload_argc and offload_argv.
21523         Get offload_objects_file_name from -foffload-objects=... option.
21524         Read names of object files with offload from this file, pass them to
21525         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
21526         don't pass offloadbegin and offloadend to the linker.  Don't pass
21527         offload non-LTO files to the linker, because now they're not claimed.
21529 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
21531         PR ipa/69630
21532         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21533         on builtin_unreachable.
21535 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
21537         PR rtl-optimization/69896
21538         * regcprop.c: Include cfgrtl.h.
21539         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21540         than remembered mode, either delete it (if noop_move_p), or
21541         treat like copy_p but not noop_p instruction.
21543 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21545         PR debug/69705
21546         * dwarf2out.c (gen_variable_die): Work around buggy LTO
21547         - allow NULL decl for Fortran DW_TAG_common_block variables.
21549 2016-02-24  Jason Merrill  <jason@redhat.com>
21551         * common.opt (flifetime-dse): Add -flifetime-dse=1.
21553 2016-02-24  Richard Biener  <rguenther@suse.de>
21554             Jakub Jelinek  <jakub@redhat.com>
21556         PR middle-end/69760
21557         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21558         conditionally executed ops to well-defined overflow behavior.
21560 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21562         PR middle-end/69915
21563         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21564         elements.
21566 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21568         PR rtl-optimization/69886
21569         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21570         argument.  Use it when checking validity of set instructions.
21571         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21572         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21573         callsite.
21574         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21575         * store-motion.c (find_moveable_store): Update
21576         can_assign_to_reg_without_clobbers_p callsite.
21578 2016-02-24  Richard Biener  <rguenther@suse.de>
21580         PR middle-end/68963
21581         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21582         bogus check.
21583         (record_nonwrapping_iv): Do not fall back to the low/high bound
21584         for non-constant IV bases if the stmt is not always executed.
21586 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21588         * config/arm/arm-cores.def (cortex-a32): New entry.
21589         * config/arm/arm-tables.opt: Regenerate.
21590         * config/arm/arm-tune.md: Regenerate.
21591         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21592         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21593         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21594         for -mcpu and -mtune.
21596 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21598         PR target/69875
21599         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21600         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21601         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21602         (atomic_loaddi_1): Delete.
21603         (atomic_loaddi): Rewrite expander using the above changes.
21605 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21607         PR c/69918
21608         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21609         2 to 3.
21611 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21612             Richard Biener  <rguenth@suse.de>
21614         PR middle-end/69909
21615         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21616         set_mem_attributes if tem is SSA_NAME which got expanded
21617         as a MEM.
21619 2016-02-24  Richard Biener  <rguenther@suse.de>
21621         PR tree-optimization/69907
21622         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21623         end of permutations for BB vectorization.
21625 2016-02-24  Christian Bruel  <christian.bruel@st.com>
21627         * config/arm/arm-c.c (arm_option_override): Initialize
21628         target_option_current_node.
21629         * config/arm/arm.c (arm_pragma_target_parse): Replace
21630         build_target_option_node call by target_option_current_node.
21631         Set target_option_current_node.
21632         Fix comments.
21634 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
21636         PR target/69810
21637         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21638         define_insn_and_split to define_insn.
21639         (zero_extendqi<mode>2_dot2): Same.
21640         (extendqi<mode>2_dot): Same.
21641         (extendqi<mode>2_dot2): Same.
21643 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21645         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21646         and add bypass for AES{D,E} and AESMC pairs.
21647         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21648         and AESMC pairs.
21650 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21652         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21653         series for reciprocal square root in Exynos M1.
21655 2016-02-23  Martin Sebor  <msebor@redhat.com>
21657         PR c/69759
21658         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21659         __builtin_alloca_with_align.
21661 2016-02-23  Richard Henderson  <rth@redhat.com>
21663         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21664         (ix86_register_pragmas): Remove __seg_tls.
21665         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21666         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21667         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21668         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21669         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21670         * doc/extend.texi (__seg_tls): Remove item.
21672 2016-02-23  Richard Biener  <rguenther@suse.de>
21674         * alloc-pool.h (struct allocation_object): Make id member
21675         conditional on CHECKING_P again.
21676         (get_instance): Adjust.
21677         (base_pool_allocator): Likewise.
21679 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
21681         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21682         (parallelize_loops): In OpenACC kernels mode, set n_threads to
21683         zero.
21684         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21685         flag_openacc.
21686         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21688 2016-02-23  Richard Biener  <rguenther@suse.de>
21690         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21691         * bitmap.h (struct bitmap_usage): Likewise.
21692         (bitmap_move): Declare.
21693         * bitmap.c (register_overhead): Take size_t argument.
21694         (bitmap_move): New function.
21695         * df-problems.c (df_rd_transfer_function): Use bitmap_move
21696         to properly account overhead.
21697         * tree.c (free_node): Use tree_size.
21699 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
21701         PR c++/69902
21702         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21703         when inverting comparison.
21705         PR c/69900
21706         * common.opt (Wunreachable-code): Add Warning flag.
21708 2016-02-23  Mark Wielaard  <mjw@redhat.com>
21709             Jakub Jelinek  <jakub@redhat.com>
21711         PR c/69911
21712         * cgraphunit.c (check_global_declaration): Check main_input_filename
21713         and DECL_SOURCE_FILE are not NULL.
21715 2016-02-23  Martin Jambor  <mjambor@suse.cz>
21717         PR tree-optimization/69666
21718         * tree-sra.c (sra_modify_assign): Do not attempt to create
21719         default_def replacements for unscalarizable regions.
21721 2016-02-20  Mark Wielaard  <mjw@redhat.com>
21723         PR c/28901
21724         * cgraphunit.c (check_global_declaration): Check level of
21725         warn_unused_const_variable and main_input_filename.
21726         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21727         (-Wunused-variable): For C implies -Wunused-const-variable=1.
21728         (-Wunused-const-variable): Explain levels 1 and 2.
21730 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21732         PR target/69888
21733         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21734         identical arguments.  Formatting and spelling fixes.
21736         PR target/69885
21737         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21738         be specified.
21740         PR target/69894
21741         PR target/69895
21742         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21743         and m68k-devices.def.
21744         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21745         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21747 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
21749         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21750         and HImode registers.
21752 2016-02-22  Richard Biener  <rguenther@suse.de>
21754         PR tree-optimization/69882
21755         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21756         preserve permutations present because of gaps.
21757         (vect_supported_load_permutation_p): Always continue checking
21758         permutations after vect_attempt_slp_rearrange_stmts.
21760 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
21762         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21763         min_profitable_estimate, rather than min_profitable_iters.
21765 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21767         PR target/69885
21768         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21769         SImode for last match_operand.
21771 2016-02-22  Martin Liska  <mliska@suse.cz>
21773         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21774         return bitsize - 1 as the return value.
21776 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
21778         PR target/69806
21779         PR target/54089
21780         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21781         Handle negative shift counts.
21782         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21783         force_reg on the shift constant.
21784         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
21785         (lshrsi3_d): Handle negative shift counts.
21787 2016-02-22  Richard Biener  <rguenther@suse.de>
21788             Tom de Vries  <tom@codesourcery.com>
21790         * graph.c: Include dumpfile.h.
21791         (print_graph_cfg): Split into three overloads.
21792         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21794 2016-02-22  Tom de Vries  <tom@codesourcery.com>
21796         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21797         dump-fn.
21799 2016-02-22  Richard Biener  <rguenther@suse.de>
21801         PR ipa/37448
21802         * ipa-inline-transform.c (inline_call): When not updating
21803         overall summaries adjust self size by the growth estimate.
21804         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21805         hash-set, do not update overall summaries here.  Renamed from ...
21806         (inline_to_all_callers): ... this which is now wrapping the
21807         above and performing delayed overall summary update.
21808         (early_inline_small_functions): Delay updating of the overall
21809         summary.
21811 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
21813         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21814         variable.
21816 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21818         PR driver/69805
21819         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21820         :%* in %:gt() argument.
21821         (greater_than_spec_func): Adjust for expecting only numbers,
21822         if there are more than two numbers, compare the last two.
21824 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
21826         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21827         -Wnarrowing with -std.
21829 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21831         PR c++/69851
21832         * expr.c (store_field): Don't use bit-field path if exp is
21833         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21834         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21835         and the assignment can be performed by bitwise copy.  Formatting
21836         fix.
21838         PR middle-end/69838
21839         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21840         call copy_reg_eh_region_note_forward on before and/or after sequences
21841         and remove note from insn if it no longer can throw.
21843         PR target/69820
21844         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21845         if TARGET_AVX512BW.
21847 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21849         * config/s390/vector.md: Add missing commutative operand markers
21850         to the patterns which qualify for one.
21851         * config/s390/vx-builtins.md: Likewise.
21853 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21855         * config/s390/vector.md (VI, VI_QHS): Add single element vector
21856         types to mode iterators.
21857         (vec_double): ... and mode attribute.
21858         * config/s390/vx-builtins.md (non_vec_int): Likewise.
21860 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21862         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21863         Change the predicate of op2 from nonimmediate to general and let
21864         reload fix it if necessary.
21866 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21868         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21870 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21872         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21873         mode.
21875 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21877         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21878         * config/s390/s390.c (s390_expand_vec_movstr): New function.
21879         * config/s390/s390.md ("movstr<P:mode>"): Call
21880         s390_expand_vec_movstr.
21882 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21884         * config/s390/s390.md: Add missing output modifier for operand 1
21885         to print it as address properly.
21887 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21889         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21890         * config/s390/2964.md: New file.
21891         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21892         of insn grouping attributes depending on the CPU level.
21893         (s390_get_unit_mask): New function.
21894         (s390_sched_score): Remove the OOO from the scheduling macros.
21895         Add loop to calculate a score for the instruction mix.
21896         (s390_sched_reorder): Likewise plus improve debug output.
21897         (s390_sched_variable_issue): Rename macros as above.  Calculate
21898         the unit distances after actually scheduling an insn.  Improve
21899         debug output.
21900         (s390_sched_init): Clear last_scheduled_unit_distance array.
21901         * config/s390/s390.md: Include 2964.md.
21903 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21905         PR target/69671
21906         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21907         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21908         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21909         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21910         *avx512f_<code>v8div16qi2_mask_1): New insns.
21912 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
21914         PR target/68404
21915         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21916         2016-02-09 change.
21918         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21919         earlyclobber from target.  Use wF constraint for fused memory
21920         address.
21921         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21923 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21924             Martin Liska  <mliska@suse.cz>
21926         PR sanitizer/69863
21927         * cfgexpand.c (asan_sanitize_stack_p): New function.
21928         (partition_stack_vars): Use the function.
21929         (expand_stack_vars): Likewise.
21930         (defer_stack_allocation): Likewise.
21931         (expand_used_vars): Likewise.
21933 2016-02-18  Richard Biener  <rguenther@suse.de>
21935         PR middle-end/69553
21936         * fold-const.c (operand_equal_p): Properly compare offsets for
21937         IMAGPART_EXPR and ARRAY_REF.
21939 2016-02-18  Nick Clifton  <nickc@redhat.com>
21941         PR target/62254
21942         PR target/69610
21943         * config/arm/arm.c (arm_option_override_internal): Disable
21944         interworking if the target does not support thumb instructions.
21945         (arm_reload_in_hi): Handle the case where a register to register
21946         move needs reloading because there is no simple pattern to handle
21947         it.
21948         (arm_reload_out_hi): Likewise.
21950 2016-02-18  Richard Biener  <rguenther@suse.de>
21952         PR middle-end/69854
21953         * match.pd: Don't use fold_binary or fold_unary for folding
21954         constants.
21956 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
21958         PR c++/69850
21959         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21960         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21961         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21962         warn on gimple_no_warning_p statements.
21964 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
21966         * doc/extend.texi (C++ Attributes): Correct description of
21967         warn_unused type attribute.
21969 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21971         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21972         correct instruction.
21974 2016-02-17  Richard Biener  <rguenther@suse.de>
21976         PR rtl-optimization/69609
21977         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
21978         (find_traces_1_round): When ending a trace update cached priority
21979         of successors.
21980         (bb_to_key): Use cached priority when available.
21981         (copy_bb): Initialize cached priority.
21982         (reorder_basic_blocks_software_trace_cache): Likewise.
21984 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21986         PR target/69161
21987         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
21988         New predicate.
21989         (aarch64_comparison_operator): Break overly long line into two.
21990         (aarch64_comparison_operation): Likewise.
21991         * config/aarch64/aarch64.md (cstorecc4): Use
21992         aarch64_comparison_operator_mode instead of
21993         aarch64_comparison_operator.
21994         (cstore<mode>4): Likewise.
21995         (aarch64_cstore<mode>): Likewise.
21996         (*cstoresi_insn_uxtw): Likewise.
21997         (cstore<mode>_neg): Likewise.
21998         (*cstoresi_neg_uxtw): Likewise.
22000 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22002         PR target/69161
22003         * config/arm/predicates.md (arm_comparison_operator_mode):
22004         New predicate.
22005         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22006         instead of arm_comparison_operator.
22007         (*mov_negscc): Likewise.
22008         (*mov_notscc): Likewise.
22009         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22010         (*thumb2_mov_negscc): Likewise.
22011         (*thumb2_mov_negscc_strict_it): Likewise.
22012         (*thumb2_mov_notscc): Likewise.
22013         (*thumb2_mov_notscc_strict_it): Likewise.
22015 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
22017         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22018         Add missing return.
22020 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
22022         * config/visium/visium.c (machine_libfunc_index): New enum.
22023         (machine_libfuncs): New structure.
22024         (visium_libfuncs): New static variable.
22025         (TARGET_INIT_LIBFUNCS): Define to...
22026         (visium_init_libfuncs): ...this.  New function.
22027         (expand_block_move_4): Use the appropriate libfunc.
22028         (expand_block_move_2): Likewise.
22029         (expand_block_move_1): Likewise.
22030         (expand_block_set_4): Likewise.
22031         (expand_block_set_2): Likewise.
22032         (expand_block_set_1): Likewise.
22033         (visium_trampoline_init): Likewise.
22035 2016-02-17  Nick Clifton  <nickc@redhat.com>
22037         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22038         TI's devices.csv file as of March 2016.
22040 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22042         PR Target/48344
22043         * opts-global.c (handle_common_deferred_options): Introduce and
22044         initialize two global variables to remember command-line options
22045         specifying a stack-limiting register.
22046         * opts.h: Add extern declarations of the two new global variables.
22047         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22048         variable based on the values of the two new global variables.
22050 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22052         PR c/69835
22053         * common.opt (Wnonnull-compare): New warning.
22054         * doc/invoke.texi (-Wnonnull): Remove text about comparison
22055         of arguments against NULL.
22056         (-Wnonnull-compare): Document.
22057         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22058         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22059         * passes.def (pass_warn_nonnull_compare): Add.
22060         * gimple-ssa-nonnull-compare.c: New file.
22062 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22064         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22065         AARCH64_EXTRA_TUNE_RECIP_SQRT.
22067 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22069         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22070         reciprocal sqrt for -mlow-precision-recip-sqrt.
22072 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22073             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22075         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22076         always use lane loads to construct non-constant vectors.
22078 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22080         * config/aarch64/aarch64.md
22081         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22082         constraints for operand 3.
22083         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22085 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22086             Richard Biener  <rguenther@suse.de>
22088         PR tree-optimization/69820
22089         * tree-vect-patterns.c (type_conversion_p): Return false if
22090         *orig_type is unsigned single precision or boolean.
22091         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22092         Formatting fix.
22094 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22096         PR rtl-optimization/69764
22097         PR rtl-optimization/69771
22098         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22099         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22101 2016-02-16  Richard Biener  <rguenther@suse.de>
22103         PR tree-optimization/69776
22104         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22105         sets from caller.
22106         (indirect_refs_may_alias_p): Likewise.
22107         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22108         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22109         according to tbaa_p.
22110         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22111         (optimize_stmt): For redundant store discovery do not allow tbaa.
22113 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
22115         PR tree-optimization/69714
22116         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22117         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22119 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
22121         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22122         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22123         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22124         * config/arc/arc.c (arc_init): Check FPU options.
22125         (get_arc_condition_code): Handle new CC_FPU* modes.
22126         (arc_select_cc_mode): Likewise.
22127         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22128         register pair only. Allow access for ARCv2 accumulator.
22129         (gen_compare_reg): Whenever we have FPU support use FPU compare
22130         instructions.
22131         (arc_reorg): Don't generate brcc insns when FPU compare
22132         instructions are involved.
22133         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22134         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22135         floating point emulation.
22136         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22137         (REVERSE_CONDITION): Add new CC_FPU* modes.
22138         (TARGET_FP_SP_BASE): Define.
22139         (TARGET_FP_DP_BASE): Likewise.
22140         (TARGET_FP_SP_FUSED): Likewise.
22141         (TARGET_FP_DP_FUSED): Likewise.
22142         (TARGET_FP_SP_CONV): Likewise.
22143         (TARGET_FP_DP_CONV): Likewise.
22144         (TARGET_FP_SP_SQRT): Likewise.
22145         (TARGET_FP_DP_SQRT): Likewise.
22146         (TARGET_FP_DP_AX): Likewise.
22147         * config/arc/arc.md (ARCV2_ACC): New constant.
22148         (type): New fpu type attribute.
22149         (SDF): Conditional iterator.
22150         (cstore<mode>, cbranch<mode>): Change expand condition.
22151         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22152         handles FPU/FPX cases as well.
22153         * config/arc/arc.opt (mfpu): New option.
22154         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22155         Renamed.
22156         (adddf3, muldf3, subdf3): Removed.
22157         * config/arc/predicates.md (proper_comparison_operator): Recognize
22158         CC_FPU* modes.
22159         * config/arc/fpu.md: New file.
22160         * doc/invoke.texi (ARC Options): Document mfpu option.
22162 2016-02-16  Richard Biener  <rguenther@suse.de>
22164         PR rtl-optimization/69291
22165         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22166         noce_operand_ok check.
22168 2016-02-16  Tom de Vries  <tom@codesourcery.com>
22170         PR lto/67709
22171         * omp-low.c (simd_clone_create): Remove call to
22172         symtab->call_cgraph_insertion_hooks.
22174 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22176         PR tree-optimization/69802
22177         * tree-ssa-reassoc.c (update_range_test): If op is
22178         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22179         op == 1 test of precision 1 integral op, otherwise handle
22180         that case as op itself.  Fix up formatting.
22181         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22182         up formatting.
22184 2016-02-16  Richard Biener  <rguenther@suse.de>
22186         PR tree-optimization/69586
22187         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22188         types for conversion sources.
22190 2016-02-16  Richard Biener  <rguenther@suse.de>
22192         PR middle-end/69801
22193         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22194         mask OEP_ADDRESS_OF.
22196 2016-02-16  Alan Modra  <amodra@gmail.com>
22198         PR target/68973
22199         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22200         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22201         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22202         (p8_mtvsrwz): New.
22203         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22204         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22205         (p8_fmrgow_<mode>): Likewise.
22206         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
22207         changes.
22208         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22209         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22210         to use movdi_internal64.  Remove op0_di.
22211         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22213 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
22215         Add support for the FCCMP insn types
22217         * config/aarch64/aarch64.md (fccmp): Change insn type.
22218         (fccmpe): Likewise.
22219         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22220         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22221         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22222         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22223         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22224         * config/arm/types.md (fccmps): Add new insn type.
22225         (fccmpd): Likewise.
22227 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22229         * alias.c (get_alias_set): Fix a typo in comment.
22231 2016-02-15  Richard Biener  <rguenther@suse.de>
22233         PR tree-optimization/69595
22234         * match.pd: Complete range test simplification to true.
22236 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
22238         PR rtl-optimization/69648
22239         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22240         pic_offset_table_rtx.
22242         PR rtl-optimization/69752
22243         * ira.c (update_equiv_regs): When looking for more than a single SET,
22244         also take other side effects into account.
22246 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
22248         * config/s390/s390.c (s390_function_profiler): Add a new sequence
22249         for z900+ CPUs in 31-bit mode.
22251 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
22253         * common/config/s390/s390-common.c (s390_supports_split_stack):
22254         New function.
22255         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
22256         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
22257         * config/s390/s390.c (struct machine_function): New field
22258         split_stack_varargs_pointer.
22259         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
22260         in s390_emit_prologue.
22261         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
22262         vararg pointer.
22263         (morestack_ref): New global.
22264         (SPLIT_STACK_AVAILABLE): New macro.
22265         (s390_expand_split_stack_prologue): New function.
22266         (s390_live_on_entry): New function.
22267         (s390_va_start): Use split-stack vararg pointer if appropriate.
22268         (s390_asm_file_end): Emit the split-stack note sections.
22269         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
22270         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
22271         (UNSPECV_SPLIT_STACK_CALL): New unspec.
22272         (UNSPECV_SPLIT_STACK_DATA): New unspec.
22273         (split_stack_prologue): New expand.
22274         (split_stack_space_check): New expand.
22275         (split_stack_data): New insn.
22276         (split_stack_call): New expand.
22277         (split_stack_call_*): New insn.
22278         (split_stack_cond_call): New expand.
22279         (split_stack_cond_call_*): New insn.
22281 2016-02-15  Richard Biener  <rguenther@suse.de>
22283         PR tree-optimization/69783
22284         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22285         Add trivially correct cases.
22287 2016-02-15  Tom de Vries  <tom@codesourcery.com>
22289         PR lto/69655
22290         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
22291         do_force_output.
22292         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
22294 2016-02-15  Richard Biener  <rguenther@suse.de>
22296         PR tree-optimization/69776
22297         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
22298         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
22299         indicate whether we can use TBAA to disambiguate against stores.
22300         Use alias-set zero if not.
22301         (visit_reference_op_store): Do not use TBAA when looking up
22302         redundant stores.
22303         * tree-ssa-pre.c (compute_avail): Use TBAA here.
22304         (eliminate_dom_walker::before_dom_children): But not when looking
22305         up redundant stores.
22307 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
22309         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
22311 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22313         *  config/i386/znver1.md
22314         (znver1_pop, znver1_pop_mem,
22315         znver1_load_imov_double_store,
22316         znver1_load_imov_direct_store,
22317         znver1_load_imov_direct_load,
22318         znver1_load_imov_double_load): Add new.
22319         (znver1_insn, znver1_insn_load): Add icmov type.
22320         (znver1_sseavx_fma,
22321         znver1_sseavx_fma_load,
22322         znver1_avx256_fma,
22323         znver1_avx256_fma_load): Fix pipe usage.
22325 2016-02-14  Alan Modra  <amodra@gmail.com>
22327         PR target/68973
22328         * reload.c (find_reloads_address_1): For pre/post-inc/dec
22329         with an invalid hard reg, reload just the reg not the entire
22330         pre/post-inc/dec address expression.
22332 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
22334         PR target/67260
22335         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
22336         fixed R1_REG scratch reg.
22337         (sibcall_value_pcrel_fdpic): Likewise.
22339 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
22341         PR target/67636
22342         PR target/64345
22343         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
22345 2016-02-12  Walter Lee  <walt@tilera.com>
22347         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
22348         * config/tilegx/t-tilegx: Likewise.
22350 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22352         PR other/69554
22353         * diagnostic-show-locus.c (struct line_span): New struct.
22354         (layout::get_first_line): Delete.
22355         (layout::get_last_line): Delete.
22356         (layout::get_num_line_spans): New member function.
22357         (layout::get_line_span): Likewise.
22358         (layout::print_heading_for_line_span_index_p): Likewise.
22359         (layout::get_expanded_location): Likewise.
22360         (layout::calculate_line_spans): Likewise.
22361         (layout::m_first_line): Delete.
22362         (layout::m_last_line): Delete.
22363         (layout::m_line_spans): New field.
22364         (layout::layout): Update comment.  Replace m_first_line and
22365         m_last_line with m_line_spans, replacing their initialization
22366         with a call to calculate_line_spans.
22367         (diagnostic_show_locus): When printing source lines and
22368         annotations, rather than looping over a single span
22369         of lines, instead loop over each line_span within
22370         the layout, with an inner loop over the lines within them.
22371         Call the context's start_span callback when changing line spans.
22372         * diagnostic.c (diagnostic_initialize): Initialize start_span.
22373         (diagnostic_build_prefix): Break out the building of the location
22374         part of the string into...
22375         (diagnostic_get_location_text): ...this new function, rewriting
22376         it from nested ternary expressions to a sequence of "if"
22377         statements.
22378         (default_diagnostic_start_span_fn): New function.
22379         * diagnostic.h (diagnostic_start_span_fn): New typedef.
22380         (diagnostic_context::start_span): New field.
22381         (default_diagnostic_start_span_fn): New prototype.
22383 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22385         PR driver/69779
22386         * gcc.c (driver::finalize): Fix cleanup of "specs".
22388 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22390         PR driver/69265
22391         PR driver/69453
22392         * gcc.c (driver::driver): Initialize m_option_suggestions.
22393         (driver::~driver): Clean up m_option_suggestions.
22394         (suggest_option): Convert to...
22395         (driver::suggest_option): ...this, and split out into
22396         driver::build_option_suggestions and find_closest_string.
22397         (driver::build_option_suggestions): New function, from
22398         first half of suggest_option.  Special-case
22399         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
22400         the sanitizer_opts array.  For options of enum types, add the
22401         various enum values to the candidate strings.
22402         (driver::handle_unrecognized_options): Remove "const".
22403         * gcc.h (driver::handle_unrecognized_options): Likewise.
22404         (driver::build_option_suggestions): New decl.
22405         (driver::suggest_option): New decl.
22406         (driver::m_option_suggestions): New field.
22407         * opts-common.c (add_misspelling_candidates): New function.
22408         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22409         and make non-static.
22410         * opts.h (sanitizer_opts): New array decl.
22411         (add_misspelling_candidates): New function decl.
22412         * spellcheck.c (find_closest_string): New function.
22413         * spellcheck.h (find_closest_string): New function decl.
22415 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22417         PR rtl-optimization/69764
22418         PR rtl-optimization/69771
22419         * optabs.c (expand_binop_directly): For shift_optab_p, force
22420         convert_modes with VOIDmode if xop1 has VOIDmode.
22422 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
22424         PR target/69729
22425         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22426         to correctly determine instrumentation thunks.
22428 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22430         PR ipa/69241
22431         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22432         type by reference, force lhs on the call.
22434         PR ipa/68672
22435         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22436         Compute retval and retbnd early in all cases if split_part_return_p
22437         and return_bb is not EXIT.  Remove all clobber stmts and reset
22438         all debug stmts that refer to SSA_NAMEs defined in split part,
22439         except if it is retval, in that case replace the old retval with the
22440         lhs of the call to the split part.
22442 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22444         revert:
22445         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22447         PR middle-end/66726
22448         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22449         whose result is used in PHI.
22450         (maybe_optimize_range_tests): Likewise.
22451         (final_range_test_p): Likweise.
22453 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22455         PR middle-end/66726
22456         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22457         whose result is used in PHI.
22458         (maybe_optimize_range_tests): Likewise.
22459         (final_range_test_p): Likweise.
22461 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22463         * cgraph.c: Spelling fixes - behaviour -> behavior and
22464         neighbour -> neighbor.
22465         * target.def: Likewise.
22466         * sel-sched.c: Likewise.
22467         * config/mips/mips.c: Likewise.
22468         * config/arc/arc.md: Likewise.
22469         * config/arm/cortex-a57.md: Likewise.
22470         * config/arm/arm.c: Likewise.
22471         * config/arm/neon.md: Likewise.
22472         * config/arm/arm-c.c: Likewise.
22473         * config/vms/vms-c.c: Likewise.
22474         * config/s390/s390.c: Likewise.
22475         * config/i386/znver1.md: Likewise.
22476         * config/i386/i386.c: Likewise.
22477         * config/ia64/hpux-unix2003.h: Likewise.
22478         * config/msp430/msp430.md: Likewise.
22479         * config/rx/rx.c: Likewise.
22480         * config/rx/rx.md: Likewise.
22481         * config/aarch64/aarch64-simd.md: Likewise.
22482         * config/aarch64/aarch64.c: Likewise.
22483         * config/nvptx/nvptx.c: Likewise.
22484         * config/bfin/bfin.c: Likewise.
22485         * config/cris/cris.opt: Likewise.
22486         * config/rs6000/rs6000.c: Likewise.
22487         * target.h: Likewise.
22488         * spellcheck.c: Likewise.
22489         * ira-build.c: Likewise.
22490         * tree-inline.c: Likewise.
22491         * builtins.c: Likewise.
22492         * lra-constraints.c: Likewise.
22493         * explow.c: Likewise.
22494         * hwint.h: Likewise.
22495         * targhooks.c: Likewise.
22496         * tree-vect-data-refs.c: Likewise.
22497         * expr.c: Likewise.
22498         * doc/tm.texi: Likewise.
22499         * doc/extend.texi: Likewise.
22500         * doc/install.texi: Likewise.
22501         * doc/md.texi: Likewise.
22502         * tree-ssa-tail-merge.c: Likewise.
22503         * sched-int.h: Likewise.
22504         * match.pd: Likewise.
22505         * sched-ebb.c: Likewise.
22506         * target.def (omit_struct_return_reg): Likewise.
22507         * gimple-ssa-isolate-paths.c: Likewise.
22508         (find_implicit_erroneous_behaviour): Renamed to...
22509         (find_implicit_erroneous_behavior): ... this.
22510         (find_explicit_erroneous_behaviour): Renamed to...
22511         (find_explicit_erroneous_behavior): ... this.
22512         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22514 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
22516         PR rtl-optimization/64682
22517         PR rtl-optimization/69567
22518         PR rtl-optimization/69737
22519         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22520         in I2 as well, just lose it.
22522 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22524         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22525         New variable.
22526         (aarch64_last_printed_tune_string): Likewise.
22527         (aarch64_declare_function_name): Only output .arch assembler
22528         directive if it will be different from the previously output
22529         directive.  Same for .tune comment but only if -dA is set.
22530         (aarch64_start_file): New function.
22531         (TARGET_ASM_FILE_START): Define.
22533 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
22535         PR plugins/69758
22536         * Makefile.in (PLUGIN_HEADERS): Add params.list.
22538 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
22540         PR target/65313
22541         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22542         -Wmaybe-uninitialized warning.
22544 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
22546         PR target/69713
22547         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22549 2016-02-11  Richard Biener  <rguenther@suse.de>
22551         PR rtl-optimization/69291
22552         * ifcvt.c (noce_try_store_flag_constants): Do not allow
22553         subexpressions affected by changing the result.
22555 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22557         PR target/69148
22558         * lra-constraints.c (curr_insn_transform): Find in/out operands
22559         for secondary memory moves.  Update dups.
22561 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
22563         PR tree-optimization/69652
22564         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22565         to nested loop, did source re-formatting, skip debug statements,
22566         add check on statement with volatile operand, remove dead scalar
22567         statements.
22569 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
22570             Patrick Palka  <ppalka@gcc.gnu.org>
22572         PR ipa/69241
22573         PR c++/69649
22574         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22575         calls if the return type is TREE_ADDRESSABLE.
22576         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22577         * ipa-split.c (split_function): Fix doubled "we" in comment.
22578         Use void return type for the split part even if
22579         !split_point->split_part_set_retval.
22581 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
22583         PR tree-optimization/68021
22584         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22585         when computing the value of biv cand by itself.
22587 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22589         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22590         (cortexa57_tunings): Likewise.
22591         (cortexa72_tunings): Likewise.
22592         (arch_macro_fusion_pair_p): Add support for AES fusion.
22593         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22594         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22595         Allow virtual registers before reload so early scheduling works.
22596         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22597         correct latency and pipeline.
22598         (cortex_a57_crypto_complex): Likewise.
22599         (cortex_a57_crypto_xor): Likewise.
22600         (define_bypass): Add AES bypass.
22602 2016-02-10  Richard Biener  <rguenther@suse.de>
22604         PR tree-optimization/69726
22605         * passes.def: Add DCE pass before late uninit.
22606         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22607         really fixup if-conversions job.
22609 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22611         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22612         (arm_cortex_a57_tune): Likewise.
22613         (aarch_macro_fusion_pair_p): Add support for AES fusion.
22614         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22616 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22618         * timevar.def (TV_PHASE_DBGINFO): Delete.
22619         (TV_PHASE_CHECK_DBGINFO): Likewise.
22620         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22622 2016-02-10  Richard Biener  <rguenther@suse.de>
22624         PR tree-optimization/69719
22625         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22626         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22628 2016-02-09  Andrew Pinski  <apinski@cavium.com>
22630         PR tree-opt/69282
22631         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22632         get_vcond_mask_icode returns false.
22634 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22636         PR target/68404
22637         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22638         an ADDIS that adds a pointer to a large constant that sets the
22639         upper16 bits with a load operation.
22641 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22643         PR target/68532
22644         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22645         order.
22646         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22647         endian.
22648         (vzipq_s16): Likewise.
22649         (vzipq_s32): Likewise.
22650         (vzipq_f32): Likewise.
22651         (vzipq_u8): Likewise.
22652         (vzipq_u16): Likewise.
22653         (vzipq_u32): Likewise.
22654         (vzipq_p8): Likewise.
22655         (vzipq_p16): Likewise.
22657 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22659         PR target/68532
22660         * config/arm/arm.c (neon_endian_lane_map): New function.
22661         (neon_vector_pair_endian_lane_map): New function.
22662         (arm_evpc_neon_vuzp): Allow for big endian lane order.
22663         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22664         endian.
22665         (vuzpq_s16): Likewise.
22666         (vuzpq_s32): Likewise.
22667         (vuzpq_f32): Likewise.
22668         (vuzpq_u8): Likewise.
22669         (vuzpq_u16): Likewise.
22670         (vuzpq_u32): Likewise.
22671         (vuzpq_p8): Likewise.
22672         (vuzpq_p16): Likewise.
22674 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
22676         PR target/69634
22677         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22678         debug insns.
22680 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
22682         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22683         truncate const_int operand 1 to QImode.
22685 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22687         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22688         corresponding to an abnormal edge.
22690 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22692         PR tree-optimization/69599
22693         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22694         function.
22695         (find_func_aliases_for_builtin_call, find_func_clobbers)
22696         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
22697         partition.
22699 2016-02-09  Richard Biener  <rguenther@suse.de>
22701         PR tree-optimization/69715
22702         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22703         LHS on calls as non-rewritable.
22705 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22707         PR lto/69707
22708         * lto-wrapper.c (append_diag_options): New function.
22709         (compile_offload_image): Call append_diag_options.
22711 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
22713         PR other/69722
22714         * doc/extend.texi (Flag Output Operands): Correct sectioning.
22715         Minor copy-edit to fix verb tenses.
22717 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
22719         PR tree-optimization/69209
22720         * ipa-split.c (split_function): If split part is not
22721         returning retval, retval has gimple type but is not
22722         gimple value, force it into a SSA_NAME first.
22724 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
22726         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22727         outdated section.
22729 2016-02-08  Jason Merrill  <jason@redhat.com>
22731         PR c++/69631
22732         * convert.c (convert_to_integer_1): Check dofold on truncation
22733         distribution.
22734         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22735         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22736         Rename from *_nofold.
22737         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22738         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22740 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
22742         PR target/60410
22743         * tree.c (build_common_tree_nodes): Remove short_double argument.
22744         All callers changed.
22745         * tree.h (build_common_tree_nodes): Adjust declaration.
22746         * doc/invoke.texi (-fshort-double): Remove documentation.
22747         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22748         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22749         * lto-wrapper.c (merge_and_complain, append_compiler_options)
22750         (append_linker_options): Don't handle OPT_fshort_double.
22752         PR rtl-optimization/68730
22753         * lra-remat.c (insn_to_cand_activation): New static variable.
22754         (lra_remat): Allocate and free it.
22755         (create_cand): New arg activation. Initialize a field in
22756         insn_to_cand_activation if it is nonnull.
22757         (create_cands): Pass the activation insn to create_cand when making
22758         a candidate involving an output reload.  Reorganize code a little.
22759         (do_remat): Keep track of active status of candidates in a separate
22760         bitmap.
22762 2016-02-08  Richard Biener  <rguenther@suse.de>
22764         PR tree-optimization/69719
22765         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22766         Properly use absolute of the difference of the two offsets to
22767         compare or adjust the segment length.
22769 2016-02-08  Richard Biener  <rguenther@suse.de>
22770             Jeff Law  <law@redhat.com>
22772         PR target/68273
22773         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22774         types for anonymous SSA names.
22776 2016-02-08   Richard Biener  <rguenther@suse.de>
22778         PR rtl-optimization/69274
22779         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22781 2016-02-08  Jeff Law  <law@redhat.com>
22783         PR tree-optimization/65917
22784         * tree-ssa-dom.c (record_temporary_equivalences): Record both
22785         equivalences from if (x == y) style conditionals.
22786         (loop_depth_of_name): Remove.
22787         (record_equality): Remove loop depth check.
22788         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22789         (const_and_copies::record_const_or_copy_raw): New member function.
22790         * tree-ssa-scopedtables.c
22791         (const_and_copies::record_const_or_copy_raw): New, factored out of
22792         (const_and_copies::record_const_or_copy): Call new member function.
22794 2016-02-05  Jeff Law  <law@redhat.com>
22796         PR tree-optimization/68541
22797         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22798         (count_stmts_in_block): New function.
22799         (poor_ifcvt_candidate_code): Likewise.
22800         (is_feasible_trace): Add some heuristics to determine when path
22801         splitting is profitable.
22802         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22803         is a diamond with a single exit.
22805 2016-02-05  Martin Sebor  <msebor@redhat.com>
22807         PR c++/69662
22808         * doc/invoke.texi: Update -Wplacement-new to take an optional
22809         argument.
22811 2016-02-06  Richard Henderson  <rth@redhat.com>
22813         PR c/69643
22814         * tree.c (tree_nop_conversion_p): Do not strip casts into or
22815         out of non-standard address spaces.
22817 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22819         PR rtl-optimization/69691
22820         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22822 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
22824         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22825         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22826         (*ieee128_mfvsrd_64bit): Likewise.
22827         (*ieee128_mfvsrd_32bit): Likewise.
22829 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
22831         PR target/69369
22832         Revert r232560:
22833         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22835         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22836         instrumented_version.
22838 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
22840         * doc/invoke.texi (Optimize Options): In table of --param options
22841         rename second occurrence of tracer-min-branch-ratio to
22842         tracer-min-branch-probability, rename
22843         tracer-min-branch-ratio-feedback to
22844         tracer-min-branch-probability-feedback and clarify description,
22845         rename sched-spec-state-edge-prob-cutoff to
22846         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22847         to selsched-insns-to-rename, rename lto-minpartition to
22848         lto-min-partition, delete reorder-blocks-duplicate and
22849         reorder-blocks-duplicate-feedback.
22851 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22853         * config/s390/s390.c (s390_register_info_set_ranges): Remove
22854         superfluous loops.
22856 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22858         * doc/extend.texi: S/390: Correct some typos.
22860 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22862         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22864 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22866         PR target/69625
22867         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22868         (s390_register_info_gprtofpr): Use new macros above.
22869         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22870         its name.
22871         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22872         its name.  Adjust restore and save gpr ranges.
22873         (s390_register_info_set_ranges): New function.
22874         (s390_register_info): Use new macros above.  Call
22875         s390_register_info_set_ranges.
22876         (s390_optimize_register_info): Likewise.
22877         (s390_hard_regno_rename_ok): Use new macros.
22878         (s390_hard_regno_scratch_ok): Likewise.
22879         (s390_emit_epilogue): Likewise.
22880         (s390_can_use_return_insn): Likewise.
22881         (s390_optimize_prologue): Likewise.
22882         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22884 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22886         PR bootstrap/69677
22887         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22888         alignment fixes.
22889         (ix86_option_override_internal): Disable TARGET_STV even for
22890         -m{incoming,preferred}-stack-boundary=3.
22892 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22894         * config.gcc: Mark deprecated rtems targets as obsolete.
22896 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
22898         PR rtl-optimization/64682
22899         PR rtl-optimization/69567
22900         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22901         before I2 only if the register is both used and set in I2.
22903 2016-02-04  DJ Delorie  <dj@redhat.com>
22905         * config/msp430/msp430.c (msp430_start_function): Add function type.
22907 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
22909         PR fortran/69368
22910         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22912 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
22914         PR rtl-optimization/69577
22915         Revert:
22916         2015-10-29  Richard Henderson  <rth@redhat.com>
22918         PR target/68124
22919         PR rtl-opt/67609
22920         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22921         sse check to the exact conditions of PR 67609.
22923 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
22925         PR target/69667
22926         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22927         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22928         not allowed into the traditional Altivec registers.
22929         (movtd_64bit_nodm): Likewise.
22930         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22932 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
22934         * config/aarch64/cortex-a57-fma-steering.c
22935         (aarch64_register_fma_steering): Remove "static" from arguments
22936         to register_pass.
22938 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
22940         PR target/69619
22941         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22942         twice when complex.
22944 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
22946         * doc/invoke.texi: Delete -mno-fma4.
22948 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
22950         PR rtl-optimization/69577
22951         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22952         (find_subregs_of_mode): Update accordingly.  Iterate over partial
22953         definitions.
22955 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
22957         * config/arm/arm-protos.h (neon_reinterpret): Remove.
22958         * config/arm/arm.c (neon_reinterpret): Remove.
22959         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22960         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22961         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22962         vreinterpretti): Remove.
22963         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22964         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22965         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22966         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22967         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22968         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22969         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22970         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22971         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22972         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22973         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22974         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22975         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22976         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
22977         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
22978         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
22979         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
22980         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
22981         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
22982         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
22983         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
22984         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
22985         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
22986         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
22987         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
22988         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
22989         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
22990         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
22991         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
22992         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
22993         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
22994         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
22995         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
22996         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
22997         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
22998         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
22999         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23000         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23001         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23002         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23003         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23004         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23005         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23006         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23007         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23008         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23009         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23010         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23011         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23012         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23013         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23014         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23015         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23016         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23017         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23018         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23019         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23020         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23021         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23022         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23023         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23024         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23025         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23026         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23027         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23028         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23029         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23030         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23031         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23032         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23033         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23034         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23035         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23036         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23037         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23038         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23039         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23040         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23041         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23042         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23043         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23044         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23045         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23046         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23047         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23048         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23049         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23050         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23051         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23052         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23053         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23054         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23055         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23056         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23057         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23058         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23059         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23060         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23061         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23062         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23063         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23064         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23065         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23067 2016-02-04  Martin Liska  <mliska@suse.cz>
23069         PR sanitizer/69276
23070         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23071         that are gimple_store_p.
23072         (maybe_instrument_call): Likewise.
23074 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
23076         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23077         register scaling out of memory reference and comment why.
23079 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23081         PR target/65932
23082         PR target/67714
23083         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23084         folding the source of a SET.
23086 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23088         PR target/65932
23089         PR target/67714
23090         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23091         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23093 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
23095         PR target/65932
23096         PR target/67714
23097         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23098         HImode.
23100 2016-02-04  Christian Bruel  <christian.bruel@st.com>
23102         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23103         * config/arm/arm.c (arm_set_current_function): Likewise.
23105 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
23106             Ilya Enkovich  <enkovich.gnu@gmail.com>
23107             H.J. Lu  <hongjiu.lu@intel.com>
23109         PR target/69454
23110         * config/i386/i386.c (convert_scalars_to_vector): Remove
23111         stack alignment fixes.
23112         (ix86_option_override_internal): Disable TARGET_STV if stack
23113         might not be aligned enough.
23114         (ix86_minimum_alignment): Assert that TARGET_STV is false.
23116 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
23118         * config/i386/x86-tune.def: Disable default prefetching
23119         for -march=znver1.
23121 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23122             Vladimir Makarov  <vmakarov@redhat.com>
23124         PR target/69461
23125         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23126         in validating fused toc addresses.
23128 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
23130         PR c/69627
23131         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23132         range->m_caret fields if range->m_show_caret_p is false.
23134         PR target/69644
23135         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23136         Force oldval into register if it does not satisfy reg_or_short_operand
23137         predicate.  Fix up formatting.
23139 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
23140             Alexandre Oliva  <aoliva@redhat.com>
23142         PR target/69461
23143         * lra-constraints.c (simplify_operand_subreg): Check additionally
23144         address validity after potential reloading.
23145         (process_address_1): Check insns validity.  In case of failure do
23146         nothing.
23148 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
23150         PR target/69118
23151         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23152         Fix target.
23154 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
23156         * wide-int.cc (canonize_uhwi): New function.
23157         (wi::divmod_internal): Use it.
23159 2016-02-02  James Norris  <jnorris@codesourcery.com>
23161         * gimplify.c (omp_notice_variable): Add usage check.
23163 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
23165         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23166         like LE, GE, LT, GT when emitting relational operator.
23168 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
23170         * ira-costs.c (find_costs_and_classes): Add extra argument.
23171         * target.def (ira_change_pseudo_allocno_class): Add parameter.
23172         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23173         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23174         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23175         Add best_class parameter, and return it if not ALL_REGS.
23176         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23177         Add parameter.
23178         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23179         Update target hook.
23181 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
23183         * config/aarch64/aarch64.c
23184         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23185         (aarch64_ira_change_pseudo_allocno_class): New function.
23187 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
23189         PR target/67032
23190         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23192 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23194         * config/avr/avr.c (avr_option_override): Set
23195         PARAM_ALLOW_STORE_DATA_RACES to 1.
23197 2016-02-02  Richard Biener  <rguenther@suse.de>
23199         PR tree-optimization/69595
23200         * match.pd: Add range test simplifications to true/false.
23202 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
23204         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23205         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23206         instead.
23208 2016-02-02  Richard Biener  <rguenther@suse.de>
23210         PR tree-optimization/69606
23211         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23212         info on the result before moving a stmt.
23214 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
23216         PR middle-end/68542
23217         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23218         branch with vector comparison.
23219         * config/i386/sse.md (VI48_AVX): New mode iterator.
23220         (define_expand "cbranch<mode>4): Add support for conditional branch
23221         with vector comparison.
23222         * tree-vect-loop.c (optimize_mask_stores): New function.
23223         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23224         has_mask_store field of vect_info.
23225         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23226         vectorized loops having masked stores after vec_info destroy.
23227         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23228         correspondent macros.
23229         (optimize_mask_stores): Add prototype.
23231 2016-02-02  Alan Modra  <amodra@gmail.com>
23233         PR target/69548
23234         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23235         allow subregs.
23237 2016-02-02  Alan Modra  <amodra@gmail.com>
23239         PR target/68662
23240         * config/rs6000/rs6000.c (need_toc_init): New var, set it
23241         whenever toc_label_name used.
23242         (rs6000_file_start): Don't set up toc section here,
23243         (rs6000_output_function_epilogue): do so here instead,
23244         (rs6000_xcoff_file_start): and here.
23245         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23246         (load_toc_aix_di): Likewise.
23248 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23250         PR rtl-optimization/69592
23251         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23252         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
23253         (num_sign_bit_copies_binary_arith_p): New inline function.
23254         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
23256 2016-02-01  Jeff Law  <law@redhat.com>
23258         PR tree-optimization/69580
23259         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
23260         * tree-ssa-threadbackward.c
23261         (fsm_find_control_statement_thread_paths): Do not try to walk
23262         through large PHI nodes.
23264 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23266         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
23267         when count is incremented above limit, don't analyze further
23268         insns afterwards.
23270         * omp-low.c (oacc_parse_default_dims): Avoid
23271         -Wsign-compare warning, make sure value fits into int
23272         rather than just unsigned int.
23274 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
23276         PR tree-optimization/67921
23277         * fold-const.c (split_tree): New parameters.  Convert pointer
23278         type variable part to proper type before negating.
23279         (fold_binary_loc): Pass new arguments to split_tree.
23281 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
23283         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
23284         (nvptx_goacc_validate_dims): Extend to handle global defaults.
23285         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
23286         * doc/tm.texti: Rebuilt.
23287         * doc/invoke.texi (fopenacc-dim): Document.
23288         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
23289         (append_compiler_options): Likewise.
23290         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
23291         (oacc_parse_default_dims): New.
23292         (oacc_validate_dims): Add USED arg.  Select non-unity default when
23293         possible.
23294         (oacc_loop_fixed_partitions): Return mask of used partitions.
23295         (oacc_loop_auto_partitions): Emit dump info.
23296         (oacc_loop_partition): Return mask of used partitions.
23297         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
23298         loop partitioning and validation calls.
23300 2016-02-01  Richard Biener  <rguenther@suse.de>
23302         PR middle-end/69556
23303         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
23305 2016-02-01  Richard Biener  <rguenther@suse.de>
23307         PR tree-optimization/69574
23308         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
23309         of asserting return chrec_dont_know.
23311 2016-02-01  Martin Liska  <mliska@suse.cz>
23313         * mem-stats-traits.h: Add copyright header.
23314         * mem-stats.h: Likewise.
23316 2016-02-01  Richard Biener  <rguenther@suse.de>
23318         PR tree-optimization/69579
23319         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
23320         Do not propagate through abnormal PHI results.
23322 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
23324         * postreload.c (reload_cse_simplify): Remove dead code.
23326 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23328         PR rtl-optimization/69570
23329         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
23330         if there is more than one set, not if there is a single set.
23332 2016-02-01  Richard Henderson  <rth@redhat.com>
23334         PR rtl-opt/69535
23335         * combine.c (make_compound_operation): When looking through a
23336         subreg, make sure to re-extend to the width of the outer mode.
23338 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
23340         PR tree-optimization/69546
23341         * wide-int.cc (wi::divmod_internal): For unsigned division
23342         where both operands fit into uhwi, if o1 is 1 and o0 has
23343         msb set, if divident_prec is larger than bits per hwi,
23344         clear another quotient word and return 2 instead of 1.
23345         Similarly for remainder with msb in HWI set, if dividend_prec
23346         is larger than bits per hwi.
23348 2016-01-29  Martin Jambor  <mjambor@suse.cz>
23350         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
23351         Use short lowercase names.
23352         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
23353         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
23354         acq_rel one.  Protect warning agains segfaults if
23355         get_memory_order_name returns NULL.
23356         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
23357         with release semantics.  Do not warn if get_memory_order already did.
23358         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
23359         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
23360         if get_memory_order already did.
23362 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
23364         * doc/install.texi: Document that isl-0.16 is supported.
23366 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
23368         PR target/69299
23369         * config/i386/constraints.md (Bm): Describe as special memory
23370         constraint.
23371         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
23372         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23373         * genpreds.c (struct constraint_data): Add is_special_memory.
23374         (have_special_memory_constraints, special_memory_start): New
23375         static vars.
23376         (special_memory_end): Ditto.
23377         (add_constraint): Add new arg is_special_memory.  Add code to
23378         process its true value.  Update have_special_memory_constraints.
23379         (process_define_constraint): Pass the new arg.
23380         (process_define_register_constraint): Ditto.
23381         (choose_enum_order): Process special memory.
23382         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
23383         function insn_extra_special_memory_constraint.
23384         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23385         * gensupport.c (process_rtx): Process
23386         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23387         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
23388         * ira-lives.c (single_reg_class): Use
23389         insn_extra_special_memory_constraint.
23390         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
23391         * lra-constraints.c (process_alt_operands): Ditto.
23392         (curr_insn_transform): Use insn_extra_special_memory_constraint.
23393         * recog.c (asm_operand_ok, preprocess_constraints): Process
23394         CT_SPECIAL_MEMORY.
23395         * reload.c (find_reloads): Ditto.
23396         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
23397         * stmt.c (parse_input_constraint): Use
23398         insn_extra_special_memory_constraint.
23400 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23402         PR target/69530
23403         * lra-splill.c (lra_final_code_change): Revert r229087 by
23404         removing all sub-registers.
23406 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
23408         PR target/65604
23409         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23411 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
23413         PR target/69551
23414         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23415         SSE1, copy target into the temporary reg first before recursing
23416         on it.
23418 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23420         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23421         with vm.
23423 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23425         * ginclude/stdarg.h: Test __cplusplus instead of
23426         __GXX_EXPERIMENTAL_CXX0X__.
23428 2016-01-29  Richard Biener  <rguenther@suse.de>
23430         PR tree-optimization/69547
23431         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23432         Do not mark clobbers necessary.
23433         (mark_all_reaching_defs_necessary_1): Likewise.
23435 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23437         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23438         declaration name with %qs and print it in both error messages.
23439         Also fix indentation.
23441 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23443         PR other/69006
23444         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23445         trailing blank line from error message.
23447 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23449         PR c++/69462
23450         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23451         for C++-11.
23453 2016-01-29  Richard Biener  <rguenther@suse.de>
23455         PR middle-end/69537
23456         * match.pd: Allow all integral types when simplifying a
23457         widening or sign-changing conversion.
23459 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23461         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23462         back to setting codegen_error to fail codegen.
23464 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
23466         PR target/69459
23467         * config/i386/constraints.md (C): Only accept constant zero operand.
23468         (BC): New constraint.
23469         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23470         instead of C constraint.
23471         * doc/md.texi (Machine Constraints): Update description
23472         of C constraint.
23474 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
23476         PR target/68400
23477         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23479 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
23481         PR middle-end/69542
23482         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23483         non-debug insns.
23485 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
23487         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23488         branches if using guessed profile.
23490 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
23492         * graphite-optimize-isl.c (optimize_isl): Fix dump.
23494 2016-01-28  Richard Henderson  <rth@redhat.com>
23496         PR target/69305
23497         * config/aarch64/aarch64-modes.def (CC_Cmode): New
23498         * config/aarch64/aarch64-protos.h: Update.
23499         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23500         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23501         (aarch64_get_condition_code_1): Handle CC_Cmode.
23502         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23503         (*add<mode>3_compareC_cconly_imm): New.
23504         (*add<mode>3_compareC_cconly): New.
23505         (*add<mode>3_compareC_imm): New.
23506         (add<mode>3_compareC): New.
23507         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23508         to be first.  Use aarch64_carry_operation.
23509         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23510         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23511         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23512         (subti3): Use subdi3_compare1.
23513         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23514         (sub<mode>3_compare1): New.
23515         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23516         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23517         (*subsi3_carryin_uxtw): Likewise.
23518         (*ngc<mode>, *ngcsi_uxtw): Likewise.
23519         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23520         * config/aarch64/iterators.md (DWI): New.
23521         * config/aarch64/predicates.md (aarch64_carry_operation): New.
23522         (aarch64_borrow_operation): New.
23524 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23526         * graphite-optimize-isl.c (optimize_isl): Print a different debug
23527         message when isl does not return a valid schedule.
23529 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23531         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23532         Remove comments from class declarations: they are already in the code
23533         close by the defs.
23535 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23537         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23538         codegen_error_p.
23539         (ternary_op_to_tree): Same.
23540         (unary_op_to_tree): Same.
23541         (nary_op_to_tree): Same.
23542         (gcc_expression_from_isl_expr_op): Same.
23543         (gcc_expression_from_isl_expression): Same.
23544         (graphite_create_new_loop): Same.
23545         (graphite_create_new_loop_guard): Same.
23546         (build_iv_mapping): Same.
23547         (graphite_create_new_guard): Same.
23548         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23549         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23551 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23553         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23554         instead of setting codegen_error to fail codegen.
23556 2016-01-28  Jason Merrill  <jason@redhat.com>
23558         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23560 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23562         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23563         Remove CONST_INT_P check in CCMP cost calculation.
23565 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23567         * config/aarch64/aarch64.c (generic_vector_cost):
23568         Set vec_permute_cost.
23569         (cortexa57_vector_cost): Likewise.
23570         (exynosm1_vector_cost): Likewise.
23571         (xgene1_vector_cost): Likewise.
23572         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23573         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23574         Add vec_permute_cost entry.
23576 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23578         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23579         immediate as %1.
23580         (add<mode>3_compare0): Likewise.
23581         (addsi3_compare0_uxtw): Likewise.
23582         (add<mode>3nr_compare0): Likewise.
23583         (compare_neg<mode>): Likewise.
23584         (<optab><mode>3): Likewise.
23586 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
23588         * tree-vect-stmts.c (vectorizable_comparison): Add
23589         NULL check for vectype.
23591 2016-01-28  Richard Biener  <rguenther@suse.de>
23593         PR tree-optimization/69466
23594         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23595         Account for PHIs we couldn't duplicate.
23597 2016-01-28  Martin Liska  <mliska@suse.cz>
23599         PR pch/68758
23600         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23601         instead of ENABLE_VALGRIND_CHECKING.
23603 2016-01-27  Richard Henderson  <rth@redhat.com>
23605         PR rtl-opt/69447
23606         * lra-remat.c (subreg_regs): New.
23607         (dump_candidates_and_remat_bb_data): Dump it.
23608         (operand_to_remat): Reject if operand in subreg_regs.
23609         (set_bb_regs): Collect subreg_regs.
23610         (lra_remat): Init and free subreg_regs.  Compute
23611         calculate_local_reg_remat_bb_data before create_cands.
23613 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
23615         PR target/68986
23616         * config/i386/i386.c (ix86_update_stack_boundary): Don't
23617         change stack_alignment_needed for __tls_get_addr call.
23619 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
23621         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23623 2016-01-27  Jeff Law  <law@redhat.com>
23625         PR tree-optimization/68398
23626         PR tree-optimization/69196
23627         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23628         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23629         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23630         Only count PHIs in the last block in the path.  The others will
23631         const/copy propagate away.  Add heuristic to allow more irreducible
23632         subloops to be created when it is likely profitable to do so.
23634         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23635         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
23636         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
23638 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23640         PR lto/69254
23641         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23642         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23643         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23644         * tree-streamer-in.c: Include asan.h.
23645         (streamer_get_builtin_tree): For builtins in sanitizer
23646         range call initialize_sanitizer_builtins and retry.
23648 2016-01-27  Ian Lance Taylor  <iant@google.com>
23650         * common.opt (fkeep-gc-roots-live): New undocumented option.
23651         * tree-ssa-loop-ivopts.c (add_candidate_1): If
23652         -fkeep-gc-roots-live, skip pointers.
23653         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23654         NULL.
23656 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
23658         PR target/69512
23659         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23660         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23662 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
23664         PR target/68380
23665         * configure.ac: NetBSD provides SSP in its C library.
23666         * configure: Updated.
23668 2016-01-27  Richard Biener  <rguenther@suse.de>
23670         PR tree-optimization/69166
23671         * tree-vect-loop.c (vect_is_simple_reduction): Always check
23672         reduction code for commutativity / associativity.
23674 2016-01-27  Martin Jambor  <mjambor@suse.cz>
23676         PR tree-optimization/69355
23677         * tree-sra.c (analyze_access_subtree): Correct hole detection when
23678         total_scalarization fails.
23680 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
23682         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23683         power9.
23685 2016-01-27  Christian Bruel  <christian.bruel@st.com>
23687         PR target/69245
23688         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23689         Move arm_reset_previous_fndecl and set_target_option_current_node in
23690         the conditional part.  Call save_restore_target_globals.
23691         * config/arm/arm.c (arm_set_current_function):
23692         Refactor to better support #pragma target and attribute mix.
23693         Call save_restore_target_globals.
23694         * config/arm/arm-protos.h (save_restore_target_globals): New function.
23696 2016-01-27  Martin Liska  <mliska@suse.cz>
23698         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23699         reference for an HSA kernel and its host function.
23701 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23703         PR tree-optimization/69399
23704         * wide-int.h (wi::lrshift): For larger precisions, only
23705         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23707 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
23709         * config/arc/predicates.md (proper_comparison_operator): Reject
23710         constant-constant comparison.
23712 2016-01-26  Tom de Vries  <tom@codesourcery.com>
23714         PR tree-optimization/69110
23715         * tree-data-ref.c (initialize_data_dependence_relation): Handle
23716         DR_NUM_DIMENSIONS == 0.
23718 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23719             Sebastian Pop  <s.pop@samsung.com>
23721         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23722         isl_ast_op_cond and isl_ast_op_select.
23723         (gcc_expression_from_isl_expr_op): Same.
23725 2016-01-26  Jason Merrill  <jason@redhat.com>
23727         PR c++/68782
23728         * tree.c (recompute_constructor_flags): Split out from
23729         build_constructor.
23730         (verify_constructor_flags): New.
23731         * tree.h: Declare them.
23733 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
23735         PR rtl-optimization/69217
23736         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23737         are no TYPE_FIELDS set for the record type.
23739 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23741         PR target/68662
23742         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23743         toc_label_name unconditionally.
23744         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23745         SYMBOL_REF string.  Use toc_label_name instead of constructing
23746         LCTOC1.
23747         (rs6000_elf_declare_function_name): Use toc_label_name instead of
23748         constructing LCTOC1.
23750 2016-01-26  Martin Sebor  <msebor@redhat.com>
23752         PR other/69477
23753         * doc/extend.texi (Common Type Attributes): Move text that talks about
23754         attribute packed from attribute aligned to the section discussing
23755         the former attribute for clarity.
23757 2016-01-26  Richard Henderson  <rth@redhat.com>
23759         PR middle-end/60908
23760         * trans-mem.c (tm_region_init): Mark entry block as visited.
23762 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
23764         PR other/69006
23765         * diagnostic-show-locus.c (layout::print_source_line): Replace
23766         call to pp_newline with call to layout::print_newline.
23767         (layout::print_annotation_line): Likewise.
23768         (layout::move_to_column): Likewise.
23769         (layout::print_any_fixits): After printing any fixits, print a
23770         trailing newline, if necessary.
23771         (layout::print_newline): New method, resetting any colorization
23772         before a newline.
23773         (diagnostic_show_locus): Move the pp_newline to before the
23774         early bailout.  Remove dummy block enclosing the layout instance.
23775         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23776         of pp_newline_and_flush with pp_flush.
23777         (diagnostic_append_note): Delete use of pp_newline.
23778         (diagnostic_append_note_at_rich_loc): Delete.
23779         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23780         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23781         when newline characters are added to the buffer.
23783 2016-01-26  Michael Matz  <matz@suse.de>
23785         * configure.ac (ac_cv_std_swap_in_utility): New test.
23786         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23787         * configure: Regenerate.
23788         * config.in: Regenerate.
23790 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
23792         * config/arc/arc.md (cstoresi4): Force operand into register.
23793         (arcset<code>): Fix predicate.
23794         (arcsetltu): Likewise.
23795         (arcsetgeu): Likewise.
23796         (arcsethi): Likewise.
23797         (arcsetls): Likewise.
23799 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23801         PR tree-optimization/69483
23802         * gimple-fold.c (canonicalize_constructor_val): Return NULL
23803         if base has error_mark_node type.
23805 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
23807         PR target/68620
23808         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23809         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23810         New helper macros.
23811         (vget_lane_f16): Handle big-endian.
23812         (vgetq_lane_f16): Likewise.
23813         (vset_lane_f16): Likewise.
23814         (vsetq_lane_f16): Likewise.
23815         * config/arm/iterators.md (VQXMOV): Add V8HF.
23816         (VDQ): Add V4HF and V8HF.
23817         (V_reg): Handle V4HF and V8HF.
23818         (Is_float_mode): Likewise.
23819         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23820         neon_vdup_nv8hf): New patterns.
23821         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23822         Use VD_LANE iterator.
23823         (neon_vld1_dup<mode>): Use VQ2 iterator.
23825 2016-01-26  Nathan Sidwell  <nathan@acm.org>
23827         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23828         (set_oacc_fn_attrib): Add IS_KERNEL arg.
23829         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23830         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23831         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23832         (oacc_validate_dims): Add LEVEL arg, don't return level.
23833         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23834         oacc_validate_dims.
23835         (execute_oacc_device_lower): Adjust, add more dump output.
23836         * tree-ssa-loop.c (gate_oacc_kernels): Use
23837         oacc_fn_attrib_kernels_p.
23838         * tree-parloops.c (create_parallel_loop): Adjust
23839         set_oacc_fn_attrib call.
23841 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23843         PR lto/69254
23844         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23845         (append_compiler_options): Handle -fcilkplus.
23846         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23848 2016-01-26  Nick Clifton  <nickc@redhat.com>
23850         PR target/66655
23851         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23852         been marked as DECL_ONE_ONLY but we do not the means to make it
23853         so, then do not allow it to bind locally.
23855 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23857         PR lto/69254
23858         * opts.h (parse_sanitizer_options): New prototype.
23859         * opts.c (sanitizer_opts): New array.
23860         (parse_sanitizer_options): New function.
23861         (common_handle_option): Use parse_sanitizer_options.
23863 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23865         PR target/68986
23866         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23867         alignment adjustment to ...
23868         (ix86_update_stack_boundary): Here.  Don't over-align stack for
23869         __tls_get_addr.
23870         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23871         if __tls_get_addr is called.
23873 2016-01-26  Christian Bruel  <christian.bruel@st.com>
23875         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23877 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
23879         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23881 2016-01-26  Richard Biener  <rguenther@suse.de>
23883         PR middle-end/69467
23884         * match.pd: Guard X * CST CMP 0 pattern with single_use.
23886 2016-01-26  Richard Biener  <rguenther@suse.de>
23888         PR tree-optimization/69452
23889         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23890         (move_computations_dom_walker::before_dom_children): Rename
23891         to ...
23892         (move_computations_worker): This.
23893         (move_computations): Perform an RPO rather than a DOM walk.
23895 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23897         PR target/69442
23898         * combine.c (combine_instructions): For REG_EQUAL note with
23899         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23900         to the underlying register.
23901         * doc/rtl.texi (REG_EQUAL): Document the behavior of
23902         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23904 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
23906         PR target/67896
23907         * config/aarch64/aarch64-builtins.c
23908         (aarch64_init_simd_builtin_types): Do not set structural
23909         equality to __Poly{8,16,64,128}_t types.
23911 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
23913         PR tree-optimization/69400
23914         * wide-int.cc (wi_pack): Take the precision as argument and
23915         perform canonicalization here rather than in the callers.
23916         Use the main loop to handle all full-width HWIs.  Add a
23917         zero HWI if in_len isn't a full result.
23918         (wi::divmod_internal): Update accordingly.
23919         (wi::mul_internal): Likewise.  Simplify.
23921 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
23922             Sebastian Pop  <s.pop@samsung.com>
23924         * graphite-poly.c (apply_poly_transforms): Simplify.
23925         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23926         (print_isl_map): Same.
23927         (print_isl_union_map): Same.
23928         (print_isl_schedule): New.
23929         (debug_isl_schedule): New.
23930         * graphite-dependences.c (scop_get_reads): Do not call
23931         isl_union_map_add_map that is undocumented isl functionality.
23932         (scop_get_must_writes): Same.
23933         (scop_get_may_writes): Same.
23934         (scop_get_original_schedule): Remove.
23935         (scop_get_dependences): Do not call isl_union_map_compute_flow that
23936         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
23937         (compute_deps): Remove.
23938         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23939         (debug_schedule_ast): New.
23940         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23941         set_separate_option.
23942         (graphite_regenerate_ast_isl): Add dump.
23943         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23944         from scop->transformed_schedule.
23945         (graphite_regenerate_ast_isl): Add more dump.
23946         * graphite-optimize-isl.c (optimize_isl): Set
23947         scop->transformed_schedule.  Check whether schedules are equal.
23948         (apply_poly_transforms): Move here.
23949         * graphite-poly.c (apply_poly_transforms): ... from here.
23950         (free_poly_bb): Static.
23951         (free_scop): Static.
23952         (pbb_number_of_iterations_at_time): Remove.
23953         (print_isl_ast): New.
23954         (debug_isl_ast): New.
23955         (debug_scop_pbb): New.
23956         * graphite-scop-detection.c (print_edge): Move.
23957         (print_sese): Move.
23958         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23959         (build_scop_scattering): Remove.
23960         (create_pw_aff_from_tree): Assert instead of bailing out.
23961         (add_condition_to_pbb): Remove unused code, do not fail.
23962         (add_conditions_to_domain): Same.
23963         (add_conditions_to_constraints): Remove.
23964         (build_scop_context): New.
23965         (add_iter_domain_dimension): New.
23966         (build_iteration_domains): Initialize pbb->iterators.
23967         Call add_conditions_to_domain.
23968         (nested_in): New.
23969         (loop_at): New.
23970         (index_outermost_in_loop): New.
23971         (index_pbb_in_loop): New.
23972         (outermost_pbb_in): New.
23973         (add_in_sequence): New.
23974         (add_outer_projection): New.
23975         (outer_projection_mupa): New.
23976         (add_loop_schedule): New.
23977         (build_schedule_pbb): New.
23978         (build_schedule_loop): New.
23979         (embed_in_surrounding_loops): New.
23980         (build_schedule_loop_nest): New.
23981         (build_original_schedule): New.
23982         (build_poly_scop): Call build_original_schedule.
23983         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
23984         (free_poly_dr): Remove.
23985         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
23986         (free_poly_bb): Remove.
23987         (debug_loop_vec): Remove.
23988         (print_isl_ast): Declare.
23989         (debug_isl_ast): Declare.
23990         (scop_do_interchange): Remove.
23991         (scop_do_strip_mine): Remove.
23992         (scop_do_block): Remove.
23993         (flatten_all_loops): Remove.
23994         (optimize_isl): Remove.
23995         (pbb_number_of_iterations_at_time): Remove.
23996         (debug_scop_pbb): Declare.
23997         (print_schedule_ast): Declare.
23998         (debug_schedule_ast): Declare.
23999         (struct scop): Remove schedule.  Add original_schedule,
24000         transformed_schedule.
24001         (free_gimple_poly_bb): Remove.
24002         (print_generated_program): Remove.
24003         (debug_generated_program): Remove.
24004         (unify_scattering_dimensions): Remove.
24005         * sese.c (print_edge): ... here.
24006         (print_sese): ... here.
24007         (debug_edge): ... here.
24008         (debug_sese): ... here.
24009         * sese.h (print_edge): Declare.
24010         (print_sese): Declare.
24011         (dump_edge): Declare.
24012         (dump_sese): Declare.
24014 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
24015             Sebastian Pop  <s.pop@samsung.com>
24017         * Makefile.in: Set ISLVER in site.exp.
24019 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
24021         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24022         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
24023         through DECL_VALUE_EXPR for expansion.
24025 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24027         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24028         the frame info after reload completed.
24030 2016-01-25  Jeff Law  <law@redhat.com>
24032         PR tree-optimization/69196
24033         PR tree-optimization/68398
24034         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24035         tree-ssa-threadupdate.c.
24036         (determine_bb_domination_status): Prototype
24037         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24038         (determine_bb_domination_status): No longer static.
24039         (valid_jump_thread_path): Remove code to detect characteristics
24040         of the jump thread path not associated with correctness.
24041         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24042         Correct test for thread path length.  Count PHIs for real operands as
24043         statements that need to be copied.  Do not count ASSERT_EXPRs.
24044         Look at all the blocks in the thread path.  Compute and selectively
24045         filter thread paths based on threading through the latch, threading
24046         a multiway branch or crossing a multiway branch.
24048 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24050         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
24051         decl with __attribute__ ((unused)) annotation.
24053 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
24055         PR target/69421
24056         * tree-vect-stmts.c (vectorizable_condition): Check vectype
24057         of operands is compatible with a statement vectype.
24059 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
24061         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24062         improve wording for mixed storage order support.
24064 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
24066         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24067         (vcvt_u64_f64): Likewise.
24068         (vcvta_s64_f64): Likewise.
24069         (vcvta_u64_f64): Likewise.
24070         (vcvtm_s64_f64): Likewise.
24071         (vcvtm_u64_f64): Likewise.
24072         (vcvtn_s64_f64): Likewise.
24073         (vcvtn_u64_f64): Likewise.
24074         (vcvtp_s64_f64): Likewise.
24075         (vcvtp_u64_f64): Likewise.
24077 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
24079         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24080         (arc_init): Check validity mll64 option.
24081         (arc_save_restore): Use double load/store instruction.
24082         (arc_expand_movmem): Likewise.
24083         (arc_split_move): Don't split if we have double load/store
24084         instructions. Returns a boolean.
24085         (arc_process_double_reg_moves): Change function to return boolean
24086         instead of a sequence of instructions.
24087         (arc_dwarf_register_span): New function.
24088         * config/arc/arc-protos.h (arc_split_move): Change prototype.
24089         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24090         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24091         (*movdf_insn): Likewise.
24092         * config/arc/arc.opt (mll64): New option.
24093         * config/arc/predicates.md (even_register_operand): New predicate.
24094         * doc/invoke.texi (ARC Options): Add mll64 documentation.
24096 2016-01-25  Richard Biener  <rguenther@suse.de>
24098         PR lto/69393
24099         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24100         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24101         DECL_NAMELESS.
24102         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24104 2016-01-25  Richard Biener  <rguenther@suse.de>
24106         PR tree-optimization/69376
24107         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24108         flag.
24109         (VN_INFO_ANTI_RANGE_P): New inline.
24110         (VN_INFO_RANGE_TYPE): Likewise.
24111         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24112         SSA_NAME_ANTI_RANGE_P.
24113         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24114         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24115         Properly query VN_INFO_RANGE_TYPE.
24117 2016-01-25  Nick Clifton  <nickc@redhat.com>
24119         PR target/66655
24120         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24122 2016-01-23  Tom de Vries  <tom@codesourcery.com>
24124         PR tree-optimization/69426
24125         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24126         removed clobber.
24128 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
24130         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24131         "the the" with "the" in the comments.
24132         * ipa-devirt.c (build_type_inheritance_graph,
24133         update_type_inheritance_graph): Likewise.
24134         * tree.c (build_function_type_list_1): Likewise.
24135         * cfgloopmanip.c (scale_loop_profile): Likewise.
24136         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24137         * gimple-ssa-split-paths.c
24138         (find_block_to_duplicate_for_splitting_paths): Likewise.
24139         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24140         * expr.c (convert_move): Likewise.
24141         * var-tracking.c (vt_stack_adjustments): Likewise.
24142         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24143         * tree-vrp.c (test_for_singularity): Likewise.
24145         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24146         directly instead of building a temporary tree.
24148         PR bootstrap/69434
24149         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24150         remove <algorithm> include.
24152 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
24154         PR target/69432
24155         * config/i386/i386.c: Include dojump.h.
24156         (expand_small_movmem_or_setmem,
24157         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24158         fixes.
24159         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24160         if dynamic_check != -1.
24162 2016-01-21  Jeff Law  <law@redhat.com>
24164         PR middle-end/69347
24165         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24166         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
24167         into dominated_by_p.
24168         (cprop_into_successor_phis): Avoid unnecessary tests.
24170 2016-01-22  Richard Henderson  <rth@redhat.com>
24172         PR target/69416
24173         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24174         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24176 2016-01-22  Michael Matz  <matz@suse.de>
24178         * system.h (string, algorithm): Include only conditionally.
24179         (new): Include always under C++.
24180         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24181         * final.c (toplevel): Ditto.
24182         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24183         * genconditions.c (write_header): Make gencondmd.c define
24184         INCLUDE_STRING.
24185         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24187         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24188         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24190 2016-01-22  Christian Bruel  <christian.bruel@st.com>
24192         PR target/68674
24193         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24195 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24197         PR target/69403
24198         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24199         define_insn_and_split.  Ensure operands[1] and operands[0] do not
24200         get assigned the same register.
24202 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24204         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24206 2016-01-22  Christian Bruel  <christian.bruel@st.com>
24208         * config/arm/arm-c.c (arm_pragma_target_parse):
24209         Remove warn_builtin_macro_redefined overwrite.
24211 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24213         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24214         flag_non_call_exceptions compatibility.
24216 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
24218         PR debug/66668
24219         * dwarf2out.c (add_child_die_after): New function.
24220         (dwarf_qual_info_t): New type.
24221         (dwarf_qual_info): New variable.
24222         (qualified_die_p): New function.
24223         (modified_type_die): For -fdebug-types-section, ensure
24224         canonical order of qualifiers.  Put qualified DIEs adjacent
24225         to the corresponding non-qualified type DIE and search there
24226         for existing qualified DIEs.
24228 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24230         * doc/extend.texi (scalar_storage_order type attribute): Document
24231         restriction on type punning and aliasing, and remove future tense.
24233 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
24235         PR target/69252
24236         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24237         first stage.
24239 2016-01-21  Jeff Law  <law@redhat.com>
24241         PR middle-end/69347
24242         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24243         useless call to record_temporary_equivalences.
24244         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24245         allocate 10 slots in the bb_path vector and let it grow as needed.
24246         (fsm_find_control_statement_thread_paths): Similarly for the next_path
24247         vector.
24249 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
24251         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24252         Detangle.
24253         * configure: Regenerate.
24255 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
24257         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
24258         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
24260 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
24262         PR middle-end/66178
24263         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
24264         drop EXPAND_INITIALIZER.
24265         * rtl.h (contains_symbolic_reference_p): Declare.
24266         * rtlanal.c (contains_symbolic_reference_p): New function.
24267         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
24268         a subtraction into a NOT if symbolic constants are involved.
24270 2016-01-21  Anton Blanchard  <anton@samba.org>
24271             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24273         PR target/63354
24274         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
24275         #define.
24276         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
24277         function.
24279 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
24281         * config/microblaze/microblaze.c
24282         (get_branch_target): New.
24283         (insert_wic_for_ilb_runout): New.
24284         (insert_wic): New.
24285         (microblaze_machine_dependent_reorg): New.
24286         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
24287         * config/microblaze/microblaze.md
24288         (UNSPEC_IPREFETCH): Define.
24289         (iprefetch): New pattern
24290         * config/microblaze/microblaze.opt
24291         (mxl-prefetch): New flag.
24293 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
24295         * config/microblaze/microblaze.h
24296         (FIXED_REGISTERS): Update in macro.
24297         (CALL_USED_REGISTERS): Update in macro.
24299 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
24301         PR rtl-optimization/68920
24302         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
24303         moves.
24305 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
24307         PR rtl-optimization/68990
24308         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
24309         pseudo instead of inheritance ones.
24311 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24312             Nick Clifton  <nickc@redhat.com>
24314         PR target/69129
24315         PR target/69012
24316         * config/mips/mips.c (mips_compute_frame_info): Initialise
24317         args_size and hard_frame_pointer_offset fields of the frame
24318         structure before calling mips_global_pointer.
24320 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
24322         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
24323         label reference.
24324         * configure: Regenerate.
24326 2016-01-21  Richard Biener  <rguenther@suse.de>
24328         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
24330 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
24332         * config/s390/s390.c (s390_asm_declare_function_size): Add code
24333         to actually emit the .size directive.
24335 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
24336              Jakub Jelinek  <jakub@redhat.com>
24338         PR target/69187
24339         PR target/65624
24340         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
24341         args array size by one to avoid buffer overflow.
24343 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
24345         * config/s390/s390.md (pool_section_start): Use switch_to_section
24346         to select proper read-only data section instead of hardcoding
24347         .rodata.
24348         (pool_section_end): Use switch_to_section to match the above.
24350 2016-01-21  Richard Biener  <rguenther@suse.de>
24352         PR tree-optimization/69378
24353         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
24354         (set_ssa_val_to): Use it for dominance checks taking into
24355         account not executable edges.
24357 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
24359         PR c++/69355
24360         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
24361         for bitsize instead of GET_MODE_PRECISION (mode).
24363 2016-01-20  Martin Sebor  <msebor@redhat.com>
24365         PR c/52291
24366         * extend.texi (__sync Builtins): Clarify the semantics of
24367         __sync_fetch_and_OP built-ins on pointers.
24368         (__atomic Builtins): Same.
24370 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24371             Sebastian Pop  <s.pop@samsung.com>
24373         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
24374         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
24375         (is_valid_rename): Same.
24376         (translate_isl_ast_to_gimple::get_rename): Same.
24377         (translate_isl_ast_to_gimple::rename_all_uses): Same.
24378         (translate_isl_ast_to_gimple::rename_uses): Same.
24379         (get_new_name): Check for close_phi nodes.
24380         (copy_loop_phi_args): Use phi_node_kind.
24381         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
24382         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
24384 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24385             Sebastian Pop  <s.pop@samsung.com>
24387         Revert commit r229783.
24388         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
24389         Remove use of parameter_rename_map.
24390         (copy_def): Remove.
24391         (copy_internal_parameters): Remove.
24392         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
24393         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
24394         (free_sese_info): Do not free parameter_rename_map.
24395         (set_rename): Do not use parameter_rename_map.
24396         (rename_uses): Update call to set_rename.
24397         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
24398         * sese.h (parameter_rename_map_t): Remove.
24399         (struct sese_info_t): Remove field parameter_rename_map.
24401 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24402             Sebastian Pop  <s.pop@samsung.com>
24404         * graphite-isl-ast-to-gimple.c: Fix comment.
24405         * graphite-scop-detection.c (defined_in_loop_p): New.
24406         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24407         names defined in loop.
24409 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24410             Sebastian Pop  <s.pop@samsung.com>
24412         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24413         Discard unstructured if-then-else regions.
24415 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24416             Sebastian Pop  <s.pop@samsung.com>
24418         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24419         (cleanup_loop_iter_dom): Remove.
24420         (build_loop_iteration_domains): Remove.
24421         (build_scop_context): Remove.
24422         (build_scop_iteration_domain): Remove.
24423         (add_loop_constraints): New.
24424         (build_iteration_domains): New.
24425         (build_poly_scop): Call build_iteration_domains.
24427 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24428             Sebastian Pop  <s.pop@samsung.com>
24430         * graphite-scop-detection.c
24431         (scop_detection::harmful_loop_in_region): Free dom and loops.
24432         (scop_detection::loop_body_is_valid_scop): Free bbs.
24434 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24435             Sebastian Pop  <s.pop@samsung.com>
24437         * graphite-scop-detection.c (record_loop_in_sese): New.
24438         (gather_bbs::before_dom_children): Call record_loop_in_sese.
24439         (build_scops): Remove call to build_sese_loop_nests.
24440         * sese.c (sese_record_loop): Remove.
24441         (build_sese_loop_nests): Remove.
24442         (new_sese_info): Remove region->loops.
24443         (free_sese_info): Same.
24444         * sese.h (sese_contains_loop): Same.
24445         (build_sese_loop_nests): Remove.
24446         (sese_contains_loop): Remove.
24448 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24449             Sebastian Pop  <s.pop@samsung.com>
24451         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24452         loop_is_valid_in_scop.
24453         (scop_detection::harmful_stmt_in_region): Renamed
24454         harmful_loop_in_region.
24455         Call loop_is_valid_in_scop.
24457 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24458             Sebastian Pop  <s.pop@samsung.com>
24460         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24461         isl_ast_node_mark.
24463 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24464             Sebastian Pop  <s.pop@samsung.com>
24466         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24467         * graphite.h (struct poly_bb): Remove field is_reduction.
24468         (PBB_IS_REDUCTION): Remove.
24470 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24471             Sebastian Pop  <s.pop@samsung.com>
24473         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24474         (add_pdr_constraints): Same.
24475         (scop_get_reads): Same.
24476         (scop_get_must_writes): Same.
24477         (scop_get_may_writes): Same.
24478         (scop_get_original_schedule): Same.
24479         (extend_schedule): Same.
24480         (apply_schedule_on_deps): Same.
24481         (carries_deps): Same.
24482         (compute_deps): Same.
24483         (scop_get_dependences): Same.
24484         * graphite-isl-ast-to-gimple.c
24485         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24486         * graphite-optimize-isl.c (get_schedule_for_band): Same.
24487         (get_schedule_for_band_list): Same.
24488         (get_schedule_map): Same.
24489         (apply_schedule_map_to_scop): Same.
24490         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24491         (build_loop_iteration_domains): Same.
24492         (add_condition_to_pbb): Same.
24493         (add_param_constraints): Same.
24494         (pdr_add_memory_accesses): Same.
24495         (pdr_add_data_dimensions): Same.
24497 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24499         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24500         requirements.
24502 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24504         * common.opt (feliminate-dwarf2-dups): Replace references to
24505         "DWARF 2" with just "DWARF".
24506         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24507         * doc/extend.texi: Likewise.
24508         * doc/cpp.texi: Likewise.
24509         * doc/invoke.texi: Likewise.
24510         (Option Summary): Add -gdwarf to list of Debugging Options.
24511         (Debugging Options): Document -gdwarf.
24512         * doc/contrib.texi: Spell "DWARF" like that.
24514 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
24516         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24517         warning.  Fix up formatting.
24519         PR middle-end/67653
24520         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24521         attempt to mark memory input operand addressable and
24522         call prepare_gimple_addressable in that case.  Don't adjust
24523         input_location for diagnostics, use error_at instead.
24525 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
24527         * config/rs6000/ppc-auxv.h: New file.
24528         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24529         (cpu_is): Likewise.
24530         (cpu_supports): Likewise.
24531         * config/rs6000/rs6000.c: include "ppc-auxv.h".
24532         (cpu_is_info): New variable.
24533         (cpu_supports_info): Likewise.
24534         (tcb_verification_symbol): Likewise.
24535         (cpu_builtin_p): Likewise.
24536         (cpu_expand_builtin): New function.
24537         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24538         (rs6000_init_builtins): Likewise.
24539         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24540         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24541         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24542         * configure: Regenerate.
24543         * config.in: Likewise.
24544         * doc/extend.texi (PowerPC Built-in Functions): Document
24545         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24547 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
24549         PR target/68609
24550         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24551         domain check.
24552         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24553         for V4SFmode.
24555 2016-01-20  Richard Henderson  <rth@redhat.com>
24557         PR bootstrap/69343
24558         PR bootstrap/69339
24559         PR tree-opt/68964
24560         Revert:
24561         * tree.c (tm_define_builtin): New.
24562         (find_tm_vector_type): New.
24563         (build_tm_vector_builtins): New.
24564         (build_common_builtin_nodes): Call it.
24566 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
24568         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24569         (arm_fp_ok): Likewise.
24570         (arm_fp): Likewise.
24571         (arm_crypto): Likewise.
24573 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24574             Richard Biener  <rguenther@suse.de>
24576         PR tree-optimization/69328
24577         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24578         vectors have same number of elements.
24579         (vectorizable_condition): Fix masked version recognition.
24581 2016-01-20  Richard Biener  <rguenther@suse.de>
24583         PR tree-optimization/69345
24584         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24585         (VN_INFO_PTR_INFO): Likewise.
24586         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24587         info when it is equal between non-dominating SSA names.
24588         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24589         Make sure to look at original SSA infos.
24591 2016-01-20  Jeff Law  <law@redhat.com>
24593         PR target/25114
24594         * config/m68k/predicates.md (pow2_m1_operand): New predicate
24595         extracted from ...
24596         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24597         (pc_or_label_operand): New predicate.
24598         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24599         tests for small integers that are 2^n - 1.
24601 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
24603         * doc/invoke.texi (Options Summary): Add '.' after @xref.
24605 2016-01-19  Jeff Law  <law@redhat.com>
24607         PR middle-end/69347
24608         * tree-ssa-threadbackwards.c
24609         (fsm_find_control_statement_thread_paths): Do not try to lookup
24610         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24612 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24614         * doc/lto.texi: Remove text that says only Gold has linker plugin
24615         support.
24617 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
24619         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24620         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24621         the DIE accordingly.
24622         (modified_type_die): Add REVERSE parameter and pass it recursively,
24623         as well as to base_type_die.  Adjust presence check accordingly.
24624         (base_type_for_mode): Adjust call to modified_type_die.
24625         (add_type_attribute): Add REVERSE parameter and pass it to
24626         modified_type_die.
24627         (generic_parameter_die): Adjust call to add_type_attribute.
24628         (add_scalar_info): Likewise.
24629         (add_subscript_info): Likewise.
24630         (gen_array_type_die): Likewise.
24631         (gen_descr_array_type_die): Likewise.
24632         (gen_entry_point_die): Likewise.
24633         (gen_enumeration_type_die): Likewise.
24634         (gen_formal_parameter_die): Likewise.
24635         (gen_subprogram_die): Likewise.
24636         (gen_variable_die ): Likewise.
24637         (gen_const_die): Likewise.
24638         (gen_field_die): Likewise.
24639         (gen_pointer_type_die): Likewise.
24640         (gen_reference_type_die): Likewise.
24641         (gen_ptr_to_mbr_type_die): Likewise.
24642         (gen_inheritance_die): Likewise.
24643         (gen_subroutine_type_die): Likewise.
24644         (gen_typedef_die): Likewise.
24645         (force_type_die): Adjust call to modified_type_die.
24647 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
24649         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24650         flow throughout the file.  Fix broken link to Objective-C 2.0
24651         documentation.
24652         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24653         errors.
24655 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24657         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24659 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24661         PR ipa/66223
24662         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24663         (maybe_record_node): Record cxa_pure_virtual as the only possible
24664         target if there are not ohter candidates.
24665         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24667 2016-01-19  Richard Biener  <rguenther@suse.de>
24669         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24670         (get_memory_order): Likewise.
24672 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24674         * tree-vect-stmts.c (vectorizable_store): Check
24675         rhs vectype.
24677 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
24679         PR jit/68446
24680         * gcc.c (driver::decode_argv): Add call to
24681         init_opts_obstack before init_options_struct.
24682         * opts.c (init_opts_obstack): Remove idempotency.
24683         (init_options_struct): Replace call to init_opts_obstack
24684         with a gcc_assert to verify that it has already been called.
24685         * toplev.c (toplev::main): Add call to init_opts_obstack before
24686         calls to init_options_struct.
24687         (toplev::finalize): Move cleanup of opts_obstack next to
24688         cleanup of save_decoded_options, clearing the latter, and
24689         save_decoded_options_count.
24691 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24693         PR target/69135
24694         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24695         attribute to unconditional.  Remove %? from output template.
24697 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24698             Jiong Wang  <jiong.wang@arm.com>
24700         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24701         generated from different expand order.
24703 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24705         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24706         Add support for CCMP costing.
24708 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24710         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24711         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24712         (fccmpe<mode>): Likewise.
24713         (fcmp): Rename to fcmp and globalize pattern.
24714         (fcmpe): Likewise.
24715         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24716         (aarch64_gen_ccmp_next): Add FP support.
24718 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24720         * target.def (gen_ccmp_first): Update documentation.
24721         (gen_ccmp_next): Likewise.
24722         * doc/tm.texi (gen_ccmp_first): Update documentation.
24723         (gen_ccmp_next): Likewise.
24724         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24725         expand_ccmp_expr_1.  Improve comments.
24726         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24727         (ccmp_ior<mode>): Remove pattern.
24728         (cmp<mode>): Remove expand.
24729         (cmp): Globalize pattern.
24730         (cstorecc4): Use cc_register.
24731         (mov<mode>cc): Remove ccmp_cc_register check.
24732         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24733         Simplify after removal of CC_DNE/* modes.
24734         (aarch64_ccmp_mode_to_code): Remove.
24735         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
24736         In 'k' case use integer as condition.
24737         (aarch64_nzcv_codes): Remove inverted cases.
24738         (aarch64_code_to_ccmode): Remove.
24739         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
24740         comparison with CC register to be used in folowing CCMP/branch/CSEL.
24741         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24742         pattern.  Return the comparison with CC register.  Invert conditions
24743         when bitcode is OR.
24744         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24745         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24747 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24749         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24750         instrumented_version.
24752 2016-01-19  Richard Biener  <rguenther@suse.de>
24754         PR tree-optimization/69336
24755         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24756         handled components with get_ref_base_and_extent.
24757         (equal_mem_array_ref_p): Adjust.
24759 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24761         PR debug/65779
24762         * shrink-wrap.c: Include valtrack.h.
24763         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
24764         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24765         in between insn and where it will be moved to.  Call
24766         dead_debug_insert_temp.
24767         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
24768         first and dead_debug_local_finish at the end.
24769         For uses and defs bitmap, handle all regs in between REGNO and
24770         END_REGNO, not just the first one.
24772 2016-01-19  Richard Biener  <rguenther@suse.de>
24774         PR tree-optimization/69352
24775         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24776         (equal_mem_array_ref_p): Constrain size and max size properly.
24777         Compare the reverse flag.
24779 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
24781         * ira.c (ira): Update regstat data if we deleted insns.
24783 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24785         PR rtl-optimization/68955
24786         PR rtl-optimization/64557
24787         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24788         here.  Fix up formatting.
24789         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24791 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24793         PR lto/69133
24794         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24795         assume that the node has body.
24796         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24797         check.
24799 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24801         * lto-streamer-out.c (lto_output): Do not stream instrumentation
24802         thunks.
24804 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24806         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24807         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24809 2016-01-19  Martin Jambor  <mjambor@suse.cz>
24810             Martin Liska  <mliska@suse.cz>
24811             Michael Matz  <matz@suse.de>
24813         * Makefile.in (OBJS): Add new source files.
24814         (GTFILES): Add hsa.c.
24815         * common.opt (disable_hsa): New variable.
24816         (-Whsa): New warning.
24817         * config.in (ENABLE_HSA): New.
24818         * configure.ac: Treat hsa differently from other accelerators.
24819         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24820         $enable_offloading.
24821         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24822         * doc/install.texi (Configuration): Document --with-hsa-runtime,
24823         --with-hsa-runtime-include, --with-hsa-runtime-lib and
24824         --with-hsa-kmt-lib.
24825         * doc/invoke.texi (-Whsa): Document.
24826         (hsa-gen-debug-stores): Likewise.
24827         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24828         to invoke offload compiler for hsa acclerator.
24829         * opts.c (common_handle_option): Determine whether HSA offloading
24830         should be performed.
24831         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24832         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24833         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24834         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24835         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24836         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24837         GF_OMP_FOR_KIND_GRID_LOOP.
24838         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24839         (pp_gimple_stmt_1): Likewise.
24840         * gimple-walk.c (walk_gimple_stmt): Likewise.
24841         * gimple.c (gimple_build_omp_grid_body): New function.
24842         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24843         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24844         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24845         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24846         GF_OMP_TEAMS_GRID_PHONY.
24847         (gimple_statement_omp_single_layout): Updated comments.
24848         (gimple_build_omp_grid_body): New function.
24849         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24850         (gimple_omp_for_grid_phony): New function.
24851         (gimple_omp_for_set_grid_phony): Likewise.
24852         (gimple_omp_parallel_grid_phony): Likewise.
24853         (gimple_omp_parallel_set_grid_phony): Likewise.
24854         (gimple_omp_teams_grid_phony): Likewise.
24855         (gimple_omp_teams_set_grid_phony): Likewise.
24856         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24857         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24858         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24859         (BUILT_IN_GOMP_TARGET): Updated type.
24860         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24861         (adjust_for_condition): New function.
24862         (get_omp_for_step_from_incr): Likewise.
24863         (extract_omp_for_data): Moved parts to adjust_for_condition and
24864         get_omp_for_step_from_incr.
24865         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24866         (fixup_child_record_type): Bail out if receiver_decl is NULL.
24867         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24868         (scan_omp_parallel): Do not create child functions for phony
24869         constructs.
24870         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24871         (scan_omp_1_op): Checking assert we are not remapping to
24872         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
24873         (parallel_needs_hsa_kernel_p): New function.
24874         (expand_parallel_call): Register apprpriate parallel child
24875         functions as HSA kernels.
24876         (grid_launch_attributes_trees): New type.
24877         (grid_attr_trees): New variable.
24878         (grid_create_kernel_launch_attr_types): New function.
24879         (grid_insert_store_range_dim): Likewise.
24880         (grid_get_kernel_launch_attributes): Likewise.
24881         (get_target_argument_identifier_1): Likewise.
24882         (get_target_argument_identifier): Likewise.
24883         (get_target_argument_value): Likewise.
24884         (push_target_argument_according_to_value): Likewise.
24885         (get_target_arguments): Likewise.
24886         (expand_omp_target): Call get_target_arguments instead of looking
24887         up for teams and thread limit.
24888         (grid_expand_omp_for_loop): New function.
24889         (grid_arg_decl_map): New type.
24890         (grid_remap_kernel_arg_accesses): New function.
24891         (grid_expand_target_kernel_body): New function.
24892         (expand_omp): Call it.
24893         (lower_omp_for): Do not emit phony constructs.
24894         (lower_omp_taskreg): Do not emit phony constructs but create for them
24895         a temporary variable receiver_decl.
24896         (lower_omp_taskreg): Do not emit phony constructs.
24897         (lower_omp_teams): Likewise.
24898         (lower_omp_grid_body): New function.
24899         (lower_omp_1): Call it.
24900         (grid_reg_assignment_to_local_var_p): New function.
24901         (grid_seq_only_contains_local_assignments): Likewise.
24902         (grid_find_single_omp_among_assignments_1): Likewise.
24903         (grid_find_single_omp_among_assignments): Likewise.
24904         (grid_find_ungridifiable_statement): Likewise.
24905         (grid_target_follows_gridifiable_pattern): Likewise.
24906         (grid_remap_prebody_decls): Likewise.
24907         (grid_copy_leading_local_assignments): Likewise.
24908         (grid_process_kernel_body_copy): Likewise.
24909         (grid_attempt_target_gridification): Likewise.
24910         (grid_gridify_all_targets_stmt): Likewise.
24911         (grid_gridify_all_targets): Likewise.
24912         (execute_lower_omp): Call grid_gridify_all_targets.
24913         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24914         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24915         (tree_omp_clause): Added union field dimension.
24916         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24917         * tree.c (omp_clause_num_ops): Added number of arguments of
24918         OMP_CLAUSE__GRIDDIM_.
24919         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24920         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24921         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24922         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24923         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24924         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24925         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24926         * tree-pass.h (make_pass_gen_hsail): Declare.
24927         (make_pass_ipa_hsa): Likewise.
24928         * ipa-hsa.c: New file.
24929         * lto-section-in.c (lto_section_name): Add hsa section name.
24930         * lto-streamer.h (lto_section_type): Add hsa section.
24931         * timevar.def (TV_IPA_HSA): New.
24932         * hsa-brig-format.h: New file.
24933         * hsa-brig.c: New file.
24934         * hsa-dump.c: Likewise.
24935         * hsa-gen.c: Likewise.
24936         * hsa.c: Likewise.
24937         * hsa.h: Likewise.
24938         * toplev.c (compile_file): Call hsa_output_brig.
24939         * hsa-regalloc.c: New file.
24941 2016-01-18  Jeff Law  <law@redhat.com>
24943         PR tree-optimization/69320
24944         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24945         ranged object, do nothing if the RHS constant is not [0..1].
24946         (optimize_stmt): Comparing a boolean ranged object against a
24947         constant outside [0..1] results in a compile-time constant.
24949         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24950         test.
24952 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24954         * doc/invoke.texi (Invoking GCC): Add new section to menu.
24955         (Option Summary): Update to reflect new section and moved options.
24956         (C++ Dialect Options): Move -fstats to new section.
24957         (Debugging Options): Move all dump, statistics, and other GCC
24958         developer options to new section.  Rewrite section introduction
24959         and re-order remaining options to put the more basic ones first.
24960         (Optimization Options): Move -fira-verbose and -flto-report* to
24961         new section.
24962         (Developer Options): New section incorporating moved options.
24963         * doc/cppopts.texi (-dM): Update cross-reference.
24965 2016-01-18  Richard Henderson  <rth@redhat.com>
24967         PR target/69176
24968         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24969         operands to pseudo only if CSE is expected.  Split long immediate
24970         operands only after reload, and for the stack pointer.
24971         (*add<GPI>3_pluslong): Remove.
24972         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24973         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
24974         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24975         (*add<GPI>3 peepholes): New.
24976         (*add<GPI>3 splitters): New.
24977         * config/aarch64/constraints.md (Upl): New.
24978         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
24980 2016-01-18  Richard Biener  <rguenther@suse.de>
24982         PR tree-optimization/69297
24983         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
24984         stmt at most once.
24985         (vect_bb_vectorization_profitable_p): Clear visited flag again.
24987 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
24989         PR middle-end/68542
24990         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
24991         of mixind vector and scalar types.
24992         (fold_relational_const): Add handling of vector
24993         comparison with boolean result.
24994         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
24995         comparison of vector operands with boolean result for EQ/NE only.
24996         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
24997         (verify_gimple_cond): Likewise.
24998         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
24999         valid type of VAL.
25001 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
25003         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25004         !TARGET_OCTEON.
25006 2016-01-18  Richard Biener  <rguenther@suse.de>
25008         PR middle-end/69308
25009         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25011 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25013         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25015 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25017         * omp-low.c (set_oacc_fn_attrib): Make extern.
25018         * omp-low.h (set_oacc_fn_attrib): Declare.
25019         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25020         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25021         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25022         Add and handle function parameter oacc_kernels_p.
25023         (find_reduc_addr, get_omp_data_i_param): New function.
25024         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25025         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25026         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25027         Calculate dominance info.  Skip loops that are not in a kernels region
25028         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
25029         (pass_parallelize_loops::execute): Call parallelize_loops with
25030         oacc_kernels_p argument.
25031         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25032         New member function.
25033         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25034         * passes.def: Add argument to pass_parallelize_loops instantation.
25036 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25038         * tree-parloops.c (pass_parallelize_loops::execute): Allow
25039         pass_parallelize_loops to be run outside the loop pipeline.
25041 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25043         * tree-scalar-evolution.c (follow_copies_to_constant): New.
25044         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25046 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25048         PR target/63679
25049         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25050         using get_ref_base_and_extent.
25051         (equal_mem_array_ref_p): New.
25052         (hashable_expr_equal_p): Add call to previous.
25054 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25056         PR target/63679
25057         * tree-sra.c (disqualified_constants, constant_decl_p): New.
25058         (sra_initialize): Allocate disqualified_constants.
25059         (sra_deinitialize): Free disqualified_constants.
25060         (disqualify_candidate): Update disqualified_constants when appropriate.
25061         (create_access): Scan for constant-pool entries as we go along.
25062         (scalarizable_type_p): Add check against type_contains_placeholder_p.
25063         (maybe_add_sra_candidate): Allow constant-pool entries.
25064         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25065         (initialize_constant_pool_replacements): New.
25066         (sra_modify_assign): Avoid mangling assignments created by previous,
25067         and don't generate writes into constant pool.
25068         (sra_modify_function_body): Call initialize_constant_pool_replacements.
25070 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25072         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25073         andnot instruction.
25074         (scalar_chain::convert_op): Likewise.
25075         * config/i386/i386.md (*andndi3_doubleword): New.
25077 2016-01-18  Richard Biener  <rguenther@suse.de>
25079         PR tree-optimization/69170
25080         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25081         building a vector from scalar results of a pattern stmt.
25083 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
25085         * haifa-sched.c (autopref_multipass_init): Work around
25086         -Wmaybe-uninitialized warning.
25088 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25090         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25091         against the constant 0.
25093 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25095         PR tree-optimization/68799
25096         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25097         look up phi candidates in the statement-candidate map.
25098         (phi_add_costs): Likewise.
25099         (record_phi_increments): Likewise.
25100         (phi_incr_cost): Likewise.
25101         (ncd_with_phi): Likewise.
25102         (all_phi_incrs_profitable): Likewise.
25104 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
25106         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25107         -Wmaybe-uninitialized warning.
25109 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
25111         * doc/invoke.texi (Invoking GCC): Add new section to menu.
25112         (Option Summary): Update to reflect new section and moved options.
25113         (C++ Dialect Options): Move -fvtable-verify and related options.
25114         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25115         and profiling-related options.
25116         (Optimization Options): Move profile generation options and
25117         -fstack-protector and related options.
25118         (Instrumentation Options): New section incorporating moved options.
25119         (Code Generation Options): Move -finstrument-functions and
25120         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25122 2016-01-16  Tom de Vries  <tom@codesourcery.com>
25124         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25126 2016-01-16  Tom de Vries  <tom@codesourcery.com>
25128         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
25130 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
25132         * hash-table.h (hash_table::empty): Turn into an inline wrapper
25133         that checks whether the table is already empty.  Rename the
25134         original implementation to...
25135         (hash_table::empty_slot): ...this new private function.
25137 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
25139         PR diagnostic/68899
25140         * diagnostic-show-locus.c (layout::print_source_line): Move x
25141         offset of line until after call to
25142         get_line_width_without_trailing_whitespace.
25144 2016-01-15  Jeff Law  <law@redhat.com>
25146         PR tree-optimization/69270
25147         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25148         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
25149         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25150         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25151         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25152         ssa_name_has_boolean_range and constant_boolean_node.
25154 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25156         PR rtl-optimization/69030
25157         * lra-spills.c (remove_pseudos): Check nrefs and make the function
25158         returning bool.
25159         (spill_pseudos): Delete debug insn for dead pseudo.
25160         (lra_spill): Initiate spill_hard_reg and slots memory separately.
25162 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
25164         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25165         New.
25166         (TYPES_UNOPUS): Likewise.
25167         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25168         builtin type, from UNOP to UNOPUS.
25169         (lbtruncuv4sf): Likewise.
25170         (lbtruncuv2df): Likewise.
25171         (lrounduv2sf): Likewise.
25172         (lrounduv4sf): Likewise.
25173         (lrounduv2df): Likewise.
25174         (lroundusf): Likewise.
25175         (lroundusf): Likewise.
25176         (lceiluv2sf): Likewise.
25177         (lceiluv4sf): Likewise.
25178         (lceiluv2df): Likewise.
25179         (lceilusf): Likewise.
25180         (lceiludf): Likewise.
25181         (lflooruv2sf): Likewise.
25182         (lflooruv4sf): Likewise.
25183         (lflooruv2df): Likewise.
25184         (lfloorusf): Likewise.
25185         (lfloorudf): Likewise.
25186         (lfrintnuv2sf): Likewise.
25187         (lfrintnuv4sf): Likewise.
25188         (lfrintnuv2df): Likewise.
25189         (lfrintnusf): Likewise.
25190         (lfrintnudf): Likewise.
25191         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25192         conversion.
25193         (vcvtq_u32_f32): Likewise.
25194         (vcvtq_u64_f64): Likewise.
25195         (vcvta_u32_f32): Likewise.
25196         (vcvtaq_u32_f32): Likewise.
25197         (vcvtaq_u64_f64): Likewise.
25198         (vcvtm_u32_f32): Likewise.
25199         (vcvtmq_u32_f32): Likewise.
25200         (vcvtmq_u64_f64): Likewise.
25201         (vcvtn_u32_f32): Likwise.
25202         (vcvtnq_u32_f32): Likewise.
25203         (vcvtnq_u64_f64): Likewise.
25204         (vcvtp_u32_f32): Likewise.
25205         (vcvtpq_u32_f32): Likewise.
25206         (vcvtpq_u64_f64): Likewise.
25207         (vcvtmd_u64_f64): Likewise.
25208         (vcvtms_u32_f32): Likewise.
25209         (vcvtad_u64_f64): Likewise.
25210         (vcvtas_u32_f32): Likewise.
25211         (vcvtnd_u64_f64): Likewise.
25212         (vcvtns_u32_f32): Likewise.
25213         (vcvtpd_u64_f64): Likewise.
25214         (vcvtps_u32_f32): Likewise.
25216 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25218         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25219         CSEL of zero_extended registers.
25221 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25223         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25224         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25226 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25228         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25229         false when argument string is not found in the attributes table
25230         at all.
25232 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
25234         PR target/68609
25235         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25236         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25237         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25238         precision estimate.
25240 2016-01-15  Richard Biener  <rguenther@suse.de>
25242         PR tree-optimization/66856
25243         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25244         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25245         (vect_create_new_slp_node): Increment stmt reference count.
25246         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25247         an SLP tree before swapping operands.
25248         (vect_build_slp_tree): Likewise.
25249         (destroy_bb_vec_info): Free stmt info after SLP instances.
25250         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25251         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25252         (STMT_VINFO_NUM_SLP_USES): New macro.
25254 2016-01-15  Richard Biener  <rguenther@suse.de>
25256         PR debug/69137
25257         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
25258         (add_linkage_name): ... here.
25259         (gen_typedef_die): Use add_linkage_name_raw instead of
25260         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
25261         if necessary.
25263 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
25265         * gimplify.c (oacc_default_clause): Decode reference and pointer
25266         types for both kernels and parallel regions.
25268 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
25270         PR middle-end/69246
25271         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
25273 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25275         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
25276         (convert_scalars_to_vector): Likewise.
25278 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
25280         * doc/extend.texi (Type Traits): Fix grammar.
25282 2016-01-15  Martin Jambor  <mjambor@suse.cz>
25284         * tree-inline.c (remap_decl): Use existing dclarations if
25285         remapping a type and prevent_decl_creation_for_types.
25286         (replace_locals_stmt): Do an initial remapping of non-VLA typed
25287         decls first.  Do real remapping with
25288         prevent_decl_creation_for_types set.
25289         * tree-inline.h (copy_body_data): New field
25290         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
25291         padding.
25293 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25295         * config/s390/s390.opt (mmvcle): More verbose help text.
25297 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25299         * config/s390/s390.opt: Add period to -mzvector option text.
25301 2016-01-15  Richard Biener  <rguenther@suse.de>
25303         PR tree-optimization/68961
25304         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
25305         of invariants in stores again.
25307 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25309         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
25311 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25313         * config/i386/i386.c (ix86_expand_branch): Don't split
25314         DI mode xor instruction to SI mode.
25316 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
25318         PR ipa/68148
25319         * ipa-icf.c (sem_function::merge): Virtual functions may become
25320         reachable even if they address is not taken and there are no
25321         idrect calls.
25323 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
25325         * lto-streamer-out.c (subtract_estimated_size): New function.
25326         (get_symbol_initial_value): Use it.
25328 2016-01-15  Christian Bruel  <christian.bruel@st.com>
25330         PR target/65837
25331         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
25332         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
25333         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
25334         use add_builtin_function_ext_scope instead of add_builtin_function.
25335         (neon_set_p, neon_crypto_set_p): Remove.
25336         (arm_init_builtins): Always call arm_init_neon_builtins and
25337         arm_init_crypto_builtins.
25338         (arm_expand_builtin): Check that builtins are allowed for the arch.
25339         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
25340         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
25341         arm_init_neon_builtins call.
25343 2016-01-15  Richard Biener  <rguenther@suse.de>
25345         PR tree-optimization/69117
25346         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
25347         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
25348         of the leader conservatively.
25349         (free_scc_vn): Restore original SSA name infos.
25351 2016-01-14  Jeff Law  <law@redhat.com>
25353         PR tree-optimization/69270
25354         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
25355         single bit of precision, verify it's also unsigned.
25356         (record_edge_info): Use constant_boolean_node rather than fold_convert
25357         to convert boolean_true/boolean_false to the right type.
25359 2016-01-14  Richard Henderson  <rth@redhat.com>
25361         PR rtl-opt/69014
25362         * loop-doloop.c (record_reg_sets): New.
25363         (doloop_optimize): Reject the transform if the sequence
25364         clobbers registers live at the end of the loop block.
25365         (doloop_optimize_loops): Enable df_live if needed.
25367 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25369         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
25370         * config/rs6000/rs6000.c: Likewise.
25371         * config/rs6000/rs6000.h: Likewise.
25372         * config/rs6000/rs6000.md: Likewise.
25373         * doc/extend.texi: Likewsie.
25375 2016-01-14  Jeff Law  <law@redhat.com>
25377         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
25378         typo.
25380 2016-01-14  Richard Henderson  <rth@redhat.com>
25382         PR c/69272
25383         PR tree-opt/68964
25384         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
25385         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
25386         instead of builtin_decl_declared_p to test for declaration.
25388 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
25390         * doc/loop.texi (Loop Analysis and Representation): Document
25391         loop_depth function.
25393 2016-01-14  Tom de Vries  <tom@codesourcery.com>
25395         PR tree-optimization/68773
25396         * omp-low.c (expand_omp_target): Don't set force_output.
25397         * varpool.c (varpool_node::get_create): Same.
25398         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
25399         offload_funcs with force_output.
25401 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25403         PR debug/69244
25404         * lra-eliminations.c (move_plus_up): Don't change anything if either
25405         the outer or inner subreg mode is not MODE_INT.
25406         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25407         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25409 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25411         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25412         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25413         reduc_uplus_@var{m}): Remove.
25414         * expr.c (expand_expr_real_2): Remove expansion path for
25415         reduc_[us](min|max|plus) optabs.
25416         * optabs-tree.c (scalar_reduc_to_vector): Remove.
25417         * optabs-tree.h (scalar_reduc_to_vector): Remove.
25418         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25419         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25420         * tree-vect-loop.c (vectorizable_reduction): Remove test for
25421         reduc_[us](min|max|plus) optabs.
25423 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25425         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25426         (reduc_plus_scal_v2sf): New.
25427         (reduc_smax_v2sf): Rename to...
25428         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25429         (reduc_smin_v2sf): Rename to...
25430         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25432 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
25434         * alias.c (compare_base_symbol_refs): New function.
25435         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25436         it.
25438 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25440         PR middle-end/68146
25441         PR tree-optimization/69155
25442         * tree-complex.c: Include cfganal.h.
25443         (phis_to_revisit): New variable.
25444         (extract_component): Add phiarg_p argument.  Assert that returned
25445         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25446         (update_phi_components): Partly rewrite to use loop over real/imag
25447         components instead of code duplication.  If extract_component returns
25448         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25449         create_tmp_reg into the PHI node instead, and mention the phi triplet
25450         in phis_to_revisit.
25451         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
25452         in phis_to_revisit at the end.
25454 2016-01-14  Richard Biener  <rguenther@suse.de>
25456         PR tree-optimization/68060
25457         * tree-vect-loop.c (vect_is_simple_reduction): Check the
25458         outer loop reduction is only used in the inner loop before
25459         detecting a double reduction.
25461 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25463         PR target/68269
25464         * combine.c (expand_field_assignment): Punt if compute_mode is
25465         unsupported scalar mode.
25467 2016-01-14  Richard Biener  <rguenther@suse.de>
25469         PR tree-optimization/66856
25470         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25471         SLP node only if it built successfully.
25472         (vect_analyze_slp_instance): Adjust.
25474 2016-01-14  Jeff Law  <law@redhat.com>
25476         PR tree-optimization/69270
25477         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25478         (record_edge_info): Use it.  Convert boolean_{true,false}_node
25479         to the type of op0.
25481 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
25483         PR ipa/66487
25484         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25485         use block_ultimate_origin
25486         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25488 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25490         * doc/invoke.texi (Submodel Options): Rename section to
25491         "Machine-Dependent Options" to better reflect its content.
25492         Rewrite introductory text to remove archaic CPU names.
25493         Update references.
25495 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25497         * doc/invoke.texi (Code Gen Options): Move section up in file,
25498         before target-specific options.  Update menu and option summary
25499         to reflect the new section ordering.
25501 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25503         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25504         (C++ Dialect Options): Add cross-reference to -std option.
25505         * doc/standards.texi (C++ Language): Document C++14 support.
25507 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
25509         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25510         for pack/unpack functions for __ibm128.
25511         (PACK_IF): Likewise.
25512         (UNPACK_IF): Likewise.
25514         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25515         support for __ibm128 pack/unpack functions.
25516         (rs6000_invalid_builtin): Likewise.
25517         (rs6000_init_builtins): Likewise.
25518         (rs6000_opt_masks): Likewise.
25520         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25521         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25522         functions
25523         (RS6000_BTM_COMMON): Likewise.
25525         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25526         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25527         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25528         128-bit floating point.  Add support for the double values to be
25529         in Altivec registers for TF/IF packing and unpacking, but restrict
25530         TD packing sub-fields to be FPR registers.  Don't allow overlapped
25531         register support for packing.  Allow pack inputs to be memory
25532         locations.  Don't build generator functions for unpack<mode>_dm
25533         and unpack<mode>_nodm.
25534         (unpack<mode>_dm): Likewise.
25535         (unpack<mode>_nodm): Likewise.
25536         (pack<mode>): Likewise.
25538         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25539         built-in functions to pack/unpack explicit __ibm128 values.
25540         (__builtin_unpack_ibm128): Likewise.
25542         * doc/extend.texi (PowerPC Built-in Functions): Document
25543         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25545 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
25547         PR c/66208
25548         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25549         Add new arg loc and pass it down as context.
25550         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25551         to the location to use for the warning.
25552         (check_function_arguments): New arg loc.  All callers changed.  Pass
25553         it to check_function_nonnull.
25554         * c-common.h (check_function_arguments): Adjust declaration.
25556 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
25558         PR tree-optimization/69156
25559         * gimple.c (validate_type): Removed.
25560         (gimple_builtin_call_types_compatible_p): Use
25561         useless_type_conversion_p instead of validate_type.
25562         * value-prof.c (gimple_stringop_fixed_value): Fold
25563         icall_size to correct type.
25565 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25567         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25568         effects.
25570 2016-01-13  Richard Henderson  <rth@redhat.com>
25572         PR tree-opt/68964
25573         * target.def (builtin_tm_load, builtin_tm_store): Remove.
25574         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25575         (ix86_builtin_tm_store): Remove.
25576         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25577         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25578         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25579         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25580         * doc/tm.texi: Rebuild.
25582         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25583         (BUILT_IN_TM_MEMCPY_RTWN): New.
25584         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25585         fallback from vector to integer helpers.
25586         (build_tm_load): Handle vector types directly, instead of
25587         via target hook.
25588         (build_tm_store): Likewise.
25589         (expand_assign_tm): Prepare for register types not handled by
25590         the above.  Copy them to memory and use memcpy.
25591         * tree.c (tm_define_builtin): New.
25592         (find_tm_vector_type): New.
25593         (build_tm_vector_builtins): New.
25594         (build_common_builtin_nodes): Call it.
25596 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
25598         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25599         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
25601 2016-01-13  Tom de Vries  <tom@codesourcery.com>
25603         PR tree-optimization/69169
25604         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25605         handled_struct_type param.
25606         (create_variable_info_for, intra_create_variable_infos): Call
25607         create_variable_info_for_1 with extra arg.
25609 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
25611         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25612         and "armv8.1-a+crc" entries.
25614 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
25616         PR target/69228
25617         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25618         Change first operand predicate from register_or_constm1_operand
25619         to register_operand.
25620         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25621         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25622         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25623         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25624         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25625         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25626         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25627         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25628         comparison with constm1_rtx from vec_prefetch_gen part.
25630 2016-01-13  Richard Biener  <rguenther@suse.de>
25632         PR tree-optimization/69013
25633         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25634         Exchange assert for a test.
25636 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25638         PR target/69247
25639         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25641 2016-01-13  Richard Biener  <rguenther@suse.de>
25643         PR tree-optimization/69242
25644         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25645         assert with a check.
25647 2016-01-13  Richard Biener  <rguenther@suse.de>
25649         PR tree-optimization/69186
25650         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25651         Properly guard vect_update_misalignment_for_peel call.
25653 2016-01-12  Jeff Law  <law@redhat.com>
25655         PR tree-optimization/pr67755
25656         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25657         "need_profile_correction".
25658         (thread_block_1): Initialize new field to false by default.  If we
25659         have multiple thread paths through a common joiner to different
25660         final targets, then set new field to true.
25661         (compute_path_counts): Only do count adjustment when it's really
25662         needed.
25664 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25666         * doc/invoke.texi (Spec Files): Move section down in file, past
25667         all command-line option descriptions.
25669 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25671         PR middle-end/54809
25672         * doc/gty.texi: Remove documentation of mark_hook.
25673         * gengtype.c (struct write_types_data): Remove code to support
25674         mark_hook attribute.
25675         (walk_type): Likewise.
25676         (write_func_for_structure): Likewise.
25678 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25680         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25681         Directory Options, and -specs= to Overall Options.
25682         (Overall Options): Adjust similarly.  Reorder to group related
25683         options together.  Make -specs= cross-reference the spec file details.
25684         (Directory Options): Adjust similarly.
25686 2016-01-12  Jeff Law  <law@redhat.com>
25688         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25690 2016-01-12  Olivier Hainque  <hainque@adacore.com>
25692         * gcc.c (spec_undefvar_allowed): New global.
25693         (process_command): Set to true when running for --version or --help,
25694         alone or together.
25695         (getenv_spec_function): When the variable is not defined, use the
25696         variable name as the variable value if we're allowed not to issue
25697         a fatal error.
25699 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
25701         PR tree-optimization/68911
25702         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25703         information computed for expression "init + nit * step".
25705 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25707         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
25708         about name of GCC executable.  Remove deleted node from menu.
25709         (Directory Options) <-B>: Remove cross-reference to deleted node.
25710         (Target Options): Delete section.
25712 2016-01-12  Christian Bruel  <christian.bruel@st.com>
25714         PR target/69180
25715         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25716         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25718 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
25720         PR target/69198
25721         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25722         aligned_mem is properly set for AVX512-VL floating point masked
25723         stores.
25725         PR target/69175
25726         * ifcvt.c (cond_exec_process_if_block): When removing the last
25727         insn from then_bb, remove also any possible barriers that follow it.
25729 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
25731         PR target/68456
25732         PR target/69226
25733         * config/i386/iamcu.h (SIZE_TYPE): New macro.
25734         (PTRDIFF_TYPE): Likewise.
25735         (WCHAR_TYPE): Likewise.
25736         (WCHAR_TYPE_SIZE): Likewise.
25737         (STDINT_LONG32): Likewise.
25739 2016-01-12  Richard Biener  <rguenther@suse.de>
25741         PR tree-optimization/69053
25742         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25743         convert initial value for cond reductions.
25745 2016-01-12  Richard Biener  <rguenther@suse.de>
25747         PR tree-optimization/69007
25748         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25749         widen_sum after dot_prod and sad.
25751 2016-01-12  Richard Biener  <rguenther@suse.de>
25753         PR tree-optimization/69168
25754         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25755         pattern stmt SLP type.
25756         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25757         end up unused so cope with that case.
25759 2016-01-12  Richard Biener  <rguenther@suse.de>
25761         PR tree-optimization/69157
25762         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25763         stmts def type only during analyze phase.
25764         (vectorizable_call): Likewise.
25765         (vectorizable_simd_clone_call): Likewise.
25766         (vectorizable_conversion): Likewise.
25767         (vectorizable_assignment): Likewise.
25768         (vectorizable_shift): Likewise.
25769         (vectorizable_operation): Likewise.
25770         (vectorizable_store): Likewise.
25771         (vectorizable_load): Likewise.
25773 2016-01-12  Richard Biener  <rguenther@suse.de>
25775         PR tree-optimization/69174
25776         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25777         space.
25778         (vectorizable_load): Properly compute the number of loads needed
25779         for permuted strided SLP loads and do not spuriously assign
25780         to SLP_TREE_VEC_STMTS.
25782 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
25784         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25785         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25786         (MD_EXEC_PREFIX): Remove.
25787         (MD_STARTFILE_PREFIX) Removee.
25788         (FILE_NAME_ABSOLUTE_P): Remove.
25789         (CPP_SPEC): Do not read macros from sys/version.h.
25790         (LINK_COMMAND_SPEC): Remove.
25791         (LOCAL_INCLUDE_DIR): Remove.
25792         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25793         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25794         (POST_LINK_SPEC): Define to invoke stubify after linker
25795         (LIBSTDCXX): Remove define
25796         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25797         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25798         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25799         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25800         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25801         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25802         (i386_djgpp_asm_named_section): Add propotype of new procedure
25804         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25805         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25806         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25807         in config/i386/djgpp.h).
25808         (STANDARD_STARTFILE_PREFIX_2): Define identical to
25809         STANDARD_STARTFILE_PREFIX_1.
25810         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25811         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25812         installation errors.
25813         (MAX_OFILE_ALIGNMENT): Define to 128.
25814         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25816         * config/i386/djgpp.c: New file. Add implementation of
25817         i386_djgpp_asm_named_section.
25819         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25821         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25822         Add rule for building djgpp.o.
25824 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25826         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25827         (rtx_is_swappable_p): Reductions are swappable.
25828         (insn_is_swappable_p): V2DF reductions are swappable.
25830 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
25832         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25833         reloads for other unsupported memory operands.
25835 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25836             Jim Wilson  <jim.wilson@linaro.org>
25838         PR target/69194
25839         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25840         copy_to_mode_reg instead of force_reg.
25842 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25844         PR target/69225
25845         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25846         TARGET_80387 is true.
25848 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
25850         PR target/69071
25851         * lra-eliminations.c (move_plus_up): Only move plus up
25852         if subreg of the constant can be simplified into constant
25853         and use the simplified subreg of the constant instead of
25854         the original constant.
25856         * fold-const.c (fold_convertible_p): Don't return true
25857         for conversion of VECTOR_TYPE to same sized integral type.
25858         (fold_convert_loc): Fix up formatting.  Fold conversion of
25859         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25860         instead of NOP_EXPR.
25862         PR tree-optimization/69214
25863         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25864         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25865         Formatting fix.
25867         PR tree-optimization/69207
25868         * tree-vect-slp.c (vect_get_constant_vectors): For
25869         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25870         fold_convertible_p to vector_type's element type, and always
25871         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25873 2016-01-11  Richard Biener  <rguenther@suse.de>
25875         PR tree-optimization/69173
25876         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25877         fixup the cycle if all stmts are in a pattern.
25879 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
25881         PR middle-end/68999
25882         * alias.c (base_alias_check): Move check for addresses with
25883         alignment ANDs before the call for compare_base_decls.
25884         (memrefs_conflict_p): Return -1 for different decls
25885         that went through alignment adjustments.
25887 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25889         PR rtl-optimization/68796
25890         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25891         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25892         and QImode comparisons against zero with CC_NZmode.
25893         * config/aarch64/iterators.md (short_mask): New mode_attr.
25895 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25897         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25898         (<avx512>_store<mode>_mask): Likewise.
25900 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
25901             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25903         PR rtl-optimization/68841
25904         * ifcvt.c (struct noce_if_info): Add orig_x field.
25905         (bbs_ok_for_cmove_arith): Add to_rename parameter.
25906         Don't record conflicts on to_rename if it's present.
25907         Allow memory destinations in sets.
25908         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25909         blocks, passing orig_x to the checks.
25910         (noce_process_if_block): Set if_info->orig_x appropriately.
25912 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25914         PR tree-optimization/69069
25915         * tree-parloops.c (create_parallel_loop): Add missing phi args.
25917 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
25919         PR rtl-optimization/68920
25920         * config/i386/i386.c (ix86_option_override_internal): Restrict number
25921         of conditional moves for  RTL if-conversion to 1 for
25922         TARGET_ONE_IF_CONV_INSN.
25923         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25924         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25925         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25926         parameter to restirct number of conditional moves for
25927         RTL if-conversion.
25928         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25929         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25930         conditionl moves.
25932 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
25934         PR bootstrap/69123
25935         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25936         onepart vars.  Fix typo in comment.  Fix reversed condition in
25937         unshare test.
25938         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25940         PR bootstrap/69123
25941         * var-tracking.c (dump_onepart_variable_differences): New.
25942         (dataflow_set_different): If a detailed dump is requested,
25943         delay early returns and dump differences between onepart
25944         variables present before and after, and added variables.
25946 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
25948         PR target/69010
25949         * expr.c (expand_expr_real_1): For boolean vector constants
25950         with a scalar mode use const_scalar_mask_from_tree.
25951         (const_scalar_mask_from_tree): New.
25952         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25953         assigned to a mask type to handle constants.
25955 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25957         PR ipa/69044
25958         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25959         useless parameters if we cannot change function signature.
25961 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25963         PR ipa/66616
25964         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25965         flag.
25967 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25969         PR tree-optimization/69109
25970         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25971         latch with phi.
25973 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25975         PR tree-optimization/69108
25976         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
25977         res is not used in a phi.
25979 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
25981         PR 67425
25982         * common.opt (frandom-seed): Fix parameter name.
25983         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
25985 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25987         PR tree-optimization/69058
25988         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
25989         not supported.
25991 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
25993         * config/arc/arc.opt (mdiv-rem): Add period to the end.
25994         (mcode-density): Likewise.
25996 2016-01-10  Tom de Vries  <tom@codesourcery.com>
25998         PR tree-optimization/69062
25999         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26000         (parallelize_loops): Don't paralelize loop that has phi with address
26001         arg.
26003 2016-01-10  Tom de Vries  <tom@codesourcery.com>
26005         PR tree-optimization/69039
26006         * tree-parloops.c (try_create_reduction_list): Only allow single exit
26007         phi for reduction.
26009 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
26011         PR middle-end/68743
26012         * match.pd: Require target has function_c99_misc before doing
26013         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26015 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
26017         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26018         use GMPINC.
26019         * configure: Regenerate.
26021 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
26023         PR middle-end/50865
26024         PR tree-optimization/69097
26025         * fold-const.h (expr_not_equal_to): New prototype.
26026         * fold-const.c: Include stringpool.h and tree-ssanames.h.
26027         (expr_not_equal_to): New function.
26028         * match.pd (X % -Y is the same as X % Y): Don't optimize
26029         unless X is known not to be equal to minimum or Y is known
26030         not to be equal to -1.
26031         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26032         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26033         (simplify_stmt_using_ranges): Adjust caller.
26034         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26035         substitute_and_fold.
26037 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
26039         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26040         w/o DECL_NAME.
26042 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26044         PR tree-optimization/69167
26045         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26046         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26047         ops[0] comparison.
26048         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26050 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
26051             Richard Biener  <rguenther@suse.de>
26053         PR tree-optimization/68707
26054         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26055         instances that can be handled via vect_load_lanes.
26057 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
26059         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26060         if we can't determine address equivalence.
26061         * alias.c (compare_base_decl): Update for changed return value of
26062         symtab_node::equal_address_to.
26064 2016-01-08  Jason Merrill  <jason@redhat.com>
26066         PR c++/68983
26067         PR c++/67557
26068         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26069         * expr.c (store_field): Not here.
26070         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26071         call with TREE_ADDRESSABLE type.
26072         * tree-cfg.c (verify_gimple_call): Adjust.
26074 2016-01-08  Olivier Hainque  <hainque@adacore.com>
26076         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26077         libc_internal.
26079 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
26081         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26082         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26083         (reduc_smin_v2sf): Rename to...
26084         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26085         (reduc_splus_v2sf): Rename to...
26086         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26088 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26090         PR tree-optimization/69162
26091         * gimplify.c (gimplify_va_arg_expr): Encode original type of
26092         valist argument in another argument.
26093         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
26094         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26095         to determine the va_list type, build a MEM_REF instead of
26096         build_fold_indirect_ref.
26098         PR tree-optimization/69172
26099         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26100         gimple_build.
26102 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26104         PR tree-optimization/67781
26105         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26106         and cmpnop in two steps: first the ones not accessed in original
26107         gimple expression in a endian independent way and then the ones not
26108         accessed in the final result in an endian-specific way.
26110 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26112         PR tree-optimization/69083
26113         * tree-vect-slp.c (vect_get_constant_vectors): For
26114         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26115         element type.  If op is fold_convertible_p to vector_type's element
26116         type, use NOP_EXPR instead of VCE.
26118 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
26120         PR rtl-optimization/67778
26121         PR rtl-optimization/68634
26122         PR rtl-optimization/68909
26123         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
26124         block from the stack until done with it.  Remove a superfluous
26125         bitmap set.  Remove a superfluous bitmap test.
26127 2016-01-07  Martin Sebor  <msebor@redhat.com>
26129         PR c/68966
26130         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26131         constraint on the type of arguments.
26133 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
26135         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26136         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26137         unaligned_access on the gcc_options set.
26138         * config/arm/arm.c (arm_option_override_internal): Use
26139         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26141 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
26143         PR target/69140
26144         * config/i386/i386.c (ix86_frame_pointer_required): Enable
26145         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26147 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
26149         Revert
26150         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
26152         PR target/69140
26153         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26154         depending on frame_pointer_needed before remaining integer and SSE
26155         registers are saved.
26157 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26159         PR 1078
26160         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26162 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26164         PR target/69171
26165         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26166         Use the "xBm" constraint.
26167         (float<sseintvecmodelower><mode>2<mask_name><round_name):
26168         Likewise.
26169         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26170         (sse_cvtsi2ssq<round_name>): Likewise.
26171         (sse_cvtss2si<round_name>): Likewise.
26172         (sse_cvtss2siq<round_name>): Likewise.
26173         (sse2_cvtsi2sdq<round_name>): Likewise.
26174         (sse2_cvtsd2si<round_name>): Likewise.
26175         (sse2_cvtsd2siq<round_name>): Likewise.
26176         * config/i386/subst.md (round_nimm_scalar_predicate): New
26177         predicate.
26179 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
26181         PR middle-end/67639
26182         * varasm.c (make_decl_rtl): Mark invalid register vars as
26183         DECL_EXTERNAL.
26185         PR rtl-optimization/66206
26186         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26187         All callers changed.
26189 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
26191         PR tree-optimization/69141
26192         * tree-ssa-pre.c: Include langhooks.h.
26193         (eliminate_dom_walker::before_dom_children): Use
26194         lang_hooks.decl_printable_name instead of
26195         cgraph_node::get ()->name ().
26197         PR middle-end/68960
26198         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26199         it and DECL_ALIGN too.
26201 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
26203         * config/mips/mips-ftypes.def: Sort to lexicographical order.
26205 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
26207         PR target/69140
26208         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26209         depending on frame_pointer_needed before remaining integer and SSE
26210         registers are saved.
26212 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26214         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26215         mode iterator with VSX_M2.
26216         (*p9_vecstore_<mode>): Likewise.
26217         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26218         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26219         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26220         (define_split for VSX_LE128 stores): Likewise.
26221         (define_peephole2 for TImode LE swaps): Likewise.
26222         (define_split for VSX_LE128 post-reload stores): Likewise.
26224 2016-01-06  Marek Polacek  <polacek@redhat.com>
26226         PR sanitizer/69099
26227         * convert.c (convert_to_integer_1): Adjust call to
26228         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
26229         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
26230         EXPR instead of ARG.
26231         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26233 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26235         PR 1078
26236         * doc/extend.texi (RL78 Variable Attributes): New section.
26238 2016-01-05  Marek Polacek  <polacek@redhat.com>
26240         PR c/69104
26241         * builtins.c (get_memmodel): Use expansion point location rather than
26242         the input location.  Call warning_at rather than warning.
26243         (expand_builtin_atomic_compare_exchange): Likewise.
26244         (expand_builtin_atomic_load): Likewise.
26245         (expand_builtin_atomic_store): Likewise.
26246         (expand_builtin_atomic_clear): Likewise.
26248 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26250         PR target/68991
26251         * config/i386/i386.c (ix86_expand_vector_logical_operator):
26252         Replace nonimmediate_operand with vector_operand.
26253         * config/i386/predicates.md (vector_operand): New predicate.
26254         (general_vector_operand): Replace nonimmediate_operand with
26255         vector_operand.
26256         * config/i386/sse.md: Replace nonimmediate_operand with
26257         vector_operand and m constraint with Bm constraint on SSE
26258         patterns with 16-byte memory operand.
26259         * config/i386/subst.md (round_nimm_predicate): Replace
26260         nonimmediate_operand with vector_operand.
26261         (round_saeonly_nimm_predicate): Likewise.
26262         (round_saeonly_nimm_scalar_predicate): New.
26264 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26266         PR target/68991
26267         * config/i386/constraints.md (Bm): New constraint.
26268         * config/i386/predicates.md (vector_memory_operand): New
26269         predicate.
26270         * config/i386/sse.md: Replace xm with xBm in plusminus and
26271         any_logic patterns.
26273 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26275         PR 1078
26276         * doc/extend.texi (V850 Function Attributes): New section.
26277         (V850 Variable Attributes): New section.
26279 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26281         PR 1078
26282         * doc/extend.texi (MicroBlaze Function Attributes): Document
26283         interrupt_handler and fast_interrupt attributes.
26285 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
26287         PR other/60465
26288         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
26289         for local symbolic operands.
26290         * config/ia64/predicates.md (local_symbolic_operand64): New
26291         predicate.
26293 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26295         PR rtl-optimization/68651
26296         * combine.c (combine_simplify_rtx): Canonicalize x + x into
26297         x << 1.
26299 2016-01-05  Nathan Sidwell  <nathan@acm.org>
26301         * alias.c (compare_base_decls): Use symtab_node::get.
26303 2016-01-05  Nick Clifton  <nickc@redhat.com>
26305         PR target/68770
26306         * ira-costs.c (copy_cost): Initialise the t_icode field of the
26307         secondary_reload_info structure.
26309         PR target/66655
26310         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
26311         decls if weak support is available.
26313 2016-01-04  Martin Sebor  <msebor@redhat.com>
26315         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
26317 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
26319         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
26320         OPTION_MASK_P9_DFORM.
26322         * config/rs6000/constraints.md (wo constraint): New constraint for
26323         ISA 3.0 (power9).
26325         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
26326         for wo constraint.
26327         (rs6000_init_hard_regno_mode_ok): Likewise.
26329         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
26330         wo constraint.
26332         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
26333         expanders not to have constraints.  Add support for ISA 3.0 xxperm
26334         instruction.  Add support for fusing xxlor with xxperm.
26335         (altivec_vperm_<mode>_internal): Likewise.
26336         (altivec_vperm_v8hiv16qi): Likewise.
26337         (altivec_vperm_<mode>v16q): Likewise.
26338         (altivec_vperm_<mode>_uns): Likewise.
26339         (vperm_v8hiv4si): Likewise.
26340         (vperm_v16qiv8hi): Likewise.
26342         * doc/md.texi (RS/6000 constraints): Document wo constraint.
26344 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
26346         Update copyright years.
26348         * gcc.c (process_command): Update copyright notice dates.
26349         * gcov-dump.c (print_version): Ditto.
26350         * gcov.c (print_version): Ditto.
26351         * gcov-tool.c (print_version): Ditto.
26352         * gengtype.c (create_file): Ditto.
26353         * doc/cpp.texi: Bump @copying's copyright year.
26354         * doc/cppinternals.texi: Ditto.
26355         * doc/gcc.texi: Ditto.
26356         * doc/gccint.texi: Ditto.
26357         * doc/gcov.texi: Ditto.
26358         * doc/install.texi: Ditto.
26359         * doc/invoke.texi: Ditto.
26361 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26363         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
26364         modes larger than TImode as TImode if NEON is not enabled.
26366 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26368         PR target/69100
26369         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
26370         mode for %f0-%f31 only if TARGET_FPU.
26372 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26374         PR target/69072
26375         * config/sparc/sparc.c (scan_record_type): Take into account subfields
26376         to compute the PACKED_P predicate.
26377         (function_arg_record_value): Minor tweaks.
26379 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26381         * doc/install.texi (--with-multilib-list): Describe the meaning of the
26382         option for arm*-*-* targets.
26384 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26386         * doc/extend.texi (Common Function Attributes): Move docs for
26387         MSP430-specific attributes to....
26388         (MSP430 Function Attributes): ...here.  Delete the redundant
26389         entries and copy-edit the remaining text.
26390         (MSP430 Variable Attributes): Use uniform format for index
26391         entries and add a cross-reference to the corresponding function
26392         attribute docs.
26394 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
26396         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
26397         -finite-math typo.
26398         (x86 Options): Likewise.
26400 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26402         PR 1078
26404         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26405         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26406         to corresponding attribute.
26408 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26410         * doc/extend.texi (Common Function Attributes) <noplt>: Move
26411         to correct alphabetization of table.  Copy-edit and correct
26412         markup.
26413         <stack_protect>: Likewise.
26414         <target_clones>: Likewise.
26415         <simd>: Likewise.
26416         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26417         Correct punctuation.
26418         (Code Gen Options) <-fno-plt>: Copy-edit.
26420 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26422         PR target/68917
26423         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26424         SI values.  Explicitly convert SI to DI and vice-versa.
26426 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
26428         PR tree-optimization/69070
26429         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26430         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26432         PR sanitizer/69055
26433         * ubsan.c (ubsan_instrument_float_cast): Call
26434         initialize_sanitizer_builtins.
26436         PR target/69015
26437         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26439 Copyright (C) 2016 Free Software Foundation, Inc.
26441 Copying and distribution of this file, with or without modification,
26442 are permitted in any medium without royalty provided the copyright
26443 notice and this notice are preserved.