1 2016-10-14 Martin Liska <mliska@suse.cz>
3 * builtins.h(target_char_cst_p): Declare the function.
4 * builtins.c (fold_builtin_memchr): Remove.
5 (target_char_cst_p): Move the function from gimple-fold.c.
6 (fold_builtin_3): Do not call the function.
7 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8 (gimple_fold_builtin): Call the function.
9 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
11 2016-10-14 Martin Liska <mliska@suse.cz>
13 * builtins.c (fold_builtin_strcmp): Remove function.
14 (fold_builtin_strncmp): Likewise.
15 (fold_builtin_2): Remove call of the function.
16 (fold_builtin_3): Likewise.
17 * fold-const-call.c (fold_const_call): Add constant folding
18 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
19 * fold-const-call.h (build_cmp_result): Declare the function.
20 * gimple-fold.c (gimple_load_first_char): New function.
21 (gimple_fold_builtin_string_compare): Likewise.
22 (gimple_fold_builtin): Call the function.
24 2016-10-14 Nathan Sidwell <nathan@acm.org>
26 * gcov-io.c (gcov_open): Deconstify 'mode'.
28 2016-10-14 Martin Liska <mliska@suse.cz>
30 * fold-const.c (c_getstr): Support of properly \0-terminated
31 string constants. New argument is added.
32 * fold-const.h: New argument is added.
34 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
38 (aarch64_print_hint_for_core): Likewise.
39 (aarch64_print_hint_for_arch): Likewise.
40 (aarch64_validate_march): Use it. Fix indentation in type signature.
41 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
42 (aarch64_validate_mtune): Likewise.
43 (aarch64_handle_attr_arch): Likewise.
44 (aarch64_handle_attr_cpu): Likewise.
45 (aarch64_handle_attr_tune): Likewise.
47 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
49 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
52 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
54 * config/m68k/m68k.c (m68k_option_override): Check
55 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
56 instead of stack_limit_rtx.
58 2016-10-13 Jakub Jelinek <jakub@redhat.com>
60 * dwarf2out.c (gen_member_die): Handle inline static data member
63 2016-10-13 Nathan Sidwell <nathan@acm.org>
65 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
66 gcov_var.mode. Remove unnecessary fstat.
68 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
71 * function.c (thread_prologue_and_epilogue_insns): Call all
72 make_*logue_seq in the same order as traditional. Call them
73 all a second time if shrink_wrapped_separate.
75 2016-10-13 Marek Polacek <polacek@redhat.com>
77 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
78 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
81 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
83 PR tree-optimization/77937
84 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
85 to infinite when we have a pointer with an increment of -1.
87 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
89 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
91 * memmodel.h: This file.
92 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
93 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
94 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
95 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
96 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
97 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
98 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
99 compare-elim.c, config/aarch64/aarch64-builtins.c,
100 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
101 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
102 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
103 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
104 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
105 config/darwin.c, config/epiphany/epiphany.c,
106 config/epiphany/mode-switch-use.c,
107 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
108 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
109 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
110 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
111 config/m68k/m68k.c, config/mcore/mcore.c,
112 config/microblaze/microblaze.c, config/mmix/mmix.c,
113 config/mn10300/mn10300.c, config/moxie/moxie.c,
114 config/msp430/msp430.c, config/nds32/nds32-cost.c,
115 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
116 config/nds32/nds32-memory-manipulation.c,
117 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
118 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
119 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
120 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
121 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
122 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
123 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
124 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
125 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
126 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
127 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
128 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
129 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
130 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
131 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
132 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
133 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
134 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
135 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
136 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
137 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
138 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
139 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
140 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
141 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
142 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
143 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
144 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
145 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
146 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
147 var-tracking.c, varasm.c: Include memmodel.h.
148 * genattrtab.c (write_header): Include memmodel.h in generated file.
149 * genautomata.c (main): Likewise.
150 * gengtype.c (open_base_files): Likewise.
151 * genopinit.c (main): Likewise.
152 * genconditions.c (write_header): Include memmodel.h earlier in
154 * genemit.c (main): Likewise.
155 * genoutput.c (output_prologue): Likewise.
156 * genpeep.c (main): Likewise.
157 * genpreds.c (write_insn_preds_c): Likewise.
158 * genrecog.c (write_header): Likewise.
159 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
161 2016-10-13 David Malcolm <dmalcolm@redhat.com>
163 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
164 for new "compact" param of print_rtx_function. Check for "cinsn"
166 * print-rtl-function.c (flag_compact): New decl.
167 (print_rtx_function): Add param "compact" and use it to set
168 flag_compact, adding a description of the effect to the leading
169 comment, and updating the example output.
170 * print-rtl.c (flag_compact): New variable.
171 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
173 (print_rtx_operand_code_i): When printing source locations, wrap
174 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
175 (print_rtx_operand_code_r): Don't print regnos for hard regs and
176 virtuals in compact mode.
177 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
178 apart from in LABEL_REFs.
179 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
180 Don't print basic block ids in compact mode.
181 (print_rtx): In compact mode, prefix the code of insns with "c",
182 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
183 * print-rtl.h (print_rtx_function): Add "compact" param.
185 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
187 * arm.h (TARGET_VFP): Delete.
188 (TARGET_VFPD32): Remove references to TARGET_VFP.
189 (TARGET_VFP3, TARGET_VFP5): Likewise.
190 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
191 (TARGET_NEON_FP16): Likewise.
192 (TARGET_FMA): Likewise.
193 (TARGET_CRYPTO): Likewise.
194 (TARGET_NEON): Likewise.
195 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
196 (FUNCTION_ARG_REGNO_P): Likewise.
197 * arm.c (arm_option_check_internal): Likewise.
198 (arm_option_override): Likewise.
199 (use_return_insn): Likewise.
200 (arm_function_value_regno_p): Likewise.
201 (arm_apply_result_size): Likewise.
202 (use_vfp_abi): Likewise.
203 (arm_legitimate_address_outer_p): Likewise.
204 (thumb2_legitimate_address_p): Likewise.
205 (arm_legitimate_index_p): Likewise.
206 (thumb2_legitimate_index_p): Likewise.
207 (arm_legitimate_address): Likewise.
208 (arm_get_vfp_saved_size): Likewise.
209 (arm_emit_vfp_multi_reg_pop): Likewise.
210 (arm_get_frame_offsets): Likewise.
211 (arm_save_coproc_regs): Likewise.
212 (arm_hard_regno_mode_ok): Likewise.
213 (arm_expand_epilogue_apcs_frame): Likewise.
214 (arm_expand_epilogue): Likewise.
215 (arm_file_start): Likewise.
216 (arm_conditional_register_usage): Likewise.
217 (arm_validize_comparison): Use vfp_compare_operand directly.
218 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
219 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
221 (arm_atomic_assign_expand_fenv): Likewise.
222 * arm.md (divsf3): Likewise.
223 (arm_negsi2): Likewise.
225 (arm_movdi): Likewise.
226 (arm_movt): Likewise.
227 (cbranchsf4): Change predicate to vfp_compare_operand.
228 (cbranchdf4): Change predicate to vfp_compare_operand.
229 (cstorehf4): Change predicate to vfp_compare_operand.
230 (cstoresf4): Change predicate to vfp_compare_operand.
231 (cstoredf4): Change predicate to vfp_compare_operand.
232 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
233 (movhi_insn_arch4, movhi_bytes): Likewise.
234 * constraints.md (Dt): Likewise.
236 * iterators.md (SDF): Likewise.
237 * predicates.md (arm_float_compare_operand): Delete.
238 (const_double_vcvt_power_of_two_reciprocal): Remove references to
240 (const_double_vcvt_power_of_two): Likewise.
241 * thumb2.md thumb2_movsi_insn): Likewise.
242 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
243 (movhf_vfp): Likewise.
244 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
245 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
246 (movsf_vfp, thumb2_movsf_vfp): Likewise.
247 (movdf_vfp, thumb2_movdf_vfp): Likewise.
248 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
249 (subsf3_vfp, divsf3_vfp): Likewise.
250 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
251 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
252 (mulsf3negsfsubsf_vfp): Likewise.
253 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
254 (floatunssisf2, sqrtsf2_vfp): Likewise.
255 (movcc_vfp): Likewise.
256 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
257 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
258 (push_multi_vfp): Likewise.
259 (set_fpscr, get_fpscr): Likewise.
260 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
262 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
264 * arm.h (TARGET_VFP): Unconditionally define to 1.
265 (arm_fpu_desc): Remove 'model' field.
266 (TARGET_FPU_MODEL): Delete.
267 * arm.c (all_fpus): Don't initialize the model field.
268 (arm_can_inline_p): Don't check the FPU model.
269 * arm-fpus.def: Remove redundant model field from all FPU
272 2016-10-13 Richard Biener <rguenther@suse.de>
275 * genmatch.c (struct capture): Add value_match member.
276 (commutate): Preserve value_match.
277 (lower_opt_convert): Likewise.
278 (lower_cond): Likewise.
279 (replace_id): Likewise.
280 (struct dt_operand): Add value_match member.
281 (decision_tree::cmp_node): Compare it.
282 (decision_tree::insert_operand): Honor it when finding and
283 when appending a DT_MATCH.
284 (dt_operand::gen_match_op): Generate a type check after
285 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
286 (parser::get_internal_capture_id): New helper.
287 (parser::finish_match_operand): New function lowering @@<id>.
288 (parser::parse_capture): Parse @@<id> as value-match.
289 (parser::parse_expr): Use get_internal_capture_id.
290 (parser::parse_simplify): Call finish_match_operand.
291 (walk_captures): New helper.
292 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
294 ((X /[ex] A) * A -> X): Likewise.
295 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
296 convert[12] and value-matching.
297 ((A | B) & (A | C) -> A | (B & C)): Likewise.
298 ((X | Y) | Y -> X | Y): Likewise.
299 ((X ^ Y) ^ Y -> X): Likewise.
300 (A - (A & B) -> ~B & A): Likewise.
301 ((T)(P + A) - (T)P -> (T) A): Likewise.
302 ((T)P - (T)(P + A) -> -(T) A): Likewise.
303 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
304 * doc/match-and-simplify.texi: Amend capture section.
306 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
308 * config/arc/arc.md (umul_600): Remove predicated variant.
309 (umul64_600): Likewise.
311 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
313 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
315 2016-10-13 Bin Cheng <bin.cheng@arm.com>
317 * tree-vect-loop.c (loop_niters_no_overflow): New func.
318 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
319 no-overflow information to vect_do_peeling_for_loop_bound and
320 vect_gen_vector_loop_niters.
322 2016-10-13 Bin Cheng <bin.cheng@arm.com>
324 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
327 2016-10-13 Bin Cheng <bin.cheng@arm.com>
329 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
330 adjust_vec automatically.
331 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
332 param exit_bb to guard_to.
333 (slpeel_checking_verify_cfg_after_peeling):
334 (set_prologue_iterations):
335 (create_lcssa_for_virtual_phi): New func which is factored out from
336 slpeel_tree_peel_loop_to_edge.
337 (slpeel_tree_peel_loop_to_edge):
338 (iv_phi_p): New func.
339 (vect_can_advance_ivs_p): Call iv_phi_p.
340 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
341 new gimple stmts in basic block.
342 (vect_do_peeling_for_loop_bound):
343 (vect_do_peeling_for_alignment):
344 (vect_gen_niters_for_prolog_loop): Rename to...
345 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
346 adjust implementation.
347 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
348 sizetype if necessary.
349 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
350 it to external function.
351 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
352 (vect_gen_vector_loop_niters_mult_vf): New.
353 (slpeel_update_phi_nodes_for_loops): New.
354 (slpeel_update_phi_nodes_for_guard1): Reimplement.
355 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
356 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
357 * tree-vect-loop.c (vect_build_loop_niters): Move to file
358 tree-vect-loop-manip.c
359 (vect_generate_tmps_on_preheader): Delete.
360 (vect_transform_loop): Rename vectorization_factor to vf. Call
361 vect_do_peeling instead of vect_do_peeling-* functions.
362 * tree-vectorizer.h (vect_do_peeling): New decl.
363 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
364 (vect_do_peeling_for_loop_bound): Delete.
365 (vect_do_peeling_for_alignment): Delete.
367 2016-10-13 Bin Cheng <bin.cheng@arm.com>
369 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
370 duplicated loop after its preheader and after the original loop.
372 2016-10-13 Bin Cheng <bin.cheng@arm.com>
374 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
375 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
377 2016-10-13 Bin Cheng <bin.cheng@arm.com>
379 * tree-vect-loop.c (vectorizable_live_operation): Support handling
380 for live variable outside loop but not in lcssa form.
382 2016-10-13 Bin Cheng <bin.cheng@arm.com>
384 * cfg.c (reset_original_copy_tables): New func.
385 * cfg.h (reset_original_copy_tables): New decl.
387 2016-10-13 Jakub Jelinek <jakub@redhat.com>
390 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
392 * varasm.c (default_binds_local_p_3): Formatting fix.
394 2016-10-13 Bin Cheng <bin.cheng@arm.com>
396 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
398 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
401 2016-10-13 Martin Liska <mliska@suse.cz>
403 PR tree-optimization/77943
404 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
405 a different EH landing pads.
407 2016-10-13 Jakub Jelinek <jakub@redhat.com>
410 * hooks.h (hook_tree_void_null): Declare.
411 * hooks.c (hook_tree_void_null): New function.
412 * langhooks.c (lhd_return_null_tree_v): Remove.
413 * langhooks-def.h (lhd_return_null_tree_v): Remove.
414 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
416 * function.c (stack_protect_epilogue): Likewise.
417 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
418 if TARGET_THREAD_SSP_OFFSET is defined.
419 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
420 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
421 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
422 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
423 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
424 (ix86_stack_protect_guard): New function.
426 2016-10-13 Richard Biener <rguenther@suse.de>
428 * dwarf2out.c (tree_add_const_value_attribute): Do not try
429 rtl_for_decl_init during early phase.
430 (gen_variable_die): Do not create locations during early phase.
431 (gen_label_die): Likewise.
432 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
435 2016-10-12 Richard Biener <rguenther@suse.de>
437 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
438 try_add_new_range and made to eturn new range.
439 (evrp_dom_walker::before_dom_children): Push op1 value range before
440 pushing op0 value range.
442 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
444 PR tree-optimization/77937
445 * gimple-ssa-strength-reduction.c (analyze_increments): Use
446 POINTER_TYPE_P on the candidate type to determine whether
447 candidates in this chain require pointer arithmetic.
449 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
451 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
452 correction if the type is smaller than a word.
453 (visium_select_cc_mode): Add ... fall through ... comment.
455 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
457 * config/rs6000/rs6000.c (machine_function): Add new fields
458 gpr_is_wrapped_separately and lr_is_wrapped_separately.
459 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
460 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
461 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
462 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
463 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
464 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
465 (rs6000_get_separate_components): New function.
466 (rs6000_components_for_bb): New function.
467 (rs6000_disqualify_components): New function.
468 (rs6000_emit_prologue_components): New function.
469 (rs6000_emit_epilogue_components): New function.
470 (rs6000_set_handled_components): New function.
471 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
472 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
473 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
474 (rs6000_emit_epilogue): Don't emit GPR restores if
475 gpr_is_wrapped_separately for that register. Don't make a
476 REG_CFA_RESTORE note for registers we did not restore, either.
478 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
480 * function.c (thread_prologue_and_epilogue_insns): Call
481 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
482 if it has possibly changed. Compute the split_prologue_seq and
483 epilogue_seq later, too.
484 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
485 (dump_components): New function.
486 (struct sw): New struct.
488 (init_separate_shrink_wrap): New function.
489 (fini_separate_shrink_wrap): New function.
490 (place_prologue_for_one_component): New function.
491 (spread_components): New function.
492 (disqualify_problematic_components): New function.
493 (emit_common_heads_for_components): New function.
494 (emit_common_tails_for_components): New function.
495 (insert_prologue_epilogue_for_components): New function.
496 (try_shrink_wrapping_separate): New function.
497 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
499 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
501 * regrename.c (build_def_use): Invalidate chains that have a
502 REG_CFA_RESTORE on some instruction.
504 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
506 * dce.c (delete_unmarked_insns): Don't delete instructions with
507 a REG_CFA_RESTORE note.
509 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
511 * common.opt (-fshrink-wrap-separate): New flag.
512 * doc/invoke.texi: Document it.
513 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
514 * doc/tm.texi: Regenerate.
515 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
516 * target.def (shrink_wrap): New hook vector.
517 (get_separate_components, components_for_bb, disqualify_components,
518 emit_prologue_components, emit_epilogue_components,
519 set_handled_components): New hooks.
521 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
523 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
524 vector return by reference only if -Wpsabi.
525 (rs6000_pass_by_reference): Similarly, for argument passing.
527 2016-10-12 David Malcolm <dmalcolm@redhat.com>
529 * function-tests.c: Include "print-rtl.h".
530 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
531 function, and verify what is dumped.
532 * print-rtl-function.c (print_edge): New function.
533 (begin_any_block): New function.
534 (end_any_block): New function.
535 (can_have_basic_block_p): New function.
536 (print_rtx_function): Track the basic blocks of insns in the
537 chain, wrapping those that are within blocks within "(block)"
538 directives. Remove the "(cfg)" directive.
540 2016-10-12 David Malcolm <dmalcolm@redhat.com>
542 * selftest.c (selftest::read_file): New function.
543 (selftest::test_read_file): New function.
544 (selftest::selftest_c_tests): Call test_read_file.
545 * selftest.h (selftest::read_file): New decl.
547 2016-10-12 Richard Biener <rguenther@suse.de>
550 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
553 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
555 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
557 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
558 dwarf2out_assembly_start.
560 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
562 * Makefile.in (SELFTEST_FLAGS): New variable.
563 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
565 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
568 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
570 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
573 2016-10-12 Martin Liska <mliska@suse.cz>
575 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
576 (gimple_fold_builtin_memory_op): Use the function.
577 (gimple_fold_builtin_strchr): Likewise.
578 (gimple_fold_builtin_strcat): Likewise.
579 (gimple_build): Likewise.
581 2016-10-12 Nathan Sidwell <nathan@acm.org>
583 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
585 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
587 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
588 equivalent 32-bit constant (modulo 2**32) when that yields
589 smaller instructions.
590 (size_of_int_loc_descriptor): Update accordingly.
592 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
594 * dwarf2out.c (dwarf2out_early_global_decl): For nested
595 functions, call dwarf2out_decl on the parent function first.
597 2016-10-12 Richard Biener <rguenther@suse.de>
599 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
602 2016-10-12 Richard Biener <rguenther@suse.de>
604 * tree-ssa-propagate.c
605 (substitute_and_fold_dom_walker::before_dom_children): Do not
606 ignore ASSERT_EXPRs but only preserve them.
607 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
608 that have been propagated into.
609 (vrp_finalize): Enable DCE for substitute_and_fold.
611 2016-10-12 Richard Biener <rguenther@suse.de>
613 PR tree-optimization/77920
614 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
615 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
616 (simplify_abs_using_ranges): Likewise.
617 (simplify_conversion_using_ranges): Likewise.
618 (simplify_stmt_using_ranges): Adjust.
620 2016-10-12 Jakub Jelinek <jakub@redhat.com>
622 PR tree-optimization/77929
623 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
624 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
626 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
629 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
630 needs a base register for arg 1.
632 2016-10-12 Jakub Jelinek <jakub@redhat.com>
634 * common.opt (Wimplicit-fallthrough) Turn into alias to
635 -Wimplicit-fallthrough=3. Remove EnabledBy.
636 (Wimplicit-fallthrough=): New option.
637 * gimplify.c (warn_implicit_fallthrough_r): Use
638 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
639 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
640 to -Wimplicit-fallthrough=3.
641 (-Wimplicit-fallthrough=): Document.
643 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
645 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
646 and GEU in DImode if TARGET_SUBXC.
647 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
648 (seqdi<W:mode>_zero_subxc): Delete.
649 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
650 (neg_seqdi<W:mode>_zero_vis3): Delete.
651 (plus_seqdi<W:mode>_zero): Likewise.
652 (minus_seqdi<W:mode>_zero): Likewise.
653 (plus_plus_sltu<W:mode>): Accept only register.
654 (addx<W:mode>): Likewise.
655 (plus_sltu<W:mode>_vis3): Likewise.
656 (plus_plus_sltu<W:mode>_vis3): Likewise.
657 (neg_sgeu<W:mode>_vis3): Delete.
658 (minus_sgeu<W:mode>_vis3): Likewise.
659 (addxc<W:mode>): Accept only registers.
660 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
661 (minus_neg_sltu<W:mode>_subxc): Accept only register.
662 (neg_plus_sltu<W:mode>_subxc): Likewise.
663 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
664 (minus_minus_sltu<W:mode>_subxc): Accept only register.
665 (sgeu<W:mode>_insn_subxc): Delete.
666 (plus_sgeu<W:mode>_subxc): Likewise.
667 (subxc<W:mode>): Accept only register.
668 (scc splitter): Split always GEU again.
670 2016-10-11 Jeff Law <law@redhat.com>
672 PR tree-optimization/77424
673 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
674 dead conditionals. Assert that all e->aux fields are NULL.
676 2016-10-11 David Malcolm <dmalcolm@redhat.com>
678 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
679 operand-printing "switch" statement into...
680 (print_rtx_operand_code_0): ...this new function, ...
681 (print_rtx_operand_code_e): ...this new function, ...
682 (print_rtx_operand_codes_E_and_V): ...this new function, ...
683 (print_rtx_operand_code_i): ...this new function, ...
684 (print_rtx_operand_code_r): ...this new function, ...
685 (print_rtx_operand_code_u): ...this new function, ...
686 (print_rtx_operand): ...and this new function.
688 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
690 * config/alpha/alpha-passes.def: New file.
691 * config/alpha/t-alpha: New file.
692 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
693 (make_pass_handle_trap_shadows): New prototype.
694 (make_pass_align_insns): Ditto.
695 * config/alpha/alpha.c (alpha_option_override): Don't register
697 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
699 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
702 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
703 distinct __ibm128 IBM extended double type if long doubles are
704 128-bits and the default format for long double is IEEE 128-bit.
706 2016-10-11 Richard Biener <rguenther@suse.de>
708 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
709 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
710 (verify_die): New function.
711 (dwarf2out_finish): Call it.
712 (output_line_info): Handle case of -gsplit-dwarf without
713 DWARF2_ASM_LINE_DEBUG_INFO.
715 2016-10-11 Richard Biener <rguenther@suse.de>
718 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
719 sub-chains of BLOCK_VARS and gimple_bind_vars.
721 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
723 * config/i386/znver1.md : Fix imov/imovx load type reservations.
725 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
727 * config/sparc/sparc.opt (msubxc): New option.
728 * doc/invoke.texi (SPARC options): Document it and tidy up.
729 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
730 * doc/tm.texi: Regenerate.
731 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
733 (CCX_NOOV): Rename into...
737 * config/sparc/predicates.m (fcc_register_operand): Simplify.
738 (fcc0_register_operand): Likewise.
739 (icc_register_operand): New.
740 (icc_or_fcc_register_operand): Simplify.
741 (nz_comparison_operator): New.
742 (c_comparison_operator): Likewise.
743 (noov_compare_operator): Rename into...
744 (icc_comparison_operator): ...this. Use above predicates.
745 (noov_compare64_operator): Rename into...
746 (v9_comparison_operator): ...this and tidy up.
747 (fcc_comparison_operator): New.
748 (icc_or_fcc_comparison_operator): Likewise.
749 (v9_register_compare_operator): Rename info...
750 (v9_register_comparison_operator): ...this.
751 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
752 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
754 (sparc_fixed_condition_code_regs): New function.
755 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
756 renaming and add support for CCC/CCXC.
757 (output_cbranch): Likewise.
758 (sparc_print_operand): Likewise.
759 (gen_v9_scc): Remove obsolete assertion.
760 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
761 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
762 (output_cbcond): Remove bogus handling of CC modes.
763 (sparc_register_move_cost): Return 100 for NO_REGS.
764 * config/sparc/sparc.md (W): New mode iterator.
765 (length): Adjust for noov_compare64_operator renaming.
766 (cmpsi_sne): New instruction.
767 (cmpdi_sne): Likewise.
768 (seqdi_special): Delete.
769 (seqdi_special): Likewise.
770 (snesi<P:mode>_special): Likewise.
771 (snedi_special): Likewise.
772 (snedi_special_vis3): Likewise.
773 (snesi patterns): Use W iterator.
774 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
775 (sltu patterns): Likewise.
776 (sgeu patterns): Likewise.
777 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
778 (normal_branch): Use icc_comparison_operator predicate.
779 (inverted_branch): Likewise.
780 (cbcond_sp32): Use comparison_operator predicate.
781 (cbcond_sp64): Likewise.
782 (normal_int_branch_sp64): Adjust for renaming
783 (inverted_int_branch_sp64): Likewise.
784 (mov<I:mode>_cc_reg_sp64): Likewise.
785 (movsf_cc_reg_sp6): Likewise.
786 (movdf_cc_reg_sp64): Likewise.
787 (movtf_cc_reg_hq_sp64): Likewise.
788 (movtf_cc_reg_sp64): Likewise.
789 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
790 (movsf_cc_v9): Likewise.
791 (movdf_cc_v9): Likewise.
792 (movtf_cc_hq_v9): Likewise.
793 (movtf_cc_v9): Likewise.
794 (adddi3): Call gen_adddi3_sp32.
795 (adddi3_insn_sp32): Rename to...
796 (adddi3_sp32): ...this. Accept only register_operand as operand #1
797 and use CCCmode for the carry.
798 (addx_extend_sp32): Use CCCmode for the carry.
799 (addx_extend_sp64): Delete.
800 (adddi3_extend_sp32): Use CCCmode for the carry.
801 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
802 (subdi3): Call gen_subdi3_sp32.
803 (subdi3_insn_sp32): Rename to...
804 (subdi3_sp32): ...this and use CCmode for the carry.
805 (subx_extend_sp32): Use CCCmode for the carry.
806 (subx_extend_sp64): Delete.
807 (subdi3_extend_sp32): Use CCmode for the carry.
808 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
809 (negdi3): Call gen_negdi3_sp32.
810 (negdi3_sp32): Use CCCmode for the carry.
811 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
812 (cmp_nz_ashift_1): Use CCNZ mode.
813 (cmp_nz_set_ashift_1): Likewise.
814 (ctrapsi4): Use comparison_operator predicate.
815 (ctrapdi4): Likewise.
816 (trapsi_insn): Use icc_comparison_operator predicate.
817 (trapdi_insn): Likewise.
818 (edge8 patterns): Use CCNZmode.
819 (edge16 patterns): Likewise.
820 (edge32 patterns): Likewise.
822 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
824 * config/visium/visium-modes.def (CC_NOOV): Rename into...
826 (CC_BTST): Rename into...
828 * config/visium/predicates.md (real_add_operand): New.
829 (visium_btst_operator): Rename into...
830 (visium_equality_comparison_operator): ...this.
831 (visium_noov_operator): Rename into...
832 (visium_nz_comparison_operator): ...this.
833 (visium_c_comparison_operator): New.
834 (visium_branch_operator): Adjust and deal with all CC modes.
835 * config/visium/visium.c (visium_adjust_cost): Adjust.
836 (visium_split_double_add): Use the *_set_carry patterns.
837 (visium_select_cc_mode): Add support for CCC mode and adjust.
838 (output_cbranch): Adjust and use the carry-based operators for
839 floating-point comparisons.
840 * config/visium/visium.md (flags_subst_arith): Adjust.
841 (addsi3_insn_set_carry): New instruction.
842 (subsi3_insn_set_carry): Likewise.
843 (negsi2_insn_set_carry): Likewise.
845 (cmp<mode>_sne): Likewise.
846 (cbranch<mode>4): Use ordered_comparison_operator.
847 (cbranch<mode>4_insn): Likewise.
848 (cbranchsi4_btst_insn): Adjust.
850 2016-10-11 Tom de Vries <tom@codesourcery.com>
853 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
856 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
858 * tree.h (build_complex_type): Add second parameter with default.
859 * tree.c (build_complex_type): Add NAMED second parameter and adjust
860 recursive call. Create a TYPE_DECL only if NAMED is true.
861 (build_common_tree_nodes): Pass true in calls to build_complex_type.
863 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
865 New avr-passes.def to register AVR specific passes.
867 * config/avr/avr-passes.def: New file.
868 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
869 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
870 (make_avr_pass_recompute_note): New proto.
871 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
872 (avr_pass_recompute_notes): Use anonymous namespace.
873 (avr_register_passes): Remove function...
874 (avr_option_override): ...and its call.
876 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
878 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
879 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
880 PTF_AVOID_BRANCHLIKELY_SPEED for others.
881 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
883 * config/mips/mips.c (mips_option_override): Enable the branch
884 likely depending on the tune flags and optimization level.
885 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
886 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
887 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
888 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
890 2016-10-11 Richard Biener <rguenther@suse.de>
892 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
893 (output_function): Properly stream the whole block tree.
894 * lto-streamer-in.c (input_function): Likewise.
896 2016-10-11 Marek Polacek <polacek@redhat.com>
898 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
900 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
902 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
903 (evrp_dom_walker::before_dom_children): Infer and push new value
904 ranges for x in y < x.
906 2016-10-10 Joseph Myers <joseph@codesourcery.com>
909 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
910 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
911 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
912 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
913 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
914 (IA64_NO_LIBGCC_TFMODE): Likewise.
916 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
918 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
921 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
923 * config.gcc: Add aarch64-*-freebsd* support.
924 * config.host: Likewise.
925 * config/aarch64/aarch64-freebsd.h: New file.
926 * config/aarch64/t-aarch64-freebsd: Ditto.
928 2016-10-10 Jeff Law <law@redhat.com>
930 PR tree-optimization/71947
931 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
932 B with A within a single statement.
934 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
936 PR tree-optimization/77824
937 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
938 zero cost for copies.
939 (find_candidates_dom_walker::before_dom_children): Replace
940 MODIFY_EXPR with SSA_NAME.
941 (replace_mult_candidate): Likewise.
942 (replace_profitable_candidates): Likewise.
944 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
946 * config/s390/s390.h: Wrap more macros args in brackets and fix
948 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
950 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
952 2016-10-10 Andreas Schwab <schwab@suse.de>
955 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
956 pseudo is not DImode.
958 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
960 * common/config/arc/arc-common.c (arc_option_optimization_table):
961 Remove compact casesi option.
962 * config/arc/arc.c (arc_override_options): Use compact casesi
963 option only for pre-ARCv2 cores.
964 * doc/invoke.texi (mcompact-casesi): Update text.
966 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
968 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
969 Add macro to say we can efficiently handle overlapping unaligned
971 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
972 poor code for processors older than p8.
974 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
976 * gen-pass-instances.awk: Remove GNUism.
978 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
980 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
981 NULL of (*ipcp_transformations)][node->uid].
983 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
985 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
986 (MALLOC_ABI_ALIGNMENT): Define.
988 2016-10-09 Jakub Jelinek <jakub@redhat.com>
990 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
991 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
992 VAR_OR_FUNCTION_DECL_P macros.
993 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
994 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
995 chkp_find_bounds_1): Likewise.
996 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
997 * hsa-gen.c (get_symbol_for_decl): Likewise.
998 * cgraphunit.c (check_global_declaration, analyze_functions,
999 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1001 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1002 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1004 * tree.c (set_decl_section_name, copy_node_stat,
1005 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1006 merge_dllimport_decl_attributes, handle_dll_attribute,
1007 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1008 verify_type): Likewise.
1009 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1010 find_explicit_erroneous_behavior): Likewise.
1011 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1012 * ipa.c (process_references): Likewise.
1013 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1014 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1015 notice_global_symbol, assemble_variable, mark_decl_referenced,
1016 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1017 make_decl_one_only, default_section_type_flags,
1018 categorize_decl_for_section, default_encode_section_info): Likewise.
1019 * trans-mem.c (requires_barrier): Likewise.
1020 * gimple-expr.c (mark_addressable): Likewise.
1021 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1022 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1023 expand_debug_expr): Likewise.
1024 * tree-dump.c (dequeue_and_dump): Likewise.
1025 * ubsan.c (instrument_bool_enum_load): Likewise.
1026 * tree-pretty-print.c (print_declaration): Likewise.
1027 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1028 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1029 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1030 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1031 pass_build_ssa::execute): Likewise.
1032 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1033 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1035 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1037 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1038 can_be_nonlocal, remap_decls, copy_debug_stmt,
1039 initialize_inlined_parameters, add_local_variables,
1040 reset_debug_binding, replace_locals_op): Likewise.
1041 * dse.c (can_escape): Likewise.
1042 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1044 * tree-diagnostic.c (default_tree_printer): Likewise.
1045 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1046 unpack_ts_decl_with_vis_value_fields,
1047 lto_input_ts_decl_common_tree_pointers): Likewise.
1048 * builtins.c (builtin_save_expr, fold_builtin_expect,
1049 readonly_data_expr): Likewise.
1050 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1051 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1053 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1054 * gimplify.c (force_constant_size, gimplify_bind_expr,
1055 gimplify_decl_expr, gimplify_var_or_parm_decl,
1056 gimplify_compound_lval, gimplify_init_constructor,
1057 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1058 gimplify_type_sizes): Likewise.
1059 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1060 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1061 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1062 remove_unused_locals): Likewise.
1063 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1064 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1065 * function.c (instantiate_expr, instantiate_decls_1,
1066 setjmp_vars_warning, add_local_decl): Likewise.
1067 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1069 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1070 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1071 optimize_va_list_gpr_fpr_size): Likewise.
1072 * tree-nrv.c (pass_nrv::execute): Likewise.
1073 * tsan.c (instrument_expr): Likewise.
1074 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1075 * vtable-verify.c (verify_bb_vtables): Likewise.
1076 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1077 get_ref_base_and_extent): Likewise.
1078 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1080 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1081 analyze_all_variable_accesses): Likewise.
1082 * tree-nested.c (get_nonlocal_debug_decl,
1083 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1084 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1085 get_local_debug_decl, convert_local_omp_clauses,
1086 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1088 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1089 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1090 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1091 dbxout_symbol, dbxout_common_check): Likewise.
1092 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1093 string_constant): Likewise.
1094 * hsa.c (hsa_get_declaration_name): Likewise.
1095 * passes.c (rest_of_decl_compilation): Likewise.
1096 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1097 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1098 pack_ts_decl_with_vis_value_fields,
1099 write_ts_decl_common_tree_pointers): Likewise.
1100 * stor-layout.c (place_field): Likewise.
1101 * symtab.c (symtab_node::maybe_create_reference,
1102 symtab_node::verify_base, symtab_node::make_decl_local,
1103 symtab_node::copy_visibility_from,
1104 symtab_node::can_increase_alignment_p): Likewise.
1105 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1106 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1107 fortran_common, add_location_or_const_value_attribute,
1108 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1109 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1110 optimize_one_addr_into_implicit_ptr,
1111 optimize_location_into_implicit_ptr): Likewise.
1112 * gimple-low.c (record_vars_into): Likewise.
1113 * ipa-visibility.c (update_vtable_references): Likewise.
1114 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1116 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1117 DFS::DFS_write_tree_body, write_symbol): Likewise.
1118 * langhooks.c (lhd_warn_unused_global_decl,
1119 lhd_set_decl_assembler_name): Likewise.
1120 * attribs.c (decl_attributes): Likewise.
1121 * except.c (output_ttype): Likewise.
1122 * varpool.c (varpool_node::get_create, ctor_for_folding,
1123 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1124 * fold-const.c (fold_unary_loc): Likewise.
1125 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1126 ipa_find_agg_cst_from_init): Likewise.
1127 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1128 expand_omp_target, lower_omp_regimplify_p,
1129 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1130 find_link_var_op): Likewise.
1131 * tree-chrec.c (chrec_contains_symbols): Likewise.
1132 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1133 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1134 execute_fixup_cfg): Likewise.
1136 PR tree-optimization/77901
1137 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1138 if ranges[i].exp is SSA_NAME when looking for >= and only when
1139 ranges[i].exp is NULL or SSA_NAME when looking for the other
1142 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1144 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1145 (ipcp_param_lattices): Remove field alignment.
1146 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1147 (set_all_contains_variable): Remove call to
1148 ipcp_alignment_lattice::set_to_bottom.
1149 (initialize_node_lattices): Likewise.
1150 (propagate_alignment_accross_jump_function): Remove.
1151 (propagate_constants_accross_call): Remove call to
1152 propagate_alignment_accross_jump_function.
1153 (ipcp_store_alignment_results): Remove.
1154 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1155 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1156 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1157 pretty-printing of alignment jump function.
1158 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1159 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1160 alignments and remove computing ipa_alignment jump function.
1161 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1162 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1163 (ipa_read_jump_function): Remove reading of ipa_alignment.
1164 (write_ipcp_transformation_info): Remove streaming for alignment
1165 propagation summary.
1166 (read_ipcp_transformation_info): Remove reading of alignment
1167 propagation summary.
1168 (ipcp_update_alignments): Remove.
1169 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1171 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1172 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1173 * ipa-prop.h (ipa_alignment): Remove.
1174 (ipa_jump_func): Remove field alignment.
1175 (ipcp_transformation_summary): Remove field alignments.
1176 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1177 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1178 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1180 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1182 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1184 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1186 (visium_expand_fp_cstore): Likewise.
1188 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1190 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1191 * diagnostic.c (warning_at_rich_loc_n): New function.
1192 (diagnostic_n_impl_richloc): Likewise.
1193 (diagnostic_n_impl): Move most of the function to
1194 diagnostic_n_impl_richloc and call it.
1196 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1198 * gen-pass-instances.awk: Rewritten.
1199 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1200 $(PASSES_EXTRA) after passes.def to the script.
1201 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1202 * config/i386/i386-passes.def: New file.
1203 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1204 make_pass_stv): Declare.
1205 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1207 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1209 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1210 (pass_stv::timode_p): New non-static data member.
1211 (ix86_option_override): Don't register passes here.
1213 * doc/invoke.texi: Document accepting Else, fallthrough.
1215 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1218 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1219 FALLTHRU comment styles.
1221 2016-10-07 Andrew Pinski <apinski@cavium.com>
1223 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1224 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1225 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1227 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1229 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1231 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1232 (AARCH64_ARCH): Likewise.
1233 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1235 (AARCH64_CORE): Likewise.
1236 (AARCH64_ARCH): Likewise.
1237 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1238 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1239 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1240 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1241 (AARCH64_ARCH): Likewise.
1242 (AARCH64_CORE): Likewise.
1243 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1244 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1245 (AARCH64_CORE): Likewise.
1246 (AARCH64_ARCH): Likewise.
1248 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1250 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1251 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1252 floating point type infrastructre, and -mfloat128 that enables the
1253 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1254 if -mfloat128-type. Define __ibm128 to be long double by default.
1255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1256 the IEEE 128-bit floating point type infrastructure should
1257 automatically be enabled.
1258 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1259 instead of -mfloat128 to enable KFmode.
1260 (rs6000_option_override_internal): Split the option -mfloat128
1261 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
1262 systems, automatically set -mfloat128-type, but don't enable it on
1263 other operating systems. Move setting the long double size and
1264 IEEE quad support before the IEEE 128-bit floating point changes.
1265 (rs6000_init_builtins): Do not create a unique type for __ibm128
1266 if long double is IBM extended double, instead rely on __ibm128
1267 being defined as 'long double'. If -mfloat128-type and not
1268 -mfloat128, create the KFmode type with an undocumented __ieee128
1270 (rs6000_init_libfuncs): Use -mfloat128-type instead of
1271 -mfloat128 for tests about the types, but keep tests for
1272 -mfloat128 to enable the keyword support.
1273 (rs6000_complex_function_value): Likewise.
1274 (rs6000_scalar_mode_supported_p): Likewise.
1275 (rs6000_floatn_mode): Likewise.
1276 (rs6000_c_mode_for_suffix): Likewise.
1277 (rs6000_opt_masks): Add -mfloat128-type.
1278 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
1279 -mfloat128-type being split from -mfloat128. Add
1280 -mfloat128-hardware, which was missing.
1281 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
1282 -mfloat128 and -mfloat128-type:
1283 (-mfloat128-type): Likewise.
1284 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
1285 that 64-bit Linux systems with enable -mfloat128-type by default
1287 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
1288 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
1289 -mfloat128-type instead of -mfloat128.
1290 (FLOAT128_2REG_P): Likewise.
1291 (MASK_FLOAT128_TYPE): Likewise.
1292 (ALTIVEC_ARG_MAX_RETURN): Likewise.
1293 (RS6000_BTM_FLOAT128): Likewise.
1294 (TARGET_FLOAT128): Poison old identifiers.
1295 (OPTION_MASK_FLOAT128): Likewise.
1296 (MASK_FLOAT128): Likewise.
1297 * config/rs6000/rs6000.md (FP): Likewise.
1298 (FLOAT128): Likewise.
1299 (fix_trunc<mode>di2): Likewise.
1300 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1301 (floatdi<mode>2): Likewise.
1302 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
1303 (neg<mode>2, FLOAT128 iterator): Likewise.
1304 (abs<mode>2, FLOAT128 iterator): Likewise.
1305 (ieee_128bit_negative_zero): Likewise.
1306 (ieee_128bit_vsx_neg<mode>2): Likewise.
1307 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1308 (ieee_128bit_vsx_abs<mode>2): Likewise.
1309 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1310 (ieee_128bit_vsx_nabs<mode>2): Likewise.
1311 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1312 (extendiftf2): Likewise.
1313 (extendifkf2): Likewise.
1314 (extendtfkf2): Likewise.
1315 (trunciftf2): Likewise.
1316 (truncifkf2): Likewise.
1317 (trunckftf2): Likewise.
1318 (trunctfif2): Likewise.
1319 (extendkftf2): Likewise.
1320 (trunctfkf2): Likewise.
1322 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1324 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
1325 before merging in bytes to pass down to real_from_target.
1327 2016-10-07 Richard Biener <rguenther@suse.de>
1329 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
1331 (substitute_and_fold_dom_walker::before_dom_children):
1332 Substitute and fold before pass specific folding to avoid
1333 feeding that with SSA names that will be later released.
1334 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
1335 introduced by folding and visited by evaluate_stmt called during
1337 (likely_value): Likewise.
1338 (evaluate_stmt): Likewise.
1339 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
1340 (simplify_div_or_mod_using_ranges): Likewise.
1341 (simplify_min_or_max_using_ranges): Likewise.
1342 (simplify_abs_using_ranges): Likewise.
1343 (simplify_conversion_using_ranges): Likewise.
1344 (simplify_float_conversion_using_ranges): Likewise.
1345 (simplify_stmt_using_ranges): Likewise.
1347 2016-10-07 Marek Polacek <polacek@redhat.com>
1349 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
1350 FALLTHROUGH_LABEL_P here...
1351 (warn_implicit_fallthrough_r): ...not here.
1353 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
1355 PR tree-optimization/77880
1356 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
1359 2016-10-07 Marek Polacek <polacek@redhat.com>
1362 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
1364 2016-10-07 Richard Biener <rguenther@suse.de>
1366 * bitmap.h: Document constraints on bitmap modification while
1369 2016-10-07 Richard Biener <rguenther@suse.de>
1371 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
1372 * bitmap.h (bmp_iter_set): When advancing to the next element
1373 check that we didn't remove the current one.
1374 (bmp_iter_and): Likewise.
1375 (bmp_iter_and_compl): Likewise.
1376 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
1377 we currently iterate on but keep a one-level queue.
1378 * sched-deps.c (remove_from_deps): Do not clear current bit
1379 but keep a one-level queue.
1381 2016-10-07 Jakub Jelinek <jakub@redhat.com>
1383 PR tree-optimization/77664
1384 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
1385 for the other ranges.
1386 (optimize_range_tests_diff): Fix up formatting.
1387 (optimize_range_tests_var_bound): New function.
1388 (optimize_range_tests): Use it.
1390 2016-10-07 Martin Liska <mliska@suse.cz>
1392 * coverage.c (build_gcov_exit_decl): Fix priority what
1393 should be really 99.
1395 2016-10-07 Richard Biener <rguenther@suse.de>
1397 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
1398 vars in gimple_bind_vars but not in BLOCK_VARS.
1400 2016-10-07 Richard Biener <rguenther@suse.de>
1402 PR tree-optimization/77879
1403 * tree-ssa-structalias.c (handle_const_call): Properly handle
1405 (handle_pure_call): Likewise.
1407 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1409 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
1410 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
1413 2016-10-06 Andrew Pinski <apinski@cavium.com>
1415 * config/aarch64/aarch64-cores.def: Add a comment before each
1418 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1420 PR tree-optimization/77862
1421 * tree-vrp.c (add_equivalence): Use get_value_range so that
1422 num_vr_values is checked before accessing vr_values.
1424 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1426 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1429 2016-10-05 Jeff Law <law@redhat.com>
1431 PR tree-optimization/71661
1432 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1433 removal of a forwarder exposes a new natural loop.
1435 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1438 Introduce ssesuffix variable.
1439 (<mask_codefor><code><mode>3<mask_name>): Ditto.
1440 (*<code><mode>3): Ditto.
1442 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
1444 * postreload.c (reload_cse_simplify): Skip also USE when detecting
1447 2016-10-06 Richard Biener <rguenther@suse.de>
1449 PR tree-optimization/77855
1450 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1451 instead of removing the current item while iterating over the set
1454 2016-10-06 James Clarke <jrtc27@jrtc27.com>
1455 Eric Botcazou <ebotcazou@adacore.com>
1458 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1459 (classify_registers): Don't set it
1460 (function_arg_slotno): Don't initialize and test it. Tidy up.
1462 2016-10-06 Richard Biener <rguenther@suse.de>
1464 PR tree-optimization/77839
1465 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1468 2016-10-06 Martin Liska <mliska@suse.cz>
1470 * gcc.c: Set -fprofile-update=atomic when profiling is
1471 enabled and -pthread is set. Warn when one combines
1472 -pthread and -fprofile-update=single for an app using
1475 2016-10-06 Martin Liska <mliska@suse.cz>
1478 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1479 * gimple-ssa-strength-reduction.c (slsr_process_cast):
1480 Initialize a pointer to NULL.
1481 (slsr_process_copy): Likewise.
1482 * input.c (location_get_source_line): Likewise.
1483 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1485 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
1487 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1488 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1489 (ix86_handle_option): Deleted handle of OPT_mpcommit.
1490 * config.gcc: Deleted pcommitintrin.h
1491 * config/i386/pcommitintrin.h: Deleted file.
1492 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1493 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1495 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1497 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1498 (PTA_PCOMMIT): Deleted define.
1499 (ix86_option_override_internal): Deleted handle of option.
1500 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1501 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1502 __builtin_ia32_pcommit): Deleted.
1503 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1504 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1505 (pcommit): Deleted instruction.
1506 * config/i386/i386.opt: Mention -mpcommit deprecation.
1507 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1509 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
1512 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1513 Remove wrong assert.
1514 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1515 Use <round_constraint> as operand 1 constraint.
1517 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1520 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1521 (ubsan_instrument_float_cast): And not here.
1524 * ubsan.c (ubsan_ids): New GTY(()) array.
1525 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1526 instead of static local counters.
1528 2016-10-05 Martin Sebor <msebor@redhat.com>
1531 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1532 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1533 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1534 (default_printf_pointer_format): Define function.
1535 * targhooks.c (linux_printf_pointer_format): Define new function.
1536 * targhooks.h (linux_printf_pointer_format): Declare.
1537 (gnu_libc_printf_pointer_format): Remove declaration.
1539 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1541 * fold-const.c (native_encode_real): Fix logic for selecting offset
1542 to write to when BYTES_BIG_ENDIAN.
1544 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
1546 * builtins.c (fold_builtin_strchr): Remove function.
1547 (fold_builtin_strrchr): Likewise.
1548 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1549 * gimple-fold.c (target_char_cst_p): New function.
1550 (gimple_fold_builtin_strchr) Add more foldings.
1551 (gimple_fold_builtin): Add index, strrchr, rindex cases.
1553 2016-10-05 Richard Biener <rguenther@suse.de>
1556 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1557 capture ids in c-exprs.
1559 2016-10-05 Richard Biener <rguenther@suse.de>
1562 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1563 with types_match for GIMPLE code gen to handle type mismatched
1565 (dt_operand::gen): Adjust.
1566 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1569 2016-10-05 Richard Biener <rguenther@suse.de>
1571 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1573 2016-10-05 Richard Biener <rguenther@suse.de>
1576 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1578 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
1580 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1581 version check to protect only DW_TAG_imported_module generation.
1583 2016-10-05 Richard Biener <rguenther@suse.de>
1586 * match.pd (min(a,-a) -> -abs(a)): New pattern.
1588 2016-10-04 Ian Lance Taylor <iant@golang.org>
1590 * explow.c (allocate_dynamic_stack_space): Call
1591 do_pending_stack_adjust before handling flag_split_stack.
1593 2016-10-04 David Malcolm <dmalcolm@redhat.com>
1595 * genattrtab.c (make_internal_attr): Supply dummy column number to
1598 * genoutput.c (init_insn_for_nothing): Likewise.
1599 * gensupport.c (add_define_attr): Likewise.
1600 * read-md.c (message_at_1): Print column number.
1601 (fatal_with_file_and_line): Likewise.
1602 (rtx_reader::read_char): Track column numbers.
1603 (rtx_reader::unread_char): Likewise.
1604 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1605 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1606 (rtx_reader::handle_file): Initialize m_read_md_colno.
1607 (rtx_reader::get_current_location): Supply column number to
1609 * read-md.h (struct file_location): Add field "colno".
1610 (file_location::file_location): Likewise.
1611 (rtx_reader::get_colno): New accessor.
1612 (rtx_reader::m_read_md_colno): New field.
1613 (rtx_reader::m_last_line_colno): New field.
1615 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1617 * doc/extend.texi (Java Exceptions): Remove.
1618 (java_interface): Remove.
1620 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
1622 PR tree-optimization/77808
1623 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1624 and addr are different before copying points-to information.
1626 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
1628 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1629 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1630 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1631 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1633 2016-10-04 Richard Biener <rguenther@suse.de>
1635 PR tree-optimization/77399
1636 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1637 verify the target can convert.
1639 2016-10-04 Richard Biener <rguenther@suse.de>
1642 * explow.c (plus_constant): Verify the mode of the constant
1643 pool offset before calling plus_constant.
1645 2016-10-04 Richard Biener <rguenther@suse.de>
1648 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1649 type support, mark with :C.
1650 (X / -X -> -1): Mark with :C.
1652 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1654 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1655 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1656 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1657 * doc/tm.texi: Regenerated.
1658 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1659 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1660 * config/darwin.h (JCR_SECTION_NAME): Remove.
1661 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1662 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1663 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1664 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1665 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1666 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1668 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1670 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1671 between "because" and "param" in dump message in call to fprintf.
1673 2016-10-03 Jeff Law <law@redhat.com>
1675 PR tree-optimization/71550
1676 PR tree-optimization/71403
1677 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1678 (profitable_jump_thread_path): Also return boolean indicating if
1679 the realized path will create an irreducible loop.
1680 Remove loop depth tests from 71403.
1681 (fsm_find_control_statement_thread_paths): Remove loop depth tests
1682 from 71403. If threading will create an irreducible loop, then
1683 throw away loop iteration and related information.
1685 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
1687 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1688 -Woverloaded-virtual checks for warning options.
1689 * configure: Regenerate.
1691 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1693 PR preprocessor/77699
1694 * input.c (maybe_grow): Don't allocate one byte extra headroom.
1695 (get_next_line): Return false on error.
1696 (read_next_line): Removed, use get_next_line instead.
1697 (read_line_num): Don't copy the line.
1698 (location_get_source_line): Don't use static data.
1699 (selftest::test_reading_source_line): Add more test cases.
1701 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1704 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1706 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1707 (noce_process_if_block): Use it.
1709 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1711 * doc/invoke.texi: Update -Wint-in-bool-context.
1713 2016-10-02 Jakub Jelinek <jakub@redhat.com>
1715 * dwarf2out.c (output_fde, output_call_frame_info,
1716 dwarf2out_do_cfi_startproc, set_indirect_string,
1717 gen_internal_sym, output_die, output_line_info): Use
1718 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1719 ASM_GENERATE_INTERNAL_LABEL output.
1721 2016-10-01 Richard Biener <rguenther@suse.de>
1724 * genmatch.c (get_operand_type): Add operand position arg
1725 and handle COND_EXPR comparison operand with fixed boolean_type_node.
1726 (expr::gen_transform): Adjust.
1727 (dt_simplify::gen_1): Likewise.
1729 2016-10-01 Jakub Jelinek <jakub@redhat.com>
1731 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1732 comments. Simplify asserts, remove unnecessary conditions.
1734 (*<code><mode>3): Likewise.
1736 2016-09-30 Jakub Jelinek <jakub@redhat.com>
1738 * doc/invoke.texi (-Wregister): Document.
1740 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1742 * configure.ac: Split CHECKING_P into CHECKING_P and
1743 ENABLE_EXTRA_CHECKING.
1744 * configure: Regenerated.
1745 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
1746 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1748 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
1751 * gcc.c (process_command): For @filename handling, output
1752 the correct name if the file does not exist.
1754 2016-09-30 Marek Polacek <polacek@redhat.com>
1756 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1757 * config/alpha/predicates.md: Likewise.
1759 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1761 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1762 (noce_process_if_block): Use it.
1764 2016-09-30 Martin Liska <mliska@suse.cz>
1766 * doc/invoke.texi: Document asan-use-after-return that
1767 it's disabled by default in runtime.
1769 2016-09-30 Richard Biener <rguenther@suse.de>
1771 * tree-vrp.c (intersect_ranges): If we failed to handle
1772 the intersection choose a constant singleton range if available.
1774 2016-09-30 Richard Biener <rguenther@suse.de>
1776 PR tree-optimization/77399
1777 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1778 float <-> int conversions.
1780 2016-09-30 Alan Modra <amodra@gmail.com>
1782 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1784 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1786 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1787 ext_level before calling CPUID with 0x80000008.
1788 Simplify xgetbv checks.
1790 2016-09-29 David Malcolm <dmalcolm@redhat.com>
1792 * Makefile.in (OBJS): Add print-rtl-function.o.
1793 * print-rtl-function.c: New file.
1794 * print-rtl.h (print_rtx_function): New decl.
1796 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1799 * config/i386/cpuid.h (__get_cpuid_count): New.
1800 (__get_cpuid): Rename __level to __leaf.
1802 2016-09-29 Marek Polacek <polacek@redhat.com>
1804 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1806 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
1808 * builtins.c (expand_builtin_memcmp): don't swap args unless
1809 result is only being compared with zero.
1811 2016-09-29 Marek Polacek <polacek@redhat.com>
1813 * dwarf2out.c (loc_descriptor): Add fall through comment.
1814 (add_const_value_attribute): Likewise.
1816 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
1818 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1819 with "v6t2". Move "arch" attribute above "pool_range".
1820 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1822 (*thumb2_movhi_vfp): Likewise.
1823 (*arm_movhi_fp16): Likewise.
1824 (*thumb2_movhi_fp16): Likewise.
1825 (*arm_movsi_vfp): Remove "arch" attribute.
1826 (*thumb2_movsi_vfp): Likewise.
1828 2016-09-29 Martin Liska <mliska@suse.cz>
1830 * doc/extend.texi: Remove limitation of Objective C for
1831 __attribute__((constructor)) and __attribute__((destructor)).
1833 2016-09-29 Richard Biener <rguenther@suse.de>
1835 PR tree-optimization/77768
1836 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1837 Handle stores to readonly memory when removing redundant stores.
1839 2016-09-29 Richard Biener <rguenther@suse.de>
1842 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1843 X / -X -> -1 simplifications.
1845 2016-09-29 Richard Biener <rguenther@suse.de>
1848 * match.pd: Add max(a,-a) -> abs(a) pattern.
1849 * tree-ssa-phiopt.c (minmax_replacement): Disable for
1850 HONOR_SIGNED_ZEROS types.
1852 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1854 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1855 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1857 2016-09-29 Richard Biener <rguenther@suse.de>
1859 * tree-vrp.c (set_defs_to_varying): New helper avoiding
1860 writing to vr_const_varying.
1861 (vrp_initialize): Call it.
1862 (vrp_visit_stmt): Likewise.
1863 (evrp_dom_walker::before_dom_children): Likewise.
1865 2016-09-29 Richard Biener <rguenther@suse.de>
1867 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1868 constructors with vector elements.
1870 2016-09-29 Richard Biener <rguenther@suse.de>
1872 PR tree-optimization/77768
1873 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1874 with stores to a place we know has a constant value.
1876 2016-09-29 Alan Modra <amodra@gmail.com>
1878 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1879 * doc/invoke.texi: Document it.
1880 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1881 (rs6000_passes_float): Comment.
1882 (rs6000_passes_long_double): New static var.
1883 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1884 (init_cumulative_args): Set up to emit fp .gnu_attribute for
1885 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
1886 to include fp values returned in vectors.
1887 Set rs6000_passes_long_double.
1888 (rs6000_function_arg_advance_1): Likewise for function args.
1889 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1890 and SPE. Emit long double tag value too.
1891 (rs6000_opt_vars): Add gnu-attr.
1892 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1893 * configure: Regenerate.
1894 * config.in: Regenerate.
1896 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1898 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1900 (format_floating, format_string, format_directive,
1901 get_destination_size, pass_sprintf_length::handle_gimple_call):
1904 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1906 * gimple-ssa-sprintf.c: Fix comment formatting.
1907 (format_integer): Use is_gimple_assign.
1908 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1909 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
1910 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
1911 (pass_sprintf_length::execute): Use is_gimple_call.
1913 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1915 * gimple-fold.c (gimple_fold_builtin): After failing to fold
1916 strchr, also try the generic folding.
1918 2016-09-28 Martin Sebor <msebor@redhat.com>
1921 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1924 2016-09-28 Martin Sebor <msebor@redhat.com>
1927 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1928 length modifier is not expected.
1929 (format_floating): Ignore l length modifier and fail gracefuly
1930 when it isn't one of the other expected ones.
1932 2016-09-28 Martin Sebor <msebor@redhat.com>
1935 * varasm.c (assemble_addr_to_section): Increase local buffer size.
1937 2016-09-27 Richard Biener <rguenther@suse.de>
1939 * dwarf2out.c (cu_die_list): New global.
1940 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
1941 main_comp_unit_die to cu_die_list if we created it.
1942 Move break_out_includes ...
1943 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
1946 2016-09-28 Richard Biener <rguenther@suse.de>
1948 * dwarf2out.c (struct die_struct): Add removed flag.
1949 (lookup_type_die): If the DIE is marked as removed, clear
1950 TYPE_SYMTAB_DIE and return NULL.
1951 (lookup_decl_die): If the DIE is marked as removed, remove it
1952 from the hash and return NULL.
1953 (mark_removed): New helper.
1954 (prune_unused_types_prune): Call it for removed DIEs.
1955 (gen_subprogram_die): Move the premark_used_types call to after
1956 DIEs for the functions scopes are generated.
1957 (process_scope_var): Do not re-create pruned types or type decls.
1958 Make sure to also re-parent type decls.
1959 (dwarf2out_finish): Move unused type pruning and debug_types
1961 (dwarf2out_early_finish): ... here.
1963 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1965 * config/arc/arc-c.c: New file.
1966 * config/arc/arc-c.def: Likewise.
1967 * config/arc/t-arc: Likewise.
1968 * config.gcc: Include arc-c.o as c and cpp object.
1969 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1970 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1971 arc_cpu_cpp_builtins.
1973 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1975 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1976 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1978 2016-09-28 Nathan Sidwell <nathan@acm.org>
1980 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1983 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1985 PR tree-optimization/61056
1986 * gimple-fold.c (gimple_fold_builtin_strchr):
1987 New function to optimize strchr (s, 0) to strlen.
1988 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1990 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
1992 PR tree-optimization/77724
1993 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1994 Add tree_fits_shwi_p check.
1996 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1998 * auto-inc-dec.c (try_merge): Remove break after return.
1999 * cselib.c (autoinc_split): Likewise.
2000 * explow.c (promote_mode): Likewise.
2001 * fixed-value.c (fixed_arithmetic): Likewise.
2002 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2003 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2004 * trans-mem.c (get_attrs_for): Likewise.
2005 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2006 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2007 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2008 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2009 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2010 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2011 * config/cris/cris.c (cris_op_str): Likewise.
2012 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2013 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2015 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2017 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2018 IFN_GOACC_REDUCTION_CODES): New.
2019 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2020 ifn_goacc_reduction_kind): Use them.
2021 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2022 of internal functions, when applicable.
2024 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2026 * config/mips/constraints.md (d): Fix documentation.
2027 * doc/md.texi (Machine Constraints): Update accordingly.
2029 2016-09-27 Richard Biener <rguenther@suse.de>
2031 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2032 cur_line_info_table initialization ...
2033 (dwarf2out_assembly_start): ... here.
2035 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2037 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2038 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2039 (*thumb2_movhi_vfp): Likewise.
2040 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2041 template. Expand predicable attribute to mark VMOV.F16 as not
2042 predicable. Add "arch" attribute.
2043 (*thumb2_movhi_fp16): Likewise.
2044 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2045 (*thumb2_movsi_vfp): Add "arch" attribute.
2047 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2049 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2052 2016-09-27 Marek Polacek <polacek@redhat.com>
2054 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2057 * config/c6x/c6x.h: Adjust fall through comment.
2058 * config/sh/sh.c (final_prescan_insn): Likewise.
2059 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2060 (visium_expand_fp_cstore): Likewise.
2062 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2064 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2065 expected by -Wimplicit-fallthrough.
2066 (thumb1_size_rtx_costs): Likewise.
2067 (thumb2_reorg): Likewise.
2068 (tls_mentioned_p): Add "Fall through" comment.
2069 (thumb2_reorg): Likewise.
2070 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2071 comment form expected by -Wimplicit-fallthrough.
2073 2016-09-27 Martin Liska <mliska@suse.cz>
2075 PR gcov-profile/46266
2076 * input.h (RESERVED_LOCATION_P): New macro.
2077 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2078 instread of comparison with UNKNOWN_LOCATION.
2080 2016-09-27 Richard Biener <rguenther@suse.de>
2082 PR tree-optimization/77745
2083 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2084 When removing redundant stores make sure to check compatibility
2085 of the TBAA state for downstream accesses.
2086 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2087 value-numbering virtual operands for store matches.
2089 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2092 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2093 movrt patterns. Match them before anything else in the SET case.
2095 2016-09-27 Martin Liska <mliska@suse.cz>
2097 PR gcov-profile/7970
2098 PR gcov-profile/16855
2099 PR gcov-profile/44779
2100 * coverage.c (build_gcov_exit_decl): New function.
2101 (coverage_obj_init): Call the function and generate __gcov_exit
2103 * doc/gcov.texi: Document when __gcov_exit function is called.
2105 2016-09-27 Marek Polacek <polacek@redhat.com>
2108 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2109 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2110 -Wno-error instead of -Wno-implicit-fallthrough.
2112 2016-09-27 Martin Liska <mliska@suse.cz>
2115 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2117 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2119 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2120 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2121 comments. Remove break after return.
2122 (ix86_fp_compare_code_to_integer, has_dispatch,
2123 ix86_simd_clone_usable): Remove break after return.
2125 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2127 PR rlt-optimization/77714
2128 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2131 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2134 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2135 extract_range_from_unary_expr to convert value_range.
2136 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2137 (extract_range_from_unary_expr): This.
2138 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2140 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2142 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2144 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2146 * config/i386/i386.c (ix86_print_operand)
2147 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2148 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2149 (epilogue_renumber): Likewise.
2151 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2154 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2155 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2157 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2159 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2160 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2161 is_mm_seq_cst, is_mm_sync): Move to ...
2162 * memmodel.h: This. New file.
2163 * builtins.c: Include memmodel.h.
2164 * optabs.c: Likewise.
2166 * config/aarch64/aarch64.c: Likewise.
2167 * config/alpha/alpha.c: Likewise.
2168 * config/arm/arm.c: Likewise.
2169 * config/i386/i386.c: Likewise.
2170 * config/ia64/ia64.c: Likewise.
2171 * config/mips/mips.c: Likewise.
2172 * config/rs6000/rs6000.c: Likewise.
2173 * config/sparc/sparc.c: Likewise.
2174 * genconditions.c: Include memmodel.h in generated file.
2175 * genemit.c: Likewise.
2176 * genoutput.c: Likewise.
2177 * genpeep.c: Likewise.
2178 * genpreds.c: Likewise.
2179 * genrecog.c: Likewise.
2181 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2183 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2184 "c" instead when parsing characters. Move operand parsing into...
2185 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2186 and tightening the scope of various locals.
2188 2016-09-26 Liu Hao <lh_mouse@126.com>
2190 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2192 2016-09-26 Marek Polacek <polacek@redhat.com>
2194 * system.h: Use __has_attribute to check whether the fallthrough
2195 attribute is supported.
2197 2016-09-26 Marek Polacek <polacek@redhat.com>
2199 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2200 gimple_call_internal_p.
2201 * ipa-split.c (find_return_bb): Likewise.
2202 (execute_split_functions): Likewise.
2203 * omp-low.c (dump_oacc_loop_part): Likewise.
2204 (oacc_loop_xform_head_tail): Likewise.
2205 * predict.c (predict_loops): Likewise.
2206 * sanopt.c (pass_sanopt::execute): Likewise.
2207 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2208 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2209 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2210 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2211 (expand_ifn_va_arg): Likewise.
2212 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2213 (optimize_mask_stores): Likewise.
2214 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2215 (vect_transform_stmt): Likewise.
2216 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2217 * tsan.c (instrument_memory_accesses): Likewise.
2219 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2220 Alexander Monakov <amonakov@ispras.ru>
2222 * regrename.c (rename_chains): Check
2223 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2224 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2225 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2227 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2229 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2230 (s390_sched_score): Likewise.
2232 2016-09-26 Martin Liska <mliska@suse.cz>
2234 * doc/gcov.texi: Update program output of gcov tool.
2236 2016-09-26 Martin Liska <mliska@suse.cz>
2238 PR gcov-profile/23332
2239 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2240 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2241 * value-prof.c (dump_histogram_value): Do not handle
2242 HIST_TYPE_CONST_DELTA.
2243 (stream_in_histogram_value): Likewise.
2244 (gimple_find_values_to_profile): Likewise.
2245 * value-prof.h (enum hist_type): Likewise.
2247 2016-09-26 Martin Liska <mliska@suse.cz>
2249 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2250 from default sanitize recover values.
2251 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2252 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2253 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2255 * opts.c (finish_options): Do a generic loop over options
2256 that can be recovered.
2257 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2259 (common_handle_option): Likewise.
2260 * opts.h: Declare can_recover to sanitizer_opts_s.
2262 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
2264 * target.def(elf_flags_numeric): Change documentation to present tense.
2265 * doc/tm.texi: Regenerate.
2267 2016-09-26 Marek Polacek <polacek@redhat.com>
2270 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2271 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2272 -Wno-switch-fallthrough.
2273 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2274 (expand_builtin): Likewise.
2275 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
2276 * convert.c (convert_to_real_1): Likewise.
2277 (convert_to_integer_1): Likewise.
2278 * final.c (output_alternate_entry_point): Likewise.
2279 * genattrtab.c (make_canonical): Likewise.
2280 (write_test_expr): Likewise.
2281 * genpreds.c (validate_exp): Likewise.
2282 * gimple-ssa-strength-reduction.c
2283 (find_candidates_dom_walker::before_dom_children): Likewise.
2284 * godump.c (go_format_type): Likewise.
2285 * reload1.c (elimination_effects): Likewise.
2286 * resource.c (mark_referenced_resources): Likewise.
2287 (mark_set_resources): Likewise.
2288 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
2289 * varasm.c (output_addressed_constants): Likewise.
2291 2016-09-26 Marek Polacek <polacek@redhat.com>
2294 * common.opt (Wimplicit-fallthrough): New option.
2295 * doc/extend.texi: Document statement attributes and the fallthrough
2297 * doc/invoke.texi: Document -Wimplicit-fallthrough.
2298 * gimple.h (gimple_call_internal_p): New function.
2299 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
2300 (struct label_entry): New struct.
2301 (find_label_entry): New function.
2302 (case_label_p): New function.
2303 (collect_fallthrough_labels): New function.
2304 (last_stmt_in_scope): New function.
2305 (should_warn_for_implicit_fallthrough): New function.
2306 (warn_implicit_fallthrough_r): New function.
2307 (maybe_warn_implicit_fallthrough): New function.
2308 (expand_FALLTHROUGH_r): New function.
2309 (expand_FALLTHROUGH): New function.
2310 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
2311 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
2312 (gimplify_label_expr): New function.
2313 (gimplify_case_label_expr): Set location.
2314 (gimplify_expr): Call gimplify_label_expr.
2315 * internal-fn.c (expand_FALLTHROUGH): New function.
2316 * internal-fn.def (FALLTHROUGH): New internal function.
2317 * langhooks.c (lang_GNU_OBJC): New function.
2318 * langhooks.h (lang_GNU_OBJC): Declare.
2319 * system.h (gcc_fallthrough): Define.
2320 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
2321 * tree.h (FALLTHROUGH_LABEL_P): Define.
2323 2016-09-26 Richard Biener <rguenther@suse.de>
2325 * dwarf2out.c (stripattributes): Remove unused function.
2326 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
2327 Push dwarf_split_debug_info handling into init_sections_and_labels.
2328 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
2329 (DEBUG_MACRO_SECTION_FLAGS): Remove.
2330 (debug_macinfo_section_name): New global.
2331 (output_macinfo): Use debug_macinfo_section_name.
2332 (init_sections_and_labels): Split out section and label generation
2333 from dwarf2out_init. Set debug_macinfo_section_name.
2334 (dwarf2out_init): Move text section label generation and emission
2336 (dwarf2out_assembly_start): ... here.
2337 (dwarf2out_finish): Call init_sections_and_labels before DWARF
2340 2016-09-26 Richard Biener <rguenther@suse.de>
2343 * cgraphunit.c (analyze_functions): Before early removing
2344 global vars calls the late_global_decl debug handler mark
2345 the variable as readonly.
2347 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2350 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
2351 (sh_rtx_costs): Handle SET of movt and movrt patterns.
2352 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
2353 declare new overloads.
2354 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
2357 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2359 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
2360 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
2362 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
2364 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
2365 * configure: Regenerate.
2367 2016-09-24 Marek Polacek <polacek@redhat.com>
2370 * doc/invoke.texi: Document -Wbool-operation.
2372 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2374 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
2375 * config/rs6000/rs6000.c (expand_block_compare): New function used by
2376 cmpmemsi pattern to do builtin expansion of memcmp ().
2377 (compute_current_alignment): Add helper function for
2378 expand_block_compare used to compute alignment as the compare proceeds.
2379 (select_block_compare_mode): Used by expand_block_compare to select
2380 the mode used for reading the next chunk of bytes in the compare.
2381 (do_load_for_compare): Used by expand_block_compare to emit the load
2382 insns for the compare.
2383 (rs6000_emit_dot_insn): Moved this function to avoid a forward
2384 reference from expand_block_compare ().
2385 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
2386 prototype for this function.
2387 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
2388 target option for controlling how much code inline expansion of
2389 memcmp() will be allowed to generate.
2391 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2393 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
2394 hook_bool_mode_false, hook_bool_mode_true,
2395 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
2396 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2397 hook_bool_const_rtx_insn_const_rtx_insn_true,
2398 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
2399 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
2400 hook_bool_const_tree_hwi_hwi_const_tree_false,
2401 hook_bool_const_tree_hwi_hwi_const_tree_true,
2402 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
2403 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2404 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
2405 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
2406 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
2407 hook_bool_const_tree_true, hook_bool_tree_tree_false,
2408 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
2409 hook_bool_rtx_insn_true, hook_bool_rtx_false,
2410 hook_bool_uintp_uintp_false,
2411 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
2412 hook_rtx_tree_int_null, hook_uint_mode_0,
2413 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
2414 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
2415 hook_constcharptr_const_rtx_insn_null,
2416 hook_constcharptr_const_tree_const_tree_null,
2417 hook_constcharptr_int_const_tree_null,
2418 hook_constcharptr_int_const_tree_const_tree_null,
2419 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
2420 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
2421 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
2423 * vec.h (vNULL): Extend comment to say = vNULL initialization
2424 isn't needed for static vars.
2426 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2427 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2428 = vNULL initialization of file scope vec.
2429 * passes.c (pass_tab, enabled_pass_uid_range_tab,
2430 disabled_pass_uid_range_tab): Likewise.
2431 * haifa-sched.c (sched_luids, h_i_d): Likewise.
2432 * tree-chkp-opt.c (check_infos): Likewise.
2433 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2435 * vec.h (vnull::operator vec): Add constexpr keyword for
2438 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
2440 PR tree-optimization/77654
2441 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2442 to duplicate_ssa_name_ptr_info.
2444 2016-09-23 David Malcolm <dmalcolm@redhat.com>
2446 PR preprocessor/77672
2447 * input.c (selftest::test_lexer_string_locations_simple): Update
2448 test to expect location information of the terminator character
2449 at the location of the final closing quote.
2450 (selftest::test_lexer_string_locations_hex): Likewise.
2451 (selftest::test_lexer_string_locations_oct): Likewise.
2452 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2453 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2454 (selftest::test_lexer_string_locations_ucn4): Likewise.
2455 (selftest::test_lexer_string_locations_ucn8): Likewise.
2456 (selftest::test_lexer_string_locations_u8): Likewise.
2457 (selftest::test_lexer_string_locations_utf8_source): Likewise.
2458 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2459 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2460 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2461 (selftest::test_lexer_string_locations_macro): Likewise.
2462 (selftest::test_lexer_string_locations_long_line): Likewise.
2464 2016-09-23 Richard Biener <rguenther@suse.de>
2466 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2467 virtual definition to virtual use if the call devirtualizes
2468 to a const or pure function.
2469 (visit_use): Also visit calls we can devirtualize to a
2470 const or pure function.
2472 2016-09-23 Richard Biener <rguenther@suse.de>
2474 PR tree-optimization/77697
2475 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2476 signal error if we have sth ternary or unhandled.
2478 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2480 * config/arm/arm_neon.h (vabd_f16): New.
2514 (vcvt_f16_s16): New.
2515 (vcvt_f16_u16): New.
2516 (vcvt_s16_f16): New.
2517 (vcvt_u16_f16): New.
2518 (vcvtq_f16_s16): New.
2519 (vcvtq_f16_u16): New.
2520 (vcvtq_s16_f16): New.
2521 (vcvtq_u16_f16): New.
2522 (vcvta_s16_f16): New.
2523 (vcvta_u16_f16): New.
2524 (vcvtaq_s16_f16): New.
2525 (vcvtaq_u16_f16): New.
2526 (vcvtm_s16_f16): New.
2527 (vcvtm_u16_f16): New.
2528 (vcvtmq_s16_f16): New.
2529 (vcvtmq_u16_f16): New.
2530 (vcvtn_s16_f16): New.
2531 (vcvtn_u16_f16): New.
2532 (vcvtnq_s16_f16): New.
2533 (vcvtnq_u16_f16): New.
2534 (vcvtp_s16_f16): New.
2535 (vcvtp_u16_f16): New.
2536 (vcvtpq_s16_f16): New.
2537 (vcvtpq_u16_f16): New.
2538 (vcvt_n_f16_s16): New.
2539 (vcvt_n_f16_u16): New.
2540 (vcvtq_n_f16_s16): New.
2541 (vcvtq_n_f16_u16): New.
2542 (vcvt_n_s16_f16): New.
2543 (vcvt_n_u16_f16): New.
2544 (vcvtq_n_s16_f16): New.
2545 (vcvtq_n_u16_f16): New.
2559 (vmul_lane_f16): New.
2562 (vmulq_lane_f16): New.
2584 (vrsqrteq_f16): New.
2588 (vrsqrtsq_f16): New.
2592 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2594 * config.gcc (extra_headers): Add arm_fp16.h
2595 * config/arm/arm_fp16.h: New.
2596 * config/arm/arm_neon.h: Include "arm_fp16.h".
2598 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2600 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2602 (vmulf): New (v8hf, v4hf variants).
2603 (vfma): New (v8hf, v4hf variants).
2604 (vfms): New (v8hf, v4hf variants).
2605 (vsub): New (v8hf, v4hf variants).
2606 (vcage): New (v8hf, v4hf variants).
2607 (vcagt): New (v8hf, v4hf variants).
2608 (vcale): New (v8hf, v4hf variants).
2609 (vcalt): New (v8hf, v4hf variants).
2610 (vceq): New (v8hf, v4hf variants).
2611 (vcgt): New (v8hf, v4hf variants).
2612 (vcge): New (v8hf, v4hf variants).
2613 (vcle): New (v8hf, v4hf variants).
2614 (vclt): New (v8hf, v4hf variants).
2615 (vceqz): New (v8hf, v4hf variants).
2616 (vcgez): New (v8hf, v4hf variants).
2617 (vcgtz): New (v8hf, v4hf variants).
2618 (vcltz): New (v8hf, v4hf variants).
2619 (vclez): New (v8hf, v4hf variants).
2620 (vabd): New (v8hf, v4hf variants).
2621 (vmaxf): New (v8hf, v4hf variants).
2622 (vmaxnm): New (v8hf, v4hf variants).
2623 (vminf): New (v8hf, v4hf variants).
2624 (vminnm): New (v8hf, v4hf variants).
2625 (vpmaxf): New (v4hf variant).
2626 (vpminf): New (v4hf variant).
2627 (vpadd): New (v4hf variant).
2628 (vrecps): New (v8hf, v4hf variants).
2629 (vrsqrts): New (v8hf, v4hf variants).
2630 (vabs): New (v8hf, v4hf variants).
2631 (vneg): New (v8hf, v4hf variants).
2632 (vrecpe): New (v8hf, v4hf variants).
2633 (vrnd): New (v8hf, v4hf variants).
2634 (vrnda): New (v8hf, v4hf variants).
2635 (vrndm): New (v8hf, v4hf variants).
2636 (vrndn): New (v8hf, v4hf variants).
2637 (vrndp): New (v8hf, v4hf variants).
2638 (vrndx): New (v8hf, v4hf variants).
2639 (vrsqrte): New (v8hf, v4hf variants).
2640 (vmul_lane): Add v4hf and v8hf variants.
2641 (vmul_n): Add v4hf and v8hf variants.
2642 (vext): New (v8hf, v4hf variants).
2643 (vcvts): New (v8hi, v4hi variants).
2644 (vcvts): New (v8hf, v4hf variants).
2645 (vcvtu): New (v8hi, v4hi variants).
2646 (vcvtu): New (v8hf, v4hf variants).
2647 (vcvts_n): New (v8hf, v4hf variants).
2648 (vcvtu_n): New (v8hi, v4hi variants).
2649 (vcvts_n): New (v8hi, v4hi variants).
2650 (vcvtu_n): New (v8hf, v4hf variants).
2651 (vbsl): New (v8hf, v4hf variants).
2652 (vcvtas): New (v8hf, v4hf variants).
2653 (vcvtau): New (v8hf, v4hf variants).
2654 (vcvtms): New (v8hf, v4hf variants).
2655 (vcvtmu): New (v8hf, v4hf variants).
2656 (vcvtns): New (v8hf, v4hf variants).
2657 (vcvtnu): New (v8hf, v4hf variants).
2658 (vcvtps): New (v8hf, v4hf variants).
2659 (vcvtpu): New (v8hf, v4hf variants).
2661 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2663 * config/arm/arm-builtins.c (hf_UP): New.
2665 (vfp_builtin_data): New. Update comment.
2666 (enum arm_builtins): Include "arm_vfp_builtins.def".
2667 (ARM_BUILTIN_VFP_PATTERN_START): New.
2668 (arm_init_vfp_builtins): New.
2669 (arm_init_builtins): Add arm_init_vfp_builtins.
2670 (arm_expand_vfp_builtin): New.
2671 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
2673 * config/arm/arm_vfp_builtins.def: New file.
2674 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2675 (arm-builtins.o): Likewise.
2677 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2680 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2681 from constant while creating value range.
2683 2016-09-23 Renlin Li <renlin.li@arm.com>
2685 * ira.c (ira): Move ira_use_lra_p initialization code to ...
2686 (ira_init_once): Here.
2688 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
2689 Jakub Jelinek <jakub@redhat.com>
2691 * hooks.h (hook_uint_uintp_false): Rename to...
2692 (hook_bool_uint_uintp_false): ... this.
2693 * hooks.c (hook_uint_uintp_false): Rename to...
2694 (hook_bool_uint_uintp_false): ... this.
2695 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2696 instead of hook_uint_uintp_false.
2698 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2700 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2701 (arm_init_builtins): Move body of a loop to the standalone
2702 function arm_init_neon_builtin.
2703 (arm_expand_neon_builtin_1): New. Update comment. Function body
2704 moved from arm_neon_builtin with some white-space fixes.
2705 (arm_expand_neon_builtin): Move code into the standalone function
2706 arm_expand_neon_builtin_1.
2708 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2710 * config/arm/iterators.md (VCVTHI): New.
2711 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
2715 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
2716 (V_HALF): Add V4HF. Fix white-space.
2717 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
2718 (V_s_elem): Likewise.
2719 (V_sz_elem): Fix white-space.
2720 (V_elem_ch): Likewise.
2722 (scalar_mul_constraint): Add V8HF and V4HF.
2723 (Is_float_mode): Fix white-space.
2724 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
2725 (q): Add HF. Fix white-space.
2728 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2729 (neon_vfm_lane_as): New.
2730 * config/arm/neon.md (add<mode>3_fp16): New.
2731 (sub<mode>3_fp16): New.
2732 (mul<mode>3add<mode>_neon): New.
2733 (fma<VH:mode>4_intrinsic): New.
2734 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2735 (fmsub<VH:mode>4_intrinsic): New.
2736 (<absneg_str><mode>2): New.
2737 (neon_v<absneg_str><mode>): New.
2738 (neon_v<fp16_rnd_str><mode>): New.
2739 (neon_vrsqrte<mode>): New.
2740 (neon_vpaddv4hf): New.
2741 (neon_vadd<mode>): New.
2742 (neon_vsub<mode>): New.
2743 (neon_vmulf<mode>): New.
2744 (neon_vfma<VH:mode>): New.
2745 (neon_vfms<VH:mode>): New.
2746 (neon_vc<cmp_op><mode>): New.
2747 (neon_vc<cmp_op><mode>_fp16insn): New
2748 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2749 (neon_vca<cmp_op><mode>): New.
2750 (neon_vca<cmp_op><mode>_fp16insn): New.
2751 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2752 (neon_vc<cmp_op>z<mode>): New.
2753 (neon_vabd<mode>): New.
2754 (neon_v<maxmin>f<mode>): New.
2755 (neon_vp<maxmin>fv4hf: New.
2756 (neon_<fmaxmin_op><mode>): New.
2757 (neon_vrecps<mode>): New.
2758 (neon_vrsqrts<mode>): New.
2759 (neon_vrecpe<mode>): New (VH variant).
2760 (neon_vdup_lane<mode>_internal): New.
2761 (neon_vdup_lane<mode>): New.
2762 (neon_vcvt<sup><mode>): New (VCVTHI variant).
2763 (neon_vcvt<sup><mode>): New (VH variant).
2764 (neon_vcvt<sup>_n<mode>): New (VH variant).
2765 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2766 (neon_vcvt<vcvth_op><sup><mode>): New.
2767 (neon_vmul_lane<mode>): New.
2768 (neon_vmul_n<mode>): New.
2769 * config/arm/unspecs.md (UNSPEC_VCALE): New
2770 (UNSPEC_VCALT): New.
2771 (UNSPEC_VFMA_LANE): New.
2772 (UNSPECS_VFMS_LANE): New.
2774 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2776 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2777 ("*extzv<mode><clobbercc_or_nocc>"):
2778 Correct a typo in a comment.
2780 ("*insv<mode>_zEC12", "*insv<mode>_z10")
2781 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2782 ("*insv<mode>_zEC12_appendbitsleft")
2783 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2784 ("*insv<mode>_z10_appendbitsleft"): Ditto.
2785 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2786 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2787 Provide pattern with operands switched.
2788 ("*pre_z10_extv<mode>"):
2789 Use new subst patterns.
2790 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2791 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2792 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2793 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2794 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2795 ("*<risbg_n>_sidi_ior_and_lshiftrt")
2796 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2798 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2799 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2800 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2802 ("SINT"): New mode_iterator with SI, HI, QI.
2803 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2804 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2807 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2809 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2810 new interface of s390_contiguous_bitmask_p.
2811 ("contiguous_bitmask_nowrap_operand"): New predicate.
2812 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2813 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2814 of s390_contiguous_bitmask_p.
2815 ("NxxDw"): Rename NxxDq constraint to NxxDw.
2816 ("NxxSw"): New constraint.
2817 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2818 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2820 (s390_contiguous_bitmask_nowrap_p): Export.
2821 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2822 former s390_contiguous_bitmask_p.
2823 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2824 detect contiguous bit ranges with wraparound. Change signature to
2825 return START and END position instead of POS and LENGTH.
2826 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2827 ranges with wraparound.
2828 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2829 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2830 Adapt to new signature of s390_contiguous_bitmask_p.
2832 2016-09-23 Bin Cheng <bin.cheng@arm.com>
2834 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2835 (create_intersect_range_checks): New.
2836 (vect_create_cond_for_alias_checks): Call above function.
2838 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2840 * config/arm/iterators.md (Code iterators): Fix some white-space
2844 (FCVT): Moved from vfp.md.
2845 (VCVT_HF_US_N): New.
2846 (VCVT_SI_US_N): New.
2851 (FCVTI32typename): Moved from vfp.md.
2852 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2853 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2854 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2855 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
2856 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2858 (fp16_rnd_str): New.
2859 (fp16_rnd_insn): New.
2860 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2861 (UNSPEC_VCVT_HF_U_N): New.
2862 (UNSPEC_VCVT_SI_S_N): New.
2863 (UNSPEC_VCVT_SI_U_N): New.
2864 (UNSPEC_VCVTH_S): New.
2865 (UNSPEC_VCVTH_U): New.
2866 (UNSPEC_VCVTA_S): New.
2867 (UNSPEC_VCVTA_U): New.
2868 (UNSPEC_VCVTM_S): New.
2869 (UNSPEC_VCVTM_U): New.
2870 (UNSPEC_VCVTN_S): New.
2871 (UNSPEC_VCVTN_U): New.
2872 (UNSPEC_VCVTP_S): New.
2873 (UNSPEC_VCVTP_U): New.
2874 (UNSPEC_VCVTP_S): New.
2875 (UNSPEC_VCVTP_U): New.
2877 (UNSPEC_VRNDA): New.
2878 (UNSPEC_VRNDI): New.
2879 (UNSPEC_VRNDM): New.
2880 (UNSPEC_VRNDN): New.
2881 (UNSPEC_VRNDP): New.
2882 (UNSPEC_VRNDX): New.
2883 * config/arm/vfp.md (<absneg_str>hf2): New.
2885 (neon_v<fp16_rnd_str>hf): New.
2886 (neon_vrndihf): New.
2891 (*mulsf3neghf_vfp): New.
2892 (*negmulhf3_vfp): New.
2893 (*mulsf3addhf_vfp): New.
2894 (*mulhf3subhf_vfp): New.
2895 (*mulhf3neghfaddhf_vfp): New.
2896 (*mulhf3neghfsubhf_vfp): New.
2899 (fmsubhf4_fp16): New.
2903 (neon_vsqrthf): New.
2904 (neon_vrsqrtshf): New.
2905 (FCVT): Move to iterators.md.
2906 (FCVTI32typename): Likewise.
2907 (neon_vcvth<sup>hf): New.
2908 (neon_vcvth<sup>si): New.
2909 (neon_vcvth<sup>_nhf_unspec): New.
2910 (neon_vcvth<sup>_nhf): New.
2911 (neon_vcvth<sup>_nsi_unspec): New.
2912 (neon_vcvth<sup>_nsi): New.
2913 (neon_vcvt<vcvth_op>h<sup>si): New.
2914 (neon_<fmaxmin_op>hf): New.
2916 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2918 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2919 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2920 ("*insv<mode>_zEC12_appendbitsleft")
2921 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2922 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2924 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2926 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2927 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2928 construct values without normalization.
2929 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2930 static local lhs_ops to vNULL.
2932 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2933 Jiong Wang <jiong.wang@arm.com>
2935 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2936 available when FP16 instructions are available.
2937 (output_move_vfp): Add support for 16-bit data moves.
2938 (arm_validize_comparison): Fix some white-space. Support HFmode
2939 by conversion to SFmode.
2940 * config/arm/arm.md (truncdfhf2): Fix a comment.
2941 (extendhfdf2): Likewise.
2943 (movsicc): Fix some white-space.
2945 (movsfcc): Fix some white-space.
2947 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2948 instructions are available.
2949 (*thumb2_movhi_vfp): Likewise.
2950 (*arm_movhi_fp16): New.
2951 (*thumb2_movhi_fp16): New.
2952 (*movhf_vfp_fp16): New.
2953 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2954 (*movhf_vfp): Likewise.
2955 (extendhfsf2): Enable when VFP FP16 instructions are available.
2956 (truncsfhf2): Enable when VFP FP16 instructions are available.
2958 2016-09-23 Martin Liska <mliska@suse.cz>
2960 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2962 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2964 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2966 (arm_evpc_neon_vtrn): Likewise.
2967 (arm_evpc_neon_vrev): Likewise.
2968 (arm_evpc_neon_vext): Likewise.
2969 * config/arm/arm_neon.h (vbsl_f16): New.
2973 (vdup_lane_f16): New.
2974 (vdupq_lane_f16): New.
2987 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2988 (vdup_lane): New (v8hf, v4hf variants).
2989 (vext): New (v8hf, v4hf variants).
2990 (vbsl): New (v8hf, v4hf variants).
2991 * config/arm/iterators.md (VDQWH): New.
2993 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
2994 (Scalar_mul_8_16): Fix white-space.
2995 (Is_d_reg): Add V4HF and V8HF.
2996 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2997 (neon_vdup_lane<mode>): New.
2998 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2999 (*neon_vtrn<mode>_insn): Likewise.
3000 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3001 (*neon_vzip<mode>_insn): Likewise
3002 (neon_vuzp<mode>_internal): Likewise.
3003 (*neon_vuzp<mode>_insn): Likewise
3004 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3006 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3007 Matthew Wahab <matthew.wahab@arm.com>
3009 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3010 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3011 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3012 available. Also fix some white-space.
3013 * config/arm/vfp.md (*arm_movhi_vfp): New.
3014 (*thumb2_movhi_vfp): New.
3016 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3018 * config/arm/arm-c.c (arm_cpu_builtins): Define
3019 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3020 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3022 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3024 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3025 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3026 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3027 arm_v8_2a_fp16_neon_hw.
3028 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3031 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3033 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3034 arm_fp16_alternative_ok and arm_fp16_none_ok.
3036 2016-09-23 Martin Liska <mliska@suse.cz>
3038 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3040 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3042 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3044 ("armv8.2-a+fp16"): New.
3045 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3046 (FL2_FP16INST): New.
3047 (FL2_FOR_ARCH8_2A): New.
3048 * config/arm/arm-tables.opt: Regenerate.
3049 * config/arm/arm.c (arm_arch8_2): New.
3050 (arm_fp16_inst): New.
3051 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3052 for incompatible fp16-format settings.
3053 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3054 (TARGET_NEON_FP16INST): New.
3055 (arm_arch8_2): Declare.
3056 (arm_fp16_inst): Declare.
3057 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3058 march=armv8.2-a and march=armv8.2-a+fp16.
3059 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3061 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3062 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3064 2016-09-23 Martin Liska <mliska@suse.cz>
3066 * doc/extend.texi: Remove fused-madd from i386 target options.
3068 2016-09-23 Martin Liska <mliska@suse.cz>
3070 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3073 2016-09-23 Martin Liska <mliska@suse.cz>
3075 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3078 2016-09-23 Martin Liska <mliska@suse.cz>
3081 * config/i386/i386.c (ix86_option_override_internal): Change
3082 signature and return false when there's an error related to
3084 (release_options_strings): New function.
3085 (ix86_valid_target_attribute_tree): Call the function.
3087 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3089 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3090 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3091 (gen_hsa_ctor_assignment): Likewise.
3092 * print-tree.c (print_node): Likewise.
3093 * tree-dump.c (dequeue_and_dump): Likewise.
3094 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3095 * expr.c (store_constructor): Likewise.
3096 * fold-const.c (operand_equal_p): Likewise.
3097 * tree-pretty-print.c (dump_generic_node): Likewise.
3098 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3099 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3101 2016-09-23 Richard Biener <rguenther@suse.de>
3103 * hooks.h (hook_uint_uintp_false): Declare.
3105 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3107 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3108 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3110 2016-09-22 Martin Sebor <msebor@redhat.com>
3113 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3114 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3115 (target_int_min): Correct computation.
3116 (format_integer): Use long long as the argument for the ll length
3118 (format_floating): Use target_int_max().
3119 (get_string_length): Same.
3120 (format_string): Avoid setting the bounded flag for strings
3122 (try_substitute_return_value): Avoid setting range info when
3123 the result isn't bounded.
3124 * varasm.c (assemble_name): Increase buffer size.
3126 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3127 Terry Guo <terry.guo@arm.com>
3129 * target.def (elf_flags_numeric): New target hook.
3130 * targhooks.h (default_asm_elf_flags_numeric): New.
3131 * varasm.c (default_asm_elf_flags_numeric): New.
3132 (default_elf_asm_named_section): Use new target hook.
3133 * config/arm/arm.opt (mpure-code): New.
3134 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3135 * config/arm/arm.c (arm_asm_init_sections): Add section
3136 attribute to default text section if -mpure-code.
3137 (arm_option_check_internal): Diagnose use of option with
3138 non supported targets and/or options.
3139 (arm_asm_elf_flags_numeric): New.
3140 (arm_function_section): New.
3141 (arm_elf_section_type_flags): New.
3142 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3144 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3145 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3147 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3149 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3151 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3153 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3154 * rtl.h: Adjust prototype.
3156 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3158 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3159 (prev_active_insn): Likewise.
3160 (active_insn_p): Likewise.
3161 * rtl.h: Adjust prototypes.
3162 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3163 * config/arc/arc.md: Likewise.
3164 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3165 (branch_needs_nop_p): Likewise.
3166 (use_skip_p): Likewise.
3167 * config/sh/sh.c (gen_block_redirect): Likewise.
3168 (split_branches): Likewise.
3169 * reorg.c (optimize_skip): Likewise.
3170 (fill_simple_delay_slots): Likewise.
3171 (fill_slots_from_thread): Likewise.
3172 (relax_delay_slots): Likewise.
3173 * resource.c (mark_target_live_regs): Likewise.
3175 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3177 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3179 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3180 (prev_nonnote_nondebug_insn): Likewise.
3181 * config/cris/cris-protos.h: Adjust prototype.
3183 * jump.c (rtx_renumbered_equal_p): Adjust.
3185 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3187 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3188 * rtl.h: Adjust prototype.
3189 * config/sh/sh.md: Adjust.
3190 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3192 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3194 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3195 (prev_nondebug_insn): Likewise.
3196 * loop-doloop.c (doloop_condition_get): Likewise.
3197 * rtl.h: Adjust prototype.
3198 * cfgloop.h: Likewise.
3200 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3202 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3203 (prev_nonnote_insn): Likewise.
3204 * jump.c (reversed_comparison_code_parts): Likewise.
3205 (reversed_comparison): Likewise.
3206 * rtl.h: Adjust prototypes.
3207 * config/arc/arc.md: Adjust.
3208 * cse.c (find_comparison_args): Likewise.
3209 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3210 (fix_reg_dead_note): Change argument type to rtx_insn *.
3211 (delete_prior_computation): Likewise.
3212 (delete_computation): Likewise.
3213 (fill_slots_from_thread): Adjust.
3214 (relax_delay_slots): Likewise.
3215 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3216 (simplify_relational_operation_1): Likewise.
3217 (simplify_ternary_operation): Likewise.
3219 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3221 * config/arc/arc-protos.h (arc_label_align): Change type of
3222 variables from rtx to rtx_insn *.
3223 * config/arc/arc.c (arc_label_align): Likewise.
3224 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3225 * config/bfin/bfin.c (workaround_speculation): Likewise.
3226 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3227 (find_last_same_clock): Likewise.
3228 (reorg_split_calls): Likewise.
3229 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3230 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3231 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3232 (same_cmp_following_p): Likewise.
3233 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3234 (same_cmp_following_p): Likwise.
3235 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3236 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3237 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3238 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3239 (rl78_alloc_physical_registers_cmp): Likewise.
3240 (rl78_alloc_physical_registers_umul): Likewise.
3241 (rl78_calculate_death_notes): Likewise.
3242 * config/s390/s390-protos.h (s390_label_align): Likewise.
3243 * config/s390/s390.c (s390_label_align): Likewise.
3244 * config/sh/sh.c (barrier_align): Likewise.
3245 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3246 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3247 (emit_cbcond_nop): Likewise.
3249 2016-09-22 Martin Liska <mliska@suse.cz>
3252 * ipa-icf.c (sem_variable::merge): Yield merge operation if
3253 alias address matters, not necessarily address of original.
3255 2016-09-22 Richard Biener <rguenther@suse.de>
3258 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3261 2016-09-22 Richard Biener <rguenther@suse.de>
3264 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3265 from constant folding results.
3266 (gimple_resimplify2): Likewise.
3267 (gimple_resimplify3): Likewise.
3269 2016-09-22 Richard Biener <rguenther@suse.de>
3272 * expr.c (expand_expr_real_1): Guard array access against negative
3275 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3277 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
3279 (format_floating): Likewise.
3281 2016-09-22 Jakub Jelinek <jakub@redhat.com>
3284 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
3285 for all IFN_GOMP_SIMD_* internal fns, not just for
3286 IFN_GOMP_SIMD_ORDERED_*.
3288 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3291 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
3292 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
3293 instructions when you want to invert the test.
3294 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
3295 correct order for XXSEL.
3296 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
3297 for using XSCMP{EQ,GT,GE}DP.
3299 2016-09-21 David Malcolm <dmalcolm@redhat.com>
3301 * genconstants.c (main): Introduce noop_reader and convert call
3302 to read_md_files to a method call.
3303 * genenums.c (main): Likewise.
3304 * genmddeps.c (main): Likewise.
3305 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
3306 rtx_reader_ptr->get_top_level_filename ().
3307 (write_tm_preds_h): Likewise.
3308 (write_insn_preds_c): Likewise.
3309 * gensupport.c (class gen_reader): New subclass of rtx_reader.
3310 (rtx_handle_directive): Convert to...
3311 (gen_reader::handle_unknown_directive): ...this.
3312 (init_rtx_reader_args_cb): Convert return type from bool to
3313 rtx_reader *. Create a gen_reader instance, using it for the
3314 call to read_md_files. Return it if no errors occur.
3315 (init_rtx_reader_args): Convert return type from bool to
3317 * gensupport.h (init_rtx_reader_args_cb): Likewise.
3318 (init_rtx_reader_args_cb): Likewise.
3319 * read-md.c (struct file_name_list): Move to class rtx_reader.
3320 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
3321 (read_md_filename): Delete in favor of
3322 rtx_reader::m_read_md_filename.
3323 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
3324 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
3325 (base_dir): Delete in favor of rtx_reader::m_base_dir.
3326 (first_dir_md_include): Delete in favor of
3327 rtx_reader::m_first_dir_md_include.
3328 (last_dir_md_include_ptr): Delete in favor of
3329 rtx_reader::m_last_dir_md_include_ptr.
3330 (max_include_len): Delete.
3331 (rtx_reader_ptr): New.
3332 (fatal_with_file_and_line): Use get_filename and get_lineno
3333 accessors of rtx_reader_ptr.
3334 (require_char_ws): Likewise.
3335 (rtx_reader::read_char): New method, based on ::read_char.
3336 (rtx_reader::unread_char): New method, based on ::unread_char.
3337 (read_escape): Use get_filename and get_lineno accessors of
3339 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
3340 (read_string): Use get_filename and get_lineno accessors of
3342 (rtx_reader::rtx_reader): New ctor.
3343 (rtx_reader::~rtx_reader): New dtor.
3344 (handle_include): Convert from a function to...
3345 (rtx_reader::handle_include): ...this method, converting
3346 handle_directive from a callback to a virtual function.
3347 (handle_file): Likewise, converting to...
3348 (rtx_reader::handle_file): ...this method.
3349 (handle_toplevel_file): Likewise, converting to...
3350 (rtx_reader::handle_toplevel_file): ...this method.
3351 (rtx_reader::get_current_location): New method.
3352 (parse_include): Convert from a function to...
3353 (rtx_reader::add_include_path): ...this method, dropping redundant
3354 update to unused max_include_len.
3355 (read_md_files): Convert from a function to...
3356 (rtx_reader::read_md_files): ...this method, converting
3357 handle_directive from a callback to a virtual function.
3358 (noop_reader::handle_unknown_directive): New method.
3359 * read-md.h (directive_handler_t): Delete this typedef.
3361 (read_md_file): Delete.
3362 (read_md_lineno): Delete.
3363 (read_md_filename): Delete.
3364 (class rtx_reader): New class.
3365 (rtx_reader_ptr): New decl.
3366 (class noop_reader): New subclass of rtx_reader.
3367 (read_char): Reimplement in terms of rtx_reader::read_char.
3368 (unread_char): Reimplement in terms of rtx_reader::unread_char.
3369 (read_md_files): Delete.
3370 * read-rtl.c (read_rtx_code): Update for deletion of globals
3371 read_md_filename and read_md_lineno.
3373 2016-09-21 Jason Merrill <jason@redhat.com>
3375 * input.h (from_macro_definition_at): New.
3377 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3379 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
3381 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3383 PR tree-optimization/77550
3384 * tree-vect-stmts.c (create_array_ref): Change parameters.
3385 (get_group_alias_ptr_type): New function.
3386 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
3388 2016-09-21 Marek Polacek <polacek@redhat.com>
3390 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
3391 Add falls through comment.
3393 2016-09-21 Richard Biener <rguenther@suse.de>
3395 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
3396 (replace_child): Likewise.
3397 (remove_child_TAG): Adjust.
3398 (move_marked_base_types): Likewise.
3399 (prune_unused_types_prune): Clear die_sib of removed children.
3401 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
3404 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
3405 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3407 2016-09-21 Richard Biener <rguenther@suse.de>
3409 PR tree-optimization/77648
3410 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3412 (make_transitive_closure_constraints): Adjust comment.
3413 (make_any_offset_constraints): New function.
3414 (handle_rhs_call): Make sure to first expand a pointer to all
3415 subfields before transitively closing it.
3416 (handle_const_call): Likewise. Properly expand returned
3418 (handle_pure_call): Likewise.
3420 2016-09-21 Richard Biener <rguenther@suse.de>
3421 Jakub Jelinek <jakub@redhat.com>
3423 PR tree-optimization/77621
3424 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3425 group at non-vectorizable stmts.
3427 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3429 PR tree-optimization/72835
3430 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3431 (make_new_ssa_for_all_defs): Likewise.
3432 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3434 2016-09-20 Martin Sebor <msebor@redhat.com>
3437 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3438 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3439 * config/linux.c (gnu_libc_printf_pointer_format): New function.
3440 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3441 * config/sol2.c (solaris_printf_pointer_format): New function.
3442 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3444 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3445 * doc/tm.texi: Regenerate.
3446 * gimple-fold.h (get_range_strlen): New function.
3447 (get_maxval_strlen): Declare existing function.
3448 * gimple-fold.c (get_range_strlen): Add arguments and compute both
3449 maximum and minimum.
3450 (get_range_strlen): Define overload.
3451 (get_maxval_strlen): Adjust.
3452 * gimple-ssa-sprintf.c: New file and pass.
3453 * passes.def (pass_sprintf_length): Add new pass.
3454 * targhooks.h (default_printf_pointer_format): Declare new function.
3455 (gnu_libc_printf_pointer_format): Same.
3456 (solaris_libc_printf_pointer_format): Same.
3457 * targhooks.c (default_printf_pointer_format): Define new function.
3458 * tree-pass.h (make_pass_sprintf_length): Declare new function.
3459 * print-tree.c: Increase buffer size.
3461 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3463 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3465 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3467 * common.opt: New option -fipa-vrp.
3468 * ipa-cp.c (ipa_get_vr_lat): New.
3469 (ipcp_vr_lattice::print): Likewise.
3470 (print_all_lattices): Call ipcp_vr_lattice::print.
3471 (ipcp_vr_lattice::meet_with): New.
3472 (ipcp_vr_lattice::meet_with_1): Likewise.
3473 (ipcp_vr_lattice::top_p): Likewise.
3474 (ipcp_vr_lattice::bottom_p): Likewsie.
3475 (ipcp_vr_lattice::set_to_bottom): Likewise.
3476 (set_all_contains_variable): Call VR set_to_bottom.
3477 (initialize_node_lattices): Init VR lattices.
3478 (propagate_vr_accross_jump_function): New.
3479 (propagate_constants_accross_call): Call
3480 propagate_vr_accross_jump_function.
3481 (ipcp_store_vr_results): New.
3482 (ipcp_driver): Handle VR.
3483 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3484 (ipa_set_jf_unknown): Likewise.
3485 (ipa_compute_jump_functions_for_edge): Likewise.
3486 (ipa_node_params_t::duplicate): Likewise.
3487 (ipa_write_jump_function): Likewise.
3488 (ipa_read_jump_function): Likewise.
3489 (write_ipcp_transformation_info): Likewise.
3490 (read_ipcp_transformation_info): Likewise.
3491 (ipcp_update_vr): New.
3492 (ipcp_transform_function): Handle VR.
3493 * ipa-prop.h (struct ipa_vr): New.
3494 * cgraph.c: Include tree-vrp.h.
3495 * cgraphunit.c: Likewise.
3496 * ipa-utils.c: Likewise.
3499 * toplev.c: Likewise.
3500 * ipa-devirt.c: Likewise.
3501 * ipa-inline-transform.c: Likewise.
3502 * ipa-inline.c: Likewise.
3503 * ipa-profile.c: Likewise.
3505 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3507 * doc/invoke.texi: Document -fdump-tree-evrp.
3508 * passes.def: Define new pass_early_vrp.
3509 * timevar.def: Define new TV_TREE_EARLY_VRP.
3510 * tree-pass.h (make_pass_early_vrp): New.
3511 * tree-ssa-propagate.c: Make replace_uses_in non static.
3512 * tree-ssa-propagate.h: Export replace_uses_in.
3513 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3514 (extract_range_from_assert): Factor out
3515 extract_range_for_var_from_comparison_expr.
3516 (vrp_initialize_lattice): New.
3517 (vrp_initialize): Factor out vrp_initialize_lattice.
3518 (vrp_valueize): Fix it to reject complex value ranges.
3519 (vrp_free_lattice): New.
3520 (evrp_dom_walker::before_dom_children): Likewise.
3521 (evrp_dom_walker::after_dom_children): Likewise.
3522 (evrp_dom_walker::push_value_range): Likewise.
3523 (evrp_dom_walker::pop_value_range): Likewise.
3524 (execute_early_vrp): Likewise.
3525 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3526 (make_pass_early_vrp): New.
3528 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3530 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3531 instead of exact_log2.
3533 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3536 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3537 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3538 (ix86_add_stmt_cost): Penalize DFmode vector operations
3539 for !TARGET_VECTORIZE_DOUBLE.
3541 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
3543 * doc/invoke.texi (Warning Options): Simplify language.
3544 (Optimize Options): Complete sentence.
3546 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
3548 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
3551 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3554 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3555 inits on power8 and above, use the VMRGEW instruction instead of a
3558 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3559 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3562 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3564 * config/aarch64/arm_neon.h
3565 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3566 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3567 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3569 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3571 * config/var/vax.h (ELIMINABLE_REGS): Define.
3572 (INITIAL_ELIMINATION_OFFSET): Define.
3574 2016-09-20 Jakub Jelinek <jakub@redhat.com>
3577 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3578 cast to void * if the cast is from some other pointer type.
3580 2016-09-20 Richard Biener <rguenther@suse.de>
3582 PR tree-optimization/77646
3583 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3586 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3588 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3589 attributes to all inlined functions and make them extern.
3591 2016-09-20 Richard Biener <rguenther@suse.de>
3593 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3595 * debug.c (do_nothing_debug_hooks): Adjust.
3596 * dbxout.c (dbx_debug_hooks): Likewise.
3597 * sdbout.c (sdb_debug_hooks): Likewise.
3598 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3599 (dwarf2out_finish): Move producer, filename and
3601 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
3602 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3604 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3607 * doc/invoke.texi: Document -Wint-in-bool-context.
3610 * dwarf2out.c (output_loc_operands): Fix an assertion.
3612 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3614 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3615 (CR_DECIMAL_DIG): New macro.
3617 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3619 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3622 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
3624 PR rtl-optimization/77416
3625 * lra-remat.c (operand_to_remat): Process hard coded insn
3628 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3630 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3631 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3633 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3635 * target.def (lra_p): Wordsmithing.
3636 * doc/tm.texi: Regenerate.
3638 2016-09-19 Jakub Jelinek <jakub@redhat.com>
3639 Jan Hubicka <jh@suse.cz>
3642 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3643 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3644 Call ultimate_alias_target just once, not up to 4 times.
3646 2016-09-19 Richard Biener <rguenther@suse.de>
3648 * dwarf2out.c (early_dwarf_finished): New global.
3649 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3651 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3652 if called from LTO exit early.
3653 (dwarf2out_late_global_decl): When being during the early
3654 debug phase do not add locations but only const value attributes.
3655 Adjust the way we generate early DIEs for LTO.
3657 2016-09-19 Richard Biener <rguenther@suse.de>
3660 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3661 proper niter to bound the loops.
3663 2016-09-19 Richard Biener <rguenther@suse.de>
3665 PR tree-optimization/77514
3666 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3667 search for folded stmt.
3669 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
3671 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3672 * tree-pass.h (make_pass_early_thread_jumps): Declare.
3673 * tree-ssa-threadbackward.c (fsm_find_thread_path,
3674 fsm_find_thread_path, profitable_jump_thread_path,
3675 fsm_find_control_statement_thread_paths,
3676 find_jump_threads_backwards): Add speed_p parameter.
3677 (pass_data_early_thread_jumps): New pass.
3678 (make_pass_early_thread_jumps): New function.
3680 2016-09-17 Andreas Schwab <schwab@suse.de>
3682 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3683 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3685 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
3687 * recog.c (rest_of_handle_split_after_reload): Delete.
3688 (pass_split_after_reload::gate): New method.
3689 (pass_split_after_reload::execute): Call split_all_insns directly.
3691 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
3693 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3694 parameters for functions taking long long arguments.
3696 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3699 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3700 splat with truncate.
3702 2016-09-16 Jason Merrill <jason@redhat.com>
3704 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3706 * hwint.c (exact_log2): Use pow2p_hwi.
3707 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3708 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3709 * builtins.c (get_object_alignment_2, get_object_alignment)
3710 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3712 * calls.c (compute_argument_addresses, store_one_arg): Use
3714 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3715 * combine.c (force_to_mode): Use least_bit_hwi.
3716 (contains_muldiv, find_split_point, combine_simplify_rtx)
3717 (simplify_if_then_else, simplify_set, force_to_mode)
3718 (if_then_else_cond, simplify_and_const_int_1)
3719 (simplify_compare_const): Use pow2p_hwi.
3720 * cse.c (fold_rtx): Use pow2p_hwi.
3721 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3723 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3724 (init_expmed_one_conv): Use pow2p_hwi.
3725 * expr.c (is_aligning_offset): Use pow2p_hwi.
3726 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3727 (fold_binary_loc): Use pow2p_hwi.
3728 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3729 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3730 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3731 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3733 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3734 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3735 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3736 * omp-low.c (oacc_loop_fixed_partitions)
3737 (oacc_loop_auto_partitions): Use least_bit_hwi.
3738 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3739 * stor-layout.c (place_field): Use least_bit_hwi.
3740 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3741 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3742 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3743 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3744 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3745 * tree-vect-data-refs.c (vect_analyze_group_access_1)
3746 (vect_grouped_store_supported, vect_grouped_load_supported)
3747 (vect_permute_load_chain, vect_shift_permute_load_chain)
3748 (vect_transform_grouped_load): Use pow2p_hwi.
3749 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3750 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3751 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3753 * tsan.c (instrument_expr): Use least_bit_hwi.
3754 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3756 2016-09-16 Andreas Schwab <schwab@suse.de>
3758 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3760 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3762 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3765 * combine.c (rest_of_handle_combine): If any edges have been purged,
3766 free dominators if available.
3768 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3769 Eric Botcazou <ebotcazou@adacore.com>
3772 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3773 through into expand_addsub_overflow after expand_neg_overflow.
3775 2016-09-15 David Malcolm <dmalcolm@redhat.com>
3777 * diagnostic-show-locus.c
3778 (selftest::test_fixit_insert_containing_newline): New function.
3779 (selftest::test_fixit_replace_containing_newline): New function.
3780 (selftest::diagnostic_show_locus_c_tests): Call the above.
3782 2016-09-15 Bin Cheng <bin.cheng@arm.com>
3784 PR tree-optimization/77503
3785 * tree-vect-loop.c (vectorizable_reduction): Record reduction
3786 code for CONST_COND_REDUCTION at analysis stage and use it at
3788 * tree-vectorizer.h (struct _stmt_vec_info): New field.
3789 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3790 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3793 2016-09-15 Richard Biener <rguenther@suse.de>
3796 * fold-const.c (split_tree): Do not split constant ~X.
3798 2016-09-15 Jakub Jelinek <jakub@redhat.com>
3800 PR rtl-optimization/77425
3801 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3805 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3806 use %qs instead of %s where desirable, use argument instead of arg in
3807 the diagnostic wording, add list of supported strategies and
3809 (ix86_option_override_internal): Emit target("m...") instead of
3810 option("m...") in the diagnostic. Use %qs instead of %s in invalid
3811 -march/-mtune option diagnostic. Add list of supported arches/tunings
3812 and spellcheck hint. Remove prefix, suffix and sw variables, use
3813 main_args_p ? "..." : "..." in diagnostics to make translation
3816 2016-09-15 Richard Biener <rguenther@suse.de>
3818 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3819 extra offset argument.
3820 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3821 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3822 to reflect new offset parameter.
3823 * doc/tm.texi: Regenerate.
3824 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3825 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3827 (darwin_asm_output_dwarf_offset): Likewise.
3828 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3830 (darwin_asm_output_dwarf_offset): Pass offset argument through.
3831 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3832 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3834 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
3837 * ipa-icf.c (set_alias_uids): New function.
3838 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3839 all the merged variable's referring aliases.
3841 2016-09-15 Richard Biener <rguenther@suse.de>
3843 PR tree-optimization/77514
3844 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3845 only forced_stmts sequence.
3847 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
3849 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3850 * cfgexpand.c (update_alias_info_with_stack_vars): Use
3851 FOR_EACH_SSA_NAME to iterate over SSA variables.
3852 (pass_expand::execute): Likewise.
3853 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3854 * tree-cfg.c (dump_function_to_file): Likewise.
3855 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3856 (update_ssa): Likewise.
3857 * tree-ssa-alias.c (dump_alias_info): Likewise.
3858 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3859 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3860 (create_outofssa_var_map): Likewise.
3861 (coalesce_ssa_name): Likewise.
3862 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3863 * tree-ssa-pre.c (compute_avail): Likewise.
3864 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3865 (scc_vn_restore_ssa_info): Likewise.
3866 (free_scc_vn): Likwise.
3867 (run_scc_vn): Likewise.
3868 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3869 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3870 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3871 * tree-ssa.c (verify_ssa): Likewise.
3873 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
3875 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3876 and mips64r2 as default 32-bit and 64-bit architectures.
3877 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3878 as default 32-bit and 64-bit architectures.
3880 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
3882 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3885 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3887 * target.def (lra_p): Change commentary (for the manual) for the
3889 * doc/tm.texi: Regenerate.
3891 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3893 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3894 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3895 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3896 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3898 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3900 * targhooks.c (default_lra_p): Return true instead of false.
3902 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3904 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3905 hook_bool_void_false.
3906 * config/avr/avr.c: Ditto.
3907 * config/bfin/bfin.c: Ditto.
3908 * config/c6x/c6x.c: Ditto.
3909 * config/cr16/cr16.c: Ditto.
3910 * config/cris/cris.c: Ditto.
3911 * config/epiphany/epiphany.c: Ditto.
3912 * config/fr30/fr30.c: Ditto.
3913 * config/frv/frv.c: Ditto.
3914 * config/h8300/h8300.c: Ditto.
3915 * config/ia64/ia64.c: Ditto.
3916 * config/iq2000/iq2000.c: Ditto.
3917 * config/lm32/lm32.c: Ditto.
3918 * config/m32c/m32c.c: Ditto.
3919 * config/m32r/m32r.c: Ditto.
3920 * config/m68k/m68k.c: Ditto.
3921 * config/mcore/mcore.c: Ditto.
3922 * config/microblaze/microblaze.c: Ditto.
3923 * config/mmix/mmix.c: Ditto.
3924 * config/mn10300/mn10300.c: Ditto.
3925 * config/moxie/moxie.c: Ditto.
3926 * config/msp430/msp430.c: Ditto.
3927 * config/nios2/nios2.c: Ditto.
3928 * config/nvptx/nvptx.c: Ditto.
3929 * config/pa/pa.c: Ditto.
3930 * config/pdp11/pdp11.c: Ditto.
3931 * config/rl78/rl78.c: Ditto.
3932 * config/sparc/sparc.c: Ditto.
3933 * config/spu/spu.c: Ditto.
3934 * config/stormy16/stormy16.c: Ditto.
3935 * config/tilegx/tilegx.c: Ditto.
3936 * config/tilepro/tilepro.c: Ditto.
3937 * config/v850/v850.c: Ditto.
3938 * config/vax/vax.c: Ditto.
3939 * config/visium/visium.c: Ditto.
3940 * config/xtensa/xtensa.c: Ditto.
3942 2016-09-14 Jakub Jelinek <jakub@redhat.com>
3945 * tsan.c: Include target.h.
3946 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3947 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3948 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3949 BUILT_IN_ATOMIC_TEST_AND_SET entries.
3950 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3952 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3953 Martin Liska <mliska@suse.cz>
3956 * predict.c (force_edge_cold): Add braces to a condition.
3958 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3960 PR rtl-optimization/77289
3961 * lra-constraints.c (get_final_hard_regno): Removed.
3962 (get_hard_regno): Add new parameter final_p.
3963 (get_reg_class): Directly call lra_get_elimination_hard_regno.
3964 (operands_match_p): Adjust call to get_hard_regno.
3965 (uses_hard_regs_p): Likewise.
3966 (process_alt_operands): Likewise.
3968 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
3971 * config/msp430/msp430.c (msp430_start_function): Emit an error
3972 if a function is both weak and specifies an interrupt number.
3974 2016-09-13 Jakub Jelinek <jakub@redhat.com>
3976 PR tree-optimization/77454
3977 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3978 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
3981 2016-09-13 Tamar Christina <tamar.christina@arm.com>
3983 * config/aarch64/aarch64-builtins.c
3984 (aarch64_init_simd_builtins): Fix builtin type signature printing.
3986 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
3988 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3989 SFmode and SCmode arguments by reference.
3991 2016-09-13 David Malcolm <dmalcolm@redhat.com>
3993 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3995 (selftest::test_one_liner_fixit_insert_before): ...this, and update
3996 for renaming of add_fixit_insert to add_fixit_insert_before.
3997 (selftest::test_one_liner_fixit_insert_after): New function.
3998 (selftest::test_one_liner_fixit_validation_adhoc_locations):
3999 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4000 (selftest::test_one_liner_many_fixits): Likewise.
4001 (selftest::test_diagnostic_show_locus_one_liner): Update for
4002 renaming, call new test function.
4003 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4004 renaming of add_fixit_insert to add_fixit_insert_before.
4005 (selftest::test_fixit_consolidation): Likewise.
4006 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4008 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4009 (selftest::test_applying_fixits_insert_before): ...this.
4010 (selftest::test_applying_fixits_insert): Update for renaming of
4011 add_fixit_insert to add_fixit_insert_before.
4012 (selftest::test_applying_fixits_insert_after): New function.
4013 (selftest::test_applying_fixits_insert_after_at_line_end): New
4015 (selftest::test_applying_fixits_insert_after_failure): New function.
4016 (selftest::test_applying_fixits_multiple): Update for renaming of
4017 add_fixit_insert to add_fixit_insert_before.
4018 (selftest::change_line): Likewise.
4019 (selftest::test_applying_fixits_unreadable_file): Likewise.
4020 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4021 (selftest::test_applying_fixits_column_validation): Likewise.
4022 (selftest::test_applying_fixits_column_validation): Likewise.
4023 (selftest::edit_context_c_tests): Update for renamed test function;
4024 call new test functions.
4026 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4028 PR tree-optimization/77536
4029 PR rtl-optimization/68212
4030 * config/rs6000/rs6000.md (div->recip splitter): Remove
4031 optimize_insn_for_speed_p condition.
4033 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4035 * optabs.c (prepare_cmp_insn): Update documentation comment.
4037 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4038 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4041 * opts.h (candidates_list_and_hint): Declare.
4042 * opts-common.c (candidates_list_and_hint): New function.
4043 (cmdline_handle_error): Use it.
4045 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4047 * edit-context.c (edited_line::get_len): New accessor.
4048 (edited_file::print_diff): Split out hunk-printing into...
4049 (edited_file::print_diff_hunk): New method.
4050 (edited_file::print_diff_line): New method.
4052 2016-09-12 Andrew Pinski <apinski@cavium.com>
4054 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4056 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4057 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4058 (aarch64_operands_ok_for_ldpstp): Return false if
4059 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4060 was SImode and the alignment is less than 8 byte.
4061 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4063 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4066 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4068 2016-09-12 Marek Polacek <polacek@redhat.com>
4070 * doc/extend.texi: Use lowercase "boolean".
4071 * doc/invoke.texi: Likewise.
4072 * doc/md.texi: Likewise.
4073 * target.def: Likewise.
4074 * doc/tm.texi: Regenerated.
4076 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4079 * expmed.c (synth_mult): Delete duplicate mode check.
4081 2016-09-10 Tom de Vries <tom@codesourcery.com>
4084 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4086 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4087 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4089 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4091 PR rtl-optimization/77289
4092 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4093 register numbers. Remove support for subregs.
4094 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4095 (get_reg_class): Delete removed get_final_hard_regno() argument.
4096 (uses_hard_regs_p): Call get_final_hard_regno().
4098 2016-09-09 Martin Sebor <msebor@redhat.com>
4102 * pretty-print.c (pp_quoted_string): New function.
4103 (pp_format): Call it for %c and %s directives.
4105 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4107 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4108 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4109 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4110 * target.def (frame_pointer_required, can_eliminate): Likewise.
4111 * doc/tm.texi: Regenerated.
4112 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4114 * df-scan.c (df_hard_reg_init): Likewise.
4115 * ira.c (ira_setup_eliminable_regset): Likewise.
4116 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4117 init_elim_table): Likewise.
4118 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4119 set_initial_elim_offsets, update_eliminables,
4120 init_elim_table): Likewise.
4121 * rtlanal.c (get_initial_register_offset): Likewise.
4122 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4123 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4124 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4125 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4126 * config/fr30/fr30.h: Fix comment.
4127 * config/frv/frv.c: Likewise.
4128 * config/frv/frv.h: Likewise.
4129 * config/ft32/ft32.h: Likewise.
4130 * config/visium/visium.h: Likewise.
4131 * config/pa/pa64-linux.h: Likewise.
4132 * config/v850/v850.h: Likewise.
4133 * config/cris/cris.c: Likewise.
4134 * config/ia64/ia64.h: Likewise.
4135 * config/moxie/moxie.h: Likewise.
4136 * config/m32r/m32r.h: Likewise.
4138 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4141 * config.in: Regenerate.
4142 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4144 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4145 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4146 static-libmpxwrappers case.
4147 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4148 MPX_LD_AS_NEEDED_GUARD_POP.
4149 * configure: Regenerate.
4150 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4151 defined if linker support "--push-state"/"--pop-state".
4153 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4155 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4157 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4159 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4160 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4161 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4162 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4163 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4164 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4165 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4167 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4168 width macros from TS 18661-1.
4169 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4171 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4174 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4175 OMP_CLAUSE_SAFELEN_EXPR.
4177 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4179 * Makefile.in (OBJS): Add substring-locations.o.
4180 * langhooks-def.h (class substring_loc): New forward decl.
4181 (lhd_get_substring_location): New decl.
4182 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4183 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4184 * langhooks.c (lhd_get_substring_location): New function.
4185 * langhooks.h (class substring_loc): New forward decl.
4186 (struct lang_hooks): Add field get_substring_location.
4187 * substring-locations.c: New file, taking definition of
4188 format_warning_va and format_warning_at_substring from
4189 c-family/c-format.c, making them non-static.
4190 * substring-locations.h (class substring_loc): Move class here
4191 from c-family/c-common.h. Add and rewrite comments.
4192 (format_warning_va): New decl.
4193 (format_warning_at_substring): New decl.
4194 (get_source_location_for_substring): Add comment.
4196 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4198 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4199 to avoid -Wnarrowing warning.
4200 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4201 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4203 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4205 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4206 Avoid use of base_offset if offset already in range.
4208 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4210 * config/sh/sh-protos.h (struct sh_atomic_model,
4211 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4212 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4213 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4214 * config/sh/sh.h (struct sh_atomic_model,
4215 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4216 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4217 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4218 Guard with __cplusplus.
4220 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4223 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4224 unsupported or unknown ISA, use expand_call.
4226 2016-09-06 Martin Liska <mliska@suse.cz>
4228 PR gcov-profile/77378
4229 PR gcov-profile/77466
4230 * tree-profile.c (tree_profiling): Detect whether target can use
4231 -fprofile-update=atomic.
4233 2016-09-06 Richard Biener <rguenther@suse.de>
4235 PR tree-optimization/77479
4236 * tree-vrp.c (update_value_range): Extend overflow handling to
4239 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4242 * config/i386/i386.md (isa): Add x64_avx512bw.
4243 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4244 (kmov_isa): New mode attr.
4245 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4246 (*zero_extend<mode>si2): Likewise.
4247 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4249 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
4251 * doc/invoke.texi (SPU Options): nops -> NOPs.
4252 (x86 Options): Ditto.
4254 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4257 * toplev.c (process_options): Temporarily set input_location
4258 to UNKNOWN_LOCATION around targetm.target_option.override () call.
4260 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
4262 PR rtl-optimization/77452
4263 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4264 inner-mode reference to a CONST_VECTOR constant in the constant pool.
4266 2016-09-05 Marek Polacek <polacek@redhat.com>
4269 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4271 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4274 * gensupport.c (alter_output_for_subst_insn): Remove redundant
4275 *insn_out == '*' test. Don't copy unnecessary to yet another
4276 memory buffer, and don't leak it.
4278 PR rtl-optimization/77425
4279 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
4281 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
4283 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
4285 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4287 * common.opt (fdiagnostics-generate-patch): New option.
4288 * diagnostic.c: Include "edit-context.h".
4289 (diagnostic_initialize): Initialize context->edit_context_ptr.
4290 (diagnostic_finish): Delete context->edit_context_ptr.
4291 (diagnostic_report_diagnostic): Add fix-it hints from the
4292 diagnostic to context->edit_context_ptr, if any.
4293 * diagnostic.h (class edit_context): Add forward decl.
4294 (struct diagnostic_context): Add field "edit_context_ptr".
4295 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4296 -fdiagnostics-generate-patch.
4297 (-fdiagnostics-generate-patch): New item.
4298 * toplev.c: Include "edit-context.h".
4299 (process_options): Set global_dc->edit_context_ptr to a new
4300 edit_context if the options need one.
4301 (toplev::main): Handle -fdiagnostics-generate-patch by using
4302 global_dc->edit_context_ptr.
4304 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4307 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
4308 map and firstprivate clauses on target construct for _Atomic
4310 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
4311 on target construct for _Atomic qualified decls.
4312 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
4314 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
4315 _Atomic qualified arguments not mentioned in uniform clause.
4317 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4319 * Makefile.in (OBJS-libcommon): Add edit-context.o.
4320 * diagnostic-color.c (color_dict): Add "diff-filename",
4321 "diff-hunk", "diff-delete", and "diff-insert".
4322 (parse_gcc_colors): Update default value of GCC_COLORS in comment
4323 to reflect above changes.
4324 * doc/invoke.texi (-fdiagnostics-color): Update description of
4325 default GCC_COLORS, and of the supported capabilities.
4326 * edit-context.c: New file.
4327 * edit-context.h: New file.
4328 * input.c (struct fcache): Add field "missing_trailing_newline".
4329 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
4331 (add_file_to_cache_tab): Likewise.
4332 (fcache::fcache): Likewise.
4333 (get_next_line): Update c->missing_trailing_newline.
4334 (location_missing_trailing_newline): New function.
4335 * input.h (location_missing_trailing_newline): New decl.
4336 * selftest-run-tests.c (selftest::run_tests): Call
4337 edit_context_c_tests.
4338 * selftest.h (edit_context_c_tests): New decl.
4340 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4341 Richard Biener <rguenth@suse.de>
4343 PR tree-optimization/77444
4344 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
4345 as steptype, remove redundant initialization.
4347 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4350 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
4351 (sanopt_optimize_walker): Optimize away
4352 __asan_before_dynamic_init (...) followed by
4353 __asan_after_dynamic_init () without intervening memory loads/stores.
4354 * ipa-pure-const.c (special_builtin_state): Handle
4355 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
4356 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
4358 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4360 * cfg.c (free_original_copy_tables): Replace second assignment of
4361 bb_copy = NULL by bb_original = NULL.
4363 2016-09-02 Jakub Jelinek <jakub@redhat.com>
4366 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
4367 assignment added in r216794.
4369 2016-09-02 David Malcolm <dmalcolm@redhat.com>
4371 * Makefile.in (OBJS): Add typed-splay-tree.o.
4372 * selftest-run-tests.c (selftest::run_tests): Call
4373 typed_splay_tree_c_tests.
4374 * selftest.h (typed_splay_tree_c_tests): New decl.
4375 * typed-splay-tree.c: New file.
4376 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
4377 (typed_splay_tree::max): New method.
4378 (typed_splay_tree::min): New method.
4379 (typed_splay_tree::foreach): New method.
4380 (typed_splay_tree::closure): New struct.
4381 (typed_splay_tree::inner_foreach_fn): New function.
4383 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4385 * ipa-cp.c (ipcp_store_bits_results): Change option name from
4386 -fipa-cp-bit to -fipa-bit-cp.
4388 2016-09-01 Martin Sebor <msebor@redhat.com>
4390 PR tree-optimization/71831
4391 * tree-object-size.h: Return bool instead of the size and add
4392 argument for the size.
4393 * tree-object-size.c (compute_object_offset): Update signature.
4394 (addr_object_size): Same.
4395 (compute_builtin_object_size): Return bool instead of the size
4396 and add argument for the size. Handle POINTER_PLUS_EXPR when
4397 optimization is disabled.
4398 (expr_object_size): Adjust.
4399 (plus_stmt_object_size): Adjust.
4400 (pass_object_sizes::execute): Adjust.
4401 * builtins.c (fold_builtin_object_size): Adjust.
4402 * doc/extend.texi (Object Size Checking): Update.
4403 * ubsan.c (instrument_object_size): Adjust.
4405 2016-09-01 Martin Sebor <msebor@redhat.com>
4407 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
4408 it fits the output of the formatted function regardless of its
4410 * gcc/genmodes.c (parser::parse_expr): Same.
4411 * gimplify.c (gimplify_asm_expr): Same.
4412 * passes.c (pass_manager::register_one_dump_file): Same.
4413 * print-tree.c (print_node): Same.
4415 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4417 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
4419 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4421 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
4423 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4425 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4426 * config/rs6000/vector.md: Ditto.
4427 * config/rs6000/vsx.md: Ditto.
4429 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4431 * ipa-inline-analysis.c (param_change_prob): Get to the base object
4434 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4436 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4437 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4438 *return_and_restore_gpregs_<mode>_r11,
4439 *return_and_restore_gpregs_<mode>_r12,
4440 *return_and_restore_gpregs_<mode>_r1,
4441 *return_and_restore_fpregs_<mode>_r11,
4442 *return_and_restore_fpregs_<mode>_r12,
4443 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4444 directly instead of via the "l" constraint. Renumber operands.
4447 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4449 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4450 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4451 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4452 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4453 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4454 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4455 *call_value_nonlocal_darwin64, reload_macho_picbase,
4456 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4457 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4458 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4459 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4460 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4461 *save_fpregs_<mode>_r1): Ditto.
4462 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4463 *return_and_restore_gpregs_spe): Ditto.
4465 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4467 * config/rs6000/rs6000.md
4468 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4469 the use of the link register.
4470 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4472 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4473 Michael Meissner <meissner@linux.vnet.ibm.com>
4476 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4477 reg+reg addressing for TImode.
4478 (rs6000_legitimate_address_p): Only allow register indirect
4479 addressing for TImode, even without TARGET_QUAD_MEMORY.
4481 2016-09-01 Richard Biener <rguenther@suse.de>
4484 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4485 check whether the result fits the desired result type.
4487 2016-09-01 Nathan Sidwell <nathan@acm.org>
4489 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4491 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
4493 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4495 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4497 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4499 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4500 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4501 for comparisons of integer ZERO_EXTEND against zero.
4503 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4505 * config/i386/i386.c (ix86_option_override_internal): Also disable the
4506 STV pass if -mstackrealign is enabled.
4508 2016-08-31 Ilya Verbin <iverbin@gmail.com>
4510 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4513 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4515 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4516 (layout_range::intersects_line_p): New method.
4517 (test_range_contains_point_for_single_point): Rename to...
4518 (test_layout_range_for_single_point): ...this, and add testing
4519 for layout_range::intersects_line_p.
4520 (test_range_contains_point_for_single_line): Rename to...
4521 (test_layout_range_for_single_line): ...this, and add testing
4522 for layout_range::intersects_line_p.
4523 (test_range_contains_point_for_multiple_lines): Rename to...
4524 (test_layout_range_for_multiple_lines): ...this, and add testing
4525 for layout_range::intersects_line_p.
4526 (layout::layout): Populate m_fixit_hints.
4527 (layout::get_expanded_location): Handle the case of a line-span
4529 (layout::validate_fixit_hint_p): New method.
4530 (get_line_span_for_fixit_hint): New function.
4531 (layout::calculate_line_spans): Add spans for fixit-hints.
4532 (layout::should_print_annotation_line_p): New method.
4533 (layout::print_any_fixits): Drop param "richloc", instead using
4534 validated fixits in m_fixit_hints. Add "const" to hint pointers.
4535 (diagnostic_show_locus): Avoid printing blank annotation lines.
4536 (selftest::test_diagnostic_context::test_diagnostic_context):
4537 Initialize show_column and start_span.
4538 (selftest::test_diagnostic_context::start_span_cb): New static
4540 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4541 (selftest::diagnostic_show_locus_c_tests): Update for function
4542 renamings. Call test_diagnostic_show_locus_fixit_lines.
4544 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4546 PR tree-optimization/73714
4547 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4549 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4551 * selftest.c: Move "namespace selftest {" to top of file,
4552 removing explicit "selftest::" qualifiers throughout.
4554 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4556 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4558 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4559 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4560 Replace builtin with vector extension.
4561 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4563 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4564 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4565 Replace builtin with vector extension.
4566 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4567 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4568 Replace builtin with vector extension.
4569 * config/i386/xmmintrin.h (__m128_u): New type.
4570 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4571 (_mm_load_ps, _mm_store_ps): Simplify.
4573 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
4575 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4577 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4579 * diagnostic-show-locus.c (colorizer::begin_state): Support more
4580 than 3 ranges per diagnostic by alternating between color 1 and
4582 (layout::layout): Replace use of rich_location::MAX_RANGES
4583 with richloc->get_num_locations ().
4584 (layout::calculate_line_spans): Replace use of
4585 rich_location::MAX_RANGES with m_layout_ranges.length ().
4586 (layout::print_annotation_line): Handle arbitrary numbers of
4587 ranges in caret-printing by defaulting to '^'.
4588 (selftest::test_one_liner_many_fixits): New function.
4589 (test_diagnostic_show_locus_one_liner): Call it.
4590 * diagnostic.c (diagnostic_initialize): Update for renaming
4591 of rich_location::MAX_RANGES to
4592 rich_location::STATICALLY_ALLOCATED_RANGES.
4593 * diagnostic.h (struct diagnostic_context): Likewise.
4595 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4597 * selftest.c (selftest::named_temp_file::named_temp_file): New
4599 (selftest::temp_source_file::~temp_source_file): Move to...
4600 (selftest::named_temp_file::~named_temp_file): ...here.
4601 (selftest::test_named_temp_file): New function.
4602 (selftest::selftest_c_tests): Call test_named_temp_file.
4603 * selftest.h (class named_temp_file): New class.
4604 (class temp_source_file): Convert to a subclass of named_temp_file.
4606 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
4608 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4609 USEs of LR_REGNO in returns and sibcalls.
4610 (rs6000_output_mi_thunk): Similar.
4611 (rs6000_sibcall_aix): Similar.
4612 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4613 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4614 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4615 Remove the USE of LR_REGNO from the patterns as well. Delete an
4617 (return_internal_<mode>): Delete.
4619 2016-08-30 Tamar Christina <tamar.christina@arm.com>
4621 * gcc/config/aarch64/aarch64-simd.md
4622 (aarch64_ld2<mode>_dreg_le): New.
4623 (aarch64_ld2<mode>_dreg_be): New.
4624 (aarch64_ld2<mode>_dreg): Removed.
4625 (aarch64_ld3<mode>_dreg_le): New.
4626 (aarch64_ld3<mode>_dreg_be): New.
4627 (aarch64_ld3<mode>_dreg): Removed.
4628 (aarch64_ld4<mode>_dreg_le): New.
4629 (aarch64_ld4<mode>_dreg_be): New.
4630 (aarch64_ld4<mode>_dreg): Removed.
4631 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4633 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4635 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4636 redundant location param.
4637 (test_one_liner_fixit_remove): Likewise.
4638 (test_one_liner_fixit_replace): Likewise.
4639 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4640 * gcc-rich-location.c
4641 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4642 get_range_from_loc. Drop overload taking a const char *.
4643 * gcc-rich-location.h
4644 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4647 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4649 * config/linux.c (linux_libc_has_function): Return true on musl.
4651 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4653 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4655 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
4657 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4658 used for abnormal egdes.
4660 2016-08-30 Jakub Jelinek <jakub@redhat.com>
4662 PR tree-optimization/72866
4663 * tree-vect-patterns.c (search_type_for_mask): Turn into
4664 a small wrapper, move all code to ...
4665 (search_type_for_mask_1): ... this new function. Add caching
4666 and adjust recursive calls.
4669 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4670 instead of lookup_type_die (type_main_variant (type)) even for array
4674 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4675 constant pool reference return x instead of c.
4677 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
4679 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4682 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4685 (selftest::test_make_location_nonpure_range_endpoints): Fix
4688 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4690 * diagnostic-show-locus.c
4691 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4693 (selftest::test_diagnostic_show_locus_one_liner): Call it.
4694 * input.c (get_pure_location): Move to libcpp/line-map.c.
4695 * input.h (get_pure_location): Convert decl to an inline function
4696 calling implementation in libcpp.
4698 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
4701 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4702 template for intel asm dialect.
4703 (vec_set_hi_<mode><mask_name>): Ditto.
4705 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4707 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4708 (selftest::fail_formatted): Likewise.
4710 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4712 * input.c (make_location): Call get_start and get_finish
4713 on the endpoints to avoid storing packed ranges or ad-hoc
4715 (selftest::test_make_location_nonpure_range_endpoints): New function.
4716 (selftest::input_c_tests): Call it.
4717 * input.h (get_start): New inline function.
4719 2016-08-29 Tom de Vries <tom@codesourcery.com>
4722 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4725 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
4727 * Makefile.in (gcov-iov.h): Add dummy recipe.
4729 2016-08-29 Nathan Sidwell <nathan@acm.org>
4731 * config/nvptx/nvptx.c: #include tree-vrp.h.
4733 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
4736 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4737 HIGH+LO construct during reload.
4739 2016-08-28 Tom de Vries <tom@codesourcery.com>
4742 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4743 'sysv_abi va_list' attribute.
4744 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4745 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4748 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4750 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4751 * emit-rtl.c (unshare_all_rtl_1): Adjust.
4752 (unshare_all_rtl_again): Likewise.
4753 * function.c (assign_stack_local_1): Likewise.
4754 (assign_stack_temp_for_type): Likewise.
4756 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4758 * cfgbuild.c (make_edges): Adjust.
4759 * cfgrtl.c (can_delete_label_p): Likewise.
4760 * dwarf2cfi.c (create_trace_edges): Likewise.
4761 * except.c (sjlj_emit_dispatch_table): Likewise.
4762 * function.h (struct expr_status): make x_forced_labels a vector.
4763 * jump.c (rebuild_jump_labels_1): Adjust.
4764 * reload1.c (set_initial_label_offsets): Likewise.
4765 * stmt.c (force_label_rtx): Likewise.
4766 (expand_label): Likewise.
4768 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4770 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4772 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
4774 PR tree-optimization/71077
4775 PR tree-optimization/68542
4776 * fold-const.c (fold_relational_const): Fix folding of
4777 VECTOR_CST comparisons that have a scalar boolean result type.
4778 (selftest::test_vector_folding): New static function.
4779 (selftest::fold_const_c_tests): Call it.
4781 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
4783 * doc/extend.texi (SPU Built-in Functions): Remove stale
4784 references to material formerly at IBM and Sony.
4786 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
4789 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4791 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4793 * diagnostic-show-locus.c
4794 (selftest::test_fixit_consolidation): New function.
4795 (selftest::diagnostic_show_locus_c_tests): Call it.
4796 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4797 constructor based on source_range.
4799 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4801 * diagnostic-color.c (color_dict): Add "fixit-insert" and
4803 (parse_gcc_colors): Update description of default GCC_COLORS.
4804 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4805 (colorizer::set_fixit_insert): New method.
4806 (colorizer::set_fixit_delete): New method.
4807 (colorizer::get_color_by_name): New method.
4808 (colorizer::STATE_FIXIT_INSERT): New constant.
4809 (colorizer::STATE_FIXIT_DELETE): New constant.
4810 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
4811 fields in favor of new field "m_stop_color". Add fields
4812 "m_fixit_insert" and "m_fixit_delete".
4813 (colorizer::colorizer): Update for above changes. Replace
4814 colorize_start calls with calls to get_color_by_name.
4815 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4816 STATE_FIXIT_DELETE. Update for field renamings.
4817 (colorizer::finish_state): Simplify by using m_stop_color,
4818 rather than multiple identical "*_ce" fields.
4819 (colorizer::get_color_by_name): New method.
4820 (layout::print_any_fixits): Print insertions and replacements
4821 using the "fixit-insert" color, and deletions using the
4822 "fixit-delete" color.
4823 * doc/invoke.texi (-fdiagnostics-color): Update description of
4824 default GCC_COLORS, and of the supported capabilities.
4826 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
4828 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4829 current_function_static_stack_size variable with the static
4830 stack frame size of the current function when
4831 flag_stack_usage_info is enabled.
4833 2016-08-26 Nathan Sidwell <nathan@acm.org>
4835 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4836 assignment inside if condition.
4838 2016-08-26 Richard Biener <rguenther@suse.de>
4840 PR tree-optimization/69047
4841 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4842 extracts similar to what FRE does.
4843 (non_rewritable_mem_ref_base): Likewise.
4845 2016-08-26 Joseph Myers <joseph@codesourcery.com>
4847 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4848 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4849 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4850 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4851 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4853 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4854 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4855 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4856 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4857 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4859 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4862 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4863 reservation duration to 15 cycles.
4864 (cortex_a8_vfp_macs): Likewise.
4865 (cortex_a8_vfp_macd): Likewise.
4866 (cortex_a8_vfp_divs): Likewise.
4867 (cortex_a8_vfp_divd): Likewise.
4869 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4871 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4872 (aarch_macro_fusion_pair_p): Use above to avoid early return.
4874 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4875 Martin Jambhor <mjambor@suse.cz>
4877 * common.opt: New option -fipa-bit-cp.
4878 * doc/invoke.texi: Document -fipa-bit-cp.
4879 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4880 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4881 * tree-ssa-ccp.h: New header file.
4882 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4883 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4884 Replace all occurences of tree parameter by two new params: signop, int.
4885 (bit_value_unop_1): Change to bit_value_unop and export it.
4886 Replace all occurences of tree parameter by two new params: signop,
4888 (bit_value_binop): Change call from bit_value_binop_1 to
4890 (bit_value_assume_aligned): Likewise.
4891 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4892 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4894 (ccp_finalize): Skip processing if val->mask == 0.
4895 * ipa-cp.c: Include tree-ssa-ccp.h
4896 (ipcp_bits_lattice): New class.
4897 (ipcp_param_lattice (bits_lattice): New member.
4898 (print_all_lattices): Call ipcp_bits_lattice::print.
4899 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4900 (initialize_node_lattices): Likewise.
4901 (propagate_bits_accross_jump_function): New function.
4902 (propagate_constants_accross_call): Call
4903 propagate_bits_accross_jump_function.
4904 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4905 (ipcp_store_bits_results): New function.
4906 (ipcp_driver): Call ipcp_store_bits_results.
4907 * ipa-prop.h (ipa_bits): New struct.
4908 (ipa_jump_func): Add new member bits of type ipa_bits.
4909 (ipa_param_descriptor): Change decl to decl_or_type.
4910 (ipa_get_param): Change decl to decl_or_type and assert on
4912 (ipa_get_type): New function.
4913 (ipcp_transformation_summary): New member bits.
4914 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4915 (ipa_populate_param_decls): Likewise.
4916 (ipa_dump_param): Likewise.
4917 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4919 (ipa_set_jf_unknown): Set ipa_bits::known to false.
4920 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4922 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4923 (ipa_write_jump_function): Add streaming for ipa_bits.
4924 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4925 (write_ipcp_transformation_info): Add streaming for ipa_bits
4927 (read_ipcp_transfomration_info): Add support for reading streamed
4929 (ipcp_update_bits): New function.
4930 (ipcp_transform_function): Call ipcp_update_bits.
4932 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
4934 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4935 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4937 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
4939 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4941 2016-08-25 Richard Biener <rguenther@suse.de>
4943 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4944 Only add locations in late dwarf.
4945 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4946 (dwarf2out_early_finish): But do it here.
4948 2016-08-24 Michael Collison <michael.collison@linaro.org>
4949 Michael Collison <michael.collison@arm.com>
4951 * config/arm/arm-modes.def: Add new condition code mode CC_V
4952 to represent the overflow bit.
4953 * config/arm/arm.c (maybe_get_arm_condition_code):
4954 Add support for CC_Vmode.
4955 (arm_gen_unlikely_cbranch): New function to generate common
4956 rtl conditional branches for overflow patterns.
4957 * config/arm/arm-protos.h: Add prototype for
4958 arm_gen_unlikely_cbranch.
4959 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4960 addsi3_compareV_upper): New patterns to support signed
4961 builtin overflow add operations.
4962 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4963 New patterns to support unsigned builtin add overflow operations.
4964 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4965 builtin overflow subtract operations,
4966 (usubv<mode>4): New patterns to support unsigned builtin subtract
4967 overflow operations.
4968 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4969 to support builtin overflow negate operations.
4971 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4974 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4976 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4977 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4980 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4982 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4983 MULTILIB_OPTIONS should be used. Small wording fixes.
4984 * genmultilib: Memorize set of all option combinations in
4985 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
4986 found in MULTILIB_OPTIONS by checking if option set is listed in
4987 combination_space. Output new and existing error message to stderr.
4989 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4991 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4992 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4993 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4994 (MULTILIB_REUSE): Remove reuse rules for option set including
4995 -mfpu=fp-armv8 and -mfpu=vfpv4
4997 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
4999 * config/arm/t-rtems: Add vfp multilib.
5001 2016-08-23 Ian Lance Taylor <iant@golang.org>
5003 * config/s390/s390.c (s390_asm_file_start): Call
5006 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5008 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5009 initialization of all 0's to the 0 constant, instead of directly
5010 generating XOR. Add support for V4SImode vector initialization on
5011 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5012 initialization. Change variables used in V4SFmode vector
5013 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5014 any memory addresses are in index form. Add support for using
5015 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5016 with all of the same element.
5017 (regno_or_subregno): New helper function to return a register
5018 number for either REG or SUBREG.
5019 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5020 Use regno_or_subregno where possible.
5021 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5022 DImode value from two SImode values in order to generate V4SImode
5023 vector initialization on 64-bit systems with direct move.
5024 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5026 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5028 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5030 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5031 attributes to initialize V8HImode and V16QImode vectors with the
5033 (VSX_SPLAT_COUNT): Likewise.
5034 (VSX_SPLAT_SUFFIX): Likewise.
5035 (UNSPEC_VSX_VEC_INIT): New unspec.
5036 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5037 Allow SFmode values to come from Altivec registers.
5038 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5039 on 64-bit systems with direct move.
5040 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5041 vector initializations, to allow V4SImode vector initializations
5042 on 64-bit systems with direct move.
5043 (vsx_splat_v4si): Likewise.
5044 (vsx_splat_v4si_di): Likewise.
5045 (vsx_splat_v4sf): Likewise.
5046 (vsx_splat_v4sf_internal): Likewise.
5047 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5049 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5050 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5051 initializing V8HImode and V16QImode vectors with the same
5053 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5054 optimization if -maltivec=be.
5056 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5058 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5059 attribute for alternatives 3 and 4.
5061 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5063 * selftest.c (selftest::assert_str_contains): New function.
5064 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5065 * selftest.h (selftest::assert_str_contains): New decl.
5066 (ASSERT_STR_CONTAINS): New macro.
5068 2016-08-23 Richard Biener <rguenther@suse.de>
5070 PR tree-optimization/77286
5071 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5073 (vect_transform_loop): Split exit edges of loop and scalar
5074 loop if required and at the appropriate time.
5076 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5078 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5079 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5081 Correct a typo in a comment.
5083 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5085 * config/s390/s390.md ("*andc_split"): New splitter for and with
5088 2016-08-23 Richard Biener <rguenther@suse.de>
5090 PR tree-optimization/27336
5091 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5092 by looking for a non-EH edge.
5093 (process_assert_insertions_for): Likewise.
5095 2016-08-23 Richard Biener <rguenther@suse.de>
5098 * statistics.c (statistics_counter_event): Robustify against
5101 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5103 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5104 for targets amdfam10 and barcelona.
5106 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5108 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5109 (zero_extend<mode>di2): Ditto.
5110 (*zero_extend<mode>si2): Ditto.
5111 (*zero_extendqihi2): Ditto.
5113 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5116 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5117 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5119 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5121 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5122 identical consecutive elements.
5123 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5124 the node's def stmt, avoid printing an unwanted trailing newline by
5125 replacing the call to print_gimple_stmt() with its inlined body and
5126 adjusting it to not set pp_needs_newline and to call pp_flush()
5127 instead of pp_newline_and_flush().
5129 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5131 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5132 (float32_type_node, float64_type_node, float32x_type_node)
5133 (float128x_type_node): New macros.
5134 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5135 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5136 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5137 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5138 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5139 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5140 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5141 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5142 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5143 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5144 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5145 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5146 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5147 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5148 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5149 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5150 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5151 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5152 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5154 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5155 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5156 * doc/extend.texi (Other Builtins): Document these built-in
5158 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5161 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5163 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5165 2016-08-22 Richard Biener <rguenther@suse.de>
5167 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5169 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5172 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5173 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5174 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5176 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5178 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5179 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5180 (vrp_visit_switch_stmt): Likewise.
5181 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5182 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5183 (vrp_visit_stmt): Use extract_range_from_stmt.
5184 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5186 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5188 * Makefile.in: Add tree-vrp.h to GTFILES.
5189 * gengtype.c (open_base_files): Add tree-vrp.h.
5190 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5191 * builtins.c: Likewise.
5192 * fold-const.c: Likewise.
5193 * gimple-builder.c: Likewise.
5194 * gimple-laddress.c: Likewise.
5195 * hsa-gen.c: Likewise.
5196 * internal-fn.c: Likewise.
5198 * targhooks.c: Liewise,
5199 * tree-ssa-address.c: Likewise.
5200 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5201 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5202 * tree-vrp.h: New file.
5204 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5206 PR tree-optimization/61839
5207 * tree-vrp.c (two_valued_val_range_p): New.
5208 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5209 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5210 Also Convert VAR BINOP CST where VAR is two-valued to
5211 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5213 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5215 * diagnostic-show-locus.c
5216 (layout::annotation_line_showed_range_p): New method.
5217 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5218 Reimplement case fixit_hint::REPLACE to cover removals, and
5219 replacements where the range of the replacement isn't one
5220 of the ranges in the rich_location.
5221 (test_one_liner_fixit_replace): Likewise.
5222 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5224 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5226 (selftest::test_diagnostic_show_locus_one_liner): Call the new
5228 * diagnostic.c (print_parseable_fixits): Remove case
5231 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
5234 * config/i386/i386.c (ix86_option_override_internal): Remove
5235 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5236 Enable SSE prefetch also for TARGET_PREFETCHWT1.
5237 Do not try to enable TARGET_PRFCHW ISA flag here.
5238 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5239 Rewrite expander function body.
5240 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5242 2016-08-19 Joseph Myers <joseph@codesourcery.com>
5245 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5246 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5247 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5248 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5249 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5250 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5251 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5252 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5253 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5255 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5257 (struct floatn_type_info): New structure type.
5258 (floatn_nx_types): New variable declaration.
5259 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5260 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5261 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5262 * tree.c (floatn_nx_types): New variable.
5263 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5264 corresponding complex types.
5265 * target.def (floatn_mode): New hook.
5266 * targhooks.c: Include "real.h".
5267 (default_floatn_mode): New function.
5268 * targhooks.h (default_floatn_mode): New prototype.
5269 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5271 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5272 effective-target and dg-add-options keywords.
5273 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5274 Document new effective-target keywords.
5275 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
5276 * doc/tm.texi: Regenerate.
5277 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
5278 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
5279 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
5281 * real.h (struct real_format): Add field ieee_bits.
5282 * real.c (ieee_single_format, mips_single_format)
5283 (motorola_single_format, spu_single_format, ieee_double_format)
5284 (mips_double_format, motorola_double_format)
5285 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
5286 (ieee_extended_intel_128_format)
5287 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
5288 (mips_extended_format, ieee_quad_format, mips_quad_format)
5289 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
5290 (decimal_double_format, decimal_quad_format, ieee_half_format)
5291 (arm_half_format, real_internal_format: Initialize ieee_bits
5293 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
5294 float128_type_node. Set float80_type_node to float64x_type_node
5295 if appropriate and long_double_type_node not appropriate.
5296 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
5297 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
5298 Initialize ieee_bits field.
5299 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
5300 (rs6000_init_builtins): Set ieee128_float_type_node to
5302 (rs6000_floatn_mode): New function.
5304 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5306 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5307 _rdseed64_step): Uglify argument names and/or local variable names
5308 in inline functions.
5309 * config/i386/rtmintrin.h (_xabort): Likewise.
5310 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
5311 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
5312 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
5313 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
5314 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
5315 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
5316 _mm_maskz_ternarylogic_epi32): Likewise.
5317 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
5318 __lwpins32, __lwpins64): Likewise.
5319 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
5320 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
5321 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
5322 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
5323 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
5324 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
5325 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
5326 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
5327 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
5328 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
5329 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
5330 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
5331 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
5332 _mm256_mask_i64gather_epi32): Likewise.
5333 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5334 * config/i386/ia32intrin.h (__writeeflags): Likewise.
5335 * config/i386/pkuintrin.h (_wrpkru): Likewise.
5336 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
5337 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
5338 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
5339 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
5340 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
5341 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
5342 _mm512_mask_prefetch_i64scatter_ps): Likewise.
5343 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5344 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
5345 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
5346 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
5347 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
5348 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
5349 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
5350 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
5352 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
5354 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
5355 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
5357 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
5358 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
5360 (_rdpkru_u32): Add space after function name.
5362 * config/i386/t-i386 (i386-c.o): Don't depend on
5363 i386-builtin-types.inc.
5364 (i386.o): Depend on i386-builtin-types.inc.
5366 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
5369 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
5370 Use const_vec_duplicate to check for duplicated elements.
5372 2016-08-19 Richard Biener <rguenther@suse.de>
5374 PR tree-optimization/77290
5375 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5376 Fix flag_tree_parallelize_loops check.
5378 2016-08-19 Richard Biener <rguenther@suse.de>
5380 * match.pd (x | 0 -> x): Add.
5382 2016-08-19 Richard Biener <rguenther@suse.de>
5384 PR tree-optimization/77286
5385 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5386 Deal with virtual PHIs being out-of-order.
5388 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5390 * doc/invoke.texi (fverbose-asm): Note that source code lines
5391 are emitted, and provide an example.
5392 * final.c (asm_show_source): New function.
5393 (final_scan_insn): Call asm_show_source.
5395 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5397 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
5398 param with diagnostic_kind.
5399 (class colorizer): Similarly replace field m_diagnostic with
5401 (colorizer::colorizer): Replace diagnostic
5402 param with diagnostic_kind.
5403 (colorizer::begin_state): Update for above field change.
5404 (layout::layout): Replace diagnostic param with rich_location *
5405 and diagnostic_kind.
5406 (diagnostic_show_locus): Replace diagnostic param with richloc
5407 and diagnostic_kind.
5408 (class selftest::test_diagnostic_context): New class.
5409 (selftest::test_diagnostic_show_locus_unknown_location): New
5411 (selftest::test_one_liner_simple_caret): New function.
5412 (selftest::test_one_liner_caret_and_range): New function.
5413 (selftest::test_one_liner_multiple_carets_and_ranges): New
5415 (selftest::test_one_liner_fixit_remove): New function.
5416 (selftest::test_one_liner_fixit_replace): New function.
5417 (selftest::test_diagnostic_show_locus_one_liner): New function.
5418 (selftest::diagnostic_show_locus_c_tests): Call the new test
5420 * diagnostic.c (diagnostic_initialize): Initialize
5421 colorize_source_p, show_ruler_p and parseable_fixits_p.
5422 (default_diagnostic_finalizer): Update for change to
5423 diagnostic_show_locus.
5424 (diagnostic_append_note): Likewise.
5425 * diagnostic.h (diagnostic_show_locus): Replace
5426 const diagnostic_info * param with location * and diagnostic_t.
5428 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5430 * input.c (saved_line_table): New global.
5431 (class selftest::temp_line_table): Rename to line_table_test and
5432 move declaration to selftest.h, and drop field m_old_line_table.
5433 (selftest::temp_line_table::temp_line_table): Rename ctor to...
5434 (selftest::line_table_test::line_table_test): ...this. Add a
5435 default ctor. Store current value of line_table within
5437 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5438 (selftest::line_table_test::~line_table_test): ...this, and
5439 restore line_table from the saved_line_table, rather than
5441 (selftest::test_accessing_ordinary_linemaps): Update for above
5443 (selftest::test_lexer): Likewise.
5444 (struct selftest::lexer_test): Likewise.
5445 (selftest::lexer_test::lexer_test): Likewise.
5446 (selftest::input_c_tests): Move the looping over test cases from
5448 (selftest::for_each_line_table_case): New function.
5449 * input.h (saved_line_table): New decl.
5450 * selftest.h (struct selftest::line_table_case): New forward decl.
5451 (class selftest::line_table_test): New class, moved here from
5452 selftest::temp_line_table in input.c, and renamed.
5453 (selftest::for_each_line_table_case): New decl.
5455 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
5458 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5460 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5463 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5464 enclosing parallel construct for reduction variables on OpenACC loop
5467 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
5469 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5470 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5472 (function_to_dwarf_procedure): Update comment.
5474 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5476 * input.c (diagnostics_file_cache_forcibly_evict_file): New
5478 * input.h (diagnostics_file_cache_forcibly_evict_file): New
5480 * selftest.c (selftest::temp_source_file::~temp_source_file):
5481 Evict m_filename from the diagnostic file cache.
5483 2016-08-18 Richard Biener <rguenther@suse.de>
5485 * tree-pass.h (make_pass_materialize_all_clones): Declare.
5486 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5487 make_pass_materialize_all_clones): New simple IPA pass encapsulating
5488 clone materialization.
5489 * passes.def (all_late_ipa_passes): Start with
5490 pass_materialize_all_clones.
5491 * cgraphunit.c (symbol_table::compile): Remove call to
5492 materialize_all_clones.
5493 * tree-into-ssa.c: Include statistics.h.
5494 (update_ssa): Count number of times we do incremental/rewrite
5497 2016-08-18 Richard Biener <rguenther@suse.de>
5499 PR tree-optimization/77282
5500 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5501 When doing auto-parallelizing also prevent use of PHIs that
5502 carry dependences across loop backedges.
5504 2016-08-18 Tamar Christina <tamar.christina@arm.com>
5505 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5507 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5509 2016-08-18 Richard Biener <rguenther@suse.de>
5511 * ssa-iterators.h (ssa_vuse_operand): New inline.
5512 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5513 (predicate_all_scalar_phis): Use remove_phi_node to remove
5514 phi nodes predicated. Delay removing virtual PHIs.
5515 (predicate_mem_writes): Update virtual operands.
5516 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
5517 (tree_if_conversion): Do not rewrite virtual SSA form.
5518 * tree-phinodes.c (release_phi_node): Make static.
5519 * tree-phinodes.h (release_phi_node): Remove.
5521 2016-08-18 Jakub Jelinek <jakub@redhat.com>
5523 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5524 codes that appear in bdesc_* arrays, instead include i386-builtin.def
5525 twice to define those.
5526 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5527 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5528 bdesc_multi_arg): Define by including i386-builtin.def the third time.
5529 * config/i386/i386-builtin.def: New file.
5531 2016-08-17 David Malcolm <dmalcolm@redhat.com>
5533 * input.c (get_source_range_for_char): Rename to...
5534 (selftest::get_source_range_for_char): ...this, and move within
5535 the #if CHECKING_P guard.
5536 (get_num_source_ranges_for_substring): Rename to...
5537 (selftest::get_num_source_ranges_for_substring): ...this, move
5538 within the #if CHECKING_P guard, and make static.
5539 (selftest::assert_num_substring_ranges): Initialize
5542 2016-08-18 Alan Modra <amodra@gmail.com>
5544 PR rtl-optimization/72771
5545 * reload.c (find_reloads): Don't assume that a subreg mem is OK
5546 when find_reloads_toplev returns address_reloaded==-1.
5547 (alternative_allows_const_pool_ref): Update comment.
5549 2015-08-17 Alan Hayward <alan.hayward@arm.com>
5551 PR tree-optimization/71752
5552 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5553 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5555 2016-08-17 Jakub Jelinek <jakub@redhat.com>
5557 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5558 instead of testing ECF_NORETURN bit in gimple_call_flags.
5559 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5560 * predict.c (tree_bb_level_predictions): Likewise.
5561 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5565 turning a call into __builtin_unreachable-like noreturn call, adjust
5566 gimple_call_set_fntype.
5567 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5568 gimple_call_fntype has void return type.
5570 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
5572 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5573 maybe_lookup_decl, to handle nested acc loop directives.
5575 2016-08-17 Richard Biener <rguenther@suse.de>
5577 PR tree-optimization/76490
5578 * tree-vrp.c (update_value_range): Preserve overflow infinities
5579 when intersecting with ranges from get_range_info.
5580 (operand_less_p): Handle overflow infinities correctly.
5581 (value_range_constant_singleton): Use vrp_operand_equal_p
5582 to handle overflow max/min correctly.
5583 (vrp_valueize): Likewise.
5584 (union_ranges): Likewise.
5585 (intersect_ranges): Likewise.
5586 (vrp_visit_phi_node): Improve iteration limitation to only
5587 apply when we'll possibly re-visit the PHI via a changed argument
5590 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5592 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5593 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5594 rather than those that should not be built.
5596 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
5599 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5601 2016-08-17 Richard Biener <rguenther@suse.de>
5603 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5604 (verify_vssa): New function verifying virtual SSA form.
5605 (verify_ssa): Call it.
5606 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5607 Do not apply loop-closed SSA handling to virtuals.
5608 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5609 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5610 when rewriting their symbol.
5611 (prepare_def_site_for): Likewise.
5612 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5613 operands of moved stmts.
5615 2016-08-17 Richard Biener <rguenther@suse.de>
5617 PR tree-optimization/23855
5618 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5619 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5620 find guards to hoist. Do not update SSA form but rewrite virtuals
5621 into loop closed SSA.
5622 (find_loop_guard): Adjust to skip already hoisted guards. Do
5623 not mark virtuals for renaming or update SSA form.
5625 2016-08-17 Martin Liska <mliska@suse.cz>
5627 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5628 a LONG_LONG_TYPE_SIZE comparison.
5629 * gcov-io.h: Remove macro definitions.
5630 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5631 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5634 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5636 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5637 that builtins not mentioned in bdesc_* arrays come first, then
5638 the ones mentioned in bdesc_* arrays in the order they appear in
5639 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5640 IX86_BUILTIN__BDESC_*_LAST enumerator.
5641 (bdesc_mpx): Fix up a comment typo.
5642 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5643 __builtin_ia32_vpcomneu[bwdq] builtins.
5644 (BDESC_VERIFY, BDESC_VERIFYS): Define.
5645 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5646 enum ix86_builtins ordering.
5647 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5648 for direct bdesc_* array member access instead of searching all the
5649 arrays until an fcode match is found.
5651 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
5653 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5654 pattern as define_insn_and_split. Split insn before reload to
5656 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
5657 <shift_insn><mode>3_1.
5658 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
5659 <rotate_insn><mode>3_1.
5661 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5664 * input.c (get_source_range_for_substring): Rename to...
5665 (get_source_location_for_substring): ...this, adding param
5666 "caret_idx", and converting output param from source_range * to
5668 (get_source_range_for_char): New function.
5669 (get_num_source_ranges_for_substring): Update comment to reflect
5671 (assert_char_at_range): Update to use get_source_range_for_char
5672 rather than get_source_range_for_substring.
5673 (test_lexer_string_locations_concatenation_2): Likewise.
5674 * substring-locations.h (get_source_range_for_substring): Rename
5676 (get_source_location_for_substring): ...this, and adding param
5677 "caret_idx", and converting output param from source_range * to
5680 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5682 * input.c (class selftest::temp_source_file): Move to
5684 (selftest::temp_source_file::temp_source_file): Move to
5686 (selftest::temp_source_file::~temp_source_file): Likewise.
5687 * selftest.c (selftest::temp_source_file::temp_source_file): Move
5689 (selftest::temp_source_file::~temp_source_file): Likewise.
5690 * selftest.h (class selftest::temp_source_file): Move here from
5693 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5696 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
5697 inlining, add cgraph edge for the added __builtin_unreachable call.
5700 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5701 only cast it to SHWI for the final comparison.
5703 2016-08-16 Martin Liska <mliska@suse.cz>
5705 PR gcov-profile/36412
5706 * doc/gcov.texi: Document --hash-filenames(-x).
5707 * gcov.c (print_usage): Add the option.
5708 (process_args): Process the option, sort options alphabetically.
5709 (md5sum_to_hex): New function.
5710 (make_gcov_file_name): Do the md5sum and append it to a
5713 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5715 PR tree-optimization/69848
5716 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5717 and swtich operands to avoid additional NOT instruction.
5718 (vcond<v_cmp_mixed><mode>): Ditto.
5719 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5721 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
5723 * doc/install.texi (*-*-solaris2*): Adjust latest change.
5725 2016-08-16 Richard Biener <rguenther@suse.de>
5727 PR tree-optimization/76783
5728 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
5729 BB visited flags at start.
5731 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5733 PR tree-optimization/72817
5734 PR tree-optimization/73450
5735 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5736 multiple_of_p for adjusted IV.base.
5738 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
5741 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5742 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5743 for !flag_finite_math_only or flag_signed_zeros.
5744 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5745 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
5746 depend on flag_finite_math_only.
5747 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5749 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5750 (*ieee_smin<mode>3): Ditto.
5751 (*ieee_smax<mode>3): Ditto.
5752 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5753 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5755 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
5756 depend on flag_finite_math_only.
5757 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5758 (*mmx_<code>v2sf3): Remove.
5759 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5760 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5761 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5763 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
5765 PR rtl-optimization/73650
5766 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5767 it is not a simple move.
5769 2016-08-15 Martin Liska <mliska@suse.cz>
5772 * gcc.c (do_spec_1): Call save_string with the right size.
5773 (save_string): Do an assert about string we copy.
5775 2016-08-15 Richard Biener <rguenther@suse.de>
5777 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5778 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5780 (pass_data_stv): Likewise.
5782 2016-08-15 Richard Biener <rguenther@suse.de>
5784 PR tree-optimization/73434
5785 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5786 TBAA info on the base when forwarding a non-invariant address.
5788 2016-08-15 Jakub Jelinek <jakub@redhat.com>
5790 * dwarf2out.c (struct checksum_attributes): Add
5791 at_string_length_bit_size and at_string_length_byte_size fields.
5792 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5793 and DW_AT_string_length_byte_size.
5794 (die_checksum_ordered): Handle at_string_length_bit_size and
5795 at_string_length_byte_size.
5796 (gen_array_type_die): For dwarf_version >= 5 emit
5797 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5798 (adjust_string_types): For dwarf_version >= 5 remove
5799 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5800 (resolve_addr): Likewise.
5803 * dwarf2out.c (string_types): New variable.
5804 (gen_array_type_die): Change early_dwarf handling of
5805 DW_AT_string_length, create DW_OP_call4 referencing the
5806 length var temporarily. Handle parameters that are pointers
5808 (adjust_string_types): New function.
5809 (gen_subprogram_die): Temporarily set string_types to local var,
5810 call adjust_string_types if needed.
5811 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5813 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5815 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
5817 * doc/install.texi (*-*-solaris2*): Fix version number and document
5818 requirement on GNU make for building libjava with the Solaris linker.
5820 2016-08-15 Martin Liska <mliska@suse.cz>
5821 Jakub Jelinek <jakub@redhat.com>
5823 PR tree-optimization/72824
5824 * tree-loop-distribution.c (const_with_all_bytes_same)
5825 <case VECTOR_CST>: Fix a typo.
5827 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
5830 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5831 Renamed from _mm512_undefined_si512.
5832 (_mm_undefined_si512): New definition.
5834 2016-08-13 Richard Biener <rguenther@suse.de>
5836 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5837 into PHIs and update the lattice for its def.
5839 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5842 * ubsan.c (instrument_si_overflow): Pass true instead of false
5844 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5845 of bbs. Return TODO_cleanup_cfg if any returned true.
5847 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5849 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5850 ISA 3.0 MTVSRDD instruction.
5851 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5854 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5856 PR tree-optimization/71083
5857 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5858 bitfield access when possible.
5860 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
5863 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5864 sign-changing cast from a shorter unsigned type to a wider
5867 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5869 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5870 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5871 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5873 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5875 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5876 Correct costs for vec_construct.
5878 2016-08-12 Bin Cheng <bin.cheng@arm.com>
5880 PR tree-optimization/69848
5881 * tree-vectorizer.h (enum vect_def_type): New condition reduction
5882 type CONST_COND_REDUCTION.
5883 * tree-vect-loop.c (vectorizable_reduction): Support new condition
5884 reudction type CONST_COND_REDUCTION.
5886 2016-08-12 Richard Biener <rguenther@suse.de>
5888 PR tree-optimization/57326
5889 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5890 returning an SSA name.
5891 (phi_translate_1): When fully_constant_expression returns a NAME
5892 make sure we have a leader for it.
5894 2016-08-12 Martin Liska <mliska@suse.cz>
5895 Adam Fineman <afineman@afineman.com>
5897 * gcov.c (process_file): Create .gcov file when .gcda
5900 2016-08-12 Marek Polacek <polacek@redhat.com>
5903 * alias.c (find_base_value): Adjust fall through comment.
5904 * cfgexpand.c (expand_debug_expr): Likewise.
5905 * combine.c (find_split_point): Likewise.
5906 (expand_compound_operation): Likewise. Add FALLTHRU.
5907 (make_compound_operation): Adjust fall through comment.
5908 (canon_reg_for_combine): Add FALLTHRU.
5909 (force_to_mode): Adjust fall through comment.
5910 (simplify_shift_const_1): Likewise.
5911 (simplify_comparison): Likewise.
5912 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5914 * config/aarch64/predicates.md: Likewise.
5915 * config/i386/i386.c (function_arg_advance_32): Likewise.
5916 (ix86_gimplify_va_arg): Likewise.
5917 (print_reg): Likewise.
5918 (ix86_print_operand): Likewise.
5919 (ix86_build_const_vector): Likewise.
5920 (ix86_expand_branch): Likewise.
5921 (ix86_sched_init_global): Adjust fall through comment.
5922 (ix86_expand_args_builtin): Add FALLTHRU.
5923 (ix86_expand_builtin): Likewise.
5924 (ix86_expand_vector_init_one_var): Likewise.
5925 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5926 (rs6000_adjust_cost): Likewise.
5927 (insn_must_be_first_in_group): Likewise.
5928 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
5929 * dbxout.c (dbxout_symbol): Adjust fall through comment.
5930 * df-scan.c (df_uses_record): Likewise.
5931 * dojump.c (do_jump): Add FALLTHRU.
5932 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
5934 (resolve_args_picking_1): Adjust fall through comment.
5935 (loc_list_from_tree_1): Likewise.
5936 * expmed.c (make_tree): Likewise.
5937 * expr.c (expand_expr_real_2): Add FALLTHRU.
5938 (expand_expr_real_1): Likewise. Adjust fall through comment.
5939 * fold-const.c (const_binop): Adjust fall through comment.
5940 (fold_truth_not_expr): Likewise.
5941 (fold_cond_expr_with_comparison): Add FALLTHRU.
5942 (fold_binary_loc): Likewise.
5943 (contains_label_1): Adjust fall through comment.
5944 (multiple_of_p): Likewise.
5945 * gcov-tool.c (process_args): Add FALLTHRU.
5946 * genattrtab.c (check_attr_test): Likewise.
5947 (write_test_expr): Likewise.
5948 * genconfig.c (walk_insn_part): Likewise.
5949 * genpreds.c (validate_exp): Adjust fall through comment.
5950 (needs_variable): Likewise.
5951 * gensupport.c (get_alternatives_number): Add FALLTHRU.
5952 (subst_dup): Likewise.
5953 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5954 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5955 (gimplify_scan_omp_clauses): Add FALLTHRU.
5956 (goa_stabilize_expr): Likewise.
5957 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5959 * hsa-gen.c (get_address_from_value): Likewise.
5960 * ipa-icf.c (sem_function::hash_stmt): Likewise.
5961 * ira.c (ira_setup_alts): Add FALLTHRU.
5962 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5964 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5965 * opts.c (common_handle_option): Likewise.
5966 * read-rtl.c (read_rtx_code): Likewise.
5967 * real.c (round_for_format): Likewise.
5968 * recog.c (asm_operand_ok): Likewise.
5969 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5970 * reload1.c (set_label_offsets): Likewise.
5971 (eliminate_regs_1): Likewise.
5972 (reload_reg_reaches_end_p): Likewise.
5973 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5974 (rtx_cost): Likewise.
5975 * sched-rgn.c (is_exception_free): Likewise.
5976 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5977 * stor-layout.c (int_mode_for_mode): Likewise.
5978 * toplev.c (print_to_asm_out_file): Likewise.
5979 (print_to_stderr): Likewise.
5980 * tree-cfg.c (gimple_verify_flow_info): Likewise.
5981 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5982 (chrec_fold_multiply): Likewise.
5983 (evolution_function_is_invariant_rec_p): Likewise.
5984 (for_each_scev_op): Likewise.
5985 * tree-data-ref.c (siv_subscript_p): Likewise.
5986 (get_references_in_stmt): Likewise.
5987 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5988 (substitute_in_expr): Likewise.
5989 (type_cache_hasher::equal): Likewise.
5990 (walk_type_fields): Likewise.
5991 * var-tracking.c (adjust_mems): Add FALLTHRU.
5992 (set_dv_changed): Adjust fall through comment.
5993 * varasm.c (default_function_section): Add FALLTHRU.
5995 2016-08-12 Marek Polacek <polacek@redhat.com>
5998 * tree-complex.c (expand_complex_division): Add missing break.
6000 2016-08-12 Richard Biener <rguenther@suse.de>
6002 * passes.c (execute_todo): Do not push/pop TV_TODO.
6003 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6004 (execute_one_pass): Likewise.
6005 * common.opt (ftime-report-details): New switch.
6006 * doc/invoke.texi (ftime-report-details): Document.
6007 * timevar.h (timer::print_row): Adjust signature.
6008 (timer::all_zero): New static helper.
6009 (timer::child_map_t): New typedef.
6010 (timer::time_var_def): Add children field.
6011 * timevar.c (timer::named_items::print): Adjust.
6012 (timer::~timer): Free timevar recorded children.
6013 (timer::pop_internal): When -ftime-report-details record
6014 time spent in sub-timevars.
6015 (timer::print_row): Adjust.
6016 (timer::print): Print sub-timevar stats, use all_zero.
6017 * timevar.def (TV_TODO): Remove.
6019 2016-08-12 Richard Biener <rguenther@suse.de>
6021 PR tree-optimization/72851
6022 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6023 worklists to use bitmaps indexed in execution order.
6024 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6025 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6026 (cfg_blocks): Make a bitmap.
6027 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6029 (cfg_blocks_empty_p): Adjust.
6030 (cfg_blocks_add): Likewise.
6031 (cfg_blocks_get): Likewise.
6032 (add_ssa_edge): Likewise.
6033 (add_control_edge): Likewise.
6034 (simulate_stmt): Likewise.
6035 (process_ssa_edge_worklist): Likewise.
6036 (simulate_block): Likewise.
6037 (ssa_prop_init): Compute PRE order and stmt UIDs.
6038 (ssa_prop_fini): Adjust.
6039 (ssa_propagate): Adjust.
6041 2016-08-12 Richard Biener <rguenther@suse.de>
6043 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6044 the currently executable edges have fixed ranges. Always
6045 go through update_value_range.
6047 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6051 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6052 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6053 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6054 (LANG_HOOKS_DECLS): Add it.
6055 * langhooks.h (struct lang_hooks_for_decls): Add
6056 function_decl_defaulted. Const_tree-ify
6057 function_decl_explicit_p and function_decl_deleted_p.
6058 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6059 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6060 also at strict DWARF v5.
6063 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6064 TYPE_QUAL_CONST in reference-typed decls.
6067 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6068 in DW_OP_pieces, just enough to handle pointers to member
6070 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6071 expression on DWARFv5 if a constant value doesn't work.
6073 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6075 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6076 * selftest.c (selftest::test_assertions): New function.
6077 (selftest::selftest_c_tests): New function.
6078 * selftest.h (selftest::selftest_c_tests): New declaration.
6080 2016-08-11 Richard Biener <rguenther@suse.de>
6081 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6083 PR rtl-optimization/72855
6084 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6086 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6089 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6090 (vsx_store_<mode>): Likewise.
6092 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6094 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6095 TImode CONST_WIDE_INT store.
6096 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6098 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6100 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6101 mode if unaligned SSE load and store are optimal.
6103 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6105 PR tree-optimization/71083
6106 * tree-predcom.c (ref_at_iteration): Correctly align the
6109 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6111 * config/s390/s390-builtin-types.def: Add INT128 types.
6112 * config/s390/s390-builtins.def: Add INT128 variants for the add
6113 sub low-level builtins dealing with TImode.
6114 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6115 via subreg when expanding a builtin.
6116 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6117 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6119 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6120 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6121 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6122 "vacc<bhfgq>_<mode>".
6123 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6124 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6125 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6126 "vscbi<bhfgq>_<mode>".
6127 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6128 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6130 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6132 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6134 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6136 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6138 (vcond<v_cmp_mixed><mode>): Ditto.
6139 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6141 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6143 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6144 variable explicitly, also assert on it before use.
6146 2016-08-11 Richard Biener <rguenther@suse.de>
6148 PR tree-optimization/72772
6149 * cfgloopmanip.c (create_preheader): Use split_edge if there
6150 is a single loop entry, avoiding degenerate PHIs.
6152 2016-08-11 Richard Biener <rguenther@suse.de>
6154 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6155 unconditional TODO_cleanup_cfg.
6156 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6157 cleanup only if we threaded a jump.
6159 2016-08-11 Alan Modra <amodra@gmail.com>
6162 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6163 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6164 slow. Emit two reloads for slow mem case, first loading in
6165 fast innermode, then converting to required mode.
6167 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6169 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6170 (vec_extract_sig): New macro.
6171 (vec_insert_exp): New macro.
6172 (vec_test_data_class): New macro.
6173 (scalar_extract_exp): New macro.
6174 (scalar_extract_sig): New macro.
6175 (scalar_insert_exp): New macro.
6176 (scalar_test_data_class): New macro.
6177 (scalar_test_neg): New macro.
6178 (scalar_cmp_exp_gt): New macro.
6179 (scalar_cmp_exp_lt): New macro.
6180 (scalar_cmp_exp_eq): New macro.
6181 (scalar_cmp_exp_unordered): New macro.
6182 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6183 to enforce constraint that operand is a 7-bit unsigned literal.
6184 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6185 for power9 built-ins.
6186 (BU_P9V_VSX_2): Likewise.
6187 (BU_P9V_64BIT_VSX_2): Likewise.
6188 (VSEEDP): Add scalar extract exponent support.
6189 (VSEESP): Add scalar extract signature support.
6190 (VSTDCNDP): Add scalar test negative support.
6191 (VSTDCNSP): Likewise.
6192 (VSIEDP): Add scalar insert exponent support.
6193 (VSCEDPGT): Add scalar compare exponent greater than support.
6194 (VSCEDPLT): Add scalar compare exponent less than support.
6195 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6196 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6197 (VSTDCDP): Add scalar test data class support.
6198 (VSTDCSP): Likewise.
6199 (VSEEDP): Add overload support for scalar extract exponent
6201 (VSESDP): Add overload support for scalar extract signature
6203 (VSTDCN): Add overload support for scalar test negative
6205 (VSTDCNDP): Add overload support for scalar test negative
6207 (VSTDCNSP): Add overload support for scalar test negative
6209 (VSIEDP): Add overload support for scalar insert exponent
6211 (VSTDC): Add overload support for scalar test data class
6213 (VSTDCDP): Add overload support for scalar test data class
6215 (VSTDCSP): Add overload support for scalar test data class
6217 (VSCEDPGT): Add overload support for scalar compare exponent
6218 greater than operation.
6219 (VSCEDPLT): Add overload support for scalar compare exponent
6220 less than operation.
6221 (VSCEDPEQ): Add overload support for scalar compare exponent
6222 test-for-equality operation.
6223 (VSCEDPUO): Add overload support for scalar compare exponent
6224 test-for-unordered operation.
6225 (VEEDP): Add vector extract exponent support.
6227 (VESDP): Add vector extract significand support.
6229 (VIEDP): Add vector insert exponent support.
6231 (VTDCDP): Add vector test data class support.
6233 (VES): Add overload support for vector extract significand operation.
6236 (VEE): Add overload support for vector extract exponent operation.
6239 (VTDC): Add overload support for vector test data class operation.
6242 (VIE): Add overload support for vector insert exponent operation.
6245 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6246 overloaded binary floating point functions.
6247 (altivec_resolve_overloaded_builtin): Improve error messages to
6248 distinguish between functions not supported in the current
6249 compiler configuration and functions that were invoked with an
6250 invalid parameter combination, and include the built-in function
6251 name in both error messages.
6252 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6254 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6256 (rs6000_expand_binop_builtin): Add check to enforce that argument
6257 2 of the test data class operations is a 7-bit unsigned literal.
6258 (rs6000_invalid_builtin): Add code to issue an error message if a
6259 built-in function that requires the power9_vector and -m32
6260 command-line options is compiled without these options.
6261 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6262 (UNSPEC_VSX_SXSIGDP): New value.
6263 (UNSPEC_VSX_SXSIGPDP): New value.
6264 (UNSPEC_VSX_SIEXPDP): New value.
6265 (UNSPEC_VSX_SCMPEXPDP): New value.
6266 (UNSPEC_VSX_STSTDC): New value.
6267 (UNSPEC_VSX_VXEXP): New value.
6268 (UNSPEC_VSX_VXSIG): New value.
6269 (UNSPEC_VSX_VIEXP): New value.
6270 (UNSPEC_VSX_VTSTDC): New value.
6271 (xsxexpdp): New insn for scalar extract exponent.
6272 (xsxsigdp): New insn for scalar extract significand.
6273 (xsiexpdp): New insn for scalar insert exponent.
6274 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6275 (*xscmpexpdp): New insn for scalar compare exponents.
6276 (xststdc<Fvsx): New expansion for both single- and
6277 double-precision scalar test data class operations.
6278 (xststdcneg<Fvsx>): New expansion for both single- and
6279 double-precision scalar test for negative value operations.
6280 (*xststdc<Fvsx>): New insn for scalar test data class
6282 (xvxexp<VSs>): New insn for single- and double-precision
6283 vector extract exponent operation.
6284 (xvxsig<VSs>): New insn for single- and double-precision
6285 vector extract significand operation.
6286 (xviexp<VSs>): New insn for single- and double-precision
6287 vector insert exponent operation.
6288 (xvtstdc<VSs>): New insn for single- and double-precision
6289 vector test data class operation.
6290 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6291 built-in functions to represent the Power9 binary floating-point
6292 support instructions.
6294 2016-08-10 bin cheng <bin.cheng@arm.com>
6296 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
6298 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
6299 Renlin Li <renlin.li@arm.com>
6300 Bin Cheng <bin.cheng@arm.com>
6302 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
6303 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
6304 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
6305 (aarch64_vcond_internal<mode><mode>): Delete pattern.
6306 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
6307 (vcond<v_cmp_result><mode>): Ditto.
6308 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
6309 (vcondu<mode><mode>): Ditto.
6310 (vcond<v_cmp_mixed><mode>): New pattern.
6311 (vcondu<mode><v_cmp_mixed>): New pattern.
6312 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
6313 of aarch64_vcond_internal.
6315 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
6316 Renlin Li <renlin.li@arm.com>
6317 Bin Cheng <bin.cheng@arm.com>
6319 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
6320 (vec_cmp<mode><v_cmp_result>): New pattern.
6321 (vec_cmpu<mode><mode>): New pattern.
6322 (vcond_mask_<mode><v_cmp_result>): New pattern.
6324 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6326 PR tree-optimization/71734
6327 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
6328 REF_LOOP, invoke ref_indep_loop_p_1.
6329 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
6330 to ref_indep_loop_p.
6331 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
6332 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
6333 is inside LOOP, do not cache dpendence value for loops with
6335 (ref_indep_loop_p_2): Delete function.
6336 (can_sm_ref_p): Pass LOOP as additional argument to
6339 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6342 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
6343 being an offsettable address.
6345 2016-08-10 Martin Liska <mliska@suse.cz>
6347 PR gcov-profile/58306
6348 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
6349 atomic variants of profile update functions.
6351 2016-08-10 Martin Liska <mliska@suse.cz>
6353 Cherry picked (and modified) from google-4_7 branch
6354 2012-12-26 Rong Xu <xur@google.com>
6355 * common.opt (fprofile-update): Add new flag.
6356 * coretypes.h: Define enum profile_update.
6357 * doc/invoke.texi: Document -fprofile-update.
6358 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
6359 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
6360 * tree-profile.c (gimple_init_edge_profiler): Generate
6361 also atomic profiler update.
6362 (gimple_gen_edge_profiler): Likewise.
6364 2016-08-10 David Malcolm <dmalcolm@redhat.com>
6366 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
6367 stack_usage_file to NULL after fclose calls.
6369 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6372 * reload.c (push_reload): Compute subreg_in_class for
6373 subregs of constants and plus expressions. Remove special
6374 handling of SYMBOL_REFs.
6376 2016-08-10 Alan Modra <amodra@gmail.com>
6379 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
6380 SImode for TARGET_E500_DOUBLE when given SImode.
6382 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
6384 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
6385 unused variable __O.
6387 2016-08-09 Martin Liska <mliska@suse.cz>
6389 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
6390 _gcov_reset to __gcov_reset.
6391 * doc/gcov-tool.texi: Fix typo.
6393 2016-08-09 Martin Liska <mliska@suse.cz>
6395 * value-prof.c (gimple_divmod_values_to_profile): Do not
6396 instrument MOD histogram if a value is not a SSA name.
6398 2016-08-09 Martin Liska <mliska@suse.cz>
6400 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
6403 2016-08-09 Renlin Li <renlin.li@arm.com>
6406 * calls.c (prepare_call_address): Convert funexp to Pmode when
6408 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
6409 (sibcall_value): Likewise.
6411 2016-08-09 Marek Polacek <polacek@redhat.com>
6414 * cselib.c (cselib_expand_value_rtx_1): Add return.
6415 * gengtype.c (dbgprint_count_type_at): Likewise.
6416 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
6417 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
6419 2016-08-09 Martin Jambor <mjambor@suse.cz>
6422 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
6423 if instance is a MEM_REF.
6425 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
6428 * config/i386/i386.md (*movtf_internal): Use
6429 lra_in_progress || reload_completed instead of !can_create_pseudo_p
6430 in the insn constraint.
6431 (*movxf_internal): Ditto.
6432 (*movdf_internal): Ditto.
6433 (*movsf_internal): Ditto.
6435 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6437 PR tree-optimization/72772
6438 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6441 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6443 PR tree-optimization/72772
6444 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6446 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6447 parameter STOP and update calls. Move expand_simple_operations
6448 function call from here...
6449 (simplify_using_initial_conditions): ...to here. Delete parameter
6451 (tree_simplify_using_condition): Delete parameter STOP.
6452 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6453 simplify_using_initial_conditions.
6455 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
6458 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6459 Use create_tmp_var_raw instead of create_tmp_var.
6461 2016-08-09 Richard Biener <rguenther@suse.de>
6463 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6464 Treat same SSA names related.
6466 2016-08-09 Jakub Jelinek <jakub@redhat.com>
6468 PR tree-optimization/72824
6469 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6470 real_zerop is not negative.
6472 2016-08-09 Richard Biener <rguenther@suse.de>
6474 PR tree-optimization/71802
6475 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6476 all merge opportunities with the predecessor.
6478 2016-08-09 Richard Biener <rguenther@suse.de>
6481 * ipa-prop.c (ipa_modify_formal_parameters): Build
6482 parameter types with natural alignment also for the
6485 2016-08-08 Andi Kleen <ak@linux.intel.com>
6487 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6489 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6492 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6493 do-nothing langhook.
6494 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6495 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6496 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6497 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6499 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6502 * input.c: Ensure that HAVE_ICONV is defined.
6504 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6507 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6508 private vars for lastprivate and for linear iterator.
6511 * omp-simd-clone.c: Include varasm.h.
6512 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6513 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6514 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
6515 update function name.
6517 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6519 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6520 (avr_diagnose_devicespecs_error): Remove.
6521 (avr_devicespecs_file): Remove composing absolute path for specfile
6522 and its verbose info. Remove conditions to check specs-file,
6524 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6526 PR rtl-optimization/72821
6527 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6528 just return false for them.
6530 2016-08-08 Alan Modra <amodra@gmail.com>
6533 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6534 toc refs created during reload. Update function comment.
6536 2016-08-08 Alan Modra <amodra@gmail.com>
6539 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6540 alternatives. Put loads first, then stores, and reg/reg moves
6541 within same class later. Delete attr length.
6543 2016-08-08 Alan Modra <amodra@gmail.com>
6546 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6547 (mem_operand_ds_form): New predicate.
6548 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6549 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6550 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6551 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6552 (extendsfdf2_fpr): Replace o constraint with wY.
6554 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
6556 * tree-ssa-threadbackward.c: Include tree-inline.h
6557 (profitable_jump_thread_path): Use estimate_num_insns to estimate
6558 size of copied block; for cold paths reduce duplication.
6559 (find_jump_threads_backwards): Remove redundant tests.
6560 (pass_thread_jumps::gate): Enable for -Os.
6562 2016-08-07 Jakub Jelinek <jakub@redhat.com>
6565 * stor-layout.c (layout_decl): Fix up formatting.
6566 (relayout_decl): Allow DECL to be FIELD_DECL.
6568 2016-08-07 Alan Modra <amodra@gmail.com>
6570 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6572 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6574 * data-streamer-in.c (streamer_read_wide_int): New.
6575 (streamer_read_widest_int): Renamed function.
6576 * data-streamer-out.c (streamer_write_wide_int): New
6577 (streamer_write_widest_int): Renamed function.
6578 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6580 (input_cfg): Call renamed function.
6581 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6583 (output_cfg): Call renamed function.
6584 * data-streamer.h: Add declarations.
6586 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6588 * tree-ssa-ccp.c (extend_mask): New param sgn.
6589 Remove ORing with wi::mask.
6590 (get_default_value): Adjust call to extend_mask to pass sign.
6591 (evaluate_stmt): Likewise.
6593 2016-08-06 Jakub Jelinek <jakub@redhat.com>
6595 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6598 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6600 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6601 transform if operand's type is pointer to function or method.
6603 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6605 PR tree-optimization/18046
6606 * tree-ssa-threadedge.c: Include cfganal.h.
6607 (simplify_control_statement_condition): If simplifying a
6608 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6609 with the dominating ASSERT_EXPR before handing it off to VRP.
6610 Mention that a CASE_LABEL_EXPR may be returned.
6611 (thread_around_empty_blocks): Adjust to handle
6612 simplify_control_statement_condition() returning a
6614 (thread_through_normal_block): Likewise.
6615 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6616 a switch statement by trying to determine which case label
6619 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
6621 PR rtl-optimization/69847
6622 * lra-constraints.c (process_invariant_for_inheritance): Save
6623 pattern instead of src.
6624 (remove_inheritance_pseudos): Use the pattern. Add assert.
6626 2016-08-05 David Malcolm <dmalcolm@redhat.com>
6628 * input.c (string_concat::string_concat): New constructor.
6629 (string_concat_db::string_concat_db): New constructor.
6630 (string_concat_db::record_string_concatenation): New method.
6631 (string_concat_db::get_string_concatenation): New method.
6632 (string_concat_db::get_key_loc): New method.
6633 (class auto_cpp_string_vec): New class.
6634 (get_substring_ranges_for_loc): New function.
6635 (get_source_range_for_substring): New function.
6636 (get_num_source_ranges_for_substring): New function.
6637 (class selftest::lexer_test_options): New class.
6638 (struct selftest::lexer_test): New struct.
6639 (class selftest::ebcdic_execution_charset): New class.
6640 (selftest::ebcdic_execution_charset::s_singleton): New variable.
6641 (selftest::lexer_test::lexer_test): New constructor.
6642 (selftest::lexer_test::~lexer_test): New destructor.
6643 (selftest::lexer_test::get_token): New method.
6644 (selftest::assert_char_at_range): New function.
6645 (ASSERT_CHAR_AT_RANGE): New macro.
6646 (selftest::assert_num_substring_ranges): New function.
6647 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6648 (selftest::assert_has_no_substring_ranges): New function.
6649 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6650 (selftest::test_lexer_string_locations_simple): New function.
6651 (selftest::test_lexer_string_locations_ebcdic): New function.
6652 (selftest::test_lexer_string_locations_hex): New function.
6653 (selftest::test_lexer_string_locations_oct): New function.
6654 (selftest::test_lexer_string_locations_letter_escape_1): New function.
6655 (selftest::test_lexer_string_locations_letter_escape_2): New function.
6656 (selftest::test_lexer_string_locations_ucn4): New function.
6657 (selftest::test_lexer_string_locations_ucn8): New function.
6658 (selftest::uint32_from_big_endian): New function.
6659 (selftest::test_lexer_string_locations_wide_string): New function.
6660 (selftest::uint16_from_big_endian): New function.
6661 (selftest::test_lexer_string_locations_string16): New function.
6662 (selftest::test_lexer_string_locations_string32): New function.
6663 (selftest::test_lexer_string_locations_u8): New function.
6664 (selftest::test_lexer_string_locations_utf8_source): New function.
6665 (selftest::test_lexer_string_locations_concatenation_1): New
6667 (selftest::test_lexer_string_locations_concatenation_2): New
6669 (selftest::test_lexer_string_locations_concatenation_3): New
6671 (selftest::test_lexer_string_locations_macro): New function.
6672 (selftest::test_lexer_string_locations_stringified_macro_argument):
6674 (selftest::test_lexer_string_locations_non_string): New function.
6675 (selftest::test_lexer_string_locations_long_line): New function.
6676 (selftest::test_lexer_char_constants): New function.
6677 (selftest::input_c_tests): Call the new test functions once per
6678 case within the line_table test matrix.
6679 * input.h (struct string_concat): New struct.
6680 (struct location_hash): New struct.
6681 (class string_concat_db): New class.
6682 * substring-locations.h: New header.
6684 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6686 PR tree-optimization/72810
6687 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6688 the type of the case labels when truncating.
6690 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6693 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6694 (aarch64_fp16_ptr_type_node): Likewise.
6695 * config/aarch64/aarch64-simd-builtins.c
6696 (aarch64_fp16_ptr_type_node): Define.
6697 (aarch64_init_fp16_types): New, refactored out of...
6698 (aarch64_init_builtins): ...here, update to call
6699 aarch64_init_fp16_types.
6700 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6702 (aapcs_vfp_sub_candidate): Likewise.
6704 2016-08-05 Martin Liska <mliska@suse.cz>
6705 Joshua Cranmer <Pidgeot18@gmail.com>
6707 * gcov.c (line_t::has_block): New function.
6708 (enum loop_type): New enum.
6709 (handle_cycle): New function.
6710 (unblock): Likewise.
6711 (circuit): Likewise.
6712 (get_cycles_count): Likewise.
6713 (accumulate_line_counts): Use new loop detection algorithm.
6715 2016-08-05 Martin Liska <mliska@suse.cz>
6717 * gcov.c (output_intermediate_file): Rename
6718 function_info::line_next to next_file_fn.
6719 (process_file): Likewise.
6720 (read_graph_file): Likewise.
6721 (accumulate_line_counts): Likewise.
6722 (output_lines): Likewise.
6724 2016-08-05 Richard Biener <rguenther@suse.de>
6726 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6727 restriction on threading to a loop header.
6729 2016-08-05 Richard Biener <rguenther@suse.de>
6731 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6732 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6733 adjust loop info accordingly.
6735 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
6737 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6738 before folding call to __builtin_constant_p with parameters to false.
6740 2016-08-05 Alan Modra <amodra@gmail.com>
6742 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6743 code accidentally committed 2016-05-02 providing class when given
6746 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6748 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6749 the case label ranges that partially overlap with OP's value
6752 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
6755 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6756 Cast builtin function result to __mmask16 instead of __mmask8.
6757 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6758 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6759 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6761 2016-08-04 David Malcolm <dmalcolm@redhat.com>
6763 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6764 (ASSERT_TRUE_AT): New macro.
6765 (ASSERT_FALSE): Reimplement in terms of...
6766 (ASSERT_FALSE_AT): New macro.
6767 (ASSERT_STREQ_AT): Fix typo in comment.
6769 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6771 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6772 labels are exhaustive, designate the label with the widest
6773 range to be the default label.
6775 2016-08-04 Andrew Pinski <apinski@cavium.com>
6777 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6778 (thunderx_tunings): Use thunderx_vector_cost instead of
6779 generic_vector_cost.
6781 2016-08-04 Martin Liska <mliska@suse.cz>
6783 * gcov.c (main): Fix GNU coding style.
6784 (output_intermediate_file): Likewise.
6785 (process_file): Likewise.
6786 (generate_results): Likewise.
6787 (release_structures): Likewise.
6788 (create_file_names): Likewise.
6789 (find_source): Likewise.
6790 (read_graph_file): Likewise.
6791 (find_exception_blocks): Likewise.
6792 (canonicalize_name): Likewise.
6793 (make_gcov_file_name): Likewise.
6794 (mangle_name): Likewise.
6795 (accumulate_line_counts): Likewise.
6796 (output_branch_count): Likewise.
6797 (read_line): Likewise.
6799 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6801 PR rtl-optimization/71779
6802 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6803 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6804 or if it was truncated.
6806 PR rtl-optimization/70903
6807 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6809 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6811 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6812 accessing SSA_NAME_PTR_INFO.
6814 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6817 * common/config/avr/avr-common.c (avr_option_optimization_table)
6818 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6820 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6823 * config/avr/avr.md: New pattern to work around do_store_flag
6824 generating shift instructions for bit extractions.
6826 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6828 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6830 (add_equivalence): Likewise.
6831 (get_value_range): Allocate value range with vrp_value_range_pool.
6832 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6833 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6835 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
6837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6838 the default for the rs6000 port.
6840 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6843 * calls.c (special_function_p): Remove special handling of
6844 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6845 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
6846 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6848 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
6851 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6852 Don't stop on regular insns.
6854 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6856 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6857 size to DImode boundary.
6858 (nvptx_propagate): Likewise.
6860 2016-08-03 Alan Modra <amodra@gmail.com>
6862 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6863 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6864 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6865 from -mefficient-unaligned-vector. Note that this affects fp too.
6867 2016-08-03 Alan Modra <amodra@gmail.com>
6869 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6872 2016-08-03 Alan Modra <amodra@gmail.com>
6874 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6875 to a reg. Localize vars.
6877 2016-08-03 Alan Modra <amodra@gmail.com>
6879 * config/rs6000/rs6000.opt: Remove negatives from help strings
6882 2016-08-03 Alan Modra <amodra@gmail.com>
6884 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6885 Delete duplicated code.
6887 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6890 * lra-spills.c (regno_in_use_p): New.
6891 (lra_final_code_change): Use it.
6893 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6895 PR rtl-optimization/69847
6896 * lra-int.h (struct lra-reg): Use restore_rtx instead of
6898 (lra_rtx_hash): New.
6899 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6901 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6902 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6903 * lra-spills.c (lra_final_code_change): Don't delete insn when the
6904 next insn is USE with the same reg as the current insn source.
6905 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6907 (lra_constraints_init): Call initiate_invariants.
6908 (lra_constraints_finish): Call finish_invariants.
6909 (struct invariant, invariant_t, invariant_ptr_t): New.
6910 (const_invariant_ptr_t, invariants, invariants_pool): New.
6911 (invariant_table, invariant_hash, invariant_eq_p): New.
6912 (insert_invariant, initiate_invariants, finish_invariants): New.
6913 (clear_invariants, invalid_invariant_regs): New.
6914 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6915 instead of restore_regno.
6916 (invariant_p, process_invariant_for_inheritance): New.
6917 (inherit_in_ebb): Implement invariant inheritance.
6918 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6919 (remove_inheritance_pseudos): Implement undoing invariant
6921 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6922 instead of restore_regno.
6923 * lra-assigns.c (regno_live_length): New.
6924 (reload_pseudo_compare_func): Use regno_live_length.
6925 (assign_by_spills): Use restore_rtx instead of restore_regno.
6926 (lra_assign): Ditto. Initiate regno_live_length.
6928 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
6930 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6931 __builtin_aarch64_fmindf.
6933 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6935 PR tree-optimization/34114
6936 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6937 information for more control IVs.
6939 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6941 PR tree-optimization/34114
6942 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6943 PLUS_EXPR case. Handle SSA_NAME case.
6945 2016-08-02 Tamar Christina <tamar.christina@arm.com>
6947 * config/aarch64/aarch64-simd-builtins.def
6948 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6949 (__builtin_aarch64_fmaxdf): Likewise.
6950 (__builtin_aarch64_smin_nandf): Likewise.
6951 (__builtin_aarch64_smax_nandf): Likewise.
6952 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6953 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6954 (<fmaxmin><mode>3): ...this.
6955 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6956 (vminnm_f64): Likewise.
6957 (vmin_f64): Likewise.
6958 (vmax_f64): Likewise.
6959 * config/aarch64/iterators.md (FMAXMIN): Merge with...
6960 (FMAXMIN_UNS): ...this.
6961 (fmaxmin): Merged with
6962 (fmaxmin_op): ...this...
6963 (maxmin_uns_op): ...in to this.
6965 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6967 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6968 Add support for vec_extract on vector float, vector int, vector
6969 short, and vector char vector types.
6970 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6971 vector float, vector int, vector short, and vector char
6972 optimizations on 64-bit ISA 2.07 systems for both constant and
6973 variable element numbers.
6974 (rs6000_split_vec_extract_var): Likewise.
6975 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6976 Altivec registers on ISA 2.07 and above.
6977 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6978 which never was matched due to the split occuring before register
6979 allocation (and the code would not have worked on little endian
6980 systems if it did match). Allow extracts to go to the Altivec
6981 registers if ISA 2.07 (power8). Change from using "" around the
6982 C++ code to using {}'s.
6983 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6984 vec_extracts when the vector is in memory.
6985 (vsx_extract_v4sf_var): New insn to optimize vector float
6986 vec_extracts when the element number is variable on 64-bit ISA
6988 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6989 for 64-bit ISA 2.07 as well as ISA 3.0.
6990 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6991 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6992 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6993 optimize vector int, vector short, and vector char vec_extracts
6994 when the vector is in memory.
6995 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6996 optimize vector int, vector short, and vector char vec_extracts
6997 when the element number is variable.
6999 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7002 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7003 does not overlap with other symbol flags.
7005 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7007 * config/aarch64/aarch64.h (aarch64_frame):
7008 Remove padding0 and hardfp_offset. Add locals_offset,
7009 initial_adjust, callee_adjust, callee_offset and final_adjust.
7010 * config/aarch64/aarch64.c (aarch64_layout_frame):
7011 Remove unused padding0 and hardfp_offset initializations.
7012 Choose frame layout and set frame variables accordingly.
7013 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7014 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7015 (aarch64_pop_regs): Likewise.
7016 (aarch64_expand_prologue): Remove all decision code, just emit
7017 prolog according to frame variables.
7018 (aarch64_expand_epilogue): Remove all decision code, just emit
7019 epilog according to frame variables.
7020 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7022 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7025 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7026 fix_debug_reg_uses after changing source register mode to
7027 V1TImode if source register is undefined.
7029 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7031 PR tree-optimization/71818
7032 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7033 with non invariant evolutions
7035 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7038 * config/avr/avr.md (length) [branch]: Correct insn length
7039 attribute for forward branches.
7041 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7043 * doc/extend.texi (AVR Built-in Functions): Document
7045 * config/avr/builtins.def (NOPS): New.
7046 * config/avr/avr.c (avr_expand_nops): New static function.
7047 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7049 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7051 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7052 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7055 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7057 * config/aarch64/aarch64.c (vulcan_tunings): Update
7058 vulcan L1 cache_line_size.
7060 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7062 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7063 function that takes a vector memory address, a hard register, an
7064 element number and a temporary base register, and recreates an
7065 address that points to the appropriate element within the vector.
7066 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7067 (rs6000_split_vec_extract_var): Add support for the target of a
7068 vec_extract with variable element number being a scalar memory
7070 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7072 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7073 vsx_extract_<mode>_load insn with a new insn that optimizes
7074 storing either element to a memory location, using scratch
7075 registers to pick apart the vector and reconstruct the address.
7076 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7077 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7078 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7080 (vsx_extract_<mode>_var): Add support for extracting a variable
7081 element number from memory.
7083 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7085 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7086 when testing for compares against constants of the form 0xabab.
7088 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7090 PR tree-optimization/57558
7091 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7093 (vect_loop_versioning): Support versioning with niter assumptions.
7094 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7095 (vect_get_loop_niters): New parameter. Reimplement to support
7096 assumptions in loop niter info.
7097 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7098 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7099 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7100 Support loop versioning for niters.
7101 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7102 (vect_free_loop_info_assumptions): New function.
7103 (vectorize_loops): Free loop niter info for loops with flag
7104 LOOP_F_ASSUMPTIONS set if vectorization failed.
7105 * tree-vectorizer.h (struct _loop_vec_info): New field
7106 num_iters_assumptions.
7107 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7108 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7109 (LOOP_REQUIRES_VERSIONING): New macro.
7110 (vect_free_loop_info_assumptions): New decl.
7112 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7114 * cfgloop.h (struct loop): New field constraints.
7115 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7116 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7118 * cfgloop.c (alloc_loop): Initialize new field.
7119 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7120 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7121 Adjust niter analysis wrto loop constraints.
7122 * doc/loop.texi (@node Number of iterations): Add description for loop
7125 2016-07-29 Marek Polacek <polacek@redhat.com>
7128 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7129 (ix86_expand_round_builtin): Likewise.
7131 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7132 Georg-Johann Lay <avr@gjlay.de>
7134 PR rtl-optimization/71976
7135 * combine.c (get_last_value): Return 0 if the argument for which
7136 the function is called has a wider mode than the recorded value.
7138 2016-07-29 Marek Polacek <polacek@redhat.com>
7141 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7142 (altivec_expand_st_builtin): Likewise.
7144 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7146 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7147 introduced in r238381.
7149 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7152 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7153 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7155 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7157 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7159 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7160 Add support for vec_extract of vector double or vector long having
7161 a variable element number on 64-bit ISA 2.07 systems or newer.
7162 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7164 (rs6000_split_vec_extract_var): New function to split a
7165 vec_extract built-in function with variable element number.
7166 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7168 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7169 (UNSPEC_VSX_EXTRACT): Likewise.
7170 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7171 direct move instructions to be generated on 64-bit ISA 2.07
7172 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7174 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7175 arguments for vec_extract variable element.
7176 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7177 vec_extract with variable element on V2DFmode and V2DImode
7179 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7180 -mupper-regs-df requirement, since it isn't needed.
7181 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7182 do direct moves on 64-bit systems, which allows optimization of
7183 vec_extract on 64-bit ISA 2.07 systems and newer.
7185 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7186 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7188 * config/aarch64/aarch64.md
7189 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7191 (<optab>qihi2_aarch64): Likewise, and split into two.
7192 (extendqihi2_aarch64): New.
7193 (zero_extendqihi2_aarch64): New.
7194 * config/aarch64/iterators.md (ldrxt): Remove.
7195 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7198 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7200 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7202 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7204 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7205 (aarch64_push_reg): New function to push 1 or 2 registers.
7206 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7207 (aarch64_expand_prologue): Use aarch64_push_regs.
7208 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7210 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7212 PR tree-optimization/71734
7213 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7214 attribute instead of REF_LOOP and use it.
7215 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7216 set it for Loops having non-zero safelen attribute.
7217 (ref_indep_loop_p): Pass zero as initial value for safelen.
7219 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7223 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7224 call using chkp_gimple_call_builtin_p.
7225 (chkp_copy_bounds_for_assign): Likewise.
7227 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7229 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7230 * config/arm/arm-protos.h (struct tune_params): Likewise.
7231 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7232 (cortex_a9_sched_adjust_cost): Likewise.
7233 (fa726te_sched_adjust_cost): Likewise.
7234 (arm_adjust_cost): Likewise.
7235 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7236 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7237 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7238 * config/i386/i386.c (ix86_adjust_cost): Likewise.
7239 * config/ia64/ia64.c: Likewise.
7240 * config/m68k/m68k.c: Likewise.
7241 * config/mep/mep.c (mep_adjust_cost): Likewise.
7242 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7244 * config/mips/mips.c (mips_adjust_cost): Likewise.
7245 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7247 * config/pa/pa.c (pa_adjust_cost): Likewise.
7248 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7249 (rs6000_debug_adjust_cost): Likewise.
7250 * config/sh/sh.c (sh_adjust_cost): Likewise.
7251 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7252 (hypersparc_adjust_cost): Likewise.
7253 (sparc_adjust_cost): Likewise.
7254 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7255 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7256 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7258 * config/visium/visium.c (visium_adjust_cost): Likewise.
7259 * doc/tm.texi: Regenerate.
7260 * haifa-sched.c (dep_cost_1): Adjust.
7261 * target.def: Merge adjust_cost and adjust_cost_2.
7263 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7265 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7267 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7269 * store-motion.c (struct st_expr): Make pattern_regs a vector.
7270 (extract_mentioned_regs): Append to a vector instead of
7271 returning a rtx_expr_list.
7272 (st_expr_entry): Adjust.
7273 (free_st_expr_entry): Likewise.
7274 (store_ops_ok): Likewise.
7275 (store_killed_in_insn): Likewise.
7276 (find_moveable_store): Likewise.
7278 2016-07-28 Martin Liska <mliska@suse.cz>
7280 PR gcov-profile/68025
7281 * tree-profile.c (tree_profiling): Respect
7282 no_profile_instrument_function attribute.
7283 * doc/extend.texi: Document no_profile_instrument_function
7286 2016-07-28 Martin Liska <mliska@suse.cz>
7288 PR rtl-optimization/70944
7289 * combine.c (make_compound_operation):
7290 Do not allow make_compound_operation for vector mode
7292 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
7295 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
7296 before calling get_ops.
7298 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7300 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
7301 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
7302 (BITS_PER_UNIT_LOG): Remove.
7303 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
7304 * expr.c (expand_assignment): Likewise.
7305 * stor-layout.c (initialize_sizetypes): Likewise.
7307 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7309 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
7310 signature of rs6000_expand_vector_extract so that the element
7311 number is a RTX instead of a constant integer.
7312 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
7314 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
7315 (altivec_expand_vec_ext_builtin): Likewise.
7316 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
7317 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
7318 MFVSRLD instruction.
7320 2016-07-27 David Malcolm <dmalcolm@redhat.com>
7322 * input.c (get_pure_location): Move here from tree.c.
7323 (make_location): Likewise. Add header comment.
7324 (selftest::test_accessing_ordinary_linemaps): Verify
7325 pure_location_p, make_location, get_location_from_adhoc_loc and
7327 * input.h (get_pure_location): Move declaration here from tree.h.
7328 (get_finish): Likewise for inline function.
7329 (make_location): Likewise for declaration.
7330 * tree.c (get_pure_location): Move to input.c.
7331 (make_location): Likewise.
7332 * tree.h (get_pure_location): Move declaration to tree.h.
7333 (get_finish): Likewise for inline function.
7334 (make_location): Likewise for declaration.
7336 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7339 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
7341 2016-07-27 David Malcolm <dmalcolm@redhat.com>
7343 * system.h (STATIC_ASSERT): Use static_assert if building
7346 2016-07-27 Richard Biener <rguenther@suse.de>
7348 PR tree-optimization/72517
7349 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7350 Revert change to not compute read-read dependences.
7352 2016-07-27 Richard Biener <rguenther@suse.de>
7354 * predict.c (set_even_probabilities): Make nedges unsigned.
7356 2016-07-27 Martin Liska <mliska@suse.cz>
7358 * predict.c (set_even_probabilities): Handle unlikely edges.
7359 (combine_predictions_for_bb): Likewise.
7361 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7364 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
7365 __float128 support when we don't have hardware support, so that
7366 the IEEE built-in functions like isgreater, first call __unordkf3
7367 to make sure neither operand is a NaN, and if both operands are
7368 ordered, do the normal comparison.
7370 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
7372 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
7374 (extract_code_and_val_from_cond_with_ops): Verify that name is
7375 either cond_op0 or cond_op1.
7377 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
7379 PR tree-optimization/18046
7380 * genmodes.c (emit_mode_size_inline): Emit an assert that
7381 verifies that mode is a valid array index.
7382 (emit_mode_nuinits_inline): Likewise.
7383 (emit_mode_inner_inline): Likewise.
7384 (emit_mode_unit_size_inline): Likewise.
7385 (emit_mode_unit_precision_inline): Likewise.
7386 * tree-vrp.c: Include params.h.
7387 (find_switch_asserts): Register edge assertions for the default
7388 label which correspond to the anti-ranges of each case label.
7389 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
7390 * doc/invoke.texi: Document it.
7392 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7394 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
7395 and unnecessary call to gimple_bb.
7397 2016-07-26 Richard Biener <rguenther@suse.de>
7399 PR rtl-optimization/71984
7400 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
7403 2016-07-26 Richard Biener <rguenther@suse.de>
7406 * expmed.c (extract_bit_field_1): Constrain the vector mode
7407 with element size matching the extraction mode size when
7408 choosing a better vector mode to do the extraction from.
7410 2016-07-26 Richard Biener <rguenther@suse.de>
7411 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7414 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
7417 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7419 * tree-ssa-structalias.c (struct scc_info): Change types of
7420 members to auto_sbitmap and auto_vec.
7421 (scc_info::scc_info): New constructor.
7422 (scc_info::~scc_info): New destructor.
7423 (init_scc_info): Remove.
7424 (free_scc_info): Remove.
7425 (find_indirect_cycles): Adjust.
7426 (perform_var_substitution): Likewise.
7427 (free_var_substitution_info): Likewise.
7429 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7431 * tree-outof-ssa.c (struct elim_graph): Change type of members
7432 to auto_vec and auto_sbitmap.
7433 (elim_graph::elim_graph): New constructor.
7434 (delete_elim_graph): Remove.
7435 (expand_phi_nodes): Adjust.
7437 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7439 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7440 (new_elim_graph): Adjust.
7441 (clear_elim_graph): Likewise.
7442 (delete_elim_graph): Likewise.
7443 (elim_graph_size): Likewise.
7444 (elim_graph_add_node): Likewise.
7445 (elim_graph_add_edge): Likewise.
7446 (elim_graph_remove_succ_edge): Likewise.
7447 (eliminate_name): Likewise.
7448 (eliminate_build): Likewise.
7449 (elim_forward): Likewise.
7450 (elim_unvisited_predecessor): Likewise.
7451 (elim_backward): Likewise.
7452 (elim_create): Likewise.
7453 (eliminate_phi): Likewise.
7454 (expand_phi_nodes): Likewise.
7456 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7458 * bt-load.c (compute_out): Use auto_sbitmap class.
7459 (link_btr_uses): Likewise.
7460 * cfganal.c (mark_dfs_back_edges): Likewise.
7461 (post_order_compute): Likewise.
7462 (inverted_post_order_compute): Likewise.
7463 (pre_and_rev_post_order_compute_fn): Likewise.
7464 (single_pred_before_succ_order): Likewise.
7465 * cfgexpand.c (pass_expand::execute): Likewise.
7466 * cfgloop.c (verify_loop_structure): Likewise.
7467 * cfgloopmanip.c (fix_bb_placements): Likewise.
7468 (remove_path): Likewise.
7469 (update_dominators_in_loop): Likewise.
7470 * cfgrtl.c (break_superblocks): Likewise.
7471 * ddg.c (check_sccs): Likewise.
7472 (create_ddg_all_sccs): Likewise.
7473 * df-core.c (df_worklist_dataflow): Likewise.
7474 * dse.c (dse_step3): Likewise.
7475 * except.c (eh_region_outermost): Likewise.
7476 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7477 * gcse.c (prune_expressions): Likewise.
7478 (prune_insertions_deletions): Likewise.
7479 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7480 * graph.c (draw_cfg_nodes_no_loops): Likewise.
7481 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7482 * lcm.c (compute_earliest): Likewise.
7483 (compute_farthest): Likewise.
7484 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7485 (unroll_loop_runtime_iterations): Likewise.
7486 (unroll_loop_stupid): Likewise.
7487 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7488 * lra-lives.c: Likewise.
7489 * lra.c (lra): Likewise.
7490 * modulo-sched.c (schedule_reg_moves): Likewise.
7491 (optimize_sc): Likewise.
7492 (get_sched_window): Likewise.
7493 (sms_schedule_by_order): Likewise.
7494 (check_nodes_order): Likewise.
7495 (order_nodes_of_sccs): Likewise.
7496 (order_nodes_in_scc): Likewise.
7497 * recog.c (split_all_insns): Likewise.
7498 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7499 * reload1.c (reload): Likewise.
7500 * sched-rgn.c (haifa_find_rgns): Likewise.
7501 (split_edges): Likewise.
7502 (compute_trg_info): Likewise.
7503 * sel-sched.c (init_seqno): Likewise.
7504 * store-motion.c (remove_reachable_equiv_notes): Likewise.
7505 * tree-into-ssa.c (update_ssa): Likewise.
7506 * tree-ssa-live.c (live_worklist): Likewise.
7507 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7508 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7510 (try_peel_loop): Likewise.
7511 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7513 * tree-ssa-pre.c (compute_antic): Likewise.
7514 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7515 * tree-stdarg.c (reachable_at_most_once): Likewise.
7516 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7517 * var-tracking.c (vt_find_locations): Likewise.
7519 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7521 * sbitmap.h (auto_sbitmap): New class.
7523 2016-07-26 Alan Modra <amodra@gmail.com>
7526 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7529 2016-07-25 David Malcolm <dmalcolm@redhat.com>
7531 * input.c (selftest::temp_source_file::temp_source_file): Fix
7532 missing "%s" in fprintf.
7534 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
7537 * cselib.c (cselib_process_insn): Invalidate argument slots for
7540 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7542 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7543 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7544 vmulxh_lane_f16, vmulxh_laneq_f16): New.
7546 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7548 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7549 * config/aarch64/aarch64.md (fma, fnma): Support HF.
7550 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7552 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7554 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7555 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7557 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7558 (add<mode>3): Likewise.
7559 (sub<mode>3): Likewise.
7560 (mul<mode>3): Likewise.
7561 (div<mode>3): Likewise.
7562 (*div<mode>3): Likewise.
7563 (<fmaxmin><mode>3): Extend to HF.
7564 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7565 (fabd<mode>3): Likewise.
7566 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7567 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7568 (aarch64_fmulx<mode>): Likewise.
7569 (aarch64_fac<optab><mode>): Likewise.
7570 (aarch64_frecps<mode>): Likewise.
7571 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7572 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7573 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7574 (VSDQ_HSDI): Support HI.
7575 (fcvt_target, FCVT_TARGET): Likewise.
7576 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7577 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7578 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7579 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7580 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7581 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7582 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7585 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7587 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7588 * config/aarch64/aarch64-builtins.c (hi_UP): New.
7589 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7590 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7592 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7593 (aarch64_cm<optab><mode>): Likewise.
7594 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7595 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7596 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7597 (sqrt<mode>2): Likewise.
7598 (*sqrt<mode>2): Likewise.
7599 (abs<mode>2): Likewise.
7600 (<optab><mode>hf2): New pattern for HF mode.
7601 (<optab>hihf2): Likewise.
7602 * config/aarch64/arm_neon.h: Include arm_fp16.h.
7603 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7604 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7606 * config/aarch64/arm_fp16.h: New file.
7607 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7608 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7609 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7610 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7611 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7612 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7613 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7614 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7615 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7616 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7617 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7618 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7621 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7623 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7624 reduc_smin_scal_): Use VDQIF_F16.
7625 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7626 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7628 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7629 * config/aarch64/iterators.md (VDQIF_F16): New.
7630 (vp): Support HF modes.
7631 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7632 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7634 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7636 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7637 "*aarch64_mulx_elt_from_dup<mode>".
7638 (*aarch64_mul3_elt<mode>): Update schedule type.
7639 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7640 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7641 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7642 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7643 (f, fp): Support HF modes.
7644 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7645 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7646 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7647 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7648 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7649 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7651 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7653 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7654 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7656 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7659 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7661 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7662 * config/aarch64/aarch64-simd.md
7663 (aarch64_rsqrts<mode>): Extend to HF modes.
7664 (fabd<mode>3): Likewise.
7665 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7666 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7667 (aarch64_<maxmin_uns>p<mode>): Likewise.
7668 (<su><maxmin><mode>3): Likewise.
7669 (<maxmin_uns><mode>3): Likewise.
7670 (<fmaxmin><mode>3): Likewise.
7671 (aarch64_faddp<mode>): Likewise.
7672 (aarch64_fmulx<mode>): Likewise.
7673 (aarch64_frecps<mode>): Likewise.
7674 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7675 (add<mode>3): Extend to HF modes.
7676 (sub<mode>3): Likewise.
7677 (mul<mode>3): Likewise.
7678 (div<mode>3): Likewise.
7679 (*div<mode>3): Likewise.
7680 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7682 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7683 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7684 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7685 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7686 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7687 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7688 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7689 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7690 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7691 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7692 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7693 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7694 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7695 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7697 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7699 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7700 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7701 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7702 (neg<mode>2): Likewise.
7703 (abs<mode>2): Likewise.
7704 (<frint_pattern><mode>2): Likewise.
7705 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7706 (<optab><VDQF:mode><fcvt_target>2): Likewise.
7707 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7708 (ftrunc<VDQF:mode>2): Likewise.
7709 (<optab><fcvt_target><VDQF:mode>2): Likewise.
7710 (sqrt<mode>2): Likewise.
7711 (*sqrt<mode>2): Likewise.
7712 (aarch64_frecpe<mode>): Likewise.
7713 (aarch64_cm<optab><mode>): Likewise.
7714 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7716 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7717 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7719 * config/aarch64/arm_neon.h (vdup_n_f16): New.
7720 (vdupq_n_f16): Likewise.
7721 (vld1_dup_f16): Use vdup_n_f16.
7722 (vld1q_dup_f16): Use vdupq_n_f16.
7723 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7724 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7725 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7726 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7727 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7728 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7729 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7730 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7731 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7732 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7733 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7734 vsqrt_f16, vsqrtq_f16): New.
7736 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7738 * config/aarch64/aarch64-simd.md
7739 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7740 (aarch64_ext<mode>): Likewise.
7741 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7742 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7743 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7745 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7747 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7748 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7749 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7750 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7751 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7752 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7753 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7755 (vmov_n_f16): Reimplement using vdup_n_f16.
7756 (vmovq_n_f16): Reimplement using vdupq_n_f16..
7758 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7760 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7761 "frame_related_p". Generate CFA annotation when it's necessary.
7762 (aarch64_expand_prologue): Use aarch64_add_constant.
7763 (aarch64_expand_epilogue): Likewise.
7764 (aarch64_output_mi_thunk): Pass "false" when calling
7765 aarch64_add_constant.
7767 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7769 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7772 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7774 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7775 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7776 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7777 (aarch64_build_constant): Delete.
7779 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
7782 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7784 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7785 flag_toplevel_reorder.
7787 2016-07-25 Richard Biener <rguenther@suse.de>
7789 * cgraph.c (cgraph_node::verify_node): Compare against builtin
7790 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7791 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7792 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7793 (streamer_get_builtin_tree): Likewise.
7794 (streamer_write_builtin): Likewise.
7795 * lto-streamer.h (LTO_builtin_decl): Remove.
7796 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7797 (lto_input_scc): Remove LTO_builtin_decl handling.
7798 (lto_input_tree_1): Liekwise.
7799 * lto-streamer-out.c (lto_output_tree_1): Remove special
7800 handling of builtins.
7801 (DFS::DFS): Likewise.
7802 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7803 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7805 (streamer_write_builtin): Remove.
7807 2016-07-25 Martin Liska <mliska@suse.cz>
7809 * lto-cgraph.c (input_symtab): Don't call get_working_sets
7810 if flag_auto_profile is set to true.
7812 2016-07-25 Martin Liska <mliska@suse.cz>
7814 PR gcov-profile/71868
7815 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7816 have a function with multiple latches, count them all.
7818 2016-07-25 Martin Liska <mliska@suse.cz>
7820 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7822 2016-07-25 Martin Liska <mliska@suse.cz>
7824 PR tree-optimization/71987
7825 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7826 just for SSA_NAMEs. Fix GNU coding style.
7828 2016-07-25 Martin Liska <mliska@suse.cz>
7830 PR gcov-profile/64874
7831 * gcov-io.h: Update command about file format.
7832 * gcov-iov.c (main): Adapt the numbering scheme.
7834 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7837 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7838 whose result is used in PHI.
7839 (final_range_test_p): Likewise.
7840 (maybe_optimize_range_tests): Likewise.
7842 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7844 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7845 Reformat two multi-line strings.
7847 2016-07-22 Martin Sebor <msebor@redhat.com>
7849 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7851 2016-07-22 Martin Sebor <msebor@redhat.com>
7854 * doc/extend.texi (Compound Literals): Correct and clarify.
7855 (Cast to Union): Same.
7857 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
7859 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7860 comments to explain why certain error messages make mention of
7861 undocumented options.
7862 (rs6000_invalid_builtin): Change error messages to replace mention
7863 of undocumented options with mention of the -mcpu=power9 option
7864 that enables those undocumented options.
7865 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7866 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7867 definition of this macro to correct an existing error.
7868 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7869 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7870 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7871 descriptions of built-in functions so that they depend on
7872 -mcpu=power9 instead of on the corresponding undocumented flags.
7873 * doc/invoke.texi (Option Summary): Remove all mention of newly
7875 (IBM RS/6000 and PowerPC Options): Likewise.
7876 * doc/md.texi (Constraints for Particuliar Machines): Remove all
7877 mention of newly undocumented flags.
7879 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
7881 * ipa-cp.c (determine_versionability): Do not create constprop clones,
7882 when target_clones attribute is set.
7884 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7886 * common.opt (funsafe-loop-optimizations): Mark ignore.
7887 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7888 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7890 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7891 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7893 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7895 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7897 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7899 (number_of_iterations_exit): Warn missed loop optimization for
7900 possible infinite loops.
7902 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
7905 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7906 when to emit a ".machine" pseudo-op.
7908 2016-07-22 Martin Liska <mliska@suse.cz>
7910 PR gcov-profile/69028
7911 PR gcov-profile/62047
7912 * coverage.c (coverage_compute_lineno_checksum): Do not
7913 calculate checksum for fns w/o xloc.file.
7914 (coverage_compute_profile_id): Likewise.
7916 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
7918 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7919 (avr_secondary_reload): ...and implementation.
7920 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7921 * config/avr/avr.md (reload_in<mode>): Remove insns.
7922 (adjust_len) [lpm]: Remove insn attribute value.
7923 * config/avr/predicates.md (flash_operand): Remove insn predicate.
7925 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7928 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7930 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7931 * calls.c (special_function_p): Remove the special handling of the
7932 "__builtin_" prefix.
7934 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7937 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
7938 if STMT may be an alloca call.
7939 (gimple_alloca_call_p, alloca_call_p): Return only true for the
7940 builtin alloca call.
7941 * calls.h (gimple_maybe_alloca_call_p): New function.
7942 * tree-inline.c (inline_forbidden_p_stmt): Use
7943 gimple_maybe_alloca_call_p here.
7945 2016-07-21 David Malcolm <dmalcolm@redhat.com>
7947 * spellcheck-tree.c (best_macro_match::best_macro_match):
7948 Explictly specify the template arguments when invoking the base
7949 class constructor, to help older C++ compilers.
7951 2016-07-21 Jakub Jelinek <jakub@redhat.com>
7954 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7955 before builtin_decl_implicit.
7957 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7959 * optabs.c (emit_condiitonal_move): Short circuit for identical
7962 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7964 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7965 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
7966 (noce_conversion_profitable_p): New.
7967 (noce_try_store_flag_constants): Use it.
7968 (noce_try_addcc): Likewise.
7969 (noce_try_store_flag_mask): Likewise.
7970 (noce_try_cmove): Likewise.
7971 (noce_try_cmove_arith): Likewise.
7972 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7974 (noce_convert_multiple_sets): Move cost model to here, from...
7975 (bb_ok_for_noce_convert_multiple_sets) ...here.
7976 (noce_process_if_block): Update calls for above changes.
7977 (noce_find_if_block): Record new noce_if_info parameters.
7979 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7981 * target.def (max_noce_ifcvt_seq_cost): New.
7982 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7983 * doc/tm.texi: Regenerate.
7984 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7985 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7986 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7987 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7988 * doc/invoke.texi: Document new params.
7990 2016-07-21 Richard Biener <rguenther@suse.de>
7992 PR tree-optimization/71947
7993 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7994 ranges have useful limit_vr information.
7996 2016-07-21 Richard Biener <rguenther@suse.de>
7998 * function-tests.c (build_trivial_generic_function): Set
7999 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8000 * omp-low.c (create_omp_child_function): Likewise.
8001 (grid_expand_target_grid_body): Likewise.
8002 * cgraphunit.c (init_lowered_empty_function): Likewise.
8003 (cgraph_node::expand_thunk): Likewise.
8004 * tree-parloops.c (create_loop_fn): Likewise.
8005 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8007 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8009 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8012 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8014 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8015 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8016 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8017 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8018 values for insn attribute.
8019 * config/avr/avr.c (avr_out_insert_notbit): New function.
8020 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8021 ADJUST_LEN_INSV_NOTBIT_0/_7.
8022 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8024 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8026 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8027 (chrec_convert_1, chrec_convert): Ditto.
8028 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8029 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8030 * tree-vrp.c (adjust_range_with_scev): Ditto.
8031 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8032 (scev_var_range_cant_overflow): New function.
8033 (scev_probably_wraps_p): New parameter. Call above function.
8034 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8036 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8038 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8039 by removing computation of may_be_zero.
8041 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8043 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8045 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8047 Improving concepts performance and diagnostics.
8048 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8049 for constraint satisfaction and subsumption.
8050 * timevar.h (auto_timevar): New constructor that matches the push/pop
8051 pattern of usage in pt.c.
8053 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8055 * hwint.h (HOST_WIDE_INT_0): New define.
8056 (HOST_WIDE_INT_0U): Ditto.
8057 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8058 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8059 * simplify-rtx.c: Ditto.
8060 * tree-object-size.c: Ditto.
8062 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8064 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8067 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8069 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8070 * combine.c: Use HOST_WIDE_INT_M1U instead of
8071 ~(unsigned HOST_WIDE_INT) 0.
8072 * double-int.h: Ditto.
8074 * dwarf2asm.c:Ditto.
8076 * genmodes.c: Ditto.
8078 * read-rtl.c: Ditto.
8079 * tree-ssa-loop-ivopts.c: Ditto.
8080 * tree-ssa-loop-prefetch.c: Ditto.
8081 * tree-vect-generic.c: Ditto.
8082 * tree-vect-patterns.c: Ditto.
8085 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8087 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8088 constant addresses outside [0,0xc0] into a register.
8089 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8090 cases where the base address register is unused after.
8091 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8092 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8093 (avr_out_store_psi_reg_disp_tiny): Same.
8095 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8097 Implement attribute progmem on reduced Tiny cores by adding
8098 flash offset 0x4000 to respective symbols.
8101 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8102 documentation how it works on reduced Tiny cores.
8103 (AVR Named Address Spaces): No support for reduced Tiny.
8104 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8105 (avr_address_tiny_pm_p): New static function.
8106 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8107 if the address is in progmem.
8108 (avr_assemble_integer): Same.
8109 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8110 for symbol_ref in progmem.
8111 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8112 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8113 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8115 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8117 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8118 * configure: Regenerate.
8119 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8120 (USE_THIN_ARCHIVES): New variable.
8121 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8122 this archive as a thin archive.
8124 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8126 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8127 same location as last time, don't skip if we have fix-it hints.
8128 Clarify the skipping logic by converting it from one "if" clause
8129 to repeated "if" clauses.
8130 * spellcheck-tree.c: Include "cpplib.h".
8131 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8132 (best_macro_match::best_macro_match): New constructor.
8133 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8134 Move here from c/c-decl.c.
8135 (class best_macro_match): Move here from c/c-decl.c, converting
8136 from a typedef to a subclass, gaining a ctor.
8138 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8140 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8141 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8143 (avr_addr_space_diagnose_usage): ...and implementation.
8144 (avr_addr_space_supported_p): New function.
8145 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8146 report bad address space usage if that space is supported.
8147 (avr_insert_attributes): Same. No more complain about unsupported
8149 * config/avr/avr-c.c (tm_p.h): Include it.
8150 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8151 macro if avr_addr_space_supported_p.
8153 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8155 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8156 flag_toplevel_reorder.
8158 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8160 * gcc-rich-location.c
8161 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8163 * gcc-rich-location.h
8164 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8166 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8168 * target.def (addr_space): Add new diagnose_usage to hook vector.
8169 * targhooks.c (default_addr_space_diagnose_usage): Add default
8170 implementation and...
8171 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8172 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8173 is some address space, call targetm.addr_space.diagnose_usage.
8174 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8175 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8176 * doc/tm.texi: Regenerate.
8178 2016-07-20 Martin Liska <mliska@suse.cz>
8181 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8182 Properly handly PHI stmts.
8184 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8186 PR tree-optimization/71503
8187 PR tree-optimization/71683
8188 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8191 2016-07-20 Martin Liska <mliska@suse.cz>
8193 * doc/invoke.texi (-fipa-ra): Document when the option is
8194 disabled. Fix a typo.
8196 2016-07-20 Martin Liska <mliska@suse.cz>
8198 * Makefile.in: Include fibonacci_heap.c
8199 * fibonacci_heap.c: New file.
8200 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8201 (fibonacci_heap::union_with): Fix deletion of the second heap.
8202 * selftest-run-tests.c (selftest::run_tests): Incorporate
8203 fibonacci heap tests.
8204 * selftest.h: Declare fibonacci_heap_c_tests.
8206 2016-07-20 Martin Liska <mliska@suse.cz>
8208 * selftest-run-tests.c (selftest::run_tests): New function.
8209 * selftest.h (sreal_c_tests): Declare.
8210 * sreal.c (sreal_verify_basics): New function.
8211 (verify_aritmetics): Likewise.
8212 (sreal_verify_arithmetics): Likewise.
8213 (verify_shifting): Likewise.
8214 (sreal_verify_shifting): Likewise.
8215 (void sreal_c_tests): Likewise.
8217 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8219 PR rtl-optimization/71916
8220 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8221 bb which have a single succ fake edge.
8223 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8226 * dwarf2out.c (gen_subprogram_die): Only call
8227 gen_unspecified_parameters_die while dumping early dwarf.
8229 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8232 * gimple-fold.c (fold_builtin_memory_op): Use
8233 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8235 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
8237 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8238 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8239 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8240 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8244 * double-int.c: Ditto.
8246 * dwarf2out.c: Ditto.
8249 * fold-const.c: Ditto.
8250 * function.c: Ditto.
8252 * genmodes.c: Ditto.
8256 * loop-doloop.c: Ditto.
8257 * loop-invariant.c: Ditto.
8264 * simplify-rtx.c: Ditto.
8265 * stor-layout.c: Ditto.
8267 * tree-ssa-loop-ivopts.c: Ditto.
8268 * tree-vect-generic.c: Ditto.
8269 * tree-vect-patterns.c: Ditto.
8274 * wide-int-print.cc: Ditto.
8275 * wide-int.cc: Ditto.
8276 * wide-int.h: Ditto.
8278 2016-07-19 David Malcolm <dmalcolm@redhat.com>
8280 * selftest.c (selftest::assert_streq): Handle NULL values of
8281 val_actual and val_expected.
8283 2016-07-19 Martin Jambor <mjambor@suse.cz>
8286 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
8287 rather than cgraph_create_node to get a call graph node.
8289 2016-07-19 Richard Biener <rguenther@suse.de>
8291 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
8292 handle all tcc_constant bases and valueize SSA names.
8293 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
8296 2016-07-19 David Malcolm <dmalcolm@redhat.com>
8298 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
8299 the flags of the exit block and bb2, not just the entry block.
8301 2016-07-19 Richard Biener <rguenther@suse.de>
8303 PR tree-optimization/71901
8304 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8305 align member, group stuff with the bitfield.
8306 (vn_ref_op_align_unit): New inline.
8307 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
8308 record element alignment and operand 3 unchanged.
8309 (ao_ref_init_from_vn_reference): Adjust.
8310 (valueize_refs_1): Likewise.
8311 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8313 2016-07-19 Richard Biener <rguenther@suse.de>
8315 PR tree-optimization/71908
8316 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
8317 symbolic constants in a more reliable way.
8319 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
8321 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
8323 (vect_update_inits_of_drs): Likewise.
8324 (vect_create_cond_for_alias_checks): Likewise.
8325 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
8327 2016-07-19 Richard Biener <rguenther@suse.de>
8330 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
8331 with an abstract origin that is not an inlined function outer
8332 scope add a self-reference as abstract origin.
8333 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
8335 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8338 * config/rs6000/rs6000.c (rs6000_function_value): Fix
8339 unintentional System V.4 structure return breakage for structures
8340 with a single floating point element.
8342 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8344 PR tree-optimization/71734
8345 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
8346 contains REF, use it to check safelen, assume that safelen value
8347 must be greater 1, fix style.
8348 (ref_indep_loop_p_2): Add REF_LOOP argument.
8349 (ref_indep_loop_p): Pass LOOP as additional argument to
8352 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
8354 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
8355 allocation in the prologue.
8356 * explow.c (get_dynamic_stack_base): New function to return an address
8357 expression for the dynamic stack base.
8358 (get_dynamic_stack_size): New function to do the required dynamic stack
8359 space size calculations.
8360 (allocate_dynamic_stack_space): Use new functions.
8361 (align_dynamic_address): Move some code from
8362 allocate_dynamic_stack_space to new function.
8363 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
8365 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8367 * config/s390/s390.c (s390_encode_section_info): Always set
8368 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
8371 2016-07-18 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/71893
8374 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
8375 for sizetype cast added by array_ref_element_size.
8376 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8378 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
8380 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
8381 register parameters. Remove code to initialize argument pointer
8382 on TARGET_64BIT. Optimize call to _mcount when it can be reached
8383 using a pc-relative branch. Cleanup conditional code.
8384 * config/pa/pa.md (call_mcount): New expander.
8385 (call_mcount_nonpic): New insn.
8386 (call_mcount_pic): New insn and split.
8387 (call_mcount_pic_post_reload): New insn.
8388 (call_mcount_64bit): New insn and split.
8389 (call_mcount_64bit_post_reload): New insn.
8391 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
8393 * config/avr/predicates.md (const_m255_to_m1_operand): New.
8394 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
8395 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
8396 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
8397 (*usum_widenqihi3, *udiff_widenqihi3)
8398 (*addhi3_zero_extend.const): New combiner insns.
8399 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
8400 just 1 bit is affected.
8401 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
8402 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
8404 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
8406 * omp-low.c (lower_omp_target): Mark data clauses with
8407 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
8408 zero-length subarrays.
8410 2016-07-15 Richard Biener <rguenther@suse.de>
8412 PR tree-optimization/71881
8413 * tree-loop-distribution.c (destroy_loop): Remove blocks in
8414 reverse DOM order to make debug temp generation happy.
8416 2016-07-15 Richard Biener <rguenther@suse.de>
8418 PR tree-optimization/71887
8419 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
8420 verify it is not zero for division / modulo handling.
8421 (value_replacement): Adjust.
8423 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
8424 Julian Brown <julian@codesourcery.com>
8426 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8427 * config/aarch64/aarch64-cost-tables.h
8428 (vulcan_extra_costs): New variable.
8429 * config/aarch64/aarch64.c
8430 (vulcan_addrcost_table): Likewise.
8431 (vulcan_regmove_cost): Likewise.
8432 (vulcan_vector_cost): Likewise.
8433 (vulcan_branch_cost): Likewise.
8434 (vulcan_tunings): Likewise.
8436 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
8438 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8439 (output_in_order): Loop over undefined variables too. Output them
8440 via assemble_undefined_decl. Skip variables that correspond to hard
8441 registers or have value-exprs.
8442 * varpool.c (symbol_table::output_variables): Handle undefined
8443 variables together with defined ones.
8445 2016-07-15 Richard Biener <rguenther@suse.de>
8447 * tree-ssa-pre.c (get_representative_for): Make sure to return
8448 the value number of SSA names.
8449 (phi_translate_1): get_representative_for cannot return NULL.
8450 (do_pre_regular_insertion): Remove redundant call to
8451 fully_constant_expression.
8452 (do_pre_partial_partial_insertion): Likewise.
8454 2016-07-15 Bin Cheng <bin.cheng@arm.com>
8456 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8457 (derive_simple_iv_with_niters): New function.
8458 (simple_iv): Rewrite using simple_iv_with_niters.
8459 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8460 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8462 (number_of_iterations_exit): Rewrite using above function.
8463 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8466 2016-07-15 Richard Biener <rguenther@suse.de>
8468 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8471 2016-07-14 Jakub Jelinek <jakub@redhat.com>
8473 PR tree-optimization/71872
8474 * tree-data-ref.c (get_references_in_stmt): Ignore references
8475 with is_gimple_constant get_base_address.
8477 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8479 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8480 (TARGET_HAVE_LDACQD): New macro.
8481 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8482 than TARGET_HAVE_LDACQ.
8483 (arm_load_acquire_exclusivedi): Likewise.
8484 (arm_store_release_exclusivedi): Likewise.
8486 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8488 PR rtl-optimization/71878
8489 * lra-constraints.c (match_reload): Pass information about other
8490 output operands. Create new unique register value if matching input
8491 operand shares same register value as output operand being considered.
8492 (curr_insn_transform): Record output operands already processed.
8494 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8497 PR tree-optimization/70923
8498 * tree-vect-patterns.c: Include mult-synthesis.h.
8499 (target_supports_mult_synth_alg): New function.
8500 (synth_lshift_by_additions): Likewise.
8501 (apply_binop_and_append_stmt): Likewise.
8502 (vect_synth_mult_by_constant): Likewise.
8503 (target_has_vecop_for_code): Likewise.
8504 (vect_recog_mult_pattern): Use above functions to synthesize vector
8505 multiplication by integer constants.
8507 2016-07-14 Alan Modra <amodra@gmail.com>
8509 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8510 gpr alternatives. Correct '*' placement on Y,r alternative.
8511 Add '*' on operand 1 of r,r alternative.
8513 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8515 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8516 * expmed.h: ... Here.
8518 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
8520 * gimple.h (stmt_can_terminate_bb_p): New function.
8521 * tree-cfg.c (need_fake_edge_p): Rename to ...
8522 (stmt_can_terminate_bb_p): ... this; return true if stmt can
8523 throw external; handle const and pure calls.
8524 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8526 2016-07-14 Richard Biener <rguenther@suse.de>
8528 PR tree-optimization/71866
8529 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8530 (do_hoist_insertion): Avoid endless recursion when we
8531 didn't insert anything because we managed to simplify
8532 things down to a constant or SSA name.
8533 (fully_constant_expression): Re-write in terms of ...
8534 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
8535 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8536 vn_nary_build_or_lookup_1.
8537 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8538 (vn_nary_build_or_lookup): ... this which now wraps it.
8540 2016-07-14 Alan Modra <amodra@gmail.com>
8543 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8544 with p9_vector override before power9-dform override.
8546 2016-07-13 Andi Kleen <ak@linux.intel.com>
8548 * value-prof.c (gimple_value_profile_transformations): Don't run
8549 when auto_profile is on.
8551 2016-07-13 Andi Kleen <ak@linux.intel.com>
8553 * auto-profile.c (update_inlined_ind_target,
8554 afdo_indirect_call): Print information to dump file.
8556 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
8558 * genrecog.c (special_predicate_operand_p): New function.
8559 (predicate_name): Move function.
8560 (validate_pattern): Don't warn about missing mode for all
8561 define_special_predicate predicates.
8563 2016-07-13 Bin Cheng <bin.cheng@arm.com>
8565 * tree-vect-data-refs.c (vect_no_alias_p): New function.
8566 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8567 resolve alias checks which are known at compilation time.
8568 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8569 alias checks are resolved. Move dump info for too many runtime
8570 alias checks to here...
8571 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8573 2016-07-13 Richard Biener <rguenther@suse.de>
8575 PR tree-optimization/24574
8576 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8577 position and add shift, rotate, divison and modulo support
8579 (value_replacement): Pass in argument position to absorbing_element_p.
8581 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
8584 * ipa-inline-transform.c (inline_call): Support
8585 instrumented thunks.
8587 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8589 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8590 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8592 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8593 Baseline. Make initial alternative TARGET_32BIT only.
8594 (udivsi3): Likewise.
8595 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8596 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8599 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8601 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8602 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8603 availability with TARGET_HAVE_MOVT.
8604 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8605 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8606 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8608 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8609 extra instruction if MOVW is available. Use a cost variable
8610 incremented by COSTS_N_INSNS (1) when the condition match rather than
8611 returning an arithmetic expression based on COSTS_N_INSNS. Make
8612 constant with bottom half word zero cost 2 instruction if MOVW is
8614 * config/arm/arm.md (define_attr "arch"): Add v8mb.
8615 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8616 target is ARMv8-M Baseline.
8617 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8618 (arm_movtas_ze): Likewise.
8619 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8620 alternative for constants satisfying j constraint.
8621 (thumb1_movsi_insn): Likewise.
8622 (movsi splitter for K alternative): Tighten condition to not trigger
8623 if movt is available and j constraint is satisfied.
8624 (Pe immediate splitter): Likewise.
8625 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8626 constant fitting in an halfword to use MOVW.
8627 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8630 2016-07-13 Richard Biener <rguenther@suse.de>
8633 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8634 gimplifying the LHS. Make sure to gimplify a returning twice
8635 call LHS without using SSA names.
8637 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8639 * tree-data-ref.c (find_data_references_in_stmt): Remove
8640 unnecessary call to vec::release.
8641 (graphite_find_data_references_in_stmt): Likewise.
8642 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8643 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8645 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8647 * cfgexpand.c (expand_used_vars): Make the type of a local
8649 * genmatch.c (lower_for): Likewise.
8650 * haifa-sched.c (haifa_sched_init): Likewise.
8651 (add_to_speculative_block): Likewise.
8652 (create_check_block_twin): Likewise.
8653 * predict.c (handle_missing_profiles): Likewise.
8654 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8655 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8656 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8658 (maybe_lower_iteration_bound): Likewise.
8659 * tree-ssa-sccvn.c (DFS): Likewise.
8660 * tree-stdarg.c (reachable_at_most_once): Likewise.
8661 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8662 (vectorizable_store): Likewise.
8664 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8666 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8667 (sccvn_dom_walker): make cond_stack an auto_vec.
8669 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8671 * ree.c (struct ext_state): Make type of members auto_vec.
8672 (find_and_remove_re): Adjust.
8674 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8676 * cfgexpand.c (struct stack_vars_data): Make type of fields
8678 (expand_used_vars): Adjust.
8680 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8682 * ipa.c (record_cdtor_fn): Adjust.
8683 (build_cdtor_fns): Likewise.
8684 (ipa_cdtor_merge): Make static_ctors and static_dtors local
8687 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8689 * genextract.c (struct accum_extract): Add constructor and make
8693 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8695 * tree.c (struct free_lang_data_d): Add constructor and change
8696 types of members to ones that automatically manage resources.
8697 (fld_worklist_push): Adjust.
8698 (find_decls_types): Likewise.
8699 (find_decls_types_in_eh_region): Likewise.
8700 (free_lang_data_in_cgraph): Stop manually creating and
8701 destroying members of free_lang_data_d.
8703 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
8705 PR rtl-optimization/68961
8706 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8707 peephole variant. Use sse_reg_operand predicates.
8709 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
8711 * config/i386/predicates.md (x86_64_immediate_operand)
8712 <case CONST_INT>: Remove unneeded truncation to DImode.
8713 <case CONST>: Ditto.
8714 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8716 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8719 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8720 The xxperm and xxpermr instructions require that the 2nd input
8721 operand overlap with the output operand, and not the 1st.
8722 (altivec_vperm_v8hiv16qi): Likewise.
8723 (altivec_vperm_<mode>_uns_internal): Likewise.
8724 (altivec_vpermr_<mode>_internal): Likewise.
8725 (vperm_v8hiv4si): Likewise.
8726 (vperm_v16qiv8hi): Likewise.
8728 2016-07-12 Nathan Sidwell <nathan@acm.org>
8730 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8731 when -mno-pic-data-is-text-relative is in effect, by default.
8732 * doc/invoke.texi (mpic-data-is-text-relative): Document new
8733 behavior and clarify.
8735 2016-07-12 Martin Liska <mliska@suse.cz>
8737 * params.def: Add avg-loop niter.
8738 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8739 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8740 * doc/invoke.texi: Document the new parameter.
8742 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8745 * expr.c (store_constructor): Mask sign-extended bits when widening
8746 sub-word constructor element at the start of a word.
8748 2016-07-12 Martin Liska <mliska@suse.cz>
8750 * Makefile.in: Append rule for params-options.h.
8751 * params-options.h: New file.
8753 2016-07-12 Martin Liska <mliska@suse.cz>
8755 * ira-build.c (mark_loops_for_removal): Properly iterate
8758 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
8759 Richard Biener <rguenther@suse.de>
8761 PR tree-optimization/23286
8762 PR tree-optimization/70159
8763 * doc/invoke.texi: Document -fcode-hoisting.
8764 * common.opt (fcode-hoisting): New flag.
8765 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8766 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8767 (do_regular_insertion): Rename to ...
8768 (do_pre_regular_insertion): ... this and amend general comments
8769 on insertion strathegy.
8770 (do_partial_partial_insertion): Rename to ...
8771 (do_pre_partial_partial_insertion): ... this.
8772 (do_hoist_insertion): New function.
8773 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8774 and call do_hoist_insertion properly.
8776 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8777 (pass_pre::execute): Register hoist_insert stats.
8779 2016-07-12 Jakub Jelinek <jakub@redhat.com>
8782 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8783 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8784 is different from mode's bitsize. Small cleanup.
8786 2016-07-12 Richard Biener <rguenther@suse.de>
8788 PR rtl-optimization/68961
8789 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8790 to simplify to a non-constant.
8792 2016-07-11 Jakub Jelinek <jakub@redhat.com>
8795 * omp-low.c (expand_omp_target): Gimplify device.
8797 PR tree-optimization/71823
8798 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8799 to get vec_oprnds2 from op2.
8801 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
8803 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8804 Hoist common subexpressions.
8805 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8807 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
8810 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8811 prevent generation of 'stxsiwx' on pre Power8 hardware.
8813 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8815 * input.c: Include cpplib.h.
8816 (selftest::temp_source_file): New class.
8817 (selftest::temp_source_file::temp_source_file): New ctor.
8818 (selftest::temp_source_file::~temp_source_file): New dtor.
8819 (selftest::should_have_column_data_p): New function.
8820 (selftest::test_should_have_column_data_p): New function.
8821 (selftest::temp_line_table): New class.
8822 (selftest::temp_line_table::temp_line_table): New ctor.
8823 (selftest::temp_line_table::~temp_line_table): New dtor.
8824 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8825 it to create a temp_line_table.
8826 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8827 locations that are known to have column data.
8828 (selftest::line_table_case): New struct.
8829 (selftest::test_reading_source_line): Move tempfile handling
8830 to class temp_source_file.
8831 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8832 (selftest::assert_token_loc_eq): New function.
8833 (ASSERT_TOKEN_LOC_EQ): New macro.
8834 (selftest::test_lexer): New function.
8835 (selftest::boundary_locations): New array.
8836 (selftest::input_c_tests): Call test_should_have_column_data_p.
8837 Loop over a test matrix of interesting values of location and
8838 default_range_bits, calling test_lexer on each case in the matrix.
8839 Move call to test_accessing_ordinary_linemaps into the matrix.
8840 * selftest.h (ASSERT_EQ): Reimplement in terms of...
8841 (ASSERT_EQ_AT): New macro.
8843 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
8846 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8847 Don't convert TImode in debug insn.
8849 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8851 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8852 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8853 (tree_type_common::lang_flag_7): New.
8854 (tree_type_common::spare): Reduce size.
8855 * tree.h (TYPE_ALIGN_OK): Remove.
8856 (TYPE_LANG_FLAG_7): New.
8857 (get_inner_reference): Adjust header.
8858 * print-tree.c (print_node): Adjust.
8859 * expr.c (get_inner_reference): Remove parameter keep_aligning.
8860 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8861 calls to get_inner_reference.
8862 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
8863 handling of TYPE_ALIGN_OK.
8864 * builtins.c (get_object_alignment_2): Adjust call to
8865 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
8866 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8868 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8869 * cfgexpand.c (expand_debug_expr): Likewise.
8870 * dbxout.c (dbxout_expand_expr): Likewise.
8871 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8872 loc_list_from_tree, fortran_common): Likewise.
8873 * fold-const.c (optimize_bit_field_compare,
8874 decode_field_reference, fold_unary_loc, fold_comparison,
8875 split_address_to_core_and_offset): Likewise.
8876 * gimple-laddress.c (execute): Likewise.
8877 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8878 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8879 * hsa-gen.c (gen_hsa_addr): Likewise.
8880 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8881 * tsan.c (instrument_expr): Likewise.
8882 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8883 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8884 * tree-affine.c (tree_to_aff_combination,
8885 get_inner_reference_aff): Adjust calls to get_inner_reference.
8886 * tree-data-ref.c (split_constant_offset_1,
8887 dr_analyze_innermost): Likewise.
8888 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8889 * tree-sra.c (ipa_sra_check_caller): Likewise.
8890 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8891 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8892 bswap_replace): Likewise.
8893 * tree-vect-data-refs.c (vect_check_gather,
8894 vect_analyze_data_refs): Likewise.
8895 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8896 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8899 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8901 * Makefile.in (selftest-valgrind): New phony target.
8902 * function-tests.c (selftest::build_cfg): Delete pass instances
8903 created by the test.
8904 (selftest::convert_to_ssa): Likewise.
8905 (selftest::test_expansion_to_rtl): Likewise.
8906 * tree-cfg.c (selftest::test_linear_chain): Release dominator
8908 (selftest::test_diamond): Likewise.
8910 2016-07-11 Richard Biener <rguenther@suse.de>
8912 PR tree-optimization/71816
8913 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8914 than replacing all of its operands.
8916 2016-07-11 Alan Modra <amodra@gmail.com>
8918 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8919 (ctr<mode>): Add unspec.
8920 (ctr<mode>_internal*): Likewise.
8922 2016-07-08 James Bowman <james.bowman@ftdichip.com>
8924 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8925 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8927 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
8929 PR rtl-optimization/71621
8930 * lra-constraints.c (process_alt_operands): Check combination of
8933 2016-07-08 Jason Merrill <jason@redhat.com>
8934 Richard Biener <rguenther@suse.de>
8936 P0145: Refining Expression Order for C++.
8937 * gimplify.c (initial_rhs_predicate_for): New.
8938 (gimplfy_modify_expr): Gimplify RHS before LHS.
8940 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8943 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8944 Allow standard error handling to take over when a wrong number
8945 of arguments is presented to __builtin_vec_ld () or
8946 __builtin_vec_st ().
8948 2016-07-08 Jiong Wang <jiong.wang@arm.com>
8950 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8955 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8956 __builtin_aarch64_fmaxv2sf.
8957 (vmaxnmq_f32): Likewise.
8958 (vmaxnmq_f64): Likewise.
8959 (vminnm_f32): Likewise.
8960 (vminnmq_f32): Likewise.
8961 (vminnmq_f64): Likewise.
8963 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8966 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8967 enable -mfloat128-hardware by default.
8968 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8969 that IEEE 128-bit hardware support needs.
8970 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8971 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8972 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8973 floating point requires.
8974 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8975 -mfloat128 and -mfloat128-hardware changes.
8977 2016-07-08 Alan Hayward <alan.hayward@arm.com>
8979 PR tree-optimization/71667
8980 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8982 2016-07-08 Martin Liska <mliska@suse.cz>
8985 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8986 folding produces SAVE_EXPRs, thus return false for the type.
8988 2016-07-07 Martin Liska <mliska@suse.cz>
8990 * file-find.c (remove_prefix): New function.
8991 * file-find.h (remove_prefix): Declare the function.
8992 * gcc-ar.c (main): Skip a folder of the wrapper if
8993 a wrapped binary would point to the same file.
8995 2016-07-07 Jan Hubicka <jh@suse.cz>
8997 * tree-scalar-evolution.c (iv_can_overflow_p): export.
8998 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8999 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9001 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9004 * ipa-inline-analysis.c (compute_inline_parameters): Set
9005 local.can_change_signature to false for intrumentation
9008 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9010 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9011 with TARGET_HAVE_MOVT.
9012 (TARGET_HAVE_MOVT): Define.
9013 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9014 availability with TARGET_HAVE_MOVT.
9015 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9017 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9019 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9020 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9021 * config/arm/constraints.md (define_constraint "j"): Use
9022 TARGET_HAVE_MOVT to check MOVT availability.
9024 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9026 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9028 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9030 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9031 (armv8-m.main): Likewise.
9032 (armv8-m.main+dsp): Likewise.
9033 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9034 (FL_FOR_ARCH8M_MAIN): Likewise.
9035 * config/arm/arm-tables.opt: Regenerate.
9036 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9037 armv8-m.main+dsp to BE8_LINK_SPEC.
9038 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9039 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9040 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9041 Baseline and Mainline.
9042 (arm_option_override_internal): Also disable arm_restrict_it when
9043 !arm_arch_notm. Update comment for -munaligned-access to also cover
9045 (arm_file_start): Increase buffer size for printing architecture name.
9046 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9047 and armv8-m.main+dsp.
9048 (mno-unaligned-access): Clarify that this is disabled by default for
9049 ARMv8-M Baseline architectures as well.
9051 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9053 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9054 decide whether to prevent some libgcc routines being included for some
9055 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9056 link between this condition and the one in
9057 libgcc/config/arm/lib1func.S.
9059 2016-07-07 Richard Biener <rguenther@suse.de>
9061 * tree-ssa-pre.c: Include alias.h.
9062 (compute_avail): If we have multiple VN_REFERENCEs with the
9063 same hashtable entry adjust that to make it a valid replacement
9064 for all of them with respect to alignment and aliasing
9065 when doing insertion.
9066 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9067 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9069 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9073 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9074 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9077 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9079 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9080 (adjust_mems): Adjust.
9081 (adjust_insn): Likewise.
9082 (prepare_call_arguments): Likewise.
9084 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9086 * gcse.c (struct ls_expr): Make stores field a vector.
9087 (ldst_entry): Adjust.
9088 (free_ldst_entry): Likewise.
9089 (print_ldst_list): Likewise.
9090 (compute_ld_motion_mems): Likewise.
9091 (update_ld_motion_stores): Likewise.
9093 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9095 * gcse.c (struct ls_expr): Remove loads field.
9096 (ldst_entry): Adjust.
9097 (free_ldst_entry): Likewise.
9098 (print_ldst_list): Likewise.
9099 (compute_ld_motion_mems): Likewise.
9101 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9103 * store-motion.c (struct st_expr): Make antic_stores a vector.
9104 (st_expr_entry): Adjust.
9105 (free_st_expr_entry): Likewise.
9106 (print_store_motion_mems): Likewise.
9107 (find_moveable_store): Likewise.
9108 (compute_store_table): Likewise.
9109 (remove_reachable_equiv_notes): Likewise.
9110 (replace_store_insn): Likewise.
9111 (build_store_vectors): Likewise.
9113 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9115 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9116 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9118 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9120 PR tree-optimization/71518
9121 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9122 misalign also for outer loops with negative step.
9124 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9126 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9127 (cortex_a53_shift): Add mov_shift.
9128 (cortex_a53_shift_reg): Add new reservation for register shifts.
9129 (cortex_a53_alu): Remove bfm.
9130 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9131 (cortex_a53_alu_extr): Add new reservation for EXTR.
9132 (bypasses): Improve bypass modelling.
9134 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9137 * config/avr/avr.c (avr_asm_select_section): Strip off
9138 SECTION_DECLARED from flags when calling get_section.
9140 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9142 * tree-vectorizer.h (vect_memory_access_type): Add
9143 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9144 * tree-vect-stmts.c (compare_step_with_zero): New function.
9145 (perm_mask_for_reverse): Move further up file.
9146 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9148 (get_negative_load_store_type): New function.
9149 (get_load_store_type): Call it. Add an ncopies argument.
9150 (vectorizable_mask_load_store): Update call accordingly and
9151 remove tests for negative steps.
9152 (vectorizable_store, vectorizable_load): Likewise. Handle new
9153 memory_access_types.
9155 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9157 * tree-vectorizer.h (vect_memory_access_type): New enum.
9158 (_stmt_vec_info): Add a memory_access_type field.
9159 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9160 (vect_model_store_cost): Take an access type instead of a boolean.
9161 (vect_model_load_cost): Likewise.
9162 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9163 vect_model_store_cost and vect_model_load_cost.
9164 * tree-vect-stmts.c (vec_load_store_type): New enum.
9165 (vect_model_store_cost): Take an access type instead of a
9166 store_lanes_p boolean. Simplify tests.
9167 (vect_model_load_cost): Likewise, but for load_lanes_p.
9168 (get_group_load_store_type, get_load_store_type): New functions.
9169 (vectorizable_store): Use get_load_store_type. Record the access
9170 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9171 (vectorizable_load): Likewise.
9172 (vectorizable_mask_load_store): Likewise. Replace is_store
9173 variable with vls_type.
9175 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9177 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9178 single_element_p parameter.
9179 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9180 Check the PR65518 case here rather than in vectorizable_load.
9181 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9182 * tree-vect-stmts.c (vectorizable_load): Likewise.
9184 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9186 * tree-vectorizer.h (gather_scatter_info): New structure.
9187 (vect_check_gather_scatter): Return a bool rather than a decl.
9188 Replace return-by-pointer arguments with a single
9189 gather_scatter_info *.
9190 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9191 (vect_analyze_data_refs): Update call accordingly.
9192 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9193 (vectorizable_mask_load_store): Likewise. Also record the
9194 offset dt and vectype in the gather_scatter_info.
9195 (vectorizable_store): Likewise.
9196 (vectorizable_load): Likewise.
9198 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9200 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9201 strided groups, use the cost of N scalar accesses instead
9202 of ncopies vector accesses.
9203 (vect_model_load_cost): Likewise.
9205 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9207 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9208 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9209 variable to indicate when once-per-group costs are being used.
9210 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9212 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9214 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9215 peeling-for-gaps condition.
9217 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9219 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9220 element to register if it doesn't match general_operand.
9222 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9223 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9225 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9227 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9228 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9229 (SIGNBIT): New mode iterator.
9230 (Fsignbit): New mode attribute.
9231 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9232 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9233 when direct moves are available.
9234 (signbit<mode>2_dm): New define_insn_and_split).
9235 (signbit<mode>2_dm2): New define_insn.
9237 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9239 PR rtl-optimization/71594
9240 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9241 into subregs of appropriate mode before trying to emit a conditional
9244 2016-07-05 Jan Hubicka <jh@suse.cz>
9246 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9247 (simple_iv): Use it.
9249 2016-07-05 Jan Hubicka <jh@suse.cz>
9251 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9253 2016-07-05 Jiong Wang <jiong.wang@arm.com>
9255 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9258 2016-07-05 Jan Hubicka <jh@suse.cz>
9260 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9263 2016-07-05 Richard Biener <rguenther@suse.de>
9265 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9266 Handle empty else block.
9267 (is_feasible_trace): Likewise.
9268 (split_paths): Likewise.
9270 2016-07-05 Richard Biener <rguenther@suse.de>
9272 * tree-loop-distribution.c (distribute_loop): Fix issue with
9273 the cost model loop.
9275 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
9277 * config/arm/neon-testgen.ml: Delete.
9278 * config/arm/neon.ml: Delete.
9280 2016-07-04 Jakub Jelinek <jakub@redhat.com>
9283 * tree.c (attribute_value_equal): Use get_attribute_name instead of
9284 directly using TREE_PURPOSE.
9286 2016-07-04 Jiong Wang <jiong.wang@arm.com>
9288 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
9289 * config/aarch64/aarch64_neon.h: Likewise.
9290 * config/aarch64/arm_neon.h: Likewise.
9291 * config/aarch64/atomics.md: Likewise.
9292 * config/aarch64/aarch64-simd-builtins.def: Likewise.
9293 * doc/invoke.texi: Likewise.
9295 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
9297 * config/s390/s390.md: Add "z13" cpu_facility.
9298 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
9299 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
9300 condition" type instructions.
9302 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
9303 Jeff Law <law@redhat.com>
9305 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
9306 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
9308 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
9310 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
9311 permutation for TARGET_AVX512F.
9312 (ix86_expand_vec_one_operand_perm_avx512): New function.
9313 (expand_vec_perm_1): Invoke introduced function.
9314 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9315 it may be not valid after vectorization.
9317 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9320 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
9321 typo in comment. Only force to memory if it is a weak
9324 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
9325 Jiong Wang <jiong.wang@arm.com>
9327 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
9328 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
9329 (AARCH64_FL_F16): New.
9330 (AARCH64_FL_FOR_ARCH8_2): New.
9331 (AARCH64_ISA_8_2): New.
9332 (AARCH64_ISA_F16): New.
9333 (TARGET_FP_F16INST): New.
9334 (TARGET_SIMD_F16INST): New.
9335 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
9336 ("fp"): Disabling "fp" also disables "fp16".
9337 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
9338 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
9339 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
9340 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
9342 2016-07-04 Jan Beulich <jbeulich@suse.com>
9344 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
9346 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9349 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
9350 the insns, use an insn form that does not adjust the offset on
9351 little endian systems.
9353 2016-07-01 Jan Beulich <jbeulich@suse.com>
9355 * varasm.c (get_variable_section): Validate initializer in
9356 named .bss-like sections.
9358 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
9360 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
9361 Exchange the order of the second and third operands in the vpermr
9362 instruction tmeplate.
9364 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
9367 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
9368 Disallow TDmode values.
9370 2016-07-01 Alan Modra <amodra@gmail.com>
9372 PR rtl-optimization/71709
9373 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
9374 being set, not referenced.
9376 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
9378 PR tree-optimization/70729
9379 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
9380 of loop since it can be not valid after transformation.
9382 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9384 * config/arm/arm.c (thumb_reload_in_hi): Delete.
9385 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
9387 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
9389 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
9392 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
9395 * config/rs6000/constraints.md (wY constraint): New constraint to
9396 match the requirements for the LXSD and STXSD instructions.
9397 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
9398 predicate to match the requirements for the LXSD and STXSD
9400 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
9401 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
9402 to make sure that the bottom 2 bits of offset are 0, the address
9403 form is offsettable, and no updating is done in the address mode.
9404 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
9405 (movdi_internal32): Likewise
9406 (movdi_internal64): Likewise.
9408 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9410 PR tree-optimization/71707
9411 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
9412 strinfo even for ADDR_EXPR ptr.
9414 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
9416 * config/rs6000/altivec.md (darn_32): Change the condition to
9417 TARGET_P9_MISC instead of TARGET_MODULO.
9418 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
9419 condition expression.
9420 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
9421 condition expression.
9422 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
9423 (DFP_TEST): New code iterator.
9424 (dfptstsfi_<code>_mode>): New define_expand.
9425 (*dfp_sgnfcnc_<mode>): New define_insn.
9426 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9427 definition next to BU_P9_MISC_1 definition and change the MASK
9428 value to RS6000_BTM_P9_MISC.
9429 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9430 (BU_P9_64BIT_MISC_0): Likewise.
9431 (BU_P9_DFP_MISC_0): New macro definition.
9432 (BU_P9_DFP_MISC_1): New macro definition.
9433 (BU_P9_DFP_MISC_2): New macro definition.
9434 (BU_P9_DFP_OVERLOAD_1): New macro definition.
9435 (BU_P9_DFP_OVERLOAD_2): New macro definition.
9436 (BU_P9_DFP_OVERLOAD_3): New macro definition.
9437 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9438 (TSTSFI_LT_TD): Likewise.
9439 (TSTSFI_EQ_DD): Likewise.
9440 (TSTSFI_EQ_TD): Likewise.
9441 (TSTSFI_GT_DD): Likewise.
9442 (TSTSFI_GT_TD): Likewise.
9443 (TSTSFI_OV_DD): Likewise.
9444 (TSTSFI_OV_TD): Likewise.
9445 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9446 (TSTSFI_LT_DD): Likewise.
9447 (TSTSFI_LT_TD): Likewise.
9448 (TSTSFI_EQ): Likewise.
9449 (TSTSFI_EQ_DD): Likewise.
9450 (TSTSFI_EQ_TD): Likewise.
9451 (TSTSFI_GT): Likewise.
9452 (TSTSFI_GT_DD): Likewise.
9453 (TSTSFI_GT_TD): Likewise.
9454 (TSTSFI_OV): Likewise.
9455 (TSTSFI_OV_DD): Likewise.
9456 (TSTSFI_OV_TD): Likewise.
9457 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9458 overloaded test significance functions.
9459 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9460 OPTION_MASK_P9_MISC into the representation of this mask.
9461 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9463 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9464 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9466 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9467 argument is a 6-bit unsigned literal value if the icode argument
9468 represents a DFP test significance built-in call.
9469 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9470 flag used independently and in combination with the
9471 RS6000_BTM_64BIT flag.
9472 (rs6000_opt_masks): Add entry for power9-misc command-line option.
9473 (rs6000_builtin_mask_names): Add entry for power9-misc
9474 command-line option.
9475 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9476 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
9477 RS6000_BTM_P9_MISC macros.
9478 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9479 option and change the description of the -mpower9-vector option to
9480 enable only vector instructions, removing its erroneously claimed
9481 support for scalar instructions.
9482 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9483 the ISA 3.0 digital floating point test significance built-in
9486 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
9488 * config/aarch64/aarch64.c (cortexa35_tunings):
9489 Enable AES fusion. Use cortexa57_branch_cost.
9490 (cortexa53_tunings): Use cortexa57_branch_cost.
9491 (cortexa72_tunings): Use cortexa57_branch_cost.
9492 Use AUTOPREFETCHER_WEAK.
9493 (cortexa73_tunings): Use cortexa57_branch_cost.
9495 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9496 James Greenhalgh <james.greenhalgh@arm.com>
9498 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9499 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9500 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9501 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9502 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9503 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9504 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9505 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9506 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9507 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9508 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9509 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9510 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9513 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
9514 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9516 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9518 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9520 2016-06-30 David Malcolm <dmalcolm@redhat.com>
9523 * gcc.c (driver::build_option_suggestions): Pass "option" to
9524 add_misspelling_candidates.
9525 * opts-common.c (add_misspelling_candidates): Add "option" param;
9526 use it to avoid adding negated forms for options marked with
9528 * opts.h (add_misspelling_candidates): Add "option" param.
9530 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9533 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9534 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9535 first when permuting bitwise operation with rotate. Cast
9536 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9538 2016-06-29 David Malcolm <dmalcolm@redhat.com>
9540 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9541 for misspelled param names.
9542 * params.c: Include spellcheck.h.
9543 (find_param_fuzzy): New function.
9544 * params.h (find_param_fuzzy): New prototype.
9545 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9546 * spellcheck.h (struct edit_distance_traits<const char *>):
9549 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9551 * config/rs6000/predicates.md (const_0_to_7_operand): New
9552 predicate, recognize 0..7.
9553 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9554 support for doing extracts from V16QImode, V8HImode, V4SImode
9556 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9557 vector extract support.
9558 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9559 for ISA 3.0 vector extract.
9560 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9561 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9562 extracts of a constant element number from small integer vectors
9563 on 64-bit ISA 3.0 systems.
9564 (vsx_extract_<mode>_di): Likewise.
9565 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9566 say when we can do ISA 3.0 vector extracts.
9567 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9568 registers, using the stxsiwx instruction.
9570 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
9572 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9573 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9574 qdf24xx_regmove_cost, qdf24xx_tunings): New.
9575 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9576 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9577 * config/arm/arm.c (arm_qdf24xx_tune): New.
9579 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
9581 * config/aarch64/aarch64.c (cortexa53_tunings):
9582 Increase loop alignment to 8. Set function alignment to 16.
9583 (cortexa35_tunings): Likewise.
9584 (cortexa57_tunings): Increase loop alignment to 8.
9585 (cortexa72_tunings): Likewise.
9586 (cortexa73_tunings): Likewise.
9588 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
9590 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9591 for arm_fp16_ok and arm_fp16_hw.
9592 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9593 arm_fp16_alternative.
9595 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
9597 PR tree-optimization/71655
9598 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9599 types when swapping operands.
9601 2016-06-29 Martin Liska <mliska@suse.cz>
9604 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9605 * ipa-inline-transform.c (inline_call): Remove unnecessary call
9606 of build_optimization_node.
9608 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9610 PR tree-optimization/70729
9611 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9612 independent in loops having positive safelen value.
9613 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9614 it may be not valid after vectorization.
9616 2016-06-29 Jakub Jelinek <jakub@redhat.com>
9618 PR tree-optimization/71625
9619 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
9620 is sorted by ascending list->offset. If PTR is non-NULL and there is
9621 previous strinfo, call get_stridx_plus_constant.
9622 (get_stridx): Pass exp as second argument to get_addr_stridx.
9623 (addr_stridxptr): Add missing list = list->next, so that there can be
9624 more than one entries in the list. Bump limit from 16 to 32. Ensure
9625 the list is sorted by ascending list->offset.
9626 (get_stridx_plus_constant): Adjust so that it can be also called with
9627 ADDR_EXPR instead of SSA_NAME as PTR.
9628 (handle_char_store): Pass NULL_TREE as second argument to
9631 2016-06-29 Richard Biener <rguenther@suse.de>
9633 PR rtl-optimization/68961
9634 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9636 2016-06-29 Richard Biener <rguenther@suse.de>
9639 * alias.c (component_uses_parent_alias_set_from): Handle
9640 type punning through union accesses by using the union alias set.
9641 * gimple.c (gimple_get_alias_set): Remove union type punning case.
9643 2016-07-29 Richard Biener <rguenther@suse.de>
9645 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9646 precision not matching mode precision.
9648 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
9650 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9651 pa_output_arg_descriptor.
9652 (call_val_symref_64bit_post_reload): Likewise.
9653 (call_val_powf_64bit_post_reload): Likewise.
9654 (sibcall_internal_symref_64bit): Likewise.
9655 (sibcall_value_internal_symref_64bit): Likewise.
9657 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9660 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9661 a constant, force its SUBREG_REG into memory or register instead
9664 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9667 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9668 * doc/invoke.texi (AVR Options): Document it.
9670 2016-06-28 Walter Lee <walt@tilera.com>
9672 * config/tilegx/linux.h: Do not include arch/icache.h
9673 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9674 * config/tilepro/linux.h: Do not include arch/icache.h
9675 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9677 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9679 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9680 for big-endian BIT_FIELD_REF.
9682 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
9684 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9685 ('size' attribute): Add '128'.
9687 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9688 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9689 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9690 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9691 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9692 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9693 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9694 *trunc<mode>df2_odd): Set size attribute to '128'.
9695 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9696 * config/rs6000/power6.md (power6-fp): Include dfp type.
9697 * config/rs6000/power7.md (power7-fp): Likewise.
9698 * config/rs6000/power8.md (power8-fp): Likewise.
9699 * config/rs6000/power9.md: New file.
9700 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9701 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9702 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9704 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9705 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9706 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9707 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9708 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9709 dfp_dscri_<mode>): Change type attribute to dfp.
9710 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9711 attribute to vecsimple.
9712 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9713 and prefetch streams.
9714 (rs6000_option_override_internal): Remove temporary code setting
9715 tuning to power8. Don't set rs6000_sched_groups for power9.
9716 (last_scheduled_insn): Change to rtx_insn *.
9717 (divide_cnt, vec_load_pendulum): New variables.
9718 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9719 (rs6000_issue_rate): Set issue rate for Power9.
9720 (is_power9_pairable_vec_type): New.
9721 (power9_sched_reorder2): New.
9722 (rs6000_sched_reorder2): Call new function for Power9 specific
9724 (insn_must_be_first_in_group): Remove Power9.
9725 (insn_must_be_last_in_group): Likewise.
9726 (force_new_group): Likewise.
9727 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9728 Initialize divide_cnt/vec_load_pendulum.
9729 (_rs6000_sched_context, rs6000_init_sched_context,
9730 rs6000_set_sched_context): Handle context save/restore of new
9733 2016-06-28 Richard Biener <rguenther@suse.de>
9735 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9736 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9737 COMPONENT_REF operand.
9738 (nonoverlapping_component_refs_p): Likewise.
9739 * stor-layout.c (start_bitfield_representative): Mark
9740 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9742 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9744 * Makefile.in: Don't cat ../stage_current if it does not exist.
9746 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9747 last argument is a bit-field.
9749 PR rtl-optimization/71673
9750 * internal-fn.c (expand_arith_overflow_result_store): Use
9751 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9752 expand_simple_binop.
9755 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9756 expand_ifn_atomic_compare_exchange): New functions.
9757 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9758 * tree.h (build_call_expr_internal_loc): Rename to ...
9759 (build_call_expr_internal_loc_array): ... this. Fix up type of
9761 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9762 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9763 ATOMIC_COMPARE_EXCHANGE result.
9764 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9765 * gimple-fold.h (optimize_atomic_compare_exchange_p,
9766 fold_builtin_atomic_compare_exchange): New prototypes.
9767 * gimple-fold.c (optimize_atomic_compare_exchange_p,
9768 fold_builtin_atomic_compare_exchange): New functions..
9769 * tree-ssa.c (execute_update_addresses_taken): If
9770 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9771 of call when finding addressable vars, and if such var becomes
9772 non-addressable, call fold_builtin_atomic_compare_exchange.
9774 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
9777 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9778 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9780 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
9782 * config/rs6000/rs6000.md ('type' attribute): Add
9783 veclogical,veccmpfx,vecexts,vecmove insn types.
9784 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9785 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9786 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9787 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9788 *nabs<mode>2_hw): Change type to vecmove.
9789 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9790 *boolcc<mode>3_internal, *eqv<mode>3_internal,
9791 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9792 *ieee_128bit_vsx_abs<mode>2_internal,
9793 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9794 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9795 *ieee128_mtvsrd_32bit): Change type to veclogical.
9796 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9797 *movdi_internal32, *movdi_internal64): Update insn types.
9798 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9799 vsx_extract_<mode>): Change type to veclogical.
9800 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9801 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9802 *vsx_sign_extend_si_v2di): Change type to vecexts.
9803 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9805 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9806 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9807 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9808 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9809 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9810 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9811 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9812 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9813 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9814 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9815 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9816 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9817 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9818 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9819 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9820 (ppc7450-vecsimple): Add veclogical, vecmove.
9821 (ppc7450-veccmp): Add veccmpfx.
9822 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9824 (ppc8540_vector_compare): Add veccmpfx.
9825 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9826 * config/rs6000/cell.md (cell-fp): Add fpsimple.
9827 (cell-vecsimple): Add veclogical, vecmove.
9828 (cell-veccmp): Add veccmpfx.
9829 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9830 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9832 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9833 * config/rs6000/power4.md (power4-fp): Add fpsimple.
9834 (power4-vecsimple): Add veclogical, vecmove.
9835 (power4-veccmp): Add veccmpfx.
9836 * config/rs6000/power5.md (power5-fp): Add fpsimple.
9837 * config/rs6000/power6.md (power6-fp): Add fpsimple.
9838 (power6-vecsimple): Add veclogical, vecmove.
9839 (power6-veccmp): Add veccmpfx.
9840 * config/rs6000/power7.md (power7-fp): Add fpsimple.
9841 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9842 * config/rs6000/power8.md (power8-fp): Add fpsimple.
9843 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9844 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9845 * config/rs6000/titan.md (titan_fp): Add fpsimple.
9846 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9848 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9850 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
9853 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9854 OPTION_MASK_P9_DFORM_VECTOR.
9855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9856 disable -mpower9-dform-vector when using reload.
9857 (quad_address_p): Remove 'gpr_p' argument and all associated code.
9858 New 'strict' argument. Update all callers. Add strict addressing
9860 (rs6000_legitimate_offset_address_p): Remove call to
9861 virtual_stack_registers_memory_p.
9862 (rs6000_legitimize_reload_address): Add quad address support.
9863 (rs6000_legitimate_address_p): Move call to quad_address_p above
9864 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
9865 to account for new strict usage.
9866 (rs6000_output_move_128bit): Adjust quad_address_p args to account
9867 for new strict usage.
9868 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9870 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
9877 * config/i386/i386.c (ix86_spill_class): Disable condition to
9878 always return NO_REGS.
9880 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
9882 * predict.c: Include gimple-pretty-print.h
9883 (predicted_by_loop_heuristics_p): Check also
9884 PRED_LOOP_EXIT_WITH_RECURSION
9885 (predict_loops): Find self recursive calls and use special purpose
9886 predictors for them; dump log about decisions.
9887 (pass_profile::execute): Dump info about #of iterations.
9888 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9889 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9891 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
9893 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9894 output_asm_insn calls and shorten long lines. Output .CALL
9895 argument descriptor using pa_output_arg_descriptor. Add various
9896 inline $$dyncall and other optimizations.
9897 (pa_attr_length_indirect_call): Adjust ordering and lengths.
9899 2016-06-25 Jakub Jelinek <jakub@redhat.com>
9901 PR tree-optimization/71643
9902 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9905 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9906 leak a bitmap if dep_bb is NULL.
9908 PR tree-optimization/71631
9909 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9910 to rewrite_expr_tree even if negate_result, move new_lhs var
9911 declaration and initialization earlier, for powi_result set afterwards
9912 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
9913 if new_lhs != lhs, and don't shadow gsi var.
9915 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9917 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9918 Add in_loop parameter.
9919 (predict_loops): Add loop guard heuristics.
9920 * predict.def (PRED_LOOP_GUARD): New heuristics.
9922 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9924 * predict.c: Include ipa-utils.h
9925 (tree_bb_level_prediction): Predict recursive calls.
9926 (tree_estimate_probability_bb): Skip inexpensive calls for call
9928 * predict.def (PRED_RECURSIVE_CALL): New.
9930 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9932 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9933 (BU_FLOAT128_1): Likewise.
9935 (COPYSIGNQ): Likewise.
9936 (RS6000_BUILTIN_NANQ): Likewise.
9937 (RS6000_BUILTIN_NANSQ): Likewise.
9938 (RS6000_BUILTIN_INFQ): Likewise.
9939 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9940 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9941 (TARGET_FOLD_BUILTIN): New #define.
9942 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9943 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9944 (rs6000_fold_builtin): New target hook implementation, handling
9945 folding of 128-bit NaNs and infinities.
9946 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9947 entries are filled in to avoid problems during bootstrap
9948 self-test; define builtins for 128-bit NaNs and infinities.
9949 (rs6000_opt_mask): Add entry for float128.
9950 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9951 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9952 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9953 (const_str_type_node): New #define.
9954 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9955 to a define_expand that dispatches to either copysign<mode>3_soft
9956 or copysign<mode>3_hard.
9957 (copysign<mode>3_hard): Rename from copysign<mode>3.
9958 (copysign<mode>3_soft): New define_insn.
9959 * doc/extend.texi: Document new builtins.
9961 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9963 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9964 PRIu64 instead of lu.
9966 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
9969 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9972 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9974 PR tree-optimization/71647
9975 * omp-low.c (lower_rec_input_clauses): Convert
9976 omp_clause_aligned_alignment (c) to size_type_node for the
9977 last argument of __builtin_assume_aligned.
9979 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
9981 * configure.ac (calling ___tls_get_addr via GOT): New
9982 assembler/linker check.
9983 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
9984 assembler and linker supports calling ___tls_get_addr via GOT.
9985 Otherise, defined to 0.
9986 * config.in: Regenerated.
9987 * configure: Likewise.
9988 * config/i386/constraints.md (Yb): New constraint.
9989 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9990 (REG_CLASS_NAMES): Likewise.
9991 (REG_CLASS_CONTENTS): Likewise.
9992 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9993 the b constraint with the Yb constraint. Call ___tls_get_addr
9994 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9996 (*tls_local_dynamic_base_32_gnu): Likewise.
9997 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9998 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9999 (*tls_local_dynamic_base_64_<mode>): Likewise.
10001 2016-06-24 Martin Liska <mliska@suse.cz>
10003 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10004 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10006 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10007 argument to true if the expected number of iterations is
10010 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10012 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10013 assemble for 32bit target.
10014 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10015 and $ld_ix86_gld_32_opt to link for 32bit target.
10016 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10017 * configure: Regenerate.
10019 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10021 * config/arm/arm.c (int_log2): Delete definition and prototype.
10022 (shift_op): Use exact_log2 instead of int_log2.
10023 (vfp3_const_double_for_fract_bits): Likewise.
10025 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10027 * internal-fn.c (expand_arith_set_overflow): New function.
10028 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10030 (expand_arith_overflow_result_store): Likewise. Handle precision
10031 smaller than mode precision.
10032 * tree-vrp.c (extract_range_basic): For imag part, handle
10033 properly signed 1-bit precision result.
10034 * doc/extend.texi (__builtin_add_overflow): Document that last
10035 argument can't be pointer to enumerated or boolean type.
10036 (__builtin_add_overflow_p): Document that last argument can't
10037 have enumerated or boolean type.
10039 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10040 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10042 * config/rs6000/predicates.md (splat_input_operand): Rework.
10043 Don't allow constants, since the insns that use this predicate
10044 don't support constants. Constants are handled by other insns
10045 that are created via combine. During and after register
10046 allocation, only allow indexed or indirect addresses, and not
10047 general addresses. Only allow modes supported by the hardware.
10048 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10049 comment. Move check for using VSPLTIS<x> to a common location,
10050 instead of doing it in two different places.
10052 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10054 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10055 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10056 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10057 signature_CENTAUR_ebx.
10059 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10063 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10064 (as_ix86_gas_32_opt): This.
10065 (ld_ix86_tls_ldm_opt): Renamed to ...
10066 (ld_ix86_gld_32_opt): This.
10067 (R_386_TLS_LDM reloc): Updated.
10068 (R_386_GOT32X reloc): New assembler/linker check.
10069 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10070 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10072 * config.in: Regenerated.
10073 * configure: Likewise.
10074 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10075 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10076 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10077 if ix86_force_load_from_GOT_p returns true.
10078 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10079 ix86_force_load_from_GOT_p returns true.
10080 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10081 the external function address via the GOT slot.
10082 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10083 HAVE_AS_IX86_GOT32X before returning false.
10084 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10085 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10087 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10089 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10091 2016-06-23 Andi Kleen <ak@linux.intel.com>
10093 * Makefile.in: Regenerate.
10094 * doc/install.texi: Document autoprofiledbootstrap.
10096 2016-06-23 Andi Kleen <ak@linux.intel.com>
10098 * config/i386/gcc-auto-profile: New file.
10100 2016-06-23 Martin Liska <mliska@suse.cz>
10102 PR middle-end/71619
10103 * predict.c (predict_loops): Revert the hunk that was removed
10106 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10108 * config.gcc: Add support for arm*-*-phoenix* targets.
10109 * config/arm/t-phoenix: New.
10110 * config/phoenix.h: New.
10112 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10113 H.J. Lu <hongjiu.lu@intel.com>
10116 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10117 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10118 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10119 ix86_force_load_from_GOT_p returns true.
10120 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10121 ix86_force_load_from_GOT_p returns true.
10122 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10123 ix86_force_load_from_GOT_p returns true.
10124 (ix86_expand_move): Load the external function address via the
10125 GOT slot if ix86_force_load_from_GOT_p returns true.
10126 * config/i386/predicates.md (x86_64_immediate_operand): Return
10127 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10128 (x86_64_zext_immediate_operand): Ditto.
10130 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10132 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10134 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10137 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10138 * diagnostic.c (pedwarn_at_rich_loc): New function.
10139 * spellcheck.h (best_match::best_match): Add a
10140 "best_distance_so_far" optional parameter.
10141 (best_match::set_best_so_far): New method.
10142 (best_match::get_best_distance): New accessor.
10143 (best_match::get_best_candidate_length): New accessor.
10145 2016-06-22 Nick Clifton <nickc@redhat.com>
10147 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10148 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10149 modes are accepted as well.
10150 (ucompare_loc_descriptor): Likewise.
10151 (minmax_loc_descriptor): Likewise.
10152 (clz_loc_descriptor): Likewise.
10153 (popcount_loc_descriptor): Likewise.
10154 (bswap_loc_descriptor): Likewise.
10155 (rotate_loc_descriptor): Likewise.
10156 (mem_loc_descriptor): Likewise.
10157 (loc_descriptor): Likewise.
10159 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10161 * common.opt (fdiagnostics-parseable-fixits): New option.
10162 * diagnostic.c: Include "selftest.h".
10163 (print_escaped_string): New function.
10164 (print_parseable_fixits): New function.
10165 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10166 (selftest::assert_print_escaped_string): New function.
10167 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10168 (selftest::test_print_escaped_string): New function.
10169 (selftest::test_print_parseable_fixits_none): New function.
10170 (selftest::test_print_parseable_fixits_insert): New function.
10171 (selftest::test_print_parseable_fixits_remove): New function.
10172 (selftest::test_print_parseable_fixits_replace): New function.
10173 (selftest::diagnostic_c_tests): New function.
10174 * diagnostic.h (struct diagnostic_context): Add field
10175 "parseable_fixits_p".
10176 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10177 -fdiagnostics-parseable-fixits.
10178 (-fdiagnostics-parseable-fixits): New option.
10179 * opts.c (common_handle_option): Handle
10180 -fdiagnostics-parseable-fixits.
10181 * selftest-run-tests.c (selftest::run_tests): Call
10182 selftest::diagnostic_c_tests.
10183 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10185 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10187 PR tree-optimization/71488
10188 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10189 comparison of boolean vectors.
10190 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10191 of boolean vectors using bitwise operations.
10193 2016-06-22 Andreas Schwab <schwab@suse.de>
10195 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10196 Remove declaration.
10198 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10200 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10202 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10204 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10207 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10209 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10210 * config/arm/arm-cores.def (cortex-a73): New entry.
10211 (cortex-a73.cortex-a35): Likewise.
10212 (cortex-a73.cortex-a53): Likewise.
10213 * config/arm/arm-tables.opt: Regenerate.
10214 * config/arm/arm-tune.md: Likewise.
10215 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10216 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10217 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10218 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10219 * doc/invoke.texi (ARM Options): Document cortex-a73,
10220 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10222 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10224 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10225 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10226 (cortex-a73.cortex-a35): Likewise.
10227 (cortex-a73.cortex-a53): Likewise.
10228 * config/aarch64/aarch64-tune.md: Regenerate.
10229 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10230 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10233 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10235 * configure.ac (gcc_cv_as_compress_debug): Remove
10236 --compress-debug-sections as extra as switch.
10237 Handle gas --compress-debug-sections=type.
10238 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10239 Handle gld --compress-debug-sections=type.
10240 * configure: Regenerate.
10242 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
10244 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10246 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
10248 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10249 (do_rewrite): likewise.
10251 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10253 * common/config/mep/mep-common.c: Remove.
10254 * config.gcc: Remove mep-* support.
10255 * config/mep/constraints.md: Remove.
10256 * config/mep/default.h: Remove.
10257 * config/mep/intrinsics.h: Remove.
10258 * config/mep/intrinsics.md: Remove.
10259 * config/mep/ivc2-template.h: Remove.
10260 * config/mep/mep-c5.cpu: Remove.
10261 * config/mep/mep-core.cpu: Remove.
10262 * config/mep/mep-default.cpu: Remove.
10263 * config/mep/mep-ext-cop.cpu: Remove.
10264 * config/mep/mep-intrin.h: Remove.
10265 * config/mep/mep-ivc2.cpu: Remove.
10266 * config/mep/mep-pragma.c: Remove.
10267 * config/mep/mep-protos.h: Remove.
10268 * config/mep/mep.c: Remove.
10269 * config/mep/mep.cpu: Remove.
10270 * config/mep/mep.h: Remove.
10271 * config/mep/mep.md: Remove.
10272 * config/mep/mep.opt: Remove.
10273 * config/mep/predicates.md: Remove.
10274 * config/mep/t-mep: Remove.
10275 * doc/install.texi: Remove mep-* documentation.
10276 * doc/md.texi: Likewise.
10278 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10280 * config.gcc: Remove support for avr-rtems.
10281 * config/avr/gen-avr-mmcu-specs.c: Likewise.
10282 * config/avr/rtems.h: Remove.
10283 * config/avr/t-rtems: Remove.
10285 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10287 * config.gcc: Remove m32r-rtems support.
10288 * config/m32r/rtems.h: Remove.
10290 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10292 * config.gcc: Remove h8300-rtems support.
10293 * config/h8300/rtems.h: Remove.
10294 * config/h8300/t-rtems: Remove.
10296 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10298 * config.gcc: Remove support for knetbsd.
10299 * configure.ac: Likewise.
10300 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
10301 * config/knetbsd-gnu.h: Remove.
10302 * configure: Regenerate.
10304 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10306 * config.gcc: Remove support for openbsd 2 and 3.
10307 * config/openbsd-oldgas.h: Remove.
10309 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10311 * config.gcc: Remove interix support.
10312 * config/i386/i386-interix.h: Remove.
10313 * config/i386/interix.opt: Remove.
10314 * config/i386/t-interix: Remove.
10315 * configure: Regenerate.
10316 * configure.ac: Remove interix support.
10317 * doc/install.texi: Remove interix documentation.
10319 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
10321 * config/rs6000/rs6000.h: Add conditional preprocessing directives
10322 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
10325 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
10327 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
10328 they are both PLACEHOLDER_EXPRs.
10330 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10332 * stor-layout.c (layout_type): Move setting complex MODE to
10333 layout_type, instead of setting it ahead of time by the caller.
10334 * tree.c (build_complex_type): Likewise.
10336 2016-06-21 Martin Liska <mliska@suse.cz>
10338 * predict.c (force_edge_cold): Replace imposisble with
10341 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
10343 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
10344 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
10346 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
10348 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
10350 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
10351 Ilya Enkovich <ilya.enkovich@intel.com>
10354 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10355 New member function to convert V1TImode register to SUBREG
10356 TImode in debug insn.
10357 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
10358 after changing register mode to V1TImode.
10360 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
10362 * config/aarch64/aarch64-cores.def (vulcan): New core.
10363 * config/aarch64/aarch64-tune.md: Regenerate.
10364 * doc/invoke.texi: Document vulcan as an available option.
10366 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
10368 * cse.c (canon_asm_operands): New function extracted from...
10369 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
10370 either standalone or member of a PARALLEL.
10372 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
10375 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
10376 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
10377 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
10379 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
10382 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
10383 constant addresses if can_create_pseudo_p.
10385 2016-06-21 Jakub Jelinek <jakub@redhat.com>
10387 PR tree-optimization/71588
10388 * tree-ssa-strlen.c (valid_builtin_call): New function.
10389 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
10392 2016-06-20 Jakub Jelinek <jakub@redhat.com>
10394 PR middle-end/71581
10395 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
10396 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
10397 for conversion of scalar user var to complex type and use the
10398 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
10401 PR rtl-optimization/71591
10402 * toplev.c (toplev::run_self_tests): If no_backend, complain and
10403 don't run any tests.
10405 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
10408 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
10409 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
10410 space for PIC with non-v32 and the common non-PIC "jump".
10412 2016-06-20 Jakub Jelinek <jakub@redhat.com>
10415 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
10416 returned values and add UN*/LTGT/*ORDERED cases with values matching
10417 D operand modifier on vcmp for AVX.
10419 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10421 * config/aarch64/aarch64.opt
10422 (mpc-relative-literal-loads): Rename internal option name.
10423 * config/aarch64/aarch64.c
10424 (aarch64_nopcrelative_literal_loads): Rename to
10425 aarch64_pcrelative_literal_loads.
10426 (aarch64_expand_mov_immediate): Likewise.
10427 (aarch64_secondary_reload): Likewise.
10428 (aarch64_can_use_per_function_literal_pools_p): Likewise.
10429 (aarch64_override_options_after_change_1): Rename and simplify logic.
10430 (aarch64_classify_symbol): Merge large model checks into switch,
10431 remove pc-relative load check.
10433 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10435 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10436 costs relative to the cost of a register move.
10438 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10440 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10441 (vcvt_n_f64_u64): Likewise.
10442 (vcvt_n_s64_f64): Likewise.
10443 (vcvt_n_u64_f64): Likewise.
10444 (vcvt_f64_s64): Likewise.
10445 (vrecpe_f64): Likewise.
10446 (vcvt_f64_u64): Likewise.
10447 (vrecps_f64): Likewise.
10449 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10451 * config/aarch64/aarch64.md
10452 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10454 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
10456 * config/aarch64/aarch64-builtins.c
10457 (aarch64_types_binop_uss_qualifiers): Delete.
10458 (TYPES_BINOP_USS): Likewise.
10459 (aarch64_types_binop_sus_qualifiers): Likewise.
10460 (TYPES_BINOP_SUS): Likewise.
10461 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10462 (TYPES_FCVTIMM_SUS): Likewise.
10463 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10465 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10466 (fcvtzs): Use SHIFTIMM rather than BINOP.
10467 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10469 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10471 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10472 costs relative to the cost of a register move.
10474 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10476 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10477 Allow scalar/single vector modes to be tieable.
10479 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10481 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10483 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10485 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10487 * tree.h (TYPE_ALIGN): Likewise.
10489 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10492 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10494 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10496 * config/avr/avr.c (avr_print_operand): Fix "format not a string
10497 literal" build warnings.
10498 (avr_print_operand_address): Dito.
10500 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
10503 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10504 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10506 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
10508 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10510 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
10513 * reload1.c (reload): Pass 0 to finish_spills when called because
10514 update_eliminables_and_spill returns true and remove did_spill.
10515 (finish_spills): Adjust comment and document GLOBAL parameter.
10517 2016-06-17 DJ Delorie <dj@redhat.com>
10520 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10521 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10522 (umulqihi3_virt): Likewise.
10523 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10524 (umulqihi3_real): Likewise.
10526 2016-06-17 Martin Liska <mliska@suse.cz>
10528 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10530 2016-06-17 Martin Liska <mliska@suse.cz>
10532 * predict.def: PRED_LOOP_EXIT from 92 to 85.
10534 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
10536 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10538 (vaddq_f32): Likewise.
10539 (vmul_f32): Likewise.
10540 (vmulq_f32): Likewise.
10541 (vsub_f32): Likewise.
10542 (vsubq_f32): Likewise.
10544 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10546 PR tree-optimization/71347
10547 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10548 cost for all uses in group.
10550 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10552 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10553 insert gimple seq if it's not empty.
10555 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10557 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10559 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10560 rather than OFFSET.
10561 (comp_dr_with_seg_len_pair): Ditto.
10562 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
10563 struct dr_with_seg_len_pair against DR_OFFSET.
10564 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10565 DR_OFFSET directly.
10567 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
10569 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10571 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
10573 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10574 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10575 (pa_output_millicode_call): Likewise.
10576 (pa_output_call): Likewise.
10577 (pa_output_indirect_call): Likewise.
10578 (pa_asm_output_mi_thunk): Likewise.
10580 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10582 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10584 2016-06-16 Martin Liska <mliska@suse.cz>
10586 * predict.c (combine_predictions_for_insn): When we find a first
10587 match predictor, we should consider just predictors with
10588 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
10589 DS theory predictor.
10590 (combine_predictions_for_bb): Likewise.
10592 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10594 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10595 with base of reference to struct.
10597 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10599 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10601 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10604 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10605 progmem_swtable_section.
10606 (progmem_swtable_section): Remove.
10607 (avr_asm_function_rodata_section): Remove.
10608 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10609 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10611 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
10613 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10614 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10615 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10616 signature_CENTAUR_ebx.
10617 * config/i386/i386.c (ix86_option_override_internal): Add
10618 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10619 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10620 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10622 2016-06-16 Martin Liska <mliska@suse.cz>
10624 * predict.def: Add fortran loop preheader predictor.
10625 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10626 fold IFN_BUILTIN_EXPECT with a known constant argument.
10628 2016-06-16 Martin Liska <mliska@suse.cz>
10630 * predict.def: Add 'Fortran' to display text of all
10631 PRED_FORTRAN_* predictors.
10633 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10636 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10637 [IA64_BUILTIN_NANSQ]: Ditto.
10638 (ia64_fold_builtin): New function.
10639 (TARGET_FOLD_BUILTIN): New define.
10640 (ia64_init_builtins) Declare const_string_type node.
10641 Add __builtin_nanq and __builtin_nansq builtin functions.
10642 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10644 2016-06-16 Nick Clifton <nickc@redhat.com>
10646 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10647 MSP430_HWMULT_ prefix to enum values.
10648 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10649 * config/msp430/msp430.c: Update use of enum values.
10650 * config/msp430/msp430.md: Likewise.
10651 * config/msp430/msp430.opt: Likewise.
10653 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
10655 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10656 of comparsions in the last iteration.
10658 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10659 Joern Rennecke <joern.rennecke@embecosm.com>
10661 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10663 (arc_needs_pcl_p): Add GOTOFFPC.
10664 (arc_legitimate_pic_addr_p): Likewise.
10665 (arc_output_pic_addr_const): Likewise.
10666 (arc_legitimize_pic_address): Generate a pc-relative address using
10668 (arc_output_libcall): Use @pcl syntax.
10669 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10670 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10671 (*movsi_insn): Use @pcl syntax.
10672 (doloop_begin_i): Likewise.
10674 2016-06-16 Martin Liska <mliska@suse.cz>
10676 * predict.def: Define a new predictor.
10678 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10680 * config/arc/arc.opt (mtp-regno): Update text.
10682 2016-06-16 Renlin Li <renlin.li@arm.com>
10684 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10686 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10689 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10690 (setcc + and peephole2): Likewise.
10692 PR rtl-optimization/71532
10693 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10696 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10698 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10699 DImode constants with XXSPLTIB in vector registers.
10700 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10701 vsx_extract_<mode>_internal{1,2} into a single insn that handles
10702 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10703 extraction of the element at the top of the register as a scalar
10705 (vsx_extract_<mode>_internal1): Likewise.
10706 (vsx_extract_<mode>_internal2): Likewise.
10707 * config/rs6000/constraints.md (wi constraint): Remove a comment
10708 about DImode not being allowed in Altivec registers.
10709 (wB constraint): New constraint for constants that can be
10710 generated in Altivec registers with VSPLTISW/VUPKHSW.
10711 * config/rs6000/predicates.md (xxspltib_constant_split): Update
10713 (xxspltib_constant_nosplit): Likewise.
10714 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10715 support for -mupper-regs-di to enable DImode to go into Altivec
10717 (POWERPC_MASKS): Likewise.
10718 (power7 cpu): Likewise.
10719 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10720 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10721 for DImode being allowed in Altivec registers. Update wi/wj
10722 constraints. Set scalar_in_vmx_p flag.
10723 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10724 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
10725 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10726 (rs6000_opt_masks): Add -mupper-regs-di.
10727 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10728 direct move to use wi and not wj.
10729 (lfiwzx): Likewise.
10730 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10732 (floatunssi<mode>2_lfiwzx_mem): Likewise.
10733 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10734 any VSX register, instead of just Altivec registers, to allow
10735 either operand to be an Altivec register or both.
10736 (fixuns_trunc<mode>di2_fctiduz): Likewise.
10737 (movdi_internal32): Add support for -mupper-regs-di. Add support
10738 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
10739 the alternatives and attributes to be lined up to be easier to
10741 (movdi_internal64): Likewise.
10742 (64-bit DImode splitters): Change predicates to only split loading
10743 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
10744 load constants in ISA 3.0 or ISA 2.07 respectively.
10745 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10746 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
10747 mention -mcpu=power9 sets these options.
10748 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10751 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10754 * config/avr/avr.c (avr_set_current_function): Warn misspelled
10755 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10756 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10757 by default to warn misspelled interrupt/ signal handler.
10758 * doc/invoke.texi (AVR Options): Document it. Update description
10759 for -nodevicelib option.
10761 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10763 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10764 up parentheses. Use GET_MODE_UNIT_BITSIZE.
10765 (aarch64_<sur>shll2_n<mode>): Likewise.
10767 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
10769 PR middle-end/71529
10770 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10771 DECL_CONTEXT for copied arguments.
10773 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10775 PR tree-optimization/71483
10776 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10779 2016-06-15 Martin Liska <mliska@suse.cz>
10781 * predict.c (tree_predict_by_opcode): Call predict_edge_def
10782 instead of predict_edge w/o a probability.
10784 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10786 PR tree-optimization/71439
10787 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10790 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10792 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10793 register subregs in SET_SRC.
10795 2016-06-15 Richard Biener <rguenther@suse.de>
10797 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10798 store restrictions.
10800 2016-06-15 Richard Biener <rguenther@suse.de>
10802 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10803 not consider dependences between accesses that belong to the
10805 (vect_analyze_data_ref_dependences): Do not analyze read-read
10806 or self-dependences.
10808 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10810 * spellcheck-tree.c: Include spellcheck-tree.h rather than
10812 (find_closest_identifier): Reimplement in terms of
10813 best_match<tree,tree>.
10814 * spellcheck-tree.h: New file.
10815 * spellcheck.c (struct edit_distance_traits<const char *>): New
10817 (find_closest_string): Reimplement in terms of
10818 best_match<const char *, const char *>.
10819 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10820 overload to spellcheck-tree.h.
10821 (find_closest_identifier): Likewise.
10822 (struct edit_distance_traits<T>): New template.
10823 (class best_match): New class.
10825 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10827 * selftest-run-tests.c (selftest::run_tests): Call
10828 selftest::spellcheck_tree_c_tests.
10829 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10830 * spellcheck-tree.c: Include selftest.h and stringpool.h.
10831 (selftest::test_find_closest_identifier): New function.
10832 (selftest::spellcheck_tree_c_tests): New function.
10833 * spellcheck.c (selftest::test_find_closest_string): Verify that
10834 the order of the vec does not affect the results for this case.
10835 (selftest::test_data): New array.
10836 (selftest::test_metric_conditions): New function.
10837 (selftest::spellcheck_c_tests): Add a test of case-comparison.
10838 Call selftest::test_metric_conditions.
10840 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10842 * config/rs6000/rs6000-builtin.def (commentary): Typo.
10843 (BU_P9_MISC_1): Likewise.
10844 (BU_P9_64BIT_MISC_0): Likewise.
10845 (BU_P9_MISC_0): Likewise.
10847 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10849 * gcc-rich-location.c
10850 (gcc_rich_location::add_fixit_misspelled_id): New method.
10851 * gcc-rich-location.h
10852 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10854 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
10856 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10857 FreeBSD 11 and above.
10859 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
10861 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10863 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10865 * expmed.h: Close parenthesis in "at your option" in copyright
10867 * lower-subreg.h: Likewise.
10869 2016-06-14 Richard Biener <rguenther@suse.de>
10871 PR middle-end/71526
10872 * genmatch.c (expr::gen_transform): Use in_type for comparisons
10875 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10877 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10879 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
10880 mask+shift version.
10881 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10883 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10884 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10886 2016-06-14 Richard Biener <rguenther@suse.de>
10888 PR tree-optimization/71522
10889 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10890 copying into float copying.
10892 2016-06-14 Jakub Jelinek <jakub@redhat.com>
10894 PR tree-optimization/71520
10895 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10896 (replace_block_by): Move user labels from bb1 to bb2.
10898 2016-06-14 Richard Biener <rguenther@suse.de>
10900 PR middle-end/71310
10902 * expr.h (get_bit_range): Declare.
10903 * expr.c (get_bit_range): Export.
10904 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10905 word_mode again to constrain the bitfield access.
10907 2016-06-14 Richard Biener <rguenther@suse.de>
10909 PR tree-optimization/71521
10910 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10911 division int_const_binop against zero divisor.
10913 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10915 * config/i386/i386.md (signbittf2): New expander.
10916 * config/i386/sse.md (ptesttf2): New insn pattern.
10918 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10921 * input.c (selftest::test_reading_source_line): Avoid reading from
10922 __FILE__ by creating a tempfile with known content and reading
10925 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10927 * pretty-print.c (assert_pp_format_colored): Skip the test if
10929 (test_pp_format): Remove comment about GCC_COLORS.
10931 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10933 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10934 * pretty-print.c (assert_pp_format_va): Add location param and use
10935 it with ASSERT_STREQ_AT.
10936 (assert_pp_format): Add location param and pass it to
10937 assert_pp_format_va.
10938 (assert_pp_format_colored): Likewise.
10939 (ASSERT_PP_FORMAT_1): New.
10940 (ASSERT_PP_FORMAT_2): New.
10941 (ASSERT_PP_FORMAT_3): New.
10942 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10943 explicitly, or implicitly via the above macros.
10944 * selftest.c (selftest::pass): Use a selftest::location rather
10945 than file and line.
10946 (selftest::fail): Likewise. Print the function name.
10947 (selftest::fail_formatted): Likewise.
10948 (selftest::assert_streq): Use a selftest::location rather than
10950 * selftest.h (selftest::location): New struct.
10951 (SELFTEST_LOCATION): New macro.
10952 (selftest::pass): Accept a const location & rather than file
10954 (selftest::fail): Likewise.
10955 (selftest::fail_formatted): Likewise.
10956 (selftest::assert_streq): Likewise.
10957 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10958 (ASSERT_FALSE): Likewise.
10959 (ASSERT_EQ): Likewise.
10960 (ASSERT_NE): Likewise.
10961 (ASSERT_STREQ): Likewise.
10962 (ASSERT_PRED1): Likewise.
10963 (ASSERT_STREQ_AT): New macro.
10965 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10967 * selftest.c (selftest::fail_formatted): New function.
10968 (selftest::assert_streq): New function.
10969 * selftest.h (selftests::fail_formatted): New decl.
10970 (selftest::assert_streq): New decl.
10971 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10973 2016-06-13 Jeff Law <law@redhat.com>
10975 PR tree-optimization/71403
10976 * tree-ssa-threadbackward.c
10977 (convert_and_register_jump_thread_path): No longer accept reference
10978 to path. Do not pop items off the path anymore.
10979 (fsm_find_control_statement_thread_paths): Do not allow threading
10980 to a deeper loop nest. Pop the last item off the path here rather
10981 than in convert_and_register_jump_thread_path.
10983 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10984 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
10986 [AArch64] Emit division using the Newton series
10988 * config/aarch64/aarch64-protos.h
10989 (cpu_approx_modes): Add new member "division".
10990 (aarch64_emit_approx_div): Declare new function.
10991 * config/aarch64/aarch64.c
10992 (generic_approx_modes): New member "division".
10993 (exynosm1_approx_modes): Likewise.
10994 (xgene1_approx_modes): Likewise.
10995 (aarch64_emit_approx_div): Define new function.
10996 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10997 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10998 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10999 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11001 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11002 Wilco Dijkstra <wilco.dijkstra@arm.com>
11004 [AArch64] Emit square root using the Newton series
11006 * config/aarch64/aarch64-protos.h
11007 (aarch64_emit_approx_rsqrt): Replace with new function
11008 "aarch64_emit_approx_sqrt".
11009 (cpu_approx_modes): New member "sqrt".
11010 * config/aarch64/aarch64.c
11011 (generic_approx_modes): New member "sqrt".
11012 (exynosm1_approx_modes): Likewise.
11013 (xgene1_approx_modes): Likewise.
11014 (aarch64_emit_approx_rsqrt): Replace with new function
11015 "aarch64_emit_approx_sqrt".
11016 (aarch64_override_options_after_change_1): Handle new option.
11017 * config/aarch64/aarch64-simd.md
11018 (rsqrt<mode>2): Use new function instead.
11019 (sqrt<mode>2): New expansion and insn definitions.
11020 * config/aarch64/aarch64.md: Likewise.
11021 * config/aarch64/aarch64.opt
11022 (mlow-precision-sqrt): Add new option description.
11023 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11025 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11027 [AArch64] Add more choices for the reciprocal square root approximation
11029 Allow a target to prefer such operation depending on the operation mode.
11031 * config/aarch64/aarch64-protos.h
11032 (AARCH64_APPROX_MODE): New macro.
11033 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11034 (cpu_approx_modes): New structure.
11035 (tune_params): New member "approx_modes".
11036 * config/aarch64/aarch64-tuning-flags.def
11037 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11038 * config/aarch64/aarch64.c
11039 (generic_approx_modes): New core "cpu_approx_modes" structure.
11040 (exynosm1_approx_modes): Likewise.
11041 (xgene1_approx_modes): Likewise.
11042 (generic_tunings): New member "approx_modes".
11043 (cortexa35_tunings): Likewise.
11044 (cortexa53_tunings): Likewise.
11045 (cortexa57_tunings): Likewise.
11046 (cortexa72_tunings): Likewise.
11047 (exynosm1_tunings): Likewise.
11048 (thunderx_tunings): Likewise.
11049 (xgene1_tunings): Likewise.
11050 (use_rsqrt_p): New argument for the mode and use new member from
11052 (aarch64_builtin_reciprocal): Devise mode from builtin.
11053 (aarch64_optab_supported_p): New argument for the mode.
11054 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11056 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11058 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11059 RS6000_BTM_MODULO flag into the set of flags that are considered
11060 to be part of the common configuration.
11062 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11064 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11065 difference unsigned.
11066 (vec_absdb): New macro for vector absolute difference unsigned
11068 (vec_absdh): New macro for vector absolute difference unsigned
11070 (vec_absdw): New macro for vector absolute difference unsigned word.
11071 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11072 (vadu<mode>3): New insn.
11073 (*p9_vadu<mode>3): New insn.
11074 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11076 (vaduh): New built-in definition.
11077 (vaduw): New built-in definition.
11078 (vadu): New overloaded built-in definition.
11079 (vadub): New overloaded built-in definition.
11080 (vaduh): New overloaded built-in definition.
11081 (vaduw): New overloaded built-in definition.
11082 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11083 overloaded vector absolute difference unsigned functions.
11084 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11085 the ISA 3.0 vector absolute difference unsigned built-in functions.
11087 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11090 update shared_lookup_references only once after changing operands.
11092 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11094 PR middle-end/71373
11095 * tree-nested.c (convert_nonlocal_omp_clauses)
11096 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11098 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11099 * tree.def (CASE_LABEL_EXPR): Likewise.
11101 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11104 * input.c (test_builtins): Fix an assertion.
11106 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11108 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11109 (paritysi2): Ditto.
11111 (isinf<mode>2): Ditto.
11113 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11115 * ggc-tests.c (test_finalization): Only test need_finalization_p
11116 for GCC_VERSION >= 4003.
11118 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11120 * config/s390/vecintrin.h: Fix file description in comment.
11122 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11124 * config/s390/s390-builtin-types.def: Change builtin type naming
11125 scheme to match builtin-types.def.
11127 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11129 * fold-const.c (optimize_minmax_comparison): Remove.
11130 (fold_comparison): Remove call to the above.
11131 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11132 New transformations.
11134 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11136 PR tree-optimization/71416
11137 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11140 2016-06-13 Martin Liska <mliska@suse.cz>
11142 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11143 (combine_predictions_for_insn): Likewise.
11144 (prune_predictions_for_bb): Likewise.
11145 (combine_predictions_for_bb): Likewise.
11147 2016-06-13 Richard Biener <rguenther@suse.de>
11149 PR tree-optimization/71505
11150 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11151 assert match comment.
11153 2016-06-13 Marek Polacek <polacek@redhat.com>
11155 PR middle-end/71476
11156 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11157 gimplify_switch_expr.
11158 (warn_switch_unreachable_r): New function.
11160 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11163 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11166 2016-06-13 Richard Biener <rguenther@suse.de>
11168 PR middle-end/64516
11169 * fold-const.c (fold_unary_loc): Preserve alignment when
11170 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11172 2016-06-13 Martin Liska <mliska@suse.cz>
11175 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11176 w/ -fsanitize=bounds.
11178 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11180 * config/i386/i386.c (ix86_init_builtins): Calculate
11181 FLOAT128_FTYPE_CONST_STRING function type only once.
11182 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11183 built-in functions are available for x86-32 and x86-64 targets.
11185 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11188 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11189 New primitive type.
11190 (FLOAT128_FTYPE_CONST_STRING): New function type.
11191 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11192 [IX86_BUILTIN_NANSQ]: Ditto.
11193 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11194 (ix86_init_builtin_types): Declare const_string_type_node.
11195 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11197 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11198 * doc/extend.texi (x86 Built-in Functions): Document
11199 __builtin_nanq and __builtin_nansq.
11201 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11204 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11205 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11206 length for pop patterns.
11207 (arm_attr_length_push_multi): Update comments.
11208 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11210 (*pop_multiple_with_writeback_and_return): Likewise.
11211 (*pop_multiple_with_return): Likewise.
11213 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11215 PR middle-end/71310
11216 * fold-const.c (optimize_bit_field_compare): Don't try to use
11217 word_mode unconditionally for reading the bit field, look at
11218 DECL_BIT_FIELD_REPRESENTATIVE instead.
11220 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11222 PR middle-end/71478
11223 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11224 vector integer type.
11226 2016-06-10 Jakub Jelinek <jakub@redhat.com>
11228 PR middle-end/71494
11229 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11230 without LABEL_DECL, set *handled_ops_p to false instead of true.
11232 2016-06-10 Martin Sebor <msebor@redhat.com>
11235 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11236 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11237 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11239 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11240 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11241 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11242 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11243 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11244 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11245 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11246 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11248 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11250 * config/arm/arm.h (pool_vector_label,
11251 return_used_this_function): Remove.
11253 2016-06-10 Jeff Law <law@redhat.com>
11255 PR tree-optimization/71335
11256 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11257 zero length paths here.
11258 (convert_and_register_jump_thread_path): Remove hacks related to
11259 duplicated blocks in the jump thread path.
11260 (fsm_find_control_statement_thread_paths): Avoid putting the same
11261 block on the thread path twice, but ensure the thread path is
11262 unchanged from the caller's point of view.
11264 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11266 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11267 * predict.def (PRED_LOOP_BRANCH): Remove.
11269 2016-06-10 David Malcolm <dmalcolm@redhat.com>
11271 * Makefile.in (OBJS): Add ggc-tests.o.
11272 (GTFILES): Add ggc-tests.c.
11273 * ggc-tests.c: New file.
11274 * selftest-run-tests.c (selftest::run_tests): Call
11275 selftest::ggc_tests_c_tests.
11276 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
11278 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
11280 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
11282 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
11285 * varasm.c (place_block_symbol): Adjust alignment for asan protected
11286 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
11288 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11290 * profile.c: Include cfgloop.h.
11291 (branch_prob): Compute estimated number of iterations.
11292 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
11293 recompute estimate number of iterations from profile.
11295 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11297 PR inline-asm/68843
11298 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
11299 must be grouped on top of stack. Don't force early clobber
11300 on ordinary reg outputs.
11302 2016-06-10 Richard Biener <rguenther@suse.de>
11304 * targhooks.c (default_builtin_vectorization_cost): Adjust
11305 vec_construct cost.
11307 2016-06-10 Richard Biener <rguenther@suse.de>
11309 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
11310 to fold the RHS to a constant if possible.
11312 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
11314 PR middle-end/71373
11315 * tree-nested.c (convert_nonlocal_omp_clauses)
11316 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
11317 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11318 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
11320 * gimplify.c (gimplify_adjust_omp_clauses): Discard
11322 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
11324 * omp-low.c (scan_sharing_clauses): Don't expect
11325 OMP_CLAUSE__CACHE_.
11327 2016-06-10 Alan Hayward <alan.hayward@arm.com>
11329 PR tree-optimization/71407
11330 PR tree-optimization/71416
11331 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
11332 BIT_FIELD_REF type.
11334 2016-06-10 Richard Biener <rguenther@suse.de>
11336 PR middle-end/71477
11337 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
11339 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
11341 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
11343 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
11344 Jiong Wang <jiong.wang@arm.com>
11346 PR rtl-optimization/70751
11347 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
11348 spilled into memory.
11350 2016-06-09 Jonathan Yong <10walls@gmail.com>
11353 2015-09-21 Jonathan Yong <10walls@gmail.com>
11355 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11356 sysroot/usr/lib/32api for additional win32 libraries,
11357 fixes failing Cygwin bootstrapping.
11359 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
11361 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
11364 2016-06-09 David Malcolm <dmalcolm@redhat.com>
11367 * pretty-print.c (pp_indent): Specify that %p is printed in a
11368 host-dependent manner.
11369 (test_pp_format): Remove the test for %p.
11371 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
11373 * config/mips/mips.c (mips_output_jump): Fix formatting.
11375 2016-06-09 Richard Biener <rguenther@suse.de>
11377 PR tree-optimization/71462
11378 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
11381 2016-06-09 Martin Liska <mliska@suse.cz>
11383 * predict.c (dump_prediction): Add new argument.
11384 (enum predictor_reason): New enum.
11385 (struct predictor_hash): New struct.
11386 (predictor_hash::hash): New function.
11387 (predictor_hash::equal): Likewise.
11388 (not_removed_prediction_p): New function.
11389 (prune_predictions_for_bb): Likewise.
11390 (combine_predictions_for_bb): Prune predictions.
11392 2016-06-09 Martin Liska <mliska@suse.cz>
11394 * predict.c (filter_predictions): New function.
11395 (remove_predictions_associated_with_edge): Use the filter
11397 (equal_edge_p): New function.
11399 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
11401 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
11402 Correct usage of @samp vs @option, add @samp where appropriate.
11403 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
11404 Add armv6s-m and document it, as it is no official ARM name.
11406 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11408 * ifcvt.c (struct noce_if_info): Add transform_name field.
11409 (noce_try_move): Set if_info->transform_name to the function name.
11410 (noce_try_ifelse_collapse): Likewise.
11411 (noce_try_store_flag): Likewise.
11412 (noce_try_inverse_constants): Likewise.
11413 (noce_try_store_flag_constants): Likewise.
11414 (noce_try_addcc): Likewise.
11415 (noce_try_store_flag_mask): Likewise.
11416 (noce_try_cmove): Likewise.
11417 (noce_try_cmove_arith): Likewise.
11418 (noce_try_minmax): Likewise.
11419 (noce_try_abs): Likewise.
11420 (noce_try_sign_mask): Likewise.
11421 (noce_try_bitop): Likewise.
11422 (noce_convert_multiple_sets): Likewise.
11423 (noce_process_if_block): Print if_info->transform_name to
11424 dump_file if transformation succeeded.
11426 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11428 * config/arm/cortex-a57.md (cortex_a57_alu):
11431 2016-06-08 Martin Sebor <msebor@redhat.com>
11432 Jakub Jelinek <jakub@redhat.com>
11436 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11437 BUILT_IN_MUL_OVERFLOW_P): New builtins.
11438 * builtins.c: Include gimple-fold.h.
11439 (fold_builtin_arith_overflow): Handle
11440 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11441 (fold_builtin_3): Likewise.
11442 * doc/extend.texi (Integer Overflow Builtins): Document
11443 __builtin_{add,sub,mul}_overflow_p.
11445 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
11447 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11448 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11450 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
11452 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11453 Rewrite, looking one level down for records and arrays.
11455 2016-06-08 David Malcolm <dmalcolm@redhat.com>
11457 * pretty-print.c: Include "selftest.h".
11458 (pp_format): Fix comment.
11459 (identifier_to_locale): Likewise.
11460 (selftest::test_basic_printing): New function.
11461 (selftest::assert_pp_format): New function.
11462 (selftest::test_pp_format): New function.
11463 (selftest::pretty_print_c_tests): New function.
11464 * selftest-run-tests.c (selftest::run_tests): Call
11465 selftest::pretty_print_c_tests.
11466 * selftest.h (pretty_print_c_tests): New declaration.
11468 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11470 * invoke.texi (max-loop-headers-insns): Document.
11471 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11472 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11473 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11475 2016-06-08 Richard Biener <rguenther@suse.de>
11477 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11478 on strided SLP loads and fall back to scalar loads in case
11479 we can't chunk them.
11481 2016-06-08 Richard Biener <rguenther@suse.de>
11483 PR tree-optimization/71452
11484 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11485 type used for the SSA rewrite has enough precision to cover
11486 the dynamic type of the location.
11488 2016-06-08 Jakub Jelinek <jakub@redhat.com>
11489 Richard Biener <rguenther@suse.de>
11492 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11493 the same as DECL_P (base0) for indirect_base0. Use equality_code
11494 in one further place.
11496 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
11498 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11499 to one word if the field is known to overlap other words.
11500 (extract_bit_field_1): Likewise.
11501 (store_split_bit_field): Remove compensating code.
11502 (extract_split_bit_field): Likewise.
11504 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
11508 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11510 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11512 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11514 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11515 (arch64_addpv4sf): Delete.
11516 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11517 "gen_aarch64_addpv4sf".
11518 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
11520 (vpadds_f32): Likewise.
11521 (vpaddq_f32): Likewise.
11522 (vpaddq_f64): Likewise.
11524 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11526 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11528 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11529 to VALLF. Rename to "fabd<mode>3".
11530 "*fabd_scalar<mode>3): Delete.
11531 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11533 (vabdd_f64): Likewise.
11534 (vabd_f32): Likewise.
11535 (vabd_f64): Likewise.
11536 (vabdq_f32): Likewise.
11537 (vabdq_f64): Likewise.
11539 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11541 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11543 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11544 "aarch64_rsqrts<mode>".
11545 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11546 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
11548 (vrsqrtsd_f64): Likewise.
11549 (vrsqrts_f32): Likewise.
11550 (vrsqrts_f64): Likewise.
11551 (vrsqrtsq_f32): Likewise.
11552 (vrsqrtsq_f64): Likewise.
11554 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11556 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11558 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11559 "aarch64_rsqrte<mode>".
11560 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11561 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
11563 (vrsqrted_f64): Likewise.
11564 (vrsqrte_f32): Likewise.
11565 (vrsqrte_f64): Likewise.
11566 (vrsqrteq_f32): Likewise.
11567 (vrsqrteq_f64): Likewise.
11569 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11571 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11573 (fcvtzs): Likewise.
11574 (fcvtzu): Likewise.
11575 * config/aarch64/aarch64-simd.md
11576 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11577 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11578 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11580 (vcvt_n_f32_u32): Likewise.
11581 (vcvt_n_s32_f32): Likewise.
11582 (vcvt_n_u32_f32): Likewise.
11583 (vcvtq_n_f32_s32): Likewise.
11584 (vcvtq_n_f32_u32): Likewise.
11585 (vcvtq_n_f64_s64): Likewise.
11586 (vcvtq_n_f64_u64): Likewise.
11587 (vcvtq_n_s32_f32): Likewise.
11588 (vcvtq_n_s64_f64): Likewise.
11589 (vcvtq_n_u32_f32): Likewise.
11590 (vcvtq_n_u64_f64): Likewise.
11591 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11592 (VSDQ_SDI): Likewise.
11593 (fcvt_target): Support V4DI, V4SI and V2SI.
11594 (FCVT_TARGET): Likewise.
11596 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11598 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11599 (TYPES_BINOP_SUS): Likewise.
11600 (aarch64_simd_builtin_data): Update include file name.
11601 (aarch64_builtins): Likewise.
11602 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11603 for conversion between scalar float-point and fixed-point.
11605 (fcvtzs): Likewise.
11606 (fcvtzu): Likewise.
11607 * config/aarch64/aarch64.md
11608 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11609 pattern for conversion between scalar float to fixed-pointer.
11610 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11611 (UNSPEC_FCVTZS): New UNSPEC enumeration.
11612 (UNSPEC_FCVTZU): Likewise.
11613 (UNSPEC_SCVTF): Likewise.
11614 (UNSPEC_UCVTF): Likewise.
11615 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11617 (vcvtd_n_f64_u64): Likewise.
11618 (vcvtd_n_s64_f64): Likewise.
11619 (vcvtd_n_u64_f64): Likewise.
11620 (vcvtd_n_f32_s32): Likewise.
11621 (vcvts_n_f32_u32): Likewise.
11622 (vcvtd_n_s32_f32): Likewise.
11623 (vcvts_n_u32_f32): Likewise.
11624 * config/aarch64/iterators.md (fcvt_target): Support integer to float
11626 (FCVT_TARGET): Likewise.
11627 (FCVT_FIXED2F): New iterator.
11628 (FCVT_F2FIXED): Likewise.
11629 (fcvt_fixed_insn): New define_int_attr.
11631 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11633 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11634 some statements was removed.
11636 2016-06-08 Alan Hayward <alan.hayward@arm.com>
11638 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11639 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11640 (vect_can_advance_ivs_p): likewise.
11641 (vect_update_ivs_after_vectorizer): likewise.
11642 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11643 (vect_analyze_scalar_cycles_1): likewise.
11644 (vect_analyze_loop_operations): likewise.
11645 (report_vect_op): likewise.
11646 (vect_is_slp_reduction): likewise.
11647 (vect_is_simple_reduction): likewise.
11648 (get_initial_def_for_induction): likewise.
11649 (vect_transform_loop): likewise.
11650 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11651 (vect_recog_sad_pattern): likewise.
11652 (vect_recog_widen_sum_pattern): likewise.
11653 (vect_recog_widening_pattern): likewise.
11654 (vect_recog_divmod_pattern): likewise.
11655 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11656 (vect_analyze_slp_instance): likewise.
11657 (vect_transform_slp_perm_load): likewise.
11658 (vect_schedule_slp_instance): likewise.
11660 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11662 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11663 (return_prediction): PRED_CONST_RETURN predict return as not taken.
11664 * predict.def (PRED_CONTINUE): Change hitrate 50->67
11665 (PRED_LOOP_BRANCH): Document predictor as broken.
11666 (PRED_LOOP_EXIT): Change hitrate 91->92.
11667 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11668 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11669 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11670 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11671 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11672 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11673 (PRED_CALL): Chane hitrate 71->67.
11674 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11675 (PRED_GOTO): Document as unused right now.
11676 (PRED_CONST_RETURN): Change hitrate 67->69
11677 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11678 (PRED_NULL_RETURN): Change hitrate 91->90.
11679 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11680 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11681 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11683 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
11685 * config/rs6000/altivec.h: Add __builtin_vec_mul.
11686 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11687 special case Altivec builtin.
11688 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11689 VSX_BUILTIN_VEC_MUL (replaced with special case code).
11690 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11691 code for ALTIVEC_BUILTIN_VEC_MUL.
11692 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11693 for __builtin_vec_mul.
11695 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
11697 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11700 2016-06-07 David Malcolm <dmalcolm@redhat.com>
11702 * spellcheck.c (selftest::test_find_closest_string): New function.
11703 (spellcheck_c_tests): Call the above.
11705 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11707 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11709 2016-06-07 Jakub Jelinek <jakub@redhat.com>
11711 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11712 Yv=Yv,C alternatives.
11714 2016-06-07 Richard Biener <rguenther@suse.de>
11717 * common.opt (ffast-math): Make Optimization.
11719 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
11720 Prachi Godbole <prachi.godbole@imgtec.com>
11722 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11723 `fabs' and `fneg' type attributes.
11724 (p5600_fpu_fabs): Add `fmove' to the comment.
11726 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11728 * gimple.c: Include builtins.h
11729 (gimple_inexpensive_call_p): New function.
11730 * gimple.h (gimple_inexpensive_call_p): Declare.
11731 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11732 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11735 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
11737 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11738 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11739 warning_at_rich_loc, warning_n, pedwarn, permerror,
11740 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11741 sorry, fatal_error, internal_error, internal_error_no_backtrace):
11744 2016-06-07 Richard Biener <rguenther@suse.de>
11746 PR tree-optimization/71428
11747 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11748 BIT_FIELD_REF op vs. load.
11750 2016-06-07 Richard Biener <rguenther@suse.de>
11752 PR middle-end/71423
11753 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11756 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11758 * config/pa/pa.md (call): Generate indirect long calls to non-local
11759 functions on TARGET_64BIT.
11760 (call_value): Likewise.
11762 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11764 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11765 pattern and subsequent splitters.
11766 (call_val_reg_64bit_post_reload): Likewise.
11768 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11770 PR middle-end/71408
11771 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11772 propagate_op_to_single_use.
11774 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11776 PR middle-end/71281
11777 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11779 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
11781 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11782 (enum x86_dirflag_state): New enum.
11783 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11784 (machine_function): Remove needs_cld.
11785 (ix86_current_function_needs_cld): Remove.
11786 * config/i386/i386.c (ix86_set_func_type): Set
11787 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11788 (ix86_expand_prologue): Do not emit CLD here.
11789 (ix86_dirflag_mode_needed): New function.
11790 (ix86_dirflag_mode_entry): Ditto.
11791 (ix86_mode_needed): Handle X86_DIRFLAG entity.
11792 (ix86_mode_after): Ditto.
11793 (ix86_mode_entry): Ditto.
11794 (ix86_mode_exit): Ditto.
11795 (ix86_emit_mode_set): Ditto.
11796 * config/i386/i386.md (strmov_singleop): Set
11797 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11798 Do not set ix86_current_function_needs_cld.
11800 (strset_singleop): Ditto.
11802 (cmpstrnqi_nz_1): Ditto.
11803 (cmpstrnqi_1): Ditto.
11804 (strlenqi_1): Ditto.
11806 2016-06-06 Jakub Jelinek <jakub@redhat.com>
11808 PR tree-optimization/71259
11809 * tree-vect-slp.c (vect_get_constant_vectors): For
11810 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11811 one for constant op, and use COND_EXPR for non-constant.
11813 2016-06-06 David Malcolm <dmalcolm@redhat.com>
11815 * Makefile.in (OBJS): Add function-tests.o,
11816 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11817 selftest-run-tests.o.
11818 (OBJS-libcommon): Add selftest.o.
11819 (OBJS-libcommon-target): Add selftest.o.
11820 (all.internal): Add "selftest".
11821 (all.cross): Likewise.
11822 (selftest): New phony target.
11823 (s-selftest): New target.
11824 (selftest-gdb): New phony target.
11825 (COLLECT2_OBJS): Add selftest.o.
11826 * bitmap.c: Include "selftest.h".
11827 (selftest::test_gc_alloc): New function.
11828 (selftest::test_set_range): New function.
11829 (selftest::test_clear_bit_in_middle): New function.
11830 (selftest::test_copying): New function.
11831 (selftest::test_bitmap_single_bit_set_p): New function.
11832 (selftest::bitmap_c_tests): New function.
11833 * common.opt (fself-test): New.
11834 * diagnostic-show-locus.c: Include "selftest.h".
11835 (make_range): New function.
11836 (test_range_contains_point_for_single_point): New function.
11837 (test_range_contains_point_for_single_line): New function.
11838 (test_range_contains_point_for_multiple_lines): New function.
11839 (assert_eq): New function.
11840 (test_get_line_width_without_trailing_whitespace): New function.
11841 (selftest::diagnostic_show_locus_c_tests): New function.
11842 * et-forest.c: Include "selftest.h".
11843 (selftest::test_single_node): New function.
11844 (selftest::test_simple_tree): New function.
11845 (selftest::test_disconnected_nodes): New function.
11846 (selftest::et_forest_c_tests): New function.
11847 * fold-const.c: Include "selftest.h".
11848 (selftest::assert_binop_folds_to_const): New function.
11849 (selftest::assert_binop_folds_to_nonlvalue): New function.
11850 (selftest::test_arithmetic_folding): New function.
11851 (selftest::fold_const_c_tests): New function.
11852 * function-tests.c: New file.
11853 * gimple.c: Include "selftest.h".
11854 Include "gimple-pretty-print.h".
11855 (selftest::verify_gimple_pp): New function.
11856 (selftest::test_assign_single): New function.
11857 (selftest::test_assign_binop): New function.
11858 (selftest::test_nop_stmt): New function.
11859 (selftest::test_return_stmt): New function.
11860 (selftest::test_return_without_value): New function.
11861 (selftest::gimple_c_tests): New function.
11862 * hash-map-tests.c: New file.
11863 * hash-set-tests.c: New file.
11864 * input.c: Include "selftest.h".
11865 (selftest::assert_loceq): New function.
11866 (selftest::test_accessing_ordinary_linemaps): New function.
11867 (selftest::test_unknown_location): New function.
11868 (selftest::test_builtins): New function.
11869 (selftest::test_reading_source_line): New function.
11870 (selftest::input_c_tests): New function.
11871 * rtl-tests.c: New file.
11872 * selftest-run-tests.c: New file.
11873 * selftest.c: New file.
11874 * selftest.h: New file.
11875 * spellcheck.c: Include "selftest.h".
11876 (selftest::levenshtein_distance_unit_test_oneway): New function,
11877 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11878 (selftest::levenshtein_distance_unit_test): Likewise.
11879 (selftest::spellcheck_c_tests): Likewise.
11880 * toplev.c: Include selftest.h.
11881 (toplev::run_self_tests): New.
11882 (toplev::main): Handle -fself-test.
11883 * toplev.h (toplev::run_self_tests): New.
11884 * tree.c: Include "selftest.h".
11885 (selftest::test_integer_constants): New function.
11886 (selftest::test_identifiers): New function.
11887 (selftest::test_labels): New function.
11888 (selftest::tree_c_tests): New function.
11889 * tree-cfg.c: Include "selftest.h".
11890 (selftest::push_fndecl): New function.
11891 (selftest::test_linear_chain): New function.
11892 (selftest::test_diamond): New function.
11893 (selftest::test_fully_connected): New function.
11894 (selftest::tree_cfg_c_tests): New function.
11895 * vec.c: Include "selftest.h".
11896 (selftest::safe_push_range): New function.
11897 (selftest::test_quick_push): New function.
11898 (selftest::test_safe_push): New function.
11899 (selftest::test_truncate): New function.
11900 (selftest::test_safe_grow_cleared): New function.
11901 (selftest::test_pop): New function.
11902 (selftest::test_safe_insert): New function.
11903 (selftest::test_ordered_remove): New function.
11904 (selftest::test_unordered_remove): New function.
11905 (selftest::test_block_remove): New function.
11906 (selftest::reverse_cmp): New function.
11907 (selftest::test_qsort): New function.
11908 (selftest::vec_c_tests): New function.c.
11909 * wide-int.cc: Include selftest.h and wide-int-print.h.
11910 (selftest::from_int <wide_int>): New function.
11911 (selftest::from_int <offset_int>): New function.
11912 (selftest::from_int <widest_int>): New function.
11913 (selftest::assert_deceq): New function.
11914 (selftest::assert_hexeq): New function.
11915 (selftest::test_printing <VALUE_TYPE>): New function template.
11916 (selftest::test_ops <VALUE_TYPE>): New function template.
11917 (selftest::test_comparisons <VALUE_TYPE>): New function template.
11918 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11920 (selftest::wide_int_cc_tests): New function.
11922 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11924 PR middle-end/37780
11925 * ifcvt.c (noce_try_ifelse_collapse): New function.
11927 (noce_process_if_block): Call noce_try_ifelse_collapse.
11928 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11929 (simplify_ternary_operation): Use the above to simplify
11930 conditional CLZ/CTZ expressions.
11932 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11934 PR middle-end/37780
11935 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11936 define_insn_and_split.
11938 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11940 PR middle-end/37780
11941 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11943 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11946 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11947 Implicitly clobber memory for basic asm with non-empty assembler
11948 string. Use targetm.md_asm_adjust also here.
11949 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11950 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11951 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11952 non-empty assembler string.
11953 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11954 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11955 (decode_asm_operands): Handle basic asm in PARALLEL block.
11956 (extract_insn): Handle basic asm in PARALLEL block.
11957 * doc/extend.texi: Mention new behavior of basic asm.
11958 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11959 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11960 branch_needs_nop_p): Use asm_noperands.
11962 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
11964 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11965 Include the M7 SPARC DFA scheduler.
11966 New attribute v3pipe.
11967 Annotate insns with v3pipe where appropriate.
11968 Define cpu_feature vis4.
11969 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11970 Add (V8QI "8") to vbits.
11971 Add insns {add,sub}v8qi3
11972 Add insns ss{add,sub}v8qi3
11973 Add insns us{add,sub}{v8qi,v4hi}3
11974 Add insns {min,max}{v8qi,v4hi,v2si}3
11975 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11976 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11977 * config/sparc/niagara4.md: Add a comment explaining the
11978 discrepancy between the documented latenty numbers and the
11980 * config/sparc/niagara7.md: New file.
11981 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11982 supports SPARC5 and VIS 4.0 instructions.
11983 * configure: Regenerate.
11984 * config.in: Likewise.
11985 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11986 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11987 TARGET_CPU_niagara7.
11988 (ASM_CPU64_DEFAULT_SPEC): Likewise.
11989 (CPP_CPU_SPEC): Handle niagara7.
11990 (ASM_CPU_SPEC): Likewise.
11991 * config/sparc/sparc-opts.h (processor_type): Add
11992 PROCESSOR_NIAGARA7.
11993 (mvis4): New option.
11994 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11995 (AS_NIAGARA7_FLAG): Define.
11996 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11997 (CPP_CPU64_DEFAULT_SPEC): Likewise.
11998 (CPP_CPU_SPEC): Handle niagara7.
11999 (ASM_CPU_SPEC): Likewise.
12000 * config/sparc/sparc.c (niagara7_costs): Define.
12001 (sparc_option_override): Handle niagara7 and adjust cache-related
12002 parameters with better values for niagara cpus. Also support VIS4.
12003 (sparc32_initialize_trampoline): Likewise.
12004 (sparc_use_sched_lookahead): Likewise.
12005 (sparc_issue_rate): Likewise.
12006 (sparc_register_move_cost): Likewise.
12007 (dump_target_flag_bits): Support VIS4.
12008 (sparc_vis_init_builtins): Likewise.
12009 (sparc_builtins): Likewise.
12010 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12012 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12014 * config/sparc/sparc.opt (sparc_processor_type): New value
12016 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12018 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12020 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12023 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12025 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12027 2016-06-06 Richard Biener <rguenther@suse.de>
12029 PR tree-optimization/71398
12030 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12033 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12035 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12036 ft32_expand_prolog, ft32_expand_epilogue):
12037 Handle pretend_args.
12038 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12039 * config/ft32/ft32.md: Add pretend_returner.
12041 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12044 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12045 Copy op1 RTX to avoid invalid sharing.
12046 (ix86_expand_vector_move_misalign): Ditto.
12048 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12050 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12053 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12055 * predict.c (predicted_by_loop_heuristics_p): New function.
12056 (predict_iv_comparison): Use it.
12057 (predict_loops): Walk from innermost loops; do not predict edges
12058 leaving multiple loops multiple times; implement
12059 PRED_LOOP_ITERATIONS_MAX heuristics.
12060 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12062 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12064 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12065 only edges out of BB are EH edges.
12067 2016-06-04 Martin Sebor <msebor@redhat.com>
12068 Marcin Baczyński <marbacz@gmail.com>
12071 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12072 a void expression in a void function.
12074 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12076 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12077 aux; dump reasons of decisions.
12078 (should_duplicate_loop_header_p): Likewise.
12079 (do_while_loop_p): Likewise.
12080 (ch_base::copy_headers): Dump asi num insns duplicated.
12082 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12084 PR tree-optimization/71405
12085 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12086 incompatible type, build a new clobber with the right type instead
12087 of building a VIEW_CONVERT_EXPR around it.
12089 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12091 PR tree-optimization/52171
12092 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12093 by_pieces_ninsns instead of move_by_pieces_ninsns.
12095 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12097 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12098 for reg+reg addressing mode.
12100 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12102 * rs6000-c.c (c/c-tree.h): Add #include.
12103 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12104 in C++ when found in the base position of vec_ld or vec_st.
12106 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12108 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12109 use of profile unless profile status is PROFILE_READ.
12110 * profile.c (compute_branch_probabilities): Set profile status
12111 only after reporting predictor hitrates.
12113 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12117 * common.opt (ffp-int-builtin-inexact): New option.
12118 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12119 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12120 (ceil@var{m}2): Document dependence on this option.
12121 * ipa-inline-transform.c (inline_call): Handle
12122 flag_fp_int_builtin_inexact.
12123 * ipa-inline.c (can_inline_edge_p): Likewise.
12124 * config/i386/i386.md (rintxf2): Do not test
12125 flag_unsafe_math_optimizations.
12126 (rint<mode>2_frndint): New define_insn.
12127 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12128 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12129 for 387 instead of extending and truncating.
12130 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12131 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12132 Change to frndint<mode>2_<rounding>.
12133 (frndintxf2_<rounding>_i387): Likewise. Change to
12134 frndint<mode>2_<rounding>_i387.
12135 (<rounding_insn>xf2): Likewise.
12136 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12137 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12138 x87. Test TARGET_ROUND || !flag_trapping_math ||
12139 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12140 SSE. Use ROUND_NO_EXC in constant operand of
12141 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12142 for 387 instead of extending and truncating.
12144 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12145 Julia Koval <julia.koval@intel.com>
12157 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12158 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12159 all registers, except for function return registers if there are
12160 no caller-saved registers.
12161 (ix86_set_func_type): New function.
12162 (ix86_set_current_function): Call ix86_set_func_type to set
12163 no_caller_saved_registers and func_type. Call reinit_regs if
12164 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12165 nor x87 instructions in interrupt handler nor function with
12166 no_caller_saved_registers attribute.
12167 (ix86_function_ok_for_sibcall): Return false if there are no
12168 caller-saved registers.
12169 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12171 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12172 (ix86_function_arg): Return special arguments in interrupt handler.
12173 (ix86_promote_function_mode): Promote pointer to word_mode only
12174 for normal functions.
12175 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12177 (ix86_epilogue_uses): New function.
12178 (ix86_hard_regno_scratch_ok): Likewise.
12179 (ix86_save_reg): Preserve all registers in interrupt handler
12180 after reload. Preserve all registers, except for function return
12181 registers, if there are no caller-saved registers after reload.
12182 (find_drap_reg): Always use callee-saved register if there are
12183 no caller-saved registers.
12184 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12185 for interrupt handler.
12186 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12187 Emit cld instruction if stringops are used in interrupt handler
12188 or interrupt handler isn't a leaf function.
12189 (ix86_expand_epilogue): Generate interrupt return for interrupt
12190 handler and pop the 'ERROR_CODE' off the stack before interrupt
12191 return in exception handler.
12192 (ix86_expand_call): Disallow calling interrupt handler directly.
12193 If there are no caller-saved registers, mark all registers that
12194 are clobbered by the call which returns as clobbered.
12195 (ix86_handle_no_caller_saved_registers_attribute): New function.
12196 (ix86_handle_interrupt_attribute): Likewise.
12197 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12199 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12200 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12201 accumulation in interrupt function if stack may be realigned to
12203 (EPILOGUE_USES): New.
12204 (function_type): New enum.
12205 (machine_function): Add func_type and no_caller_saved_registers.
12206 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12207 (interrupt_return): New pattern.
12208 * doc/extend.texi: Document x86 interrupt and
12209 no_caller_saved_registers attributes.
12211 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12213 PR tree-optimization/52171
12214 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12215 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12216 Look for constant strings. Move some code to emit_block_cmp_hints
12218 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12219 * defaults.h (COMPARE_MAX_PIECES): New macro.
12220 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12221 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12222 (clear_by_pieces_1): Don't declare. Move definition before use.
12223 (can_do_by_pieces): New static function.
12224 (can_move_by_pieces): Use it. Return bool.
12225 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
12226 OP. All callers changed. Handle COMPARE_BY_PIECES.
12227 (class pieces_addr); New.
12228 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12229 pieces_addr::adjust, pieces_addr::increment_address,
12230 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12232 (class op_by_pieces_d): New.
12233 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12235 (class move_by_pieces_d, class compare_by_pieces_d,
12236 class store_by_pieces_d): New subclasses of op_by_pieces_d.
12237 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12238 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12239 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12240 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12241 compare_by_pieces_d::finish_mode): New member functions.
12242 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12244 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12245 (emit_block_cmp_hints): New function.
12246 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12247 use the newly defined classes.
12248 * expr.h (by_pieces_constfn): New typedef.
12249 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12250 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12251 (move_by_pieces_ninsns): Don't declare.
12252 (can_move_by_pieces): Change return value to bool.
12253 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12254 (compare_by_pieces_branch_ratio): New hook.
12255 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12256 (by_pieces_ninsns): Declare.
12257 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12259 (default_compare_by_pieces_branch_ratio): New function.
12260 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12261 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12262 * doc/tm.texi: Regenerate.
12263 * tree-ssa-strlen.c: Include "builtins.h".
12264 (handle_builtin_memcmp): New static function.
12265 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12266 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12268 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12270 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12271 relevant stmts which are simple and invariant.
12272 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12273 instead of simple and invariant
12275 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12277 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
12278 (vectorizable_reduction): Check for new relevant state.
12279 (vectorizable_live_operation): vectorize live stmts using
12280 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
12281 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
12282 (vect_stmt_relevant_p): Check for stmts which are only used live.
12283 (process_use): Use of a stmt does not inherit it's live value.
12284 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
12285 (vect_analyze_stmt): Check for new relevant state.
12286 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
12287 outside the loop, but not inside it.
12289 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12291 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
12292 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
12293 (vect_get_vec_def_for_operand): Split out code.
12295 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
12297 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
12299 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12301 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
12303 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12305 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
12307 2016-06-03 Jakub Jelinek <jakub@redhat.com>
12309 PR middle-end/71387
12310 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
12311 to noreturn e->callee->decl that has void return type and void
12312 arguments, adjust gimple_call_fntype and remove lhs even if it had
12313 previously addressable type.
12315 2016-06-02 Jeff Law <law@redhat.com>
12317 PR tree-optimization/71328
12318 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
12319 error when checking for a jump back onto the copied path.
12321 2016-06-02 David Malcolm <dmalcolm@redhat.com>
12323 * config/microblaze/microblaze.c (get_branch_target): Add return
12324 NULL_RTX for the non-CALL_P case.
12325 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
12326 (insert_wic): Remove unused local "j".
12328 2016-06-02 Martin Liska <mliska@suse.cz>
12330 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
12332 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
12333 Julia Koval <julia.koval@intel.com>
12335 * function.c (assign_parm_setup_stack): Force source into a
12336 register if needed.
12337 * target.def (function_incoming_arg): Update documentation to
12338 allow arbitrary address computation based on hard register.
12339 * doc/tm.texi: Regenerated.
12341 2016-06-02 Martin Liska <mliska@suse.cz>
12343 * predict.c (combine_predictions_for_bb): Fix first match in
12344 cases where a first predictor contains more than one occurence
12345 in list of predictors. Take the best value in such case.
12347 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12349 PR rtl-optimization/71295
12350 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
12351 offset would go over the size of the inner mode reject it.
12353 2016-06-02 Jakub Jelinek <jakub@redhat.com>
12355 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
12356 x=x,x and v=v,m instead of x=x,m.
12358 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
12359 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
12360 alternative to v=rm,C.
12362 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
12363 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
12364 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
12365 instead of vex for the last two above mentioned alternatives.
12367 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12370 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
12372 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
12374 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
12376 2016-06-01 David Malcolm <dmalcolm@redhat.com>
12378 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
12379 from int to unsigned.
12381 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
12383 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
12384 alternatives, eliminating preferred register class. Add support
12385 for the MTVSRDD instruction in ISA 3.0.
12386 (vsx_splat_v4si_internal): Use splat_input_operand instead of
12387 reg_or_indexed_operand.
12388 (vsx_splat_v4sf_internal): Likewise.
12390 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
12393 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
12394 for loading up all 0's or all 1's.
12396 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
12398 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
12400 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
12402 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
12404 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
12405 * gcc.c (set_source_date_epoch_envvar): New function, sets
12406 the SOURCE_DATE_EPOCH environment variable to the current time.
12408 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12410 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
12411 the factor for live Phi nodes.
12413 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12415 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
12416 * tree-parloops.c (parallelize_loops): likewise.
12417 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
12418 tree_unswitch_outer_loop): likewise.
12420 2016-06-01 Jakub Jelinek <jakub@redhat.com>
12422 PR middle-end/71371
12423 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
12424 around creation of the temporary.
12426 2016-06-01 Richard Biener <rguenther@suse.de>
12428 PR tree-optimization/71366
12429 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12430 (unloop_loops): Move removing edges here ...
12431 (try_unroll_loop_completely): ... from here.
12432 (try_peel_loop): ... and here.
12433 (tree_unroll_loops_completely_1): Track parent loops via
12434 bitmap of header BBs.
12435 (tree_unroll_loops_completely): Adjust for that.
12437 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12439 * config/rs6000/altivec.h (vec_slv): New macro.
12440 (vec_srv): New macro.
12441 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12442 (UNSPEC_VSRV): New value.
12445 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12446 (vsrv): New builtin definition.
12447 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12448 define argument types for new builtin.
12449 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12451 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12454 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
12455 Jocelyn Mayer <l_indien@magic.fr>
12458 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12459 detect processor family for signature_CENTAUR_ebx.
12460 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12461 signature_CENTAUR_ebx.
12462 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12463 <default>: Pass x86-64 for has_longmode.
12465 2016-06-01 Nathan Sidwell <nathan@acm.org>
12467 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12470 2016-06-01 Richard Biener <rguenther@suse.de>
12472 PR tree-optimization/71261
12473 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12474 of stmts successfully put in the bool pattern. Remove
12475 single-use restriction.
12476 (adjust_bool_pattern_cast): Add cast at the use site via the
12477 pattern def sequence.
12478 (adjust_bool_pattern): Remove recursion, maintain a hash-map
12479 of patterned defs. Use the pattern def seqence instead of
12480 multiple independent patterns.
12481 (sort_after_uid): New qsort compare function.
12482 (adjust_bool_stmts): New function to process stmts in the bool
12483 pattern in IL order.
12484 (vect_recog_bool_pattern): Adjust.
12485 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12486 (ifcvt_walk_pattern_tree): Likewise.
12487 (stmt_is_root_of_bool_pattern): Likewise.
12488 (ifcvt_repair_bool_pattern): Likewise.
12489 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12491 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12493 * loop-unroll.c (decide_unroll_constant_iterations,
12494 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12495 likely upper bounds.
12496 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12498 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
12500 * tree-core.h (enum omp_clause_code): Remove
12501 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
12503 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12505 * config/arm/sync.md (arm_store_exclusive<mode>):
12506 Use 'H' output modifier on operands[2] rather than creating a new
12507 entry in out-of-bounds memory of the operands array.
12508 (arm_store_release_exclusivedi): Likewise.
12510 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12512 * config/arm/arm.c (arm_fusion_enabled_p): New function.
12513 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12514 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12515 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12517 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12519 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12520 into account live statements for mask producers.
12522 2016-06-01 Richard Biener <rguenther@suse.de>
12524 PR tree-optimization/71311
12525 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12526 restrict to non-INTEGER_CST @0.
12528 2016-06-01 Richard Biener <rguenther@suse.de>
12530 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12531 (relational patterns): Use :c to avoid pattern duplications.
12533 2016-06-01 Richard Biener <rguenther@suse.de>
12535 * genmatch.c (comparison_code_p): New predicate.
12536 (swap_tree_comparison): New function.
12537 (commutate): Add for_vec parameter to append new for entries.
12538 Support commutating relational operators by swapping it alongside
12540 (lower_commutative): Adjust.
12541 (dt_simplify::gen): Do not pass artificial operators to gen
12543 (decision_tree::gen): Do not add artificial operators as parameters.
12544 (parser::parse_expr): Verify operator commutativity when :c is
12545 applied. Allow :C to override this.
12546 * match.pd: Adjust patterns to use :C instead of :c where required.
12548 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
12550 PR tree-optimization/71077
12551 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12552 the combining step, use boolean_false_node and boolean_true_node
12553 as the designated false/true return values.
12555 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12557 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12558 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12559 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12562 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12564 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12565 of flags impliying the register renaming.
12566 * toplev.c (process_options): Do not imply flag_rename_registers with
12569 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12571 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12572 default implementation.
12574 2016-05-31 Nathan Sidwell <nathan@acm.org>
12576 * dwarf2out.c (cur_line_info_table): Add GTY marker.
12578 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12580 * config/sh/constraints.md (b): Remove constraint.
12581 * config/sh/predicates.md (arith_reg_operand): Remove
12583 * config/sh/sh-modes.def (PDI): Remove.
12584 * config/sh/sh.c (sh_target_reg_class,
12585 sh_optimize_target_register_callee_saved): Remove functions.
12586 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12587 (sh_expand_epilogue): Update comment.
12588 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12589 sh_secondary_reload): Remove TARGET_REGS related code.
12590 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12591 TARGET_REGISTER_P): Remove macros.
12592 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12593 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12594 TR1_REG, TR2_REG): Remove constants.
12595 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12597 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12599 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12600 define_expand patterns.
12601 (adddi3_compact): Rename to adddi3.
12602 (subdi3_compact): Rename to subdi3.
12603 (*negdi2): Rename to negdi2.
12604 (*abs<mode>2): Rename to abs<mode>2.
12606 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12608 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12609 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12610 (atomic_sub_fetchsi): ... this new pattern.
12611 (mvtc): Add CC_REG clobber.
12613 2016-05-31 Marek Polacek <polacek@redhat.com>
12615 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12617 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12619 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12620 aarch64_fusion_enabled_p to check for fusion capabilities.
12622 2016-05-31 Richard Biener <rguenther@suse.de>
12624 PR tree-optimization/71352
12625 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12626 minus one and a negate.
12628 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12630 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12631 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12633 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12634 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12635 Remove use of aarch64_simd_attr_length_move, set length attribute
12637 (*aarch64_be_movoi): Likewise.
12638 (*aarch64_be_movci): Likewise.
12639 (*aarch64_be_movxi): Likewise.
12641 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12643 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12644 It no longer does that.
12645 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12647 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
12649 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12650 attribute __unused__.
12652 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
12654 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12655 * config/arm/arm.c (arm_arch_thumb1): Define.
12656 (arm_option_override): Initialize arm_arch_thumb1.
12657 * config/arm/arm.h (arm_arch_thumb1): Declare.
12658 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12659 support Thumb-1 ISA.
12661 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
12664 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12665 `Yv' for scalar operand.
12667 2016-05-31 Tom de Vries <tom@codesourcery.com>
12669 PR tree-optimization/69068
12670 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12671 phis with more than two args.
12673 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
12675 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12676 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12679 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
12681 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12683 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12685 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12686 cpu_32, cpu_64, tune_32 and tune_64.
12687 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12689 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
12691 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12693 2016-05-30 Andi Kleen <ak@linux.intel.com>
12695 * auto-profile.c (read_profile): Replace asserts with errors
12696 when file does not exist.
12697 * gcov-io.c (gcov_read_words): Dito.
12699 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12701 * tree-cfg.c (print_loop): Print likely upper bounds.
12703 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12705 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12706 * opts.c (default_options): Enable peel loops at -O3.
12707 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12708 (try_peel_loop): Do not re-peel already peeled loops;
12709 use likely upper bounds; fix profile updating.
12710 (pass_complete_unroll::execute): Initialize peeled_loops.
12712 2016-05-30 Martin Liska <mliska@suse.cz>
12714 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12715 computed costs by frequency of BB they belong to.
12716 (get_scaled_computation_cost_at): New function.
12718 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
12719 Marc Glisse <marc.glisse@inria.fr>
12721 PR tree-optimization/71289
12722 * match.pd (-1 / B < A, A > -1 / B): New transformations.
12724 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12726 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12728 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12730 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12731 for peeled copies; avoid underflow when updating estimates; correctly
12732 scale loop profile.
12734 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12736 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12737 r236875. Corrected oe3 to oe2 as obvious.
12739 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12741 PR middle-end/71269
12742 PR middle-end/71252
12743 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12744 that inserted stmt will not dominate stmts that defines its operand.
12745 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12746 (rewrite_expr_tree_parallel): Likewise.
12748 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12750 PR middle-end/71252
12751 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12752 all fields including stmt_to_insert are swapped.
12754 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12756 * predict.h (force_edge_cold): Declare.
12757 * predict.c (force_edge_cold): New function.
12758 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12760 (canonicalize_loop_induction_variables): Fix formating.
12762 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
12764 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12765 (visium_expand_copysign): Use gen_int_mode directly.
12766 (visium_compute_frame_size): Minor tweaks.
12768 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12770 * tree-vect-loop.c (vect_analyze_loop_2): Use
12771 likely_max_stmt_executions_int.
12773 2016-05-30 Tom de Vries <tom@codesourcery.com>
12775 PR tree-optimization/69067
12776 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12778 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
12781 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12782 New peepholes to remove unneeded fild/fistp pairs.
12783 (define_peephole2 atomic_loaddi_fpu): Ditto.
12785 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12787 * predict.c (maybe_hot_frequency_p): Avoid division.
12789 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
12791 * doc/install.texi: Use https for shop.fsf.org.
12793 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12795 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12796 likely_max_stmt_executions_int.
12798 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12800 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12801 likely_max_stmt_executions_int.
12803 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12805 * profile.c (compute_branch_probabilities): Do not report hitrates
12807 (branch_prob): Report hitrates here.
12808 * predict.c (gimple_predict_edge): Do not assert profile status;
12809 fix formatting issues.
12811 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12813 * predict.c (edge_predicted_by_p): New function.
12814 (predict_paths_for_bb): Do not put multiple predictions of the same type
12817 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12819 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12822 2016-05-28 Alan Modra <amodra@gmail.com>
12824 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12826 2016-05-28 Alan Modra <amodra@gmail.com>
12828 PR rtl-optimization/71275
12829 * ira.c (ira): Free dominance info.
12831 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
12833 * doc/sourcebuild.texi: New address for upstream Go repository.
12835 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
12837 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12838 (TARGET_ARM_V7M): Likewise.
12840 2016-05-26 Jeff Law <law@redhat.com>
12842 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12843 (thread_across_edge): Remove calls to find_jump_threads_backwards.
12844 * passes.def: Add jump threading passes before DOM/VRP.
12845 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12846 argument to a basic block from an edge. Remove tests which are
12848 (pass_data_thread_jumps, class pass_thread_jumps): New.
12849 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12850 (make_pass_thread_jumps): Likewise.
12851 * tree-pass.h (make_pass_thread_jumps): Declare.
12853 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
12855 * config/visium/visium-protos.h (split_double_move): Rename into...
12856 (visium_split_double_move): ...this.
12857 (visium_split_double_add): Declare.
12858 * config/visium/visium.c (split_double_move): Rename into...
12859 (visium_split_double_move): ...this.
12860 (visium_split_double_add): New function.
12861 (visium_expand_copysign): Renumber operands for consistency.
12862 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12863 (DFmode move splitter): Likewise.
12864 (*addi3_insn): Split by means of visium_split_double_add.
12865 (*adddi3_insn_flags): Delete.
12866 (*plus_plus_sltu<subst_arith>): New insn.
12867 (*subdi3_insn): Split by means of visium_split_double_add.
12868 (subdi3_insn_flags): Delete.
12869 (*minus_minus_sltu<subst_arith>): New insn.
12870 (*negdi2_insn): Split by means of visium_split_double_add.
12871 (*negdi2_insn_flags): Delete.
12873 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
12875 * configure.ac: Treat a --with-headers option without argument
12876 the same as the default (i.e. consult sys-include directory).
12877 * configure: Regenerate.
12879 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12881 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12882 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12884 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12885 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12887 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12890 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12891 tree-stdarg analysis results.
12892 (aarch64_setup_incoming_varargs): Likewise.
12894 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12896 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12897 va_list_gpr_counter_field and va_list_fpr_counter_field.
12899 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
12902 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12903 * config/aarch64/aarch64.c
12904 (aarch64_cannot_change_mode_class): Remove function.
12905 * config/aarch64/aarch64-protos.h
12906 (aarch64_cannot_change_mode_class): Remove.
12908 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12910 * cfgloop.c (record_niter_bound): Record likely upper bounds.
12911 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12912 get_likely_max_loop_iterations_int): New.
12913 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12914 any_likely_upper_bound.
12915 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12917 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12918 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12920 (unroll_loop_constant_iterations): Likewise.
12921 (unroll_loop_runtime_iterations): Likewise.
12922 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12923 * lto-streamer-out.c (output_cfg): Likewise.
12924 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12926 (canonicalize_loop_induction_variables): Dump likely upper bounds.
12927 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12928 (likely_max_loop_iterations): New.
12929 (likely_max_loop_iterations_int): New.
12930 (likely_max_stmt_executions): New.
12931 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12932 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12933 likely_max_stmt_executions): Declare.
12935 2016-05-27 Marek Polacek <polacek@redhat.com>
12937 PR middle-end/71308
12938 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12940 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12942 * config/s390/s390.md (2x risbg splitters): Use
12943 reg_overlap_mentioned_p instead of rtx_equal_p.
12945 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12947 * combine.c (make_compound_operation): Take known zero bits into
12948 account when checking for possible zero_extend.
12950 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12952 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12953 Use const_int_operand for operand 2 predicate. Simplify expand code
12956 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
12958 PR middle-end/71279
12959 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12962 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12964 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12965 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12966 that returns CC_SESWPmode and CC_ZESWPmode.
12967 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12969 (aarch64_rtx_costs): Likewise.
12971 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12973 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12974 for ISA 3.0 min/max support.
12975 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12976 conditional move support.
12977 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12978 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12980 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12981 conditional moves where the comparison type is different from move
12983 (fp_minmax): New code iterator for smin/smax.
12984 (minmax): New code attributes for min/max.
12985 (SMINMAX): Likewise.
12986 (smax<mode>3): Combine min, max insns into one insn using the
12987 fp_minmax code iterator. Add support for ISA 3.0 min/max
12988 instructions that don't need -ffast-math.
12989 (s<minmax><mode>3): Likewise.
12990 (smax<mode>3_vsx): Likewise.
12991 (smin<mode>3): Likewise.
12992 (s<minmax><mode>3_vsx): Likewise.
12993 (smin<mode>3_vsx): Likewise.
12994 (pre-VSX min/max splitters): Likewise.
12995 (s<minmax><mode>3_fpr): Likewise.
12996 (movsfcc): Rewrite floating point conditional moves to combine
12997 SFmode/DFmode into a single insn.
12998 (mov<mode>cc): Likewise.
12999 (movdfcc): Likewise.
13000 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13001 SFDF2 iterators to handle all combinations.
13002 (fseldfsf4): Likewise.
13003 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13004 (fseldfdf4): Likewise.
13005 (fselsfdf4): Likewise.
13006 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13007 comparison instructions that set a 0/-1 mask, and use it for
13008 floating point conditional move via XXSEL.
13009 (fpmask<mode>): Likewise.
13010 (xxsel<mode>): Likewise.
13011 * config/rs6000/predicates.md (min_max_operator): Delete, no
13013 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13014 instructions that generate a 0/-1 mask for use with XXSEL.
13015 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13016 say whether floating point min/max is available, either through
13017 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13018 (TARGET_MINMAX_DF): Likewise.
13020 2016-05-27 Alan Modra <amodra@gmail.com>
13022 PR rtl-optimization/71275
13023 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13024 for update_equiv_regs and combine_and_move_insns.
13026 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13028 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13029 if_then_else or cond RTXes to calculate attribute value.
13030 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13031 <attr "length_immediate>: Ditto.
13032 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13033 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13034 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13035 <attr "type">: Ditto.
13036 <attr "prefix_data16">: Ditto.
13037 <attr "prefix_extra">: Ditto.
13038 <attr "length_immediate">: Ditto.
13039 <attr "prefix">: Ditto.
13040 (vec_set<mode>_0) <attr "isa">: Ditto.
13041 <attr "prefix_extra">: Ditto.
13042 <attr "length_immediate">: Ditto.
13043 <attr "prefix">: Ditto.
13044 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13045 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13046 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13047 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13048 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13049 <attr "length_immediate">: Ditto.
13050 <attr "prefix">: Ditto.
13051 (sse2_movsd) <attr "length_immediate">: Ditto.
13052 <attr "prefix">: Ditto.
13053 (vec_concatv2df) <attr "isa">: Ditto.
13054 <attr "prefix">: Ditto.
13055 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13056 (*vec_extractv2di_1) <attr "isa">: Ditto.
13057 <attr "type">: Ditto.
13058 <attr "length_immediate">: Ditto.
13059 <attr "prefix_rex">: Ditto.
13060 <attr "prefix_extra">: Ditto.
13061 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13062 <attr "prefix_extra">: Ditto.
13063 <attr "length_immediate">: Ditto.
13064 (vec_concatv2di) <attr "isa">: Ditto.
13065 <attr "prefix_extra">: Ditto.
13066 <attr "length_immediate">: Ditto.
13067 <attr "prefix">: Ditto.
13069 2016-05-26 Martin Liska <mliska@suse.cz>
13071 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13073 (operator+): Likewise.
13074 (operator-): Likewise.
13075 (comp_cost::operator+=): Likewise.
13076 (comp_cost::operator-=): Likewise.
13077 (comp_cost::operator/=): Likewise.
13078 (comp_cost::operator*=): Likewise.
13079 (operator<): Likewise.
13080 (operator==): Likewise.
13081 (operator<=): Likewise.
13082 (new_cost): Remove.
13083 (infinite_cost_p): Likewise.
13084 (add_costs): Likewise.
13085 (sub_costs): Likewise.
13086 (compare_costs): Likewise.
13087 (set_group_iv_cost): Use the newly introduced functions.
13088 (get_address_cost): Likewise.
13089 (get_shiftadd_cost): Likewise.
13090 (force_expr_to_var_cost): Likewise.
13091 (split_address_cost): Likewise.
13092 (ptr_difference_cost): Likewise.
13093 (difference_cost): Likewise.
13094 (get_computation_cost_at): Likewise.
13095 (determine_group_iv_cost_generic): Likewise.
13096 (determine_group_iv_cost_address): Likewise.
13097 (determine_group_iv_cost_cond): Likewise.
13098 (autoinc_possible_for_pair): Likewise.
13099 (determine_group_iv_costs): Likewise.
13100 (cheaper_cost_pair): Likewise.
13101 (iv_ca_recount_cost): Likewise.
13102 (iv_ca_set_no_cp): Likewise.
13103 (iv_ca_set_cp): Likewise.
13104 (iv_ca_cost): Likewise.
13105 (iv_ca_new): Likewise.
13106 (iv_ca_dump): Likewise.
13107 (iv_ca_narrow): Likewise.
13108 (iv_ca_prune): Likewise.
13109 (iv_ca_replace): Likewise.
13110 (try_add_cand_for): Likewise.
13111 (try_improve_iv_set): Likewise.
13112 (find_optimal_iv_set): Likewise.
13114 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13116 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13117 that internal functions will clobber all caller-saved registers.
13119 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13121 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13122 Return a better case_values_threshold when optimizing.
13124 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13126 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13127 Add ? to integer variant.
13128 (aarch64_combinez_be): Likewise.
13130 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13132 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13133 instead of x constraint.
13134 (vcvtps2ph256<mask_name>): Likewise.
13136 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13137 alternative. Formatting fix.
13139 * config/i386/sse.md
13140 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13142 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13143 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13144 maybe_evex prefix instead of vex.
13145 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13146 EXT_REX_SSE_REG_P (op0) case in the splitter.
13148 2016-05-25 Jeff Law <law@redhat.com>
13150 PR tree-optimization/71272
13151 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13152 Update comments. Add test for empty path.
13154 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13156 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13157 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13158 special case builtin.
13159 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13160 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13161 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13162 for __builtin_vec_cmpne.
13164 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13166 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13167 redundant test and bail out if the type of the new operand is not
13168 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13170 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13172 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13173 (x_ix86_target_flags_explicit): Remove.
13174 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13175 x_ix86_target_flags_explicit.
13176 (ix86_function_specific_restore): Ditto.
13178 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13179 H.J. Lu <hongjiu.lu@intel.com>
13182 * common/config/i386/i386-common.c
13183 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13184 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13185 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13186 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13187 (-mgeneral-regs-only): Add new option.
13188 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13189 x87 instructions if only general registers are allowed.
13190 (ix86_target_string): Add ix86_flags argument. Handle additional
13191 flags options through ix86_flags argument. Update all callers.
13192 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13194 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13196 PR rtl-optimization/66940
13197 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13198 decrementing desired_val will not overflow before performing these
13201 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13203 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13204 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13205 * config/i386/i386.c (enum ix86_builtins): Add
13206 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13207 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13208 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13209 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13210 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13211 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13212 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13213 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13214 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13215 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13216 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13217 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13218 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13219 __builtin_ia32_cvtps2dq512_mask.
13220 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13221 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13222 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13223 * config/i386/sse.md
13224 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13226 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13227 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13229 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13230 (avx512f_vec_pack_sfix_v8df): New define_expand.
13231 (avx512f_roundpd512): Rename to ...
13232 (avx512f_round<castmode>512): ... this. Change iterator.
13233 (avx512f_roundps512_sfix): New define_expand.
13234 (round<mode>2_sfix): Change iterator.
13236 2016-05-25 Nick Clifton <nickc@redhat.com>
13238 * config/msp430/msp430.c (msp430_attr): Produce an error if a
13239 static interrupt handler is detected.
13240 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13241 default linker script.
13242 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13243 the low part of a symbolic pointer.
13245 2016-05-25 Richard Biener <rguenther@suse.de>
13247 PR tree-optimization/71261
13248 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13249 interesting stmt instead of immediate uses when looking
13250 for the use operand to replace.
13252 2016-05-25 Martin Liska <mliska@suse.cz>
13254 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13256 2016-05-25 Richard Biener <rguenther@suse.de>
13258 PR tree-optimization/71264
13259 * tree-vect-stmts.c (vect_init_vector): Properly deal with
13262 2016-05-25 Martin Liska <mliska@suse.cz>
13264 PR tree-optimization/71239
13265 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13266 if DECL_SIZE is NULL.
13268 2016-05-25 Richard Biener <rguenther@suse.de>
13270 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13271 * tree-if-conv.c (pass_data_if_conversion): Use it.
13273 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13275 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
13276 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
13277 * varpool.c (varpool_node::get_availability): Likewise.
13279 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13281 * config/rs6000/altivec.md (VNEG iterator): New iterator for
13282 VNEGW/VNEGD instructions.
13283 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
13284 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
13285 support for ISA 3.0 VNEGW/VNEGD instructions.
13287 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13289 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
13290 pointers inside OACC_DATA regions.
13291 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
13292 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
13293 (gimplify_adjust_omp_clauses): Fix typo in comment.
13295 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13297 * config/rs6000/altivec.md (VParity): New mode iterator for vector
13298 parity built-in functions.
13299 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
13301 (p9v_parity<mode>2): Likewise.
13302 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
13304 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
13305 (parity<mode>2): ISA 3.0 expander for vector parity.
13306 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
13308 (BU_P9_64BIT_MISC_0): Likewise.
13309 (BU_P9_MISC_0): Likewise.
13310 (BU_P9V_AV_1): Likewise.
13311 (BU_P9V_AV_2): Likewise.
13312 (BU_P9V_AV_3): Likewise.
13313 (BU_P9V_AV_P): Likewise.
13314 (BU_P9V_VSX_1): Likewise.
13315 (BU_P9V_OVERLOAD_1): Likewise.
13316 (BU_P9V_OVERLOAD_2): Likewise.
13317 (BU_P9V_OVERLOAD_3): Likewise.
13318 (VCTZB): Add vector count trailing zeros support.
13322 (VPRTYBD): Add vector parity support.
13323 (VPRTYBQ): Likewise.
13324 (VPRTYBW): Likewise.
13325 (VCTZ): Add overloaded vector count trailing zeros support.
13326 (VPRTYB): Add overloaded vector parity support.
13327 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13328 overloaded vector count trailing zeros and parity instructions.
13329 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
13330 vector parity support.
13331 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
13332 trailing zeros support.
13333 (vec_cntlz): Likewise.
13334 (vec_vctzb): Likewise.
13335 (vec_vctzd): Likewise.
13336 (vec_vctzh): Likewise.
13337 (vec_vctzw): Likewise.
13338 (vec_vprtyb): Add ISA 3.0 vector parity support.
13339 (vec_vprtybd): Likewise.
13340 (vec_vprtybw): Likewise.
13341 (vec_vprtybq): Likewise.
13342 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13343 the ISA 3.0 vector count trailing zeros and vector parity built-in
13346 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13348 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
13349 when there is stmt_to_insert.
13351 2016-05-24 Martin Sebor <msebor@redhat.com>
13354 * tree.h (complete_or_array_type_p): New inline function.
13356 2016-05-24 Jakub Jelinek <jakub@redhat.com>
13358 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
13359 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
13360 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
13362 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
13363 Limit 1st alternative to noavx isa, split 2nd alternative into one
13364 noavx and one avx alternative, use *x and Bm in the former and
13365 x and m in the latter.
13367 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
13368 of sse4 for the first alternative, drop %v from the template
13369 and d operand modifier. Split second alternative into one sse4_noavx
13370 and one avx alternative, use *x instead of *v in the former and v
13371 instead of *v in the latter.
13372 (*sse4_1_extractps): Use noavx isa instead of * for the first
13373 alternative, drop %v from the template. Split second alternative into
13374 one noavx and one avx alternative, use *x instead of *v in the
13375 former and v instead of *v in the latter.
13376 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
13377 with noavx and the last one with avx.
13378 (sse4_1_phminposuw): Guard first alternative with noavx isa,
13379 split the second one into one noavx and one avx alternative,
13380 use *x and Bm in the former and x and m in the latter one.
13381 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
13384 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
13385 first two alternatives to noavx, use *x instead of *v in the second
13386 one, add avx alternative without *.
13387 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
13388 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
13389 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
13391 2016-05-24 Jeff Law <law@redhat.com>
13393 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
13394 New function, extracted from...
13395 (fsm_find_control_statement_thread_paths): Here. Use the new function.
13396 Allow simple copies and constant initializations in the SSA chain.
13398 2016-05-24 Marek Polacek <polacek@redhat.com>
13401 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
13404 2016-05-24 Jakub Jelinek <jakub@redhat.com>
13407 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
13408 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
13409 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
13410 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
13411 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
13413 2016-05-24 Richard Biener <rguenther@suse.de>
13415 PR tree-optimization/71240
13416 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
13419 2016-05-24 Richard Biener <rguenther@suse.de>
13421 PR tree-optimization/71230
13422 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
13424 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13426 * tree-vectorizer.h (vectorizable_comparison): Delete.
13427 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13428 PURE_SLP_STMT check.
13429 * tree-vect-stmts.c (vectorizable_call): Likewise.
13430 (vectorizable_simd_clone_call): Likewise.
13431 (vectorizable_conversion): Likewise.
13432 (vectorizable_assignment): Likewise.
13433 (vectorizable_shift): Likewise.
13434 (vectorizable_operation): Likewise.
13435 (vectorizable_load): Likewise.
13436 (vectorizable_condition): Likewise.
13437 (vectorizable_store): Likewise. Assert that we don't have
13439 (vectorizable_comparison): Make static. Remove redundant
13440 PURE_SLP_STMT check.
13441 (vect_transform_stmt): Assert that we always have an slp_node
13444 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13446 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
13447 operands[2] against 1 with comparison against CONST1_RTX.
13448 (<shift>di3_neon): Likewise.
13449 * config/arm/predicates.md (const0_operand): Replace with comparison
13450 against CONST0_RTX.
13452 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13454 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13455 operands[2] against 1 with comparison against CONST1_RTX.
13456 (ashrdi3): Likewise.
13457 (lshrdi3): Likewise.
13458 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13460 (ashrsi3): Likewise.
13461 (lshrsi3): Likewise.
13462 (rotrsi3): Likewise.
13463 (define_split above *compareqi_eq0): Likewise.
13464 (define_split above "prologue"): Likewise.
13465 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13466 * config/arm/predicates.md (shift_operator): Likewise.
13467 (shift_nomul_operator): Likewise.
13468 (sat_shift_operator): Likewise.
13469 (thumb1_cmp_operand): Likewise.
13470 (const_neon_scalar_shift_amount_operand): Replace manual range
13471 check with IN_RANGE.
13472 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13473 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13475 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13477 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13478 with HOST_WIDE_INT_1.
13480 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13481 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13482 (arm_canonicalize_comparison): Likewise.
13483 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13485 (thumb1_size_rtx_costs): Likewise.
13486 (vfp_const_double_index): Replace cast of 1 to unsigned
13487 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13488 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13490 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13491 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13492 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13493 HOST_WIDE_INT with HOST_WIDE_INT_1.
13495 2016-05-24 Marek Polacek <polacek@redhat.com>
13497 * tree-cfg.h (should_remove_lhs_p): New predicate.
13498 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13499 * gimplify.c (gimplify_modify_expr): Likewise.
13500 * tree-cfg.c (verify_gimple_call): Likewise.
13501 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13502 * gimple-fold.c: Include "tree-cfg.h".
13503 (gimple_fold_call): Use should_remove_lhs_p.
13505 2016-05-24 Richard Biener <rguenther@suse.de>
13507 PR tree-optimization/71253
13508 * cfganal.h (control_dependences): Make robust against edge
13510 (control_dependences::control_dependences): Remove edge_list argument.
13511 (control_dependences::get_edge): Remove.
13512 (control_dependences::get_edge_src): Add.
13513 (control_dependences::get_edge_dest): Likewise.
13514 (control_dependences::m_el): Make a vector of edge src/dest index.
13515 * cfganal.c (control_dependences::find_control_dependence): Adjust.
13516 (control_dependences::control_dependences): Likewise.
13517 (control_dependences::~control_dependence): Likewise.
13518 (control_dependences::get_edge): Remove.
13519 (control_dependences::get_edge_src): Add.
13520 (control_dependences::get_edge_dest): Likewise.
13521 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13523 (perform_tree_ssa_dce): Adjust.
13524 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13526 (pass_loop_distribution::execute): Adjust. Do loop destroying
13527 conditional on changed.
13529 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13532 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13533 return. Reindent transformation comment and mention the ARM state
13536 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13538 PR middle-end/71252
13539 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13540 after build_and_add_sum creates new use stmt.
13542 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13544 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13545 load_lanes/grouped_load classification comes first. Don't check
13546 whether the vectorization factor is a multiple of the group size
13549 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13551 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13552 GROUP_GAP for single-element interleaving.
13553 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13556 2016-05-24 Richard Biener <rguenther@suse.de>
13558 PR middle-end/70434
13560 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13561 bases which are accessed with non-invariant indices.
13562 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13563 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13565 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13567 PR middle-end/71170
13568 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13569 (add_to_ops_vec): Add stmt_to_insert.
13570 (add_repeat_to_ops_vec): Init stmt_to_insert.
13571 (insert_stmt_before_use): New.
13572 (transform_add_to_multiply): Remove mult_stmt insertion and add it
13574 (get_ops): Init stmt_to_insert.
13575 (maybe_optimize_range_tests): Likewise.
13576 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13577 (rewrite_expr_tree_parallel): Likewise.
13578 (reassociate_bb): Likewise.
13580 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13583 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13584 ISA 3.0 xxperm fusion alternative.
13585 (altivec_vperm_v8hiv16qi): Likewise.
13586 (altivec_vperm_<mode>_uns_internal): Likewise.
13587 (vperm_v8hiv4si): Likewise.
13588 (vperm_v16qiv8hi): Likewise.
13590 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13591 Kelvin Nilsen <kelvin@gcc.gnu.org>
13593 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13594 vpermr/xxpermr on ISA 3.0.
13595 (altivec_expand_vec_perm_le): Likewise.
13596 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13597 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13600 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
13602 * config/i386/i386.h (IS_STACK_MODE): Enable for
13603 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
13604 SSE_FLOAT_MODE_P macros.
13605 * config/i386/i386.c (ix86_preferred_reload_class): Use
13606 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13607 Cleanup regclass processing for CONST_DOUBLE_P.
13608 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13609 (ix86_rtx_costs): Remove redundant TARGET_80387 check
13610 with IS_STACK_MODE macro.
13611 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13613 (*movdf_internal): Use IS_STACK_MODE macro.
13614 (*movsf_internal): Ditto.
13616 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
13618 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13619 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13621 2016-05-23 Jeff Law <law@redhat.com>
13623 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13625 (fsm_find_control_statement_thread_paths): Call it.
13627 2016-05-23 Martin Jambor <mjambor@suse.cz>
13630 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13631 from_global_constant if t is not NULL.
13633 2016-05-23 Marek Polacek <polacek@redhat.com>
13636 * common.opt (Wswitch-unreachable): New option.
13637 * doc/invoke.texi: Document -Wswitch-unreachable.
13638 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13641 2016-05-23 Bin Cheng <bin.cheng@arm.com>
13643 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13644 TMR_INDEX is non-NULL.
13646 2016-05-23 Richard Biener <rguenther@suse.de>
13648 PR tree-optimization/71230
13649 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13650 (try_special_add_to_ops): ... here. Always test for single-use.
13652 2016-05-23 Martin Jambor <mjambor@suse.cz>
13654 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13655 default block if a PHI node in the original one would be resized.
13657 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13659 PR tree-optimization/58135
13660 * tree-vect-slp.c: When group size is not multiple
13661 of vector size, allow splitting of store group at
13664 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
13666 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13668 2016-05-22 Jakub Jelinek <jakub@redhat.com>
13670 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13671 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13672 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
13675 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13676 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13677 v constraint instead of x and vinserti32x4 insn.
13679 * config/i386/sse.md (i128vldq): New mode iterator.
13680 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13681 avx512dq and avx512vl alternatives.
13683 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13684 constraint, use maybe_evex prefix instead of vex.
13685 (vec_dupv4sf): Use v constraint instead of x for output
13686 operand except for noavx alternative, use Yv constraint
13687 instead of x for input. Use maybe_evex prefix instead of vex.
13688 (*vec_dupv4si): Likewise.
13689 (*vec_dupv2di): Likewise.
13691 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13693 PR middle-end/40921
13694 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13695 (linearize_expr_tree): Call try_special_add_to_ops.
13696 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13698 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13700 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13701 to computed stack_usage.
13703 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13706 * config/avr/avr.md (define_expand "mov<mode>"): If the source
13707 operand is subreg (symbol_ref) then move the symbol ref to register.
13709 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
13711 * tree.c (array_at_struct_end_p): Look through MEM_REF.
13713 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13715 PR middle-end/71179
13716 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13719 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13721 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13722 ranges by calling get_single_symbol and tidy up. Look more closely
13723 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13725 2016-05-20 Jeff Law <law@redhat.com>
13727 * bitmap.c (bitmap_find_bit): Remove useless test.
13729 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13731 * function.c (thread_prologue_and_epilogue_insns): Commit the
13732 insertion of the epilogue.
13734 2016-05-20 Martin Jambor <mjambor@suse.cz>
13736 PR tree-optimization/70884
13737 * tree-sra.c (initialize_constant_pool_replacements): Do not check
13738 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13739 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13740 of constant pool data as a reason for scalarization.
13742 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13744 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13745 for naked functions.
13746 (thumb1_expand_prologue): Likewise.
13748 2016-05-20 Nathan Sidwell <nathan@acm.org>
13750 * config/nvptx/nptx.c (nvptx_option_override): Only set
13751 flag_toplevel_reorder, if not explicitly specified. Set
13752 flag_no_common, unless explicitly specified.
13754 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13756 * calls.c (can_implement_as_sibling_call_p): Mark param
13757 reg_parm_stack_space with ATTRIBUTE_UNUSED.
13759 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
13761 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13762 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13763 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13765 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13766 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13767 and CASE_CONST_ANY.
13769 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
13771 * config/nvptx/nvptx.md (sincossf3): New pattern.
13773 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13775 * calls.c (maybe_complain_about_tail_call): New function.
13776 (initialize_argument_information): Call
13777 maybe_complain_about_tail_call when clearing *may_tailcall.
13778 (can_implement_as_sibling_call_p): Call
13779 maybe_complain_about_tail_call when returning false.
13780 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13781 ensure try_tail_call is set. Call maybe_complain_about_tail_call
13782 if tail-call optimization fails.
13783 * cfgexpand.c (expand_call_stmt): Initialize
13784 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13785 * gimple-pretty-print.c (dump_gimple_call): Dump
13786 gimple_call_must_tail_p.
13787 * gimple.c (gimple_build_call_from_tree): Call
13788 gimple_call_set_must_tail with the value of
13789 CALL_EXPR_MUST_TAIL_CALL.
13790 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13791 (gimple_call_set_must_tail): New function.
13792 (gimple_call_must_tail_p): New function.
13793 * print-tree.c (print_node): Update printing of TREE_STATIC
13794 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13795 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13796 trailing comment listing applicable flags.
13797 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13799 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13801 * calls.c (expand_call): Move "Rest of purposes for tail call
13802 optimizations to fail" to...
13803 (can_implement_as_sibling_call_p): ...this new function, and
13804 split into multiple "if" statements.
13806 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13808 * cfgloop.h (expected_loop_iterations_unbounded,
13809 expected_loop_iterations): Unconstify.
13810 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13811 profile with known upper bound; return 3 when profile is absent.
13812 (expected_loop_iterations): Update.
13814 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13816 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13817 and get_max_loop_iterations_int.
13819 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13821 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13822 realistic upper bounds here.
13824 2016-05-20 Jakub Jelinek <jakub@redhat.com>
13827 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13828 calls if the LHS is variable length or has addressable type.
13829 If targets[0]->decl is a noreturn call with void return type and
13830 zero arguments, adjust fntype and remove lhs in that case.
13832 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
13834 PR tree-optimization/71079
13835 PR tree-optimization/71206
13836 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13838 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13840 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13841 (get_vec_alignment_for_array_decl): Likewise.
13842 (get_vec_alignment_for_record_decl): Likewise.
13843 (increase_alignment::execute): Move code to find alignment to
13844 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13845 (type_align_map): New hash_map.
13847 2016-05-20 Richard Guenther <rguenther@suse.de>
13849 PR tree-optimization/29756
13850 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13851 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13852 * fold-const.c (operand_equal_p): Likewise.
13853 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13854 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13855 * tree-inline.c (estimate_operator_cost): Likewise.
13856 * tree-pretty-print.c (dump_generic_node): Likewise.
13857 * tree-ssa-operands.c (get_expr_operands): Likewise.
13858 * cfgexpand.c (expand_debug_expr): Likewise.
13859 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13860 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13861 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13862 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13863 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13864 (execute_update_addresses_taken): Do it.
13866 2016-05-20 Richard Biener <rguenther@suse.de>
13868 PR tree-optimization/71185
13869 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13870 register operations.
13872 2016-05-20 Richard Biener <rguenther@suse.de>
13874 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13875 gimple_seq_add_seq_without_update.
13876 (release_bb_predicate): Assert we have no operands to free.
13877 (if_convertible_loop_p_1): Calculate post dominators later.
13878 Do not free BB predicates here.
13879 (combine_blocks): Do not recompute BB predicates.
13880 (version_loop_for_if_conversion): Save BB predicates around
13883 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13885 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13886 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
13887 code. Ignore sibcalls on EDGE_IGNORE edges.
13888 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
13889 on edges for sibcalls that run without prologue. The rest of the
13890 function is combined from...
13891 (fix_fake_fallthrough_edge): ... this, and ...
13892 (try_shrink_wrapping): ... a part of this. Remove the bb_with
13893 function argument, make it a local variable.
13895 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
13897 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13898 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13899 for 32-bit mode and SEH for 64-bit.
13900 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13901 TARGET_64BIT_DEFAULT.
13903 2016-05-19 Ryan Burn <contact@rnburn.com>
13905 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13906 * gengtype.c (open_base_files): Add cilk.h to ifiles.
13908 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
13910 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13911 force pending loads from memory.
13913 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
13915 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13916 (UNSPEC_DARN_32): New unspec constant.
13917 (UNSPEC_DARN_RAW): New unspec constant.
13918 (darn_32): New instruction.
13919 (darn_raw): New instruction.
13920 (darn): New instruction.
13921 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13922 support and documentation for this macro.
13923 (BU_P9_MISC_1): New macro definition.
13924 (BU_P9_64BIT_MISC_0): New macro definition.
13925 (BU_P9_MISC_0): New macro definition.
13926 (darn_32): New builtin definition.
13927 (darn_raw): New builtin definition.
13928 (darn): New builtin definition.
13929 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13930 RS6000_BUILTIN_0 directives to surround each occurrence of
13931 #include "rs6000-builtin.def".
13932 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13933 RS6000_BTM_64BIT flags to the returned mask, depending on
13935 (def_builtin): Correct an error in the assignments made to the
13936 debugging variable attr_string.
13937 (rs6000_expand_builtin): Add support for no-operand built-in
13939 (builtin_function_type): Remove fatal_error assertion that is no
13941 (rs6000_common_init_builtins): Add support for no-operand built-in
13943 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13945 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13947 (RS6000_BTM_64BIT): New macro definition.
13948 * doc/extend.texi: Document __builtin_darn (void),
13949 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13952 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
13954 * tree-vect-loop.c (vect_analyze_loop_2): Use also
13955 max_loop_iterations_int.
13957 2016-05-19 Marek Polacek <polacek@redhat.com>
13959 PR tree-optimization/71031
13960 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13961 condition and adjust the code a bit.
13963 2016-05-19 Martin Liska <mliska@suse.cz>
13965 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13966 auto_vec instead of vec.
13968 2016-05-19 Martin Liska <mliska@suse.cz>
13970 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13972 2016-05-19 Martin Liska <mliska@suse.cz>
13974 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13976 2016-05-19 Martin Liska <mliska@suse.cz>
13978 * ipa-pure-const.c (set_function_state): Remove an existing
13980 (remove_node_data): Do not free it as it's released
13981 in set_function_state.
13983 2016-05-19 Martin Liska <mliska@suse.cz>
13985 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13988 2016-05-19 Martin Liska <mliska@suse.cz>
13990 * omp-simd-clone.c (simd_clone_adjust): Release vector.
13992 2016-05-19 Martin Liska <mliska@suse.cz>
13994 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13995 an auto_vec instead of re-creating it.
13997 2016-05-19 Martin Liska <mliska@suse.cz>
13999 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14000 auto_vec instead of vec.
14002 2016-05-19 Martin Liska <mliska@suse.cz>
14004 * lto-section-in.c (lto_get_section_data): Call
14005 lto_check_version with additional argument.
14006 * lto-streamer.c (lto_check_version): Add new argument.
14007 * lto-streamer.h (lto_check_version): Likewise.
14009 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14011 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14012 Don't add cost of inner memory when handling sign-extended loads.
14014 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14016 PR rtl-optimization/71148
14017 * cse.c (cse_main): Free dominance info.
14018 (rest_of_handle_cse): Don't free dominance info.
14019 (rest_of_handle_cse2): Likewise.
14020 (rest_of_handle_cse_after_global_opts): Likewise.
14022 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14025 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14026 NULL_TREE early if NEON is not available. Remove now redundant check
14027 in ARM_CHECK_BUILTIN_MODE.
14029 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14032 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14033 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14034 * doc/cpp.texi: Document new macros.
14036 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14038 PR tree-optimization/69848
14039 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14040 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14042 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14044 * function.c (thread_prologue_and_epilogue_insn): Move the
14045 "goto epilogue_done" one block later.
14047 2016-05-19 Richard Biener <rguenther@suse.de>
14049 PR tree-optimization/70729
14050 * passes.def: Move LIM pass before PRE. Remove no longer
14051 required copyprop and move first DCE out of the loop pipeline.
14053 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14056 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14057 (OBJS-libcommon-target): ...here.
14058 * opts-common.c: Include spellcheck.h.
14059 (cmdline_handle_error): Build a vec of valid options and use it
14060 to suggest provide hints for misspelled arguments.
14062 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14065 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14066 lhs if it has TREE_ADDRESSABLE type.
14068 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14071 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14072 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14074 2016-05-18 Martin Jambor <mjambor@suse.cz>
14077 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14078 input for NOP_EXPR pass-through functions.
14079 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14080 aggregate global constant VAR_DECLs in constant jump functions.
14082 2016-05-18 Martin Jambor <mjambor@suse.cz>
14085 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14086 from TREE_READONLY parameters.
14088 2016-05-18 Martin Jambor <mjambor@suse.cz>
14091 * cgraph.h (cgraph_indirect_call_info): New field
14092 guaranteed_unmodified.
14093 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14094 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14096 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14097 pass the parameter value to ipa_find_agg_cst_for_param.
14098 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14099 guaranteed_unmodified, store AA results there instead of bailing out
14101 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14102 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14103 (find_constructor_constant_at_offset): New function.
14104 (ipa_find_agg_cst_from_init): Likewise.
14105 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14106 static initializers of contants, report back through a new paameter
14107 from_global_constant if that was the case.
14108 (try_make_edge_direct_simple_call): Also pass parameter value to
14109 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14111 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14112 (ipa_read_indirect_edge_info): Likewise.
14113 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14114 (ipa_load_from_parm_agg): Likewise.
14116 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14118 PR rtl-optimization/71150
14119 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14122 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14125 * config/rs6000/constraints.md (wE constraint): New constraint
14126 for a vector constant that can be loaded with XXSPLTIB.
14127 (wM constraint): New constraint for a vector constant of a 1's.
14128 (wS constraint): New constraint for a vector constant that can be
14129 loaded with XXSPLTIB and a vector sign extend instruction.
14130 * config/rs6000/predicates.md (xxspltib_constant_split): New
14131 predicates for wE/wS constraints.
14132 (xxspltib_constant_nosplit): Likewise.
14133 (easy_vector_constant): Add support for constants that can be
14134 loaded via XXSPLTIB.
14135 (all_ones_constant): New predicate for vector constant with all
14137 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14138 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14139 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14140 instruction and possibly with a sign extension.
14141 (output_vec_const_move): Add support for XXSPLTIB. If we are
14142 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14143 instead of XXLXOR/XXLORC.
14144 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14146 (rs6000_legitimize_reload_address): Likewise.
14147 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14149 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14150 combine VSX_M and VSX_M2 into one iterator.
14151 (VSX_M2): Likewise.
14152 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14153 (VSINT_842): Likewise.
14154 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14155 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14156 XXSPLTIB instruction.
14157 (xxspltib_<mode>_nosplit): Likewise.
14158 (xxspltib_<mode>_split): New insn to load up constants with
14159 XXSPLTIB and a sign extend instruction.
14160 (vsx_mov<mode>): Replace single move that handled all vector types
14161 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14162 moves (when -mvsx-timode is in effect) into the main vector
14163 moves. Eliminate separate moves for <VSr> <VSa>, where the
14164 preferred register class (<VSr>) is listed first, and the
14165 secondary register class (<VSa>) is listed second with a '?' to
14166 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14167 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14168 that if the register was involved in a slow operation, the
14169 clear/set operation does not wait for the slow operation to
14170 finish. Adjust the length attributes for 32-bit mode. Use
14171 rs6000_output_move_128bit and drop the use of the string
14172 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14173 spacing so that the alternatives and attributes don't generate
14174 long lines, and put things in columns, so that it is easier to
14175 match up the operands and attributes with the insn alternatives.
14176 (vsx_mov<mode>_64bit): Likewise.
14177 (vsx_mov<mode>_32bit): Likewise.
14178 (vsx_movti_64bit): Fold movti into normal vector moves.
14179 (vsx_movti_32bit): Likewise.
14180 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14181 splat instructions.
14182 (vsx_splat_v4si_internal): Likewise.
14183 (vsx_splat_v4sf_internal): Likewise.
14184 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14185 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14186 extend vector elements.
14187 (vsx_sign_extend_hi_<mode>): Likewise.
14188 (vsx_sign_extend_si_v2di): Likewise.
14189 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14191 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14192 constraints. Add trailing period to wL documentation.
14194 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14196 PR middle-end/71020
14197 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14198 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14199 * tree-call-cdce.c: Include tree-dfa.h.
14200 (can_guard_call_p): New function, extracted from...
14201 (can_use_internal_fn): ...here.
14202 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14204 (shrink_wrap_one_built_in_call): Likewise.
14205 (use_internal_fn): Likewise.
14206 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14207 and return void. Call replace_abnormal_ssa_names.
14208 (pass_call_cdce::execute): Check can_guard_call_p during the
14209 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14210 will always change something.
14212 2016-05-18 Martin Jambor <mjambor@suse.cz>
14215 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14216 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14218 2016-05-18 Martin Jambor <mjambor@suse.cz>
14221 * ipa-inline.h (condition): New field size.
14222 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14223 for comaprison and store it into the new condition.
14224 (evaluate_conditions_for_known_args): Use condition size to check
14225 access sizes for all but CHANGED conditions.
14226 (unmodified_parm_1): New parameter size_p, store access size into it.
14227 (unmodified_parm): Likewise.
14228 (unmodified_parm_or_parm_agg_item): Likewise.
14229 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14230 (set_cond_stmt_execution_predicate): Extract access sizes and store
14231 them to conditions.
14232 (set_switch_stmt_execution_predicate): Likewise.
14233 (will_be_nonconstant_expr_predicate): Likewise.
14234 (will_be_nonconstant_predicate): Likewise.
14235 (inline_read_section): Stream condition size.
14236 (inline_write_summary): Likewise.
14238 2016-05-18 Richard Biener <rguenther@suse.de>
14240 * tree-ssa-loop-im.c (determine_max_movement): Properly add
14241 condition cost to PHI cost instead of total_cost.
14243 2016-05-18 Martin Liska <mliska@suse.cz>
14246 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14249 2016-05-18 Richard Biener <rguenther@suse.de>
14251 * lto-streamer.h (LTO_major_version): Bump to 6.
14253 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14255 * function.c (make_split_prologue_seq, make_prologue_seq,
14256 make_epilogue_seq): New functions, factored out from...
14257 (thread_prologue_and_epilogue_insns): Here.
14259 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14261 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14262 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14263 of before. Add a comment.
14265 2016-05-18 Bin Cheng <bin.cheng@arm.com>
14267 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14268 expression pointer, not pointer to the pointer.
14270 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14272 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14273 (avx2_pbroadcast<mode>): Add another alternative with v instead
14274 of x constraints in it, using <pbroadcast_evex_isa> isa.
14275 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
14277 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
14278 constraint x instead of v in second alternative, add avx512bw
14281 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
14282 constraint x instead of v in second alternative, add avx512bw
14285 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
14286 constraint x instead of v in second alternative, add avx512bw
14289 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
14290 avx512bw alternative.
14292 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
14294 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
14295 array to 128 chars.
14296 (define_insn "*andnottf3"): Ditto.
14297 (define_insn "*<code><mode>3"/any_logic): Ditto.
14298 (define_insn "*<code>tf3"/any_logic): Ditto.
14299 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
14300 operand to block AVX-512VL insn variant emit when it is not enabled.
14302 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
14304 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
14305 constraint fot SF mode.
14307 2016-05-18 Petr Murzin <petr.murzin@intel.com>
14308 Kirill Yukhin <kirill.yukhin@intel.com>
14310 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
14312 (define_insn "rsqrt14<mode>"): Ditto.
14313 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14314 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
14315 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
14316 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14317 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
14319 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
14320 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
14321 * config/i386/i386.c (ix86_print_operand): Expand check for size
14322 override codes for Intel syntax.
14324 2016-05-18 Richard Biener <rguenther@suse.de>
14326 PR tree-optimization/71168
14327 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
14328 initialization earlier.
14330 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
14332 * config/aarch64/aarch64-simd.md
14333 (aarch64_reduc_plus_internal<mode>): Rename to...
14334 (reduc_plus_scal): ...This, and remove previous implementation.
14336 2016-05-18 Richard Biener <rguenther@suse.de>
14338 * passes.def: Put late dse and cd_dce in canonical order.
14340 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
14342 * ipa-inline-transform.c (preserve_function_body_p): Look for
14343 first non-thunk clone.
14344 (save_function_body): Save into first non-thunk.
14345 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
14347 (lto_output_node): Inline thunks don't need body in every
14349 * lto-streamer-in.c: Do not fixup thunk clones.
14350 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
14352 * tree-inline.c (copy_bb): Be prepared for target node to be new after
14355 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14357 PR middle-end/63586
14358 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
14359 (reassociate_bb): Call transform_add_to_multiply.
14361 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
14363 * config/aarch64/aarch64.c (all_extensions): Removed unused
14366 2016-05-17 Nathan Sidwell <nathan@acm.org>
14368 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
14369 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
14371 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
14373 PR tree-optimization/54579
14374 PR middle-end/55299
14375 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
14377 2016-05-17 Marek Polacek <polacek@redhat.com>
14380 * tree-inline.c (expand_call_inline): Call
14381 maybe_remove_unused_call_args.
14383 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
14385 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
14386 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
14387 * doc/md.texi (fmin@var{m}3): Likewise.
14389 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14391 * match.pd (X & C): New transformation.
14393 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14395 * match.pd (~X & Y): New transformation.
14397 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
14399 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
14400 information for new SSA_NAME.
14401 (simplify_conversion_using_ranges): Get range through get_range_info
14402 instead of get_value_range.
14404 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14406 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
14407 Remove inline assembly.
14408 (vmvn_s16): Likewise.
14409 (vmvn_s32): Likewise.
14410 (vmvn_u8): Likewise.
14411 (vmvn_u16): Likewise.
14412 (vmvn_u32): Likewise.
14413 (vmvnq_s8): Likewise.
14414 (vmvnq_s16): Likewise.
14415 (vmvnq_s32): Likewise.
14416 (vmvnq_u8): Likewise.
14417 (vmvnq_u16): Likewise.
14418 (vmvnq_u32): Likewise.
14419 (vmvn_p8): Likewise.
14420 (vmvnq_p16): Likewise.
14422 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14424 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14426 (vmul_n_s16): Likewise.
14427 (vmul_n_s32): Likewise.
14428 (vmul_n_u16): Likewise.
14429 (vmul_n_u32): Likewise.
14430 (vmulq_n_f32): Likewise.
14431 (vmulq_n_f64): Likewise.
14432 (vmulq_n_s16): Likewise.
14433 (vmulq_n_s32): Likewise.
14434 (vmulq_n_u16): Likewise.
14435 (vmulq_n_u32): Likewise.
14437 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14439 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14440 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
14442 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14444 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14445 to *aarch64_fma4_elt_from_dup<mode>.
14446 (*aarch64_fnma4_elt_to_128df): Rename to
14447 *aarch64_fnma4_elt_from_dup<mode>.
14448 * config/aarch64/arm_neon.h (vfma_n_f64): New.
14449 (vfms_n_f32): Likewise.
14450 (vfms_n_f64): Likewise.
14451 (vfmsq_n_f32): Likewise.
14452 (vfmsq_n_f64): Likewise.
14454 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
14456 * wide-int.h: Change fixed_wide_int_storage from class to struct.
14458 2016-05-17 Richard Biener <rguenther@suse.de>
14460 PR tree-optimization/71132
14461 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14462 Only add control dependences for blocks in the loop.
14463 (build_rdg): Adjust.
14464 (generate_code_for_partition): Return whether loop should
14465 be destroyed and delay that.
14466 (distribute_loop): Likewise.
14467 (pass_loop_distribution::execute): Record loops to be destroyed
14468 and perform delayed destroying of loops.
14470 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14473 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14475 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14477 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14479 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
14482 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14483 insertion point for instructions generated by validize_mem.
14485 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14487 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14490 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14492 * config/aarch64/aarch64.c
14493 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14494 rather than a macro.
14496 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14498 * doc/invoke.texi (AArch64 Options): Various updates.
14500 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14502 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14503 into instrumentation thunks.
14504 * cif-code.def (CIF_CHKP): New.
14506 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
14508 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14510 2016-05-16 Martin Jambor <mjambor@suse.cz>
14512 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14513 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14515 2016-05-16 Marek Polacek <polacek@redhat.com>
14517 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14520 2016-05-16 Martin Jambor <mjambor@suse.cz>
14523 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14524 the outlined kernel function.
14526 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
14528 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14529 (ISA_HAS_DLSA): Ditto.
14531 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14533 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14535 2016-05-16 Nathan Sidwell <nathan@acm.org>
14537 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14538 (nvptx_name_replacement): Restore. Add comment.
14539 (write_fn_proto, write_fn_proto_from_insn,
14540 nvptx_output_call_insn): Restore
14541 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14543 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14545 * config/aarch64/aarch64.md
14546 (add<mode>3_compareC_cconly_imm): Remove use of %w.
14547 (add<mode>3_compareC_imm): Likewise.
14548 (<optab>si3_uxtw): Split into register and immediate variants.
14549 (andsi3_compare0_uxtw): Likewise.
14550 (and<mode>3_compare0): Likewise.
14551 (and<mode>3nr_compare0): Likewise.
14552 (stack_protect_test_<mode>): Don't use %x for memory operands.
14554 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14556 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14558 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14560 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14561 Split integer shifts into shift_reg and bfm.
14562 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14563 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14564 (ror<mode>3_insn): Likewise.
14565 (<optab>si3_insn_uxtw): Likewise.
14566 (<optab><mode>3_insn): Change to rotate_imm.
14567 (extr<mode>5_insn_alt): Likewise.
14568 (extrsi5_insn_uxtw): Likewise.
14569 (extrsi5_insn_uxtw_alt): Likewise.
14571 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14573 * doc/tm.texi: Regenerate.
14574 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14575 (TARGET_INVALID_RETURN_TYPE): Remove.
14576 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14577 TARGET_INVALID_RETURN_TYPE.
14578 * target.def (invalid_parameter_type): Remove.
14579 (invalid_return_type): Remove.
14581 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14583 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14584 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14586 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14588 (preserve_function_body_p): No need to preserve function body
14589 * cif-codes.def (CIF_THUNK): Remove.
14590 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14592 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14594 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14596 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14598 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14601 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14603 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14604 (inline_small_functions): Do not look for function symbol when
14607 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14609 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14612 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14613 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14614 Jiong Wang <jiong.wang@arm.com>
14616 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14617 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14618 Define __ARM_FP16_ARGS when appropriate.
14619 * config/arm/arm.c (arm_invalid_parameter_type): Remove
14621 (arm_invalid_return_type): Likewise.
14622 (TARGET_INVALID_PARAMETER_TYPE): Remove.
14623 (TARGET_INVALID_RETURN_TYPE): Remove.
14624 (aapcs_vfp_sub_candidate): Allow HFmode.
14625 (aapcs_vfp_allocate): Add comment. Support HFmode.
14626 (aapcs_vfp_allocate_return_reg): Likewise.
14627 (struct aapcs_cp_arg_layout): Slightly reword comments for
14628 is_return_candidate and allocate_return_reg.
14629 (output_mov_vfp): Update assert.
14630 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14632 (arm_invalid_parameter_type): Remove.
14633 (amr_invalid_return_type): Remove.
14634 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14635 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14636 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14638 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14640 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14641 * config/aarch64/arch64-protos.h
14642 (aarch64_legitimize_reload_address): Remove.
14643 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14646 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
14648 * configure.ac: Add ACX_NONCANONICAL_HOST.
14649 * configure: Regenerate.
14650 * Makefile.in: Set host_noncanonical.
14652 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
14655 * config/i386/i386.md (*movtf_internal): Before register allocation,
14656 do not allow FP constants for CM_MEDIUM memory model, allow only
14657 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14658 (*movxf_internal): Ditto.
14659 (*movdf_internal): Ditto.
14660 (*movsf_internal): Ditto.
14662 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14664 PR rtl-optimization/67483
14665 * combine.c (make_compound_operation): Don't call extract_left_shift
14666 with negative shift amounts.
14668 2016-05-13 Jakub Jelinek <jakub@redhat.com>
14671 * fold-const.c (fold_checksum_tree): Allow modification
14672 of TYPE_ALIAS_SET during folding.
14674 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14675 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14676 (ix86_split_to_parts): Likewise. Fix up formatting.
14678 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
14680 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14681 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14684 2016-05-13 Nathan Sidwell <nathan@acm.org>
14686 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14687 (nvptx_name_replacement): Delete.
14688 (write_fn_proto, write_fn_proto_from_insn,
14689 nvptx_output_call_insn): Remove nvptx_name_replacement call.
14690 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14691 * langhooks.c (add_builtin_funcction_common): Call
14692 targetm.mangle_decl_assembler_name.
14694 * config/nvptx/nvptx.c (write_fn_proto): Handle
14695 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14697 2016-05-13 Martin Liska <mliska@suse.cz>
14699 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14700 and PRIu64 in printf format.
14702 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14704 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14707 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14709 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14710 Change --param max-completely-peeled-times to
14711 --param max-completely-peel-times in dump file printing.
14713 2016-05-13 Richard Biener <rguenther@suse.de>
14715 PR tree-optimization/42587
14716 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14717 (find_bswap_or_nop_1): Likewise.
14718 (bswap_replace): Likewise.
14720 2016-05-13 Martin Liska <mliska@suse.cz>
14722 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14723 Initialize a variable with default value.
14725 2016-05-13 Martin Liska <mliska@suse.cz>
14727 * doc/invoke.texi: Enhance explanation of error recovery
14730 2016-05-13 Martin Liska <mliska@suse.cz>
14732 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14733 (struct cost_pair): Change inv_expr_id (int) to inv_expr
14734 (iv_inv_expr_ent *).
14735 (struct iv_inv_expr_ent): Comment struct fields.
14736 (sort_iv_inv_expr_ent): New function.
14737 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14738 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14739 a hash_map between iv_inv_expr_ent and number of usages.
14740 (niter_for_exit): Fix coding style.
14741 (tree_ssa_iv_optimize_init): Use renamed variable.
14742 (determine_base_object): Fix coding style.
14743 (alloc_iv): Likewise.
14744 (find_interesting_uses_outside): Likewise.
14745 (add_candidate_1): Likewise.
14746 (add_standard_iv_candidates): Likewise.
14747 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14748 (prepare_decl_rtl): Fix coding style.
14749 (get_address_cost): Likewise.
14750 (get_shiftadd_cost): Likewise.
14751 (force_expr_to_var_cost): Likewise.
14752 (compare_aff_trees): Likewise.
14753 (get_expr_id): Restructure the function.
14754 (get_loop_invariant_expr_id): Renamed to
14755 get_loop_invariant_expr.
14756 (get_computation_cost_at): Replace usage of inv_expr_id with
14758 (get_computation_cost): Likewise.
14759 (determine_group_iv_cost_generic): Likewise.
14760 (determine_group_iv_cost_address): Likewise.
14761 (iv_period): Fix coding style.
14762 (iv_elimination_compare_lt): Likewise.
14763 (may_eliminate_iv): Likewise.
14764 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
14766 (determine_group_iv_costs): Dump invariant expressions.
14767 (iv_ca_recount_cost): Use the newly added hash_map.
14768 (iv_ca_set_remove_invariants): Fix coding style.
14769 (iv_ca_set_add_invariants): Fix coding style.
14770 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14772 (iv_ca_set_cp): Likewise.
14773 (iv_ca_new): Initialize the newly added hash_map and remove
14774 initialization of fields.
14775 (iv_ca_free): Delete the hash_map.
14776 (iv_ca_dump): Dump invariant expressions.
14777 (iv_ca_extend): Fix coding style.
14778 (try_add_cand_for): Likewise.
14779 (create_new_ivs): Dump information about # of avg iterations and
14780 # of used invariant expressions.
14781 (rewrite_use_compare): Fix coding style.
14782 (free_loop_data): Set default value for max_inv_expr_id.
14784 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14786 * cse.c (rest_of_handle_cse): Use cleanup_cfg
14787 returned value cse_cfg_altered computation.
14788 (rest_of_handle_cse2): Likewise.
14789 (rest_of_handle_cse_after_global_opts): Likewise.
14791 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14794 * config/arm/arm.c (arm32_output_mi_thunk): New.
14795 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14796 to split Thumb1 vs TARGET_32BIT functionality.
14797 (arm_thumb1_mi_thunk): New.
14799 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14801 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14804 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14807 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14809 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
14811 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14812 (expand_builtin_trap): Emit a regular call.
14813 (set_builtin_user_assembler_name): Remove obsolete cases.
14814 * dse.c (scan_insn): Adjust.
14815 * except.c: Include calls.h.
14816 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14817 emit a regular call to setjmp.
14818 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14819 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14820 (emit_block_move_via_libcall): Delete.
14821 (block_move_fn): Delete.
14822 (init_block_move_fn): Likewise.
14823 (emit_block_move_libcall_fn): Likewise.
14824 (emit_block_op_via_libcall): New function.
14825 (set_storage_via_libcall): Tidy up and use memset builtin.
14826 (block_clear_fn): Delete.
14827 (init_block_clear_fn): Likewise.
14828 (clear_storage_libcall_fn): Likewise.
14829 (expand_assignment): Call emit_block_move_via_libcall.
14830 Do not include gt-expr.h.
14831 * expr.h (emit_block_op_via_libcall): Declare.
14832 (emit_block_copy_via_libcall): New inline function.
14833 (emit_block_move_via_libcall): Likewise.
14834 (emit_block_comp_via_libcall): Likewise.
14835 (block_clear_fn): Delete.
14836 (init_block_move_fn): Likewise.
14837 (init_block_clear_fn): Likewise.
14838 (emit_block_move_via_libcall): Likewise.
14839 (set_storage_via_libcall): Add default parameter value.
14840 * libfuncs.h (enum libfunc_index): Remove obsolete values.
14841 (abort_libfunc): Delete.
14842 (memcpy_libfunc): Likewise.
14843 (memmove_libfunc): Likewise.
14844 (memcmp_libfunc): Likewise.
14845 (memset_libfunc): Likewise.
14846 (setbits_libfunc): Likewise.
14847 (setjmp_libfunc): Likewise.
14848 (longjmp_libfunc): Likewise.
14849 (profile_function_entry_libfunc): Likewise.
14850 (profile_function_exit_libfunc): Likewise.
14851 (gcov_flush_libfunc): Likewise.
14852 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14853 and DECL_VISIBILITY on the declaration.
14854 (init_optabs): Do not initialize obsolete libfuncs.
14855 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14856 * tree-core.h (ECF_RET1): Define.
14857 (ECF_TM_PURE): Adjust.
14858 (ECF_TM_BUILTIN): Likewise.
14859 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14860 (build_common_builtin_nodes): Initialize abort builtin.
14861 Add ECF_RET1 on memcpy, memmove and memset builtins.
14862 Pass final flags for alloca and alloca_with_align builtins.
14863 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14865 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14866 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14867 set_storage_via_libcall and call emit_block_copy_via_libcall.
14869 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
14871 * config/i386/i386.md (*call_got_x32): Change operand 0 to
14872 DImode before it is passed to ix86_output_call_operand.
14873 (*call_value_got_x32): Ditto for operand 1.
14875 2016-05-12 Jiong Wang <jiong.wang@arm.com>
14877 PR rtl-optimization/70904
14878 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14879 reload for wide mode.
14881 2016-05-12 Marek Polacek <polacek@redhat.com>
14884 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14885 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14886 * langhooks.h (incomplete_type_error): Likewise.
14887 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
14888 parameter, pass it down to incomplete_type_error.
14889 * tree.h (size_in_bytes): New inline overload.
14890 (size_in_bytes_loc): Renamed from size_in_bytes.
14892 2016-05-12 Richard Biener <rguenther@suse.de>
14894 PR tree-optimization/71059
14895 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14896 nary before looking up or entering the expression into the VN
14898 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14899 Make sure to re-use NARYs without result as inserted by
14902 2016-05-12 Richard Biener <rguenther@suse.de>
14904 PR tree-optimization/71062
14905 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14907 * tree-ssa-structalias.c (set_uids_in_ptset): Set
14908 vars_contains_restrict if the var is a restrict tag.
14909 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14910 do not disambiguate pointers against it.
14911 (dump_points_to_solution): Re-structure and adjust for new
14912 vars_contains_restrict flag.
14913 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14915 2016-05-12 Martin Liska <mliska@suse.cz>
14917 * doc/invoke.texi: Explain connection between
14918 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14920 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
14922 PR tree-optimization/71006
14923 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14924 consider COND_EXPR as a mask producer.
14926 2016-05-12 Marek Polacek <polacek@redhat.com>
14929 * opts.c (common_handle_option): Detect missing argument for --help^.
14931 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14934 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14935 when popping the PC and within an interrupt handler routine.
14936 Add missing tab to output of "ldmfd".
14937 (output_return_instruction): Output LDMFD with SP update rather
14938 than POP when returning from interrupt handler.
14940 2016-05-12 Jakub Jelinek <jakub@redhat.com>
14942 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14943 TARGET_64BIT && TARGET_AVX512DQ.
14944 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14945 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14946 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14947 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14948 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14949 (*vec_extractv4si_zext): Add avx512dq alternative.
14950 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14951 use v instead of x constraint in other alternatives where possible.
14953 * config/i386/sse.md (sse2_loadld): Use v instead of x
14954 constraint in alternatives 0,1,4.
14956 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14957 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14958 v constraints instead of x and <pinsr_evex_isa> isa attribute.
14961 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14962 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14963 is not emitted unless TARGET_AVX512BW.
14964 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14965 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14966 for the result operand.
14968 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14969 constraint instead of x in avx alternatives. Use maybe_evex instead
14972 * config/i386/constraints.md (Yv): New constraint.
14973 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14974 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14975 * config/i386/i386.md (avx512fvecmode): New mode attr.
14976 (*pushtf): Use v constraint instead of x.
14977 (*movtf_internal): Likewise. For TARGET_AVX512VL and
14978 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14979 (*absneg<mode>2): Use Yv constraint instead of x constraint.
14980 (*absnegtf2_sse): Likewise.
14981 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14982 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14983 avx512f alternatives.
14984 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14986 2016-05-12 Richard Biener <rguenther@suse.de>
14988 PR tree-optimization/71060
14989 * tree-data-ref.c (initialize_data_dependence_relation): Do not
14990 require exact match of DR_BASE_OBJECT but only matching address and
14993 2016-05-12 Richard Biener <rguenther@suse.de>
14995 PR tree-optimization/70986
14996 * cfganal.c: Include cfgloop.h.
14997 (dfs_find_deadend): Prefer to take edges exiting loops.
14999 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15001 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15002 compile and run time.
15004 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15007 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15009 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15011 * config/i386/i386.c (legitimize_pic_address): Use
15012 copy_to_suggested_reg instead of gen_movsi.
15014 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15016 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15017 the code into quad_address_p and call it to share code with
15018 vsx_quad_dform_memory_operand.
15019 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15021 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15022 bit instead of being a separate word. Split -mpower9-dform into
15023 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15024 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15025 for the register class supporting 128-bit quad word memory offsets.
15026 (mode_supports_vsx_dform_quad): Helper function to return if the
15027 register class uses quad word memory offsets.
15028 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15029 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15030 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15031 instructions are enabled, set up the appropriate addr_masks for
15033 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15034 -mpower9-dform-scalar, instead of -mpower9-dform.
15035 (rs6000_option_override_internal): Split -mpower9-dform into two
15036 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15037 -mpower9-dform switch sets or clears both. If we are not using
15038 the LRA register allocator, do not enable -mpower9-dform-vector by
15039 default. If we are using LRA, enable -mpower9-dform-vector and
15040 -mvsx-timode if it is appropriate. Issue a warning if either
15041 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15043 (quad_address_offset_p): New helper function to return if the
15044 offset is legal for quad word memory instructions.
15045 (quad_address_p): New function to determin if GPR or vector
15046 register quad word memory addresses are legal.
15047 (mem_operand_gpr): Validate quad word address offsets.
15048 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15049 d-form (register + offset) instructions.
15050 (offsettable_ok_by_alignment): Likewise.
15051 (rs6000_legitimate_offset_address_p): Likewise.
15052 (legitimate_lo_sum_address_p): Likewise.
15053 (rs6000_legitimize_address): Likewise.
15054 (rs6000_legitimize_reload_address): Add more debug statements for
15056 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15057 d-form instructions.
15058 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15059 d-form instructions. Distinguish different cases in debug
15060 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15061 d-form instructions.
15062 (rs6000_preferred_reload_class): Likewise.
15063 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15064 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15065 of the ISA 2.06 indexed memory instructions.
15066 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15067 use them to save/restore the saved vector registers instead of
15068 using Altivec instructions.
15069 (rs6000_emit_epilogue): Likewise.
15070 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15071 (rs6000_opt_masks): Split -mpower9-dform into
15072 -mpower9-dform-scalar and -mpower9-dform-vector.
15073 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15075 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15076 ISA 3.0 vector indexed memory instructions, and fold the code into
15077 the normal mov<mode> patterns.
15078 (p9_vecstore_<mode>): Likewise.
15079 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15081 (vsx_movti_64bit): Likewise.
15082 (vsx_movti_32bit): Likewise.
15083 * config/rs6000/constraints.md (wO constraint): New constraint for
15084 ISA 3.0 vector d-form support.
15085 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15086 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15087 include -mpower9-dform-vector until we switch over to LRA.
15088 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15089 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15090 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15091 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15092 for -mpower9-dform and -mlra.
15093 * doc/md.texi (wO constraint): Document wO constraint.
15095 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15097 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15098 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15099 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15100 Move handling of non-insn arguments inline into the sole user:
15101 (output_trans_func): ...here.
15102 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15103 in emitted function prototype.
15104 (output_internal_insn_latency_func): Ditto. Simplify.
15105 (output_internal_maximal_insn_latency_func): Ditto. Delete
15106 always-unused argument.
15107 (output_insn_latency_func): Ditto.
15108 (output_maximal_insn_latency_func): Ditto.
15110 2016-05-11 Richard Biener <rguenther@suse.de>
15112 PR tree-optimization/71055
15113 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15114 sth with precision not equal to access size verify we don't chop
15117 2016-05-11 Richard Biener <rguenther@suse.de>
15120 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15121 (dwarf2out_finish): Move retry_incomplete_types call ...
15122 (dwarf2out_early_finish): ... here.
15124 2016-05-11 Richard Biener <rguenther@suse.de>
15126 PR middle-end/71002
15127 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15128 if the langhook insists on it.
15129 * fold-const.c (make_bit_field_ref): Add arg for the original
15130 reference and preserve its alias-set.
15131 (decode_field_reference): Take exp by reference and adjust it
15132 to the original memory reference.
15133 (optimize_bit_field_compare): Adjust callers.
15134 (fold_truth_andor_1): Likewise.
15135 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15137 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15139 PR middle-end/70807
15140 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15141 * cfgrtl.c (delete_insn_and_edges): Likewise.
15142 * config/i386/i386.c (convert_scalars_to_vector): Remove
15144 * cse.c (cse_insn): Compute cse_cfg_altered.
15145 (delete_trivially_dead_insns): Likewise.
15146 (cse_cc_succs): Likewise.
15147 (rest_of_handle_cse): Free dominance info if required.
15148 (rest_of_handle_cse2): Likewise.
15149 (rest_of_handle_cse_after_global_opts): Likewise.
15151 2016-05-11 Alan Modra <amodra@gmail.com>
15153 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15154 abi_v4_pass_in_fpr): New functions.
15155 (rs6000_function_arg_boundary): Exclude complex IBM long double
15156 from 64-bit alignment when ABI_V4.
15157 (rs6000_function_arg, rs6000_function_arg_advance_1,
15158 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15160 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15162 PR rtl-optimization/71028
15163 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15164 jump with just a return in the fallthrough block if the branch
15165 block contains just a return as well.
15167 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15169 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15170 * match.pd ((X & Y) ^ Y): ... this.
15171 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15172 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15174 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15176 * read-md.c (require_char_ws): New function.
15177 (read_string): Simplify using require_char_ws.
15178 (handle_constants): Likewise.
15179 (handle_enum): Likewise.
15180 (handle_file): Likewise.
15181 * read-md.h (require_char_ws): New declaration.
15182 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15183 (read_mapping): Likewise.
15184 (read_rtx_code): Likewise.
15185 (read_nested_rtx): Likewise.
15187 2016-05-10 James Norris <jnorris@codesourcery.com>
15189 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15190 if offloading is enabled and -fopenacc or -fopenmp is specified.
15191 (CRTOFFLOADEND): Likewise.
15192 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15193 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15195 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15197 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15198 gotoff_operand code paths. Use copy_to_suggested_regs and
15199 expand_simple_binop where appropriate. Cleanup.
15201 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15204 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15206 (dimode_scalar_chain::vector_const_cost): New.
15207 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15208 (dimode_scalar_chain::convert_op): Likewise.
15209 (dimode_scalar_chain::convert_insn): Likewise.
15211 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15213 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15214 unary operation, not a binary one.
15216 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15218 PR middle-end/70877
15219 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15220 calls with type casted fndecl.
15222 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15224 PR tree-optimization/70786
15225 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15226 * calls.c (initialize_argument_information): Bind bounds
15227 with corresponding args passed by reference.
15229 2016-05-10 Jakub Jelinek <jakub@redhat.com>
15232 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15233 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15234 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15237 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15240 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15241 code for a zero scale factor.
15242 (vsx_xvcvdpuxds_scale): Likewise.
15244 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15246 * diagnostic-show-locus.c (layout::layout): Call show_ruler
15247 if show_ruler_p was set on the context.
15248 (layout::show_ruler): New method.
15249 * diagnostic.h (struct diagnostic_context): Add field
15252 2016-05-10 Richard Biener <rguenther@suse.de>
15254 PR tree-optimization/71039
15255 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15256 (chk_uses): New function.
15257 (propagate_with_phi): Verify we can safely replicate the lhs of an
15258 aggregate assignment on all incoming edges.
15260 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
15262 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15264 (rx_atomic_sequence): New class.
15265 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15266 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15268 (rx_atomic_sequence::rx_atomic_sequence,
15269 rx_atomic_sequence::~rx_atomic_sequence): New functions.
15270 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15271 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15272 CTRLREG_INTB): New constants.
15273 (FETCHOP): New code iterator.
15274 (fethcop_name, fetchop_name2): New iterator code attributes.
15275 (QIHI): New mode iterator.
15276 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
15277 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
15278 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
15280 2016-05-10 Martin Liska <mliska@suse.cz>
15282 * tree-inline.c (remap_dependence_clique): Do not remap
15283 debugging statements.
15285 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15287 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
15288 ("*fixuns_truncdfdi2_z13")
15289 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
15290 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
15291 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
15293 2016-05-10 Richard Biener <rguenther@suse.de>
15295 PR tree-optimization/70497
15296 PR tree-optimization/28367
15297 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
15299 (visit_reference_op_load): ... here.
15300 (vn_reference_lookup_3): Use it to handle subreg-like accesses
15301 with simplified BIT_FIELD_REFs.
15302 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
15303 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
15306 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15308 * dwarf2out.c (add_abstract_origin_attribute): Adjust
15309 documentation comment. For BLOCK nodes, add a
15310 DW_AT_abstract_origin attribute that points to the DIE generated
15311 for the origin BLOCK.
15312 (gen_lexical_block_die): Call add_abstract_origin_attribute for
15313 blocks from inlined functions.
15315 2016-05-10 Alan Modra <amodra@gmail.com>
15318 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
15319 regrename modifying insns saving lr before __morestack call.
15320 * config/rs6000/rs6000.md (split_stack_return): Similarly for
15321 insns restoring lr after __morestack call.
15323 2016-05-09 Jakub Jelinek <jakub@redhat.com>
15325 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
15326 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
15328 * config/i386/sse.md (vec_interleave_high<mode>,
15329 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
15330 <avx512>_vpermt2var<mode>3_maskz): Likewise.
15332 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15334 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
15335 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
15336 parallel reassociation for power8 and forward.
15338 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
15340 * config/i386/i386.md (absneg splitters with general regs): Use
15341 general_reg_operand predicate.
15342 (btsq peephole2): Use x86_64_immediate_operand to check if new
15343 value is suitable for immediate operand. Generate emitted insn
15344 using RTL expressions.
15345 (btcq peephole2): Ditto.
15346 (btrq peephole2): Ditto. Generate correct immediate operand
15349 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
15351 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
15354 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
15356 * tree-affine.c (wide_int_constant_multiple_p): Add missing
15357 pointer dereference.
15359 2016-05-09 Richard Biener <rguenther@suse.de>
15361 PR tree-optimization/70985
15362 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
15363 op0 isn't a gimple register.
15365 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
15367 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
15368 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
15369 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
15370 (i6400_fpu_mult): New cpu units.
15371 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
15372 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
15373 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
15374 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
15375 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
15376 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
15377 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
15378 (i6400_msa_long_float4, i6400_msa_long_float5)
15379 (i6400_msa_long_float8, i6400_msa_fdiv_df)
15380 (i6400_msa_fdiv_sf): New reservations.
15381 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
15382 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
15383 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
15384 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
15385 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
15386 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
15387 (msa_short_cmp, msa_short_float2, msa_short_logic3)
15388 (msa_short_store4, msa_long_load, msa_short_store)
15389 (msa_long_logic, msa_long_float2, msa_long_float4)
15390 (msa_long_float5, msa_long_float8, msa_long_mult)
15391 (msa_long_fdiv, msa_long_div): New reservations.
15393 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
15394 Sameera Deshpande <sameera.deshpande@imgtec.com>
15395 Matthew Fortune <matthew.fortune@imgtec.com>
15396 Graham Stott <graham.stott@imgtec.com>
15397 Chao-ying Fu <chao-ying.fu@imgtec.com>
15399 * config.gcc: Add MSA header file for mips*-*-* target.
15400 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
15401 (Ubv8i, Urv8): New constraints.
15402 * config/mips/mips-ftypes.def: Add function types for MSA
15404 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
15405 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
15406 * config/mips/mips-msa.md: New file.
15407 * config/mips/mips-protos.h
15408 (mips_split_128bit_const_insns): New prototype.
15409 (mips_msa_idiv_insns): Likewise.
15410 (mips_split_128bit_move): Likewise.
15411 (mips_split_128bit_move_p): Likewise.
15412 (mips_split_msa_copy_d): Likewise.
15413 (mips_split_msa_insert_d): Likewise.
15414 (mips_split_msa_fill_d): Likewise.
15415 (mips_expand_msa_branch): Likewise.
15416 (mips_const_vector_same_val_p): Likewise.
15417 (mips_const_vector_same_bytes_p): Likewise.
15418 (mips_const_vector_same_int_p): Likewise.
15419 (mips_const_vector_shuffle_set_p): Likewise.
15420 (mips_const_vector_bitimm_set_p): Likewise.
15421 (mips_const_vector_bitimm_clr_p): Likewise.
15422 (mips_msa_vec_parallel_const_half): Likewise.
15423 (mips_msa_output_division): Likewise.
15424 (mips_ldst_scaled_shift): Likewise.
15425 (mips_expand_vec_cond_expr): Likewise.
15426 * config/mips/mips.c (enum mips_builtin_type): Add
15427 MIPS_BUILTIN_MSA_TEST_BRANCH.
15428 (mips_gen_const_int_vector_shuffle): New prototype.
15429 (mips_const_vector_bitimm_set_p): New function.
15430 (mips_const_vector_bitimm_clr_p): Likewise.
15431 (mips_const_vector_same_val_p): Likewise.
15432 (mips_const_vector_same_bytes_p): Likewise.
15433 (mips_const_vector_same_int_p): Likewise.
15434 (mips_const_vector_shuffle_set_p): Likewise.
15435 (mips_symbol_insns): Forbid loading symbols via immediate for
15437 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15439 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15441 (mips_lx_address_p): Add support load indexed address for MSA.
15442 (mips_address_insns): Add calculation of instructions needed for
15443 stores and loads for MSA.
15444 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
15445 CONST_VECTOR for MSA and let it fall through.
15446 (mips_ldst_scaled_shift): New function.
15447 (mips_subword_at_byte): Likewise.
15448 (mips_msa_idiv_insns): Likewise.
15449 (mips_legitimize_move): Validate MSA moves.
15450 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
15451 calculation of costs for MSA division.
15452 (mips_split_move_p): Check if MSA moves need splitting.
15453 (mips_split_move): Split MSA moves if necessary.
15454 (mips_split_128bit_move_p): New function.
15455 (mips_split_128bit_move): Likewise.
15456 (mips_split_msa_copy_d): Likewise.
15457 (mips_split_msa_insert_d): Likewise.
15458 (mips_split_msa_fill_d): Likewise.
15459 (mips_output_move): Handle MSA moves.
15460 (mips_expand_msa_branch): New function.
15461 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15462 Reinstate 'y' modifier.
15463 (mips_file_start): Add MSA .gnu_attribute.
15464 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15466 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15467 (mips_class_max_nregs): Add register size for MSA supported mode.
15468 (mips_cannot_change_mode_class): Allow conversion between MSA
15469 vector modes and TImode.
15470 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15472 (mips_secondary_reload_class): Force MSA loads/stores via memory.
15473 (mips_preferred_simd_mode): Add preffered modes for MSA.
15474 (mips_vector_mode_supported_p): Add MSA supported modes.
15475 (mips_autovectorize_vector_sizes): New function.
15476 (mips_msa_output_division): Likewise.
15477 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15478 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15479 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15480 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15481 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15482 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15483 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15484 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15485 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15486 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15487 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15488 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15489 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15490 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15491 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15492 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15493 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15494 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15495 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15496 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15497 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15498 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15499 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15500 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15501 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15502 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15503 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15504 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15505 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15506 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15507 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15508 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15509 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15510 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15511 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15512 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15513 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15514 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15515 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15516 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15517 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15518 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15519 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15520 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15521 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15522 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15523 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15524 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15525 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15526 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15527 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15528 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15529 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15530 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15531 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15532 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15533 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15534 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15535 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15536 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15537 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15538 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15539 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15540 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15541 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15542 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15543 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15544 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15545 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15546 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15547 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15548 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15549 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15550 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15551 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15552 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15553 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15554 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15555 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15556 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15557 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15558 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15559 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15560 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15561 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15562 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15563 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15564 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15565 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15566 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15567 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15568 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15569 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15570 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15571 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15572 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15573 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15574 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15575 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15576 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15577 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15578 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15579 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15580 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15581 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15582 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15583 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15584 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15585 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15586 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15587 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15588 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15589 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15590 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15591 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15592 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15593 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15594 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15595 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15596 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15597 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15598 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15599 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15600 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15601 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15602 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15603 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15604 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15605 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15606 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15607 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15608 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15609 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15610 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15611 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15612 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15613 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15614 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15615 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15616 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15617 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15618 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15619 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15620 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15621 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15622 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15623 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15624 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15625 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15626 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15627 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15629 (mips_get_builtin_decl_index): New array.
15630 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15631 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15632 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15633 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15634 (mips_init_builtins): Initialize mips_get_builtin_decl_index
15636 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15638 (mips_expand_builtin_insn): Prepare operands for
15639 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15640 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15641 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15642 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15643 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15644 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15645 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15646 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15647 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15648 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15649 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15650 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15651 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15652 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15653 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15654 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15655 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15656 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15657 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15658 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15659 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15660 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15661 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15662 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15663 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15664 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15665 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15666 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15667 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15668 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15669 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15670 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15671 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15672 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15673 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15674 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15675 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15676 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15677 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15678 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15679 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15680 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15681 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15682 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15683 These are set implicitly and an error is reported if overridden.
15684 (mips_expand_builtin_msa_test_branch): New function.
15685 (mips_expand_msa_shuffle): Likewise.
15686 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15687 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15688 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15689 (mips_expand_vec_unpack): Add support for MSA.
15690 (mips_expand_vector_init): Likewise.
15691 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15692 instead of const0_rtx.
15693 (mips_msa_vec_parallel_const_half): New function.
15694 (mips_gen_const_int_vector): Likewise.
15695 (mips_gen_const_int_vector_shuffle): Likewise.
15696 (mips_expand_msa_cmp): Likewise.
15697 (mips_expand_vec_cond_expr): Likewise.
15698 * config/mips/mips.h
15699 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15700 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15702 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15703 (ISA_HAS_MSA): New macro.
15704 (UNITS_PER_MSA_REG): Likewise.
15705 (BITS_PER_MSA_REG): Likewise.
15706 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15707 (MSA_REG_FIRST): New macro.
15708 (MSA_REG_LAST): Likewise.
15709 (MSA_REG_NUM): Likewise.
15710 (MSA_REG_P): Likewise.
15711 (MSA_REG_RTX_P): Likewise.
15712 (MSA_SUPPORTED_MODE_P): Likewise.
15713 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15714 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15715 * config/mips/mips.md: Include mips-msa.md.
15716 (alu_type): Add simd_add.
15717 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15718 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15719 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15720 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15721 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15722 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15723 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15724 simd_move, simd_load, simd_store. Choose "multi" for moves
15726 (qword_mode): New attribute.
15727 (insn_count): Add instruction count for quad moves.
15728 Increase the count for MIPS SIMD division.
15729 (UNITMODE): Add UNITMODEs for vector types.
15730 (addsub): New code iterator.
15731 * config/mips/mips.opt (mmsa): New option.
15732 * config/mips/msa.h: New file.
15733 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15735 * config/mips/mti-linux.h: Likewise.
15736 * config/mips/predicates.md
15737 (const_msa_branch_operand): New constraint.
15738 (const_uimm3_operand): Likewise.
15739 (const_uimm4_operand): Likewise.
15740 (const_uimm5_operand): Likewise.
15741 (const_uimm8_operand): Likewise.
15742 (const_imm5_operand): Likewise.
15743 (aq10b_operand): Likewise.
15744 (aq10h_operand): Likewise.
15745 (aq10w_operand): Likewise.
15746 (aq10d_operand): Likewise.
15747 (const_m1_operand): Likewise.
15748 (reg_or_m1_operand): Likewise.
15749 (const_exp_2_operand): Likewise.
15750 (const_exp_4_operand): Likewise.
15751 (const_exp_8_operand): Likewise.
15752 (const_exp_16_operand): Likewise.
15753 (const_vector_same_val_operand): Likewise.
15754 (const_vector_same_simm5_operand): Likewise.
15755 (const_vector_same_uimm5_operand): Likewise.
15756 (const_vector_same_uimm6_operand): Likewise.
15757 (const_vector_same_uimm8_operand): Likewise.
15758 (par_const_vector_shf_set_operand): Likewise.
15759 (reg_or_vector_same_val_operand): Likewise.
15760 (reg_or_vector_same_simm5_operand): Likewise.
15761 (reg_or_vector_same_uimm6_operand): Likewise.
15762 * doc/extend.texi (MIPS SIMD Architecture Functions): New
15764 * doc/invoke.texi (-mmsa): Document new option.
15766 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15768 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15769 * configure: Regenerate.
15770 * config.in: Regenerate.
15771 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15772 on -fvtable-verify.
15773 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15774 (ENDFILE_VTV_SPEC): Define.
15776 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
15778 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15779 registers in all interrupt handlers if necessary.
15780 (rl78_option_override): Add warning.
15781 (MUST_SAVE_MDUC_REGISTERS): New macro.
15782 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15783 * config/rl78/rl78.c (check_mduc_usage): New function.
15784 (mduc_regs): New structure to hold MDUC register data.
15785 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15786 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15787 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15788 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15789 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15790 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15792 2016-05-09 Bin Cheng <bin.cheng@arm.com>
15794 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15795 (tree-ssa-loop-niter.h): Ditto.
15796 (idx_within_array_bound, ref_within_array_bound): New functions.
15797 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15798 Factor out check on writable base object to ...
15799 (base_object_writable): ... here.
15801 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15803 * config/arm/arm.md (probe_stack): Add modes to set source
15806 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
15808 * regrename.c (base_reg_class_for_rename): New static function.
15809 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15811 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
15813 * cgraph.c (thunk_adjust): Export.
15814 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15815 * cgraphunit.c (thunk_adjust): Export.
15816 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15818 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15820 * tree-inline.c (expand_call_inline): Expand thunks inline.
15822 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
15825 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15826 (*sse2_vd_cvtss2sd): Ditto.
15827 * config/i386/i386.md
15828 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15829 Generate *sse2_vd_cvtsd2ss pattern.
15830 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15831 Generate *sse2_vd_cvtss2sd pattern.
15833 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15835 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15836 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
15839 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15841 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15842 * config/sh/sh.c: Define and declare variables on first use throughout
15844 (current_function_interrupt): Change to bool type.
15845 (frame_insn): Rename to emit_frame_insn and update users.
15846 (push_regs): Use bool for 'interrupt_handler' argument.
15847 (save_schedule_s): Remove.
15848 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15849 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15850 targetm.asm_out.unaligned_op.di.
15851 (gen_far_branch): Remove redundant forward declaration.
15852 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15853 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15854 (sh_set_return_address, sh_function_ok_for_sibcall,
15855 scavenge_reg): Update comments.
15856 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15857 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15858 (sh_attr_renesas_p): Remove unnecessary parentheses.
15859 (branch_dest): Simplify.
15860 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15861 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15862 (CUMULATIVE_ARGS): Change macro to typedef.
15863 (current_function_interrupt): Change to bool type.
15864 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15865 Surround with __cplusplus ifdef.
15866 (sh_compare_op0, sh_compare_op1): Remove.
15867 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15869 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
15871 * config/arm/arm.md: (arch): Add neon.
15872 (arch_enabled): Return yes for arch neon when TARGET_NEON.
15873 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
15874 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
15875 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
15876 attributes for alt renumbering. Mark alt 3 as non-predicable.
15877 (thumb2_movdf_vfp): Likewise.
15879 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
15881 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15882 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15883 (*andqi_1): Add preferred_for_speed attribute to disparage
15884 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15885 (*<code>qi_1): Ditto.
15886 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15887 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15888 (*ashlqi3_1): Ditto.
15889 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15890 Add preferred_for_size attribute to disparage alternative 0 and
15891 preferred_for_speed attribute to disparage alternative 1 for
15892 TARGET_PARTIAL_REG_STALL targets.
15894 2016-05-07 Tom de Vries <tom@codesourcery.com>
15896 PR tree-optimization/70956
15897 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15900 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
15902 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15903 * config/sh/sh.c (sh_cbranch_distance): Implement it.
15904 * config/sh/sh.md (branch_zero): Remove define_attr.
15905 (define_delay): Disable delay slot if branch distance is one insn.
15907 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15909 * config/i386/i386.md (LEAMODE): New mode attribute.
15910 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15911 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15912 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
15913 operand 2 predicate.
15914 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15915 (*lea<mode>_general_3): Ditto.
15916 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15918 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15920 * genmddump.c (main): Convert argv from char ** to const char **.
15922 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15924 * coretypes.h (OVERRIDE): New macro.
15925 (FINAL): New macro.
15927 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
15929 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15930 allow coalescing if the types are compatible.
15932 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15934 * pass_manager.h (pass_manager::register_pass_name): New method.
15935 (pass_manager::get_pass_by_name): New method.
15936 (pass_manager::create_pass_tab): New method.
15937 (pass_manager::m_name_to_pass_map): New field.
15938 * passes.c (name_to_pass_map): Delete global in favor of field
15939 "m_name_to_pass_map" of pass_manager.
15940 (register_pass_name): Rename from a function to...
15941 (pass_manager::register_pass_name): ...this method, updating
15942 for renaming of global "name_to_pass_map" to field
15943 "m_name_to_pass_map".
15944 (create_pass_tab): Rename from a function to...
15945 (pass_manager::create_pass_tab): ...this method, updating
15946 for renaming of global "name_to_pass_map" to field.
15947 (get_pass_by_name): Rename from a function to...
15948 (pass_manager::get_pass_by_name): ...this method.
15949 (enable_disable_pass): Convert use of get_pass_by_name to
15950 a method call, locating the pass_manager singleton.
15952 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15954 * genattr-common.c (main): Convert argv from char ** to const char **.
15955 * genattr.c (main): Likewise.
15956 * genattrtab.c (main): Likewise.
15957 * genautomata.c (initiate_automaton_gen): Likewise.
15959 * gencodes.c (main): Likewise.
15960 * genconditions.c (main): Likewise.
15961 * genconfig.c (main): Likewise.
15962 * genconstants.c (main): Likewise.
15963 * genemit.c (main): Likewise.
15964 * genenums.c (main): Likewise.
15965 * genextract.c (main): Likewise.
15966 * genflags.c (main): Likewise.
15967 * genmddeps.c (main): Likewise.
15968 * genopinit.c (main): Likewise.
15969 * genoutput.c (main): Likewise.
15970 * genpeep.c (main): Likewise.
15971 * genpreds.c (main): Likewise.
15972 * genrecog.c (main): Likewise.
15973 * gensupport.c (init_rtx_reader_args_cb): Likewise.
15974 (init_rtx_reader_args): Likewise.
15975 * gensupport.h (init_rtx_reader_args_cb): Likewise.
15976 (init_rtx_reader_args): Likewise.
15977 * gentarget-def.c (main): Likewise.
15978 * read-md.c (read_md_files): Likewise.
15979 * read-md.h (read_md_files): Likewise.
15981 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15983 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15984 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15985 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15986 Remove unused predicate.
15987 (register_and_not_fp_reg_operand): Ditto.
15989 2016-05-06 Martin Liska <mliska@suse.cz>
15991 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15992 instead of vec as the vector is local to the function.
15994 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15996 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15997 avx512bw alternative.
15999 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16000 before the ashr<mode>3 pattern.
16002 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16003 v instead of x in vex or maybe_vex alternatives, use
16004 maybe_evex instead of vex in prefix.
16006 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16007 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16008 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16009 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16012 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16013 v instead of x in vex or maybe_vex alternatives, use
16014 maybe_evex instead of vex in prefix.
16016 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16017 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16018 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16019 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16020 alternatives, use maybe_evex instead of vex in prefix.
16022 * config/i386/sse.md (vec_interleave_lowv4sf,
16023 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16024 v instead of x in vex or maybe_vex alternatives, use
16025 maybe_evex instead of vex in prefix.
16027 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16028 v instead of x in vex or maybe_vex alternatives, use
16029 maybe_evex instead of vex in prefix.
16031 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16032 v constraint instead of x.
16034 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16036 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16037 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16040 2016-05-06 Richard Biener <rguenther@suse.de>
16042 PR tree-optimization/70948
16043 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16044 Properly clobber all fields of va_list for __builtin_va_start.
16046 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16049 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16050 loop latch destination.
16052 2016-05-06 Martin Liska <mliska@suse.cz>
16054 * tree-ssa-uninit.c: Apply manual changes
16055 to the GNU coding style.
16056 (prune_uninit_phi_opnds): Rename from
16057 prune_uninit_phi_opnds_in_unrealizable_paths.
16059 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16061 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16062 mspace): Remove deprecated options.
16063 * doc/invoke.texi (SH options): Remove -mspace.
16065 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16067 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16069 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16071 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16072 corresponding combine split pattern.
16074 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16077 * config/sh/predicates.md (long_displacement_mem_operand): New.
16078 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16079 Add movi20, movi20s alternatives. Adjust length attribute for
16081 (movsi_ie): Allow for any FPU. Adjust length attribute for
16083 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16084 attribute for alternatives.
16085 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16086 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16087 length attribute for alternatives.
16089 2016-05-06 Richard Biener <rguenther@suse.de>
16091 PR tree-optimization/70960
16092 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16094 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16097 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16098 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16100 2016-05-06 Marek Polacek <polacek@redhat.com>
16103 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16105 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16108 * config/sh/sh.md (*rotcr): Add another variant.
16110 2016-05-06 Richard Biener <rguenther@suse.de>
16112 PR middle-end/70931
16113 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16115 2016-05-06 Richard Biener <rguenther@suse.de>
16117 PR middle-end/70941
16118 * fold-const.c (split_tree): Always convert to the original type
16121 2016-05-06 Richard Biener <rguenther@suse.de>
16123 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16124 (fwprop_addr): Likewise.
16126 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16129 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16131 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16132 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16133 the splitter condition.
16134 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16135 the splitter condition.
16136 (FP float_extend load splitter): Ditto.
16138 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16140 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16141 to REGNO in all peephole2 patterns.
16142 (post-reload splitters): Change true_regnum to REGNO in
16143 post-reload splitters.
16144 (zero_extend splitters): Use general_reg_operand and
16145 nonimmediate_gr_operand predicates.
16147 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16149 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16150 v constraint instead of x.
16152 2016-05-05 Alan Modra <amodra@gmail.com>
16155 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16156 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16157 TARGET_NO_FP_IN_TOC for -mrelocatable.
16158 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16159 TARGET_RELOCATABLE test.
16160 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16161 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16162 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16163 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16164 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16165 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16166 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16167 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16168 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16169 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16171 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16172 (rs6000_stack_info): Likewise.
16173 (rs6000_elf_asm_out_constructor): Likewise.
16174 (rs6000_elf_asm_out_destructor): Likewise.
16175 (rs6000_elf_declare_function_name): Likewise.
16176 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16177 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16180 2016-05-05 Alan Modra <amodra@gmail.com>
16182 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16184 2016-05-05 Alan Modra <amodra@gmail.com>
16186 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16187 out-of-line gpr restore for one or two regs if that would add
16190 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16193 * config/i386/i386.md
16194 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16195 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16196 as operand 0 predicate.
16197 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16199 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16200 Ditto. Emit the pattern using RTX.
16202 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16203 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16204 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16205 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16207 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16208 sse_reg_operand as operand 0 predicate.
16210 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16211 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16212 instead of gen_rtx_REG.
16213 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16216 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16218 * function.c (emit_use_return_register_into_block): Delete.
16219 (gen_return_pattern): Delete.
16220 (emit_return_into_block): Delete.
16221 (active_insn_between): Delete.
16222 (convert_jumps_to_returns): Delete.
16223 (emit_return_for_exit): Delete.
16224 (thread_prologue_and_epilogue_insns): Delete all code dealing with
16225 simple_return for shrink-wrapped blocks.
16226 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16227 end of blocks that need one.
16228 (get_unconverted_simple_return): Delete.
16229 (convert_to_simple_return): Delete.
16230 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16231 (convert_to_simple_return): Ditto.
16233 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16235 * cfgcleanup.c (bb_is_just_return): New function.
16236 (try_optimize_cfg): Simplify jumps to return, branches to return,
16237 and branches around return.
16239 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16241 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16242 branch to a return.
16244 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16248 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16249 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16250 assert flags & OEP_HASH_CHECK, instead of asserting it
16251 never happens. Handle TARGET_EXPR.
16252 * fold-const.c (operand_equal_p): For hash verification,
16253 or in OEP_HASH_CHECK into flags.
16255 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
16257 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16259 (compute_samebase_partition_bases): Fix typo.
16261 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16263 * config/i386/sse.md (vec_interleave_highv8sf,
16264 vec_interleave_lowv8sf, vec_interleave_highv4df,
16265 vec_interleave_lowv4df): Remove constraints from expanders.
16267 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16269 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16271 * tree-inline.c (expand_call_inline): Fix path dealing with
16272 making lhs of call statement undefined.
16274 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16276 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16277 Check availability on NODE, too.
16278 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
16279 (cgraph_node::call_for_symbol_and_aliases): Likewise.
16280 (varpool_node::call_for_symbol_and_aliase): Likewise.
16281 * ipa-pure-const.c (add_new_function): Analyze all bodies.
16282 (propagate_pure_const): Propagate across interposable functions, too.
16283 (skip_function_for_local_pure_const): Do not skip interposable bodies
16285 (pass_local_pure_const::execute): Update.
16287 2016-05-04 Marek Polacek <polacek@redhat.com>
16289 * doc/invoke.texi: Document -Wdangling-else.
16291 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16293 * config.gcc: Error out when conflicting multilib is detected. Do not
16294 loop over multilibs since no combination is legal.
16296 2016-05-04 Alan Modra <amodra@gmail.com>
16298 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
16299 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
16300 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16303 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
16305 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
16306 Clean up p5600 comments.
16308 2016-05-04 Richard Biener <rguenther@suse.de>
16310 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
16311 constructor simplifications.
16312 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
16314 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
16316 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
16317 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
16318 result.set_rtx is null instead of aborting.
16319 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
16321 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
16322 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
16323 *mov<mode>_store_postinc): New patterns.
16325 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
16327 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
16328 as commutative. Check both conversions are NOP.
16329 ((A & B) OP (C & B)): Remove.
16331 2016-05-04 Alan Modra <amodra@gmail.com>
16333 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
16335 2016-05-04 Alan Modra <amodra@gmail.com>
16338 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
16339 when cr2,3,4 are all fixed regs.
16341 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
16343 PR rtl-optimization/57193
16344 * opts.c (default_options_table): Revert OPT_frename_registers change.
16345 * doc/invoke.texi (-frename-registers, -O2): Likewise.
16347 2016-05-03 Martin Sebor <msebor@redhat.com>
16350 * builtins.c (fold_builtin_FILE): New function.
16351 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
16352 (fold_builtin_0): Call them.
16353 * gimplify.c (gimplify_call_expr): Remove the handling of
16354 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
16357 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
16358 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
16362 * doc/extend.texi (Function Names as Strings): Update __func__,
16363 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
16366 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16367 Richard Biener <rguenther@suse.de>
16369 PR tree-optimization/70916
16370 * tree-if-conv.c: Include cfganal.h.
16371 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
16372 and remove_fake_exit_edges around the optimization pass.
16374 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
16376 * cgraph.c (symbol_table::create_edge): Set inline_failed.
16377 (cgraph_edge::make_direct): Likewise.
16378 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
16379 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
16380 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
16381 (CIF_THUNK): New code.
16382 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
16383 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
16384 (compute_inline_parameters): Set inline_failed for thunks.
16385 (inline_analyze_function): Cleanup.
16386 * ipa-inline.c (can_inline_edge_p): Do not deal with
16387 call_stmt_cannot_inline_p.
16388 (can_early_inline_edge_p): Likewise.
16389 (early_inliner): Initialize inline_failed.
16390 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
16392 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
16394 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
16395 from nonimm_ssenomem_operand.
16396 (nonimm_ssenomem_operand): New predicate.
16397 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
16398 as operand 0 predicate.
16399 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
16400 Disable unsupported alternatives using "enabled" attribute.
16401 Use register_ssemem_operand as operand 0 predicate.
16402 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
16404 2016-05-03 Marek Polacek <polacek@redhat.com>
16407 * input.c (expansion_point_location): New function.
16408 * input.h (expansion_point_location): Declare.
16410 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
16412 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
16413 occurence with frame_offset_ ones.
16415 2016-05-03 Alan Modra <amodra@gmail.com>
16417 PR rtl-optimization/70890
16418 * ira.c (combine_and_move_insns): When moving def_insn, remove
16419 equivs on use_insn.
16421 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
16423 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
16424 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16425 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16426 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16428 2016-05-03 Alan Modra <amodra@gmail.com>
16430 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16431 for SAVE_MULTIPLE/STORE_MULTIPLE.
16433 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16435 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16436 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16438 2016-05-03 Richard Biener <rguenther@suse.de>
16440 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16442 (gimplify_arg): Likewise.
16443 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16444 re-writing the result to a decl if required.
16445 (internal_get_tmp_var): Add allow_ssa parameter
16446 and override into_ssa with it.
16447 (get_formal_tmp_var): Adjust.
16448 (get_initialized_tmp_var): Add allow_ssa parameter.
16449 (gimplify_arg): Add allow_ssa parameter and avoid generating
16450 SSA names for the result false.
16451 (gimplify_call_expr): If the call may return twice do not
16452 gimplify parameters into SSA.
16453 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16454 (gimplify_modify_expr): Adjust assert. For noreturn calls
16455 with a SSA name LHS adjust its def.
16456 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16457 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16458 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16459 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16460 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
16461 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
16462 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16463 (optimize_target_teams): Do not allow SSA names for clause operands.
16464 (gimplify_expr): Likewise for where we mark the result addressable.
16465 * passes.def (pass_init_datastructures): Remove.
16466 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16467 (rewrite_stmt): Likewise.
16468 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16469 (replace_locals_op): Replace SSA names.
16470 (copy_gimple_seq_and_replace_locals): Init src_cfun.
16471 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16472 * cgraph.c (release_function_body): Free CFG annotations only
16473 when we have a CFG. Simplify.
16474 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16475 force_gimple_operand instead of get_initialized_tmp_var.
16476 * tree-pass.h (make_pass_init_datastructures): Remove.
16477 * tree-ssa.c (execute_init_datastructures): Remove.
16478 (pass_data_init_datastructures): Likewise.
16479 (class pass_init_datastructures): Likewise.
16480 (make_pass_init_datastructures): Likewise.
16481 * omp-low.c (create_omp_child_function): Init SSA data structures.
16482 (grid_expand_target_grid_body): Likewise.
16483 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16484 name before adding it to names_to_release.
16485 (remove_bb): Always release SSA defs.
16486 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16487 before dereferencing it.
16488 * cgraphunit.c (init_lowered_empty_function): Always
16489 int SSA data structures.
16490 * tree-ssanames.c (release_defs): Remove assert that we are in
16492 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16494 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16495 Uros Bizjak <ubizjak@gmail.com>
16497 PR rtl-optimization/70467
16498 * config/i386/predicates.md (x86_64_hilo_int_operand,
16499 x86_64_hilo_general_operand): New predicates.
16500 * config/i386/constraints.md (Wd): New constraint.
16501 * config/i386/i386.md (mode attr di): Use Wd instead of e.
16502 (general_hilo_operand): New mode attr.
16503 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16504 instead of <general_operand>.
16505 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16506 x86_64_hilo_general_operand instead of <general_operand>.
16508 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16510 PR tree-optimization/70916
16511 * tree-if-conv.c (constant_or_ssa_name): Removed.
16512 (fold_build_cond_expr): Use is_gimple_val instead of
16513 constant_or_ssa_name.
16515 PR tree-optimization/70916
16516 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16517 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16520 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16521 (optimize_atomic_bit_test_and): New function.
16522 (pass_fold_builtins::execute): Use it.
16523 * optabs.def (atomic_bit_test_and_set_optab,
16524 atomic_bit_test_and_complement_optab,
16525 atomic_bit_test_and_reset_optab): New optabs.
16526 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16527 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16528 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16529 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16530 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16531 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16532 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16533 * doc/md.texi (atomic_bit_test_and_set@var{mode},
16534 atomic_bit_test_and_complement@var{mode},
16535 atomic_bit_test_and_reset@var{mode}): Document.
16536 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16537 atomic_bit_test_and_complement<mode>,
16538 atomic_bit_test_and_reset<mode>): New expanders.
16539 (atomic_bit_test_and_set<mode>_1,
16540 atomic_bit_test_and_complement<mode>_1,
16541 atomic_bit_test_and_reset<mode>_1): New insns.
16543 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
16545 PR rtl-optimization/70687
16546 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
16547 instead of unsigned HOST_WIDE_INT.
16549 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
16551 PR rtl-optimization/44281
16552 * hard-reg-set.h (struct target_hard_regs): New field
16553 x_fixed_nonglobal_reg_set.
16554 (fixed_nonglobal_reg_set): New macro.
16555 * reginfo.c (init_reg_sets_1): Initialize it.
16556 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16558 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16560 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16562 PR tree-optimization/56541
16563 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16564 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16565 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16566 (any_complicated_phi): new static variable.
16567 (aggressive_if_conv): delete.
16568 (if_convertible_phi_p): support phis with more than two arguments.
16569 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16570 critical pred edges.
16571 (ifcvt_split_critical_edges): support phis with more than two
16572 arguments by checking new parameter. only split critical edges
16574 (tree_if_conversion): handle simd pragma marked loop using new
16575 local variable aggressive_if_conv. check any_complicated_phi.
16577 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16579 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16582 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16584 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16587 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16589 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16590 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16591 define_insn_and_split.
16592 (mulsi3_i): New define_insn_and_split.
16593 (mulsi3_call): Convert to define_insn.
16594 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16595 Remove constraints.
16597 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16599 * machmode.h (mode_complex): Add support to give the complex mode
16601 (GET_MODE_COMPLEX_MODE): Likewise.
16602 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16603 stored by build_complex_type and gfc_build_complex_type instead of
16604 trying to figure out the appropriate mode based on the size. Raise
16605 an assertion error, if the type was not set.
16606 * genmodes.c (struct mode_data): Add field for the complex type of
16608 (blank_mode): Likewise.
16609 (make_complex_modes): Remember the complex mode created in the
16611 (emit_mode_complex): Write out the mode_complex array to map a
16612 type mode to the complex version.
16613 (emit_insn_modes_c): Likewise.
16614 * tree.c (build_complex_type): Set the complex type to use before
16615 calling layout_type.
16616 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16617 support for __float128 complex datatypes.
16618 (rs6000_hard_regno_mode_ok): Likewise.
16619 (rs6000_setup_reg_addr_masks): Likewise.
16620 (rs6000_complex_function_value): Likewise.
16621 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16622 __float128 and __ibm128 complex.
16623 (FLOAT128_IBM_P): Likewise.
16624 (ALTIVEC_ARG_MAX_RETURN): Likewise.
16625 * doc/extend.texi (Additional Floating Types): Document that
16626 -mfloat128 must be used to enable __float128. Document complex
16627 __float128 and __ibm128 support.
16629 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16632 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16633 char/short arguments promoted to int because of promote_prototypes.
16635 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16637 * config/i386/predicates.md (register_ssemem_operand): New predicate.
16638 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16639 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16640 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
16641 alternatives using "enabled" attribute. Use register_ssemem_operand
16642 as operand 1 predicate.
16643 (*cmpi<unord>xf_i387): Split XFmode pattern from
16644 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16645 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16646 *absneg<mode>2_i387. Disable unsupported alternatives using
16647 "enabled" attribute.
16648 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16650 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16652 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16654 (oacc_loop_process): Check mask for loop termination.
16656 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16658 * cif-code.def (CIF_THUNK): Add.
16659 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16662 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16664 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16665 (dump_inline_summary): Dump it.
16666 (fp_expression_p): New predicate.
16667 (estimate_function_body_sizes): Use it.
16668 (inline_merge_summary): Merge fp_expressions.
16669 (inline_read_section): Read fp_expressions.
16670 (inline_write_summary): Write fp_expressions.
16671 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16672 codegen boundary if either caller or callee is !fp_expressions.
16673 * ipa-inline.h (inline_summary): Add fp_expressions.
16674 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16675 to fp_expressions be sure the fp generation flags are updated.
16677 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16679 PR rtl-optimization/70467
16680 * cse.c (cse_insn): Handle no-op MEM moves after folding.
16682 PR rtl-optimization/70467
16683 * ipa-pure-const.c (check_call): Handle internal calls even in
16684 ipa mode like in local mode.
16686 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16688 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16690 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16692 * match.pd (X u< X, X u> X): New transformations.
16694 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16696 * flag-types.h (enum warn_strict_overflow_code): Move ...
16697 * coretypes.h: ... here.
16698 * fold-const.h (fold_overflow_warning): Declare.
16699 * fold-const.c (fold_overflow_warning): Make non-static.
16700 (fold_comparison): Move the transformation of X +- C1 CMP C2
16701 into X CMP C2 -+ C1 ...
16702 * match.pd: ... here.
16703 * gimple-fold.c (fold_stmt_1): Protect with
16704 fold_defer_overflow_warnings.
16706 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16708 * omp-low.c (struct oacc_loop): Add 'inner' field.
16709 (new_oacc_loop_raw): Initialize it to zero.
16710 (oacc_loop_fixed_partitions): Initialize it.
16711 (oacc_loop_auto_partitions): Partition outermost loop to outermost
16712 available partitioning.
16714 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16716 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16718 (umulsidi3): Likewise.
16719 (indirect_jump): Fix jump instruction assembly patterns.
16721 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
16724 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16725 (nvptx_function_value): Assert non-NULL cfun.
16727 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
16729 PR rtl-optimization/70886
16730 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16732 * cselib.h (rtx_equal_for_cselib_1): Declare.
16733 (rtx_equal_for_cselib_p: New inline function.
16734 * cselib.c (rtx_equal_for_cselib_p): Delete.
16735 (rtx_equal_for_cselib_1): Make public.
16737 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16739 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16740 (register_mixssei387nonimm_operand): Remove predicate.
16741 * config/i386/i386.md (*fop_<mode>_comm): Merge from
16742 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
16743 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
16744 for TARGET_MIX_SSE_I387 alternatives.
16745 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16746 Disable unsupported alternatives using "enabled" attribute. Use
16747 nonimm_ssenomem_operand as operand 1 predicate. Also check
16748 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16750 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16752 * tree.c (cst_and_fits_in_hwi): Simplify.
16754 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16756 * tree.h (wi::to_wide): New function.
16757 * expr.c (expand_expr_real_1): Use wi::to_wide.
16758 * fold-const.c (int_const_binop_1): Likewise.
16759 (extract_muldiv_1): Likewise.
16761 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16763 * wide-int.h: Update offset_int and widest_int documentation.
16764 (WI_SIGNED_SHIFT_RESULT): New macro.
16765 (wi::binary_shift): Define signed_shift_result_type for
16766 shifts on offset_int- and widest_int-like types.
16767 (generic_wide_int): Support <<= and >>= if << and >> are supported.
16768 * tree.h (int_bit_position): Use shift operators instead of wi::
16770 * alias.c (adjust_offset_for_component_ref): Likewise.
16771 * expr.c (get_inner_reference): Likewise.
16772 * fold-const.c (fold_comparison): Likewise.
16773 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16774 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16775 * tree-dfa.c (get_ref_base_and_extent): Likewise.
16776 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16777 (stmt_kills_ref_p): Likewise.
16778 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16779 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16780 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16781 (ao_ref_init_from_vn_reference): Likewise.
16783 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16785 * wide-int.h: Update offset_int and widest_int documentation.
16786 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16787 (wi::binary_traits): Allow ordered comparisons between offset_int and
16788 offset_int, between widest_int and widest_int, and between either
16789 of these types and basic C types.
16790 (operator <, <=, >, >=): Define for the same combinations.
16791 * tree.h (tree_int_cst_lt): Use comparison operators instead
16792 of wi:: comparisons.
16793 (tree_int_cst_le): Likewise.
16794 * gimple-fold.c (fold_array_ctor_reference): Likewise.
16795 (fold_nonarray_ctor_reference): Likewise.
16796 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16797 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16798 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16799 * tree-sra.c (completely_scalarize): Likewise.
16800 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16801 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16802 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16803 (check_for_binary_op_overflow): Likewise.
16804 (search_for_addr_array): Likewise.
16805 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16807 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16809 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16810 (arc_save_restore): Likewise.
16811 (arc_dwarf_register_span): Likewise.
16812 (arc_output_pic_addr_const): Initialize suffix variable.
16814 2016-05-02 Martin Liska <mliska@suse.cz>
16816 * symbol-summary.h (function_summary::function_summary):
16817 Remove checking assert for all cgraph nodes.
16818 (function_summary::get): Check summary_uid.
16819 (symtab_insertion): Check summary_uid.
16821 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16823 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16824 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16825 bmaskn instruction.
16826 (arc_dwarf_register_span): Remove enum keyword.
16827 (compact_memory_operand_p): New function.
16828 * config/arc/arc.h (reg_class): Add code density register classes.
16829 (REG_CLASS_NAMES): Likewise.
16830 (REG_CLASS_CONTENTS): Likewise.
16831 * config/arc/arc.md (*movqi_insn): Add code density instructions.
16832 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16833 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16834 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16835 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16837 (h, Rcd, Rsd, Rzd): New register constraints.
16838 (T): Use compact_memory_operand_p function.
16839 * config/arc/predicates.md (compact_load_memory_operand): Remove.
16841 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16843 * config/sh/sh.md (*negnegt, *movtt): Remove.
16845 2016-05-02 Marek Polacek <polacek@redhat.com>
16846 Tom de Vries <tom@codesourcery.com>
16848 PR tree-optimization/70700
16849 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16850 bigger than FIRST_REF_NODE.
16852 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16855 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16857 (prepare_cbranch_operands): Don't use scratch register. Assume that
16858 function is used when pseudos can be created.
16859 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
16860 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16861 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16862 define_expand. Allow it only when pseudos can be created.
16863 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16865 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
16867 * config/i386/constraints.md (BC): Only allow -1 operands.
16868 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16869 Add "enabled" attribute. Update XI mode attribute calculation.
16870 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16871 (*movoi_internal_avx): Update XI mode attribute calculation.
16872 (*movti_internal): Ditto.
16874 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16876 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16877 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16879 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
16881 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16882 statement on instruction code. Remove trailing spaces.
16883 (altivec_expand_stv_builtin): Likewise.
16885 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16887 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16888 (TARGET_FPU_DOUBLE): Simplify.
16889 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16890 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16891 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16892 with 'TARGET_FPU_DOUBLE'.
16893 * config/sh/sh.md: Likewise.
16895 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
16897 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16898 SH_DIV_STR_FOR_SIZE): Remove.
16899 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16900 SH_DIV_STR_FOR_SIZE): Remove.
16902 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16904 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16905 logical_reg_operand): Delete.
16906 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16907 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16908 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16909 match_operand and match_test.
16910 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
16911 variables on their first use. Return bool values.
16912 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16913 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16914 arith_reg_operand for input operand. Remove empty constraints.
16916 (*xorsi3_compact): Rename to xorsi3.
16917 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16918 (*zero_extend<mode>si2_disp_mem): Update comment.
16921 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16923 * config/sh/t-sh: Remove SH5 support.
16924 * config.gcc: Likewise.
16925 * configure: Likewise.
16927 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16929 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16931 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16933 * config/sh/sh.c (register_sh_passes, sh_option_override,
16934 sh_print_operand, prepare_move_operands,
16935 sh_can_follow_jump): Remove TARGET_SH1 checks.
16936 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16937 PROMOTE_MODE): Likewise.
16938 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16941 2016-04-30 Alan Modra <amodra@gmail.com>
16943 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16944 restoring when fixed_reg_p, but allow out-of-line or stmw save.
16945 Check for user regs later to avoid unnecessary looping over regs.
16946 Merge user reg check with non-saved reg check. Don't force
16947 inline VR restore when static chain used.
16948 (rs6000_frame_related): Omit eh_frame info for user regs when
16950 (fixed_regs_p): Delete.
16952 2016-04-30 Alan Modra <amodra@gmail.com>
16954 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16955 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
16958 2016-04-30 Alan Modra <amodra@gmail.com>
16961 * config/rs6000/rs6000.c (fixed_reg_p): New function.
16962 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
16965 2016-04-30 Alan Modra <amodra@gmail.com>
16967 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16968 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
16969 flag_pic test for Darwin.
16971 2016-04-30 Alan Modra <amodra@gmail.com>
16973 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16974 throw_calls_crossed.
16975 (REG_FREQ_CALLS_CROSSED): Delete.
16976 (REG_N_THROWING_CALLS_CROSSED): Delete.
16977 * regstat.c (regstat_bb_compute_ri): Don't calculate
16978 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16979 (dump_reg_info): Don't print call cross frequency.
16980 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16981 and REG_N_THROWING_CALLS_CROSSED.
16983 2016-04-30 Alan Modra <amodra@gmail.com>
16985 * regs.h (struct reg_info_t): Delete live_length.
16986 (REG_LIVE_LENGTH): Delete macro.
16987 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16988 local_live, local_processed and local_live_last_luid params.
16989 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
16991 (regstat_compute_ri): Adjust for above. Don't set
16993 (dump_reg_info): Don't print live length.
16994 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16995 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
16996 Localize loop_depth var.
16998 2016-04-30 Alan Modra <amodra@gmail.com>
17000 * ira.c (enum valid_equiv): New.
17001 (validate_equiv_mem): Return enum.
17002 (update_equiv_mem): Create replacement in more cases.
17003 (add_store_equivs): Update validate_equiv_mem call.
17005 2016-04-30 Alan Modra <amodra@gmail.com>
17007 * ira.c (combine_and_move_insns): Rather than scanning insns,
17008 use DF infrastucture to find use and def insns.
17010 2016-04-30 Alan Modra <amodra@gmail.com>
17012 ira.c (combine_and_move_insns): Move invariant conditions..
17013 (ira.c): ..to here. Call combine_and_move_insns before
17014 add_store_equivs. Call grow_reg_equivs later. Allocate
17015 req_equiv later using max_reg_num() rather than global max_regno.
17016 (contains_replace_regs): Delete.
17017 (add_store_equivs): Remove contains_replace_regs test.
17019 2016-04-30 Alan Modra <amodra@gmail.com>
17021 * ira.c (struct equiv_mem_data): New.
17022 (equiv_mem, equiv_mem_modified): Delete static vars.
17023 (validate_equiv_mem_from_store): Use "data" param to communicate..
17024 (validate_equiv_mem): ..from here.
17026 2016-04-30 Alan Modra <amodra@gmail.com>
17028 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17030 (update_reg_equivs): ..here. Move allocation and freeing of
17031 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17032 end_alias_analysis to..
17035 2016-04-30 Alan Modra <amodra@gmail.com>
17037 * ira.c (pdx_subregs): Delete.
17038 (struct equivalence): Add pdx_subregs field.
17039 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17040 pdx_subregs access.
17041 (update_equiv_regs): Don't create or free pdx_subregs. Update
17042 pdx_subregs access.
17044 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17046 * config/rs6000/altivec.h: Change definitions of vec_xl and
17048 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17049 (LD_ELEMREV_V2DI): New.
17050 (LD_ELEMREV_V4SF): New.
17051 (LD_ELEMREV_V4SI): New.
17052 (LD_ELEMREV_V8HI): New.
17053 (LD_ELEMREV_V16QI): New.
17054 (ST_ELEMREV_V2DF): New.
17055 (ST_ELEMREV_V2DI): New.
17056 (ST_ELEMREV_V4SF): New.
17057 (ST_ELEMREV_V4SI): New.
17058 (ST_ELEMREV_V8HI): New.
17059 (ST_ELEMREV_V16QI): New.
17062 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17063 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17064 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17065 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17066 (altivec_expand_builtin): Add handling for
17067 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17068 (rs6000_invalid_builtin): Add error-checking for
17069 RS6000_BTM_P9_VECTOR.
17070 (altivec_init_builtins): Define builtins used to implement vec_xl
17072 (rs6000_builtin_mask_names): Define power9-vector.
17073 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17074 (RS6000_BTM_P9_VECTOR): Define.
17075 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17076 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17077 (vsx_ld_elemrev_v2df): Likewise.
17078 (vsx_ld_elemrev_v4sf): Likewise.
17079 (vsx_ld_elemrev_v4si): Likewise.
17080 (vsx_ld_elemrev_v8hi): Likewise.
17081 (vsx_ld_elemrev_v16qi): Likewise.
17082 (vsx_st_elemrev_v2df): Likewise.
17083 (vsx_st_elemrev_v2di): Likewise.
17084 (vsx_st_elemrev_v4sf): Likewise.
17085 (vsx_st_elemrev_v4si): Likewise.
17086 (vsx_st_elemrev_v8hi): Likewise.
17087 (vsx_st_elemrev_v16qi): Likewise.
17088 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17091 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17093 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17095 (simplify_control_stmt_condition_1): ... here. Recurse into
17096 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17098 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17101 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17102 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17103 define_insn_and_split to define_insn.
17104 (zero_extendqi<mode>2_dot2): Same.
17105 (extendqi<mode>2_dot): Same.
17106 (extendqi<mode>2_dot2): Same.
17108 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17110 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17111 (probe_stack): New expander.
17112 (probe_stack_<mode>): New insn pattern.
17114 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17116 * config/i386/i386.md
17117 (operations with memory inputs setting flags peephole2):
17118 Remove uneeded REG_P checks. Cleanup pattern generation.
17120 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17122 * tree-vect-loop.c (vect_transform_loop): Fix
17123 nb_iterations_upper_bound computation for vectorized loop.
17125 2016-04-29 Marek Polacek <polacek@redhat.com>
17126 Jakub Jelinek <jakub@redhat.com>
17129 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17130 TARGET_EXPR_SLOT as a base.
17132 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17134 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17135 with 'rCm2' constraints to limit possible immediate size.
17136 (*load_zeroextendqisi_update): Likewise.
17137 (*load_signextendqisi_update): Likewise.
17138 (*loadhi_update): Likewise.
17139 (*load_zeroextendhisi_update): Likewise.
17140 (*load_signextendhisi_update): Likewise.
17141 (*loadsi_update): Likewise.
17142 (*loadsf_update): Likewise.
17144 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17146 * config/i386/predicates.md (constm1_operand): Fix comparison.
17148 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17150 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17152 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17154 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17155 remaining SH5 related settings.
17156 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17157 shmedia_prepare_call_address): Delete.
17158 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17159 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17160 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17161 UNSUPPORTED_SH2A): Remove m5 checks.
17162 (sh_divide_strategy_e): Remove SH5 division strategies.
17163 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17164 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17166 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17168 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17170 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17172 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17173 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17174 Change lder to ldr.
17175 * config/s390/vector.md ("mov<mode>"): Likewise.
17177 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17179 * config/s390/constraints.md ("U", "W"): Invoke
17180 s390_mem_constraint with "ZR" and "ZT".
17181 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17182 addresses when using LRA. Accept also short displacements for S
17183 and T constraints. Do not check for long displacement target for
17184 S and T constraints.
17185 (s390_mem_constraint): Remove handling of U and W constraints.
17186 * config/s390/s390.md (various patterns): Remove the short
17187 displacement constraints (Q and R) if a long displacement
17188 constraint is present. Add longdisp as required CPU capability.
17189 * config/s390/vector.md: Likewise.
17190 * config/s390/vx-builtins.md: Likewise.
17192 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17195 * reload1.c (reload): Call finish_spills before
17196 restarting reload loop. Skip select_reload_regs
17197 if update_eliminables_and_spill returns true.
17199 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17201 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17202 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17203 (umulhisi3_imm): Update predicates and constraint letters.
17204 (umulhisi3_reg): Declare instruction as commutative.
17205 * config/arc/constraints.md (J12, J16): New constraints.
17206 * config/arc/predicates.md (short_unsigned_const_operand): New
17208 (arc_short_operand): Likewise.
17209 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17211 2016-04-29 Richard Biener <rguenther@suse.de>
17213 PR tree-optimization/13962
17214 PR tree-optimization/65686
17215 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17216 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17217 using PTA to compare pointers.
17218 * match.pd: Add pattern for pointer equality compare simplification
17219 using ptrs_compare_unequal.
17221 2016-04-29 Richard Biener <rguenther@suse.de>
17223 * stor-layout.c (layout_type): Do not build a pointer-to-element
17226 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17228 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17229 Use SWI mode iterator. Use general_reg_operand predicate.
17230 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17231 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
17234 2016-04-29 Jakub Jelinek <jakub@redhat.com>
17236 PR middle-end/70843
17237 * fold-const.c (operand_equal_p): Don't verify hash value equality
17239 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
17242 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17245 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17246 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17247 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17248 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17249 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17251 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17253 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17254 to info. Don't initialize separate fields to 0. Clean up
17257 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17259 * config/i386/i386.md (peephole2s for operations with memory inputs):
17260 Use SWI mode iterator.
17261 (peephole2s for operations with memory outputs): Ditto.
17262 Do not check for stack checking probe.
17264 (probe_stack): Remove expander.
17266 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17267 Andrew Burgess <andrew.burgess@embecosm.com>
17269 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17270 operands as 32-bits.
17272 2016-04-28 Jason Merrill <jason@redhat.com>
17274 * gdbinit.in: Skip line-map.h.
17276 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17277 Andrew Burgess <andrew.burgess@embecosm.com>
17279 * config/arc/arc.c (arc_conditional_register_usage): Take
17280 TARGET_RRQ_CLASS into account.
17281 (arc_print_operand): Support printing 'p' and 's' operands.
17282 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
17284 (TARGET_RRQ_CLASS): Define.
17285 (IS_POWEROF2_OR_0_P): Define.
17286 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
17288 (*tst_movb): New define_insn.
17289 (*tst): Avoid recognition if it could prevent '*tst_movb'
17290 combination; replace c/CnL with c/Chs alternative.
17291 (*tst_bitfield_tst): New define_insn.
17292 (*tst_bitfield_asr): New define_insn.
17293 (*tst_bitfield): New define_insn.
17294 (andsi3_i): Add Rrq variant.
17295 (extzv): New define_expand.
17296 (insv): New define_expand.
17297 (*insv_i): New define_insn.
17298 (*movb): New define_insn.
17299 (*movb_signed): New define_insn.
17300 (*movb_high): New define_insn.
17301 (*movb_high_signed): New define_insn.
17302 (*movb_high_signed + 1): New define_split pattern.
17303 (*mrgb): New define_insn.
17304 (*mrgb + 1): New define_peephole2 pattern.
17305 (*mrgb + 2): New define_peephole2 pattern.
17306 * config/arc/arc.opt (mbitops): New option for nps400, uses
17307 TARGET_NPS_BITOPS_DEFAULT.
17308 * config/arc/constraints.md (q): Make register class conditional.
17309 (Rrq): New register constraint.
17310 (Chs): New constraint.
17311 (Clo): New constraint.
17312 (Chi): New constraint.
17313 (Cbf): New constraint.
17314 (Cbn): New constraint.
17315 (C18): New constraint.
17316 (Cbi): New constraint.
17318 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17320 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
17322 (bitmap_intersection_of_preds): Ditto.
17323 (bitmap_union_of_succs): Ditto.
17324 (bitmap_union_of_preds): Ditto.
17325 * sbitmap.c (do_popcount): Delete.
17326 (BITMAP_DEBUGGING): Delete.
17327 (sbitmap_verify_popcount): Delete.
17328 (sbitmap_alloc): Don't initialize the popcount field.
17329 (sbitmap_alloc_with_popcount): Delete.
17330 (sbitmap_resize): Don't resize the popcount array.
17331 (sbitmap_vector_alloc): Don't initialize the popcount field.
17332 (bitmap_copy): Don't copy the popcount array.
17333 (bitmap_clear): Don't clear the popcount array.
17334 (bitmap_clear): Delete the popcount array handling.
17335 (bitmap_ior_and_compl): Delete the popcount assert.
17336 (bitmap_not): Ditto.
17337 (bitmap_and_compl): Ditto.
17338 (bitmap_and): Delete the popcount array handling.
17339 (bitmap_xor): Ditto.
17340 (bitmap_ior): Ditto.
17341 (bitmap_or_and): Delete the popcount assert.
17342 (bitmap_and_or): Ditto.
17343 (popcount_table): Delete.
17344 (sbitmap_elt_popcount): Delete.
17345 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
17346 (bitmap_set_bit): Delete the popcount assert.
17347 (bitmap_clear_bit): Ditto.
17348 (sbitmap_free): Don't free the popcount array.
17349 (sbitmap_alloc_with_popcount): Delete declaration.
17350 (sbitmap_popcount): Ditto.
17352 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17353 Andrew Burgess <andrew.burgess@embecosm.com>
17355 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
17356 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
17357 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
17358 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
17359 * config/arc/arc.opt (mcmem): New option.
17360 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
17361 supply length for r/m alternative.
17362 (*extendqisi2_ac): Likewise.
17363 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
17365 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
17366 (movhi_insn): Likewise.
17367 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
17368 (*zero_extendqihi2_i): Add r/Ucm alternative.
17369 (*zero_extendqisi2_ac): Likewise.
17370 (*zero_extendhisi2_i): Likewise.
17371 * config/arc/constraints.md (Uex): New memory constraint.
17372 (Ucm): New define_constraint.
17373 * config/arc/predicates.md (long_immediate_loadstore_operand):
17374 Return 0 for MEM with cmem_address address.
17375 (cmem_address_0): New predicates.
17376 (cmem_address_1): Likewise.
17377 (cmem_address_2): Likewise.
17378 (cmem_address): Likewise.
17380 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17382 * config/rs6000/rs6000.c (machine_function): Rename
17383 insn_chain_scanned_p to spe_insn_chain_scanned_p.
17384 (rs6000_stack_info): Adjust.
17386 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17387 Andrew Burgess <andrew.burgess@embecosm.com>
17389 * config/arc/constraints.md (Usd): Convert to define_constraint.
17393 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17396 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
17397 Add new peephole2 where the first insn is *mov<mode>_or instead of
17398 *mov<mode>_internal.
17400 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
17402 * tracer.c (bb_seen): Make static.
17404 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
17406 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
17407 support, setup defaults.
17408 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
17409 * config/arc/arc.c (arc_init): Add NPS400 support.
17410 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
17411 (TARGET_ARC700): NPS400 is also an ARC700.
17412 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
17414 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17417 * config/nds32/nds32.md (casesi): Don't access the operands array
17420 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17422 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
17423 (or $-1,reg peephole2): Ditto.
17424 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17426 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
17428 * doc/extend.texi (Common Function Attributes) [optimize]:
17429 Discourage use of the optimize attribute.
17431 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
17433 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17434 special case builtin.
17435 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17436 ALTIVEC_BUILTIN_VEC_ADDE.
17437 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17438 support for ALTIVEC_BUILTIN_VEC_ADDE.
17439 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17440 for __builtin_vec_adde.
17442 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17444 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17445 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17447 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17450 * doc/sourcebuild.texi (Effective-Target Keywords, Other
17451 attributes): Document cilkplus_runtime.
17453 2016-04-28 Martin Jambor <mjambor@suse.cz>
17455 * tree-cfg.c (verify_expr): Verify that local declarations belong to
17456 this function. Call verify_expr on MEM_REFs and bases of other
17457 handled_components.
17459 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17461 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17462 for WORD_REGISTER_OPERATIONS to runtime check.
17464 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17466 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17468 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17470 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17471 big-endian compilation.
17472 * config/arc/arc.md (addf3): Likewise.
17473 (subdf3): Likewise.
17474 (muldf3): Likewise.
17476 2016-04-28 Richard Biener <rguenther@suse.de>
17478 PR tree-optimization/70840
17479 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17480 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17481 Mark x * pow(x,c) -> pow(x,c+1) commutative.
17482 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17484 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17486 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17487 and explain why in a comment.
17489 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17491 * config/arc/arc.md (cpu_facility): Add fpx variant.
17492 (subdf3): Prohibit use reverse sub when assist operations option
17494 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17495 instructions only when FPX is enabled.
17496 * testsuite/gcc.target/arc/trsub.c: New test.
17498 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17500 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17501 mult_operator when calculating "type" attribute.
17502 (*fop_<mode>_1_i387): Ditto.
17503 (*fop_xf_1_i387): Ditto.
17504 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17505 Use std::swap to swap operands. Use RTL expressions to generate
17508 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17509 Joern Rennecke <joern.rennecke@embecosm.com>
17511 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17513 (emit_pic_move): Remove.
17514 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17515 * config/arc/arc.c (emit_pic_move): Removed.
17516 (TARGET_HAVE_TLS): Define.
17517 (arc_conditional_register_usage): Test for arc_tp_regno.
17518 (arc_print_operand, arc_print_operand_address): Handle TLS
17520 (arc_needs_pcl_p): New function.
17521 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17522 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17523 (arc_raw_symbolic_reference_mentioned_p): Likewise.
17524 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17525 (arc_legitimize_tls_address): Likewise.
17526 (DTPOFF_ZERO_SYM): Define.
17527 (arc_legitimize_pic_address): Make it static, handle TLS cases.
17528 (arc_output_pic_addr_const): Print TLS unspecs.
17529 (prepare_pic_move): New function, replaces emit_pic_move.
17530 (arc_legitimate_constant_p): Handle TLS unspecs.
17531 (arc_legitimate_address_p): Likewise.
17532 (arc_rewrite_small_data_p): Use assert for TLS constants.
17533 (prepare_move_operands): Use prepare_pic_move.
17534 (arc_legitimize_address): Legitimize tls addresses.
17535 (arc_epilogue_uses): Check for arc_tp_regno.
17536 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17537 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17539 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17541 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17542 %(arc_tls_extra_start_spec).
17543 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17544 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17546 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17547 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17548 (UNSPEC_TLS_OFF): Add.
17550 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17551 (get_thread_pointersi): New patterns.
17552 * config/arc/arc.opt (mtp-regno): New option.
17553 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17554 (move_dest_operand): Likewise.
17555 * configure: Regenerate.
17556 * configure.ac: Add arc*-*-* case to test for tls.
17557 * doc/invoke.texi (ARC options): Document mtp-regno.
17559 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17561 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17562 the new ARC HS SIMD instructions.
17563 (arc_preferred_simd_mode): New function.
17564 (arc_autovectorize_vector_sizes): Likewise.
17565 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17566 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17567 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17568 (arc_init_builtins): Add new SIMD builtin types.
17569 (arc_split_move): Handle 64 bit vector moves.
17570 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17571 (TARGET_PLUS_QMACW): Define.
17572 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17573 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17574 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17575 (VSUBADD4H): New builtins.
17576 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17577 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17579 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
17580 Matthias Klose <doko@debian.org>
17582 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17584 2016-04-28 Richard Biener <rguenther@suse.de>
17586 PR middle-end/70777
17587 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17590 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
17592 * common/config/sh/sh-common.c: Remove SH5 support.
17593 * config/sh/constraints.md: Likewise.
17594 * config/sh/config/sh/elf.h: Likewise.
17595 * config/sh/linux.h: Likewise.
17596 * config/sh/netbsd-elf.h: Likewise.
17597 * config/sh/predicates.md: Likewise.
17598 * config/sh/sh-c.c: Likewise.
17599 * config/sh/sh-protos.h: Likewise.
17600 * config/sh/sh.c: Likewise.
17601 * config/sh/sh.h: Likewise.
17602 * config/sh/sh.md: Likewise.
17603 * config/sh/sh.opt: Likewise.
17604 * config/sh/sync.md: Likewise.
17605 * config/sh/sh64.h: Delete.
17606 * config/sh/shmedia.h: Likewise.
17607 * config/sh/shmedia.md: Likewise.
17608 * config/sh/sshmedia.h: Likewise.
17609 * config/sh/t-netbsd-sh5-64: Likewise.
17610 * config/sh/t-sh64: Likewise.
17611 * config/sh/ushmedia.h: Likewise.
17613 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17615 * config/i386/i386.md (sign_extend to memory peephole2s): Use
17616 general_reg_operand instead of register_operand predicate.
17618 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17620 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17622 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
17624 * match.pd (A - B > A, A + B < A): New transformations.
17626 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
17628 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17629 which defaults to true. Emit an outer pair of parentheses only if
17630 EMIT_PARENS. When continuing a chain of && or || (or & or |),
17631 don't emit parentheses for the right-hand operand.
17633 2016-04-27 Jeff Law <law@redhat.com>
17635 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17637 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17639 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17640 (altivec_lvx_<mode>_internal): Document.
17641 (altivec_lvx_<mode>_2op): New define_insn.
17642 (altivec_lvx_<mode>_1op): Likewise.
17643 (altivec_lvx_<mode>_2op_si): Likewise.
17644 (altivec_lvx_<mode>_1op_si): Likewise.
17645 (altivec_stvx_<mode>): Remove.
17646 (altivec_stvx_<mode>_internal): Document.
17647 (altivec_stvx_<mode>_2op): New define_insn.
17648 (altivec_stvx_<mode>_1op): Likewise.
17649 (altivec_stvx_<mode>_2op_si): Likewise.
17650 (altivec_stvx_<mode>_1op_si): Likewise.
17651 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17652 Expand vec_ld and vec_st during parsing.
17653 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17655 (altivec_expand_stvx_be): Likewise.
17656 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17657 address-masking behavior in RTL.
17658 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17659 address-masking behavior in RTL.
17660 (altivec_expand_builtin): Change builtin code arguments for calls
17661 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17662 (insn_is_swappable_p): Avoid incorrect swap optimization in the
17663 presence of lvx/stvx patterns.
17664 (alignment_with_canonical_addr): New function.
17665 (alignment_mask): Likewise.
17666 (find_alignment_op): Likewise.
17667 (recombine_lvx_pattern): Likewise.
17668 (recombine_stvx_pattern): Likewise.
17669 (recombine_lvx_stvx_patterns): Likewise.
17670 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17671 stvx patterns from expand.
17672 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17674 (vector_altivec_store_<mode>): Likewise.
17676 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
17678 * config/aarch64/aarch64.md
17679 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17680 remove the "fp" attributes.
17681 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17682 add the "simd" attributes.
17683 (*movdf_aarch64): Likewise.
17684 (*movtf_aarch64): Remove the "fp" attributes.
17685 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17686 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17688 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17690 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17691 rtx to rtx_code_label *.
17692 * rtl.h (maybe_set_first_label_num): Likewise.
17694 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17696 * df-core.c (df_add_problem): Make the problem param be const.
17697 (df_remove_problem): Make local "problem" be const.
17698 * df-problems.c (problem_RD): Make const.
17699 (problem_LR): Likewise.
17700 (problem_LIVE): Likewise.
17701 (problem_MIR): Likewise.
17702 (problem_CHAIN): Likewise.
17703 (problem_WORD_LR): Likewise.
17704 (problem_NOTE): Likewise.
17705 (problem_MD): Likewise.
17706 * df-scan.c (problem_SCAN): Likewise.
17707 * df.h (struct df_problem): Make field "dependent_problem" be
17709 (struct dataflow): Likewise for field "problem".
17710 (df_add_problem): Make param const.
17712 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17714 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17715 inter-unit moves to/from vector registers are enabled. Do not disable
17718 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17720 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17721 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17723 (enum df_problem_id): ...this new enum.
17724 (struct df_problem): Convert field "id" from "int" to
17725 enum df_problem_id.
17727 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17729 * rtl.def: Update comment for "things in the instruction chain" to
17730 reflect the removal of the leading "i" field for INSN_UID in
17731 r210360. Fix bogus apostrophe.
17733 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17735 * config/i386/i386.md
17736 (lea arith with mem operand + setcc peephole2): Set operator mode.
17738 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
17741 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17742 (dimode_scalar_to_vector_candidate_p): This.
17743 (timode_scalar_to_vector_candidate_p): New function.
17744 (scalar_to_vector_candidate_p): Likewise.
17745 (timode_check_non_convertible_regs): Likewise.
17746 (timode_remove_non_convertible_regs): Likewise.
17747 (remove_non_convertible_regs): Likewise.
17748 (remove_non_convertible_regs): Renamed to ...
17749 (dimode_remove_non_convertible_regs): This.
17750 (scalar_chain::~scalar_chain): Make it virtual.
17751 (scalar_chain::compute_convert_gain): Make it pure virtual.
17752 (scalar_chain::mark_dual_mode_def): Likewise.
17753 (scalar_chain::convert_insn): Likewise.
17754 (scalar_chain::convert_registers): Likewise.
17755 (scalar_chain::add_to_queue): Make it protected.
17756 (scalar_chain::emit_conversion_insns): Likewise.
17757 (scalar_chain::replace_with_subreg): Likewise.
17758 (scalar_chain::replace_with_subreg_in_insn): Likewise.
17759 (scalar_chain::convert_op): Likewise.
17760 (scalar_chain::convert_reg): Likewise.
17761 (scalar_chain::make_vector_copies): Likewise.
17762 (scalar_chain::convert_registers): New pure virtual function.
17763 (class dimode_scalar_chain): New class.
17764 (class timode_scalar_chain): Likewise.
17765 (scalar_chain::mark_dual_mode_def): Renamed to ...
17766 (dimode_scalar_chain::mark_dual_mode_def): This.
17767 (timode_scalar_chain::mark_dual_mode_def): New function.
17768 (timode_scalar_chain::convert_insn): Likewise.
17769 (dimode_scalar_chain::convert_registers): Likewise.
17770 (scalar_chain::compute_convert_gain): Renamed to ...
17771 (dimode_scalar_chain::compute_convert_gain): This.
17772 (scalar_chain::replace_with_subreg): Renamed to ...
17773 (dimode_scalar_chain::replace_with_subreg): This.
17774 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17775 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17776 (scalar_chain::make_vector_copies): Renamed to ...
17777 (dimode_scalar_chain::make_vector_copies): This.
17778 (scalar_chain::convert_reg): Renamed to ...
17779 (dimode_scalar_chain::convert_reg ): This.
17780 (scalar_chain::convert_op): Renamed to ...
17781 (dimode_scalar_chain::convert_op): This.
17782 (scalar_chain::convert_insn): Renamed to ...
17783 (dimode_scalar_chain::convert_insn): This.
17784 (scalar_chain::convert): Call convert_registers.
17785 (convert_scalars_to_vector): Change to scalar_chain pointer to
17786 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17787 in 32-bit mode. Delete scalar_chain pointer. Call
17788 free_dominance_info in 64-bit mode.
17789 (pass_stv::gate): Remove TARGET_64BIT check.
17790 (ix86_option_override): Put the 64-bit STV pass before the CSE
17793 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
17795 * dwarf2out.h (struct dw_loc_descr_node): Remove the
17796 dw_loc_frame_offset field.
17797 * dwarf2out.c (new_loc_descr): Likewise.
17798 (resolve_args_picking_1): Turn the VISITED hash set into a
17799 FRAME_OFFSET hash map. Use it to associate a frame offset to
17800 visited nodes. Remove uses of the CHECKING_P macro.
17801 (resolve_args_picking): Update call to resolve_args_picking_1.
17803 2016-04-27 Martin Liska <mliska@suse.cz>
17805 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17806 (free_loop_data): Release vuses of groups.
17808 2016-04-27 Bin Cheng <bin.cheng@arm.com>
17810 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17811 instead of redundant use_id and boolean have_use_for.
17812 (struct iv_use): Change sub_id into group_id. Remove field next.
17813 Move fields: related_cands, n_map_members, cost_map and selected
17815 (struct iv_group): ... here. New structure.
17816 (struct iv_common_cand): Use structure declaration directly.
17817 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17818 (MAX_CONSIDERED_USES): Rename macro to ...
17819 (MAX_CONSIDERED_GROUPS): ... here.
17820 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17821 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17822 (dump_uses): Rename to ...
17823 (dump_groups): ... here. Update all uses.
17824 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17825 (find_induction_variables): Refactor format of dump information.
17826 (record_sub_use): Delete.
17827 (record_use): Update all uses.
17828 (record_group): New function.
17829 (record_group_use, find_interesting_uses_op): Call above functions.
17831 (find_interesting_uses_cond): Ditto.
17832 (group_compare_offset): New function.
17833 (split_all_small_groups): Rename to ...
17834 (split_small_address_groups_p): ... here. Update all uses.
17835 (split_address_groups): Update all uses.
17836 (find_interesting_uses): Refactor format of dump information.
17837 (add_candidate_1): Update all uses. Remove redundant check on iv,
17839 (add_candidate, record_common_cand): Remove redundant assert.
17840 (add_iv_candidate_for_biv): Update use.
17841 (add_iv_candidate_derived_from_uses): Update all uses.
17842 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17843 (alloc_use_cost_map): Ditto.
17844 (set_use_iv_cost, get_use_iv_cost): Rename to ...
17845 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
17846 (determine_use_iv_cost_generic): Ditto.
17847 (determine_group_iv_cost_generic): Ditto.
17848 (determine_use_iv_cost_address): Ditto.
17849 (determine_group_iv_cost_address): Ditto.
17850 (determine_use_iv_cost_condition): Ditto.
17851 (determine_group_iv_cost_cond): Ditto.
17852 (determine_use_iv_cost): Ditto.
17853 (determine_group_iv_cost): Ditto.
17854 (set_autoinc_for_original_candidates): Update all uses.
17855 (find_iv_candidates): Update all uses. Refactor dump information.
17856 (determine_use_iv_costs): Ditto.
17857 (determine_iv_costs): Ditto.
17858 (iv_ca_cand_for_use): Rename to ...
17859 (iv_ca_cand_for_group): ... here. Update all uses.
17860 (iv_ca_add_use, iv_ca_add_group): Ditto.
17861 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17862 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17863 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17864 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17865 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17866 (create_new_iv, adjust_iv_update_pos): Ditto.
17867 (rewrite_use_address): Delete.
17868 (rewrite_use_address_1): Rename to ...
17869 (rewrite_use_address): ... here.
17870 (rewrite_use_compare): Update all uses.
17871 (rewrite_use): Delete.
17872 (rewrite_uses): Rename to ...
17873 (rewrite_groups): ... here. Update all uses.
17874 (remove_unused_ivs, free_loop_data): Update all uses.
17875 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17877 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17879 * rtlanal.c (nonzero_bits1): Convert preprocessor check
17880 for WORD_REGISTER_OPERATIONS to runtime check.
17882 2016-04-27 Richard Biener <rguenther@suse.de>
17885 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17886 aggregate_value_p to determine if a function result is
17887 returned by reference.
17888 (ipa_pta_execute): Functions having their address taken are
17889 not automatically nonlocal.
17891 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17894 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17895 * fold-const.c (operand_equal_p): If flag_checking and
17896 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17897 and if it returns non-zero, assert iterative_hash_expr on both
17900 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17902 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17904 2016-04-27 Nick Clifton <nickc@redhat.com>
17906 PR middle-end/49889
17907 * varasm.c (merge_weak): Generate an error if an attempt is made
17908 to convert a non-weak static function into a weak, public function.
17910 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17912 * params.def (MAX_PARTITION_SIZE): New param.
17913 * doc/invoke.texi: Document lto-max-partition.
17915 2016-04-27 Richard Biener <rguenther@suse.de>
17918 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17919 function cummulating used_from_other_partition, externally_visible
17920 and force_output from aliases.
17921 (refered_from_nonlocal_var): Likewise.
17922 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17923 node flags properly.
17925 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17927 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17928 (-Wmemset-elt-size): New item.
17930 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
17933 * stor-layout.h (internal_reference_types): Delete.
17934 * stor-layout.c (reference_types_internal): Likewise.
17935 (internal_reference_types): Likewise.
17936 (layout_type) <REFERENCE_TYPE>: Adjust.
17938 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17941 * tree.h (inchash::add_expr): Add FLAGS argument.
17942 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
17943 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
17944 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17945 Formatting fix. Adjust recursive calls. For tcc_comparison,
17946 if swap_tree_comparison (code) is smaller than code, hash that
17947 and arguments in the other order. Hash CONVERT_EXPR the same
17948 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17949 of ADDR_EXPR of decl as the decl itself. Add or remove
17950 OEP_ADDRESS_OF from recursive flags as needed. For
17951 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17952 operands commutatively and only the third one normally.
17953 For internal CALL_EXPR hash in CALL_EXPR_IFN.
17955 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
17957 * config/rtems.h (LIB_SPEC): Add -latomic.
17959 2016-04-27 Joel Sherrill <joel@rtems.org>
17961 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17962 xilink.ld and flags not relevant to RTEMS.
17964 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17966 * toplev.c (backend_init_target): Avoid calling init_reload when using
17969 2016-04-26 Jakub Jelinek <jakub@redhat.com>
17971 * reorg.c (try_merge_delay_insns): Declare i and j inside the
17972 for loops rather than one for the whole function.
17974 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17976 * match.pd (X + CST CMP X): New transformation.
17978 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17980 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17981 * fold-const.c (fold_binary_loc): Remove 2 transformations
17982 superseded by match.pd.
17983 * match.pd (x+x -> x*2): Generalize to integers.
17985 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
17987 * config/i386/i386.md (operation on memory peephole): Duplicate an
17988 existing peephole and adapt it to match lea rather than an operation
17991 PR rtl-optimization/57193
17992 * opts.c (default_options_table): Add OPT_frename_registers at -O2
17994 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17996 2016-04-26 Bin Cheng <bin.cheng@arm.com>
17998 * tree-if-conv.c (any_pred_load_store): New static variable.
17999 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18000 any_pred_load_store instead of and_mask_load_store.
18001 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18002 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18003 (combine_blocks, tree_if_conversion): Ditto.
18005 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18007 PR tree-optimization/70771
18008 PR tree-optimization/70775
18009 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18010 virtual PHI nodes. Delete parameter.
18011 (if_convertible_loop_p_1): Delete argument to above function.
18012 (predicate_all_scalar_phis): Delete code handling single-argument
18014 (tree_if_conversion): Mark and update virtual SSA.
18016 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18019 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18020 (x86_elf_aligned_common): Rename to ...
18021 (x86_elf_aligned_decl_common): ... this.
18022 Add decl arg. Switch to .lbss for largecomm object. Use
18023 LARGECOMM_SECTION_ASM_OP.
18024 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18026 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18027 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18029 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18030 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18032 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18035 * config/i386/i386.c (SECTION_LARGE): Define.
18036 (x86_64_elf_select_section): Set it for large data/bss sections.
18037 Only clear SECTION_WRITE for .lrodata.
18038 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18040 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18041 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18042 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18044 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18045 * doc/tm.texi: Regenerate.
18047 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18050 * configure.ac (--enable-checking): Document extra flag, for
18051 non-release builds default to --enable-checking=yes,extra.
18052 If misc checking and extra checking, define CHECKING_P to 2 instead
18054 * common.opt (fchecking=): Add.
18055 * doc/invoke.texi (-fchecking=): Document.
18056 * doc/install.texi: Document --enable-checking changes.
18057 * configure: Regenerated.
18058 * config.in: Regenerated.
18060 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18062 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18063 attribute instead of which_alternative.
18064 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18065 Use EXT_REX_SSE_REG_P where appropriate.
18067 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18069 * config/i386/predicates.md (const0_operand): Do not match
18070 const_wide_int code.
18071 (const1_operand): Ditto.
18073 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18075 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18076 for SSE constm1 operands and TARGET_AVX512VL.
18077 (*movti_internal): Ditto.
18078 (*mov<mode>_or): Use constm1_operand predicate.
18079 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18080 for SSE vector_all_ones operands and TARGET_AVX512VL.
18081 * config/i386/predicates.md (constm1_operand): New predicate.
18082 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18083 emission of constant -1 load.
18085 2016-04-25 Jason Merrill <jason@redhat.com>
18087 * gdbinit.in: Skip is-a.h.
18089 * attribs.c (register_scoped_attributes): Fix logic.
18090 * attribs.h: Declare register_scoped_attributes.
18092 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18094 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18095 stxvd2x and stxvw4x built-in functions.
18097 2016-04-25 DJ Delorie <dj@redhat.com>
18099 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18100 (ashrhi3): Likewise.
18101 (lshrhi3): Likewise.
18103 2016-04-25 Richard Biener <rguenther@suse.de>
18105 PR tree-optimization/70780
18106 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18107 wasn't visited yet.
18108 (compute_antic): Mark blocks with abnormal preds as visited as
18109 they have a final empty antic-in solution already.
18111 2016-04-25 Michael Collison <michael.collison@linaro.org>
18113 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18115 2016-04-25 Michael Collison <michael.collison@linaro.org>
18117 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18118 mode is VQI to improve mixed mode vectorization.
18119 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18120 define_insn to match low half of signed vaddw.
18121 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18122 define_insn to match high half of signed vaddw.
18123 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18124 define_insn to match low half of unsigned vaddw.
18125 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18126 define_insn to match high half of unsigned vaddw.
18127 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18128 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18129 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18131 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18132 * config/arm/predicates.md (vect_par_constant_high): Support
18133 big endian and simplify by calling
18134 arm_simd_check_vect_par_cnst_half
18135 (vect_par_constant_low): Likewise.
18137 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18139 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18140 predicate for operand 2.
18142 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18143 H.J. Lu <hongjiu.lu@intel.com>
18145 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18146 machine_mode argument.
18147 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18148 constm1_rtx operands. For VOIDmode constants, get mode from
18149 pred_mode. Check mode size if the mode is supported by ABI.
18150 (standard_sse_constant_opcode): Do not use standard_constant_p.
18151 Strictly check ABI support for all-ones operands.
18152 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18153 immediates. Update calls to standard_sse_constant_p.
18154 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18155 (ix86_rtx_costs): Ditto.
18156 * config/i386/i386.md (*movxi_internal_avx512f): Use
18157 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18158 Use (v,BC) alternative instead of (v,C). Use register_operand
18159 checks instead of MEM_P.
18160 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18161 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18162 isa attribute. Use register_operand checks instead of MEM_P.
18163 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18164 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18165 alternative and corresponding sse2 isa attribute.
18166 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18167 to standard_sse_constant_p.
18168 (FP constant splitters): Ditto.
18169 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18171 * config/i386/predicates.md (constm1_operand): Remove.
18172 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18173 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18174 vector_all_ones_operand instead of constm1_operand.
18176 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18178 * print-rtl.c (print_rtx_insn_vec): New function.
18179 * print-rtl.h: New prototype.
18180 * store-motion.c (struct st_expr): Make avail_stores a vector.
18181 (st_expr_entry): Adjust.
18182 (free_st_expr_entry): Likewise.
18183 (print_store_motion_mems): Likewise.
18184 (find_moveable_store): Likewise.
18185 (compute_store_table): Likewise.
18186 (delete_store): Likewise.
18187 (build_store_vectors): Likewise.
18189 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18191 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18193 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18195 * vec.h (vec_safe_contains): New function.
18196 (vec::contains): Likewise.
18197 (vec::begin): Likewise.
18198 (vec::end): Likewise.
18200 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18203 * cfgexpand.c (expand_stack_vars): Fix typo.
18205 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18207 * system.h (list, map, set, vector): Include conditionally.
18208 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18209 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18210 * ipa-icf.c (INCLUDE_LIST): Define.
18211 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18212 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18213 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18214 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18215 * cp/logic.cc (INCLUDE_LIST): Define.
18216 * fortran/trans-common.c (INCLUDE_MAP): Define.
18218 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18220 * auto-profile.c: Remove <string.h> include.
18221 * ipa-icf-gimple.c: Remove <list> include.
18222 * diagnostic.c: Remove <new> include.
18223 * genmatch.c: Likewise.
18224 * pretty-print.c: Likewise.
18225 * toplev.c: Likewise
18226 * c/c-objc-common.c: Likewise.
18227 * cp/error.c: Likewise.
18228 * fortran/error.c: Likewise.
18230 2016-04-22 Richard Biener <rguenther@suse.de>
18232 * lto-streamer-in.c (input_ssa_names): Do not allocate
18233 GIMPLE_NOP for all SSA names.
18234 * lto-streamer-out.c (output_ssa_names): Do not output
18235 SSA names that should have been released.
18237 2016-04-22 Richard Biener <rguenther@suse.de>
18239 PR tree-optimization/70740
18240 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18243 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
18246 * config/i386/predicates.md (call_insn_operand): Replace
18247 sibcall_memory_operand with memory_operand.
18249 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
18251 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18252 has_single_use() tests.
18253 (register_edge_assert_for_1): Likewise.
18254 (find_assert_locations_1): Check the liveness bitmap instead of
18255 checking has_single_use().
18257 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
18260 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18261 Extract AVX-512BW constraint from AVX.
18263 2016-04-21 Richard Biener <rguenther@suse.de>
18265 PR tree-optimization/70725
18266 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18267 for phi_convertible_by_degenerating_args.
18268 (predicate_all_scalar_phis): Handle single-argument PHIs.
18270 2016-04-21 Richard Biener <rguenther@suse.de>
18272 PR middle-end/70747
18273 * fold-const.c (fold_comparison): Return properly typed
18276 2016-04-21 Bin Cheng <bin.cheng@arm.com>
18278 PR tree-optimization/70715
18279 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
18280 after expanding BASE using expand_simple_operations.
18282 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
18284 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
18285 New transformations.
18287 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
18289 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
18291 2016-04-20 Jan Hubicka <jh@suse.cz>
18293 * ipa-inline.c (can_inline_edge_p): Pass caller info to
18294 ultiimate_alias_target.
18295 (update_callee_keys): Likewise.
18296 (lookup_recursive_calls): Likewise.
18297 (speculation_useful_p): Likewise.
18299 2016-04-20 Jan Hubicka <jh@suse.cz>
18302 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
18303 (set_nothrow_flag_1): ... this; handle interposition correctly;
18304 recurse on aliases and thunks.
18305 (cgraph_node::set_nothrow_flag): New.
18306 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
18307 functions compiled with non-call exceptions that binds to current
18309 (propagate_nothrow): Be safe WRT interposition.
18310 * cgraph.h (set_nothrow_flag): Update prototype.
18312 2016-04-18 Jan Hubicka <jh@suse.cz>
18314 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18315 max_loop_iterations_int.
18316 (tree_unswitch_outer_loop): Likewise.
18318 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18320 PR tree-optimization/69489
18321 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
18322 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
18323 Revise dump message.
18324 (if_convertible_bb_p): Remove check on edge count of basic block's
18327 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18329 PR tree-optimization/56625
18330 PR tree-optimization/69489
18331 * tree-data-ref.h (DR_INNERMOST): New macro.
18332 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
18333 hashing struct innermost_loop_behavior.
18334 (ref_DR_map): Remove.
18335 (innermost_DR_map): New map.
18336 (baseref_DR_map): Revise comment.
18337 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
18338 to innermost_DR_map accroding to its innermost loop behavior.
18339 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
18340 to its innermost loop behavior.
18341 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
18342 Add initialization for innermost_DR_map. Record memory reference
18343 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
18344 have innermost loop behavior.
18345 (if_convertible_loop_p): Remove release for ref_DR_map. Release
18348 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
18350 * config/i386/i386.md (*lea<mode>_general_1): Rename from
18351 *lea_general_1. Use explicit SWI12 mode interator.
18352 (*lea<mode>_general_2): Rename from *lea_general_2.
18353 Use explicit SWI12 mode interator.
18354 (*lea<mode>_general_3): Rename from *lea_general_3.
18355 Use explicit SWI12 mode interator.
18356 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
18357 Use explicit SWI12 mode interator.
18358 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
18359 Use explicit SWI48 mode interator.
18361 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
18363 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18364 Short-cut unaligned load and store cases. Handle all integer
18366 (ix86_expand_vector_move_misalign): Short-cut unaligned load
18367 and store cases. Call ix86_avx256_split_vector_move_misalign
18368 directly without checking mode class.
18370 2016-04-20 Andrew Pinski <apinski@cavium.com>
18371 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18374 * config/aarch64/aarch64.md (sibcall): Force call
18375 address to be DImode for ILP32.
18376 (sibcall_value): Likewise.
18378 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
18380 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
18382 2016-04-20 Richard Biener <rguenther@suse.de>
18384 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
18385 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
18386 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
18387 (maybe_push_res_to_seq): Adjust.
18388 * gimple-fold.c (maybe_build_generic_op): Likewise.
18390 2016-04-20 Marek Polacek <polacek@redhat.com>
18392 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
18395 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
18397 * config/i386/sse.md (vec_unpacks_lo_hi): Always
18398 use kmovw to support AVX512F target.
18400 2016-04-20 Bin Cheng <bin.cheng@arm.com>
18402 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
18404 2016-04-20 Marek Polacek <polacek@redhat.com>
18406 PR tree-optimization/70725
18407 * tree-if-conv.c (is_false_predicate): New function.
18408 (predicate_mem_writes): Use it.
18410 2016-04-20 Richard Biener <rguenther@suse.de>
18412 PR tree-optimization/70726
18413 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
18414 shift amounts from a pattern stmt operand.
18416 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18419 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
18420 stack_restore_from_fpr pattern when restoring r15.
18421 (s390_optimize_prologue): Strip away the memory barrier in the
18422 parallel when trying to get rid of restore insns.
18423 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
18424 definition for loading the stack pointer from an FPR. Compared to
18425 the normal move insn this pattern includes a full memory barrier.
18427 2016-04-19 Jakub Jelinek <jakub@redhat.com>
18429 PR middle-end/70680
18430 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18431 implicitly linear or lastprivate iterator on the outer context.
18433 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18435 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18437 * config/i386/i386.md (ssememalign): Removed.
18438 * config/i386/sse.md: Remove ssememalign attribute from patterns.
18440 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18443 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18444 const short * to __builtin_ia32_loaddquhi512_mask.
18445 (_mm512_maskz_loadu_epi16): Likewise.
18446 (_mm512_mask_storeu_epi16): Pass short * to
18447 __builtin_ia32_storedquhi512_mask.
18448 (_mm512_mask_loadu_epi8): Pass const char * to
18449 __builtin_ia32_loaddquqi512_mask.
18450 (_mm512_maskz_loadu_epi8): Likewise.
18451 (_mm512_mask_storeu_epi8): Pass char * to
18452 __builtin_ia32_storedquqi512_mask.
18453 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18454 const double * to __builtin_ia32_loadupd512_mask.
18455 (_mm512_mask_loadu_pd): Likewise.
18456 (_mm512_maskz_loadu_pd): Likewise.
18457 (_mm512_storeu_pd): Pass double * to
18458 __builtin_ia32_storeupd512_mask.
18459 (_mm512_mask_storeu_pd): Likewise.
18460 (_mm512_loadu_ps): Pass const float * to
18461 __builtin_ia32_loadups512_mask.
18462 (_mm512_mask_loadu_ps): Likewise.
18463 (_mm512_maskz_loadu_ps): Likewise.
18464 (_mm512_storeu_ps): Pass float * to
18465 __builtin_ia32_storeups512_mask.
18466 (_mm512_mask_storeu_ps): Likewise.
18467 (_mm512_mask_loadu_epi64): Pass const long long * to
18468 __builtin_ia32_loaddqudi512_mask.
18469 (_mm512_maskz_loadu_epi64): Likewise.
18470 (_mm512_mask_storeu_epi64): Pass long long *
18471 to __builtin_ia32_storedqudi512_mask.
18472 (_mm512_loadu_si512): Pass const int * to
18473 __builtin_ia32_loaddqusi512_mask.
18474 (_mm512_mask_loadu_epi32): Likewise.
18475 (_mm512_maskz_loadu_epi32): Likewise.
18476 (_mm512_storeu_si512): Pass int * to
18477 __builtin_ia32_storedqusi512_mask.
18478 (_mm512_mask_storeu_epi32): Likewise.
18479 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18480 char * to __builtin_ia32_storedquqi256_mask.
18481 (_mm_mask_storeu_epi8): Likewise.
18482 (_mm256_mask_loadu_epi16): Pass const short * to
18483 __builtin_ia32_loaddquhi256_mask.
18484 (_mm256_maskz_loadu_epi16): Likewise.
18485 (_mm_mask_loadu_epi16): Pass const short * to
18486 __builtin_ia32_loaddquhi128_mask.
18487 (_mm_maskz_loadu_epi16): Likewise.
18488 (_mm256_mask_loadu_epi8): Pass const char * to
18489 __builtin_ia32_loaddquqi256_mask.
18490 (_mm256_maskz_loadu_epi8): Likewise.
18491 (_mm_mask_loadu_epi8): Pass const char * to
18492 __builtin_ia32_loaddquqi128_mask.
18493 (_mm_maskz_loadu_epi8): Likewise.
18494 (_mm256_mask_storeu_epi16): Pass short * to.
18495 __builtin_ia32_storedquhi256_mask.
18496 (_mm_mask_storeu_epi16): Pass short * to.
18497 __builtin_ia32_storedquhi128_mask.
18498 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18499 const double * to __builtin_ia32_loadupd256_mask.
18500 (_mm256_maskz_loadu_pd): Likewise.
18501 (_mm_mask_loadu_pd): Pass onst double * to
18502 __builtin_ia32_loadupd128_mask.
18503 (_mm_maskz_loadu_pd): Likewise.
18504 (_mm256_mask_storeu_pd): Pass double * to
18505 __builtin_ia32_storeupd256_mask.
18506 (_mm_mask_storeu_pd): Pass double * to
18507 __builtin_ia32_storeupd128_mask.
18508 (_mm256_mask_loadu_ps): Pass const float * to
18509 __builtin_ia32_loadups256_mask.
18510 (_mm256_maskz_loadu_ps): Likewise.
18511 (_mm_mask_loadu_ps): Pass const float * to
18512 __builtin_ia32_loadups128_mask.
18513 (_mm_maskz_loadu_ps): Likewise.
18514 (_mm256_mask_storeu_ps): Pass float * to
18515 __builtin_ia32_storeups256_mask.
18516 (_mm_mask_storeu_ps): ass float * to
18517 __builtin_ia32_storeups128_mask.
18518 (_mm256_mask_loadu_epi64): Pass const long long * to
18519 __builtin_ia32_loaddqudi256_mask.
18520 (_mm256_maskz_loadu_epi64): Likewise.
18521 (_mm_mask_loadu_epi64): Pass const long long * to
18522 __builtin_ia32_loaddqudi128_mask.
18523 (_mm_maskz_loadu_epi64): Likewise.
18524 (_mm256_mask_storeu_epi64): Pass long long * to
18525 __builtin_ia32_storedqudi256_mask.
18526 (_mm_mask_storeu_epi64): Pass long long * to
18527 __builtin_ia32_storedqudi128_mask.
18528 (_mm256_mask_loadu_epi32): Pass const int * to
18529 __builtin_ia32_loaddqusi256_mask.
18530 (_mm256_maskz_loadu_epi32): Likewise.
18531 (_mm_mask_loadu_epi32): Pass const int * to
18532 __builtin_ia32_loaddqusi128_mask.
18533 (_mm_maskz_loadu_epi32): Likewise.
18534 (_mm256_mask_storeu_epi32): Pass int * to
18535 __builtin_ia32_storedqusi256_mask.
18536 (_mm_mask_storeu_epi32): Pass int * to
18537 __builtin_ia32_storedqusi128_mask.
18538 * config/i386/i386-builtin-types.def (PCSHORT): New.
18539 (PINT64): Likewise.
18540 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18541 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18542 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18543 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18544 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18545 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18546 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18547 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18548 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18549 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18550 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18551 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18552 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18553 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18554 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18555 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18556 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18557 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18558 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18559 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18560 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18561 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18562 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18563 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18564 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18565 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18566 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18567 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18568 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18569 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18570 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18571 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18572 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18573 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18574 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18575 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18576 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18577 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18578 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18579 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18580 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18581 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18582 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18583 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18584 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18585 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18586 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18587 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18588 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18590 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18591 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18593 (ix86_expand_vector_move_misalign): Likewise.
18594 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18595 to scalar function prototype for unaligned load/store builtins.
18596 (ix86_expand_special_args_builtin): Updated.
18597 * config/i386/sse.md (UNSPEC_LOADU): Removed.
18598 (UNSPEC_STOREU): Likewise.
18599 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18600 (VI_ULOADSTORE_F_AVX512VL): Likewise.
18601 (ssescalarsize): Handle V4TI, V2TI and V1TI.
18602 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18603 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18604 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18605 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18606 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18607 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18608 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18609 (<avx512>_storedqu<mode>_mask): Likewise.
18610 (*sse4_2_pcmpestr_unaligned): Likewise.
18611 (*sse4_2_pcmpistr_unaligned): Likewise.
18612 (*mov<mode>_internal): Renamed to ...
18613 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
18614 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18615 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18616 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18618 2016-04-19 Richard Biener <rguenther@suse.de>
18620 PR tree-optimization/70171
18621 * tree-ssa-phiprop.c: Include stor-layout.h.
18622 (phiprop_insert_phi): Handle the aggregate copy case.
18623 (propagate_with_phi): Likewise.
18625 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
18627 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18628 instead of simplify_gen_subreg (... , 0).
18629 (ix86_delegitimize_address): Ditto.
18630 (ix86_split_divmod): Ditto.
18631 (ix86_split_copysign_const): Ditto.
18632 (ix86_split_copysign_var): Ditto.
18633 (ix86_expand_args_builtin): Ditto.
18634 (ix86_expand_round_builtin): Ditto.
18635 (ix86_expand_special_args_builtin): Ditto.
18636 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18637 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18638 (udivmodqi4): Ditto.
18639 (absneg splitters): Ditto.
18640 (*jcc_bt<mode>_1): Ditto.
18642 2016-04-19 Richard Biener <rguenther@suse.de>
18644 PR tree-optimization/70724
18645 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18646 restoring out from ...
18647 (free_scc_vn): ... here.
18648 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18649 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18651 (pass_fre::execute): Restore SSA info.
18653 2016-04-19 Richard Biener <rguenther@suse.de>
18655 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18656 * gimple-walk.c (walk_gimple_op): Initialize it.
18657 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18658 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18659 remapping SSA names of defs.
18660 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18663 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
18665 PR middle-end/70689
18666 * lra-constraints.c (equiv_substition_p): New.
18667 (process_alt_operands): Use it.
18668 (swap_operands): Swap it.
18669 (curr_insn_transform): Update it.
18671 2016-04-18 Michael Matz <matz@suse.de>
18673 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18674 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18675 * tree-core.h (tree_type_common.align): Use bit-field.
18676 (tree_type_common.spare): New.
18677 (tree_decl_common.off_align): Make smaller.
18678 (tree_decl_common.align): Use bit-field.
18680 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18681 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18682 (scan_sharing_clauses): Ditto.
18683 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18684 (omp_finish_file): Ditto.
18685 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18686 (layout_decl): Ditto.
18687 (relayout_decl): Ditto.
18688 (finalize_record_size): Use SET_TYPE_ALIGN.
18689 (finalize_type_size): Ditto.
18690 (finish_builtin_struct): Ditto.
18691 (layout_type): Ditto.
18692 (initialize_sizetypes): Ditto.
18693 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18694 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18695 (lookup_field_for_decl): Use SET_DECL_ALIGN.
18696 (get_chain_field): Ditto.
18697 (get_trampoline_type): Ditto.
18698 (get_nl_goto_field): Ditto.
18699 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18701 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18702 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18703 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18704 (build_qualified_type): Use SET_TYPE_ALIGN.
18705 (build_aligned_type, build_range_type_1): Ditto.
18706 (build_atomic_base): Ditto.
18707 (build_common_tree_nodes): Ditto.
18708 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18709 (expand_one_stack_var_at): Ditto.
18710 * coverage.c (build_var): Use SET_DECL_ALIGN.
18711 * except.c (init_eh): Ditto.
18712 * function.c (assign_parm_setup_block): Ditto.
18713 * symtab.c (increase_alignment_1): Ditto.
18714 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18715 * tree-vect-stmts.c (ensure_base_align): Ditto.
18716 * varasm.c (align_variable): Ditto.
18717 (assemble_variable): Ditto.
18718 (build_constant_desc): Ditto.
18719 (output_constant_def_contents): Ditto.
18721 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18722 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18723 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18724 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18725 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18727 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
18730 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18731 replace %vmovsd with "%vmovq".
18732 (vec_concatv2df): Likewise.
18734 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
18736 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18737 (*vec_extractv2si_0): Ditto.
18738 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18739 (zero_extended_scalar_load_operand splitters): Ditto.
18740 (vec_extract splitters): Ditto.
18741 (*vec_extractv4si_0_zext): Ditto.
18742 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18743 and lowpart_subreg.
18744 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18745 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18746 (*sse4_1_extractps): Use lowpart_subreg.
18747 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18749 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18751 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18753 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18754 Mention Solaris 11 packaging changes.
18755 Update gas and gld requirements.
18756 Remove reference to pre-Solaris 10 bug.
18757 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18759 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18762 2016-04-17 Jan Hubicka <jh@suse.cz>
18764 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18765 max_loop_iterations_int.
18767 2016-04-18 Richard Biener <rguenther@suse.de>
18769 PR tree-optimization/43434
18770 * tree-ssa-structalias.c (struct vls_data): New.
18771 (visit_loadstore): Handle all pointer-based accesses.
18772 (compute_dependence_clique): Compute a bitmap of restrict tags
18773 assigned bases and pass it to visit_loadstore.
18775 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
18778 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18779 armv8.1-a and armv8.1-a+crc.
18781 2016-04-18 Richard Biener <rguenther@suse.de>
18783 PR tree-optimization/70701
18784 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18785 references after translating through a memcpy.
18787 2016-04-18 Richard Biener <rguenther@suse.de>
18789 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18790 (compute_antic): ... here. For partial antic use regular
18791 postorder and scrap iteration.
18792 (compute_partial_antic_aux): Remove unused return value.
18793 (init_pre): Do not allocate postorder.
18794 (fini_pre): Do not free postorder.
18796 2016-04-18 Richard Biener <rguenther@suse.de>
18798 PR middle-end/37870
18799 * expmed.c (extract_bit_field_1): Remove broken case
18800 using a wider MODE_INT mode.
18802 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
18804 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18805 unless compiling with at least GCC-4.8.
18807 2016-04-17 Jan Hubicka <jh@suse.cz>
18810 * graphite.c (graphite_finalize): Update call to
18811 tree_estimate_probability.
18812 * predict.h (tree_estimate_probability): Update prototype.
18814 2016-04-17 Jan Hubicka <jh@suse.cz>
18816 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18817 (tree_estimate_probability): Likewise.
18818 (pass_profile::execute): Update.
18819 (report_predictor_hitrates): New function.
18820 * profile.c (compute_branch_probabilities): Use it.
18821 * predict.h (report_predictor_hitrates): Declare.
18823 2016-04-17 Jan Hubicka <jh@suse.cz>
18826 * cgraph.h (cgraph_node::set_const_flag,
18827 cgraph_node::set_pure_flag): Update prototype to return bool;
18829 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18830 of interposable symbol are interposable, too.
18831 (cgraph_set_const_flag_1): Rename to ...
18832 (set_const_flag_1): ... this one; change to self recursive function
18833 instead of call_for_symbol_thunks_and_aliases. Handle correctly
18834 clearnig the flag in all variants and also virtual thunks of const
18835 functions are pure; track if any change was done.
18836 (cgraph_node::set_const_flag): Update.
18837 (struct set_pure_flag_info): New struct.
18838 (cgraph_set_pure_flag_1): Rename to ...
18839 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18840 rather than pointer encoded flags; track if any changes was done;
18841 handle correctly clearning flag and setting flag of aliases already
18843 (cgraph_node::set_pure_flag): Update.
18844 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18846 2016-04-17 Tom de Vries <tom@codesourcery.com>
18849 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18850 backslash in label.
18852 2016-04-17 Tom de Vries <tom@codesourcery.com>
18854 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18855 '{}<> ' as escape-for-record.
18857 2016-04-17 Tom de Vries <tom@codesourcery.com>
18859 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18862 2016-04-17 Tom de Vries <tom@codesourcery.com>
18865 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18866 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18867 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18868 * passes.c (finish_optimization_passes): Only call
18869 finish_graph_dump_file if dfi->graph_dump_initialized.
18870 (execute_function_dump, pass_init_dump_file): Use
18871 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18873 2016-04-17 Tom de Vries <tom@codesourcery.com>
18875 PR tree-optimization/70256
18876 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18877 (debug_varmap): New function.
18879 2016-04-17 Tom de Vries <tom@codesourcery.com>
18882 * passes.c (pass_manager::register_pass): Propagate pflags.
18884 2016-04-17 Tom de Vries <tom@codesourcery.com>
18887 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18888 * passes.c (pass_manager::pass_manager): Declare and init p_start in
18889 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
18890 check if it's equal to p_start.
18891 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18893 2016-04-15 Jan Hubicka <jh@suse.cz>
18896 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18897 function does not bind to current def.
18898 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18899 handle conservatively calls to functions that does not need to bind
18901 (check_call): Update call of worse_state.
18902 (ignore_edge_for_nothrow): Update.
18903 (ignore_edge_for_pure_const): Likewise.
18904 (propagate_pure_const): Update calls to worse_state.
18905 (skip_function_for_local_pure_const): Reformat comments.
18907 2016-04-15 Jan Hubicka <jh@suse.cz>
18910 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18911 (cgraph_node::function_symbol): Likewise.
18912 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18913 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18914 (symtab_node::ultimate_alias_target): Add REF parameter.
18915 (symtab_node::binds_to_current_def_p): Declare.
18916 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18917 (cgraph_node::function_symbol): Likewise.
18918 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18919 (cgraph_node::get_availability): Likewise.
18920 (cgraph_edge::binds_to_current_def_p): New inline function.
18921 (varpool_node::get_availability): Add REF parameter.
18922 (varpool_node::ultimate_alias_target): Likewise.
18923 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18924 (symtab_node::binds_to_current_def_p): Likewise.
18925 * varpool.c (varpool_node::get_availability): Likewise.
18927 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18930 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18931 Fix mode size check.
18933 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18935 * BASE-VER: Set to 7.0.0.
18937 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
18939 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18941 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18943 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18944 architecture revisions.
18946 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
18948 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18949 * config/i386/i386.c (ix86_using_red_zone): No longer static.
18950 * config/i386/i386.md (stack decrement to push peepholes): Guard
18951 with !x86_using_red_zone ().
18953 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18956 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18957 to dump_generic_node.
18958 (NIY): Pass also flags to do_niy.
18960 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
18962 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18963 (simd_clone_vector_of_formal_parm_types)
18964 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18965 (simd_clone_mangle, simd_clone_create)
18966 (simd_clone_adjust_return_type, create_tmp_simd_array)
18967 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18968 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18969 (ipa_simd_modify_function_body, simd_clone_linear_addend)
18970 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18971 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18972 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18973 * omp-simd-clone.c: ... this new file.
18974 (simd_clone_vector_of_formal_parm_types): Make it static.
18975 * Makefile.in (OBJS): Add omp-simd-clone.o.
18977 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18980 * config/i386/sse.md: Use proper memory operand modifiers.
18983 2016-04-15 Richard Biener <rguenther@suse.de>
18984 Alan Modra <amodra@gmail.com>
18986 PR tree-optimization/70130
18987 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18988 when alignment stays not the same and no not use the realign
18991 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18994 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18995 direct move handlers for KFmode. Change TFmode handlers test from
18996 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18998 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19001 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19002 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19003 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19004 * tree-ssa-live.c (remove_unused_scope_block_p): When
19005 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19006 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19007 block_ultimate_origin is FUNCTION_DECL.
19008 (remove_unused_locals): If current_function_decl is
19009 polymorphic_ctor_dtor_p, pass initial true to
19010 remove_unused_scope_block_p' is_ctor_dtor_block.
19012 2016-04-14 Martin Sebor <msebor@redhat.com>
19017 * doc/extend.texi (Variable Length): Revert.
19019 2016-04-14 Marek Polacek <polacek@redhat.com>
19020 Jan Hubicka <hubicka@ucw.cz>
19023 * tree.c (verify_type): Disable the canonical type of main variant
19026 2016-04-14 Jason Merrill <jason@redhat.com>
19028 * cfgexpand.c, expr.c: Revert previous change.
19030 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19032 PR middle-end/70643
19033 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19034 when building a mem ref for the incoming reduction variable.
19036 2016-04-14 Richard Biener <rguenther@suse.de>
19038 PR tree-optimization/70614
19039 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19040 loop if the evolution dropped to chrec_dont_know.
19041 (interpret_condition_phi): Likewise.
19043 2016-04-14 Richard Biener <rguenther@suse.de>
19045 PR tree-optimization/70623
19046 * tree-ssa-pre.c (changed_blocks): Make global ...
19047 (compute_antic): ... local here. Move and fix worklist
19048 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19049 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19050 worklist handling, dump when ANTIC_IN changed.
19051 (compute_partial_antic_aux): Remove worklist handling.
19052 (init_pre): Do not compute post dominators. Add a comment about
19053 the CFG order chosen.
19054 (fini_pre): Do not free post dominators.
19056 2016-04-13 Martin Sebor <msebor@redhat.com>
19061 * doc/extend.texi (Variable Length): Document C++ specifics.
19063 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19066 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19067 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19068 eh edges have been purged.
19071 * tree-sra.c (create_access_replacement,
19072 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19074 * tree-pretty-print.c (dump_fancy_name): New function.
19075 (dump_decl_name, dump_generic_node): Use it.
19077 2016-04-13 Jason Merrill <jason@redhat.com>
19079 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19080 * expr.c (expand_expr_real_1): Likewise.
19082 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19084 * config/i386/i386.md (kunpckhi): Swap operands.
19085 (kunpcksi): Likewise.
19086 (kunpckdi): Likewise.
19087 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19088 (vec_pack_trunc_<mode>): Likewise.
19090 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19093 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19095 PR middle-end/70633
19096 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19097 gimplification turns some element into non-constant.
19100 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19101 * explow.c (convert_memory_address_addr_space_1): No longer static,
19102 add NO_EMIT argument and don't call convert_modes if true, pass
19103 it down recursively, remove break after return.
19104 (convert_memory_address_addr_space): Adjust caller.
19105 * simplify-rtx.c (simplify_unary_operation_1): Call
19106 convert_memory_address_addr_space_1 instead of convert_memory_address,
19107 if it returns NULL, don't simplify.
19109 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19112 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19114 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19116 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19117 Bump the upper SIMDLEN limits, so that if the return type or
19118 characteristic type if the return type is void can be passed in
19119 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19122 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19125 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19126 Do not use "=" constraint on an input constraint.
19127 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19128 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19129 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19130 generates (neg (abs ...)) instead of (abs ...).
19132 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19134 PR rtl-optimization/70596
19135 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19136 just invalidate LRA data and reset them. Adjust dump wording.
19138 2016-04-12 Martin Liska <mliska@suse.cz>
19141 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19143 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19145 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19146 max_loop_iterations_int.
19147 (tree_unswitch_outer_loop): Likewise.
19148 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19149 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19151 2016-04-12 Tom de Vries <tom@codesourcery.com>
19153 PR tree-optimization/68756
19154 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19155 instead of new_name.
19157 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19159 PR tree-optimization/70602
19160 * tree-sra.c (generate_subtree_copies): Don't write anything into
19161 constant pool decls.
19163 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19164 regardless whether there are depend clauses or not.
19166 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19169 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19170 target attribute and pragma from changing the -mfloat128
19171 and -mfloat128-hardware options.
19173 * doc/extend.texi (Additional Floating Types): Document PowerPC
19174 __float128 restrictions.
19176 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19179 * config/aarch64/driver-aarch64.c
19180 (aarch64_get_extension_string_for_isa_flags): New.
19181 (arch_extension): Rename to...
19182 (aarch64_arch_extension): ...This.
19183 (ext_to_feat_string): Rename to...
19184 (aarch64_extensions): ...This.
19185 (aarch64_core_data): Keep track of architecture extension flags.
19186 (cpu_data): Rename to...
19187 (aarch64_cpu_data): ...This.
19188 (aarch64_arch_driver_info): Keep track of architecture extension
19190 (get_arch_name_from_id): Rename to...
19191 (get_arch_from_id): ...This, change return type.
19192 (host_detect_local_cpu): Update and reformat for renames, handle
19193 extensions through common infrastructure.
19195 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19198 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19199 track of a canonical flag name.
19200 (all_extensions): Likewise.
19201 (arch_to_arch_name): Also track extension flags enabled by the arch.
19202 (all_architectures): Likewise.
19203 (aarch64_parse_extension): Move to here.
19204 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19206 (aarch64_rewrite_selected_cpu): Update for above change.
19207 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19208 are handled, such that the single explicit value enabled by an
19209 extension is kept seperate from the implicit values it also enables.
19210 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19212 (aarch64_parse_extension): New.
19213 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19214 here to config/aarch64/aarch64-protos.h.
19215 (aarch64_parse_extension): Move from here to
19216 common/config/aarch64/aarch64-common.c.
19217 (aarch64_option_print): Update.
19218 (aarch64_declare_function_name): Likewise.
19219 (aarch64_start_file): Likewise.
19220 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19221 the canonical flag for extensions.
19222 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19225 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19227 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19230 2016-04-09 Tom de Vries <tom@codesourcery.com>
19232 PR tree-optimization/68953
19233 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19234 first to last subscript.
19236 2016-04-09 Jakub Jelinek <jakub@redhat.com>
19238 PR tree-optimization/70586
19239 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19242 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
19246 PR tree-optimization/70373
19247 PR middle-end/70533
19248 PR middle-end/70534
19249 PR middle-end/70535
19250 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19251 clauses for acc parallel reductions as necessary. Error on those
19253 * omp-low.c (scan_sharing_clauses): Don't install variables which
19254 are used in acc parallel reductions.
19255 (lower_rec_input_clauses): Remove dead code.
19256 (lower_oacc_reductions): Add support for reference reductions.
19257 (lower_reduction_clauses): Remove dead code.
19258 (lower_omp_target): Don't remap variables appearing in acc parallel
19260 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19262 2016-04-08 Jakub Jelinek <jakub@redhat.com>
19264 PR middle-end/70593
19265 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19266 with multiple SSA_NAME defs, force the outputs other than first
19267 to be live before calling live_track_process_def on each output.
19269 PR rtl-optimization/70574
19270 * fwprop.c (forward_propagate_and_simplify): Don't add
19271 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19272 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19273 paradoxical subregs within *loc.
19275 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
19277 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
19278 -ftree-parallelize-loops={0,1}.
19279 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19280 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
19281 * config/ia64/hpux.h (LIB_SPEC): Likewise.
19282 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19283 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
19285 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
19288 * asan.c (instrument_derefs): If we get unknown location, extract it
19289 with EXPR_LOCATION.
19290 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
19292 2016-04-08 Tom de Vries <tom@codesourcery.com>
19294 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
19295 implicit firstprivate clause.
19297 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19300 * config/arm/thumb2.md (tst + branch-> lsls + branch
19301 peephole below *orsi_not_shiftsi_si): Require that condition
19302 register is dead after the peephole.
19303 (second peephole after the above): Likewise.
19305 2016-04-08 Alan Modra <amodra@gmail.com>
19308 * builtins.c (fold_builtin_classify): For IBM extended precision,
19309 look at just the high-order double to test for NaN.
19310 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
19311 test just the high double for Inf but both doubles for subnormal
19314 2016-04-07 Jakub Jelinek <jakub@redhat.com>
19316 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
19317 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
19318 node->simdclone->mask_mode != VOIDmode masks.
19319 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
19320 earlier, use it instead of node->simdclone.
19321 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19322 Set clonei->mask_mode.
19324 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
19327 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
19328 Pass it through to cp_parser_already_scoped_statement.
19329 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
19330 it through to cp_parser_statement.
19331 (cp_parser_statement): Pass IF_P through to
19332 cp_parser_iteration_statement.
19333 (cp_parser_pragma): Adjust call to
19334 cp_parser_iteration_statement.
19336 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
19339 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
19340 resolve a future -Wparentheses warning.
19341 * omp-low.c (scan_sharing_clauses): Likewise.
19342 * tree-parloops.c (eliminate_local_variables): Likewise.
19344 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
19346 PR rtl-optimization/70398
19347 * lra-constraints.c (process_address_1): Check zero scale and code
19348 for reloading with zero scale.
19350 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
19352 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
19353 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
19355 2016-04-06 Jakub Jelinek <jakub@redhat.com>
19357 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19358 Add support for AVX512F clones, include them by default for
19359 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
19360 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
19363 PR middle-end/70550
19364 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
19365 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
19366 firstprivate clauses.
19367 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
19368 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
19369 (lower_omp_target): Set TREE_NO_WARNING for
19370 non-addressable possibly uninitialized vars which are copied into
19371 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
19373 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
19375 * config/pa/predicates.md (integer_store_memory_operand): Accept
19376 REG+D operands with a large offset when reload_in_progress is true.
19377 (floating_point_store_memory_operand): Likewise.
19379 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19382 * match.pd (nested int casts): Limit to GIMPLE.
19384 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
19387 * ipa-devirt.c (maybe_record_node): Fix comment; use
19388 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
19390 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19392 PR rtl-optimization/70542
19393 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
19394 if there are any uses other than insn or debug insns.
19396 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
19397 Jakub Jelinek <jakub@redhat.com>
19399 PR tree-optimization/70509
19400 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
19401 Shift HOST_WIDE_INT_1U instead of 1.
19403 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
19405 PR tree-optimization/70509
19406 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
19407 of the vector base type for index.
19409 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
19412 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
19414 2016-04-05 Richard Biener <rguenther@suse.de>
19416 PR tree-optimization/70526
19417 * tree-sra.c (build_ref_for_offset): Use prev_base to
19418 extract the alias pointer type.
19420 2016-04-05 Richard Biener <rguenther@suse.de>
19422 * dse.c (struct store_info): Remove alias_set member.
19423 (struct read_info_type): Likewise.
19424 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19425 spill_deleted, clear_alias_set_lookup): Remove.
19426 (get_group_info): Remove dead base == NULL_RTX case.
19427 (dse_step0): Remove initialization of removed variables.
19428 (delete_dead_store_insn): Reomve alias set dumping.
19429 (free_read_records): Remove alias_set handling.
19430 (canon_address): Remove alias_set_out parameter.
19431 (record_store): Remove spill_alias_set, it's always zero.
19432 (check_mem_read_rtx): Likewise.
19433 (dse_step2): Rename from ...
19434 (dse_step2_nospill): ... this. Adjust.
19435 (scan_stores): Rename from ...
19436 (scan_stores_nospill): ... this.
19437 (scan_reads): Rename from ...
19438 (scan_reads_nospill): ... this.
19439 (scan_stores_spill, scan_reads_spill): Remove.
19440 (dse_step3_scan): Remove for_spills argument which is always false.
19441 (dse_step3): Likewise.
19442 (dse_step5): Rename from ...
19443 (dse_step5_nospill): ... this. Remove alias_set handling.
19444 (rest_of_handle_dse): Adjust.
19446 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19449 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19450 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19451 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19452 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19454 2016-04-05 Richard Biener <rguenther@suse.de>
19456 PR middle-end/70499
19457 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19458 non-register type temporaries into SSA.
19460 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
19463 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19464 calls when sanitizing.
19465 (possible_polymorphic_call_target_p): Fix formatting.
19467 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19468 Jakub Jelinek <jakub@redhat.com>
19470 PR middle-end/70457
19471 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19472 to ensure a call statement is compatible with a built-in's
19474 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19477 2016-04-04 Richard Biener <rguenther@suse.de>
19479 PR rtl-optimization/70484
19480 * rtl.h (canon_output_dependence): Declare.
19481 * alias.c (canon_output_dependence): New function.
19482 * dse.c (record_store): Use canon_output_dependence rather
19483 than canon_true_dependence.
19485 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19488 * cgraph.h (symtab_node::copy_visibility_from): New function.
19489 * symtab.c (symtab_node::copy_visibility_from): New function.
19490 * ipa-visibility.c (optimize_weakref): New function.
19491 (function_and_variable_visibility): Use it.
19493 2016-04-04 Martin Liska <mliska@suse.cz>
19496 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19497 value that is really in range handled by SBR instruction.
19498 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19499 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19500 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19502 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
19506 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19507 set, but not for SP_REG operands.
19509 2016-04-02 Martin Sebor <msebor@redhat.com>
19512 * fold-const.c (maybe_nonzero_address): New function.
19513 (fold_comparison): Call it. Fold equality and relational
19514 expressions involving null pointers.
19515 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19517 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
19519 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19520 the "Y" constraint (scalar FP 0.0 immediate).
19522 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19523 Add the "const_double" to the list of operand constraints.
19525 2016-04-01 Jakub Jelinek <jakub@redhat.com>
19527 PR rtl-optimization/70467
19528 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19529 If low word of the last operand is 0, just emit addition/subtraction
19532 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19535 * config/s390/s390.c (s390_expand_insv): Check for everything
19536 constant instead of just VOIDmode stuff.
19538 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19541 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19543 2016-04-01 Nathan Sidwell <nathan@acm.org>
19545 * tree.def (TRY_CATCH_EXPR): Correct documentation.
19547 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
19549 PR rtl-optimization/70461
19550 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19553 2016-03-31 Martin Liska <mliska@suse.cz>
19556 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19557 a tree value or an immediate integer value to a buffer
19558 that is eventually copied to a BRIG section.
19559 (emit_immediate_operand): Call the function here.
19560 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19561 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19562 of class' fields that are removed.
19563 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19564 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19565 m_brig_repr_size fields.
19567 2016-03-31 Martin Liska <mliska@suse.cz>
19570 * hsa-gen.c (hsa_function_representation::update_dominance): New
19572 (convert_addr_to_flat_segment): Likewise.
19573 (gen_hsa_memory_set): New alignment argument.
19574 (gen_hsa_ctor_assignment): Likewise.
19575 (gen_hsa_insns_for_single_assignment): Provide alignment
19576 to gen_hsa_ctor_assignment.
19577 (gen_hsa_insns_for_direct_call): Add new argument.
19578 (expand_lhs_of_string_op): New function.
19579 (expand_string_operation_builtin): Likewise.
19580 (expand_memory_copy): New function.
19581 (expand_memory_set): New function.
19582 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19583 (convert_switch_statements): Change signature.
19584 (generate_hsa): Use a return value of the function.
19585 (pass_gen_hsail::execute): Do not call
19586 convert_switch_statements here.
19587 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19588 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19589 (hsa_function_representation::update_dominance): New function.
19591 2016-03-31 Martin Liska <mliska@suse.cz>
19594 * hsa-brig.c (emit_directive_variable): Emit alignment
19595 according to hsa_symbol::m_align.
19596 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19597 (dump_hsa_symbol): Dump alignment of HSA symbols.
19598 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19599 (gen_hsa_addr_with_align): New function.
19600 (hsa_bitmemref_alignment): Use newly added function.
19601 (gen_hsa_insns_for_load): Likewise.
19602 (gen_hsa_insns_for_store): Likewise.
19603 (gen_hsa_memory_copy): New argument added.
19604 (gen_hsa_insns_for_single_assignment): Respect
19605 alignment for assignments processed via gen_hsa_memory_copy.
19606 (gen_hsa_insns_for_direct_call): Likewise.
19607 (gen_hsa_insns_for_return): Likewise.
19608 (gen_function_def_parameters): Set default alignment.
19609 * hsa.c (hsa_object_alignment): New function.
19610 (hsa_byte_alignment): Pasted function.
19611 * hsa.h (hsa_symbol::m_align): New field.
19613 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19615 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19616 scratch field for goto case.
19618 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
19620 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19622 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
19625 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19626 (scalar_chain::convert_insn): Call convert_op for reg
19627 moves to handle undefined registers.
19629 2016-03-31 Nathan Sidwell <nathan@acm.org>
19632 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19633 Assert we don't want to move backwards.
19635 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
19638 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19640 2016-03-31 Jakub Jelinek <jakub@redhat.com>
19642 PR rtl-optimization/70460
19643 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19644 with operand from REG_LABEL_OPERAND, instead substitute
19645 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19646 Don't do anything for REG_NON_LOCAL_GOTO jumps.
19648 2016-03-31 Martin Liska <mliska@suse.cz>
19650 * passes.c (execute_one_pass): Do not call
19651 todo_after for a discarded function.
19653 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19655 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19656 (no_cost, infinite_cost): Initialize the new field.
19657 (get_computation_cost_at): Record setup cost.
19658 (determine_use_iv_cost_address): Skip cost computation for sub
19659 uses if we can estimate it without losing accuracy.
19661 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19663 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19665 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19666 max_loop_iterations_int.
19667 (tree_unswitch_outer_loop): Likewise.
19668 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19669 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19671 2016-03-30 Richard Biener <rguenther@suse.de>
19673 PR middle-end/70450
19674 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19676 2016-03-30 Jakub Jelinek <jakub@redhat.com>
19679 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19680 in gen_blendm expander.
19682 2016-03-30 Nick Clifton <nickc@redhat.com>
19685 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19686 case where we are already provided with an SImode SUBREG.
19688 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
19691 * config/i386/i386.c (ix86_expand_epilogue): Properly check
19692 conflict between DRAP register and __builtin_eh_return.
19694 2016-03-30 Michael Matz <matz@suse.de>
19695 Richard Biener <rguenther@suse.de>
19698 * ipa-polymorphic-call.c (struct type_change_info): Change
19699 speculative to an unsigned allowing to limit the work we do.
19700 (csftc_abort_walking_p): New inline function..
19701 (check_stmt_for_type_change): Limit the number of may-defs
19702 skipped for speculative devirtualization to
19703 max-speculative-devirt-maydefs.
19704 * params.def (max-speculative-devirt-maydefs): New param.
19705 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19707 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
19710 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19713 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
19715 PR tree-optimization/59124
19716 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19717 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19719 2016-03-29 Jeff Law <law@redhat.com>
19721 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19723 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19725 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19728 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
19730 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19731 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19732 gcrt0.o if linking dynamically.
19734 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19737 * ipa-devirt.c (methods_equal_p): New function.
19738 (compare_virtual_tables): Use it.
19739 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19740 * cgraphclones.c (clone_function_name_1): Use
19741 symbol_table::symbol_suffix_separator.
19742 * coverage.c (build_var): Likewise.
19743 * symtab.c (symbol_table::symbol_suffix_separator): New.
19745 2016-03-29 Jakub Jelinek <jakub@redhat.com>
19747 PR rtl-optimization/70429
19748 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19749 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19750 mode != result_mode.
19753 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19755 PR tree-optimization/70405
19756 * ssa-iterators.h (num_imm_uses): Add missing braces.
19758 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
19760 PR rtl-optimization/68695
19761 * ira-color.c (allocno_copy_cost_saving): New.
19762 (improve_allocation): Use it.
19764 2016-03-29 Richard Henderson <rth@redhat.com>
19766 PR middle-end/70355
19767 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19769 2016-03-29 Richard Biener <rguenther@suse.de>
19771 PR middle-end/70424
19772 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19773 use alignment returned by get_pointer_alignment_1 if it is
19774 bigger than BITS_PER_UNIT.
19775 * builtins.c (get_pointer_alignment_1): Do not return true
19776 for alignment extracted from SSA info.
19778 2016-03-28 James Bowman <james.bowman@ftdichip.com>
19780 * config/ft32/ft32.opt (mnodiv): New.
19781 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19782 * doc/invoke.texi (FT32 Options -mnodiv): New.
19784 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
19787 * config/i386/i386.md (define_split, andn): Fix modes.
19789 2016-03-26 Richard Biener <rguenther@suse.de>
19790 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19793 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19795 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19796 as 2nd argument to cl_optimization_restore().
19798 2016-03-25 Richard Henderson <rth@redhat.com>
19801 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19802 * config/aarch64/aarch64-protos.h: Declare it.
19803 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19805 2016-03-25 Alan Modra <amodra@gmail.com>
19808 * config/rs6000/constraints.md (j): Simplify.
19809 * config/rs6000/predicates.md (easy_fp_constant): Exclude
19811 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19812 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19813 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19814 in all constraint alternatives.
19815 (movtd_64bit_nodm): Delete "j" constraint alternative.
19817 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19819 * tree-ssa-propagate.c: Enhance docs for
19820 SSA_PROP_NOT_INTERESTING.
19822 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19824 * doc/extend.texi: Fix typo in documentation to pure attribute.
19826 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
19829 * config/pa/pa.md (bswapdi2): Use a scratch register.
19831 2016-03-24 Richard Henderson <rth@redhat.com>
19833 PR middle-end/69845
19834 * fold-const.c (extract_muldiv_1): Correct test for multiplication
19837 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
19839 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19840 using ix86_expand_binary_operator instead of gen_andsi3.
19842 2016-03-24 Richard Biener <rguenther@suse.de>
19844 PR tree-optimization/70396
19845 * tree-vect-stmts.c (vectorizable_comparison): Use
19846 get_vectype_for_scalar_type.
19848 2016-03-24 Richard Biener <rguenther@suse.de>
19850 PR middle-end/70370
19851 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19852 with register bases.
19854 2016-03-24 Richard Biener <rguenther@suse.de>
19856 PR tree-optimization/70372
19857 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19858 build_all_ones_cst to also handle vector types correctly.
19860 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19863 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19866 2016-03-23 Marek Polacek <polacek@redhat.com>
19869 * doc/invoke.texi: Document -Wignored-attributes.
19871 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19873 PR tree-optimization/69042
19874 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19875 parameter from 30 to 40.
19877 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19879 PR tree-optimization/69042
19880 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19881 for use with constant offset stripped in base.
19883 2016-03-23 Richard Biener <rguenther@suse.de>
19885 PR middle-end/70251
19886 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19887 mode compatibility check.
19888 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19890 2016-03-23 Jeff Law <law@redhat.com>
19892 PR tree-optimization/64058
19893 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19895 (struct ssa_conflicts): Move up earlier in the file.
19896 (conflicts_, var_map_): New static variables.
19897 (initialize_conflict_count): New function to initialize the
19898 CONFLICT_COUNT field for each conflict pair.
19899 (compare_pairs): Lazily initialize the conflict count and use it
19900 as the first tie-breaker.
19901 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
19902 and wipe conflicts_ and map_ around the call to qsort. Remove
19903 special case for 2 coalesce pairs.
19904 * bitmap.c (bitmap_count_unique_bits): New function.
19905 (bitmap_count_bits_in_word): New function, extracted from
19907 (bitmap_count_bits): Use bitmap_count_bits_in_word.
19908 * bitmap.h (bitmap_count_unique_bits): Declare it.
19910 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
19913 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19914 transparent alias chain for decl assembler name.
19915 * config/sol2.c (solaris_assemble_visibility): Likewise.
19917 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19919 * config/arm/arm1020e.md (1020call_op): Reduce reservation
19921 (v10_fdivs): Likewise.
19922 (v10_fdivd): Likewise.
19924 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19927 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19928 to not call fclose twice on file.
19930 2016-03-23 Jakub Jelinek <jakub@redhat.com>
19932 PR tree-optimization/70354
19933 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19934 oprnd0 is wider than oprnd1 and there is a cast from the wider
19935 type to oprnd1, mask it with the mask of the narrower type.
19938 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19939 Optimize TARGET_STV splitters, if high or low word of last argument
19942 2016-03-22 Jeff Law <law@redhat.com>
19945 tree-ssa-threadbackward.c
19946 (fsm_find_control_statement_thread_paths): Correctly distinguish
19947 between old style jump threads vs FSM jump threads.
19949 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19952 * config/i386/i386.c (scalar_chain::convert_op): Support
19953 uninitialized register usage case.
19955 2016-03-22 Richard Biener <rguenther@suse.de>
19957 PR middle-end/70251
19958 * genmatch.c (gen_transform): Adjust last parameter to a three-state
19960 (capture::gen_transform): ... to change behavior when substituting
19961 a condition into cond or not-cond expr context.
19962 (dt_simplify::gen_1): Adjust.
19963 * gimple-match-head.c: Include gimplify.h for unshare_expr.
19964 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19965 last change and instead change to
19966 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19967 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19969 2016-03-22 Anthony Green <green@moxielogic.com>
19971 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
19972 issue for moxiebox targets.
19973 (CC1PLUS_SPEC): Ditto.
19975 2016-03-22 Richard Biener <rguenther@suse.de>
19977 PR middle-end/70333
19978 * fold-const.c (extract_muldiv_1): Properly perform multiplication
19981 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19983 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19985 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19988 * config/i386/i386.c (def_builtin): Handle
19989 OPTION_MASK_ISA_AVX512VL to be and-ed with other
19991 (const struct builtin_description bdesc_special_args[]):
19992 Remove duplicate ISA bits.
19994 2016-03-22 Jakub Jelinek <jakub@redhat.com>
19997 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19998 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
19999 in a way that works also for AVX512BW.
20002 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20003 instead of source if operands[1] is xmm16 and above and
20004 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20005 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20008 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20009 on assign if (*from_p) is a comparison, set it to
20010 TREE_NO_WARNING (*from_p).
20012 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20014 PR middle-end/70326
20015 * lra.c (restore_scratches): Ignore deleted insns.
20017 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20018 Jakub Jelinek <jakub@redhat.com>
20020 PR tree-optimization/70317
20021 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20024 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20027 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20028 of ix86_expand_move.
20030 (movti): Use general_operand for operand 1 predicate.
20032 2016-03-21 Martin Liska <mliska@suse.cz>
20034 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20036 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20038 2016-03-21 Martin Liska <mliska@suse.cz>
20041 * ipa-icf.c (sem_function::parse): Skip static
20042 constructors and destructors.
20044 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20047 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20048 function-like macro, peek following token(s) if it is followed
20049 by CPP_OPEN_PAREN token with optional padding in between, and
20050 if not, don't treat it like a macro.
20052 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20053 Alexander Monakov <amonakov@ispras.ru>
20055 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20056 for the stabs debug format.
20058 2016-03-21 Richard Biener <rguenther@suse.de>
20060 PR tree-optimization/70310
20061 * tree-vect-generic.c (expand_vector_condition): Fold the built
20064 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20067 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20068 Block third alternative for AVX-512VL target,
20070 2016-03-21 Martin Liska <mliska@suse.cz>
20073 * hsa-brig.c (emit_function_directives): Mark unemitted
20074 global variables for emission.
20075 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20076 (get_symbol_for_decl): Likewise.
20077 * hsa.h (struct hsa_symbol): New flag.
20079 2016-03-21 Richard Biener <rguenther@suse.de>
20081 PR tree-optimization/70288
20082 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20083 we do not estimate unsimplified all-constant conditionals or
20084 switches as optimized away.
20086 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20088 PR rtl-optimization/69102
20089 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20090 when we have a readonly dependency context.
20092 2016-03-18 Jeff Law <law@redhat.com>
20094 PR rtl-optimization/70263
20095 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20096 (update_equiv_regs): When trying to move a store to after the insn
20097 that sets the source of the store, make sure the store occurs after
20098 the insn that sets the source of the store. When successful note
20099 the REG_EQUIV note created in the dump file.
20101 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20102 Bernd Schmidt <bschmidt@redhat.com>
20104 * doc/extend.texi: Document more potential problems with basic asms.
20106 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20108 PR rtl-optimization/70278
20109 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20112 2016-03-18 Jason Merrill <jason@redhat.com>
20114 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20116 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20118 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20119 values to 128b regs.
20121 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20123 PR tree-optimization/70252
20124 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20125 boolean vector has a proper number of elements.
20126 (supportable_narrowing_operation): Likewise.
20128 2016-03-18 Tom de Vries <tom@codesourcery.com>
20131 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20133 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20135 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20136 instead of replace_rtx for DEBUG_INSNs.
20138 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20140 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20141 load type reservations.
20143 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20146 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20147 define_constraint for "Q" and "T" constraints.
20149 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20151 Tweak the pipeline model for Exynos M1
20153 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20156 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20159 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20160 where one or both locations aren't within a line_map.
20162 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20165 * opts.c (finish_options): Don't set flag_pie to the default if
20166 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20169 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20171 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20172 true as ALL_REGS argument to replace_rtx.
20174 2016-03-17 Richard Biener <rguenther@suse.de>
20177 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20180 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20183 * rtl.h (replace_rtx): Add ALL_REGS argument.
20184 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20185 equality and assert mode is the same, instead of just rtx pointer
20187 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20188 true as ALL_REGS argument to replace_rtx.
20190 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20192 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20193 for boolean vector with vector mode only.
20194 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20196 2016-03-17 Nick Clifton <nickc@redhat.com>
20199 * config/rx/rx.c (rx_print_integer): Print negative constants in
20202 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20205 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20207 2016-03-16 Richard Henderson <rth@redhat.com>
20208 Richard Biener <rguenth@suse.de>
20210 PR middle-end/70240
20211 PR middle-end/68215
20213 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20214 first operand as is_gimple_condexpr.
20216 PR middle-end/70240
20217 PR middle-end/68215
20219 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20220 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20221 Do not gimplify the result.
20222 (do_unop): Adjust call to tree_vec_extract.
20223 (do_binop): Likewise.
20224 (do_compare): Likewise.
20225 (do_plus_minus): Likewise.
20226 (do_negate): Likewise.
20227 (expand_vector_condition): Likewise.
20228 (do_cond): Likewise.
20230 2016-03-16 Richard Henderson <rth@redhat.com>
20233 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20234 (aarch64_classify_address): Use it.
20235 (aarch64_legitimize_address): Force all subexpressions of PLUS
20236 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
20238 2016-03-16 Jakub Jelinek <jakub@redhat.com>
20239 Richard Biener <rguenth@suse.de>
20242 * rtlanal.c (replace_rtx): For REG, if from is a REG,
20243 return to even if only REGNO is equal, and assert
20246 2016-03-11 Jeff Law <law@redhat.com>
20248 PR rtl-optimization/70224
20249 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20251 2016-03-16 Richard Henderson <rth@redhat.com>
20253 PR middle-end/70199
20254 * function.h (struct function): Add has_forced_label_in_static.
20255 * gimplify.c (force_labels_r): Set it.
20256 * lto-streamer-in.c (input_struct_function_base): Read it.
20257 * lto-streamer-out.c (output_struct_function_base): Write it.
20258 * tree-inline.c (has_label_address_in_static_1): Remove.
20259 (copy_forbidden): Remove fndecl parameter; test
20260 has_forced_label_in_static.
20261 (inline_forbidden_p): Update call to copy_forbidden.
20262 (tree_versionable_function_p): Likewise.
20263 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20264 (chkp_versioning): Likewise.
20265 * tree-inline.h (copy_forbidden): Update decl.
20267 2016-03-16 Marek Polacek <polacek@redhat.com>
20270 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20271 function being thunked if the result type doesn't have fixed size.
20272 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20273 doesn't have fixed size.
20275 2016-03-16 Bin Cheng <bin.cheng@arm.com>
20277 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
20278 reporting malformed loop nest.
20280 2016-03-16 Tom de Vries <tom@codesourcery.com>
20283 * ipa-devirt.c (possible_polymorphic_call_targets): Move
20284 nodes.length () == 1 test to before first nodes[0] access.
20286 2016-03-16 Tom de Vries <tom@codesourcery.com>
20288 PR tree-optimization/68715
20289 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
20290 single_pred_p test.
20292 2016-03-16 Tom de Vries <tom@codesourcery.com>
20294 PR tree-optimization/68809
20295 * graphite-scop-detection.c (same_close_phi_node): Test if result types
20298 2016-03-16 Carlos O'Donell <carlos@redhat.com>
20299 Sandra Loosemore <sandra@codesourcery.com>
20301 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
20302 on leaf attribute. Mention ELF interposition problems.
20304 2016-03-16 Alan Modra <amodra@gmail.com>
20306 PR rtl-optimization/69195
20307 PR rtl-optimization/47992
20308 * ira.c (indirect_jump_optimize): Ignore artificial defs.
20311 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
20314 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
20316 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20318 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
20320 2016-03-15 Jakub Jelinek <jakub@redhat.com>
20322 PR rtl-optimization/70222
20323 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
20324 optimization if mode is different from result_mode, queue up masking
20325 of the result in outer_op. Formatting fix.
20327 PR middle-end/70239
20328 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
20331 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20333 PR rtl-optimization/69032
20334 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
20335 looping backwards over basic block insns.
20337 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20340 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
20341 to non-speculative when propagating trap bits.
20343 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20345 PR rtl-optimization/63384
20346 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
20347 DEBUG_INSN_P insns.
20349 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
20352 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
20353 factored out from ...
20354 (sched_analyze_insn): ... here.
20355 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
20356 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
20357 get_implicit_reg_pending_clobbers in it.
20358 (setup_id_reg_sets): Use setup_id_implicit_regs.
20359 (deps_init_id): Ditto.
20361 2016-03-15 Tom de Vries <tom@codesourcery.com>
20364 * cgraph.c (cgraph_node::get_body): Save, reset and restore
20366 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
20367 execute_function_dump.
20368 (execute_one_pass): Don't dump function if it will be dumped after ipa
20371 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
20373 * genrecog.c (match_pattern_2): If pred is NULL don't call
20374 safe_predicate_mode on it.
20376 2016-03-14 Jakub Jelinek <jakub@redhat.com>
20378 PR middle-end/70219
20379 * lra-constraints.c (delete_move_and_clobber): Change assertion
20380 to also allow dregno == 0.
20382 2016-03-14 Richard Henderson <rth@redhat.com>
20385 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
20386 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
20387 (reassociate_bb): Use optimize_vec_cond_expr; avoid
20388 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
20391 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
20394 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
20396 (lra_create_live_ranges_1): initialize hard register biggest_mode to
20398 * lra-constraints.c (split_reg): For hard regs, try to find the
20399 biggest single-register mode used in the function.
20401 2016-03-14 Richard Biener <rguenther@suse.de>
20403 PR tree-optimization/56365
20404 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
20405 constants to compare against.
20407 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
20410 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
20411 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
20412 (define_split for the GPR case): Use int_reg_operand instead of
20413 gpc_reg_operand for the output.
20415 2016-03-14 Tom de Vries <tom@codesourcery.com>
20417 PR tree-optimization/70045
20418 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
20419 create_empty_if_region_on_edge argument.
20421 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
20423 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
20424 (STACK_CHECK_PROTECT): Likewise.
20425 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20426 (STACK_CHECK_PROTECT): Likewise.
20427 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20428 (STACK_CHECK_PROTECT): Likewise.
20429 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20430 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20431 (STACK_CHECK_PROTECT): Likewise.
20433 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
20435 PR rtl-optimization/69307
20436 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20437 registers in modes that span more than one register.
20439 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
20442 * lra-constraints.c (delete_move_and_clobber): New.
20443 (remove_inheritance_pseudos): Use it.
20445 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
20448 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20449 the libcall is LCT_THROW.
20450 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20451 for the checking routine.
20453 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20456 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20457 optimization if we have direct move.
20458 (roundu32<mode>2_fprs): Likewise.
20460 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
20463 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20465 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20466 Arguments swapped. All callers changed. Take reg_renumber into
20467 account, and Calculate and compare register ranges for hard regs.
20469 2016-03-11 Jeff Law <law@redhat.com>
20471 PR tree-optimization/70190
20472 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20473 Handle cases where we can not extract the taken edge, even though we
20474 found a constant value.
20476 PR tree-optimization/64058
20477 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20478 (num_coalesce_pairs): Move up earlier in file.
20479 (find_coalesce_pair): Initialize the INDEX field for each pair
20481 (compare_pairs): No longer sort on the elements in each pair.
20482 Instead break ties with the index of the coalesce pair.
20484 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20487 * config/aarch64/aarch64-protos.h
20488 (aarch64_save_restore_target_globals): New prototype.
20489 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20490 Call the above when popping pragma.
20491 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20493 (aarch64_set_current_function): Rewrite using the above.
20495 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20497 PR tree-optimization/70177
20498 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20499 (extract_ops_from_tree): ... this. In the 2 argument
20500 overload remove _1 suffix.
20501 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20502 (extract_ops_from_tree): ... this.
20503 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20505 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20506 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20507 extract_ops_from_tree instead of 2 operand one.
20509 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
20511 PR tree-optimization/70013
20512 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20513 for constant-pool entries.
20515 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20517 PR rtl-optimization/70174
20518 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20519 followed by gen_lowpart on force_reg instead of just gen_lowpart.
20521 PR tree-optimization/70169
20522 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20523 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
20526 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
20527 Jakub Jelinek <jakub@redhat.com>
20530 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20531 of uninitialized values.
20533 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20535 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20537 ("*trunctddd2"): New pattern definition.
20538 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20541 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20543 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20544 definitions for BFP and DFP rounding modes.
20545 ("fixuns_truncdddi2", "fixuns_trunctddi2")
20546 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20547 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20548 ("fix_trunctf<mode>2"): Use the new constants instead of magic
20551 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20553 * config/s390/constraints.md: Adjust comment.
20554 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
20555 s390_decompose_addrstyle_without_index.
20556 * config/s390/predicates.md (shift_count_or_setmem_operand):
20557 Rename to setmem_operand.
20558 * config/s390/s390-protos.h
20559 (s390_decompose_shift_count): Rename to
20560 s390_decompose_addrstyle_without_index.
20561 * config/s390/s390.c (s390_decompose_shift_count)
20562 (s390_mem_constraint, print_shift_count_operand)
20563 (print_operand_address, print_operand): Rename
20564 s390_decompose_shift_count to
20565 s390_decompose_addrstyle_without_index and rename
20566 print_shift_count_operand to print_addrstyle_operand troughout the
20568 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20569 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20570 Rename shift_count_or_setmem_operand to setmem_operand.
20571 * config/s390/vx-builtins.md ("vec_insert<mode>")
20572 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20575 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20578 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20579 Handle overlapping retval and newval.
20581 2016-03-10 Nick Clifton <nickc@redhat.com>
20584 * config/aarch64/aarch64.c
20585 (aarch64_override_options_after_change_1): When forcing
20586 flag_omit_frame_pointer to be true, use a special value that can
20587 be detected if this function is called again, thus preventing
20588 flag_omit_leaf_frame_pointer from being forced to be false.
20590 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20592 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20593 Set x_flag_omit_leaf_frame_pointer when handling
20594 -momit-leaf-frame-pointer.
20596 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20599 * cgraph.c (cgraph_node::dump): Dump split_part and
20600 indirect_call_target.
20601 * cgraph.h (cgraph_node): Add indirect_call_target flag.
20602 * ipa.c (has_addr_references_p): Cleanup.
20603 (is_indirect_call_target_p): New.
20604 (walk_polymorphic_call_targets): Do not mark virtuals that may be
20605 called indirectly as local.
20606 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20608 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20611 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20612 on cxa_pure_virtual.
20614 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20617 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20619 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20622 * tree.c (need_assembler_name_p): Only record main variant type names.
20624 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20627 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20628 Always define to 0 or 1.
20629 (TARGET_FIX_ERR_A53_843419): New macro.
20630 * config/aarch64/aarch64-elf-raw.h
20631 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20632 * config/aarch64/aarch64-linux.h: Likewise.
20633 * config/aarch64/aarch64.c
20634 (aarch64_override_options_after_change_1): Do not default
20635 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20637 (aarch64_attributes): Handle fix-cortex-a53-843419.
20638 (aarch64_can_inline_p): Likewise.
20639 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20641 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
20642 Jakub Jelinek <jakub@redhat.com>
20644 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20645 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20646 DECL_COMMONS if flag_unconstrained_commons is set.
20647 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20648 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20649 (funconstrained-commons): Document.
20651 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20653 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20654 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20656 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
20658 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20659 has a proper number of elements.
20661 2016-03-10 Alan Modra <amodra@gmail.com>
20663 PR rtl-optimization/69195
20664 PR rtl-optimization/47992
20665 * ira.c (recorded_label_ref): Delete.
20666 (update_equiv_regs): Return void.
20667 (indirect_jump_optimize): New function.
20668 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20669 before regstat_compute_ri. Don't rebuild_jump_labels here.
20670 Delete update_regstat.
20672 2016-03-10 Richard Biener <rguenther@suse.de>
20674 PR tree-optimization/70128
20675 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20676 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20678 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20680 PR tree-optimization/70152
20681 * tree-sra.c (replace_removed_params_ssa_names): Copy over
20682 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20685 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20686 instead of gen_sse2_loadlpd.
20687 * config/i386/sse.md (*vec_concatv2df): Rename to...
20688 (vec_concatv2df): ... this.
20690 PR tree-optimization/70127
20691 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20693 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20697 * diagnostic-show-locus.c (compatible_locations_p): New function.
20698 (layout::layout): Sanitize ranges using compatible_locations_p.
20700 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20704 * diagnostic-show-locus.c (layout_range::layout_range): Replace
20705 location_range param with three const expanded_locations * and a
20707 (layout::layout): Replace call to
20708 rich_location::lazily_expand_location with get_expanded_location.
20709 Extract the range and perform location expansion here, passing
20710 the results to the layout_range ctor.
20711 * diagnostic.c (source_range::debug): Delete.
20712 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20713 of rich_location::get_expanded_location.
20714 * gcc-rich-location.c (get_range_for_expr): Delete.
20715 (gcc_rich_location::add_expr): Reimplement to avoid the
20716 rich_location::add_range overload that took a location_range,
20717 passing a location_t instead.
20719 2016-03-09 Richard Biener <rguenther@suse.de>
20720 Jakub Jelinek <jakub@redhat.com>
20722 PR tree-optimization/70138
20723 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20724 Also skip vect_double_reduction_def.
20726 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20729 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20730 if the operand is "m".
20732 2016-03-09 Nathan Sidwell <nathan@acm.org>
20734 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20736 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20738 * config/i386/i386.c (processor_target_table): Fix cost table
20739 intialization order for znver1.
20741 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20743 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20744 - becuase -> because.
20745 * ipa-reference.c (ignore_module_statics): Likewise.
20746 * cgraph.c (cgraph_node::get_body): Likewise.
20747 * ipa-inline.c (early_inliner): Likewise.
20748 * ipa-devirt.c (types_same_for_odr): Likewise.
20749 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20750 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20752 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754 * tree-ssa-math-opts.c: Fix typo in comment.
20756 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20759 * config/i386/i386.c (scalar_chain::make_vector_copies,
20760 scalar_chain::convert_reg): Call end_sequence in between
20761 get_insns and emit_conversion_insns rather than after both
20764 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
20767 * config/i386/i386.h (machine_function): Add
20768 pc_thunk_call_expanded flag.
20769 (ix86_pc_thunk_call_expanded): New define.
20770 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20771 (*set_got): Rename insn pattern from set_got.
20772 (*set_got_labelled): Rename inst pattern from set_got_labelled.
20773 * config/i386/i386.c (ix86_compute_frame_layout): Use
20774 ix86_pc_thunk_call_expanded to prevent red-zone.
20776 2016-03-07 Martin Jambor <mjambor@suse.cz>
20778 * hsa.h (hsa_get_ctor_statements): Declare.
20779 (hsa_get_dtor_statements): Likewise.
20780 (hsa_get_kernel_dispatch_type): Likewise.
20781 * hsa.c (hsa_get_ctor_statements): New function.
20782 (hsa_get_dtor_statements): Likewise.
20783 (hsa_get_kernel_dispatch_type): Likewise.
20784 * hsa-brig.c (hsa_cdtor_statements): Removed.
20785 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20786 hsa_get_dtor_statements.
20787 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20788 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20790 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20792 * config/arm/arm-cores.def (cortex-r8): New.
20793 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20794 * config/arm/arm-tune.md: Likewise.
20795 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20797 2016-03-07 Martin Sebor <msebor@redhat.com>
20799 PR rtl-optimization/19705
20800 * doc/invoke.texi (Options That Control Optimization): Clarify
20801 -fno-branch-count-reg.
20803 2016-02-26 Richard Biener <rguenther@suse.de>
20804 Jeff Law <law@redhat.com>
20806 PR tree-optimization/69740
20807 * cfghooks.c (remove_edge): Request loop fixups if we delete
20808 an edge that might turn an irreducible loop into a natural
20810 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20811 Move after definition of loops_state_clear.
20813 2016-03-07 Bin Cheng <bin.cheng@arm.com>
20815 PR rtl-optimization/69052
20816 * rtlanal.c (commutative_operand_precedence): Set higher precedence
20819 2016-03-07 Tom de Vries <tom@codesourcery.com>
20821 PR tree-optimization/70116
20822 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20823 is_tm_ending stmts and ubsan/asan internal functions.
20824 (find_duplicate): Use it. Don't test is_tm_ending here.
20826 2016-03-07 Richard Biener <rguenther@suse.de>
20828 PR tree-optimization/70115
20829 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20830 (propagate_constants_for_unrolling): Use replace_uses_by.
20832 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
20834 PR middle-end/69916
20835 * omp-low.c (struct oacc_loop): Add ifns.
20836 (new_oacc_loop_raw): Initialize it.
20837 (finish_oacc_loop): Clear mask & flags if no ifns.
20838 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20839 (oacc_loop_xform_loop): Add ifns arg & adjust.
20840 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20842 2016-03-07 Richard Henderson <rth@redhat.com>
20845 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20846 (insert_value_copy_on_edge): Likewise.
20848 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20850 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20852 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20855 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20857 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20859 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20861 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20863 Fix sseimul type attribute.
20864 * config/i386/znver1.md
20865 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20866 znver1_sseimul_avx256_load) : Fix the type attribute.
20867 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20868 pipe usage and latency.
20870 2016-03-05 Jakub Jelinek <jakub@redhat.com>
20873 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20874 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20877 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20880 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20882 PR rtl-optimization/69941
20883 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20884 the reg share its mode.
20886 2016-03-04 Jeff Law <law@redhat.com>
20888 PR tree-optimization/69196
20889 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20890 If the both SSA_NAMEs are anonymous, then consider them unassociated
20891 and include the PHI in the statement count.
20893 2016-03-05 Tom de Vries <tom@codesourcery.com>
20895 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20896 construct in oacc routine. Check for oacc region in oacc routine.
20898 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20901 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
20902 2016-02-22 changes, instead don't recurse if RECUR is already true.
20903 Don't change *dynamic_check if RECUR. Adjust recursive caller
20904 to pass true to the new argument.
20905 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20908 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20909 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20911 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
20913 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20915 PR rtl-optimization/57676
20916 * lra-assigns.c (lra_assign): Guard test for maximum iterations
20917 with flag_checking.
20919 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
20921 * tree-vect-patterns.c (search_type_for_mask): Handle
20922 comparison of booleans.
20924 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20926 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20930 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20931 all other ops that have dw_val_class_die_ref operands,
20932 and DW_OP_GNU_entry_value.
20934 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20936 PR rtl-optimization/69904
20937 * config/arm/arm.c (arm_cannot_copy_insn_p):
20938 Return true for load-exclusive instructions.
20940 2016-03-03 Jakub Jelinek <jakub@redhat.com>
20943 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20944 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20945 the pattern no matter if it is used just by non-pattern, pattern
20947 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20948 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20949 oprnd1 def_stmt is in pattern, don't look through it.
20951 2016-03-03 Marek Polacek <polacek@redhat.com>
20953 PR middle-end/70050
20954 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20956 2016-03-03 Martin Liska <mliska@suse.cz>
20958 PR tree-optimization/70043
20959 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20960 previous statement if we see a debug statement.
20962 2016-03-03 Richard Biener <rguenther@suse.de>
20964 PR tree-optimization/55936
20965 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20966 parameter and guard unsafe equivalence use.
20967 (vrp_evaluate_conditional_warnv_with_ops): Always use
20968 safe equivalences but not via the quadratic compare_names
20971 2016-03-03 Michael Collison <michael.collison@linaro.org>
20974 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20975 for operand 1 to s_register_operand. Change predicate for operand
20976 2 to arm_not_immediate_operand.
20978 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
20980 * doc/tm.texi: Regenerated.
20982 2016-03-02 Richard Henderson <rth@redhat.com>
20985 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20986 simplification when all args are positive non-fixed registers.
20988 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20990 * target.def (lra_p): Specify that new ports should use LRA.
20992 2016-03-02 Jakub Jelinek <jakub@redhat.com>
20995 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20996 gimplify_type_sizes the type they refer to.
20997 (omp_notice_variable): Handle reference vars to VLAs.
20998 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20999 reference to VLA decls in the second pass instead of first pass.
21001 2016-03-02 Tom de Vries <tom@codesourcery.com>
21003 PR tree-optimization/68659
21004 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21005 new_expr == NULL_TREE.
21006 (get_new_name): Handle ADDR_EXPR.
21008 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21010 PR rtl-optimization/69052
21011 * loop-invariant.c (canonicalize_address): New function.
21012 (inv_can_prop_to_addr_use): Check validity of address expression
21013 which is canonicalized by above function.
21015 2016-03-02 Alan Modra <amodra@gmail.com>
21018 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21021 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21024 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21025 (*movhi_internal): Put mask moves from and to memory separately
21026 from moves from/to GPRs.
21028 2016-03-02 Richard Biener <rguenther@suse.de>
21030 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21031 GENERIC expressions in GIMPLE.
21033 2016-03-02 Richard Biener <rguenther@suse.de>
21035 * config/i386/i386.c (type_natural_mode): Fix typo.
21037 2016-03-02 Nick Clifton <nickc@redhat.com>
21039 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21041 2016-03-02 Richard Biener <rguenther@suse.de>
21042 Uros Bizjak <ubizjak@gmail.com>
21045 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21047 2016-03-02 Richard Biener <rguenther@suse.de>
21049 PR middle-end/67278
21050 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21052 2016-03-02 Marek Polacek <polacek@redhat.com>
21055 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21056 "is promoted to" warning.
21058 2016-03-01 DJ Delorie <dj@redhat.com>
21060 * config.gcc: Deprecate mep-*.
21062 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21064 PR middle-end/70025
21065 * lra-constraints.c (regno_val_use_in): New.
21066 (match_reload): Use it instead of regno_use_in.
21068 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21070 PR rtl-optimization/70007
21071 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21072 references present in REG_EQUAL notes attached to non-SET patterns.
21074 2016-03-01 Jeff Law <law@redhat.com>
21076 PR tree-optimization/69196
21077 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21078 Appropriately clamp the number of statements to copy when the
21079 thread path does not traverse a loop backedge.
21081 PR tree-optimization/69196
21082 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21083 Do count some PHIs in the thread path against the insn count. Decrease
21084 final statement count by one as the control statement in the last
21085 block will get removed. Remove special cased code for handling PHIs
21088 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21091 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21092 asm dialect alternatives to explicit GOTPCREL calls.
21094 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21097 * ira.c (do_reload): Issue warning for generic stack checking here...
21098 * reload1.c (reload): ...instead of here and streamline it.
21100 2016-03-01 Nick Clifton <nickc@redhat.com>
21102 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21104 2016-03-01 Richard Biener <rguenther@suse.de>
21106 PR tree-optimization/69983
21107 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21108 types and fall back to operand_equal_p.
21110 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21113 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21115 * config/s390/constraints.md ("jm8"): New constraint.
21116 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21118 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21120 ("*setmem_long<setmem_and>"): New pattern.
21121 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21123 ("*setmem_long_31z<setmem_and>"): New pattern.
21124 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21125 New substitution rules with the required attributes.
21128 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21131 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21133 * gensupport.c (process_substs_on_one_elem): Split loop to
21134 complete mark_operands_used_in_match_dup on all expressions in the
21136 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21137 and remove function.
21139 2016-03-01 Richard Biener <rguenther@suse.de>
21141 PR middle-end/70022
21142 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21143 vector BIT_FIELD_REF extract.
21145 2016-03-01 Richard Biener <rguenther@suse.de>
21147 PR tree-optimization/69994
21148 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21150 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21152 PR tree-optimization/69956
21153 * tree-vect-stmts.c (supportable_widening_operation): Support
21154 multi-step conversion of boolean vectors.
21155 (supportable_narrowing_operation): Likewise.
21157 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21159 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21162 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21164 * config/s390/subst.md (DSI_VI): New mode iterator.
21165 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21166 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21167 the insn definition.
21168 ("*vec_set<mode>"): Change predicate and add alternative to
21169 support only either register or const_int operands as element
21171 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21173 ("vec_extract<mode>"): New expander.
21174 ("*vec_extract<mode>"): New insn definition supporting reg and
21175 const_int element selectors.
21176 ("*vec_extract<mode>_plus"): New insn definition supporting
21177 reg+const_int element selectors.
21178 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21179 following expander+insn definition.
21180 ("<vec_shifts_name><mode>3"): New expander.
21181 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21183 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21185 * config/s390/s390.md ("*tabort_1"): Change predicate to
21186 nonmemory_operand. Add a second alternative to cover
21187 register as well as const int operands.
21188 ("*tabort_1_plus"): New pattern definition.
21190 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21192 * config/s390/s390.md ("*ashrdi3_cc_31")
21193 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21194 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21195 Merge insn definitions into ...
21196 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21197 New pattern definition.
21198 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21199 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21200 ("*ashr<mode>3_and"): Merge insn definitions into ...
21201 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21202 New pattern definition.
21203 * config/s390/subst.md ("addr_style_op_cc_subst")
21204 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21205 substitutions patterns plus attributes.
21206 Add ashiftrt to SUBST iterator.
21208 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21210 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21211 op2 to nonmemory_operand.
21212 ("*<shift>di3_31", "*<shift>di3_31_and"):
21213 Merge into single pattern definition ...
21214 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21215 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21216 pattern definition ...
21217 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21218 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21221 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21223 * config/s390/predicates.md (const_int_6bitset_operand): New
21225 * config/s390/s390.md: Include subst.md.
21226 ("rotl<mode>3"): New expander.
21227 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21229 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21230 * config/s390/subst.md: New file.
21232 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21234 * config/s390/s390.md ("op_type", "atype", "length" attributes):
21235 Remove RRR type. It doesn't really exist.
21236 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21238 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21239 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21240 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21241 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21242 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21243 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21244 `enabled' attribute.
21246 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21248 * gensupport.c (process_substs_on_one_elem): Split loop to
21249 complete mark_operands_used_in_match_dup on all expressions in the
21251 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21252 and remove function.
21254 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21257 * config/sparc/sparc.c (NWORDS_UP): Rename to...
21258 (CEIL_NWORDS): ...this. Use CEIL macro.
21259 (compute_fp_layout): Adjust to above renaming.
21260 (function_arg_union_value): Likewise.
21261 (sparc_arg_partial_bytes): Likewise.
21262 (sparc_function_arg_advance): Likewise.
21264 2016-02-29 Jeff Law <law@redhat.com>
21266 PR tree-optimization/70005
21267 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21268 where an object with a boolean range is compared against a value
21271 PR tree-optimization/69999
21272 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21273 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21276 2016-02-29 Richard Biener <rguenther@suse.de>
21278 PR tree-optimization/69994
21279 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
21280 (get_unary_op): Look through nop conversions.
21281 (ops_equal_values_p): New function, look for equality diregarding
21283 (eliminate_plus_minus_pair): Use ops_equal_values_p
21284 (repropagate_negates): Do not use get_unary_op here.
21286 2016-02-29 Martin Liska <mliska@suse.cz>
21288 * system.h: Poison ENABLE_CHECKING macro.
21290 2016-02-29 Martin Liska <mliska@suse.cz>
21292 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
21293 is presented in dump flags.
21294 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21295 (hsa_regalloc): Likewise.
21297 2016-02-19 Richard Biener <rguenther@suse.de>
21299 PR tree-optimization/69980
21300 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
21301 permutation of those we need to keep.
21303 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21306 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
21307 (NWORDS_UP): ...this
21308 (init_cumulative_args): Minor tweaks.
21309 (sparc_promote_function_mode): Likewise.
21310 (scan_record_type): Delete.
21311 (traverse_record_type): New function template.
21312 (classify_data_t): New structure type.
21313 (classify_registers): New inline function.
21314 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
21315 exhausted. Instantiate traverse_record_type on classify_registers and
21316 deal with the case of a structure passed in slot #15 with no FP field
21318 (assign_data_t): New structure type.
21319 (compute_int_layout): New static function.
21320 (compute_fp_layout): Likewise.
21321 (count_registers): New inline function.
21322 (assign_int_registers): New static function.
21323 (assign_fp_registers): Likewise.
21324 (assign_registers): New inline function.
21325 (function_arg_record_value_1): Delete.
21326 (function_arg_record_value_2): Likewise.
21327 (function_arg_record_value_3): Likewise.
21328 (function_arg_record_value): Adjust to above changes. Instantiate
21329 traverse_record_type on count_registers to first count the number of
21330 registers to be used and then on assign_registers to assign them.
21331 (function_arg_union_value): Adjust to above renaming.
21332 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
21333 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
21334 case of a structure passed in slot #15
21335 (sparc_function_arg_advance): Likewise.
21336 (function_arg_padding): Minor tweak.
21338 2016-02-29 Richard Biener <rguenther@suse.de>
21340 PR tree-optimization/69720
21341 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
21342 the adjustment_def path for possibly vectorized defs.
21343 (vect_create_epilog_for_reduction): Handle vectorized initial
21346 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
21348 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
21350 2016-02-27 Jeff Law <law@redhat.com>
21353 2016-02-26 Richard Biener <rguenther@suse.de>
21354 Jeff Law <law@redhat.com>
21356 PR tree-optimization/69740
21357 * cfghooks.c (remove_edge): Request loop fixups if we delete
21358 an edge that might turn an irreducible loop into a natural
21361 2016-02-27 Jakub Jelinek <jakub@redhat.com>
21363 PR rtl-optimization/69896
21364 * tree-vect-generic.c (get_compute_type): Avoid single element
21367 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
21369 Rename the AArch64 tuning option and related functions to enable the
21370 Newton series for the reciprocal square root to reflect its
21371 approximative characteristic.
21373 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
21374 function to "aarch64_emit_approx_rsqrt".
21375 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
21376 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
21377 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
21378 (xgene1_tunings): Likewise.
21379 (use_rsqrt_p): Likewise.
21380 (aarch64_emit_swrsqrt): Use new function name.
21381 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
21382 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
21383 text explaining this option.
21384 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
21386 2016-02-26 Jakub Jelinek <jakub@redhat.com>
21389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21390 complain about -mallow-movmisalign without -mvsx if
21391 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
21393 2016-02-26 Joel Sherrill <joel@rtems.org>
21395 * config.gcc: Add x86_64-*-rtems*.
21396 * config/i386/rtems-64.h: New file.
21398 2016-02-26 Joel Sherrill <joel@rtems.org>
21400 * config.gcc: Add aarch64-*-rtems*.
21401 * config/aarch64/rtems.h: New file.
21403 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
21406 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
21407 shift amount using %h. Add comment.
21409 2016-02-26 Richard Biener <rguenther@suse.de>
21410 Jeff Law <law@redhat.com>
21412 PR tree-optimization/69740
21413 * cfghooks.c (remove_edge): Request loop fixups if we delete
21414 an edge that might turn an irreducible loop into a natural
21417 2016-02-26 Martin Jambor <mjambor@suse.cz>
21419 PR middle-end/69920
21420 * tree-sra.c (sra_modify_assign): Do not remove loads of
21421 uninitialized aggregates to SSA_NAMEs.
21423 2016-02-26 Richard Henderson <rth@redhat.com>
21426 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21427 pseudo in case the target rtx matches the source of the left
21430 2016-02-26 Martin Jambor <mjambor@suse.cz>
21433 * hsa.h (hsa_type_packed_p): Declare.
21434 * hsa.c (hsa_type_packed_p): New function.
21435 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21437 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21438 * hsa-brig.c (emit_basic_insn): Likewise.
21440 2016-02-26 Martin Jambor <mjambor@suse.cz>
21443 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21445 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21447 2016-02-26 Martin Jambor <mjambor@suse.cz>
21449 * hsa.h (is_a_helper): New overload for hsa_op_immed for
21450 hsa_op_with_type operands.
21451 (hsa_unsigned_type_for_type): Declare.
21452 * hsa.c (hsa_unsigned_type_for_type): New function.
21453 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21454 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21455 the finalizer. Do not emit extra move.
21457 2016-02-26 Martin Jambor <mjambor@suse.cz>
21459 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21460 atomic operations in private segment.
21462 2016-02-26 Martin Jambor <mjambor@suse.cz>
21464 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21465 statements to wi->info. Also disallow omp simd constructs.
21466 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21467 for not gridifying. Dump special string for omp_for.
21469 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21472 * config/aarch64/aarch64.c (aarch64_set_current_function):
21473 Save/restore target globals when switching to
21474 target_option_default_node.
21476 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21479 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21480 Return 0 if !SHIFT_COUNT_TRUNCATED.
21482 2016-02-26 Jakub Jelinek <jakub@redhat.com>
21483 Eric Botcazou <ebotcazou@adacore.com>
21485 PR rtl-optimization/69891
21486 * dse.c (scan_insn): If we can't figure out memset arguments
21487 or they are non-constant, call clear_rhs_from_active_local_stores.
21489 2016-02-26 Martin Liska <mliska@suse.cz>
21491 * doc/extend.texi: Mention clog10, clog10f an clog10l
21492 in Builtins section.
21494 2016-02-26 Martin Liska <mliska@suse.cz>
21496 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21498 (resolve_args_picking_1): Likewise.
21499 * dwarf2out.h (struct GTY): Likewise.
21501 2016-02-26 Martin Liska <mliska@suse.cz>
21503 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21504 with flag_checking.
21505 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21507 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21508 Martin Liska <mliska@suse.cz>
21510 * doc/install.texi: Mention --enable-valgrind-annotations.
21512 2016-02-26 Richard Biener <rguenther@suse.de>
21514 PR tree-optimization/69551
21515 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21516 looking through aliases adjust DECL_PT_UID to refer to the
21517 ultimate alias target.
21519 2016-02-25 Martin Liska <mliska@suse.cz>
21521 PR middle-end/69919
21522 * alloc-pool.c (after_memory_report): New variable.
21523 * alloc-pool.h (base_pool_allocator ::release): Do not use
21524 the infrastructure if after_memory_report.
21525 * toplev.c (toplev::main): Mark after memory report.
21527 2016-02-25 Richard Biener <rguenther@suse.de>
21529 PR tree-optimization/48795
21530 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21532 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
21535 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
21536 offloading is enabled and -fopenacc or -fopenmp is specified.
21537 (CRTOFFLOADEND): Likewise.
21538 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21539 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21540 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21541 (offload_objects_file_name): New static var.
21542 (tool_cleanup): Remove offload_objects_file_name file.
21543 (find_offloadbeginend): Replace with ...
21544 (find_crtoffloadtable): ... this.
21545 (run_gcc): Remove offload_argc and offload_argv.
21546 Get offload_objects_file_name from -foffload-objects=... option.
21547 Read names of object files with offload from this file, pass them to
21548 compile_images_for_offload_targets. Don't call find_offloadbeginend and
21549 don't pass offloadbegin and offloadend to the linker. Don't pass
21550 offload non-LTO files to the linker, because now they're not claimed.
21552 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
21555 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21556 on builtin_unreachable.
21558 2016-02-25 Jakub Jelinek <jakub@redhat.com>
21560 PR rtl-optimization/69896
21561 * regcprop.c: Include cfgrtl.h.
21562 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21563 than remembered mode, either delete it (if noop_move_p), or
21564 treat like copy_p but not noop_p instruction.
21566 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21569 * dwarf2out.c (gen_variable_die): Work around buggy LTO
21570 - allow NULL decl for Fortran DW_TAG_common_block variables.
21572 2016-02-24 Jason Merrill <jason@redhat.com>
21574 * common.opt (flifetime-dse): Add -flifetime-dse=1.
21576 2016-02-24 Richard Biener <rguenther@suse.de>
21577 Jakub Jelinek <jakub@redhat.com>
21579 PR middle-end/69760
21580 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21581 conditionally executed ops to well-defined overflow behavior.
21583 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21585 PR middle-end/69915
21586 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21589 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21591 PR rtl-optimization/69886
21592 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21593 argument. Use it when checking validity of set instructions.
21594 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21595 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21597 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21598 * store-motion.c (find_moveable_store): Update
21599 can_assign_to_reg_without_clobbers_p callsite.
21601 2016-02-24 Richard Biener <rguenther@suse.de>
21603 PR middle-end/68963
21604 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21606 (record_nonwrapping_iv): Do not fall back to the low/high bound
21607 for non-constant IV bases if the stmt is not always executed.
21609 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21611 * config/arm/arm-cores.def (cortex-a32): New entry.
21612 * config/arm/arm-tables.opt: Regenerate.
21613 * config/arm/arm-tune.md: Regenerate.
21614 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21615 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21616 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21617 for -mcpu and -mtune.
21619 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21622 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21623 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21624 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21625 (atomic_loaddi_1): Delete.
21626 (atomic_loaddi): Rewrite expander using the above changes.
21628 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21631 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21634 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21635 Richard Biener <rguenth@suse.de>
21637 PR middle-end/69909
21638 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21639 set_mem_attributes if tem is SSA_NAME which got expanded
21642 2016-02-24 Richard Biener <rguenther@suse.de>
21644 PR tree-optimization/69907
21645 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21646 end of permutations for BB vectorization.
21648 2016-02-24 Christian Bruel <christian.bruel@st.com>
21650 * config/arm/arm-c.c (arm_option_override): Initialize
21651 target_option_current_node.
21652 * config/arm/arm.c (arm_pragma_target_parse): Replace
21653 build_target_option_node call by target_option_current_node.
21654 Set target_option_current_node.
21657 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
21660 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21661 define_insn_and_split to define_insn.
21662 (zero_extendqi<mode>2_dot2): Same.
21663 (extendqi<mode>2_dot): Same.
21664 (extendqi<mode>2_dot2): Same.
21666 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21668 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21669 and add bypass for AES{D,E} and AESMC pairs.
21670 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21673 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21675 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21676 series for reciprocal square root in Exynos M1.
21678 2016-02-23 Martin Sebor <msebor@redhat.com>
21681 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21682 __builtin_alloca_with_align.
21684 2016-02-23 Richard Henderson <rth@redhat.com>
21686 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21687 (ix86_register_pragmas): Remove __seg_tls.
21688 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21689 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21690 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21691 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21692 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21693 * doc/extend.texi (__seg_tls): Remove item.
21695 2016-02-23 Richard Biener <rguenther@suse.de>
21697 * alloc-pool.h (struct allocation_object): Make id member
21698 conditional on CHECKING_P again.
21699 (get_instance): Adjust.
21700 (base_pool_allocator): Likewise.
21702 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
21704 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21705 (parallelize_loops): In OpenACC kernels mode, set n_threads to
21707 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21709 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21711 2016-02-23 Richard Biener <rguenther@suse.de>
21713 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21714 * bitmap.h (struct bitmap_usage): Likewise.
21715 (bitmap_move): Declare.
21716 * bitmap.c (register_overhead): Take size_t argument.
21717 (bitmap_move): New function.
21718 * df-problems.c (df_rd_transfer_function): Use bitmap_move
21719 to properly account overhead.
21720 * tree.c (free_node): Use tree_size.
21722 2016-02-23 Jakub Jelinek <jakub@redhat.com>
21725 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21726 when inverting comparison.
21729 * common.opt (Wunreachable-code): Add Warning flag.
21731 2016-02-23 Mark Wielaard <mjw@redhat.com>
21732 Jakub Jelinek <jakub@redhat.com>
21735 * cgraphunit.c (check_global_declaration): Check main_input_filename
21736 and DECL_SOURCE_FILE are not NULL.
21738 2016-02-23 Martin Jambor <mjambor@suse.cz>
21740 PR tree-optimization/69666
21741 * tree-sra.c (sra_modify_assign): Do not attempt to create
21742 default_def replacements for unscalarizable regions.
21744 2016-02-20 Mark Wielaard <mjw@redhat.com>
21747 * cgraphunit.c (check_global_declaration): Check level of
21748 warn_unused_const_variable and main_input_filename.
21749 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21750 (-Wunused-variable): For C implies -Wunused-const-variable=1.
21751 (-Wunused-const-variable): Explain levels 1 and 2.
21753 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21756 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21757 identical arguments. Formatting and spelling fixes.
21760 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21765 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21766 and m68k-devices.def.
21767 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21768 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21770 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
21772 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21773 and HImode registers.
21775 2016-02-22 Richard Biener <rguenther@suse.de>
21777 PR tree-optimization/69882
21778 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21779 preserve permutations present because of gaps.
21780 (vect_supported_load_permutation_p): Always continue checking
21781 permutations after vect_attempt_slp_rearrange_stmts.
21783 2016-02-22 Bin Cheng <bin.cheng@arm.com>
21785 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21786 min_profitable_estimate, rather than min_profitable_iters.
21788 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21791 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21792 SImode for last match_operand.
21794 2016-02-22 Martin Liska <mliska@suse.cz>
21796 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21797 return bitsize - 1 as the return value.
21799 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
21803 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21804 Handle negative shift counts.
21805 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21806 force_reg on the shift constant.
21807 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
21808 (lshrsi3_d): Handle negative shift counts.
21810 2016-02-22 Richard Biener <rguenther@suse.de>
21811 Tom de Vries <tom@codesourcery.com>
21813 * graph.c: Include dumpfile.h.
21814 (print_graph_cfg): Split into three overloads.
21815 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21817 2016-02-22 Tom de Vries <tom@codesourcery.com>
21819 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21822 2016-02-22 Richard Biener <rguenther@suse.de>
21825 * ipa-inline-transform.c (inline_call): When not updating
21826 overall summaries adjust self size by the growth estimate.
21827 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21828 hash-set, do not update overall summaries here. Renamed from ...
21829 (inline_to_all_callers): ... this which is now wrapping the
21830 above and performing delayed overall summary update.
21831 (early_inline_small_functions): Delay updating of the overall
21834 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
21836 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21839 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21842 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21843 :%* in %:gt() argument.
21844 (greater_than_spec_func): Adjust for expecting only numbers,
21845 if there are more than two numbers, compare the last two.
21847 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
21849 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21850 -Wnarrowing with -std.
21852 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21855 * expr.c (store_field): Don't use bit-field path if exp is
21856 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21857 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21858 and the assignment can be performed by bitwise copy. Formatting
21861 PR middle-end/69838
21862 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21863 call copy_reg_eh_region_note_forward on before and/or after sequences
21864 and remove note from insn if it no longer can throw.
21867 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21868 if TARGET_AVX512BW.
21870 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21872 * config/s390/vector.md: Add missing commutative operand markers
21873 to the patterns which qualify for one.
21874 * config/s390/vx-builtins.md: Likewise.
21876 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21878 * config/s390/vector.md (VI, VI_QHS): Add single element vector
21879 types to mode iterators.
21880 (vec_double): ... and mode attribute.
21881 * config/s390/vx-builtins.md (non_vec_int): Likewise.
21883 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21885 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21886 Change the predicate of op2 from nonimmediate to general and let
21887 reload fix it if necessary.
21889 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21891 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21893 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21895 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21898 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21900 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21901 * config/s390/s390.c (s390_expand_vec_movstr): New function.
21902 * config/s390/s390.md ("movstr<P:mode>"): Call
21903 s390_expand_vec_movstr.
21905 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21907 * config/s390/s390.md: Add missing output modifier for operand 1
21908 to print it as address properly.
21910 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21912 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21913 * config/s390/2964.md: New file.
21914 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21915 of insn grouping attributes depending on the CPU level.
21916 (s390_get_unit_mask): New function.
21917 (s390_sched_score): Remove the OOO from the scheduling macros.
21918 Add loop to calculate a score for the instruction mix.
21919 (s390_sched_reorder): Likewise plus improve debug output.
21920 (s390_sched_variable_issue): Rename macros as above. Calculate
21921 the unit distances after actually scheduling an insn. Improve
21923 (s390_sched_init): Clear last_scheduled_unit_distance array.
21924 * config/s390/s390.md: Include 2964.md.
21926 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21929 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21930 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21931 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21932 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21933 *avx512f_<code>v8div16qi2_mask_1): New insns.
21935 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
21938 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21941 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21942 earlyclobber from target. Use wF constraint for fused memory
21944 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21946 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21947 Martin Liska <mliska@suse.cz>
21950 * cfgexpand.c (asan_sanitize_stack_p): New function.
21951 (partition_stack_vars): Use the function.
21952 (expand_stack_vars): Likewise.
21953 (defer_stack_allocation): Likewise.
21954 (expand_used_vars): Likewise.
21956 2016-02-18 Richard Biener <rguenther@suse.de>
21958 PR middle-end/69553
21959 * fold-const.c (operand_equal_p): Properly compare offsets for
21960 IMAGPART_EXPR and ARRAY_REF.
21962 2016-02-18 Nick Clifton <nickc@redhat.com>
21966 * config/arm/arm.c (arm_option_override_internal): Disable
21967 interworking if the target does not support thumb instructions.
21968 (arm_reload_in_hi): Handle the case where a register to register
21969 move needs reloading because there is no simple pattern to handle
21971 (arm_reload_out_hi): Likewise.
21973 2016-02-18 Richard Biener <rguenther@suse.de>
21975 PR middle-end/69854
21976 * match.pd: Don't use fold_binary or fold_unary for folding
21979 2016-02-17 Jakub Jelinek <jakub@redhat.com>
21982 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21983 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21984 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21985 warn on gimple_no_warning_p statements.
21987 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
21989 * doc/extend.texi (C++ Attributes): Correct description of
21990 warn_unused type attribute.
21992 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21994 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21995 correct instruction.
21997 2016-02-17 Richard Biener <rguenther@suse.de>
21999 PR rtl-optimization/69609
22000 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22001 (find_traces_1_round): When ending a trace update cached priority
22003 (bb_to_key): Use cached priority when available.
22004 (copy_bb): Initialize cached priority.
22005 (reorder_basic_blocks_software_trace_cache): Likewise.
22007 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22010 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22012 (aarch64_comparison_operator): Break overly long line into two.
22013 (aarch64_comparison_operation): Likewise.
22014 * config/aarch64/aarch64.md (cstorecc4): Use
22015 aarch64_comparison_operator_mode instead of
22016 aarch64_comparison_operator.
22017 (cstore<mode>4): Likewise.
22018 (aarch64_cstore<mode>): Likewise.
22019 (*cstoresi_insn_uxtw): Likewise.
22020 (cstore<mode>_neg): Likewise.
22021 (*cstoresi_neg_uxtw): Likewise.
22023 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22026 * config/arm/predicates.md (arm_comparison_operator_mode):
22028 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22029 instead of arm_comparison_operator.
22030 (*mov_negscc): Likewise.
22031 (*mov_notscc): Likewise.
22032 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22033 (*thumb2_mov_negscc): Likewise.
22034 (*thumb2_mov_negscc_strict_it): Likewise.
22035 (*thumb2_mov_notscc): Likewise.
22036 (*thumb2_mov_notscc_strict_it): Likewise.
22038 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22040 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22041 Add missing return.
22043 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22045 * config/visium/visium.c (machine_libfunc_index): New enum.
22046 (machine_libfuncs): New structure.
22047 (visium_libfuncs): New static variable.
22048 (TARGET_INIT_LIBFUNCS): Define to...
22049 (visium_init_libfuncs): ...this. New function.
22050 (expand_block_move_4): Use the appropriate libfunc.
22051 (expand_block_move_2): Likewise.
22052 (expand_block_move_1): Likewise.
22053 (expand_block_set_4): Likewise.
22054 (expand_block_set_2): Likewise.
22055 (expand_block_set_1): Likewise.
22056 (visium_trampoline_init): Likewise.
22058 2016-02-17 Nick Clifton <nickc@redhat.com>
22060 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22061 TI's devices.csv file as of March 2016.
22063 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22066 * opts-global.c (handle_common_deferred_options): Introduce and
22067 initialize two global variables to remember command-line options
22068 specifying a stack-limiting register.
22069 * opts.h: Add extern declarations of the two new global variables.
22070 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22071 variable based on the values of the two new global variables.
22073 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22076 * common.opt (Wnonnull-compare): New warning.
22077 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22078 of arguments against NULL.
22079 (-Wnonnull-compare): Document.
22080 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22081 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22082 * passes.def (pass_warn_nonnull_compare): Add.
22083 * gimple-ssa-nonnull-compare.c: New file.
22085 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22087 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22088 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22090 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22092 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22093 reciprocal sqrt for -mlow-precision-recip-sqrt.
22095 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22096 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22098 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22099 always use lane loads to construct non-constant vectors.
22101 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22103 * config/aarch64/aarch64.md
22104 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22105 constraints for operand 3.
22106 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22108 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22109 Richard Biener <rguenther@suse.de>
22111 PR tree-optimization/69820
22112 * tree-vect-patterns.c (type_conversion_p): Return false if
22113 *orig_type is unsigned single precision or boolean.
22114 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22117 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22119 PR rtl-optimization/69764
22120 PR rtl-optimization/69771
22121 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22122 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22124 2016-02-16 Richard Biener <rguenther@suse.de>
22126 PR tree-optimization/69776
22127 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22129 (indirect_refs_may_alias_p): Likewise.
22130 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22131 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22132 according to tbaa_p.
22133 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22134 (optimize_stmt): For redundant store discovery do not allow tbaa.
22136 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22138 PR tree-optimization/69714
22139 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22140 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22142 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22144 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22145 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22146 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22147 * config/arc/arc.c (arc_init): Check FPU options.
22148 (get_arc_condition_code): Handle new CC_FPU* modes.
22149 (arc_select_cc_mode): Likewise.
22150 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22151 register pair only. Allow access for ARCv2 accumulator.
22152 (gen_compare_reg): Whenever we have FPU support use FPU compare
22154 (arc_reorg): Don't generate brcc insns when FPU compare
22155 instructions are involved.
22156 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22157 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22158 floating point emulation.
22159 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22160 (REVERSE_CONDITION): Add new CC_FPU* modes.
22161 (TARGET_FP_SP_BASE): Define.
22162 (TARGET_FP_DP_BASE): Likewise.
22163 (TARGET_FP_SP_FUSED): Likewise.
22164 (TARGET_FP_DP_FUSED): Likewise.
22165 (TARGET_FP_SP_CONV): Likewise.
22166 (TARGET_FP_DP_CONV): Likewise.
22167 (TARGET_FP_SP_SQRT): Likewise.
22168 (TARGET_FP_DP_SQRT): Likewise.
22169 (TARGET_FP_DP_AX): Likewise.
22170 * config/arc/arc.md (ARCV2_ACC): New constant.
22171 (type): New fpu type attribute.
22172 (SDF): Conditional iterator.
22173 (cstore<mode>, cbranch<mode>): Change expand condition.
22174 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22175 handles FPU/FPX cases as well.
22176 * config/arc/arc.opt (mfpu): New option.
22177 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22179 (adddf3, muldf3, subdf3): Removed.
22180 * config/arc/predicates.md (proper_comparison_operator): Recognize
22182 * config/arc/fpu.md: New file.
22183 * doc/invoke.texi (ARC Options): Document mfpu option.
22185 2016-02-16 Richard Biener <rguenther@suse.de>
22187 PR rtl-optimization/69291
22188 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22189 noce_operand_ok check.
22191 2016-02-16 Tom de Vries <tom@codesourcery.com>
22194 * omp-low.c (simd_clone_create): Remove call to
22195 symtab->call_cgraph_insertion_hooks.
22197 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22199 PR tree-optimization/69802
22200 * tree-ssa-reassoc.c (update_range_test): If op is
22201 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22202 op == 1 test of precision 1 integral op, otherwise handle
22203 that case as op itself. Fix up formatting.
22204 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22207 2016-02-16 Richard Biener <rguenther@suse.de>
22209 PR tree-optimization/69586
22210 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22211 types for conversion sources.
22213 2016-02-16 Richard Biener <rguenther@suse.de>
22215 PR middle-end/69801
22216 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22217 mask OEP_ADDRESS_OF.
22219 2016-02-16 Alan Modra <amodra@gmail.com>
22222 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22223 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22224 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22226 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22227 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22228 (p8_fmrgow_<mode>): Likewise.
22229 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
22231 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22232 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22233 to use movdi_internal64. Remove op0_di.
22234 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22236 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
22238 Add support for the FCCMP insn types
22240 * config/aarch64/aarch64.md (fccmp): Change insn type.
22241 (fccmpe): Likewise.
22242 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22243 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22244 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22245 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22246 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22247 * config/arm/types.md (fccmps): Add new insn type.
22248 (fccmpd): Likewise.
22250 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
22252 * alias.c (get_alias_set): Fix a typo in comment.
22254 2016-02-15 Richard Biener <rguenther@suse.de>
22256 PR tree-optimization/69595
22257 * match.pd: Complete range test simplification to true.
22259 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
22261 PR rtl-optimization/69648
22262 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22263 pic_offset_table_rtx.
22265 PR rtl-optimization/69752
22266 * ira.c (update_equiv_regs): When looking for more than a single SET,
22267 also take other side effects into account.
22269 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22271 * config/s390/s390.c (s390_function_profiler): Add a new sequence
22272 for z900+ CPUs in 31-bit mode.
22274 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22276 * common/config/s390/s390-common.c (s390_supports_split_stack):
22278 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
22279 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
22280 * config/s390/s390.c (struct machine_function): New field
22281 split_stack_varargs_pointer.
22282 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
22283 in s390_emit_prologue.
22284 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
22286 (morestack_ref): New global.
22287 (SPLIT_STACK_AVAILABLE): New macro.
22288 (s390_expand_split_stack_prologue): New function.
22289 (s390_live_on_entry): New function.
22290 (s390_va_start): Use split-stack vararg pointer if appropriate.
22291 (s390_asm_file_end): Emit the split-stack note sections.
22292 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
22293 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
22294 (UNSPECV_SPLIT_STACK_CALL): New unspec.
22295 (UNSPECV_SPLIT_STACK_DATA): New unspec.
22296 (split_stack_prologue): New expand.
22297 (split_stack_space_check): New expand.
22298 (split_stack_data): New insn.
22299 (split_stack_call): New expand.
22300 (split_stack_call_*): New insn.
22301 (split_stack_cond_call): New expand.
22302 (split_stack_cond_call_*): New insn.
22304 2016-02-15 Richard Biener <rguenther@suse.de>
22306 PR tree-optimization/69783
22307 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22308 Add trivially correct cases.
22310 2016-02-15 Tom de Vries <tom@codesourcery.com>
22313 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
22315 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
22317 2016-02-15 Richard Biener <rguenther@suse.de>
22319 PR tree-optimization/69776
22320 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
22321 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
22322 indicate whether we can use TBAA to disambiguate against stores.
22323 Use alias-set zero if not.
22324 (visit_reference_op_store): Do not use TBAA when looking up
22326 * tree-ssa-pre.c (compute_avail): Use TBAA here.
22327 (eliminate_dom_walker::before_dom_children): But not when looking
22328 up redundant stores.
22330 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
22332 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
22334 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22336 * config/i386/znver1.md
22337 (znver1_pop, znver1_pop_mem,
22338 znver1_load_imov_double_store,
22339 znver1_load_imov_direct_store,
22340 znver1_load_imov_direct_load,
22341 znver1_load_imov_double_load): Add new.
22342 (znver1_insn, znver1_insn_load): Add icmov type.
22343 (znver1_sseavx_fma,
22344 znver1_sseavx_fma_load,
22346 znver1_avx256_fma_load): Fix pipe usage.
22348 2016-02-14 Alan Modra <amodra@gmail.com>
22351 * reload.c (find_reloads_address_1): For pre/post-inc/dec
22352 with an invalid hard reg, reload just the reg not the entire
22353 pre/post-inc/dec address expression.
22355 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
22358 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
22359 fixed R1_REG scratch reg.
22360 (sibcall_value_pcrel_fdpic): Likewise.
22362 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
22366 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
22368 2016-02-12 Walter Lee <walt@tilera.com>
22370 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
22371 * config/tilegx/t-tilegx: Likewise.
22373 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22376 * diagnostic-show-locus.c (struct line_span): New struct.
22377 (layout::get_first_line): Delete.
22378 (layout::get_last_line): Delete.
22379 (layout::get_num_line_spans): New member function.
22380 (layout::get_line_span): Likewise.
22381 (layout::print_heading_for_line_span_index_p): Likewise.
22382 (layout::get_expanded_location): Likewise.
22383 (layout::calculate_line_spans): Likewise.
22384 (layout::m_first_line): Delete.
22385 (layout::m_last_line): Delete.
22386 (layout::m_line_spans): New field.
22387 (layout::layout): Update comment. Replace m_first_line and
22388 m_last_line with m_line_spans, replacing their initialization
22389 with a call to calculate_line_spans.
22390 (diagnostic_show_locus): When printing source lines and
22391 annotations, rather than looping over a single span
22392 of lines, instead loop over each line_span within
22393 the layout, with an inner loop over the lines within them.
22394 Call the context's start_span callback when changing line spans.
22395 * diagnostic.c (diagnostic_initialize): Initialize start_span.
22396 (diagnostic_build_prefix): Break out the building of the location
22397 part of the string into...
22398 (diagnostic_get_location_text): ...this new function, rewriting
22399 it from nested ternary expressions to a sequence of "if"
22401 (default_diagnostic_start_span_fn): New function.
22402 * diagnostic.h (diagnostic_start_span_fn): New typedef.
22403 (diagnostic_context::start_span): New field.
22404 (default_diagnostic_start_span_fn): New prototype.
22406 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22409 * gcc.c (driver::finalize): Fix cleanup of "specs".
22411 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22415 * gcc.c (driver::driver): Initialize m_option_suggestions.
22416 (driver::~driver): Clean up m_option_suggestions.
22417 (suggest_option): Convert to...
22418 (driver::suggest_option): ...this, and split out into
22419 driver::build_option_suggestions and find_closest_string.
22420 (driver::build_option_suggestions): New function, from
22421 first half of suggest_option. Special-case
22422 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
22423 the sanitizer_opts array. For options of enum types, add the
22424 various enum values to the candidate strings.
22425 (driver::handle_unrecognized_options): Remove "const".
22426 * gcc.h (driver::handle_unrecognized_options): Likewise.
22427 (driver::build_option_suggestions): New decl.
22428 (driver::suggest_option): New decl.
22429 (driver::m_option_suggestions): New field.
22430 * opts-common.c (add_misspelling_candidates): New function.
22431 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22432 and make non-static.
22433 * opts.h (sanitizer_opts): New array decl.
22434 (add_misspelling_candidates): New function decl.
22435 * spellcheck.c (find_closest_string): New function.
22436 * spellcheck.h (find_closest_string): New function decl.
22438 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22440 PR rtl-optimization/69764
22441 PR rtl-optimization/69771
22442 * optabs.c (expand_binop_directly): For shift_optab_p, force
22443 convert_modes with VOIDmode if xop1 has VOIDmode.
22445 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
22448 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22449 to correctly determine instrumentation thunks.
22451 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22454 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22455 type by reference, force lhs on the call.
22458 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22459 Compute retval and retbnd early in all cases if split_part_return_p
22460 and return_bb is not EXIT. Remove all clobber stmts and reset
22461 all debug stmts that refer to SSA_NAMEs defined in split part,
22462 except if it is retval, in that case replace the old retval with the
22463 lhs of the call to the split part.
22465 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22468 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22470 PR middle-end/66726
22471 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22472 whose result is used in PHI.
22473 (maybe_optimize_range_tests): Likewise.
22474 (final_range_test_p): Likweise.
22476 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22478 PR middle-end/66726
22479 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22480 whose result is used in PHI.
22481 (maybe_optimize_range_tests): Likewise.
22482 (final_range_test_p): Likweise.
22484 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22486 * cgraph.c: Spelling fixes - behaviour -> behavior and
22487 neighbour -> neighbor.
22488 * target.def: Likewise.
22489 * sel-sched.c: Likewise.
22490 * config/mips/mips.c: Likewise.
22491 * config/arc/arc.md: Likewise.
22492 * config/arm/cortex-a57.md: Likewise.
22493 * config/arm/arm.c: Likewise.
22494 * config/arm/neon.md: Likewise.
22495 * config/arm/arm-c.c: Likewise.
22496 * config/vms/vms-c.c: Likewise.
22497 * config/s390/s390.c: Likewise.
22498 * config/i386/znver1.md: Likewise.
22499 * config/i386/i386.c: Likewise.
22500 * config/ia64/hpux-unix2003.h: Likewise.
22501 * config/msp430/msp430.md: Likewise.
22502 * config/rx/rx.c: Likewise.
22503 * config/rx/rx.md: Likewise.
22504 * config/aarch64/aarch64-simd.md: Likewise.
22505 * config/aarch64/aarch64.c: Likewise.
22506 * config/nvptx/nvptx.c: Likewise.
22507 * config/bfin/bfin.c: Likewise.
22508 * config/cris/cris.opt: Likewise.
22509 * config/rs6000/rs6000.c: Likewise.
22510 * target.h: Likewise.
22511 * spellcheck.c: Likewise.
22512 * ira-build.c: Likewise.
22513 * tree-inline.c: Likewise.
22514 * builtins.c: Likewise.
22515 * lra-constraints.c: Likewise.
22516 * explow.c: Likewise.
22517 * hwint.h: Likewise.
22518 * targhooks.c: Likewise.
22519 * tree-vect-data-refs.c: Likewise.
22520 * expr.c: Likewise.
22521 * doc/tm.texi: Likewise.
22522 * doc/extend.texi: Likewise.
22523 * doc/install.texi: Likewise.
22524 * doc/md.texi: Likewise.
22525 * tree-ssa-tail-merge.c: Likewise.
22526 * sched-int.h: Likewise.
22527 * match.pd: Likewise.
22528 * sched-ebb.c: Likewise.
22529 * target.def (omit_struct_return_reg): Likewise.
22530 * gimple-ssa-isolate-paths.c: Likewise.
22531 (find_implicit_erroneous_behaviour): Renamed to...
22532 (find_implicit_erroneous_behavior): ... this.
22533 (find_explicit_erroneous_behaviour): Renamed to...
22534 (find_explicit_erroneous_behavior): ... this.
22535 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22537 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
22539 PR rtl-optimization/64682
22540 PR rtl-optimization/69567
22541 PR rtl-optimization/69737
22542 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22543 in I2 as well, just lose it.
22545 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22547 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22549 (aarch64_last_printed_tune_string): Likewise.
22550 (aarch64_declare_function_name): Only output .arch assembler
22551 directive if it will be different from the previously output
22552 directive. Same for .tune comment but only if -dA is set.
22553 (aarch64_start_file): New function.
22554 (TARGET_ASM_FILE_START): Define.
22556 2016-02-11 David Malcolm <dmalcolm@redhat.com>
22559 * Makefile.in (PLUGIN_HEADERS): Add params.list.
22561 2016-02-11 Jakub Jelinek <jakub@redhat.com>
22564 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22565 -Wmaybe-uninitialized warning.
22567 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
22570 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22572 2016-02-11 Richard Biener <rguenther@suse.de>
22574 PR rtl-optimization/69291
22575 * ifcvt.c (noce_try_store_flag_constants): Do not allow
22576 subexpressions affected by changing the result.
22578 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
22581 * lra-constraints.c (curr_insn_transform): Find in/out operands
22582 for secondary memory moves. Update dups.
22584 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
22586 PR tree-optimization/69652
22587 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22588 to nested loop, did source re-formatting, skip debug statements,
22589 add check on statement with volatile operand, remove dead scalar
22592 2016-02-10 Jakub Jelinek <jakub@redhat.com>
22593 Patrick Palka <ppalka@gcc.gnu.org>
22597 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22598 calls if the return type is TREE_ADDRESSABLE.
22599 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22600 * ipa-split.c (split_function): Fix doubled "we" in comment.
22601 Use void return type for the split part even if
22602 !split_point->split_part_set_retval.
22604 2016-02-10 Bin Cheng <bin.cheng@arm.com>
22606 PR tree-optimization/68021
22607 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22608 when computing the value of biv cand by itself.
22610 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22612 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22613 (cortexa57_tunings): Likewise.
22614 (cortexa72_tunings): Likewise.
22615 (arch_macro_fusion_pair_p): Add support for AES fusion.
22616 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22617 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22618 Allow virtual registers before reload so early scheduling works.
22619 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22620 correct latency and pipeline.
22621 (cortex_a57_crypto_complex): Likewise.
22622 (cortex_a57_crypto_xor): Likewise.
22623 (define_bypass): Add AES bypass.
22625 2016-02-10 Richard Biener <rguenther@suse.de>
22627 PR tree-optimization/69726
22628 * passes.def: Add DCE pass before late uninit.
22629 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22630 really fixup if-conversions job.
22632 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22634 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22635 (arm_cortex_a57_tune): Likewise.
22636 (aarch_macro_fusion_pair_p): Add support for AES fusion.
22637 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22639 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
22641 * timevar.def (TV_PHASE_DBGINFO): Delete.
22642 (TV_PHASE_CHECK_DBGINFO): Likewise.
22643 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22645 2016-02-10 Richard Biener <rguenther@suse.de>
22647 PR tree-optimization/69719
22648 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22649 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22651 2016-02-09 Andrew Pinski <apinski@cavium.com>
22654 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22655 get_vcond_mask_icode returns false.
22657 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22660 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22661 an ADDIS that adds a pointer to a large constant that sets the
22662 upper16 bits with a load operation.
22664 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22667 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22669 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22671 (vzipq_s16): Likewise.
22672 (vzipq_s32): Likewise.
22673 (vzipq_f32): Likewise.
22674 (vzipq_u8): Likewise.
22675 (vzipq_u16): Likewise.
22676 (vzipq_u32): Likewise.
22677 (vzipq_p8): Likewise.
22678 (vzipq_p16): Likewise.
22680 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22683 * config/arm/arm.c (neon_endian_lane_map): New function.
22684 (neon_vector_pair_endian_lane_map): New function.
22685 (arm_evpc_neon_vuzp): Allow for big endian lane order.
22686 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22688 (vuzpq_s16): Likewise.
22689 (vuzpq_s32): Likewise.
22690 (vuzpq_f32): Likewise.
22691 (vuzpq_u8): Likewise.
22692 (vuzpq_u16): Likewise.
22693 (vuzpq_u32): Likewise.
22694 (vuzpq_p8): Likewise.
22695 (vuzpq_p16): Likewise.
22697 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
22700 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22703 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
22705 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22706 truncate const_int operand 1 to QImode.
22708 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
22710 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22711 corresponding to an abnormal edge.
22713 2016-02-09 Tom de Vries <tom@codesourcery.com>
22715 PR tree-optimization/69599
22716 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22718 (find_func_aliases_for_builtin_call, find_func_clobbers)
22719 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
22722 2016-02-09 Richard Biener <rguenther@suse.de>
22724 PR tree-optimization/69715
22725 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22726 LHS on calls as non-rewritable.
22728 2016-02-09 Tom de Vries <tom@codesourcery.com>
22731 * lto-wrapper.c (append_diag_options): New function.
22732 (compile_offload_image): Call append_diag_options.
22734 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
22737 * doc/extend.texi (Flag Output Operands): Correct sectioning.
22738 Minor copy-edit to fix verb tenses.
22740 2016-02-08 Jakub Jelinek <jakub@redhat.com>
22742 PR tree-optimization/69209
22743 * ipa-split.c (split_function): If split part is not
22744 returning retval, retval has gimple type but is not
22745 gimple value, force it into a SSA_NAME first.
22747 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
22749 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22752 2016-02-08 Jason Merrill <jason@redhat.com>
22755 * convert.c (convert_to_integer_1): Check dofold on truncation
22757 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22758 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22759 Rename from *_nofold.
22760 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22761 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22763 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
22766 * tree.c (build_common_tree_nodes): Remove short_double argument.
22767 All callers changed.
22768 * tree.h (build_common_tree_nodes): Adjust declaration.
22769 * doc/invoke.texi (-fshort-double): Remove documentation.
22770 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22771 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22772 * lto-wrapper.c (merge_and_complain, append_compiler_options)
22773 (append_linker_options): Don't handle OPT_fshort_double.
22775 PR rtl-optimization/68730
22776 * lra-remat.c (insn_to_cand_activation): New static variable.
22777 (lra_remat): Allocate and free it.
22778 (create_cand): New arg activation. Initialize a field in
22779 insn_to_cand_activation if it is nonnull.
22780 (create_cands): Pass the activation insn to create_cand when making
22781 a candidate involving an output reload. Reorganize code a little.
22782 (do_remat): Keep track of active status of candidates in a separate
22785 2016-02-08 Richard Biener <rguenther@suse.de>
22787 PR tree-optimization/69719
22788 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22789 Properly use absolute of the difference of the two offsets to
22790 compare or adjust the segment length.
22792 2016-02-08 Richard Biener <rguenther@suse.de>
22793 Jeff Law <law@redhat.com>
22796 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22797 types for anonymous SSA names.
22799 2016-02-08 Richard Biener <rguenther@suse.de>
22801 PR rtl-optimization/69274
22802 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22804 2016-02-08 Jeff Law <law@redhat.com>
22806 PR tree-optimization/65917
22807 * tree-ssa-dom.c (record_temporary_equivalences): Record both
22808 equivalences from if (x == y) style conditionals.
22809 (loop_depth_of_name): Remove.
22810 (record_equality): Remove loop depth check.
22811 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22812 (const_and_copies::record_const_or_copy_raw): New member function.
22813 * tree-ssa-scopedtables.c
22814 (const_and_copies::record_const_or_copy_raw): New, factored out of
22815 (const_and_copies::record_const_or_copy): Call new member function.
22817 2016-02-05 Jeff Law <law@redhat.com>
22819 PR tree-optimization/68541
22820 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22821 (count_stmts_in_block): New function.
22822 (poor_ifcvt_candidate_code): Likewise.
22823 (is_feasible_trace): Add some heuristics to determine when path
22824 splitting is profitable.
22825 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22826 is a diamond with a single exit.
22828 2016-02-05 Martin Sebor <msebor@redhat.com>
22831 * doc/invoke.texi: Update -Wplacement-new to take an optional
22834 2016-02-06 Richard Henderson <rth@redhat.com>
22837 * tree.c (tree_nop_conversion_p): Do not strip casts into or
22838 out of non-standard address spaces.
22840 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22842 PR rtl-optimization/69691
22843 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22845 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
22847 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22848 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22849 (*ieee128_mfvsrd_64bit): Likewise.
22850 (*ieee128_mfvsrd_32bit): Likewise.
22852 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
22856 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22858 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22859 instrumented_version.
22861 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
22863 * doc/invoke.texi (Optimize Options): In table of --param options
22864 rename second occurrence of tracer-min-branch-ratio to
22865 tracer-min-branch-probability, rename
22866 tracer-min-branch-ratio-feedback to
22867 tracer-min-branch-probability-feedback and clarify description,
22868 rename sched-spec-state-edge-prob-cutoff to
22869 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22870 to selsched-insns-to-rename, rename lto-minpartition to
22871 lto-min-partition, delete reorder-blocks-duplicate and
22872 reorder-blocks-duplicate-feedback.
22874 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22876 * config/s390/s390.c (s390_register_info_set_ranges): Remove
22879 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
22881 * doc/extend.texi: S/390: Correct some typos.
22883 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22885 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22887 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22890 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22891 (s390_register_info_gprtofpr): Use new macros above.
22892 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22894 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22895 its name. Adjust restore and save gpr ranges.
22896 (s390_register_info_set_ranges): New function.
22897 (s390_register_info): Use new macros above. Call
22898 s390_register_info_set_ranges.
22899 (s390_optimize_register_info): Likewise.
22900 (s390_hard_regno_rename_ok): Use new macros.
22901 (s390_hard_regno_scratch_ok): Likewise.
22902 (s390_emit_epilogue): Likewise.
22903 (s390_can_use_return_insn): Likewise.
22904 (s390_optimize_prologue): Likewise.
22905 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22907 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22910 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22912 (ix86_option_override_internal): Disable TARGET_STV even for
22913 -m{incoming,preferred}-stack-boundary=3.
22915 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22917 * config.gcc: Mark deprecated rtems targets as obsolete.
22919 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
22921 PR rtl-optimization/64682
22922 PR rtl-optimization/69567
22923 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22924 before I2 only if the register is both used and set in I2.
22926 2016-02-04 DJ Delorie <dj@redhat.com>
22928 * config/msp430/msp430.c (msp430_start_function): Add function type.
22930 2016-02-04 Jakub Jelinek <jakub@redhat.com>
22933 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22935 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
22937 PR rtl-optimization/69577
22939 2015-10-29 Richard Henderson <rth@redhat.com>
22943 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22944 sse check to the exact conditions of PR 67609.
22946 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
22949 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22950 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22951 not allowed into the traditional Altivec registers.
22952 (movtd_64bit_nodm): Likewise.
22953 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22955 2016-02-04 David Malcolm <dmalcolm@redhat.com>
22957 * config/aarch64/cortex-a57-fma-steering.c
22958 (aarch64_register_fma_steering): Remove "static" from arguments
22961 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
22964 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22965 twice when complex.
22967 2016-02-04 Mike Frysinger <vapier@gentoo.org>
22969 * doc/invoke.texi: Delete -mno-fma4.
22971 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
22973 PR rtl-optimization/69577
22974 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22975 (find_subregs_of_mode): Update accordingly. Iterate over partial
22978 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
22980 * config/arm/arm-protos.h (neon_reinterpret): Remove.
22981 * config/arm/arm.c (neon_reinterpret): Remove.
22982 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22983 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22984 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22985 vreinterpretti): Remove.
22986 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22987 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22988 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22989 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22990 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22991 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22992 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22993 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22994 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22995 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22996 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22997 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22998 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22999 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23000 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23001 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23002 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23003 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23004 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23005 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23006 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23007 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23008 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23009 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23010 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23011 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23012 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23013 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23014 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23015 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23016 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23017 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23018 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23019 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23020 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23021 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23022 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23023 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23024 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23025 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23026 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23027 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23028 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23029 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23030 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23031 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23032 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23033 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23034 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23035 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23036 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23037 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23038 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23039 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23040 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23041 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23042 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23043 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23044 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23045 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23046 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23047 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23048 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23049 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23050 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23051 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23052 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23053 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23054 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23055 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23056 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23057 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23058 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23059 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23060 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23061 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23062 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23063 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23064 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23065 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23066 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23067 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23068 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23069 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23070 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23071 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23072 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23073 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23074 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23075 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23076 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23077 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23078 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23079 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23080 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23081 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23082 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23083 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23084 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23085 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23086 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23087 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23088 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23090 2016-02-04 Martin Liska <mliska@suse.cz>
23093 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23094 that are gimple_store_p.
23095 (maybe_instrument_call): Likewise.
23097 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23099 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23100 register scaling out of memory reference and comment why.
23102 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23106 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23107 folding the source of a SET.
23109 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23113 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23114 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23116 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23120 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23123 2016-02-04 Christian Bruel <christian.bruel@st.com>
23125 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23126 * config/arm/arm.c (arm_set_current_function): Likewise.
23128 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23129 Ilya Enkovich <enkovich.gnu@gmail.com>
23130 H.J. Lu <hongjiu.lu@intel.com>
23133 * config/i386/i386.c (convert_scalars_to_vector): Remove
23134 stack alignment fixes.
23135 (ix86_option_override_internal): Disable TARGET_STV if stack
23136 might not be aligned enough.
23137 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23139 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23141 * config/i386/x86-tune.def: Disable default prefetching
23144 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23145 Vladimir Makarov <vmakarov@redhat.com>
23148 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23149 in validating fused toc addresses.
23151 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23154 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23155 range->m_caret fields if range->m_show_caret_p is false.
23158 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23159 Force oldval into register if it does not satisfy reg_or_short_operand
23160 predicate. Fix up formatting.
23162 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23163 Alexandre Oliva <aoliva@redhat.com>
23166 * lra-constraints.c (simplify_operand_subreg): Check additionally
23167 address validity after potential reloading.
23168 (process_address_1): Check insns validity. In case of failure do
23171 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23174 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23177 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23179 * wide-int.cc (canonize_uhwi): New function.
23180 (wi::divmod_internal): Use it.
23182 2016-02-02 James Norris <jnorris@codesourcery.com>
23184 * gimplify.c (omp_notice_variable): Add usage check.
23186 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23188 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23189 like LE, GE, LT, GT when emitting relational operator.
23191 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23193 * ira-costs.c (find_costs_and_classes): Add extra argument.
23194 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23195 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23196 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23197 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23198 Add best_class parameter, and return it if not ALL_REGS.
23199 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23201 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23202 Update target hook.
23204 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23206 * config/aarch64/aarch64.c
23207 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23208 (aarch64_ira_change_pseudo_allocno_class): New function.
23210 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23213 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23215 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23217 * config/avr/avr.c (avr_option_override): Set
23218 PARAM_ALLOW_STORE_DATA_RACES to 1.
23220 2016-02-02 Richard Biener <rguenther@suse.de>
23222 PR tree-optimization/69595
23223 * match.pd: Add range test simplifications to true/false.
23225 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
23227 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23228 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23231 2016-02-02 Richard Biener <rguenther@suse.de>
23233 PR tree-optimization/69606
23234 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23235 info on the result before moving a stmt.
23237 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
23239 PR middle-end/68542
23240 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23241 branch with vector comparison.
23242 * config/i386/sse.md (VI48_AVX): New mode iterator.
23243 (define_expand "cbranch<mode>4): Add support for conditional branch
23244 with vector comparison.
23245 * tree-vect-loop.c (optimize_mask_stores): New function.
23246 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23247 has_mask_store field of vect_info.
23248 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23249 vectorized loops having masked stores after vec_info destroy.
23250 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23251 correspondent macros.
23252 (optimize_mask_stores): Add prototype.
23254 2016-02-02 Alan Modra <amodra@gmail.com>
23257 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23260 2016-02-02 Alan Modra <amodra@gmail.com>
23263 * config/rs6000/rs6000.c (need_toc_init): New var, set it
23264 whenever toc_label_name used.
23265 (rs6000_file_start): Don't set up toc section here,
23266 (rs6000_output_function_epilogue): do so here instead,
23267 (rs6000_xcoff_file_start): and here.
23268 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23269 (load_toc_aix_di): Likewise.
23271 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23273 PR rtl-optimization/69592
23274 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23275 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
23276 (num_sign_bit_copies_binary_arith_p): New inline function.
23277 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
23279 2016-02-01 Jeff Law <law@redhat.com>
23281 PR tree-optimization/69580
23282 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
23283 * tree-ssa-threadbackward.c
23284 (fsm_find_control_statement_thread_paths): Do not try to walk
23285 through large PHI nodes.
23287 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23289 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
23290 when count is incremented above limit, don't analyze further
23293 * omp-low.c (oacc_parse_default_dims): Avoid
23294 -Wsign-compare warning, make sure value fits into int
23295 rather than just unsigned int.
23297 2016-02-01 Bin Cheng <bin.cheng@arm.com>
23299 PR tree-optimization/67921
23300 * fold-const.c (split_tree): New parameters. Convert pointer
23301 type variable part to proper type before negating.
23302 (fold_binary_loc): Pass new arguments to split_tree.
23304 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
23306 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
23307 (nvptx_goacc_validate_dims): Extend to handle global defaults.
23308 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
23309 * doc/tm.texti: Rebuilt.
23310 * doc/invoke.texi (fopenacc-dim): Document.
23311 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
23312 (append_compiler_options): Likewise.
23313 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
23314 (oacc_parse_default_dims): New.
23315 (oacc_validate_dims): Add USED arg. Select non-unity default when
23317 (oacc_loop_fixed_partitions): Return mask of used partitions.
23318 (oacc_loop_auto_partitions): Emit dump info.
23319 (oacc_loop_partition): Return mask of used partitions.
23320 (execute_oacc_device_lower): Parse default dimension arg. Adjust
23321 loop partitioning and validation calls.
23323 2016-02-01 Richard Biener <rguenther@suse.de>
23325 PR middle-end/69556
23326 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
23328 2016-02-01 Richard Biener <rguenther@suse.de>
23330 PR tree-optimization/69574
23331 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
23332 of asserting return chrec_dont_know.
23334 2016-02-01 Martin Liska <mliska@suse.cz>
23336 * mem-stats-traits.h: Add copyright header.
23337 * mem-stats.h: Likewise.
23339 2016-02-01 Richard Biener <rguenther@suse.de>
23341 PR tree-optimization/69579
23342 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
23343 Do not propagate through abnormal PHI results.
23345 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
23347 * postreload.c (reload_cse_simplify): Remove dead code.
23349 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23351 PR rtl-optimization/69570
23352 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
23353 if there is more than one set, not if there is a single set.
23355 2016-02-01 Richard Henderson <rth@redhat.com>
23358 * combine.c (make_compound_operation): When looking through a
23359 subreg, make sure to re-extend to the width of the outer mode.
23361 2016-01-30 Jakub Jelinek <jakub@redhat.com>
23363 PR tree-optimization/69546
23364 * wide-int.cc (wi::divmod_internal): For unsigned division
23365 where both operands fit into uhwi, if o1 is 1 and o0 has
23366 msb set, if divident_prec is larger than bits per hwi,
23367 clear another quotient word and return 2 instead of 1.
23368 Similarly for remainder with msb in HWI set, if dividend_prec
23369 is larger than bits per hwi.
23371 2016-01-29 Martin Jambor <mjambor@suse.cz>
23373 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
23374 Use short lowercase names.
23375 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
23376 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
23377 acq_rel one. Protect warning agains segfaults if
23378 get_memory_order_name returns NULL.
23379 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
23380 with release semantics. Do not warn if get_memory_order already did.
23381 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
23382 semantics. Fix check for relaxed or acquire semantics. Do not warn
23383 if get_memory_order already did.
23385 2016-01-29 Sebastian Pop <s.pop@samsung.com>
23387 * doc/install.texi: Document that isl-0.16 is supported.
23389 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
23392 * config/i386/constraints.md (Bm): Describe as special memory
23394 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
23395 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23396 * genpreds.c (struct constraint_data): Add is_special_memory.
23397 (have_special_memory_constraints, special_memory_start): New
23399 (special_memory_end): Ditto.
23400 (add_constraint): Add new arg is_special_memory. Add code to
23401 process its true value. Update have_special_memory_constraints.
23402 (process_define_constraint): Pass the new arg.
23403 (process_define_register_constraint): Ditto.
23404 (choose_enum_order): Process special memory.
23405 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
23406 function insn_extra_special_memory_constraint.
23407 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23408 * gensupport.c (process_rtx): Process
23409 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23410 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
23411 * ira-lives.c (single_reg_class): Use
23412 insn_extra_special_memory_constraint.
23413 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
23414 * lra-constraints.c (process_alt_operands): Ditto.
23415 (curr_insn_transform): Use insn_extra_special_memory_constraint.
23416 * recog.c (asm_operand_ok, preprocess_constraints): Process
23418 * reload.c (find_reloads): Ditto.
23419 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
23420 * stmt.c (parse_input_constraint): Use
23421 insn_extra_special_memory_constraint.
23423 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23426 * lra-splill.c (lra_final_code_change): Revert r229087 by
23427 removing all sub-registers.
23429 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
23432 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23434 2016-01-29 Jakub Jelinek <jakub@redhat.com>
23437 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23438 SSE1, copy target into the temporary reg first before recursing
23441 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23443 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23446 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23448 * ginclude/stdarg.h: Test __cplusplus instead of
23449 __GXX_EXPERIMENTAL_CXX0X__.
23451 2016-01-29 Richard Biener <rguenther@suse.de>
23453 PR tree-optimization/69547
23454 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23455 Do not mark clobbers necessary.
23456 (mark_all_reaching_defs_necessary_1): Likewise.
23458 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23460 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23461 declaration name with %qs and print it in both error messages.
23462 Also fix indentation.
23464 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23467 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23468 trailing blank line from error message.
23470 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23473 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23476 2016-01-29 Richard Biener <rguenther@suse.de>
23478 PR middle-end/69537
23479 * match.pd: Allow all integral types when simplifying a
23480 widening or sign-changing conversion.
23482 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23484 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23485 back to setting codegen_error to fail codegen.
23487 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
23490 * config/i386/constraints.md (C): Only accept constant zero operand.
23491 (BC): New constraint.
23492 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23493 instead of C constraint.
23494 * doc/md.texi (Machine Constraints): Update description
23497 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
23500 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23502 2016-01-28 Jakub Jelinek <jakub@redhat.com>
23504 PR middle-end/69542
23505 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23508 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
23510 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23511 branches if using guessed profile.
23513 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
23515 * graphite-optimize-isl.c (optimize_isl): Fix dump.
23517 2016-01-28 Richard Henderson <rth@redhat.com>
23520 * config/aarch64/aarch64-modes.def (CC_Cmode): New
23521 * config/aarch64/aarch64-protos.h: Update.
23522 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23523 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23524 (aarch64_get_condition_code_1): Handle CC_Cmode.
23525 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23526 (*add<mode>3_compareC_cconly_imm): New.
23527 (*add<mode>3_compareC_cconly): New.
23528 (*add<mode>3_compareC_imm): New.
23529 (add<mode>3_compareC): New.
23530 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23531 to be first. Use aarch64_carry_operation.
23532 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23533 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23534 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23535 (subti3): Use subdi3_compare1.
23536 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23537 (sub<mode>3_compare1): New.
23538 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23539 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23540 (*subsi3_carryin_uxtw): Likewise.
23541 (*ngc<mode>, *ngcsi_uxtw): Likewise.
23542 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23543 * config/aarch64/iterators.md (DWI): New.
23544 * config/aarch64/predicates.md (aarch64_carry_operation): New.
23545 (aarch64_borrow_operation): New.
23547 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23549 * graphite-optimize-isl.c (optimize_isl): Print a different debug
23550 message when isl does not return a valid schedule.
23552 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23554 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23555 Remove comments from class declarations: they are already in the code
23558 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23560 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23562 (ternary_op_to_tree): Same.
23563 (unary_op_to_tree): Same.
23564 (nary_op_to_tree): Same.
23565 (gcc_expression_from_isl_expr_op): Same.
23566 (gcc_expression_from_isl_expression): Same.
23567 (graphite_create_new_loop): Same.
23568 (graphite_create_new_loop_guard): Same.
23569 (build_iv_mapping): Same.
23570 (graphite_create_new_guard): Same.
23571 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23572 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23574 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23576 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23577 instead of setting codegen_error to fail codegen.
23579 2016-01-28 Jason Merrill <jason@redhat.com>
23581 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23583 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23585 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23586 Remove CONST_INT_P check in CCMP cost calculation.
23588 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23590 * config/aarch64/aarch64.c (generic_vector_cost):
23591 Set vec_permute_cost.
23592 (cortexa57_vector_cost): Likewise.
23593 (exynosm1_vector_cost): Likewise.
23594 (xgene1_vector_cost): Likewise.
23595 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23596 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23597 Add vec_permute_cost entry.
23599 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23601 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23603 (add<mode>3_compare0): Likewise.
23604 (addsi3_compare0_uxtw): Likewise.
23605 (add<mode>3nr_compare0): Likewise.
23606 (compare_neg<mode>): Likewise.
23607 (<optab><mode>3): Likewise.
23609 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
23611 * tree-vect-stmts.c (vectorizable_comparison): Add
23612 NULL check for vectype.
23614 2016-01-28 Richard Biener <rguenther@suse.de>
23616 PR tree-optimization/69466
23617 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23618 Account for PHIs we couldn't duplicate.
23620 2016-01-28 Martin Liska <mliska@suse.cz>
23623 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23624 instead of ENABLE_VALGRIND_CHECKING.
23626 2016-01-27 Richard Henderson <rth@redhat.com>
23629 * lra-remat.c (subreg_regs): New.
23630 (dump_candidates_and_remat_bb_data): Dump it.
23631 (operand_to_remat): Reject if operand in subreg_regs.
23632 (set_bb_regs): Collect subreg_regs.
23633 (lra_remat): Init and free subreg_regs. Compute
23634 calculate_local_reg_remat_bb_data before create_cands.
23636 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
23639 * config/i386/i386.c (ix86_update_stack_boundary): Don't
23640 change stack_alignment_needed for __tls_get_addr call.
23642 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
23644 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23646 2016-01-27 Jeff Law <law@redhat.com>
23648 PR tree-optimization/68398
23649 PR tree-optimization/69196
23650 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23651 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23652 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23653 Only count PHIs in the last block in the path. The others will
23654 const/copy propagate away. Add heuristic to allow more irreducible
23655 subloops to be created when it is likely profitable to do so.
23657 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23658 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
23659 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
23661 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23664 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23665 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23666 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23667 * tree-streamer-in.c: Include asan.h.
23668 (streamer_get_builtin_tree): For builtins in sanitizer
23669 range call initialize_sanitizer_builtins and retry.
23671 2016-01-27 Ian Lance Taylor <iant@google.com>
23673 * common.opt (fkeep-gc-roots-live): New undocumented option.
23674 * tree-ssa-loop-ivopts.c (add_candidate_1): If
23675 -fkeep-gc-roots-live, skip pointers.
23676 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23679 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
23682 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23683 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23685 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
23688 * configure.ac: NetBSD provides SSP in its C library.
23689 * configure: Updated.
23691 2016-01-27 Richard Biener <rguenther@suse.de>
23693 PR tree-optimization/69166
23694 * tree-vect-loop.c (vect_is_simple_reduction): Always check
23695 reduction code for commutativity / associativity.
23697 2016-01-27 Martin Jambor <mjambor@suse.cz>
23699 PR tree-optimization/69355
23700 * tree-sra.c (analyze_access_subtree): Correct hole detection when
23701 total_scalarization fails.
23703 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
23705 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23708 2016-01-27 Christian Bruel <christian.bruel@st.com>
23711 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23712 Move arm_reset_previous_fndecl and set_target_option_current_node in
23713 the conditional part. Call save_restore_target_globals.
23714 * config/arm/arm.c (arm_set_current_function):
23715 Refactor to better support #pragma target and attribute mix.
23716 Call save_restore_target_globals.
23717 * config/arm/arm-protos.h (save_restore_target_globals): New function.
23719 2016-01-27 Martin Liska <mliska@suse.cz>
23721 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23722 reference for an HSA kernel and its host function.
23724 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23726 PR tree-optimization/69399
23727 * wide-int.h (wi::lrshift): For larger precisions, only
23728 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23730 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
23732 * config/arc/predicates.md (proper_comparison_operator): Reject
23733 constant-constant comparison.
23735 2016-01-26 Tom de Vries <tom@codesourcery.com>
23737 PR tree-optimization/69110
23738 * tree-data-ref.c (initialize_data_dependence_relation): Handle
23739 DR_NUM_DIMENSIONS == 0.
23741 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23742 Sebastian Pop <s.pop@samsung.com>
23744 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23745 isl_ast_op_cond and isl_ast_op_select.
23746 (gcc_expression_from_isl_expr_op): Same.
23748 2016-01-26 Jason Merrill <jason@redhat.com>
23751 * tree.c (recompute_constructor_flags): Split out from
23753 (verify_constructor_flags): New.
23754 * tree.h: Declare them.
23756 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
23758 PR rtl-optimization/69217
23759 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23760 are no TYPE_FIELDS set for the record type.
23762 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23765 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23766 toc_label_name unconditionally.
23767 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23768 SYMBOL_REF string. Use toc_label_name instead of constructing
23770 (rs6000_elf_declare_function_name): Use toc_label_name instead of
23771 constructing LCTOC1.
23773 2016-01-26 Martin Sebor <msebor@redhat.com>
23776 * doc/extend.texi (Common Type Attributes): Move text that talks about
23777 attribute packed from attribute aligned to the section discussing
23778 the former attribute for clarity.
23780 2016-01-26 Richard Henderson <rth@redhat.com>
23782 PR middle-end/60908
23783 * trans-mem.c (tm_region_init): Mark entry block as visited.
23785 2016-01-26 David Malcolm <dmalcolm@redhat.com>
23788 * diagnostic-show-locus.c (layout::print_source_line): Replace
23789 call to pp_newline with call to layout::print_newline.
23790 (layout::print_annotation_line): Likewise.
23791 (layout::move_to_column): Likewise.
23792 (layout::print_any_fixits): After printing any fixits, print a
23793 trailing newline, if necessary.
23794 (layout::print_newline): New method, resetting any colorization
23796 (diagnostic_show_locus): Move the pp_newline to before the
23797 early bailout. Remove dummy block enclosing the layout instance.
23798 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23799 of pp_newline_and_flush with pp_flush.
23800 (diagnostic_append_note): Delete use of pp_newline.
23801 (diagnostic_append_note_at_rich_loc): Delete.
23802 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23803 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23804 when newline characters are added to the buffer.
23806 2016-01-26 Michael Matz <matz@suse.de>
23808 * configure.ac (ac_cv_std_swap_in_utility): New test.
23809 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23810 * configure: Regenerate.
23811 * config.in: Regenerate.
23813 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
23815 * config/arc/arc.md (cstoresi4): Force operand into register.
23816 (arcset<code>): Fix predicate.
23817 (arcsetltu): Likewise.
23818 (arcsetgeu): Likewise.
23819 (arcsethi): Likewise.
23820 (arcsetls): Likewise.
23822 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23824 PR tree-optimization/69483
23825 * gimple-fold.c (canonicalize_constructor_val): Return NULL
23826 if base has error_mark_node type.
23828 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
23831 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23832 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23834 (vget_lane_f16): Handle big-endian.
23835 (vgetq_lane_f16): Likewise.
23836 (vset_lane_f16): Likewise.
23837 (vsetq_lane_f16): Likewise.
23838 * config/arm/iterators.md (VQXMOV): Add V8HF.
23839 (VDQ): Add V4HF and V8HF.
23840 (V_reg): Handle V4HF and V8HF.
23841 (Is_float_mode): Likewise.
23842 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23843 neon_vdup_nv8hf): New patterns.
23844 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23845 Use VD_LANE iterator.
23846 (neon_vld1_dup<mode>): Use VQ2 iterator.
23848 2016-01-26 Nathan Sidwell <nathan@acm.org>
23850 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23851 (set_oacc_fn_attrib): Add IS_KERNEL arg.
23852 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23853 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23854 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23855 (oacc_validate_dims): Add LEVEL arg, don't return level.
23856 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23857 oacc_validate_dims.
23858 (execute_oacc_device_lower): Adjust, add more dump output.
23859 * tree-ssa-loop.c (gate_oacc_kernels): Use
23860 oacc_fn_attrib_kernels_p.
23861 * tree-parloops.c (create_parallel_loop): Adjust
23862 set_oacc_fn_attrib call.
23864 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23867 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23868 (append_compiler_options): Handle -fcilkplus.
23869 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23871 2016-01-26 Nick Clifton <nickc@redhat.com>
23874 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23875 been marked as DECL_ONE_ONLY but we do not the means to make it
23876 so, then do not allow it to bind locally.
23878 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23881 * opts.h (parse_sanitizer_options): New prototype.
23882 * opts.c (sanitizer_opts): New array.
23883 (parse_sanitizer_options): New function.
23884 (common_handle_option): Use parse_sanitizer_options.
23886 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
23889 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23890 alignment adjustment to ...
23891 (ix86_update_stack_boundary): Here. Don't over-align stack for
23893 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23894 if __tls_get_addr is called.
23896 2016-01-26 Christian Bruel <christian.bruel@st.com>
23898 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23900 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
23902 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23904 2016-01-26 Richard Biener <rguenther@suse.de>
23906 PR middle-end/69467
23907 * match.pd: Guard X * CST CMP 0 pattern with single_use.
23909 2016-01-26 Richard Biener <rguenther@suse.de>
23911 PR tree-optimization/69452
23912 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23913 (move_computations_dom_walker::before_dom_children): Rename
23915 (move_computations_worker): This.
23916 (move_computations): Perform an RPO rather than a DOM walk.
23918 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23921 * combine.c (combine_instructions): For REG_EQUAL note with
23922 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23923 to the underlying register.
23924 * doc/rtl.texi (REG_EQUAL): Document the behavior of
23925 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23927 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
23930 * config/aarch64/aarch64-builtins.c
23931 (aarch64_init_simd_builtin_types): Do not set structural
23932 equality to __Poly{8,16,64,128}_t types.
23934 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
23936 PR tree-optimization/69400
23937 * wide-int.cc (wi_pack): Take the precision as argument and
23938 perform canonicalization here rather than in the callers.
23939 Use the main loop to handle all full-width HWIs. Add a
23940 zero HWI if in_len isn't a full result.
23941 (wi::divmod_internal): Update accordingly.
23942 (wi::mul_internal): Likewise. Simplify.
23944 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
23945 Sebastian Pop <s.pop@samsung.com>
23947 * graphite-poly.c (apply_poly_transforms): Simplify.
23948 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23949 (print_isl_map): Same.
23950 (print_isl_union_map): Same.
23951 (print_isl_schedule): New.
23952 (debug_isl_schedule): New.
23953 * graphite-dependences.c (scop_get_reads): Do not call
23954 isl_union_map_add_map that is undocumented isl functionality.
23955 (scop_get_must_writes): Same.
23956 (scop_get_may_writes): Same.
23957 (scop_get_original_schedule): Remove.
23958 (scop_get_dependences): Do not call isl_union_map_compute_flow that
23959 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
23960 (compute_deps): Remove.
23961 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23962 (debug_schedule_ast): New.
23963 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23964 set_separate_option.
23965 (graphite_regenerate_ast_isl): Add dump.
23966 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23967 from scop->transformed_schedule.
23968 (graphite_regenerate_ast_isl): Add more dump.
23969 * graphite-optimize-isl.c (optimize_isl): Set
23970 scop->transformed_schedule. Check whether schedules are equal.
23971 (apply_poly_transforms): Move here.
23972 * graphite-poly.c (apply_poly_transforms): ... from here.
23973 (free_poly_bb): Static.
23974 (free_scop): Static.
23975 (pbb_number_of_iterations_at_time): Remove.
23976 (print_isl_ast): New.
23977 (debug_isl_ast): New.
23978 (debug_scop_pbb): New.
23979 * graphite-scop-detection.c (print_edge): Move.
23980 (print_sese): Move.
23981 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23982 (build_scop_scattering): Remove.
23983 (create_pw_aff_from_tree): Assert instead of bailing out.
23984 (add_condition_to_pbb): Remove unused code, do not fail.
23985 (add_conditions_to_domain): Same.
23986 (add_conditions_to_constraints): Remove.
23987 (build_scop_context): New.
23988 (add_iter_domain_dimension): New.
23989 (build_iteration_domains): Initialize pbb->iterators.
23990 Call add_conditions_to_domain.
23993 (index_outermost_in_loop): New.
23994 (index_pbb_in_loop): New.
23995 (outermost_pbb_in): New.
23996 (add_in_sequence): New.
23997 (add_outer_projection): New.
23998 (outer_projection_mupa): New.
23999 (add_loop_schedule): New.
24000 (build_schedule_pbb): New.
24001 (build_schedule_loop): New.
24002 (embed_in_surrounding_loops): New.
24003 (build_schedule_loop_nest): New.
24004 (build_original_schedule): New.
24005 (build_poly_scop): Call build_original_schedule.
24006 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24007 (free_poly_dr): Remove.
24008 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24009 (free_poly_bb): Remove.
24010 (debug_loop_vec): Remove.
24011 (print_isl_ast): Declare.
24012 (debug_isl_ast): Declare.
24013 (scop_do_interchange): Remove.
24014 (scop_do_strip_mine): Remove.
24015 (scop_do_block): Remove.
24016 (flatten_all_loops): Remove.
24017 (optimize_isl): Remove.
24018 (pbb_number_of_iterations_at_time): Remove.
24019 (debug_scop_pbb): Declare.
24020 (print_schedule_ast): Declare.
24021 (debug_schedule_ast): Declare.
24022 (struct scop): Remove schedule. Add original_schedule,
24023 transformed_schedule.
24024 (free_gimple_poly_bb): Remove.
24025 (print_generated_program): Remove.
24026 (debug_generated_program): Remove.
24027 (unify_scattering_dimensions): Remove.
24028 * sese.c (print_edge): ... here.
24029 (print_sese): ... here.
24030 (debug_edge): ... here.
24031 (debug_sese): ... here.
24032 * sese.h (print_edge): Declare.
24033 (print_sese): Declare.
24034 (dump_edge): Declare.
24035 (dump_sese): Declare.
24037 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24038 Sebastian Pop <s.pop@samsung.com>
24040 * Makefile.in: Set ISLVER in site.exp.
24042 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24044 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24045 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24046 through DECL_VALUE_EXPR for expansion.
24048 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24050 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24051 the frame info after reload completed.
24053 2016-01-25 Jeff Law <law@redhat.com>
24055 PR tree-optimization/69196
24056 PR tree-optimization/68398
24057 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24058 tree-ssa-threadupdate.c.
24059 (determine_bb_domination_status): Prototype
24060 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24061 (determine_bb_domination_status): No longer static.
24062 (valid_jump_thread_path): Remove code to detect characteristics
24063 of the jump thread path not associated with correctness.
24064 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24065 Correct test for thread path length. Count PHIs for real operands as
24066 statements that need to be copied. Do not count ASSERT_EXPRs.
24067 Look at all the blocks in the thread path. Compute and selectively
24068 filter thread paths based on threading through the latch, threading
24069 a multiway branch or crossing a multiway branch.
24071 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24073 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24074 decl with __attribute__ ((unused)) annotation.
24076 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24079 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24080 of operands is compatible with a statement vectype.
24082 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24084 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24085 improve wording for mixed storage order support.
24087 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24089 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24090 (vcvt_u64_f64): Likewise.
24091 (vcvta_s64_f64): Likewise.
24092 (vcvta_u64_f64): Likewise.
24093 (vcvtm_s64_f64): Likewise.
24094 (vcvtm_u64_f64): Likewise.
24095 (vcvtn_s64_f64): Likewise.
24096 (vcvtn_u64_f64): Likewise.
24097 (vcvtp_s64_f64): Likewise.
24098 (vcvtp_u64_f64): Likewise.
24100 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24102 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24103 (arc_init): Check validity mll64 option.
24104 (arc_save_restore): Use double load/store instruction.
24105 (arc_expand_movmem): Likewise.
24106 (arc_split_move): Don't split if we have double load/store
24107 instructions. Returns a boolean.
24108 (arc_process_double_reg_moves): Change function to return boolean
24109 instead of a sequence of instructions.
24110 (arc_dwarf_register_span): New function.
24111 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24112 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24113 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24114 (*movdf_insn): Likewise.
24115 * config/arc/arc.opt (mll64): New option.
24116 * config/arc/predicates.md (even_register_operand): New predicate.
24117 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24119 2016-01-25 Richard Biener <rguenther@suse.de>
24122 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24123 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24125 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24127 2016-01-25 Richard Biener <rguenther@suse.de>
24129 PR tree-optimization/69376
24130 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24132 (VN_INFO_ANTI_RANGE_P): New inline.
24133 (VN_INFO_RANGE_TYPE): Likewise.
24134 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24135 SSA_NAME_ANTI_RANGE_P.
24136 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24137 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24138 Properly query VN_INFO_RANGE_TYPE.
24140 2016-01-25 Nick Clifton <nickc@redhat.com>
24143 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24145 2016-01-23 Tom de Vries <tom@codesourcery.com>
24147 PR tree-optimization/69426
24148 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24151 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24153 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24154 "the the" with "the" in the comments.
24155 * ipa-devirt.c (build_type_inheritance_graph,
24156 update_type_inheritance_graph): Likewise.
24157 * tree.c (build_function_type_list_1): Likewise.
24158 * cfgloopmanip.c (scale_loop_profile): Likewise.
24159 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24160 * gimple-ssa-split-paths.c
24161 (find_block_to_duplicate_for_splitting_paths): Likewise.
24162 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24163 * expr.c (convert_move): Likewise.
24164 * var-tracking.c (vt_stack_adjustments): Likewise.
24165 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24166 * tree-vrp.c (test_for_singularity): Likewise.
24168 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24169 directly instead of building a temporary tree.
24172 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24173 remove <algorithm> include.
24175 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24178 * config/i386/i386.c: Include dojump.h.
24179 (expand_small_movmem_or_setmem,
24180 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24182 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24183 if dynamic_check != -1.
24185 2016-01-21 Jeff Law <law@redhat.com>
24187 PR middle-end/69347
24188 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24189 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24190 into dominated_by_p.
24191 (cprop_into_successor_phis): Avoid unnecessary tests.
24193 2016-01-22 Richard Henderson <rth@redhat.com>
24196 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24197 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24199 2016-01-22 Michael Matz <matz@suse.de>
24201 * system.h (string, algorithm): Include only conditionally.
24202 (new): Include always under C++.
24203 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24204 * final.c (toplevel): Ditto.
24205 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24206 * genconditions.c (write_header): Make gencondmd.c define
24208 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24210 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24211 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24213 2016-01-22 Christian Bruel <christian.bruel@st.com>
24216 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24218 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24221 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24222 define_insn_and_split. Ensure operands[1] and operands[0] do not
24223 get assigned the same register.
24225 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24227 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24229 2016-01-22 Christian Bruel <christian.bruel@st.com>
24231 * config/arm/arm-c.c (arm_pragma_target_parse):
24232 Remove warn_builtin_macro_redefined overwrite.
24234 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24236 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24237 flag_non_call_exceptions compatibility.
24239 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24242 * dwarf2out.c (add_child_die_after): New function.
24243 (dwarf_qual_info_t): New type.
24244 (dwarf_qual_info): New variable.
24245 (qualified_die_p): New function.
24246 (modified_type_die): For -fdebug-types-section, ensure
24247 canonical order of qualifiers. Put qualified DIEs adjacent
24248 to the corresponding non-qualified type DIE and search there
24249 for existing qualified DIEs.
24251 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24253 * doc/extend.texi (scalar_storage_order type attribute): Document
24254 restriction on type punning and aliasing, and remove future tense.
24256 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
24259 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24262 2016-01-21 Jeff Law <law@redhat.com>
24264 PR middle-end/69347
24265 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24266 useless call to record_temporary_equivalences.
24267 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24268 allocate 10 slots in the bb_path vector and let it grow as needed.
24269 (fsm_find_control_statement_thread_paths): Similarly for the next_path
24272 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24274 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24276 * configure: Regenerate.
24278 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
24280 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
24281 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
24283 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
24285 PR middle-end/66178
24286 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
24287 drop EXPAND_INITIALIZER.
24288 * rtl.h (contains_symbolic_reference_p): Declare.
24289 * rtlanal.c (contains_symbolic_reference_p): New function.
24290 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
24291 a subtraction into a NOT if symbolic constants are involved.
24293 2016-01-21 Anton Blanchard <anton@samba.org>
24294 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24297 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
24299 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
24302 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
24304 * config/microblaze/microblaze.c
24305 (get_branch_target): New.
24306 (insert_wic_for_ilb_runout): New.
24308 (microblaze_machine_dependent_reorg): New.
24309 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
24310 * config/microblaze/microblaze.md
24311 (UNSPEC_IPREFETCH): Define.
24312 (iprefetch): New pattern
24313 * config/microblaze/microblaze.opt
24314 (mxl-prefetch): New flag.
24316 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
24318 * config/microblaze/microblaze.h
24319 (FIXED_REGISTERS): Update in macro.
24320 (CALL_USED_REGISTERS): Update in macro.
24322 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
24324 PR rtl-optimization/68920
24325 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
24328 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
24330 PR rtl-optimization/68990
24331 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
24332 pseudo instead of inheritance ones.
24334 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24335 Nick Clifton <nickc@redhat.com>
24339 * config/mips/mips.c (mips_compute_frame_info): Initialise
24340 args_size and hard_frame_pointer_offset fields of the frame
24341 structure before calling mips_global_pointer.
24343 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24345 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
24347 * configure: Regenerate.
24349 2016-01-21 Richard Biener <rguenther@suse.de>
24351 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
24353 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
24355 * config/s390/s390.c (s390_asm_declare_function_size): Add code
24356 to actually emit the .size directive.
24358 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
24359 Jakub Jelinek <jakub@redhat.com>
24363 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
24364 args array size by one to avoid buffer overflow.
24366 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
24368 * config/s390/s390.md (pool_section_start): Use switch_to_section
24369 to select proper read-only data section instead of hardcoding
24371 (pool_section_end): Use switch_to_section to match the above.
24373 2016-01-21 Richard Biener <rguenther@suse.de>
24375 PR tree-optimization/69378
24376 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
24377 (set_ssa_val_to): Use it for dominance checks taking into
24378 account not executable edges.
24380 2016-01-21 Jakub Jelinek <jakub@redhat.com>
24383 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
24384 for bitsize instead of GET_MODE_PRECISION (mode).
24386 2016-01-20 Martin Sebor <msebor@redhat.com>
24389 * extend.texi (__sync Builtins): Clarify the semantics of
24390 __sync_fetch_and_OP built-ins on pointers.
24391 (__atomic Builtins): Same.
24393 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24394 Sebastian Pop <s.pop@samsung.com>
24396 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
24397 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
24398 (is_valid_rename): Same.
24399 (translate_isl_ast_to_gimple::get_rename): Same.
24400 (translate_isl_ast_to_gimple::rename_all_uses): Same.
24401 (translate_isl_ast_to_gimple::rename_uses): Same.
24402 (get_new_name): Check for close_phi nodes.
24403 (copy_loop_phi_args): Use phi_node_kind.
24404 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
24405 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
24407 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24408 Sebastian Pop <s.pop@samsung.com>
24410 Revert commit r229783.
24411 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
24412 Remove use of parameter_rename_map.
24413 (copy_def): Remove.
24414 (copy_internal_parameters): Remove.
24415 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
24416 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
24417 (free_sese_info): Do not free parameter_rename_map.
24418 (set_rename): Do not use parameter_rename_map.
24419 (rename_uses): Update call to set_rename.
24420 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
24421 * sese.h (parameter_rename_map_t): Remove.
24422 (struct sese_info_t): Remove field parameter_rename_map.
24424 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24425 Sebastian Pop <s.pop@samsung.com>
24427 * graphite-isl-ast-to-gimple.c: Fix comment.
24428 * graphite-scop-detection.c (defined_in_loop_p): New.
24429 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24430 names defined in loop.
24432 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24433 Sebastian Pop <s.pop@samsung.com>
24435 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24436 Discard unstructured if-then-else regions.
24438 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24439 Sebastian Pop <s.pop@samsung.com>
24441 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24442 (cleanup_loop_iter_dom): Remove.
24443 (build_loop_iteration_domains): Remove.
24444 (build_scop_context): Remove.
24445 (build_scop_iteration_domain): Remove.
24446 (add_loop_constraints): New.
24447 (build_iteration_domains): New.
24448 (build_poly_scop): Call build_iteration_domains.
24450 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24451 Sebastian Pop <s.pop@samsung.com>
24453 * graphite-scop-detection.c
24454 (scop_detection::harmful_loop_in_region): Free dom and loops.
24455 (scop_detection::loop_body_is_valid_scop): Free bbs.
24457 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24458 Sebastian Pop <s.pop@samsung.com>
24460 * graphite-scop-detection.c (record_loop_in_sese): New.
24461 (gather_bbs::before_dom_children): Call record_loop_in_sese.
24462 (build_scops): Remove call to build_sese_loop_nests.
24463 * sese.c (sese_record_loop): Remove.
24464 (build_sese_loop_nests): Remove.
24465 (new_sese_info): Remove region->loops.
24466 (free_sese_info): Same.
24467 * sese.h (sese_contains_loop): Same.
24468 (build_sese_loop_nests): Remove.
24469 (sese_contains_loop): Remove.
24471 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24472 Sebastian Pop <s.pop@samsung.com>
24474 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24475 loop_is_valid_in_scop.
24476 (scop_detection::harmful_stmt_in_region): Renamed
24477 harmful_loop_in_region.
24478 Call loop_is_valid_in_scop.
24480 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24481 Sebastian Pop <s.pop@samsung.com>
24483 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24486 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24487 Sebastian Pop <s.pop@samsung.com>
24489 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24490 * graphite.h (struct poly_bb): Remove field is_reduction.
24491 (PBB_IS_REDUCTION): Remove.
24493 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24494 Sebastian Pop <s.pop@samsung.com>
24496 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24497 (add_pdr_constraints): Same.
24498 (scop_get_reads): Same.
24499 (scop_get_must_writes): Same.
24500 (scop_get_may_writes): Same.
24501 (scop_get_original_schedule): Same.
24502 (extend_schedule): Same.
24503 (apply_schedule_on_deps): Same.
24504 (carries_deps): Same.
24505 (compute_deps): Same.
24506 (scop_get_dependences): Same.
24507 * graphite-isl-ast-to-gimple.c
24508 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24509 * graphite-optimize-isl.c (get_schedule_for_band): Same.
24510 (get_schedule_for_band_list): Same.
24511 (get_schedule_map): Same.
24512 (apply_schedule_map_to_scop): Same.
24513 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24514 (build_loop_iteration_domains): Same.
24515 (add_condition_to_pbb): Same.
24516 (add_param_constraints): Same.
24517 (pdr_add_memory_accesses): Same.
24518 (pdr_add_data_dimensions): Same.
24520 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24522 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24525 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24527 * common.opt (feliminate-dwarf2-dups): Replace references to
24528 "DWARF 2" with just "DWARF".
24529 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24530 * doc/extend.texi: Likewise.
24531 * doc/cpp.texi: Likewise.
24532 * doc/invoke.texi: Likewise.
24533 (Option Summary): Add -gdwarf to list of Debugging Options.
24534 (Debugging Options): Document -gdwarf.
24535 * doc/contrib.texi: Spell "DWARF" like that.
24537 2016-01-21 Jakub Jelinek <jakub@redhat.com>
24539 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24540 warning. Fix up formatting.
24542 PR middle-end/67653
24543 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24544 attempt to mark memory input operand addressable and
24545 call prepare_gimple_addressable in that case. Don't adjust
24546 input_location for diagnostics, use error_at instead.
24548 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
24550 * config/rs6000/ppc-auxv.h: New file.
24551 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24552 (cpu_is): Likewise.
24553 (cpu_supports): Likewise.
24554 * config/rs6000/rs6000.c: include "ppc-auxv.h".
24555 (cpu_is_info): New variable.
24556 (cpu_supports_info): Likewise.
24557 (tcb_verification_symbol): Likewise.
24558 (cpu_builtin_p): Likewise.
24559 (cpu_expand_builtin): New function.
24560 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24561 (rs6000_init_builtins): Likewise.
24562 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24563 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24564 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24565 * configure: Regenerate.
24566 * config.in: Likewise.
24567 * doc/extend.texi (PowerPC Built-in Functions): Document
24568 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24570 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
24573 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24575 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24578 2016-01-20 Richard Henderson <rth@redhat.com>
24584 * tree.c (tm_define_builtin): New.
24585 (find_tm_vector_type): New.
24586 (build_tm_vector_builtins): New.
24587 (build_common_builtin_nodes): Call it.
24589 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
24591 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24592 (arm_fp_ok): Likewise.
24593 (arm_fp): Likewise.
24594 (arm_crypto): Likewise.
24596 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24597 Richard Biener <rguenther@suse.de>
24599 PR tree-optimization/69328
24600 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24601 vectors have same number of elements.
24602 (vectorizable_condition): Fix masked version recognition.
24604 2016-01-20 Richard Biener <rguenther@suse.de>
24606 PR tree-optimization/69345
24607 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24608 (VN_INFO_PTR_INFO): Likewise.
24609 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24610 info when it is equal between non-dominating SSA names.
24611 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24612 Make sure to look at original SSA infos.
24614 2016-01-20 Jeff Law <law@redhat.com>
24617 * config/m68k/predicates.md (pow2_m1_operand): New predicate
24619 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24620 (pc_or_label_operand): New predicate.
24621 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24622 tests for small integers that are 2^n - 1.
24624 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
24626 * doc/invoke.texi (Options Summary): Add '.' after @xref.
24628 2016-01-19 Jeff Law <law@redhat.com>
24630 PR middle-end/69347
24631 * tree-ssa-threadbackwards.c
24632 (fsm_find_control_statement_thread_paths): Do not try to lookup
24633 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24635 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24637 * doc/lto.texi: Remove text that says only Gold has linker plugin
24640 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
24642 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24643 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24644 the DIE accordingly.
24645 (modified_type_die): Add REVERSE parameter and pass it recursively,
24646 as well as to base_type_die. Adjust presence check accordingly.
24647 (base_type_for_mode): Adjust call to modified_type_die.
24648 (add_type_attribute): Add REVERSE parameter and pass it to
24650 (generic_parameter_die): Adjust call to add_type_attribute.
24651 (add_scalar_info): Likewise.
24652 (add_subscript_info): Likewise.
24653 (gen_array_type_die): Likewise.
24654 (gen_descr_array_type_die): Likewise.
24655 (gen_entry_point_die): Likewise.
24656 (gen_enumeration_type_die): Likewise.
24657 (gen_formal_parameter_die): Likewise.
24658 (gen_subprogram_die): Likewise.
24659 (gen_variable_die ): Likewise.
24660 (gen_const_die): Likewise.
24661 (gen_field_die): Likewise.
24662 (gen_pointer_type_die): Likewise.
24663 (gen_reference_type_die): Likewise.
24664 (gen_ptr_to_mbr_type_die): Likewise.
24665 (gen_inheritance_die): Likewise.
24666 (gen_subroutine_type_die): Likewise.
24667 (gen_typedef_die): Likewise.
24668 (force_type_die): Adjust call to modified_type_die.
24670 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
24672 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24673 flow throughout the file. Fix broken link to Objective-C 2.0
24675 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24678 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24680 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24682 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24685 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24686 (maybe_record_node): Record cxa_pure_virtual as the only possible
24687 target if there are not ohter candidates.
24688 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24690 2016-01-19 Richard Biener <rguenther@suse.de>
24692 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24693 (get_memory_order): Likewise.
24695 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
24697 * tree-vect-stmts.c (vectorizable_store): Check
24700 2016-01-19 David Malcolm <dmalcolm@redhat.com>
24703 * gcc.c (driver::decode_argv): Add call to
24704 init_opts_obstack before init_options_struct.
24705 * opts.c (init_opts_obstack): Remove idempotency.
24706 (init_options_struct): Replace call to init_opts_obstack
24707 with a gcc_assert to verify that it has already been called.
24708 * toplev.c (toplev::main): Add call to init_opts_obstack before
24709 calls to init_options_struct.
24710 (toplev::finalize): Move cleanup of opts_obstack next to
24711 cleanup of save_decoded_options, clearing the latter, and
24712 save_decoded_options_count.
24714 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24717 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24718 attribute to unconditional. Remove %? from output template.
24720 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24721 Jiong Wang <jiong.wang@arm.com>
24723 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24724 generated from different expand order.
24726 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24728 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24729 Add support for CCMP costing.
24731 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24733 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24734 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24735 (fccmpe<mode>): Likewise.
24736 (fcmp): Rename to fcmp and globalize pattern.
24738 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24739 (aarch64_gen_ccmp_next): Add FP support.
24741 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24743 * target.def (gen_ccmp_first): Update documentation.
24744 (gen_ccmp_next): Likewise.
24745 * doc/tm.texi (gen_ccmp_first): Update documentation.
24746 (gen_ccmp_next): Likewise.
24747 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24748 expand_ccmp_expr_1. Improve comments.
24749 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24750 (ccmp_ior<mode>): Remove pattern.
24751 (cmp<mode>): Remove expand.
24752 (cmp): Globalize pattern.
24753 (cstorecc4): Use cc_register.
24754 (mov<mode>cc): Remove ccmp_cc_register check.
24755 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24756 Simplify after removal of CC_DNE/* modes.
24757 (aarch64_ccmp_mode_to_code): Remove.
24758 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
24759 In 'k' case use integer as condition.
24760 (aarch64_nzcv_codes): Remove inverted cases.
24761 (aarch64_code_to_ccmode): Remove.
24762 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
24763 comparison with CC register to be used in folowing CCMP/branch/CSEL.
24764 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24765 pattern. Return the comparison with CC register. Invert conditions
24766 when bitcode is OR.
24767 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24768 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24770 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24772 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24773 instrumented_version.
24775 2016-01-19 Richard Biener <rguenther@suse.de>
24777 PR tree-optimization/69336
24778 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24779 handled components with get_ref_base_and_extent.
24780 (equal_mem_array_ref_p): Adjust.
24782 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24785 * shrink-wrap.c: Include valtrack.h.
24786 (move_insn_for_shrink_wrap): Add DEBUG argument. If
24787 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24788 in between insn and where it will be moved to. Call
24789 dead_debug_insert_temp.
24790 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
24791 first and dead_debug_local_finish at the end.
24792 For uses and defs bitmap, handle all regs in between REGNO and
24793 END_REGNO, not just the first one.
24795 2016-01-19 Richard Biener <rguenther@suse.de>
24797 PR tree-optimization/69352
24798 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24799 (equal_mem_array_ref_p): Constrain size and max size properly.
24800 Compare the reverse flag.
24802 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
24804 * ira.c (ira): Update regstat data if we deleted insns.
24806 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24808 PR rtl-optimization/68955
24809 PR rtl-optimization/64557
24810 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24811 here. Fix up formatting.
24812 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24814 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24817 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24818 assume that the node has body.
24819 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24822 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24824 * lto-streamer-out.c (lto_output): Do not stream instrumentation
24827 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24829 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24830 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24832 2016-01-19 Martin Jambor <mjambor@suse.cz>
24833 Martin Liska <mliska@suse.cz>
24834 Michael Matz <matz@suse.de>
24836 * Makefile.in (OBJS): Add new source files.
24837 (GTFILES): Add hsa.c.
24838 * common.opt (disable_hsa): New variable.
24839 (-Whsa): New warning.
24840 * config.in (ENABLE_HSA): New.
24841 * configure.ac: Treat hsa differently from other accelerators.
24842 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24843 $enable_offloading.
24844 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24845 * doc/install.texi (Configuration): Document --with-hsa-runtime,
24846 --with-hsa-runtime-include, --with-hsa-runtime-lib and
24847 --with-hsa-kmt-lib.
24848 * doc/invoke.texi (-Whsa): Document.
24849 (hsa-gen-debug-stores): Likewise.
24850 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24851 to invoke offload compiler for hsa acclerator.
24852 * opts.c (common_handle_option): Determine whether HSA offloading
24853 should be performed.
24854 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24855 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24856 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24857 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24858 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24859 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24860 GF_OMP_FOR_KIND_GRID_LOOP.
24861 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24862 (pp_gimple_stmt_1): Likewise.
24863 * gimple-walk.c (walk_gimple_stmt): Likewise.
24864 * gimple.c (gimple_build_omp_grid_body): New function.
24865 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24866 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24867 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24868 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24869 GF_OMP_TEAMS_GRID_PHONY.
24870 (gimple_statement_omp_single_layout): Updated comments.
24871 (gimple_build_omp_grid_body): New function.
24872 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24873 (gimple_omp_for_grid_phony): New function.
24874 (gimple_omp_for_set_grid_phony): Likewise.
24875 (gimple_omp_parallel_grid_phony): Likewise.
24876 (gimple_omp_parallel_set_grid_phony): Likewise.
24877 (gimple_omp_teams_grid_phony): Likewise.
24878 (gimple_omp_teams_set_grid_phony): Likewise.
24879 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24880 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24881 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24882 (BUILT_IN_GOMP_TARGET): Updated type.
24883 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24884 (adjust_for_condition): New function.
24885 (get_omp_for_step_from_incr): Likewise.
24886 (extract_omp_for_data): Moved parts to adjust_for_condition and
24887 get_omp_for_step_from_incr.
24888 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24889 (fixup_child_record_type): Bail out if receiver_decl is NULL.
24890 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24891 (scan_omp_parallel): Do not create child functions for phony
24893 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24894 (scan_omp_1_op): Checking assert we are not remapping to
24895 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
24896 (parallel_needs_hsa_kernel_p): New function.
24897 (expand_parallel_call): Register apprpriate parallel child
24898 functions as HSA kernels.
24899 (grid_launch_attributes_trees): New type.
24900 (grid_attr_trees): New variable.
24901 (grid_create_kernel_launch_attr_types): New function.
24902 (grid_insert_store_range_dim): Likewise.
24903 (grid_get_kernel_launch_attributes): Likewise.
24904 (get_target_argument_identifier_1): Likewise.
24905 (get_target_argument_identifier): Likewise.
24906 (get_target_argument_value): Likewise.
24907 (push_target_argument_according_to_value): Likewise.
24908 (get_target_arguments): Likewise.
24909 (expand_omp_target): Call get_target_arguments instead of looking
24910 up for teams and thread limit.
24911 (grid_expand_omp_for_loop): New function.
24912 (grid_arg_decl_map): New type.
24913 (grid_remap_kernel_arg_accesses): New function.
24914 (grid_expand_target_kernel_body): New function.
24915 (expand_omp): Call it.
24916 (lower_omp_for): Do not emit phony constructs.
24917 (lower_omp_taskreg): Do not emit phony constructs but create for them
24918 a temporary variable receiver_decl.
24919 (lower_omp_taskreg): Do not emit phony constructs.
24920 (lower_omp_teams): Likewise.
24921 (lower_omp_grid_body): New function.
24922 (lower_omp_1): Call it.
24923 (grid_reg_assignment_to_local_var_p): New function.
24924 (grid_seq_only_contains_local_assignments): Likewise.
24925 (grid_find_single_omp_among_assignments_1): Likewise.
24926 (grid_find_single_omp_among_assignments): Likewise.
24927 (grid_find_ungridifiable_statement): Likewise.
24928 (grid_target_follows_gridifiable_pattern): Likewise.
24929 (grid_remap_prebody_decls): Likewise.
24930 (grid_copy_leading_local_assignments): Likewise.
24931 (grid_process_kernel_body_copy): Likewise.
24932 (grid_attempt_target_gridification): Likewise.
24933 (grid_gridify_all_targets_stmt): Likewise.
24934 (grid_gridify_all_targets): Likewise.
24935 (execute_lower_omp): Call grid_gridify_all_targets.
24936 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24937 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24938 (tree_omp_clause): Added union field dimension.
24939 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24940 * tree.c (omp_clause_num_ops): Added number of arguments of
24941 OMP_CLAUSE__GRIDDIM_.
24942 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24943 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24944 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24945 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24946 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24947 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24948 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24949 * tree-pass.h (make_pass_gen_hsail): Declare.
24950 (make_pass_ipa_hsa): Likewise.
24951 * ipa-hsa.c: New file.
24952 * lto-section-in.c (lto_section_name): Add hsa section name.
24953 * lto-streamer.h (lto_section_type): Add hsa section.
24954 * timevar.def (TV_IPA_HSA): New.
24955 * hsa-brig-format.h: New file.
24956 * hsa-brig.c: New file.
24957 * hsa-dump.c: Likewise.
24958 * hsa-gen.c: Likewise.
24961 * toplev.c (compile_file): Call hsa_output_brig.
24962 * hsa-regalloc.c: New file.
24964 2016-01-18 Jeff Law <law@redhat.com>
24966 PR tree-optimization/69320
24967 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24968 ranged object, do nothing if the RHS constant is not [0..1].
24969 (optimize_stmt): Comparing a boolean ranged object against a
24970 constant outside [0..1] results in a compile-time constant.
24972 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24975 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
24977 * doc/invoke.texi (Invoking GCC): Add new section to menu.
24978 (Option Summary): Update to reflect new section and moved options.
24979 (C++ Dialect Options): Move -fstats to new section.
24980 (Debugging Options): Move all dump, statistics, and other GCC
24981 developer options to new section. Rewrite section introduction
24982 and re-order remaining options to put the more basic ones first.
24983 (Optimization Options): Move -fira-verbose and -flto-report* to
24985 (Developer Options): New section incorporating moved options.
24986 * doc/cppopts.texi (-dM): Update cross-reference.
24988 2016-01-18 Richard Henderson <rth@redhat.com>
24991 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24992 operands to pseudo only if CSE is expected. Split long immediate
24993 operands only after reload, and for the stack pointer.
24994 (*add<GPI>3_pluslong): Remove.
24995 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24996 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
24997 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24998 (*add<GPI>3 peepholes): New.
24999 (*add<GPI>3 splitters): New.
25000 * config/aarch64/constraints.md (Upl): New.
25001 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25003 2016-01-18 Richard Biener <rguenther@suse.de>
25005 PR tree-optimization/69297
25006 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25008 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25010 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25012 PR middle-end/68542
25013 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25014 of mixind vector and scalar types.
25015 (fold_relational_const): Add handling of vector
25016 comparison with boolean result.
25017 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25018 comparison of vector operands with boolean result for EQ/NE only.
25019 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25020 (verify_gimple_cond): Likewise.
25021 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25024 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25026 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25029 2016-01-18 Richard Biener <rguenther@suse.de>
25031 PR middle-end/69308
25032 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25034 2016-01-18 Tom de Vries <tom@codesourcery.com>
25036 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25038 2016-01-18 Tom de Vries <tom@codesourcery.com>
25040 * omp-low.c (set_oacc_fn_attrib): Make extern.
25041 * omp-low.h (set_oacc_fn_attrib): Declare.
25042 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25043 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25044 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25045 Add and handle function parameter oacc_kernels_p.
25046 (find_reduc_addr, get_omp_data_i_param): New function.
25047 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25048 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25049 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25050 Calculate dominance info. Skip loops that are not in a kernels region
25051 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25052 (pass_parallelize_loops::execute): Call parallelize_loops with
25053 oacc_kernels_p argument.
25054 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25055 New member function.
25056 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25057 * passes.def: Add argument to pass_parallelize_loops instantation.
25059 2016-01-18 Tom de Vries <tom@codesourcery.com>
25061 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25062 pass_parallelize_loops to be run outside the loop pipeline.
25064 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25066 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25067 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25069 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25072 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25073 using get_ref_base_and_extent.
25074 (equal_mem_array_ref_p): New.
25075 (hashable_expr_equal_p): Add call to previous.
25077 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25080 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25081 (sra_initialize): Allocate disqualified_constants.
25082 (sra_deinitialize): Free disqualified_constants.
25083 (disqualify_candidate): Update disqualified_constants when appropriate.
25084 (create_access): Scan for constant-pool entries as we go along.
25085 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25086 (maybe_add_sra_candidate): Allow constant-pool entries.
25087 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25088 (initialize_constant_pool_replacements): New.
25089 (sra_modify_assign): Avoid mangling assignments created by previous,
25090 and don't generate writes into constant pool.
25091 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25093 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25095 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25096 andnot instruction.
25097 (scalar_chain::convert_op): Likewise.
25098 * config/i386/i386.md (*andndi3_doubleword): New.
25100 2016-01-18 Richard Biener <rguenther@suse.de>
25102 PR tree-optimization/69170
25103 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25104 building a vector from scalar results of a pattern stmt.
25106 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25108 * haifa-sched.c (autopref_multipass_init): Work around
25109 -Wmaybe-uninitialized warning.
25111 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25113 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25114 against the constant 0.
25116 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25118 PR tree-optimization/68799
25119 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25120 look up phi candidates in the statement-candidate map.
25121 (phi_add_costs): Likewise.
25122 (record_phi_increments): Likewise.
25123 (phi_incr_cost): Likewise.
25124 (ncd_with_phi): Likewise.
25125 (all_phi_incrs_profitable): Likewise.
25127 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25129 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25130 -Wmaybe-uninitialized warning.
25132 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25134 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25135 (Option Summary): Update to reflect new section and moved options.
25136 (C++ Dialect Options): Move -fvtable-verify and related options.
25137 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25138 and profiling-related options.
25139 (Optimization Options): Move profile generation options and
25140 -fstack-protector and related options.
25141 (Instrumentation Options): New section incorporating moved options.
25142 (Code Generation Options): Move -finstrument-functions and
25143 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25145 2016-01-16 Tom de Vries <tom@codesourcery.com>
25147 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25149 2016-01-16 Tom de Vries <tom@codesourcery.com>
25151 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25153 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25155 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25156 that checks whether the table is already empty. Rename the
25157 original implementation to...
25158 (hash_table::empty_slot): ...this new private function.
25160 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25162 PR diagnostic/68899
25163 * diagnostic-show-locus.c (layout::print_source_line): Move x
25164 offset of line until after call to
25165 get_line_width_without_trailing_whitespace.
25167 2016-01-15 Jeff Law <law@redhat.com>
25169 PR tree-optimization/69270
25170 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25171 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25172 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25173 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25174 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25175 ssa_name_has_boolean_range and constant_boolean_node.
25177 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25179 PR rtl-optimization/69030
25180 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25182 (spill_pseudos): Delete debug insn for dead pseudo.
25183 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25185 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25187 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25189 (TYPES_UNOPUS): Likewise.
25190 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25191 builtin type, from UNOP to UNOPUS.
25192 (lbtruncuv4sf): Likewise.
25193 (lbtruncuv2df): Likewise.
25194 (lrounduv2sf): Likewise.
25195 (lrounduv4sf): Likewise.
25196 (lrounduv2df): Likewise.
25197 (lroundusf): Likewise.
25198 (lroundusf): Likewise.
25199 (lceiluv2sf): Likewise.
25200 (lceiluv4sf): Likewise.
25201 (lceiluv2df): Likewise.
25202 (lceilusf): Likewise.
25203 (lceiludf): Likewise.
25204 (lflooruv2sf): Likewise.
25205 (lflooruv4sf): Likewise.
25206 (lflooruv2df): Likewise.
25207 (lfloorusf): Likewise.
25208 (lfloorudf): Likewise.
25209 (lfrintnuv2sf): Likewise.
25210 (lfrintnuv4sf): Likewise.
25211 (lfrintnuv2df): Likewise.
25212 (lfrintnusf): Likewise.
25213 (lfrintnudf): Likewise.
25214 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25216 (vcvtq_u32_f32): Likewise.
25217 (vcvtq_u64_f64): Likewise.
25218 (vcvta_u32_f32): Likewise.
25219 (vcvtaq_u32_f32): Likewise.
25220 (vcvtaq_u64_f64): Likewise.
25221 (vcvtm_u32_f32): Likewise.
25222 (vcvtmq_u32_f32): Likewise.
25223 (vcvtmq_u64_f64): Likewise.
25224 (vcvtn_u32_f32): Likwise.
25225 (vcvtnq_u32_f32): Likewise.
25226 (vcvtnq_u64_f64): Likewise.
25227 (vcvtp_u32_f32): Likewise.
25228 (vcvtpq_u32_f32): Likewise.
25229 (vcvtpq_u64_f64): Likewise.
25230 (vcvtmd_u64_f64): Likewise.
25231 (vcvtms_u32_f32): Likewise.
25232 (vcvtad_u64_f64): Likewise.
25233 (vcvtas_u32_f32): Likewise.
25234 (vcvtnd_u64_f64): Likewise.
25235 (vcvtns_u32_f32): Likewise.
25236 (vcvtpd_u64_f64): Likewise.
25237 (vcvtps_u32_f32): Likewise.
25239 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25241 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25242 CSEL of zero_extended registers.
25244 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25246 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25247 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25249 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25251 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25252 false when argument string is not found in the attributes table
25255 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
25258 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25259 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25260 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25261 precision estimate.
25263 2016-01-15 Richard Biener <rguenther@suse.de>
25265 PR tree-optimization/66856
25266 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25267 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25268 (vect_create_new_slp_node): Increment stmt reference count.
25269 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25270 an SLP tree before swapping operands.
25271 (vect_build_slp_tree): Likewise.
25272 (destroy_bb_vec_info): Free stmt info after SLP instances.
25273 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25274 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25275 (STMT_VINFO_NUM_SLP_USES): New macro.
25277 2016-01-15 Richard Biener <rguenther@suse.de>
25280 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
25281 (add_linkage_name): ... here.
25282 (gen_typedef_die): Use add_linkage_name_raw instead of
25283 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
25286 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
25288 * gimplify.c (oacc_default_clause): Decode reference and pointer
25289 types for both kernels and parallel regions.
25291 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
25293 PR middle-end/69246
25294 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
25296 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25298 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
25299 (convert_scalars_to_vector): Likewise.
25301 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
25303 * doc/extend.texi (Type Traits): Fix grammar.
25305 2016-01-15 Martin Jambor <mjambor@suse.cz>
25307 * tree-inline.c (remap_decl): Use existing dclarations if
25308 remapping a type and prevent_decl_creation_for_types.
25309 (replace_locals_stmt): Do an initial remapping of non-VLA typed
25310 decls first. Do real remapping with
25311 prevent_decl_creation_for_types set.
25312 * tree-inline.h (copy_body_data): New field
25313 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
25316 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
25318 * config/s390/s390.opt (mmvcle): More verbose help text.
25320 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
25322 * config/s390/s390.opt: Add period to -mzvector option text.
25324 2016-01-15 Richard Biener <rguenther@suse.de>
25326 PR tree-optimization/68961
25327 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
25328 of invariants in stores again.
25330 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25332 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
25334 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25336 * config/i386/i386.c (ix86_expand_branch): Don't split
25337 DI mode xor instruction to SI mode.
25339 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
25342 * ipa-icf.c (sem_function::merge): Virtual functions may become
25343 reachable even if they address is not taken and there are no
25346 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
25348 * lto-streamer-out.c (subtract_estimated_size): New function.
25349 (get_symbol_initial_value): Use it.
25351 2016-01-15 Christian Bruel <christian.bruel@st.com>
25354 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
25355 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
25356 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
25357 use add_builtin_function_ext_scope instead of add_builtin_function.
25358 (neon_set_p, neon_crypto_set_p): Remove.
25359 (arm_init_builtins): Always call arm_init_neon_builtins and
25360 arm_init_crypto_builtins.
25361 (arm_expand_builtin): Check that builtins are allowed for the arch.
25362 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
25363 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
25364 arm_init_neon_builtins call.
25366 2016-01-15 Richard Biener <rguenther@suse.de>
25368 PR tree-optimization/69117
25369 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
25370 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
25371 of the leader conservatively.
25372 (free_scc_vn): Restore original SSA name infos.
25374 2016-01-14 Jeff Law <law@redhat.com>
25376 PR tree-optimization/69270
25377 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
25378 single bit of precision, verify it's also unsigned.
25379 (record_edge_info): Use constant_boolean_node rather than fold_convert
25380 to convert boolean_true/boolean_false to the right type.
25382 2016-01-14 Richard Henderson <rth@redhat.com>
25385 * loop-doloop.c (record_reg_sets): New.
25386 (doloop_optimize): Reject the transform if the sequence
25387 clobbers registers live at the end of the loop block.
25388 (doloop_optimize_loops): Enable df_live if needed.
25390 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25392 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
25393 * config/rs6000/rs6000.c: Likewise.
25394 * config/rs6000/rs6000.h: Likewise.
25395 * config/rs6000/rs6000.md: Likewise.
25396 * doc/extend.texi: Likewsie.
25398 2016-01-14 Jeff Law <law@redhat.com>
25400 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
25403 2016-01-14 Richard Henderson <rth@redhat.com>
25407 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
25408 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
25409 instead of builtin_decl_declared_p to test for declaration.
25411 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
25413 * doc/loop.texi (Loop Analysis and Representation): Document
25414 loop_depth function.
25416 2016-01-14 Tom de Vries <tom@codesourcery.com>
25418 PR tree-optimization/68773
25419 * omp-low.c (expand_omp_target): Don't set force_output.
25420 * varpool.c (varpool_node::get_create): Same.
25421 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
25422 offload_funcs with force_output.
25424 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25427 * lra-eliminations.c (move_plus_up): Don't change anything if either
25428 the outer or inner subreg mode is not MODE_INT.
25429 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25430 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25432 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25434 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25435 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25436 reduc_uplus_@var{m}): Remove.
25437 * expr.c (expand_expr_real_2): Remove expansion path for
25438 reduc_[us](min|max|plus) optabs.
25439 * optabs-tree.c (scalar_reduc_to_vector): Remove.
25440 * optabs-tree.h (scalar_reduc_to_vector): Remove.
25441 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25442 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25443 * tree-vect-loop.c (vectorizable_reduction): Remove test for
25444 reduc_[us](min|max|plus) optabs.
25446 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25448 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25449 (reduc_plus_scal_v2sf): New.
25450 (reduc_smax_v2sf): Rename to...
25451 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25452 (reduc_smin_v2sf): Rename to...
25453 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25455 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
25457 * alias.c (compare_base_symbol_refs): New function.
25458 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25461 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25463 PR middle-end/68146
25464 PR tree-optimization/69155
25465 * tree-complex.c: Include cfganal.h.
25466 (phis_to_revisit): New variable.
25467 (extract_component): Add phiarg_p argument. Assert that returned
25468 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25469 (update_phi_components): Partly rewrite to use loop over real/imag
25470 components instead of code duplication. If extract_component returns
25471 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25472 create_tmp_reg into the PHI node instead, and mention the phi triplet
25473 in phis_to_revisit.
25474 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
25475 in phis_to_revisit at the end.
25477 2016-01-14 Richard Biener <rguenther@suse.de>
25479 PR tree-optimization/68060
25480 * tree-vect-loop.c (vect_is_simple_reduction): Check the
25481 outer loop reduction is only used in the inner loop before
25482 detecting a double reduction.
25484 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25487 * combine.c (expand_field_assignment): Punt if compute_mode is
25488 unsupported scalar mode.
25490 2016-01-14 Richard Biener <rguenther@suse.de>
25492 PR tree-optimization/66856
25493 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25494 SLP node only if it built successfully.
25495 (vect_analyze_slp_instance): Adjust.
25497 2016-01-14 Jeff Law <law@redhat.com>
25499 PR tree-optimization/69270
25500 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25501 (record_edge_info): Use it. Convert boolean_{true,false}_node
25502 to the type of op0.
25504 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
25507 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25508 use block_ultimate_origin
25509 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25511 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25513 * doc/invoke.texi (Submodel Options): Rename section to
25514 "Machine-Dependent Options" to better reflect its content.
25515 Rewrite introductory text to remove archaic CPU names.
25518 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25520 * doc/invoke.texi (Code Gen Options): Move section up in file,
25521 before target-specific options. Update menu and option summary
25522 to reflect the new section ordering.
25524 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25526 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25527 (C++ Dialect Options): Add cross-reference to -std option.
25528 * doc/standards.texi (C++ Language): Document C++14 support.
25530 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25532 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25533 for pack/unpack functions for __ibm128.
25534 (PACK_IF): Likewise.
25535 (UNPACK_IF): Likewise.
25537 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25538 support for __ibm128 pack/unpack functions.
25539 (rs6000_invalid_builtin): Likewise.
25540 (rs6000_init_builtins): Likewise.
25541 (rs6000_opt_masks): Likewise.
25543 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25544 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25546 (RS6000_BTM_COMMON): Likewise.
25548 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25549 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25550 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25551 128-bit floating point. Add support for the double values to be
25552 in Altivec registers for TF/IF packing and unpacking, but restrict
25553 TD packing sub-fields to be FPR registers. Don't allow overlapped
25554 register support for packing. Allow pack inputs to be memory
25555 locations. Don't build generator functions for unpack<mode>_dm
25556 and unpack<mode>_nodm.
25557 (unpack<mode>_dm): Likewise.
25558 (unpack<mode>_nodm): Likewise.
25559 (pack<mode>): Likewise.
25561 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25562 built-in functions to pack/unpack explicit __ibm128 values.
25563 (__builtin_unpack_ibm128): Likewise.
25565 * doc/extend.texi (PowerPC Built-in Functions): Document
25566 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25568 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
25571 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25572 Add new arg loc and pass it down as context.
25573 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25574 to the location to use for the warning.
25575 (check_function_arguments): New arg loc. All callers changed. Pass
25576 it to check_function_nonnull.
25577 * c-common.h (check_function_arguments): Adjust declaration.
25579 2016-01-13 Jakub Jelinek <jakub@redhat.com>
25581 PR tree-optimization/69156
25582 * gimple.c (validate_type): Removed.
25583 (gimple_builtin_call_types_compatible_p): Use
25584 useless_type_conversion_p instead of validate_type.
25585 * value-prof.c (gimple_stringop_fixed_value): Fold
25586 icall_size to correct type.
25588 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25590 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25593 2016-01-13 Richard Henderson <rth@redhat.com>
25596 * target.def (builtin_tm_load, builtin_tm_store): Remove.
25597 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25598 (ix86_builtin_tm_store): Remove.
25599 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25600 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25601 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25602 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25603 * doc/tm.texi: Rebuild.
25605 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25606 (BUILT_IN_TM_MEMCPY_RTWN): New.
25607 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25608 fallback from vector to integer helpers.
25609 (build_tm_load): Handle vector types directly, instead of
25611 (build_tm_store): Likewise.
25612 (expand_assign_tm): Prepare for register types not handled by
25613 the above. Copy them to memory and use memcpy.
25614 * tree.c (tm_define_builtin): New.
25615 (find_tm_vector_type): New.
25616 (build_tm_vector_builtins): New.
25617 (build_common_builtin_nodes): Call it.
25619 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
25621 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25622 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
25624 2016-01-13 Tom de Vries <tom@codesourcery.com>
25626 PR tree-optimization/69169
25627 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25628 handled_struct_type param.
25629 (create_variable_info_for, intra_create_variable_infos): Call
25630 create_variable_info_for_1 with extra arg.
25632 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
25634 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25635 and "armv8.1-a+crc" entries.
25637 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
25640 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25641 Change first operand predicate from register_or_constm1_operand
25642 to register_operand.
25643 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25644 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25645 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25646 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25647 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25648 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25649 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25650 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25651 comparison with constm1_rtx from vec_prefetch_gen part.
25653 2016-01-13 Richard Biener <rguenther@suse.de>
25655 PR tree-optimization/69013
25656 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25657 Exchange assert for a test.
25659 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25662 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25664 2016-01-13 Richard Biener <rguenther@suse.de>
25666 PR tree-optimization/69242
25667 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25668 assert with a check.
25670 2016-01-13 Richard Biener <rguenther@suse.de>
25672 PR tree-optimization/69186
25673 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25674 Properly guard vect_update_misalignment_for_peel call.
25676 2016-01-12 Jeff Law <law@redhat.com>
25678 PR tree-optimization/pr67755
25679 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25680 "need_profile_correction".
25681 (thread_block_1): Initialize new field to false by default. If we
25682 have multiple thread paths through a common joiner to different
25683 final targets, then set new field to true.
25684 (compute_path_counts): Only do count adjustment when it's really
25687 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25689 * doc/invoke.texi (Spec Files): Move section down in file, past
25690 all command-line option descriptions.
25692 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25694 PR middle-end/54809
25695 * doc/gty.texi: Remove documentation of mark_hook.
25696 * gengtype.c (struct write_types_data): Remove code to support
25697 mark_hook attribute.
25698 (walk_type): Likewise.
25699 (write_func_for_structure): Likewise.
25701 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25703 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25704 Directory Options, and -specs= to Overall Options.
25705 (Overall Options): Adjust similarly. Reorder to group related
25706 options together. Make -specs= cross-reference the spec file details.
25707 (Directory Options): Adjust similarly.
25709 2016-01-12 Jeff Law <law@redhat.com>
25711 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25713 2016-01-12 Olivier Hainque <hainque@adacore.com>
25715 * gcc.c (spec_undefvar_allowed): New global.
25716 (process_command): Set to true when running for --version or --help,
25718 (getenv_spec_function): When the variable is not defined, use the
25719 variable name as the variable value if we're allowed not to issue
25722 2016-01-12 Bin Cheng <bin.cheng@arm.com>
25724 PR tree-optimization/68911
25725 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25726 information computed for expression "init + nit * step".
25728 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25730 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
25731 about name of GCC executable. Remove deleted node from menu.
25732 (Directory Options) <-B>: Remove cross-reference to deleted node.
25733 (Target Options): Delete section.
25735 2016-01-12 Christian Bruel <christian.bruel@st.com>
25738 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25739 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25741 2016-01-12 Jakub Jelinek <jakub@redhat.com>
25744 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25745 aligned_mem is properly set for AVX512-VL floating point masked
25749 * ifcvt.c (cond_exec_process_if_block): When removing the last
25750 insn from then_bb, remove also any possible barriers that follow it.
25752 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
25756 * config/i386/iamcu.h (SIZE_TYPE): New macro.
25757 (PTRDIFF_TYPE): Likewise.
25758 (WCHAR_TYPE): Likewise.
25759 (WCHAR_TYPE_SIZE): Likewise.
25760 (STDINT_LONG32): Likewise.
25762 2016-01-12 Richard Biener <rguenther@suse.de>
25764 PR tree-optimization/69053
25765 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25766 convert initial value for cond reductions.
25768 2016-01-12 Richard Biener <rguenther@suse.de>
25770 PR tree-optimization/69007
25771 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25772 widen_sum after dot_prod and sad.
25774 2016-01-12 Richard Biener <rguenther@suse.de>
25776 PR tree-optimization/69168
25777 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25778 pattern stmt SLP type.
25779 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25780 end up unused so cope with that case.
25782 2016-01-12 Richard Biener <rguenther@suse.de>
25784 PR tree-optimization/69157
25785 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25786 stmts def type only during analyze phase.
25787 (vectorizable_call): Likewise.
25788 (vectorizable_simd_clone_call): Likewise.
25789 (vectorizable_conversion): Likewise.
25790 (vectorizable_assignment): Likewise.
25791 (vectorizable_shift): Likewise.
25792 (vectorizable_operation): Likewise.
25793 (vectorizable_store): Likewise.
25794 (vectorizable_load): Likewise.
25796 2016-01-12 Richard Biener <rguenther@suse.de>
25798 PR tree-optimization/69174
25799 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25801 (vectorizable_load): Properly compute the number of loads needed
25802 for permuted strided SLP loads and do not spuriously assign
25803 to SLP_TREE_VEC_STMTS.
25805 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
25807 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25808 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25809 (MD_EXEC_PREFIX): Remove.
25810 (MD_STARTFILE_PREFIX) Removee.
25811 (FILE_NAME_ABSOLUTE_P): Remove.
25812 (CPP_SPEC): Do not read macros from sys/version.h.
25813 (LINK_COMMAND_SPEC): Remove.
25814 (LOCAL_INCLUDE_DIR): Remove.
25815 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25816 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25817 (POST_LINK_SPEC): Define to invoke stubify after linker
25818 (LIBSTDCXX): Remove define
25819 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25820 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25821 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25822 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25823 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25824 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25825 (i386_djgpp_asm_named_section): Add propotype of new procedure
25827 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25828 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25829 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25830 in config/i386/djgpp.h).
25831 (STANDARD_STARTFILE_PREFIX_2): Define identical to
25832 STANDARD_STARTFILE_PREFIX_1.
25833 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25834 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25835 installation errors.
25836 (MAX_OFILE_ALIGNMENT): Define to 128.
25837 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25839 * config/i386/djgpp.c: New file. Add implementation of
25840 i386_djgpp_asm_named_section.
25842 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25844 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25845 Add rule for building djgpp.o.
25847 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25849 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25850 (rtx_is_swappable_p): Reductions are swappable.
25851 (insn_is_swappable_p): V2DF reductions are swappable.
25853 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
25855 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25856 reloads for other unsupported memory operands.
25858 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25859 Jim Wilson <jim.wilson@linaro.org>
25862 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25863 copy_to_mode_reg instead of force_reg.
25865 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25868 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25869 TARGET_80387 is true.
25871 2016-01-11 Jakub Jelinek <jakub@redhat.com>
25874 * lra-eliminations.c (move_plus_up): Only move plus up
25875 if subreg of the constant can be simplified into constant
25876 and use the simplified subreg of the constant instead of
25877 the original constant.
25879 * fold-const.c (fold_convertible_p): Don't return true
25880 for conversion of VECTOR_TYPE to same sized integral type.
25881 (fold_convert_loc): Fix up formatting. Fold conversion of
25882 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25883 instead of NOP_EXPR.
25885 PR tree-optimization/69214
25886 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25887 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25890 PR tree-optimization/69207
25891 * tree-vect-slp.c (vect_get_constant_vectors): For
25892 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25893 fold_convertible_p to vector_type's element type, and always
25894 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25896 2016-01-11 Richard Biener <rguenther@suse.de>
25898 PR tree-optimization/69173
25899 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25900 fixup the cycle if all stmts are in a pattern.
25902 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
25904 PR middle-end/68999
25905 * alias.c (base_alias_check): Move check for addresses with
25906 alignment ANDs before the call for compare_base_decls.
25907 (memrefs_conflict_p): Return -1 for different decls
25908 that went through alignment adjustments.
25910 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25912 PR rtl-optimization/68796
25913 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25914 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25915 and QImode comparisons against zero with CC_NZmode.
25916 * config/aarch64/iterators.md (short_mask): New mode_attr.
25918 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25920 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25921 (<avx512>_store<mode>_mask): Likewise.
25923 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
25924 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25926 PR rtl-optimization/68841
25927 * ifcvt.c (struct noce_if_info): Add orig_x field.
25928 (bbs_ok_for_cmove_arith): Add to_rename parameter.
25929 Don't record conflicts on to_rename if it's present.
25930 Allow memory destinations in sets.
25931 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25932 blocks, passing orig_x to the checks.
25933 (noce_process_if_block): Set if_info->orig_x appropriately.
25935 2016-01-11 Tom de Vries <tom@codesourcery.com>
25937 PR tree-optimization/69069
25938 * tree-parloops.c (create_parallel_loop): Add missing phi args.
25940 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
25942 PR rtl-optimization/68920
25943 * config/i386/i386.c (ix86_option_override_internal): Restrict number
25944 of conditional moves for RTL if-conversion to 1 for
25945 TARGET_ONE_IF_CONV_INSN.
25946 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25947 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25948 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25949 parameter to restirct number of conditional moves for
25951 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25952 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25955 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
25958 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25959 onepart vars. Fix typo in comment. Fix reversed condition in
25961 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25964 * var-tracking.c (dump_onepart_variable_differences): New.
25965 (dataflow_set_different): If a detailed dump is requested,
25966 delay early returns and dump differences between onepart
25967 variables present before and after, and added variables.
25969 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
25972 * expr.c (expand_expr_real_1): For boolean vector constants
25973 with a scalar mode use const_scalar_mask_from_tree.
25974 (const_scalar_mask_from_tree): New.
25975 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25976 assigned to a mask type to handle constants.
25978 2016-01-11 Martin Jambor <mjambor@suse.cz>
25981 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25982 useless parameters if we cannot change function signature.
25984 2016-01-11 Martin Jambor <mjambor@suse.cz>
25987 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25990 2016-01-11 Tom de Vries <tom@codesourcery.com>
25992 PR tree-optimization/69109
25993 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25996 2016-01-11 Tom de Vries <tom@codesourcery.com>
25998 PR tree-optimization/69108
25999 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26000 res is not used in a phi.
26002 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26005 * common.opt (frandom-seed): Fix parameter name.
26006 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26008 2016-01-11 Tom de Vries <tom@codesourcery.com>
26010 PR tree-optimization/69058
26011 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26014 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26016 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26017 (mcode-density): Likewise.
26019 2016-01-10 Tom de Vries <tom@codesourcery.com>
26021 PR tree-optimization/69062
26022 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26023 (parallelize_loops): Don't paralelize loop that has phi with address
26026 2016-01-10 Tom de Vries <tom@codesourcery.com>
26028 PR tree-optimization/69039
26029 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26032 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26034 PR middle-end/68743
26035 * match.pd: Require target has function_c99_misc before doing
26036 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26038 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26040 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26042 * configure: Regenerate.
26044 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26046 PR middle-end/50865
26047 PR tree-optimization/69097
26048 * fold-const.h (expr_not_equal_to): New prototype.
26049 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26050 (expr_not_equal_to): New function.
26051 * match.pd (X % -Y is the same as X % Y): Don't optimize
26052 unless X is known not to be equal to minimum or Y is known
26053 not to be equal to -1.
26054 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26055 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26056 (simplify_stmt_using_ranges): Adjust caller.
26057 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26058 substitute_and_fold.
26060 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26062 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26065 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26067 PR tree-optimization/69167
26068 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26069 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26071 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26073 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26074 Richard Biener <rguenther@suse.de>
26076 PR tree-optimization/68707
26077 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26078 instances that can be handled via vect_load_lanes.
26080 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26082 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26083 if we can't determine address equivalence.
26084 * alias.c (compare_base_decl): Update for changed return value of
26085 symtab_node::equal_address_to.
26087 2016-01-08 Jason Merrill <jason@redhat.com>
26091 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26092 * expr.c (store_field): Not here.
26093 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26094 call with TREE_ADDRESSABLE type.
26095 * tree-cfg.c (verify_gimple_call): Adjust.
26097 2016-01-08 Olivier Hainque <hainque@adacore.com>
26099 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26102 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26104 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26105 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26106 (reduc_smin_v2sf): Rename to...
26107 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26108 (reduc_splus_v2sf): Rename to...
26109 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26111 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26113 PR tree-optimization/69162
26114 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26115 valist argument in another argument.
26116 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26117 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26118 to determine the va_list type, build a MEM_REF instead of
26119 build_fold_indirect_ref.
26121 PR tree-optimization/69172
26122 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26125 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26127 PR tree-optimization/67781
26128 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26129 and cmpnop in two steps: first the ones not accessed in original
26130 gimple expression in a endian independent way and then the ones not
26131 accessed in the final result in an endian-specific way.
26133 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26135 PR tree-optimization/69083
26136 * tree-vect-slp.c (vect_get_constant_vectors): For
26137 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26138 element type. If op is fold_convertible_p to vector_type's element
26139 type, use NOP_EXPR instead of VCE.
26141 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26143 PR rtl-optimization/67778
26144 PR rtl-optimization/68634
26145 PR rtl-optimization/68909
26146 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26147 block from the stack until done with it. Remove a superfluous
26148 bitmap set. Remove a superfluous bitmap test.
26150 2016-01-07 Martin Sebor <msebor@redhat.com>
26153 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26154 constraint on the type of arguments.
26156 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26158 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26159 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26160 unaligned_access on the gcc_options set.
26161 * config/arm/arm.c (arm_option_override_internal): Use
26162 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26164 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26167 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26168 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26170 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26173 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26176 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26177 depending on frame_pointer_needed before remaining integer and SSE
26178 registers are saved.
26180 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26183 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26185 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26188 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26189 Use the "xBm" constraint.
26190 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26192 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26193 (sse_cvtsi2ssq<round_name>): Likewise.
26194 (sse_cvtss2si<round_name>): Likewise.
26195 (sse_cvtss2siq<round_name>): Likewise.
26196 (sse2_cvtsi2sdq<round_name>): Likewise.
26197 (sse2_cvtsd2si<round_name>): Likewise.
26198 (sse2_cvtsd2siq<round_name>): Likewise.
26199 * config/i386/subst.md (round_nimm_scalar_predicate): New
26202 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26204 PR middle-end/67639
26205 * varasm.c (make_decl_rtl): Mark invalid register vars as
26208 PR rtl-optimization/66206
26209 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26210 All callers changed.
26212 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26214 PR tree-optimization/69141
26215 * tree-ssa-pre.c: Include langhooks.h.
26216 (eliminate_dom_walker::before_dom_children): Use
26217 lang_hooks.decl_printable_name instead of
26218 cgraph_node::get ()->name ().
26220 PR middle-end/68960
26221 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26222 it and DECL_ALIGN too.
26224 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
26226 * config/mips/mips-ftypes.def: Sort to lexicographical order.
26228 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26231 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26232 depending on frame_pointer_needed before remaining integer and SSE
26233 registers are saved.
26235 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26237 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26238 mode iterator with VSX_M2.
26239 (*p9_vecstore_<mode>): Likewise.
26240 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26241 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26242 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26243 (define_split for VSX_LE128 stores): Likewise.
26244 (define_peephole2 for TImode LE swaps): Likewise.
26245 (define_split for VSX_LE128 post-reload stores): Likewise.
26247 2016-01-06 Marek Polacek <polacek@redhat.com>
26250 * convert.c (convert_to_integer_1): Adjust call to
26251 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
26252 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
26253 EXPR instead of ARG.
26254 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26256 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26259 * doc/extend.texi (RL78 Variable Attributes): New section.
26261 2016-01-05 Marek Polacek <polacek@redhat.com>
26264 * builtins.c (get_memmodel): Use expansion point location rather than
26265 the input location. Call warning_at rather than warning.
26266 (expand_builtin_atomic_compare_exchange): Likewise.
26267 (expand_builtin_atomic_load): Likewise.
26268 (expand_builtin_atomic_store): Likewise.
26269 (expand_builtin_atomic_clear): Likewise.
26271 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26274 * config/i386/i386.c (ix86_expand_vector_logical_operator):
26275 Replace nonimmediate_operand with vector_operand.
26276 * config/i386/predicates.md (vector_operand): New predicate.
26277 (general_vector_operand): Replace nonimmediate_operand with
26279 * config/i386/sse.md: Replace nonimmediate_operand with
26280 vector_operand and m constraint with Bm constraint on SSE
26281 patterns with 16-byte memory operand.
26282 * config/i386/subst.md (round_nimm_predicate): Replace
26283 nonimmediate_operand with vector_operand.
26284 (round_saeonly_nimm_predicate): Likewise.
26285 (round_saeonly_nimm_scalar_predicate): New.
26287 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26290 * config/i386/constraints.md (Bm): New constraint.
26291 * config/i386/predicates.md (vector_memory_operand): New
26293 * config/i386/sse.md: Replace xm with xBm in plusminus and
26294 any_logic patterns.
26296 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26299 * doc/extend.texi (V850 Function Attributes): New section.
26300 (V850 Variable Attributes): New section.
26302 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26305 * doc/extend.texi (MicroBlaze Function Attributes): Document
26306 interrupt_handler and fast_interrupt attributes.
26308 2016-01-05 Sergei Trofimovich <siarheit@google.com>
26311 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
26312 for local symbolic operands.
26313 * config/ia64/predicates.md (local_symbolic_operand64): New
26316 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26318 PR rtl-optimization/68651
26319 * combine.c (combine_simplify_rtx): Canonicalize x + x into
26322 2016-01-05 Nathan Sidwell <nathan@acm.org>
26324 * alias.c (compare_base_decls): Use symtab_node::get.
26326 2016-01-05 Nick Clifton <nickc@redhat.com>
26329 * ira-costs.c (copy_cost): Initialise the t_icode field of the
26330 secondary_reload_info structure.
26333 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
26334 decls if weak support is available.
26336 2016-01-04 Martin Sebor <msebor@redhat.com>
26338 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
26340 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
26342 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
26343 OPTION_MASK_P9_DFORM.
26345 * config/rs6000/constraints.md (wo constraint): New constraint for
26348 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
26350 (rs6000_init_hard_regno_mode_ok): Likewise.
26352 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
26355 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
26356 expanders not to have constraints. Add support for ISA 3.0 xxperm
26357 instruction. Add support for fusing xxlor with xxperm.
26358 (altivec_vperm_<mode>_internal): Likewise.
26359 (altivec_vperm_v8hiv16qi): Likewise.
26360 (altivec_vperm_<mode>v16q): Likewise.
26361 (altivec_vperm_<mode>_uns): Likewise.
26362 (vperm_v8hiv4si): Likewise.
26363 (vperm_v16qiv8hi): Likewise.
26365 * doc/md.texi (RS/6000 constraints): Document wo constraint.
26367 2016-01-04 Jakub Jelinek <jakub@redhat.com>
26369 Update copyright years.
26371 * gcc.c (process_command): Update copyright notice dates.
26372 * gcov-dump.c (print_version): Ditto.
26373 * gcov.c (print_version): Ditto.
26374 * gcov-tool.c (print_version): Ditto.
26375 * gengtype.c (create_file): Ditto.
26376 * doc/cpp.texi: Bump @copying's copyright year.
26377 * doc/cppinternals.texi: Ditto.
26378 * doc/gcc.texi: Ditto.
26379 * doc/gccint.texi: Ditto.
26380 * doc/gcov.texi: Ditto.
26381 * doc/install.texi: Ditto.
26382 * doc/invoke.texi: Ditto.
26384 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26386 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
26387 modes larger than TImode as TImode if NEON is not enabled.
26389 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26392 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
26393 mode for %f0-%f31 only if TARGET_FPU.
26395 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
26398 * config/sparc/sparc.c (scan_record_type): Take into account subfields
26399 to compute the PACKED_P predicate.
26400 (function_arg_record_value): Minor tweaks.
26402 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
26404 * doc/install.texi (--with-multilib-list): Describe the meaning of the
26405 option for arm*-*-* targets.
26407 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
26409 * doc/extend.texi (Common Function Attributes): Move docs for
26410 MSP430-specific attributes to....
26411 (MSP430 Function Attributes): ...here. Delete the redundant
26412 entries and copy-edit the remaining text.
26413 (MSP430 Variable Attributes): Use uniform format for index
26414 entries and add a cross-reference to the corresponding function
26417 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
26419 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
26421 (x86 Options): Likewise.
26423 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26427 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26428 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26429 to corresponding attribute.
26431 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26433 * doc/extend.texi (Common Function Attributes) <noplt>: Move
26434 to correct alphabetization of table. Copy-edit and correct
26436 <stack_protect>: Likewise.
26437 <target_clones>: Likewise.
26439 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26440 Correct punctuation.
26441 (Code Gen Options) <-fno-plt>: Copy-edit.
26443 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26446 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26447 SI values. Explicitly convert SI to DI and vice-versa.
26449 2016-01-01 Jakub Jelinek <jakub@redhat.com>
26451 PR tree-optimization/69070
26452 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26453 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26456 * ubsan.c (ubsan_instrument_float_cast): Call
26457 initialize_sanitizer_builtins.
26460 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26462 Copyright (C) 2016 Free Software Foundation, Inc.
26464 Copying and distribution of this file, with or without modification,
26465 are permitted in any medium without royalty provided the copyright
26466 notice and this notice are preserved.