DWARF: fix scoping for descriptions of local types
[gcc.git] / gcc / ChangeLog
1 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2
3 * dwarf2out.c (dwarf2out_early_global_decl): For nested
4 functions, call dwarf2out_decl on the parent function first.
5
6 2016-10-12 Richard Biener <rguenther@suse.de>
7
8 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9 on the conversion.
10
11 2016-10-12 Richard Biener <rguenther@suse.de>
12
13 * tree-ssa-propagate.c
14 (substitute_and_fold_dom_walker::before_dom_children): Do not
15 ignore ASSERT_EXPRs but only preserve them.
16 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
17 that have been propagated into.
18 (vrp_finalize): Enable DCE for substitute_and_fold.
19
20 2016-10-12 Richard Biener <rguenther@suse.de>
21
22 PR tree-optimization/77920
23 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
24 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
25 (simplify_abs_using_ranges): Likewise.
26 (simplify_conversion_using_ranges): Likewise.
27 (simplify_stmt_using_ranges): Adjust.
28
29 2016-10-12 Jakub Jelinek <jakub@redhat.com>
30
31 PR tree-optimization/77929
32 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
33 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
34
35 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
36
37 PR target/77934
38 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
39 needs a base register for arg 1.
40
41 2016-10-12 Jakub Jelinek <jakub@redhat.com>
42
43 * common.opt (Wimplicit-fallthrough) Turn into alias to
44 -Wimplicit-fallthrough=3. Remove EnabledBy.
45 (Wimplicit-fallthrough=): New option.
46 * gimplify.c (warn_implicit_fallthrough_r): Use
47 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
48 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
49 to -Wimplicit-fallthrough=3.
50 (-Wimplicit-fallthrough=): Document.
51
52 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
53
54 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
55 and GEU in DImode if TARGET_SUBXC.
56 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
57 (seqdi<W:mode>_zero_subxc): Delete.
58 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
59 (neg_seqdi<W:mode>_zero_vis3): Delete.
60 (plus_seqdi<W:mode>_zero): Likewise.
61 (minus_seqdi<W:mode>_zero): Likewise.
62 (plus_plus_sltu<W:mode>): Accept only register.
63 (addx<W:mode>): Likewise.
64 (plus_sltu<W:mode>_vis3): Likewise.
65 (plus_plus_sltu<W:mode>_vis3): Likewise.
66 (neg_sgeu<W:mode>_vis3): Delete.
67 (minus_sgeu<W:mode>_vis3): Likewise.
68 (addxc<W:mode>): Accept only registers.
69 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
70 (minus_neg_sltu<W:mode>_subxc): Accept only register.
71 (neg_plus_sltu<W:mode>_subxc): Likewise.
72 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
73 (minus_minus_sltu<W:mode>_subxc): Accept only register.
74 (sgeu<W:mode>_insn_subxc): Delete.
75 (plus_sgeu<W:mode>_subxc): Likewise.
76 (subxc<W:mode>): Accept only register.
77 (scc splitter): Split always GEU again.
78
79 2016-10-11 Jeff Law <law@redhat.com>
80
81 PR tree-optimization/77424
82 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
83 dead conditionals. Assert that all e->aux fields are NULL.
84
85 2016-10-11 David Malcolm <dmalcolm@redhat.com>
86
87 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
88 operand-printing "switch" statement into...
89 (print_rtx_operand_code_0): ...this new function, ...
90 (print_rtx_operand_code_e): ...this new function, ...
91 (print_rtx_operand_codes_E_and_V): ...this new function, ...
92 (print_rtx_operand_code_i): ...this new function, ...
93 (print_rtx_operand_code_r): ...this new function, ...
94 (print_rtx_operand_code_u): ...this new function, ...
95 (print_rtx_operand): ...and this new function.
96
97 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
98
99 * config/alpha/alpha-passes.def: New file.
100 * config/alpha/t-alpha: New file.
101 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
102 (make_pass_handle_trap_shadows): New prototype.
103 (make_pass_align_insns): Ditto.
104 * config/alpha/alpha.c (alpha_option_override): Don't register
105 passes here.
106 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
107
108 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
109
110 PR target/77924
111 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
112 distinct __ibm128 IBM extended double type if long doubles are
113 128-bits and the default format for long double is IEEE 128-bit.
114
115 2016-10-11 Richard Biener <rguenther@suse.de>
116
117 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
118 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
119 (verify_die): New function.
120 (dwarf2out_finish): Call it.
121 (output_line_info): Handle case of -gsplit-dwarf without
122 DWARF2_ASM_LINE_DEBUG_INFO.
123
124 2016-10-11 Richard Biener <rguenther@suse.de>
125
126 PR debug/77931
127 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
128 sub-chains of BLOCK_VARS and gimple_bind_vars.
129
130 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
131
132 * config/i386/znver1.md : Fix imov/imovx load type reservations.
133
134 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
135
136 * config/sparc/sparc.opt (msubxc): New option.
137 * doc/invoke.texi (SPARC options): Document it and tidy up.
138 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
139 * doc/tm.texi: Regenerate.
140 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
141 (CCNZ): ...this.
142 (CCX_NOOV): Rename into...
143 (CCXNZ): ...this.
144 (CCC): New.
145 (CCXC): Likewise.
146 * config/sparc/predicates.m (fcc_register_operand): Simplify.
147 (fcc0_register_operand): Likewise.
148 (icc_register_operand): New.
149 (icc_or_fcc_register_operand): Simplify.
150 (nz_comparison_operator): New.
151 (c_comparison_operator): Likewise.
152 (noov_compare_operator): Rename into...
153 (icc_comparison_operator): ...this. Use above predicates.
154 (noov_compare64_operator): Rename into...
155 (v9_comparison_operator): ...this and tidy up.
156 (fcc_comparison_operator): New.
157 (icc_or_fcc_comparison_operator): Likewise.
158 (v9_register_compare_operator): Rename info...
159 (v9_register_comparison_operator): ...this.
160 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
161 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
162 for Niagara-7.
163 (sparc_fixed_condition_code_regs): New function.
164 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
165 renaming and add support for CCC/CCXC.
166 (output_cbranch): Likewise.
167 (sparc_print_operand): Likewise.
168 (gen_v9_scc): Remove obsolete assertion.
169 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
170 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
171 (output_cbcond): Remove bogus handling of CC modes.
172 (sparc_register_move_cost): Return 100 for NO_REGS.
173 * config/sparc/sparc.md (W): New mode iterator.
174 (length): Adjust for noov_compare64_operator renaming.
175 (cmpsi_sne): New instruction.
176 (cmpdi_sne): Likewise.
177 (seqdi_special): Delete.
178 (seqdi_special): Likewise.
179 (snesi<P:mode>_special): Likewise.
180 (snedi_special): Likewise.
181 (snedi_special_vis3): Likewise.
182 (snesi patterns): Use W iterator.
183 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
184 (sltu patterns): Likewise.
185 (sgeu patterns): Likewise.
186 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
187 (normal_branch): Use icc_comparison_operator predicate.
188 (inverted_branch): Likewise.
189 (cbcond_sp32): Use comparison_operator predicate.
190 (cbcond_sp64): Likewise.
191 (normal_int_branch_sp64): Adjust for renaming
192 (inverted_int_branch_sp64): Likewise.
193 (mov<I:mode>_cc_reg_sp64): Likewise.
194 (movsf_cc_reg_sp6): Likewise.
195 (movdf_cc_reg_sp64): Likewise.
196 (movtf_cc_reg_hq_sp64): Likewise.
197 (movtf_cc_reg_sp64): Likewise.
198 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
199 (movsf_cc_v9): Likewise.
200 (movdf_cc_v9): Likewise.
201 (movtf_cc_hq_v9): Likewise.
202 (movtf_cc_v9): Likewise.
203 (adddi3): Call gen_adddi3_sp32.
204 (adddi3_insn_sp32): Rename to...
205 (adddi3_sp32): ...this. Accept only register_operand as operand #1
206 and use CCCmode for the carry.
207 (addx_extend_sp32): Use CCCmode for the carry.
208 (addx_extend_sp64): Delete.
209 (adddi3_extend_sp32): Use CCCmode for the carry.
210 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
211 (subdi3): Call gen_subdi3_sp32.
212 (subdi3_insn_sp32): Rename to...
213 (subdi3_sp32): ...this and use CCmode for the carry.
214 (subx_extend_sp32): Use CCCmode for the carry.
215 (subx_extend_sp64): Delete.
216 (subdi3_extend_sp32): Use CCmode for the carry.
217 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
218 (negdi3): Call gen_negdi3_sp32.
219 (negdi3_sp32): Use CCCmode for the carry.
220 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
221 (cmp_nz_ashift_1): Use CCNZ mode.
222 (cmp_nz_set_ashift_1): Likewise.
223 (ctrapsi4): Use comparison_operator predicate.
224 (ctrapdi4): Likewise.
225 (trapsi_insn): Use icc_comparison_operator predicate.
226 (trapdi_insn): Likewise.
227 (edge8 patterns): Use CCNZmode.
228 (edge16 patterns): Likewise.
229 (edge32 patterns): Likewise.
230
231 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
232
233 * config/visium/visium-modes.def (CC_NOOV): Rename into...
234 (CCNZ): ...this.
235 (CC_BTST): Rename into...
236 (CCC): ...this.
237 * config/visium/predicates.md (real_add_operand): New.
238 (visium_btst_operator): Rename into...
239 (visium_equality_comparison_operator): ...this.
240 (visium_noov_operator): Rename into...
241 (visium_nz_comparison_operator): ...this.
242 (visium_c_comparison_operator): New.
243 (visium_branch_operator): Adjust and deal with all CC modes.
244 * config/visium/visium.c (visium_adjust_cost): Adjust.
245 (visium_split_double_add): Use the *_set_carry patterns.
246 (visium_select_cc_mode): Add support for CCC mode and adjust.
247 (output_cbranch): Adjust and use the carry-based operators for
248 floating-point comparisons.
249 * config/visium/visium.md (flags_subst_arith): Adjust.
250 (addsi3_insn_set_carry): New instruction.
251 (subsi3_insn_set_carry): Likewise.
252 (negsi2_insn_set_carry): Likewise.
253 (btst): Adjust.
254 (cmp<mode>_sne): Likewise.
255 (cbranch<mode>4): Use ordered_comparison_operator.
256 (cbranch<mode>4_insn): Likewise.
257 (cbranchsi4_btst_insn): Adjust.
258
259 2016-10-11 Tom de Vries <tom@codesourcery.com>
260
261 PR middle-end/77558
262 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
263 special-casing.
264
265 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
266
267 * tree.h (build_complex_type): Add second parameter with default.
268 * tree.c (build_complex_type): Add NAMED second parameter and adjust
269 recursive call. Create a TYPE_DECL only if NAMED is true.
270 (build_common_tree_nodes): Pass true in calls to build_complex_type.
271
272 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
273
274 New avr-passes.def to register AVR specific passes.
275
276 * config/avr/avr-passes.def: New file.
277 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
278 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
279 (make_avr_pass_recompute_note): New proto.
280 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
281 (avr_pass_recompute_notes): Use anonymous namespace.
282 (avr_register_passes): Remove function...
283 (avr_option_override): ...and its call.
284
285 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
286
287 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
288 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
289 PTF_AVOID_BRANCHLIKELY_SPEED for others.
290 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
291 flags.
292 * config/mips/mips.c (mips_option_override): Enable the branch
293 likely depending on the tune flags and optimization level.
294 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
295 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
296 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
297 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
298
299 2016-10-11 Richard Biener <rguenther@suse.de>
300
301 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
302 (output_function): Properly stream the whole block tree.
303 * lto-streamer-in.c (input_function): Likewise.
304
305 2016-10-11 Marek Polacek <polacek@redhat.com>
306
307 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
308
309 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
310
311 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
312 (evrp_dom_walker::before_dom_children): Infer and push new value
313 ranges for x in y < x.
314
315 2016-10-10 Joseph Myers <joseph@codesourcery.com>
316
317 PR target/77586
318 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
319 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
320 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
321 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
322 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
323 (IA64_NO_LIBGCC_TFMODE): Likewise.
324
325 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
326
327 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
328 copying.
329
330 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
331
332 * config.gcc: Add aarch64-*-freebsd* support.
333 * config.host: Likewise.
334 * config/aarch64/aarch64-freebsd.h: New file.
335 * config/aarch64/t-aarch64-freebsd: Ditto.
336
337 2016-10-10 Jeff Law <law@redhat.com>
338
339 PR tree-optimization/71947
340 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
341 B with A within a single statement.
342
343 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
344
345 PR tree-optimization/77824
346 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
347 zero cost for copies.
348 (find_candidates_dom_walker::before_dom_children): Replace
349 MODIFY_EXPR with SSA_NAME.
350 (replace_mult_candidate): Likewise.
351 (replace_profitable_candidates): Likewise.
352
353 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
354
355 * config/s390/s390.h: Wrap more macros args in brackets and fix
356
357 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
358
359 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
360
361 2016-10-10 Andreas Schwab <schwab@suse.de>
362
363 PR target/77738
364 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
365 pseudo is not DImode.
366
367 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
368
369 * common/config/arc/arc-common.c (arc_option_optimization_table):
370 Remove compact casesi option.
371 * config/arc/arc.c (arc_override_options): Use compact casesi
372 option only for pre-ARCv2 cores.
373 * doc/invoke.texi (mcompact-casesi): Update text.
374
375 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
376
377 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
378 Add macro to say we can efficiently handle overlapping unaligned
379 loads.
380 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
381 poor code for processors older than p8.
382
383 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
384
385 * gen-pass-instances.awk: Remove GNUism.
386
387 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
388
389 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
390 NULL of (*ipcp_transformations)][node->uid].
391
392 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
393
394 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
395 (MALLOC_ABI_ALIGNMENT): Define.
396
397 2016-10-09 Jakub Jelinek <jakub@redhat.com>
398
399 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
400 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
401 VAR_OR_FUNCTION_DECL_P macros.
402 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
403 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
404 chkp_find_bounds_1): Likewise.
405 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
406 * hsa-gen.c (get_symbol_for_decl): Likewise.
407 * cgraphunit.c (check_global_declaration, analyze_functions,
408 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
409 Likewise.
410 * gimple-fold.c (can_refer_decl_in_current_unit_p,
411 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
412 Likewise.
413 * tree.c (set_decl_section_name, copy_node_stat,
414 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
415 merge_dllimport_decl_attributes, handle_dll_attribute,
416 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
417 verify_type): Likewise.
418 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
419 find_explicit_erroneous_behavior): Likewise.
420 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
421 * ipa.c (process_references): Likewise.
422 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
423 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
424 notice_global_symbol, assemble_variable, mark_decl_referenced,
425 build_constant_desc, output_constant_def_contents, do_assemble_alias,
426 make_decl_one_only, default_section_type_flags,
427 categorize_decl_for_section, default_encode_section_info): Likewise.
428 * trans-mem.c (requires_barrier): Likewise.
429 * gimple-expr.c (mark_addressable): Likewise.
430 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
431 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
432 expand_debug_expr): Likewise.
433 * tree-dump.c (dequeue_and_dump): Likewise.
434 * ubsan.c (instrument_bool_enum_load): Likewise.
435 * tree-pretty-print.c (print_declaration): Likewise.
436 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
437 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
438 * asan.c (asan_protect_global, instrument_derefs): Likewise.
439 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
440 pass_build_ssa::execute): Likewise.
441 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
442 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
443 Likewise.
444 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
445 Likewise.
446 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
447 can_be_nonlocal, remap_decls, copy_debug_stmt,
448 initialize_inlined_parameters, add_local_variables,
449 reset_debug_binding, replace_locals_op): Likewise.
450 * dse.c (can_escape): Likewise.
451 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
452 Likewise.
453 * tree-diagnostic.c (default_tree_printer): Likewise.
454 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
455 unpack_ts_decl_with_vis_value_fields,
456 lto_input_ts_decl_common_tree_pointers): Likewise.
457 * builtins.c (builtin_save_expr, fold_builtin_expect,
458 readonly_data_expr): Likewise.
459 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
460 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
461 Likewise.
462 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
463 * gimplify.c (force_constant_size, gimplify_bind_expr,
464 gimplify_decl_expr, gimplify_var_or_parm_decl,
465 gimplify_compound_lval, gimplify_init_constructor,
466 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
467 gimplify_type_sizes): Likewise.
468 * cgraphbuild.c (record_reference, record_type_list, mark_address,
469 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
470 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
471 remove_unused_locals): Likewise.
472 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
473 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
474 * function.c (instantiate_expr, instantiate_decls_1,
475 setjmp_vars_warning, add_local_decl): Likewise.
476 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
477 Likewise.
478 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
479 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
480 optimize_va_list_gpr_fpr_size): Likewise.
481 * tree-nrv.c (pass_nrv::execute): Likewise.
482 * tsan.c (instrument_expr): Likewise.
483 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
484 * vtable-verify.c (verify_bb_vtables): Likewise.
485 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
486 get_ref_base_and_extent): Likewise.
487 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
488 Likewise.
489 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
490 analyze_all_variable_accesses): Likewise.
491 * tree-nested.c (get_nonlocal_debug_decl,
492 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
493 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
494 get_local_debug_decl, convert_local_omp_clauses,
495 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
496 Likewise.
497 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
498 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
499 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
500 dbxout_symbol, dbxout_common_check): Likewise.
501 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
502 string_constant): Likewise.
503 * hsa.c (hsa_get_declaration_name): Likewise.
504 * passes.c (rest_of_decl_compilation): Likewise.
505 * tree-ssanames.c (make_ssa_name_fn): Likewise.
506 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
507 pack_ts_decl_with_vis_value_fields,
508 write_ts_decl_common_tree_pointers): Likewise.
509 * stor-layout.c (place_field): Likewise.
510 * symtab.c (symtab_node::maybe_create_reference,
511 symtab_node::verify_base, symtab_node::make_decl_local,
512 symtab_node::copy_visibility_from,
513 symtab_node::can_increase_alignment_p): Likewise.
514 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
515 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
516 fortran_common, add_location_or_const_value_attribute,
517 add_scalar_info, add_linkage_name, set_block_abstract_flags,
518 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
519 optimize_one_addr_into_implicit_ptr,
520 optimize_location_into_implicit_ptr): Likewise.
521 * gimple-low.c (record_vars_into): Likewise.
522 * ipa-visibility.c (update_vtable_references): Likewise.
523 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
524 Likewise.
525 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
526 DFS::DFS_write_tree_body, write_symbol): Likewise.
527 * langhooks.c (lhd_warn_unused_global_decl,
528 lhd_set_decl_assembler_name): Likewise.
529 * attribs.c (decl_attributes): Likewise.
530 * except.c (output_ttype): Likewise.
531 * varpool.c (varpool_node::get_create, ctor_for_folding,
532 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
533 * fold-const.c (fold_unary_loc): Likewise.
534 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
535 ipa_find_agg_cst_from_init): Likewise.
536 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
537 expand_omp_target, lower_omp_regimplify_p,
538 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
539 find_link_var_op): Likewise.
540 * tree-chrec.c (chrec_contains_symbols): Likewise.
541 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
542 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
543 execute_fixup_cfg): Likewise.
544
545 PR tree-optimization/77901
546 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
547 if ranges[i].exp is SSA_NAME when looking for >= and only when
548 ranges[i].exp is NULL or SSA_NAME when looking for the other
549 comparison.
550
551 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
552
553 * ipa-cp.c (ipcp_alignment_lattice): Remove.
554 (ipcp_param_lattices): Remove field alignment.
555 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
556 (set_all_contains_variable): Remove call to
557 ipcp_alignment_lattice::set_to_bottom.
558 (initialize_node_lattices): Likewise.
559 (propagate_alignment_accross_jump_function): Remove.
560 (propagate_constants_accross_call): Remove call to
561 propagate_alignment_accross_jump_function.
562 (ipcp_store_alignment_results): Remove.
563 (ipcp_driver): Remove call to ipcp_store_alignment_results.
564 (propagate_bits_accross_jump_function): Handle ancestor jump function.
565 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
566 pretty-printing of alignment jump function.
567 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
568 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
569 alignments and remove computing ipa_alignment jump function.
570 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
571 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
572 (ipa_read_jump_function): Remove reading of ipa_alignment.
573 (write_ipcp_transformation_info): Remove streaming for alignment
574 propagation summary.
575 (read_ipcp_transformation_info): Remove reading of alignment
576 propagation summary.
577 (ipcp_update_alignments): Remove.
578 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
579 type.
580 (ipcp_transform_function): Remove call to ipcp_update_alignments()
581 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
582 * ipa-prop.h (ipa_alignment): Remove.
583 (ipa_jump_func): Remove field alignment.
584 (ipcp_transformation_summary): Remove field alignments.
585 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
586 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
587 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
588
589 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
590
591 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
592
593 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
594 change.
595 (visium_expand_fp_cstore): Likewise.
596
597 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
598
599 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
600 * diagnostic.c (warning_at_rich_loc_n): New function.
601 (diagnostic_n_impl_richloc): Likewise.
602 (diagnostic_n_impl): Move most of the function to
603 diagnostic_n_impl_richloc and call it.
604
605 2016-10-08 Jakub Jelinek <jakub@redhat.com>
606
607 * gen-pass-instances.awk: Rewritten.
608 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
609 $(PASSES_EXTRA) after passes.def to the script.
610 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
611 * config/i386/i386-passes.def: New file.
612 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
613 make_pass_stv): Declare.
614 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
615 false.
616 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
617 or !TARGET_64BIT.
618 (pass_stv::clone, pass_stv::set_pass_param): New methods.
619 (pass_stv::timode_p): New non-static data member.
620 (ix86_option_override): Don't register passes here.
621
622 * doc/invoke.texi: Document accepting Else, fallthrough.
623
624 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
625 style changes.
626
627 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
628 FALLTHRU comment styles.
629
630 2016-10-07 Andrew Pinski <apinski@cavium.com>
631
632 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
633 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
634 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
635 Likewise.
636 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
637 Likewise.
638 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
639 Likewise.
640 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
641 (AARCH64_ARCH): Likewise.
642 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
643 Likewise.
644 (AARCH64_CORE): Likewise.
645 (AARCH64_ARCH): Likewise.
646 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
647 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
648 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
649 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
650 (AARCH64_ARCH): Likewise.
651 (AARCH64_CORE): Likewise.
652 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
653 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
654 (AARCH64_CORE): Likewise.
655 (AARCH64_ARCH): Likewise.
656
657 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
658
659 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
660 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
661 floating point type infrastructre, and -mfloat128 that enables the
662 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
663 if -mfloat128-type. Define __ibm128 to be long double by default.
664 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
665 the IEEE 128-bit floating point type infrastructure should
666 automatically be enabled.
667 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
668 instead of -mfloat128 to enable KFmode.
669 (rs6000_option_override_internal): Split the option -mfloat128
670 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
671 systems, automatically set -mfloat128-type, but don't enable it on
672 other operating systems. Move setting the long double size and
673 IEEE quad support before the IEEE 128-bit floating point changes.
674 (rs6000_init_builtins): Do not create a unique type for __ibm128
675 if long double is IBM extended double, instead rely on __ibm128
676 being defined as 'long double'. If -mfloat128-type and not
677 -mfloat128, create the KFmode type with an undocumented __ieee128
678 keyword.
679 (rs6000_init_libfuncs): Use -mfloat128-type instead of
680 -mfloat128 for tests about the types, but keep tests for
681 -mfloat128 to enable the keyword support.
682 (rs6000_complex_function_value): Likewise.
683 (rs6000_scalar_mode_supported_p): Likewise.
684 (rs6000_floatn_mode): Likewise.
685 (rs6000_c_mode_for_suffix): Likewise.
686 (rs6000_opt_masks): Add -mfloat128-type.
687 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
688 -mfloat128-type being split from -mfloat128. Add
689 -mfloat128-hardware, which was missing.
690 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
691 -mfloat128 and -mfloat128-type:
692 (-mfloat128-type): Likewise.
693 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
694 that 64-bit Linux systems with enable -mfloat128-type by default
695 on VSX systems.
696 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
697 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
698 -mfloat128-type instead of -mfloat128.
699 (FLOAT128_2REG_P): Likewise.
700 (MASK_FLOAT128_TYPE): Likewise.
701 (ALTIVEC_ARG_MAX_RETURN): Likewise.
702 (RS6000_BTM_FLOAT128): Likewise.
703 (TARGET_FLOAT128): Poison old identifiers.
704 (OPTION_MASK_FLOAT128): Likewise.
705 (MASK_FLOAT128): Likewise.
706 * config/rs6000/rs6000.md (FP): Likewise.
707 (FLOAT128): Likewise.
708 (fix_trunc<mode>di2): Likewise.
709 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
710 (floatdi<mode>2): Likewise.
711 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
712 (neg<mode>2, FLOAT128 iterator): Likewise.
713 (abs<mode>2, FLOAT128 iterator): Likewise.
714 (ieee_128bit_negative_zero): Likewise.
715 (ieee_128bit_vsx_neg<mode>2): Likewise.
716 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
717 (ieee_128bit_vsx_abs<mode>2): Likewise.
718 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
719 (ieee_128bit_vsx_nabs<mode>2): Likewise.
720 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
721 (extendiftf2): Likewise.
722 (extendifkf2): Likewise.
723 (extendtfkf2): Likewise.
724 (trunciftf2): Likewise.
725 (truncifkf2): Likewise.
726 (trunckftf2): Likewise.
727 (trunctfif2): Likewise.
728 (extendkftf2): Likewise.
729 (trunctfkf2): Likewise.
730
731 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
732
733 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
734 before merging in bytes to pass down to real_from_target.
735
736 2016-10-07 Richard Biener <rguenther@suse.de>
737
738 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
739 required hack.
740 (substitute_and_fold_dom_walker::before_dom_children):
741 Substitute and fold before pass specific folding to avoid
742 feeding that with SSA names that will be later released.
743 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
744 introduced by folding and visited by evaluate_stmt called during
745 ccp_fold_stmt.
746 (likely_value): Likewise.
747 (evaluate_stmt): Likewise.
748 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
749 (simplify_div_or_mod_using_ranges): Likewise.
750 (simplify_min_or_max_using_ranges): Likewise.
751 (simplify_abs_using_ranges): Likewise.
752 (simplify_conversion_using_ranges): Likewise.
753 (simplify_float_conversion_using_ranges): Likewise.
754 (simplify_stmt_using_ranges): Likewise.
755
756 2016-10-07 Marek Polacek <polacek@redhat.com>
757
758 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
759 FALLTHROUGH_LABEL_P here...
760 (warn_implicit_fallthrough_r): ...not here.
761
762 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
763
764 PR tree-optimization/77880
765 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
766 necessary.
767
768 2016-10-07 Marek Polacek <polacek@redhat.com>
769
770 PR c++/77803
771 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
772
773 2016-10-07 Richard Biener <rguenther@suse.de>
774
775 * bitmap.h: Document constraints on bitmap modification while
776 iterating over it.
777
778 2016-10-07 Richard Biener <rguenther@suse.de>
779
780 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
781 * bitmap.h (bmp_iter_set): When advancing to the next element
782 check that we didn't remove the current one.
783 (bmp_iter_and): Likewise.
784 (bmp_iter_and_compl): Likewise.
785 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
786 we currently iterate on but keep a one-level queue.
787 * sched-deps.c (remove_from_deps): Do not clear current bit
788 but keep a one-level queue.
789
790 2016-10-07 Jakub Jelinek <jakub@redhat.com>
791
792 PR tree-optimization/77664
793 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
794 for the other ranges.
795 (optimize_range_tests_diff): Fix up formatting.
796 (optimize_range_tests_var_bound): New function.
797 (optimize_range_tests): Use it.
798
799 2016-10-07 Martin Liska <mliska@suse.cz>
800
801 * coverage.c (build_gcov_exit_decl): Fix priority what
802 should be really 99.
803
804 2016-10-07 Richard Biener <rguenther@suse.de>
805
806 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
807 vars in gimple_bind_vars but not in BLOCK_VARS.
808
809 2016-10-07 Richard Biener <rguenther@suse.de>
810
811 PR tree-optimization/77879
812 * tree-ssa-structalias.c (handle_const_call): Properly handle
813 NRV return slots.
814 (handle_pure_call): Likewise.
815
816 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
817
818 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
819 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
820 possible overflow.
821
822 2016-10-06 Andrew Pinski <apinski@cavium.com>
823
824 * config/aarch64/aarch64-cores.def: Add a comment before each
825 set of cores.
826
827 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
828
829 PR tree-optimization/77862
830 * tree-vrp.c (add_equivalence): Use get_value_range so that
831 num_vr_values is checked before accessing vr_values.
832
833 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
834
835 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
836 POINTER_TYPE_P.
837
838 2016-10-05 Jeff Law <law@redhat.com>
839
840 PR tree-optimization/71661
841 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
842 removal of a forwarder exposes a new natural loop.
843
844 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
845
846 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
847 Introduce ssesuffix variable.
848 (<mask_codefor><code><mode>3<mask_name>): Ditto.
849 (*<code><mode>3): Ditto.
850
851 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
852
853 * postreload.c (reload_cse_simplify): Skip also USE when detecting
854 noop move.
855
856 2016-10-06 Richard Biener <rguenther@suse.de>
857
858 PR tree-optimization/77855
859 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
860 instead of removing the current item while iterating over the set
861 which is not safe.
862
863 2016-10-06 James Clarke <jrtc27@jrtc27.com>
864 Eric Botcazou <ebotcazou@adacore.com>
865
866 PR target/77759
867 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
868 (classify_registers): Don't set it
869 (function_arg_slotno): Don't initialize and test it. Tidy up.
870
871 2016-10-06 Richard Biener <rguenther@suse.de>
872
873 PR tree-optimization/77839
874 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
875 lattice transition.
876
877 2016-10-06 Martin Liska <mliska@suse.cz>
878
879 * gcc.c: Set -fprofile-update=atomic when profiling is
880 enabled and -pthread is set. Warn when one combines
881 -pthread and -fprofile-update=single for an app using
882 profiling code.
883
884 2016-10-06 Martin Liska <mliska@suse.cz>
885
886 PR bootstrap/77788
887 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
888 * gimple-ssa-strength-reduction.c (slsr_process_cast):
889 Initialize a pointer to NULL.
890 (slsr_process_copy): Likewise.
891 * input.c (location_get_source_line): Likewise.
892 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
893
894 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
895
896 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
897 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
898 (ix86_handle_option): Deleted handle of OPT_mpcommit.
899 * config.gcc: Deleted pcommitintrin.h
900 * config/i386/pcommitintrin.h: Deleted file.
901 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
902 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
903 detection.
904 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
905 __PCOMMIT__.
906 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
907 (PTA_PCOMMIT): Deleted define.
908 (ix86_option_override_internal): Deleted handle of option.
909 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
910 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
911 __builtin_ia32_pcommit): Deleted.
912 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
913 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
914 (pcommit): Deleted instruction.
915 * config/i386/i386.opt: Mention -mpcommit deprecation.
916 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
917
918 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
919
920 PR target/77874
921 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
922 Remove wrong assert.
923 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
924 Use <round_constraint> as operand 1 constraint.
925
926 2016-10-05 Jakub Jelinek <jakub@redhat.com>
927
928 PR sanitizer/66343
929 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
930 (ubsan_instrument_float_cast): And not here.
931
932 PR sanitizer/66343
933 * ubsan.c (ubsan_ids): New GTY(()) array.
934 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
935 instead of static local counters.
936
937 2016-10-05 Martin Sebor <msebor@redhat.com>
938
939 PR bootstrap/77819
940 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
941 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
942 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
943 (default_printf_pointer_format): Define function.
944 * targhooks.c (linux_printf_pointer_format): Define new function.
945 * targhooks.h (linux_printf_pointer_format): Declare.
946 (gnu_libc_printf_pointer_format): Remove declaration.
947
948 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
949
950 * fold-const.c (native_encode_real): Fix logic for selecting offset
951 to write to when BYTES_BIG_ENDIAN.
952
953 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
954
955 * builtins.c (fold_builtin_strchr): Remove function.
956 (fold_builtin_strrchr): Likewise.
957 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
958 * gimple-fold.c (target_char_cst_p): New function.
959 (gimple_fold_builtin_strchr) Add more foldings.
960 (gimple_fold_builtin): Add index, strrchr, rindex cases.
961
962 2016-10-05 Richard Biener <rguenther@suse.de>
963
964 PR middle-end/77863
965 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
966 capture ids in c-exprs.
967
968 2016-10-05 Richard Biener <rguenther@suse.de>
969
970 PR middle-end/77826
971 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
972 with types_match for GIMPLE code gen to handle type mismatched
973 constants properly.
974 (dt_operand::gen): Adjust.
975 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
976 and constant A.
977
978 2016-10-05 Richard Biener <rguenther@suse.de>
979
980 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
981
982 2016-10-05 Richard Biener <rguenther@suse.de>
983
984 PR middle-end/77842
985 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
986
987 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
988
989 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
990 version check to protect only DW_TAG_imported_module generation.
991
992 2016-10-05 Richard Biener <rguenther@suse.de>
993
994 PR middle-end/55152
995 * match.pd (min(a,-a) -> -abs(a)): New pattern.
996
997 2016-10-04 Ian Lance Taylor <iant@golang.org>
998
999 * explow.c (allocate_dynamic_stack_space): Call
1000 do_pending_stack_adjust before handling flag_split_stack.
1001
1002 2016-10-04 David Malcolm <dmalcolm@redhat.com>
1003
1004 * genattrtab.c (make_internal_attr): Supply dummy column number to
1005 file_location ctor.
1006 (main): Likewise.
1007 * genoutput.c (init_insn_for_nothing): Likewise.
1008 * gensupport.c (add_define_attr): Likewise.
1009 * read-md.c (message_at_1): Print column number.
1010 (fatal_with_file_and_line): Likewise.
1011 (rtx_reader::read_char): Track column numbers.
1012 (rtx_reader::unread_char): Likewise.
1013 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1014 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1015 (rtx_reader::handle_file): Initialize m_read_md_colno.
1016 (rtx_reader::get_current_location): Supply column number to
1017 file_location ctor.
1018 * read-md.h (struct file_location): Add field "colno".
1019 (file_location::file_location): Likewise.
1020 (rtx_reader::get_colno): New accessor.
1021 (rtx_reader::m_read_md_colno): New field.
1022 (rtx_reader::m_last_line_colno): New field.
1023
1024 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1025
1026 * doc/extend.texi (Java Exceptions): Remove.
1027 (java_interface): Remove.
1028
1029 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
1030
1031 PR tree-optimization/77808
1032 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1033 and addr are different before copying points-to information.
1034
1035 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
1036
1037 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1038 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1039 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1040 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1041
1042 2016-10-04 Richard Biener <rguenther@suse.de>
1043
1044 PR tree-optimization/77399
1045 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1046 verify the target can convert.
1047
1048 2016-10-04 Richard Biener <rguenther@suse.de>
1049
1050 PR middle-end/77833
1051 * explow.c (plus_constant): Verify the mode of the constant
1052 pool offset before calling plus_constant.
1053
1054 2016-10-04 Richard Biener <rguenther@suse.de>
1055
1056 PR middle-end/77407
1057 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1058 type support, mark with :C.
1059 (X / -X -> -1): Mark with :C.
1060
1061 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1062
1063 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1064 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1065 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1066 * doc/tm.texi: Regenerated.
1067 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1068 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1069 * config/darwin.h (JCR_SECTION_NAME): Remove.
1070 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1071 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1072 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1073 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1074 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1075 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1076
1077 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1078
1079 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1080 between "because" and "param" in dump message in call to fprintf.
1081
1082 2016-10-03 Jeff Law <law@redhat.com>
1083
1084 PR tree-optimization/71550
1085 PR tree-optimization/71403
1086 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1087 (profitable_jump_thread_path): Also return boolean indicating if
1088 the realized path will create an irreducible loop.
1089 Remove loop depth tests from 71403.
1090 (fsm_find_control_statement_thread_paths): Remove loop depth tests
1091 from 71403. If threading will create an irreducible loop, then
1092 throw away loop iteration and related information.
1093
1094 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
1095
1096 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1097 -Woverloaded-virtual checks for warning options.
1098 * configure: Regenerate.
1099
1100 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1101
1102 PR preprocessor/77699
1103 * input.c (maybe_grow): Don't allocate one byte extra headroom.
1104 (get_next_line): Return false on error.
1105 (read_next_line): Removed, use get_next_line instead.
1106 (read_line_num): Don't copy the line.
1107 (location_get_source_line): Don't use static data.
1108 (selftest::test_reading_source_line): Add more test cases.
1109
1110 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1111
1112 Revert
1113 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1114
1115 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1116 (noce_process_if_block): Use it.
1117
1118 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1119
1120 * doc/invoke.texi: Update -Wint-in-bool-context.
1121
1122 2016-10-02 Jakub Jelinek <jakub@redhat.com>
1123
1124 * dwarf2out.c (output_fde, output_call_frame_info,
1125 dwarf2out_do_cfi_startproc, set_indirect_string,
1126 gen_internal_sym, output_die, output_line_info): Use
1127 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1128 ASM_GENERATE_INTERNAL_LABEL output.
1129
1130 2016-10-01 Richard Biener <rguenther@suse.de>
1131
1132 PR middle-end/77798
1133 * genmatch.c (get_operand_type): Add operand position arg
1134 and handle COND_EXPR comparison operand with fixed boolean_type_node.
1135 (expr::gen_transform): Adjust.
1136 (dt_simplify::gen_1): Likewise.
1137
1138 2016-10-01 Jakub Jelinek <jakub@redhat.com>
1139
1140 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1141 comments. Simplify asserts, remove unnecessary conditions.
1142 Formatting fixes.
1143 (*<code><mode>3): Likewise.
1144
1145 2016-09-30 Jakub Jelinek <jakub@redhat.com>
1146
1147 * doc/invoke.texi (-Wregister): Document.
1148
1149 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1150
1151 * configure.ac: Split CHECKING_P into CHECKING_P and
1152 ENABLE_EXTRA_CHECKING.
1153 * configure: Regenerated.
1154 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
1155 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1156
1157 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
1158
1159 PR other/31566
1160 * gcc.c (process_command): For @filename handling, output
1161 the correct name if the file does not exist.
1162
1163 2016-09-30 Marek Polacek <polacek@redhat.com>
1164
1165 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1166 * config/alpha/predicates.md: Likewise.
1167
1168 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1169
1170 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1171 (noce_process_if_block): Use it.
1172
1173 2016-09-30 Martin Liska <mliska@suse.cz>
1174
1175 * doc/invoke.texi: Document asan-use-after-return that
1176 it's disabled by default in runtime.
1177
1178 2016-09-30 Richard Biener <rguenther@suse.de>
1179
1180 * tree-vrp.c (intersect_ranges): If we failed to handle
1181 the intersection choose a constant singleton range if available.
1182
1183 2016-09-30 Richard Biener <rguenther@suse.de>
1184
1185 PR tree-optimization/77399
1186 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1187 float <-> int conversions.
1188
1189 2016-09-30 Alan Modra <amodra@gmail.com>
1190
1191 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1192
1193 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1194
1195 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1196 ext_level before calling CPUID with 0x80000008.
1197 Simplify xgetbv checks.
1198
1199 2016-09-29 David Malcolm <dmalcolm@redhat.com>
1200
1201 * Makefile.in (OBJS): Add print-rtl-function.o.
1202 * print-rtl-function.c: New file.
1203 * print-rtl.h (print_rtx_function): New decl.
1204
1205 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1206
1207 PR target/77756
1208 * config/i386/cpuid.h (__get_cpuid_count): New.
1209 (__get_cpuid): Rename __level to __leaf.
1210
1211 2016-09-29 Marek Polacek <polacek@redhat.com>
1212
1213 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1214
1215 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
1216
1217 * builtins.c (expand_builtin_memcmp): don't swap args unless
1218 result is only being compared with zero.
1219
1220 2016-09-29 Marek Polacek <polacek@redhat.com>
1221
1222 * dwarf2out.c (loc_descriptor): Add fall through comment.
1223 (add_const_value_attribute): Likewise.
1224
1225 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
1226
1227 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1228 with "v6t2". Move "arch" attribute above "pool_range".
1229 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1230 with "v6t2".
1231 (*thumb2_movhi_vfp): Likewise.
1232 (*arm_movhi_fp16): Likewise.
1233 (*thumb2_movhi_fp16): Likewise.
1234 (*arm_movsi_vfp): Remove "arch" attribute.
1235 (*thumb2_movsi_vfp): Likewise.
1236
1237 2016-09-29 Martin Liska <mliska@suse.cz>
1238
1239 * doc/extend.texi: Remove limitation of Objective C for
1240 __attribute__((constructor)) and __attribute__((destructor)).
1241
1242 2016-09-29 Richard Biener <rguenther@suse.de>
1243
1244 PR tree-optimization/77768
1245 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1246 Handle stores to readonly memory when removing redundant stores.
1247
1248 2016-09-29 Richard Biener <rguenther@suse.de>
1249
1250 PR middle-end/77407
1251 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1252 X / -X -> -1 simplifications.
1253
1254 2016-09-29 Richard Biener <rguenther@suse.de>
1255
1256 PR middle-end/55152
1257 * match.pd: Add max(a,-a) -> abs(a) pattern.
1258 * tree-ssa-phiopt.c (minmax_replacement): Disable for
1259 HONOR_SIGNED_ZEROS types.
1260
1261 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1262
1263 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1264 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1265
1266 2016-09-29 Richard Biener <rguenther@suse.de>
1267
1268 * tree-vrp.c (set_defs_to_varying): New helper avoiding
1269 writing to vr_const_varying.
1270 (vrp_initialize): Call it.
1271 (vrp_visit_stmt): Likewise.
1272 (evrp_dom_walker::before_dom_children): Likewise.
1273
1274 2016-09-29 Richard Biener <rguenther@suse.de>
1275
1276 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1277 constructors with vector elements.
1278
1279 2016-09-29 Richard Biener <rguenther@suse.de>
1280
1281 PR tree-optimization/77768
1282 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1283 with stores to a place we know has a constant value.
1284
1285 2016-09-29 Alan Modra <amodra@gmail.com>
1286
1287 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1288 * doc/invoke.texi: Document it.
1289 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1290 (rs6000_passes_float): Comment.
1291 (rs6000_passes_long_double): New static var.
1292 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1293 (init_cumulative_args): Set up to emit fp .gnu_attribute for
1294 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
1295 to include fp values returned in vectors.
1296 Set rs6000_passes_long_double.
1297 (rs6000_function_arg_advance_1): Likewise for function args.
1298 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1299 and SPE. Emit long double tag value too.
1300 (rs6000_opt_vars): Add gnu-attr.
1301 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1302 * configure: Regenerate.
1303 * config.in: Regenerate.
1304
1305 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1306
1307 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1308 of 0 < x.
1309 (format_floating, format_string, format_directive,
1310 get_destination_size, pass_sprintf_length::handle_gimple_call):
1311 Likewise.
1312
1313 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1314
1315 * gimple-ssa-sprintf.c: Fix comment formatting.
1316 (format_integer): Use is_gimple_assign.
1317 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1318 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
1319 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
1320 (pass_sprintf_length::execute): Use is_gimple_call.
1321
1322 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1323
1324 * gimple-fold.c (gimple_fold_builtin): After failing to fold
1325 strchr, also try the generic folding.
1326
1327 2016-09-28 Martin Sebor <msebor@redhat.com>
1328
1329 PR c/77762
1330 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1331 Fix typos.
1332
1333 2016-09-28 Martin Sebor <msebor@redhat.com>
1334
1335 PR middle-end/77683
1336 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1337 length modifier is not expected.
1338 (format_floating): Ignore l length modifier and fail gracefuly
1339 when it isn't one of the other expected ones.
1340
1341 2016-09-28 Martin Sebor <msebor@redhat.com>
1342
1343 PR bootstrap/77753
1344 * varasm.c (assemble_addr_to_section): Increase local buffer size.
1345
1346 2016-09-27 Richard Biener <rguenther@suse.de>
1347
1348 * dwarf2out.c (cu_die_list): New global.
1349 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
1350 main_comp_unit_die to cu_die_list if we created it.
1351 Move break_out_includes ...
1352 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
1353 the cu_die_list.
1354
1355 2016-09-28 Richard Biener <rguenther@suse.de>
1356
1357 * dwarf2out.c (struct die_struct): Add removed flag.
1358 (lookup_type_die): If the DIE is marked as removed, clear
1359 TYPE_SYMTAB_DIE and return NULL.
1360 (lookup_decl_die): If the DIE is marked as removed, remove it
1361 from the hash and return NULL.
1362 (mark_removed): New helper.
1363 (prune_unused_types_prune): Call it for removed DIEs.
1364 (gen_subprogram_die): Move the premark_used_types call to after
1365 DIEs for the functions scopes are generated.
1366 (process_scope_var): Do not re-create pruned types or type decls.
1367 Make sure to also re-parent type decls.
1368 (dwarf2out_finish): Move unused type pruning and debug_types
1369 handling ...
1370 (dwarf2out_early_finish): ... here.
1371
1372 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1373
1374 * config/arc/arc-c.c: New file.
1375 * config/arc/arc-c.def: Likewise.
1376 * config/arc/t-arc: Likewise.
1377 * config.gcc: Include arc-c.o as c and cpp object.
1378 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1379 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1380 arc_cpu_cpp_builtins.
1381
1382 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1383
1384 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1385 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1386
1387 2016-09-28 Nathan Sidwell <nathan@acm.org>
1388
1389 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1390 printing.
1391
1392 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1393
1394 PR tree-optimization/61056
1395 * gimple-fold.c (gimple_fold_builtin_strchr):
1396 New function to optimize strchr (s, 0) to strlen.
1397 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1398
1399 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
1400
1401 PR tree-optimization/77724
1402 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1403 Add tree_fits_shwi_p check.
1404
1405 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1406
1407 * auto-inc-dec.c (try_merge): Remove break after return.
1408 * cselib.c (autoinc_split): Likewise.
1409 * explow.c (promote_mode): Likewise.
1410 * fixed-value.c (fixed_arithmetic): Likewise.
1411 * hsa.c (hsa_internal_fn::get_arity): Likewise.
1412 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
1413 * trans-mem.c (get_attrs_for): Likewise.
1414 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1415 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
1416 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
1417 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
1418 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
1419 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
1420 * config/cris/cris.c (cris_op_str): Likewise.
1421 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
1422 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
1423
1424 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
1425
1426 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
1427 IFN_GOACC_REDUCTION_CODES): New.
1428 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
1429 ifn_goacc_reduction_kind): Use them.
1430 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
1431 of internal functions, when applicable.
1432
1433 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
1434
1435 * config/mips/constraints.md (d): Fix documentation.
1436 * doc/md.texi (Machine Constraints): Update accordingly.
1437
1438 2016-09-27 Richard Biener <rguenther@suse.de>
1439
1440 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
1441 cur_line_info_table initialization ...
1442 (dwarf2out_assembly_start): ... here.
1443
1444 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
1445
1446 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
1447 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
1448 (*thumb2_movhi_vfp): Likewise.
1449 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
1450 template. Expand predicable attribute to mark VMOV.F16 as not
1451 predicable. Add "arch" attribute.
1452 (*thumb2_movhi_fp16): Likewise.
1453 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
1454 (*thumb2_movsi_vfp): Add "arch" attribute.
1455
1456 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
1457
1458 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1459 VAR_DECL string.
1460
1461 2016-09-27 Marek Polacek <polacek@redhat.com>
1462
1463 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
1464 comment.
1465
1466 * config/c6x/c6x.h: Adjust fall through comment.
1467 * config/sh/sh.c (final_prescan_insn): Likewise.
1468 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
1469 (visium_expand_fp_cstore): Likewise.
1470
1471 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1472
1473 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
1474 expected by -Wimplicit-fallthrough.
1475 (thumb1_size_rtx_costs): Likewise.
1476 (thumb2_reorg): Likewise.
1477 (tls_mentioned_p): Add "Fall through" comment.
1478 (thumb2_reorg): Likewise.
1479 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
1480 comment form expected by -Wimplicit-fallthrough.
1481
1482 2016-09-27 Martin Liska <mliska@suse.cz>
1483
1484 PR gcov-profile/46266
1485 * input.h (RESERVED_LOCATION_P): New macro.
1486 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
1487 instread of comparison with UNKNOWN_LOCATION.
1488
1489 2016-09-27 Richard Biener <rguenther@suse.de>
1490
1491 PR tree-optimization/77745
1492 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1493 When removing redundant stores make sure to check compatibility
1494 of the TBAA state for downstream accesses.
1495 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1496 value-numbering virtual operands for store matches.
1497
1498 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
1499
1500 PR target/51244
1501 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
1502 movrt patterns. Match them before anything else in the SET case.
1503
1504 2016-09-27 Martin Liska <mliska@suse.cz>
1505
1506 PR gcov-profile/7970
1507 PR gcov-profile/16855
1508 PR gcov-profile/44779
1509 * coverage.c (build_gcov_exit_decl): New function.
1510 (coverage_obj_init): Call the function and generate __gcov_exit
1511 destructor.
1512 * doc/gcov.texi: Document when __gcov_exit function is called.
1513
1514 2016-09-27 Marek Polacek <polacek@redhat.com>
1515
1516 PR bootstrap/77751
1517 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1518 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
1519 -Wno-error instead of -Wno-implicit-fallthrough.
1520
1521 2016-09-27 Martin Liska <mliska@suse.cz>
1522
1523 PR bootstrap/77749
1524 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
1525
1526 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1527
1528 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
1529 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
1530 comments. Remove break after return.
1531 (ix86_fp_compare_code_to_integer, has_dispatch,
1532 ix86_simd_clone_usable): Remove break after return.
1533
1534 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1535
1536 PR rlt-optimization/77714
1537 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
1538 REG_EQUAL note.
1539
1540 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1541
1542 PR ipa/77677
1543 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
1544 extract_range_from_unary_expr to convert value_range.
1545 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
1546 (extract_range_from_unary_expr): This.
1547 * tree-vrp.h (extract_range_from_unary_expr): Declare.
1548
1549 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
1550
1551 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
1552
1553 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1554
1555 * config/i386/i386.c (ix86_print_operand)
1556 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
1557 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
1558 (epilogue_renumber): Likewise.
1559
1560 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
1561
1562 PR middle-end/77719
1563 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
1564 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
1565
1566 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1567
1568 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1569 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
1570 is_mm_seq_cst, is_mm_sync): Move to ...
1571 * memmodel.h: This. New file.
1572 * builtins.c: Include memmodel.h.
1573 * optabs.c: Likewise.
1574 * tsan.c: Likewise.
1575 * config/aarch64/aarch64.c: Likewise.
1576 * config/alpha/alpha.c: Likewise.
1577 * config/arm/arm.c: Likewise.
1578 * config/i386/i386.c: Likewise.
1579 * config/ia64/ia64.c: Likewise.
1580 * config/mips/mips.c: Likewise.
1581 * config/rs6000/rs6000.c: Likewise.
1582 * config/sparc/sparc.c: Likewise.
1583 * genconditions.c: Include memmodel.h in generated file.
1584 * genemit.c: Likewise.
1585 * genoutput.c: Likewise.
1586 * genpeep.c: Likewise.
1587 * genpreds.c: Likewise.
1588 * genrecog.c: Likewise.
1589
1590 2016-09-26 David Malcolm <dmalcolm@redhat.com>
1591
1592 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
1593 "c" instead when parsing characters. Move operand parsing into...
1594 (read_rtx_operand): ...this new function, renaming "i" to "idx",
1595 and tightening the scope of various locals.
1596
1597 2016-09-26 Liu Hao <lh_mouse@126.com>
1598
1599 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
1600
1601 2016-09-26 Marek Polacek <polacek@redhat.com>
1602
1603 * system.h: Use __has_attribute to check whether the fallthrough
1604 attribute is supported.
1605
1606 2016-09-26 Marek Polacek <polacek@redhat.com>
1607
1608 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
1609 gimple_call_internal_p.
1610 * ipa-split.c (find_return_bb): Likewise.
1611 (execute_split_functions): Likewise.
1612 * omp-low.c (dump_oacc_loop_part): Likewise.
1613 (oacc_loop_xform_head_tail): Likewise.
1614 * predict.c (predict_loops): Likewise.
1615 * sanopt.c (pass_sanopt::execute): Likewise.
1616 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
1617 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
1618 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
1619 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
1620 (expand_ifn_va_arg): Likewise.
1621 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1622 (optimize_mask_stores): Likewise.
1623 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
1624 (vect_transform_stmt): Likewise.
1625 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
1626 * tsan.c (instrument_memory_accesses): Likewise.
1627
1628 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1629 Alexander Monakov <amonakov@ispras.ru>
1630
1631 * regrename.c (rename_chains): Check
1632 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
1633 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
1634 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1635
1636 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1637
1638 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
1639 (s390_sched_score): Likewise.
1640
1641 2016-09-26 Martin Liska <mliska@suse.cz>
1642
1643 * doc/gcov.texi: Update program output of gcov tool.
1644
1645 2016-09-26 Martin Liska <mliska@suse.cz>
1646
1647 PR gcov-profile/23332
1648 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
1649 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
1650 * value-prof.c (dump_histogram_value): Do not handle
1651 HIST_TYPE_CONST_DELTA.
1652 (stream_in_histogram_value): Likewise.
1653 (gimple_find_values_to_profile): Likewise.
1654 * value-prof.h (enum hist_type): Likewise.
1655
1656 2016-09-26 Martin Liska <mliska@suse.cz>
1657
1658 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
1659 from default sanitize recover values.
1660 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
1661 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
1662 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
1663 consistent.
1664 * opts.c (finish_options): Do a generic loop over options
1665 that can be recovered.
1666 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
1667 SANITIZE_RETURN.
1668 (common_handle_option): Likewise.
1669 * opts.h: Declare can_recover to sanitizer_opts_s.
1670
1671 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
1672
1673 * target.def(elf_flags_numeric): Change documentation to present tense.
1674 * doc/tm.texi: Regenerate.
1675
1676 2016-09-26 Marek Polacek <polacek@redhat.com>
1677
1678 PR c/7652
1679 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1680 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
1681 -Wno-switch-fallthrough.
1682 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
1683 (expand_builtin): Likewise.
1684 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
1685 * convert.c (convert_to_real_1): Likewise.
1686 (convert_to_integer_1): Likewise.
1687 * final.c (output_alternate_entry_point): Likewise.
1688 * genattrtab.c (make_canonical): Likewise.
1689 (write_test_expr): Likewise.
1690 * genpreds.c (validate_exp): Likewise.
1691 * gimple-ssa-strength-reduction.c
1692 (find_candidates_dom_walker::before_dom_children): Likewise.
1693 * godump.c (go_format_type): Likewise.
1694 * reload1.c (elimination_effects): Likewise.
1695 * resource.c (mark_referenced_resources): Likewise.
1696 (mark_set_resources): Likewise.
1697 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
1698 * varasm.c (output_addressed_constants): Likewise.
1699
1700 2016-09-26 Marek Polacek <polacek@redhat.com>
1701
1702 PR c/7652
1703 * common.opt (Wimplicit-fallthrough): New option.
1704 * doc/extend.texi: Document statement attributes and the fallthrough
1705 attribute.
1706 * doc/invoke.texi: Document -Wimplicit-fallthrough.
1707 * gimple.h (gimple_call_internal_p): New function.
1708 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
1709 (struct label_entry): New struct.
1710 (find_label_entry): New function.
1711 (case_label_p): New function.
1712 (collect_fallthrough_labels): New function.
1713 (last_stmt_in_scope): New function.
1714 (should_warn_for_implicit_fallthrough): New function.
1715 (warn_implicit_fallthrough_r): New function.
1716 (maybe_warn_implicit_fallthrough): New function.
1717 (expand_FALLTHROUGH_r): New function.
1718 (expand_FALLTHROUGH): New function.
1719 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
1720 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
1721 (gimplify_label_expr): New function.
1722 (gimplify_case_label_expr): Set location.
1723 (gimplify_expr): Call gimplify_label_expr.
1724 * internal-fn.c (expand_FALLTHROUGH): New function.
1725 * internal-fn.def (FALLTHROUGH): New internal function.
1726 * langhooks.c (lang_GNU_OBJC): New function.
1727 * langhooks.h (lang_GNU_OBJC): Declare.
1728 * system.h (gcc_fallthrough): Define.
1729 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1730 * tree.h (FALLTHROUGH_LABEL_P): Define.
1731
1732 2016-09-26 Richard Biener <rguenther@suse.de>
1733
1734 * dwarf2out.c (stripattributes): Remove unused function.
1735 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1736 Push dwarf_split_debug_info handling into init_sections_and_labels.
1737 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1738 (DEBUG_MACRO_SECTION_FLAGS): Remove.
1739 (debug_macinfo_section_name): New global.
1740 (output_macinfo): Use debug_macinfo_section_name.
1741 (init_sections_and_labels): Split out section and label generation
1742 from dwarf2out_init. Set debug_macinfo_section_name.
1743 (dwarf2out_init): Move text section label generation and emission
1744 to ...
1745 (dwarf2out_assembly_start): ... here.
1746 (dwarf2out_finish): Call init_sections_and_labels before DWARF
1747 output starts.
1748
1749 2016-09-26 Richard Biener <rguenther@suse.de>
1750
1751 PR debug/77692
1752 * cgraphunit.c (analyze_functions): Before early removing
1753 global vars calls the late_global_decl debug handler mark
1754 the variable as readonly.
1755
1756 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
1757
1758 PR target/51244
1759 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1760 (sh_rtx_costs): Handle SET of movt and movrt patterns.
1761 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1762 declare new overloads.
1763 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1764 operand.
1765
1766 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1767
1768 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1769 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1770
1771 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
1772
1773 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1774 * configure: Regenerate.
1775
1776 2016-09-24 Marek Polacek <polacek@redhat.com>
1777
1778 PR c/77490
1779 * doc/invoke.texi: Document -Wbool-operation.
1780
1781 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1782
1783 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1784 * config/rs6000/rs6000.c (expand_block_compare): New function used by
1785 cmpmemsi pattern to do builtin expansion of memcmp ().
1786 (compute_current_alignment): Add helper function for
1787 expand_block_compare used to compute alignment as the compare proceeds.
1788 (select_block_compare_mode): Used by expand_block_compare to select
1789 the mode used for reading the next chunk of bytes in the compare.
1790 (do_load_for_compare): Used by expand_block_compare to emit the load
1791 insns for the compare.
1792 (rs6000_emit_dot_insn): Moved this function to avoid a forward
1793 reference from expand_block_compare ().
1794 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1795 prototype for this function.
1796 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1797 target option for controlling how much code inline expansion of
1798 memcmp() will be allowed to generate.
1799
1800 2016-09-23 Jakub Jelinek <jakub@redhat.com>
1801
1802 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1803 hook_bool_mode_false, hook_bool_mode_true,
1804 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1805 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1806 hook_bool_const_rtx_insn_const_rtx_insn_true,
1807 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1808 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1809 hook_bool_const_tree_hwi_hwi_const_tree_false,
1810 hook_bool_const_tree_hwi_hwi_const_tree_true,
1811 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1812 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1813 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1814 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
1815 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
1816 hook_bool_const_tree_true, hook_bool_tree_tree_false,
1817 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
1818 hook_bool_rtx_insn_true, hook_bool_rtx_false,
1819 hook_bool_uintp_uintp_false,
1820 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
1821 hook_rtx_tree_int_null, hook_uint_mode_0,
1822 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
1823 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
1824 hook_constcharptr_const_rtx_insn_null,
1825 hook_constcharptr_const_tree_const_tree_null,
1826 hook_constcharptr_int_const_tree_null,
1827 hook_constcharptr_int_const_tree_const_tree_null,
1828 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
1829 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
1830 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
1831
1832 * vec.h (vNULL): Extend comment to say = vNULL initialization
1833 isn't needed for static vars.
1834
1835 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
1836 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
1837 = vNULL initialization of file scope vec.
1838 * passes.c (pass_tab, enabled_pass_uid_range_tab,
1839 disabled_pass_uid_range_tab): Likewise.
1840 * haifa-sched.c (sched_luids, h_i_d): Likewise.
1841 * tree-chkp-opt.c (check_infos): Likewise.
1842 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
1843
1844 * vec.h (vnull::operator vec): Add constexpr keyword for
1845 C++11 and later.
1846
1847 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
1848
1849 PR tree-optimization/77654
1850 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
1851 to duplicate_ssa_name_ptr_info.
1852
1853 2016-09-23 David Malcolm <dmalcolm@redhat.com>
1854
1855 PR preprocessor/77672
1856 * input.c (selftest::test_lexer_string_locations_simple): Update
1857 test to expect location information of the terminator character
1858 at the location of the final closing quote.
1859 (selftest::test_lexer_string_locations_hex): Likewise.
1860 (selftest::test_lexer_string_locations_oct): Likewise.
1861 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
1862 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
1863 (selftest::test_lexer_string_locations_ucn4): Likewise.
1864 (selftest::test_lexer_string_locations_ucn8): Likewise.
1865 (selftest::test_lexer_string_locations_u8): Likewise.
1866 (selftest::test_lexer_string_locations_utf8_source): Likewise.
1867 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
1868 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
1869 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
1870 (selftest::test_lexer_string_locations_macro): Likewise.
1871 (selftest::test_lexer_string_locations_long_line): Likewise.
1872
1873 2016-09-23 Richard Biener <rguenther@suse.de>
1874
1875 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
1876 virtual definition to virtual use if the call devirtualizes
1877 to a const or pure function.
1878 (visit_use): Also visit calls we can devirtualize to a
1879 const or pure function.
1880
1881 2016-09-23 Richard Biener <rguenther@suse.de>
1882
1883 PR tree-optimization/77697
1884 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
1885 signal error if we have sth ternary or unhandled.
1886
1887 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
1888
1889 * config/arm/arm_neon.h (vabd_f16): New.
1890 (vabdq_f16): New.
1891 (vabs_f16): New.
1892 (vabsq_f16): New.
1893 (vadd_f16): New.
1894 (vaddq_f16): New.
1895 (vcage_f16): New.
1896 (vcageq_f16): New.
1897 (vcagt_f16): New.
1898 (vcagtq_f16): New.
1899 (vcale_f16): New.
1900 (vcaleq_f16): New.
1901 (vcalt_f16): New.
1902 (vcaltq_f16): New.
1903 (vceq_f16): New.
1904 (vceqq_f16): New.
1905 (vceqz_f16): New.
1906 (vceqzq_f16): New.
1907 (vcge_f16): New.
1908 (vcgeq_f16): New.
1909 (vcgez_f16): New.
1910 (vcgezq_f16): New.
1911 (vcgt_f16): New.
1912 (vcgtq_f16): New.
1913 (vcgtz_f16): New.
1914 (vcgtzq_f16): New.
1915 (vcle_f16): New.
1916 (vcleq_f16): New.
1917 (vclez_f16): New.
1918 (vclezq_f16): New.
1919 (vclt_f16): New.
1920 (vcltq_f16): New.
1921 (vcltz_f16): New.
1922 (vcltzq_f16): New.
1923 (vcvt_f16_s16): New.
1924 (vcvt_f16_u16): New.
1925 (vcvt_s16_f16): New.
1926 (vcvt_u16_f16): New.
1927 (vcvtq_f16_s16): New.
1928 (vcvtq_f16_u16): New.
1929 (vcvtq_s16_f16): New.
1930 (vcvtq_u16_f16): New.
1931 (vcvta_s16_f16): New.
1932 (vcvta_u16_f16): New.
1933 (vcvtaq_s16_f16): New.
1934 (vcvtaq_u16_f16): New.
1935 (vcvtm_s16_f16): New.
1936 (vcvtm_u16_f16): New.
1937 (vcvtmq_s16_f16): New.
1938 (vcvtmq_u16_f16): New.
1939 (vcvtn_s16_f16): New.
1940 (vcvtn_u16_f16): New.
1941 (vcvtnq_s16_f16): New.
1942 (vcvtnq_u16_f16): New.
1943 (vcvtp_s16_f16): New.
1944 (vcvtp_u16_f16): New.
1945 (vcvtpq_s16_f16): New.
1946 (vcvtpq_u16_f16): New.
1947 (vcvt_n_f16_s16): New.
1948 (vcvt_n_f16_u16): New.
1949 (vcvtq_n_f16_s16): New.
1950 (vcvtq_n_f16_u16): New.
1951 (vcvt_n_s16_f16): New.
1952 (vcvt_n_u16_f16): New.
1953 (vcvtq_n_s16_f16): New.
1954 (vcvtq_n_u16_f16): New.
1955 (vfma_f16): New.
1956 (vfmaq_f16): New.
1957 (vfms_f16): New.
1958 (vfmsq_f16): New.
1959 (vmax_f16): New.
1960 (vmaxq_f16): New.
1961 (vmaxnm_f16): New.
1962 (vmaxnmq_f16): New.
1963 (vmin_f16): New.
1964 (vminq_f16): New.
1965 (vminnm_f16): New.
1966 (vminnmq_f16): New.
1967 (vmul_f16): New.
1968 (vmul_lane_f16): New.
1969 (vmul_n_f16): New.
1970 (vmulq_f16): New.
1971 (vmulq_lane_f16): New.
1972 (vmulq_n_f16): New.
1973 (vneg_f16): New.
1974 (vnegq_f16): New.
1975 (vpadd_f16): New.
1976 (vpmax_f16): New.
1977 (vpmin_f16): New.
1978 (vrecpe_f16): New.
1979 (vrecpeq_f16): New.
1980 (vrnd_f16): New.
1981 (vrndq_f16): New.
1982 (vrnda_f16): New.
1983 (vrndaq_f16): New.
1984 (vrndm_f16): New.
1985 (vrndmq_f16): New.
1986 (vrndn_f16): New.
1987 (vrndnq_f16): New.
1988 (vrndp_f16): New.
1989 (vrndpq_f16): New.
1990 (vrndx_f16): New.
1991 (vrndxq_f16): New.
1992 (vrsqrte_f16): New.
1993 (vrsqrteq_f16): New.
1994 (vrecps_f16): New.
1995 (vrecpsq_f16): New.
1996 (vrsqrts_f16): New.
1997 (vrsqrtsq_f16): New.
1998 (vsub_f16): New.
1999 (vsubq_f16): New.
2000
2001 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2002
2003 * config.gcc (extra_headers): Add arm_fp16.h
2004 * config/arm/arm_fp16.h: New.
2005 * config/arm/arm_neon.h: Include "arm_fp16.h".
2006
2007 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2008
2009 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2010 variants).
2011 (vmulf): New (v8hf, v4hf variants).
2012 (vfma): New (v8hf, v4hf variants).
2013 (vfms): New (v8hf, v4hf variants).
2014 (vsub): New (v8hf, v4hf variants).
2015 (vcage): New (v8hf, v4hf variants).
2016 (vcagt): New (v8hf, v4hf variants).
2017 (vcale): New (v8hf, v4hf variants).
2018 (vcalt): New (v8hf, v4hf variants).
2019 (vceq): New (v8hf, v4hf variants).
2020 (vcgt): New (v8hf, v4hf variants).
2021 (vcge): New (v8hf, v4hf variants).
2022 (vcle): New (v8hf, v4hf variants).
2023 (vclt): New (v8hf, v4hf variants).
2024 (vceqz): New (v8hf, v4hf variants).
2025 (vcgez): New (v8hf, v4hf variants).
2026 (vcgtz): New (v8hf, v4hf variants).
2027 (vcltz): New (v8hf, v4hf variants).
2028 (vclez): New (v8hf, v4hf variants).
2029 (vabd): New (v8hf, v4hf variants).
2030 (vmaxf): New (v8hf, v4hf variants).
2031 (vmaxnm): New (v8hf, v4hf variants).
2032 (vminf): New (v8hf, v4hf variants).
2033 (vminnm): New (v8hf, v4hf variants).
2034 (vpmaxf): New (v4hf variant).
2035 (vpminf): New (v4hf variant).
2036 (vpadd): New (v4hf variant).
2037 (vrecps): New (v8hf, v4hf variants).
2038 (vrsqrts): New (v8hf, v4hf variants).
2039 (vabs): New (v8hf, v4hf variants).
2040 (vneg): New (v8hf, v4hf variants).
2041 (vrecpe): New (v8hf, v4hf variants).
2042 (vrnd): New (v8hf, v4hf variants).
2043 (vrnda): New (v8hf, v4hf variants).
2044 (vrndm): New (v8hf, v4hf variants).
2045 (vrndn): New (v8hf, v4hf variants).
2046 (vrndp): New (v8hf, v4hf variants).
2047 (vrndx): New (v8hf, v4hf variants).
2048 (vrsqrte): New (v8hf, v4hf variants).
2049 (vmul_lane): Add v4hf and v8hf variants.
2050 (vmul_n): Add v4hf and v8hf variants.
2051 (vext): New (v8hf, v4hf variants).
2052 (vcvts): New (v8hi, v4hi variants).
2053 (vcvts): New (v8hf, v4hf variants).
2054 (vcvtu): New (v8hi, v4hi variants).
2055 (vcvtu): New (v8hf, v4hf variants).
2056 (vcvts_n): New (v8hf, v4hf variants).
2057 (vcvtu_n): New (v8hi, v4hi variants).
2058 (vcvts_n): New (v8hi, v4hi variants).
2059 (vcvtu_n): New (v8hf, v4hf variants).
2060 (vbsl): New (v8hf, v4hf variants).
2061 (vcvtas): New (v8hf, v4hf variants).
2062 (vcvtau): New (v8hf, v4hf variants).
2063 (vcvtms): New (v8hf, v4hf variants).
2064 (vcvtmu): New (v8hf, v4hf variants).
2065 (vcvtns): New (v8hf, v4hf variants).
2066 (vcvtnu): New (v8hf, v4hf variants).
2067 (vcvtps): New (v8hf, v4hf variants).
2068 (vcvtpu): New (v8hf, v4hf variants).
2069
2070 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2071
2072 * config/arm/arm-builtins.c (hf_UP): New.
2073 (si_UP): New.
2074 (vfp_builtin_data): New. Update comment.
2075 (enum arm_builtins): Include "arm_vfp_builtins.def".
2076 (ARM_BUILTIN_VFP_PATTERN_START): New.
2077 (arm_init_vfp_builtins): New.
2078 (arm_init_builtins): Add arm_init_vfp_builtins.
2079 (arm_expand_vfp_builtin): New.
2080 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
2081 long line.
2082 * config/arm/arm_vfp_builtins.def: New file.
2083 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2084 (arm-builtins.o): Likewise.
2085
2086 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2087
2088 PR ipa/77677
2089 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2090 from constant while creating value range.
2091
2092 2016-09-23 Renlin Li <renlin.li@arm.com>
2093
2094 * ira.c (ira): Move ira_use_lra_p initialization code to ...
2095 (ira_init_once): Here.
2096
2097 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
2098 Jakub Jelinek <jakub@redhat.com>
2099
2100 * hooks.h (hook_uint_uintp_false): Rename to...
2101 (hook_bool_uint_uintp_false): ... this.
2102 * hooks.c (hook_uint_uintp_false): Rename to...
2103 (hook_bool_uint_uintp_false): ... this.
2104 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2105 instead of hook_uint_uintp_false.
2106
2107 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2108
2109 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2110 (arm_init_builtins): Move body of a loop to the standalone
2111 function arm_init_neon_builtin.
2112 (arm_expand_neon_builtin_1): New. Update comment. Function body
2113 moved from arm_neon_builtin with some white-space fixes.
2114 (arm_expand_neon_builtin): Move code into the standalone function
2115 arm_expand_neon_builtin_1.
2116
2117 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2118
2119 * config/arm/iterators.md (VCVTHI): New.
2120 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
2121 (NEON_VAGLTE): New.
2122 (VFM_LANE_AS): New.
2123 (VH_CVTTO): New.
2124 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
2125 (V_HALF): Add V4HF. Fix white-space.
2126 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
2127 (V_s_elem): Likewise.
2128 (V_sz_elem): Fix white-space.
2129 (V_elem_ch): Likewise.
2130 (VH_elem_ch): New.
2131 (scalar_mul_constraint): Add V8HF and V4HF.
2132 (Is_float_mode): Fix white-space.
2133 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
2134 (q): Add HF. Fix white-space.
2135 (float_sup): New.
2136 (float_SUP): New.
2137 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2138 (neon_vfm_lane_as): New.
2139 * config/arm/neon.md (add<mode>3_fp16): New.
2140 (sub<mode>3_fp16): New.
2141 (mul<mode>3add<mode>_neon): New.
2142 (fma<VH:mode>4_intrinsic): New.
2143 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2144 (fmsub<VH:mode>4_intrinsic): New.
2145 (<absneg_str><mode>2): New.
2146 (neon_v<absneg_str><mode>): New.
2147 (neon_v<fp16_rnd_str><mode>): New.
2148 (neon_vrsqrte<mode>): New.
2149 (neon_vpaddv4hf): New.
2150 (neon_vadd<mode>): New.
2151 (neon_vsub<mode>): New.
2152 (neon_vmulf<mode>): New.
2153 (neon_vfma<VH:mode>): New.
2154 (neon_vfms<VH:mode>): New.
2155 (neon_vc<cmp_op><mode>): New.
2156 (neon_vc<cmp_op><mode>_fp16insn): New
2157 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2158 (neon_vca<cmp_op><mode>): New.
2159 (neon_vca<cmp_op><mode>_fp16insn): New.
2160 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2161 (neon_vc<cmp_op>z<mode>): New.
2162 (neon_vabd<mode>): New.
2163 (neon_v<maxmin>f<mode>): New.
2164 (neon_vp<maxmin>fv4hf: New.
2165 (neon_<fmaxmin_op><mode>): New.
2166 (neon_vrecps<mode>): New.
2167 (neon_vrsqrts<mode>): New.
2168 (neon_vrecpe<mode>): New (VH variant).
2169 (neon_vdup_lane<mode>_internal): New.
2170 (neon_vdup_lane<mode>): New.
2171 (neon_vcvt<sup><mode>): New (VCVTHI variant).
2172 (neon_vcvt<sup><mode>): New (VH variant).
2173 (neon_vcvt<sup>_n<mode>): New (VH variant).
2174 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2175 (neon_vcvt<vcvth_op><sup><mode>): New.
2176 (neon_vmul_lane<mode>): New.
2177 (neon_vmul_n<mode>): New.
2178 * config/arm/unspecs.md (UNSPEC_VCALE): New
2179 (UNSPEC_VCALT): New.
2180 (UNSPEC_VFMA_LANE): New.
2181 (UNSPECS_VFMS_LANE): New.
2182
2183 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2184
2185 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2186 ("*extzv<mode><clobbercc_or_nocc>"):
2187 Correct a typo in a comment.
2188 Merged patterns.
2189 ("*insv<mode>_zEC12", "*insv<mode>_z10")
2190 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2191 ("*insv<mode>_zEC12_appendbitsleft")
2192 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2193 ("*insv<mode>_z10_appendbitsleft"): Ditto.
2194 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2195 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2196 Provide pattern with operands switched.
2197 ("*pre_z10_extv<mode>"):
2198 Use new subst patterns.
2199 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2200 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2201 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2202 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2203 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2204 ("*<risbg_n>_sidi_ior_and_lshiftrt")
2205 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2206 New patterns.
2207 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2208 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2209 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2210 on zEC12.
2211 ("SINT"): New mode_iterator with SI, HI, QI.
2212 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2213 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2214 duplication.
2215
2216 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2217
2218 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2219 new interface of s390_contiguous_bitmask_p.
2220 ("contiguous_bitmask_nowrap_operand"): New predicate.
2221 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2222 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2223 of s390_contiguous_bitmask_p.
2224 ("NxxDw"): Rename NxxDq constraint to NxxDw.
2225 ("NxxSw"): New constraint.
2226 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2227 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2228 interface.
2229 (s390_contiguous_bitmask_nowrap_p): Export.
2230 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2231 former s390_contiguous_bitmask_p.
2232 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2233 detect contiguous bit ranges with wraparound. Change signature to
2234 return START and END position instead of POS and LENGTH.
2235 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2236 ranges with wraparound.
2237 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2238 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2239 Adapt to new signature of s390_contiguous_bitmask_p.
2240
2241 2016-09-23 Bin Cheng <bin.cheng@arm.com>
2242
2243 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2244 (create_intersect_range_checks): New.
2245 (vect_create_cond_for_alias_checks): Call above function.
2246
2247 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2248
2249 * config/arm/iterators.md (Code iterators): Fix some white-space
2250 in the comments.
2251 (GLTE): New.
2252 (ABSNEG): New
2253 (FCVT): Moved from vfp.md.
2254 (VCVT_HF_US_N): New.
2255 (VCVT_SI_US_N): New.
2256 (VCVT_HF_US): New.
2257 (VCVTH_US): New.
2258 (FP16_RND): New.
2259 (absneg_str): New.
2260 (FCVTI32typename): Moved from vfp.md.
2261 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2262 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2263 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2264 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
2265 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2266 (vcvth_op): New.
2267 (fp16_rnd_str): New.
2268 (fp16_rnd_insn): New.
2269 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2270 (UNSPEC_VCVT_HF_U_N): New.
2271 (UNSPEC_VCVT_SI_S_N): New.
2272 (UNSPEC_VCVT_SI_U_N): New.
2273 (UNSPEC_VCVTH_S): New.
2274 (UNSPEC_VCVTH_U): New.
2275 (UNSPEC_VCVTA_S): New.
2276 (UNSPEC_VCVTA_U): New.
2277 (UNSPEC_VCVTM_S): New.
2278 (UNSPEC_VCVTM_U): New.
2279 (UNSPEC_VCVTN_S): New.
2280 (UNSPEC_VCVTN_U): New.
2281 (UNSPEC_VCVTP_S): New.
2282 (UNSPEC_VCVTP_U): New.
2283 (UNSPEC_VCVTP_S): New.
2284 (UNSPEC_VCVTP_U): New.
2285 (UNSPEC_VRND): New.
2286 (UNSPEC_VRNDA): New.
2287 (UNSPEC_VRNDI): New.
2288 (UNSPEC_VRNDM): New.
2289 (UNSPEC_VRNDN): New.
2290 (UNSPEC_VRNDP): New.
2291 (UNSPEC_VRNDX): New.
2292 * config/arm/vfp.md (<absneg_str>hf2): New.
2293 (neon_vabshf): New.
2294 (neon_v<fp16_rnd_str>hf): New.
2295 (neon_vrndihf): New.
2296 (addhf3): New.
2297 (subhf3): New.
2298 (divhf3): New.
2299 (mulhf3): New.
2300 (*mulsf3neghf_vfp): New.
2301 (*negmulhf3_vfp): New.
2302 (*mulsf3addhf_vfp): New.
2303 (*mulhf3subhf_vfp): New.
2304 (*mulhf3neghfaddhf_vfp): New.
2305 (*mulhf3neghfsubhf_vfp): New.
2306 (fmahf4): New.
2307 (neon_vfmahf): New.
2308 (fmsubhf4_fp16): New.
2309 (neon_vfmshf): New.
2310 (*fnmsubhf4): New.
2311 (*fnmaddhf4): New.
2312 (neon_vsqrthf): New.
2313 (neon_vrsqrtshf): New.
2314 (FCVT): Move to iterators.md.
2315 (FCVTI32typename): Likewise.
2316 (neon_vcvth<sup>hf): New.
2317 (neon_vcvth<sup>si): New.
2318 (neon_vcvth<sup>_nhf_unspec): New.
2319 (neon_vcvth<sup>_nhf): New.
2320 (neon_vcvth<sup>_nsi_unspec): New.
2321 (neon_vcvth<sup>_nsi): New.
2322 (neon_vcvt<vcvth_op>h<sup>si): New.
2323 (neon_<fmaxmin_op>hf): New.
2324
2325 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2326
2327 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2328 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2329 ("*insv<mode>_zEC12_appendbitsleft")
2330 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2331 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2332
2333 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2334
2335 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2336 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2337 construct values without normalization.
2338 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2339 static local lhs_ops to vNULL.
2340
2341 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2342 Jiong Wang <jiong.wang@arm.com>
2343
2344 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2345 available when FP16 instructions are available.
2346 (output_move_vfp): Add support for 16-bit data moves.
2347 (arm_validize_comparison): Fix some white-space. Support HFmode
2348 by conversion to SFmode.
2349 * config/arm/arm.md (truncdfhf2): Fix a comment.
2350 (extendhfdf2): Likewise.
2351 (cstorehf4): New.
2352 (movsicc): Fix some white-space.
2353 (movhfcc): New.
2354 (movsfcc): Fix some white-space.
2355 (*cmovhf): New.
2356 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2357 instructions are available.
2358 (*thumb2_movhi_vfp): Likewise.
2359 (*arm_movhi_fp16): New.
2360 (*thumb2_movhi_fp16): New.
2361 (*movhf_vfp_fp16): New.
2362 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2363 (*movhf_vfp): Likewise.
2364 (extendhfsf2): Enable when VFP FP16 instructions are available.
2365 (truncsfhf2): Enable when VFP FP16 instructions are available.
2366
2367 2016-09-23 Martin Liska <mliska@suse.cz>
2368
2369 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2370
2371 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2372
2373 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2374 V4HF modes.
2375 (arm_evpc_neon_vtrn): Likewise.
2376 (arm_evpc_neon_vrev): Likewise.
2377 (arm_evpc_neon_vext): Likewise.
2378 * config/arm/arm_neon.h (vbsl_f16): New.
2379 (vbslq_f16): New.
2380 (vdup_n_f16): New.
2381 (vdupq_n_f16): New.
2382 (vdup_lane_f16): New.
2383 (vdupq_lane_f16): New.
2384 (vext_f16): New.
2385 (vextq_f16): New.
2386 (vmov_n_f16): New.
2387 (vmovq_n_f16): New.
2388 (vrev64_f16): New.
2389 (vrev64q_f16): New.
2390 (vtrn_f16): New.
2391 (vtrnq_f16): New.
2392 (vuzp_f16): New.
2393 (vuzpq_f16): New.
2394 (vzip_f16): New.
2395 (vzipq_f16): New.
2396 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2397 (vdup_lane): New (v8hf, v4hf variants).
2398 (vext): New (v8hf, v4hf variants).
2399 (vbsl): New (v8hf, v4hf variants).
2400 * config/arm/iterators.md (VDQWH): New.
2401 (VH): New.
2402 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
2403 (Scalar_mul_8_16): Fix white-space.
2404 (Is_d_reg): Add V4HF and V8HF.
2405 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2406 (neon_vdup_lane<mode>): New.
2407 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2408 (*neon_vtrn<mode>_insn): Likewise.
2409 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
2410 (*neon_vzip<mode>_insn): Likewise
2411 (neon_vuzp<mode>_internal): Likewise.
2412 (*neon_vuzp<mode>_insn): Likewise
2413 * config/arm/vec-common.md (vec_perm_const<mode>): New.
2414
2415 2016-09-23 Jiong Wang <jiong.wang@arm.com>
2416 Matthew Wahab <matthew.wahab@arm.com>
2417
2418 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
2419 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
2420 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
2421 available. Also fix some white-space.
2422 * config/arm/vfp.md (*arm_movhi_vfp): New.
2423 (*thumb2_movhi_vfp): New.
2424
2425 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2426
2427 * config/arm/arm-c.c (arm_cpu_builtins): Define
2428 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
2429 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
2430
2431 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2432
2433 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
2434 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
2435 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
2436 arm_v8_2a_fp16_neon_hw.
2437 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
2438 arm_v8_2a_neon.
2439
2440 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2441
2442 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
2443 arm_fp16_alternative_ok and arm_fp16_none_ok.
2444
2445 2016-09-23 Martin Liska <mliska@suse.cz>
2446
2447 * ipa-icf.c (sem_variable::merge): Replace adress with address.
2448
2449 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2450
2451 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
2452 ("armv8.2-a"): New.
2453 ("armv8.2-a+fp16"): New.
2454 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
2455 (FL2_FP16INST): New.
2456 (FL2_FOR_ARCH8_2A): New.
2457 * config/arm/arm-tables.opt: Regenerate.
2458 * config/arm/arm.c (arm_arch8_2): New.
2459 (arm_fp16_inst): New.
2460 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
2461 for incompatible fp16-format settings.
2462 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
2463 (TARGET_NEON_FP16INST): New.
2464 (arm_arch8_2): Declare.
2465 (arm_fp16_inst): Declare.
2466 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
2467 march=armv8.2-a and march=armv8.2-a+fp16.
2468 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
2469 and armv8.2-a+fp16.
2470 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
2471 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
2472
2473 2016-09-23 Martin Liska <mliska@suse.cz>
2474
2475 * doc/extend.texi: Remove fused-madd from i386 target options.
2476
2477 2016-09-23 Martin Liska <mliska@suse.cz>
2478
2479 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2480 Handle movbe.
2481
2482 2016-09-23 Martin Liska <mliska@suse.cz>
2483
2484 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2485 Handle crc32.
2486
2487 2016-09-23 Martin Liska <mliska@suse.cz>
2488
2489 PR target/71652
2490 * config/i386/i386.c (ix86_option_override_internal): Change
2491 signature and return false when there's an error related to
2492 arch string.
2493 (release_options_strings): New function.
2494 (ix86_valid_target_attribute_tree): Call the function.
2495
2496 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2497
2498 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
2499 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
2500 (gen_hsa_ctor_assignment): Likewise.
2501 * print-tree.c (print_node): Likewise.
2502 * tree-dump.c (dequeue_and_dump): Likewise.
2503 * tree-sra.c (sra_modify_constructor_assign): Likewise.
2504 * expr.c (store_constructor): Likewise.
2505 * fold-const.c (operand_equal_p): Likewise.
2506 * tree-pretty-print.c (dump_generic_node): Likewise.
2507 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
2508 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
2509
2510 2016-09-23 Richard Biener <rguenther@suse.de>
2511
2512 * hooks.h (hook_uint_uintp_false): Declare.
2513
2514 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2515
2516 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
2517 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
2518
2519 2016-09-22 Martin Sebor <msebor@redhat.com>
2520
2521 PR target/77676
2522 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
2523 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
2524 (target_int_min): Correct computation.
2525 (format_integer): Use long long as the argument for the ll length
2526 modifier.
2527 (format_floating): Use target_int_max().
2528 (get_string_length): Same.
2529 (format_string): Avoid setting the bounded flag for strings
2530 of unknown length.
2531 (try_substitute_return_value): Avoid setting range info when
2532 the result isn't bounded.
2533 * varasm.c (assemble_name): Increase buffer size.
2534
2535 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
2536 Terry Guo <terry.guo@arm.com>
2537
2538 * target.def (elf_flags_numeric): New target hook.
2539 * targhooks.h (default_asm_elf_flags_numeric): New.
2540 * varasm.c (default_asm_elf_flags_numeric): New.
2541 (default_elf_asm_named_section): Use new target hook.
2542 * config/arm/arm.opt (mpure-code): New.
2543 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
2544 * config/arm/arm.c (arm_asm_init_sections): Add section
2545 attribute to default text section if -mpure-code.
2546 (arm_option_check_internal): Diagnose use of option with
2547 non supported targets and/or options.
2548 (arm_asm_elf_flags_numeric): New.
2549 (arm_function_section): New.
2550 (arm_elf_section_type_flags): New.
2551 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
2552 for -mpure-code.
2553 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
2554 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
2555
2556 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
2557
2558 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
2559
2560 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2561
2562 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
2563 * rtl.h: Adjust prototype.
2564
2565 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2566
2567 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
2568 (prev_active_insn): Likewise.
2569 (active_insn_p): Likewise.
2570 * rtl.h: Adjust prototypes.
2571 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
2572 * config/arc/arc.md: Likewise.
2573 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
2574 (branch_needs_nop_p): Likewise.
2575 (use_skip_p): Likewise.
2576 * config/sh/sh.c (gen_block_redirect): Likewise.
2577 (split_branches): Likewise.
2578 * reorg.c (optimize_skip): Likewise.
2579 (fill_simple_delay_slots): Likewise.
2580 (fill_slots_from_thread): Likewise.
2581 (relax_delay_slots): Likewise.
2582 * resource.c (mark_target_live_regs): Likewise.
2583
2584 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2585
2586 * config/cris/cris.c (cris_asm_output_case_end): Change argument
2587 type to rtx_insn *.
2588 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
2589 (prev_nonnote_nondebug_insn): Likewise.
2590 * config/cris/cris-protos.h: Adjust prototype.
2591 * rtl.h: Likewise.
2592 * jump.c (rtx_renumbered_equal_p): Adjust.
2593
2594 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2595
2596 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
2597 * rtl.h: Adjust prototype.
2598 * config/sh/sh.md: Adjust.
2599 * dwarf2out.c (add_var_loc_to_decl): Likewise.
2600
2601 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2602
2603 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
2604 (prev_nondebug_insn): Likewise.
2605 * loop-doloop.c (doloop_condition_get): Likewise.
2606 * rtl.h: Adjust prototype.
2607 * cfgloop.h: Likewise.
2608
2609 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2610
2611 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
2612 (prev_nonnote_insn): Likewise.
2613 * jump.c (reversed_comparison_code_parts): Likewise.
2614 (reversed_comparison): Likewise.
2615 * rtl.h: Adjust prototypes.
2616 * config/arc/arc.md: Adjust.
2617 * cse.c (find_comparison_args): Likewise.
2618 * reorg.c (redundant_insn): Change return type to rtx_insn *.
2619 (fix_reg_dead_note): Change argument type to rtx_insn *.
2620 (delete_prior_computation): Likewise.
2621 (delete_computation): Likewise.
2622 (fill_slots_from_thread): Adjust.
2623 (relax_delay_slots): Likewise.
2624 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2625 (simplify_relational_operation_1): Likewise.
2626 (simplify_ternary_operation): Likewise.
2627
2628 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2629
2630 * config/arc/arc-protos.h (arc_label_align): Change type of
2631 variables from rtx to rtx_insn *.
2632 * config/arc/arc.c (arc_label_align): Likewise.
2633 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
2634 * config/bfin/bfin.c (workaround_speculation): Likewise.
2635 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
2636 (find_last_same_clock): Likewise.
2637 (reorg_split_calls): Likewise.
2638 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
2639 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
2640 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
2641 (same_cmp_following_p): Likewise.
2642 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
2643 (same_cmp_following_p): Likwise.
2644 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
2645 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
2646 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
2647 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
2648 (rl78_alloc_physical_registers_cmp): Likewise.
2649 (rl78_alloc_physical_registers_umul): Likewise.
2650 (rl78_calculate_death_notes): Likewise.
2651 * config/s390/s390-protos.h (s390_label_align): Likewise.
2652 * config/s390/s390.c (s390_label_align): Likewise.
2653 * config/sh/sh.c (barrier_align): Likewise.
2654 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
2655 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
2656 (emit_cbcond_nop): Likewise.
2657
2658 2016-09-22 Martin Liska <mliska@suse.cz>
2659
2660 PR ipa/77653
2661 * ipa-icf.c (sem_variable::merge): Yield merge operation if
2662 alias address matters, not necessarily address of original.
2663
2664 2016-09-22 Richard Biener <rguenther@suse.de>
2665
2666 PR middle-end/77697
2667 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
2668 fold fails.
2669
2670 2016-09-22 Richard Biener <rguenther@suse.de>
2671
2672 PR middle-end/77677
2673 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
2674 from constant folding results.
2675 (gimple_resimplify2): Likewise.
2676 (gimple_resimplify3): Likewise.
2677
2678 2016-09-22 Richard Biener <rguenther@suse.de>
2679
2680 PR middle-end/77678
2681 * expr.c (expand_expr_real_1): Guard array access against negative
2682 offset.
2683
2684 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2685
2686 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
2687 of MPFR_RNDN.
2688 (format_floating): Likewise.
2689
2690 2016-09-22 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR fortran/77665
2693 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2694 for all IFN_GOMP_SIMD_* internal fns, not just for
2695 IFN_GOMP_SIMD_ORDERED_*.
2696
2697 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2698
2699 PR target/77670
2700 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
2701 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
2702 instructions when you want to invert the test.
2703 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
2704 correct order for XXSEL.
2705 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
2706 for using XSCMP{EQ,GT,GE}DP.
2707
2708 2016-09-21 David Malcolm <dmalcolm@redhat.com>
2709
2710 * genconstants.c (main): Introduce noop_reader and convert call
2711 to read_md_files to a method call.
2712 * genenums.c (main): Likewise.
2713 * genmddeps.c (main): Likewise.
2714 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
2715 rtx_reader_ptr->get_top_level_filename ().
2716 (write_tm_preds_h): Likewise.
2717 (write_insn_preds_c): Likewise.
2718 * gensupport.c (class gen_reader): New subclass of rtx_reader.
2719 (rtx_handle_directive): Convert to...
2720 (gen_reader::handle_unknown_directive): ...this.
2721 (init_rtx_reader_args_cb): Convert return type from bool to
2722 rtx_reader *. Create a gen_reader instance, using it for the
2723 call to read_md_files. Return it if no errors occur.
2724 (init_rtx_reader_args): Convert return type from bool to
2725 rtx_reader *.
2726 * gensupport.h (init_rtx_reader_args_cb): Likewise.
2727 (init_rtx_reader_args_cb): Likewise.
2728 * read-md.c (struct file_name_list): Move to class rtx_reader.
2729 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2730 (read_md_filename): Delete in favor of
2731 rtx_reader::m_read_md_filename.
2732 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2733 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2734 (base_dir): Delete in favor of rtx_reader::m_base_dir.
2735 (first_dir_md_include): Delete in favor of
2736 rtx_reader::m_first_dir_md_include.
2737 (last_dir_md_include_ptr): Delete in favor of
2738 rtx_reader::m_last_dir_md_include_ptr.
2739 (max_include_len): Delete.
2740 (rtx_reader_ptr): New.
2741 (fatal_with_file_and_line): Use get_filename and get_lineno
2742 accessors of rtx_reader_ptr.
2743 (require_char_ws): Likewise.
2744 (rtx_reader::read_char): New method, based on ::read_char.
2745 (rtx_reader::unread_char): New method, based on ::unread_char.
2746 (read_escape): Use get_filename and get_lineno accessors of
2747 rtx_reader_ptr.
2748 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2749 (read_string): Use get_filename and get_lineno accessors of
2750 rtx_reader_ptr.
2751 (rtx_reader::rtx_reader): New ctor.
2752 (rtx_reader::~rtx_reader): New dtor.
2753 (handle_include): Convert from a function to...
2754 (rtx_reader::handle_include): ...this method, converting
2755 handle_directive from a callback to a virtual function.
2756 (handle_file): Likewise, converting to...
2757 (rtx_reader::handle_file): ...this method.
2758 (handle_toplevel_file): Likewise, converting to...
2759 (rtx_reader::handle_toplevel_file): ...this method.
2760 (rtx_reader::get_current_location): New method.
2761 (parse_include): Convert from a function to...
2762 (rtx_reader::add_include_path): ...this method, dropping redundant
2763 update to unused max_include_len.
2764 (read_md_files): Convert from a function to...
2765 (rtx_reader::read_md_files): ...this method, converting
2766 handle_directive from a callback to a virtual function.
2767 (noop_reader::handle_unknown_directive): New method.
2768 * read-md.h (directive_handler_t): Delete this typedef.
2769 (in_fname): Delete.
2770 (read_md_file): Delete.
2771 (read_md_lineno): Delete.
2772 (read_md_filename): Delete.
2773 (class rtx_reader): New class.
2774 (rtx_reader_ptr): New decl.
2775 (class noop_reader): New subclass of rtx_reader.
2776 (read_char): Reimplement in terms of rtx_reader::read_char.
2777 (unread_char): Reimplement in terms of rtx_reader::unread_char.
2778 (read_md_files): Delete.
2779 * read-rtl.c (read_rtx_code): Update for deletion of globals
2780 read_md_filename and read_md_lineno.
2781
2782 2016-09-21 Jason Merrill <jason@redhat.com>
2783
2784 * input.h (from_macro_definition_at): New.
2785
2786 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
2787
2788 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2789
2790 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2791
2792 PR tree-optimization/77550
2793 * tree-vect-stmts.c (create_array_ref): Change parameters.
2794 (get_group_alias_ptr_type): New function.
2795 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2796
2797 2016-09-21 Marek Polacek <polacek@redhat.com>
2798
2799 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2800 Add falls through comment.
2801
2802 2016-09-21 Richard Biener <rguenther@suse.de>
2803
2804 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2805 (replace_child): Likewise.
2806 (remove_child_TAG): Adjust.
2807 (move_marked_base_types): Likewise.
2808 (prune_unused_types_prune): Clear die_sib of removed children.
2809
2810 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
2811
2812 PR target/77326
2813 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2814 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
2815
2816 2016-09-21 Richard Biener <rguenther@suse.de>
2817
2818 PR tree-optimization/77648
2819 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
2820 with complex RHS.
2821 (make_transitive_closure_constraints): Adjust comment.
2822 (make_any_offset_constraints): New function.
2823 (handle_rhs_call): Make sure to first expand a pointer to all
2824 subfields before transitively closing it.
2825 (handle_const_call): Likewise. Properly expand returned
2826 pointers as well.
2827 (handle_pure_call): Likewise.
2828
2829 2016-09-21 Richard Biener <rguenther@suse.de>
2830 Jakub Jelinek <jakub@redhat.com>
2831
2832 PR tree-optimization/77621
2833 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2834 group at non-vectorizable stmts.
2835
2836 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2837
2838 PR tree-optimization/72835
2839 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
2840 (make_new_ssa_for_all_defs): Likewise.
2841 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
2842
2843 2016-09-20 Martin Sebor <msebor@redhat.com>
2844
2845 PR middle-end/49905
2846 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
2847 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
2848 * config/linux.c (gnu_libc_printf_pointer_format): New function.
2849 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
2850 * config/sol2.c (solaris_printf_pointer_format): New function.
2851 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
2852 options.
2853 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
2854 * doc/tm.texi: Regenerate.
2855 * gimple-fold.h (get_range_strlen): New function.
2856 (get_maxval_strlen): Declare existing function.
2857 * gimple-fold.c (get_range_strlen): Add arguments and compute both
2858 maximum and minimum.
2859 (get_range_strlen): Define overload.
2860 (get_maxval_strlen): Adjust.
2861 * gimple-ssa-sprintf.c: New file and pass.
2862 * passes.def (pass_sprintf_length): Add new pass.
2863 * targhooks.h (default_printf_pointer_format): Declare new function.
2864 (gnu_libc_printf_pointer_format): Same.
2865 (solaris_libc_printf_pointer_format): Same.
2866 * targhooks.c (default_printf_pointer_format): Define new function.
2867 * tree-pass.h (make_pass_sprintf_length): Declare new function.
2868 * print-tree.c: Increase buffer size.
2869
2870 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2871
2872 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
2873
2874 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2875
2876 * common.opt: New option -fipa-vrp.
2877 * ipa-cp.c (ipa_get_vr_lat): New.
2878 (ipcp_vr_lattice::print): Likewise.
2879 (print_all_lattices): Call ipcp_vr_lattice::print.
2880 (ipcp_vr_lattice::meet_with): New.
2881 (ipcp_vr_lattice::meet_with_1): Likewise.
2882 (ipcp_vr_lattice::top_p): Likewise.
2883 (ipcp_vr_lattice::bottom_p): Likewsie.
2884 (ipcp_vr_lattice::set_to_bottom): Likewise.
2885 (set_all_contains_variable): Call VR set_to_bottom.
2886 (initialize_node_lattices): Init VR lattices.
2887 (propagate_vr_accross_jump_function): New.
2888 (propagate_constants_accross_call): Call
2889 propagate_vr_accross_jump_function.
2890 (ipcp_store_vr_results): New.
2891 (ipcp_driver): Handle VR.
2892 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2893 (ipa_set_jf_unknown): Likewise.
2894 (ipa_compute_jump_functions_for_edge): Likewise.
2895 (ipa_node_params_t::duplicate): Likewise.
2896 (ipa_write_jump_function): Likewise.
2897 (ipa_read_jump_function): Likewise.
2898 (write_ipcp_transformation_info): Likewise.
2899 (read_ipcp_transformation_info): Likewise.
2900 (ipcp_update_vr): New.
2901 (ipcp_transform_function): Handle VR.
2902 * ipa-prop.h (struct ipa_vr): New.
2903 * cgraph.c: Include tree-vrp.h.
2904 * cgraphunit.c: Likewise.
2905 * ipa-utils.c: Likewise.
2906 * ipa.c: Likewise.
2907 * opts.c: Likewise.
2908 * toplev.c: Likewise.
2909 * ipa-devirt.c: Likewise.
2910 * ipa-inline-transform.c: Likewise.
2911 * ipa-inline.c: Likewise.
2912 * ipa-profile.c: Likewise.
2913
2914 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2915
2916 * doc/invoke.texi: Document -fdump-tree-evrp.
2917 * passes.def: Define new pass_early_vrp.
2918 * timevar.def: Define new TV_TREE_EARLY_VRP.
2919 * tree-pass.h (make_pass_early_vrp): New.
2920 * tree-ssa-propagate.c: Make replace_uses_in non static.
2921 * tree-ssa-propagate.h: Export replace_uses_in.
2922 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2923 (extract_range_from_assert): Factor out
2924 extract_range_for_var_from_comparison_expr.
2925 (vrp_initialize_lattice): New.
2926 (vrp_initialize): Factor out vrp_initialize_lattice.
2927 (vrp_valueize): Fix it to reject complex value ranges.
2928 (vrp_free_lattice): New.
2929 (evrp_dom_walker::before_dom_children): Likewise.
2930 (evrp_dom_walker::after_dom_children): Likewise.
2931 (evrp_dom_walker::push_value_range): Likewise.
2932 (evrp_dom_walker::pop_value_range): Likewise.
2933 (execute_early_vrp): Likewise.
2934 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2935 (make_pass_early_vrp): New.
2936
2937 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
2938
2939 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2940 instead of exact_log2.
2941
2942 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
2943
2944 PR target/77621
2945 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2946 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2947 (ix86_add_stmt_cost): Penalize DFmode vector operations
2948 for !TARGET_VECTORIZE_DOUBLE.
2949
2950 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
2951
2952 * doc/invoke.texi (Warning Options): Simplify language.
2953 (Optimize Options): Complete sentence.
2954
2955 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
2956
2957 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
2958 early_finish hook.
2959
2960 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2961
2962 PR target/71395
2963 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
2964 inits on power8 and above, use the VMRGEW instruction instead of a
2965 permute.
2966
2967 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
2968 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
2969 initialization.
2970
2971 2016-09-20 Tamar Christina <tamar.christina@arm.com>
2972
2973 * config/aarch64/arm_neon.h
2974 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
2975 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
2976 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
2977
2978 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2979
2980 * config/var/vax.h (ELIMINABLE_REGS): Define.
2981 (INITIAL_ELIMINATION_OFFSET): Define.
2982
2983 2016-09-20 Jakub Jelinek <jakub@redhat.com>
2984
2985 PR middle-end/77624
2986 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2987 cast to void * if the cast is from some other pointer type.
2988
2989 2016-09-20 Richard Biener <rguenther@suse.de>
2990
2991 PR tree-optimization/77646
2992 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2993 a VDEF.
2994
2995 2016-09-20 Tamar Christina <tamar.christina@arm.com>
2996
2997 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
2998 attributes to all inlined functions and make them extern.
2999
3000 2016-09-20 Richard Biener <rguenther@suse.de>
3001
3002 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3003 hook.
3004 * debug.c (do_nothing_debug_hooks): Adjust.
3005 * dbxout.c (dbx_debug_hooks): Likewise.
3006 * sdbout.c (sdb_debug_hooks): Likewise.
3007 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3008 (dwarf2out_finish): Move producer, filename and
3009 path annotation ...
3010 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
3011 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3012
3013 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3014
3015 PR c++/77434
3016 * doc/invoke.texi: Document -Wint-in-bool-context.
3017
3018 PR middle-end/77421
3019 * dwarf2out.c (output_loc_operands): Fix an assertion.
3020
3021 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3022
3023 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3024 (CR_DECIMAL_DIG): New macro.
3025
3026 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3027
3028 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3029 element.
3030
3031 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
3032
3033 PR rtl-optimization/77416
3034 * lra-remat.c (operand_to_remat): Process hard coded insn
3035 registers.
3036
3037 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3038
3039 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3040 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3041
3042 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3043
3044 * target.def (lra_p): Wordsmithing.
3045 * doc/tm.texi: Regenerate.
3046
3047 2016-09-19 Jakub Jelinek <jakub@redhat.com>
3048 Jan Hubicka <jh@suse.cz>
3049
3050 PR target/77587
3051 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3052 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3053 Call ultimate_alias_target just once, not up to 4 times.
3054
3055 2016-09-19 Richard Biener <rguenther@suse.de>
3056
3057 * dwarf2out.c (early_dwarf_finished): New global.
3058 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3059 is false.
3060 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3061 if called from LTO exit early.
3062 (dwarf2out_late_global_decl): When being during the early
3063 debug phase do not add locations but only const value attributes.
3064 Adjust the way we generate early DIEs for LTO.
3065
3066 2016-09-19 Richard Biener <rguenther@suse.de>
3067
3068 PR middle-end/77605
3069 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3070 proper niter to bound the loops.
3071
3072 2016-09-19 Richard Biener <rguenther@suse.de>
3073
3074 PR tree-optimization/77514
3075 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3076 search for folded stmt.
3077
3078 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
3079
3080 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3081 * tree-pass.h (make_pass_early_thread_jumps): Declare.
3082 * tree-ssa-threadbackward.c (fsm_find_thread_path,
3083 fsm_find_thread_path, profitable_jump_thread_path,
3084 fsm_find_control_statement_thread_paths,
3085 find_jump_threads_backwards): Add speed_p parameter.
3086 (pass_data_early_thread_jumps): New pass.
3087 (make_pass_early_thread_jumps): New function.
3088
3089 2016-09-17 Andreas Schwab <schwab@suse.de>
3090
3091 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3092 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3093
3094 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
3095
3096 * recog.c (rest_of_handle_split_after_reload): Delete.
3097 (pass_split_after_reload::gate): New method.
3098 (pass_split_after_reload::execute): Call split_all_insns directly.
3099
3100 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
3101
3102 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3103 parameters for functions taking long long arguments.
3104
3105 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3106
3107 PR target/77613
3108 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3109 splat with truncate.
3110
3111 2016-09-16 Jason Merrill <jason@redhat.com>
3112
3113 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3114 New.
3115 * hwint.c (exact_log2): Use pow2p_hwi.
3116 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3117 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3118 * builtins.c (get_object_alignment_2, get_object_alignment)
3119 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3120 least_bit_hwi.
3121 * calls.c (compute_argument_addresses, store_one_arg): Use
3122 least_bit_hwi.
3123 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3124 * combine.c (force_to_mode): Use least_bit_hwi.
3125 (contains_muldiv, find_split_point, combine_simplify_rtx)
3126 (simplify_if_then_else, simplify_set, force_to_mode)
3127 (if_then_else_cond, simplify_and_const_int_1)
3128 (simplify_compare_const): Use pow2p_hwi.
3129 * cse.c (fold_rtx): Use pow2p_hwi.
3130 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3131 Use least_bit_hwi.
3132 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3133 (init_expmed_one_conv): Use pow2p_hwi.
3134 * expr.c (is_aligning_offset): Use pow2p_hwi.
3135 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3136 (fold_binary_loc): Use pow2p_hwi.
3137 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3138 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3139 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3140 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3141 Use least_bit_hwi.
3142 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3143 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3144 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3145 * omp-low.c (oacc_loop_fixed_partitions)
3146 (oacc_loop_auto_partitions): Use least_bit_hwi.
3147 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3148 * stor-layout.c (place_field): Use least_bit_hwi.
3149 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3150 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3151 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3152 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3153 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3154 * tree-vect-data-refs.c (vect_analyze_group_access_1)
3155 (vect_grouped_store_supported, vect_grouped_load_supported)
3156 (vect_permute_load_chain, vect_shift_permute_load_chain)
3157 (vect_transform_grouped_load): Use pow2p_hwi.
3158 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3159 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3160 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3161 least_bit_hwi.
3162 * tsan.c (instrument_expr): Use least_bit_hwi.
3163 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3164
3165 2016-09-16 Andreas Schwab <schwab@suse.de>
3166
3167 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3168 OFFSET, not offset.
3169 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3170
3171 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3172
3173 PR target/77526
3174 * combine.c (rest_of_handle_combine): If any edges have been purged,
3175 free dominators if available.
3176
3177 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3178 Eric Botcazou <ebotcazou@adacore.com>
3179
3180 PR middle-end/77594
3181 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3182 through into expand_addsub_overflow after expand_neg_overflow.
3183
3184 2016-09-15 David Malcolm <dmalcolm@redhat.com>
3185
3186 * diagnostic-show-locus.c
3187 (selftest::test_fixit_insert_containing_newline): New function.
3188 (selftest::test_fixit_replace_containing_newline): New function.
3189 (selftest::diagnostic_show_locus_c_tests): Call the above.
3190
3191 2016-09-15 Bin Cheng <bin.cheng@arm.com>
3192
3193 PR tree-optimization/77503
3194 * tree-vect-loop.c (vectorizable_reduction): Record reduction
3195 code for CONST_COND_REDUCTION at analysis stage and use it at
3196 transform stage.
3197 * tree-vectorizer.h (struct _stmt_vec_info): New field.
3198 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3199 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3200 field.
3201
3202 2016-09-15 Richard Biener <rguenther@suse.de>
3203
3204 PR middle-end/77544
3205 * fold-const.c (split_tree): Do not split constant ~X.
3206
3207 2016-09-15 Jakub Jelinek <jakub@redhat.com>
3208
3209 PR rtl-optimization/77425
3210 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3211 is NULL.
3212
3213 PR middle-end/77475
3214 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3215 use %qs instead of %s where desirable, use argument instead of arg in
3216 the diagnostic wording, add list of supported strategies and
3217 spellcheck hint.
3218 (ix86_option_override_internal): Emit target("m...") instead of
3219 option("m...") in the diagnostic. Use %qs instead of %s in invalid
3220 -march/-mtune option diagnostic. Add list of supported arches/tunings
3221 and spellcheck hint. Remove prefix, suffix and sw variables, use
3222 main_args_p ? "..." : "..." in diagnostics to make translation
3223 possible.
3224
3225 2016-09-15 Richard Biener <rguenther@suse.de>
3226
3227 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3228 extra offset argument.
3229 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3230 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3231 to reflect new offset parameter.
3232 * doc/tm.texi: Regenerate.
3233 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3234 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3235 offset argument.
3236 (darwin_asm_output_dwarf_offset): Likewise.
3237 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3238 argument.
3239 (darwin_asm_output_dwarf_offset): Pass offset argument through.
3240 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3241 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3242
3243 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
3244
3245 PR fortran/72743
3246 * ipa-icf.c (set_alias_uids): New function.
3247 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3248 all the merged variable's referring aliases.
3249
3250 2016-09-15 Richard Biener <rguenther@suse.de>
3251
3252 PR tree-optimization/77514
3253 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3254 only forced_stmts sequence.
3255
3256 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
3257
3258 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3259 * cfgexpand.c (update_alias_info_with_stack_vars): Use
3260 FOR_EACH_SSA_NAME to iterate over SSA variables.
3261 (pass_expand::execute): Likewise.
3262 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3263 * tree-cfg.c (dump_function_to_file): Likewise.
3264 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3265 (update_ssa): Likewise.
3266 * tree-ssa-alias.c (dump_alias_info): Likewise.
3267 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3268 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3269 (create_outofssa_var_map): Likewise.
3270 (coalesce_ssa_name): Likewise.
3271 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3272 * tree-ssa-pre.c (compute_avail): Likewise.
3273 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3274 (scc_vn_restore_ssa_info): Likewise.
3275 (free_scc_vn): Likwise.
3276 (run_scc_vn): Likewise.
3277 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3278 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3279 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3280 * tree-ssa.c (verify_ssa): Likewise.
3281
3282 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
3283
3284 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3285 and mips64r2 as default 32-bit and 64-bit architectures.
3286 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3287 as default 32-bit and 64-bit architectures.
3288
3289 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
3290
3291 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3292 of succ edge.
3293
3294 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3295
3296 * target.def (lra_p): Change commentary (for the manual) for the
3297 new default.
3298 * doc/tm.texi: Regenerate.
3299
3300 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3301
3302 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3303 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3304 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3305 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3306
3307 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3308
3309 * targhooks.c (default_lra_p): Return true instead of false.
3310
3311 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3312
3313 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3314 hook_bool_void_false.
3315 * config/avr/avr.c: Ditto.
3316 * config/bfin/bfin.c: Ditto.
3317 * config/c6x/c6x.c: Ditto.
3318 * config/cr16/cr16.c: Ditto.
3319 * config/cris/cris.c: Ditto.
3320 * config/epiphany/epiphany.c: Ditto.
3321 * config/fr30/fr30.c: Ditto.
3322 * config/frv/frv.c: Ditto.
3323 * config/h8300/h8300.c: Ditto.
3324 * config/ia64/ia64.c: Ditto.
3325 * config/iq2000/iq2000.c: Ditto.
3326 * config/lm32/lm32.c: Ditto.
3327 * config/m32c/m32c.c: Ditto.
3328 * config/m32r/m32r.c: Ditto.
3329 * config/m68k/m68k.c: Ditto.
3330 * config/mcore/mcore.c: Ditto.
3331 * config/microblaze/microblaze.c: Ditto.
3332 * config/mmix/mmix.c: Ditto.
3333 * config/mn10300/mn10300.c: Ditto.
3334 * config/moxie/moxie.c: Ditto.
3335 * config/msp430/msp430.c: Ditto.
3336 * config/nios2/nios2.c: Ditto.
3337 * config/nvptx/nvptx.c: Ditto.
3338 * config/pa/pa.c: Ditto.
3339 * config/pdp11/pdp11.c: Ditto.
3340 * config/rl78/rl78.c: Ditto.
3341 * config/sparc/sparc.c: Ditto.
3342 * config/spu/spu.c: Ditto.
3343 * config/stormy16/stormy16.c: Ditto.
3344 * config/tilegx/tilegx.c: Ditto.
3345 * config/tilepro/tilepro.c: Ditto.
3346 * config/v850/v850.c: Ditto.
3347 * config/vax/vax.c: Ditto.
3348 * config/visium/visium.c: Ditto.
3349 * config/xtensa/xtensa.c: Ditto.
3350
3351 2016-09-14 Jakub Jelinek <jakub@redhat.com>
3352
3353 PR sanitizer/68260
3354 * tsan.c: Include target.h.
3355 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3356 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3357 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3358 BUILT_IN_ATOMIC_TEST_AND_SET entries.
3359 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3360
3361 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3362 Martin Liska <mliska@suse.cz>
3363
3364 PR middle-end/77574
3365 * predict.c (force_edge_cold): Add braces to a condition.
3366
3367 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3368
3369 PR rtl-optimization/77289
3370 * lra-constraints.c (get_final_hard_regno): Removed.
3371 (get_hard_regno): Add new parameter final_p.
3372 (get_reg_class): Directly call lra_get_elimination_hard_regno.
3373 (operands_match_p): Adjust call to get_hard_regno.
3374 (uses_hard_regs_p): Likewise.
3375 (process_alt_operands): Likewise.
3376
3377 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
3378
3379 PR target/70713
3380 * config/msp430/msp430.c (msp430_start_function): Emit an error
3381 if a function is both weak and specifies an interrupt number.
3382
3383 2016-09-13 Jakub Jelinek <jakub@redhat.com>
3384
3385 PR tree-optimization/77454
3386 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3387 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
3388 Formatting fix.
3389
3390 2016-09-13 Tamar Christina <tamar.christina@arm.com>
3391
3392 * config/aarch64/aarch64-builtins.c
3393 (aarch64_init_simd_builtins): Fix builtin type signature printing.
3394
3395 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
3396
3397 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3398 SFmode and SCmode arguments by reference.
3399
3400 2016-09-13 David Malcolm <dmalcolm@redhat.com>
3401
3402 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3403 Rename to...
3404 (selftest::test_one_liner_fixit_insert_before): ...this, and update
3405 for renaming of add_fixit_insert to add_fixit_insert_before.
3406 (selftest::test_one_liner_fixit_insert_after): New function.
3407 (selftest::test_one_liner_fixit_validation_adhoc_locations):
3408 Update for renaming of add_fixit_insert to add_fixit_insert_before.
3409 (selftest::test_one_liner_many_fixits): Likewise.
3410 (selftest::test_diagnostic_show_locus_one_liner): Update for
3411 renaming, call new test function.
3412 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
3413 renaming of add_fixit_insert to add_fixit_insert_before.
3414 (selftest::test_fixit_consolidation): Likewise.
3415 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
3416 Likewise.
3417 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
3418 (selftest::test_applying_fixits_insert_before): ...this.
3419 (selftest::test_applying_fixits_insert): Update for renaming of
3420 add_fixit_insert to add_fixit_insert_before.
3421 (selftest::test_applying_fixits_insert_after): New function.
3422 (selftest::test_applying_fixits_insert_after_at_line_end): New
3423 function.
3424 (selftest::test_applying_fixits_insert_after_failure): New function.
3425 (selftest::test_applying_fixits_multiple): Update for renaming of
3426 add_fixit_insert to add_fixit_insert_before.
3427 (selftest::change_line): Likewise.
3428 (selftest::test_applying_fixits_unreadable_file): Likewise.
3429 (selftest::test_applying_fixits_line_out_of_range): Likewise.
3430 (selftest::test_applying_fixits_column_validation): Likewise.
3431 (selftest::test_applying_fixits_column_validation): Likewise.
3432 (selftest::edit_context_c_tests): Update for renamed test function;
3433 call new test functions.
3434
3435 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
3436
3437 PR tree-optimization/77536
3438 PR rtl-optimization/68212
3439 * config/rs6000/rs6000.md (div->recip splitter): Remove
3440 optimize_insn_for_speed_p condition.
3441
3442 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
3443
3444 * optabs.c (prepare_cmp_insn): Update documentation comment.
3445
3446 2016-09-13 Jakub Jelinek <jakub@redhat.com>
3447 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3448
3449 PR middle-end/77475
3450 * opts.h (candidates_list_and_hint): Declare.
3451 * opts-common.c (candidates_list_and_hint): New function.
3452 (cmdline_handle_error): Use it.
3453
3454 2016-09-12 David Malcolm <dmalcolm@redhat.com>
3455
3456 * edit-context.c (edited_line::get_len): New accessor.
3457 (edited_file::print_diff): Split out hunk-printing into...
3458 (edited_file::print_diff_hunk): New method.
3459 (edited_file::print_diff_line): New method.
3460
3461 2016-09-12 Andrew Pinski <apinski@cavium.com>
3462
3463 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
3464 New tuning option.
3465 * config/aarch64/aarch64.c (thunderx_tunings): Enable
3466 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
3467 (aarch64_operands_ok_for_ldpstp): Return false if
3468 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
3469 was SImode and the alignment is less than 8 byte.
3470 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3471
3472 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
3473
3474 PR target/77570
3475 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
3476
3477 2016-09-12 Marek Polacek <polacek@redhat.com>
3478
3479 * doc/extend.texi: Use lowercase "boolean".
3480 * doc/invoke.texi: Likewise.
3481 * doc/md.texi: Likewise.
3482 * target.def: Likewise.
3483 * doc/tm.texi: Regenerated.
3484
3485 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3486
3487 PR middle-end/77426
3488 * expmed.c (synth_mult): Delete duplicate mode check.
3489
3490 2016-09-10 Tom de Vries <tom@codesourcery.com>
3491
3492 PR C/71602
3493 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
3494 va_list type only.
3495 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
3496 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
3497
3498 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
3499
3500 PR rtl-optimization/77289
3501 * lra-constraints.c (get_final_hard_regno): Add support for non hard
3502 register numbers. Remove support for subregs.
3503 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
3504 (get_reg_class): Delete removed get_final_hard_regno() argument.
3505 (uses_hard_regs_p): Call get_final_hard_regno().
3506
3507 2016-09-09 Martin Sebor <msebor@redhat.com>
3508
3509 PR c/77520
3510 PR c/77521
3511 * pretty-print.c (pp_quoted_string): New function.
3512 (pp_format): Call it for %c and %s directives.
3513
3514 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
3515
3516 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
3517 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
3518 INITIAL_ELIMINATION_OFFSET) : Update documentation.
3519 * target.def (frame_pointer_required, can_eliminate): Likewise.
3520 * doc/tm.texi: Regenerated.
3521 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
3522 ELIMINABLE_REGS.
3523 * df-scan.c (df_hard_reg_init): Likewise.
3524 * ira.c (ira_setup_eliminable_regset): Likewise.
3525 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
3526 init_elim_table): Likewise.
3527 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
3528 set_initial_elim_offsets, update_eliminables,
3529 init_elim_table): Likewise.
3530 * rtlanal.c (get_initial_register_offset): Likewise.
3531 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3532 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3533 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3534 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3535 * config/fr30/fr30.h: Fix comment.
3536 * config/frv/frv.c: Likewise.
3537 * config/frv/frv.h: Likewise.
3538 * config/ft32/ft32.h: Likewise.
3539 * config/visium/visium.h: Likewise.
3540 * config/pa/pa64-linux.h: Likewise.
3541 * config/v850/v850.h: Likewise.
3542 * config/cris/cris.c: Likewise.
3543 * config/ia64/ia64.h: Likewise.
3544 * config/moxie/moxie.h: Likewise.
3545 * config/m32r/m32r.h: Likewise.
3546
3547 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3548
3549 PR target/77267
3550 * config.in: Regenerate.
3551 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
3552 New macro.
3553 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
3554 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
3555 static-libmpxwrappers case.
3556 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
3557 MPX_LD_AS_NEEDED_GUARD_POP.
3558 * configure: Regenerate.
3559 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
3560 defined if linker support "--push-state"/"--pop-state".
3561
3562 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3563
3564 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
3565
3566 2016-09-09 Joseph Myers <joseph@codesourcery.com>
3567
3568 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
3569 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
3570 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
3571 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
3572 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
3573 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
3574 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
3575 Document.
3576 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
3577 width macros from TS 18661-1.
3578 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
3579
3580 2016-09-08 Jakub Jelinek <jakub@redhat.com>
3581
3582 PR fortran/77516
3583 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
3584 OMP_CLAUSE_SAFELEN_EXPR.
3585
3586 2016-09-07 David Malcolm <dmalcolm@redhat.com>
3587
3588 * Makefile.in (OBJS): Add substring-locations.o.
3589 * langhooks-def.h (class substring_loc): New forward decl.
3590 (lhd_get_substring_location): New decl.
3591 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
3592 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
3593 * langhooks.c (lhd_get_substring_location): New function.
3594 * langhooks.h (class substring_loc): New forward decl.
3595 (struct lang_hooks): Add field get_substring_location.
3596 * substring-locations.c: New file, taking definition of
3597 format_warning_va and format_warning_at_substring from
3598 c-family/c-format.c, making them non-static.
3599 * substring-locations.h (class substring_loc): Move class here
3600 from c-family/c-common.h. Add and rewrite comments.
3601 (format_warning_va): New decl.
3602 (format_warning_at_substring): New decl.
3603 (get_source_location_for_substring): Add comment.
3604
3605 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
3606
3607 * config/i386/i386.c: Add 'U' suffix to processor feature bits
3608 to avoid -Wnarrowing warning.
3609 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
3610 * opts.c: Likewise for SANITIZER_OPT bitmasks.
3611
3612 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
3613
3614 * config/aarch64/aarch64.c (aarch64_legitimize_address):
3615 Avoid use of base_offset if offset already in range.
3616
3617 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
3618
3619 * config/sh/sh-protos.h (struct sh_atomic_model,
3620 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3621 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3622 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
3623 * config/sh/sh.h (struct sh_atomic_model,
3624 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3625 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3626 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
3627 Guard with __cplusplus.
3628
3629 2016-09-06 Jakub Jelinek <jakub@redhat.com>
3630
3631 PR target/69255
3632 * config/i386/i386.c (ix86_expand_builtin): For builtin with
3633 unsupported or unknown ISA, use expand_call.
3634
3635 2016-09-06 Martin Liska <mliska@suse.cz>
3636
3637 PR gcov-profile/77378
3638 PR gcov-profile/77466
3639 * tree-profile.c (tree_profiling): Detect whether target can use
3640 -fprofile-update=atomic.
3641
3642 2016-09-06 Richard Biener <rguenther@suse.de>
3643
3644 PR tree-optimization/77479
3645 * tree-vrp.c (update_value_range): Extend overflow handling to
3646 VARYING.
3647
3648 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3649
3650 PR target/77476
3651 * config/i386/i386.md (isa): Add x64_avx512bw.
3652 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
3653 (kmov_isa): New mode attr.
3654 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
3655 (*zero_extend<mode>si2): Likewise.
3656 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
3657
3658 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
3659
3660 * doc/invoke.texi (SPU Options): nops -> NOPs.
3661 (x86 Options): Ditto.
3662
3663 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3664
3665 PR middle-end/77475
3666 * toplev.c (process_options): Temporarily set input_location
3667 to UNKNOWN_LOCATION around targetm.target_option.override () call.
3668
3669 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
3670
3671 PR rtl-optimization/77452
3672 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3673 inner-mode reference to a CONST_VECTOR constant in the constant pool.
3674
3675 2016-09-05 Marek Polacek <polacek@redhat.com>
3676
3677 PR c/77423
3678 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
3679
3680 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3681
3682 PR other/77421
3683 * gensupport.c (alter_output_for_subst_insn): Remove redundant
3684 *insn_out == '*' test. Don't copy unnecessary to yet another
3685 memory buffer, and don't leak it.
3686
3687 PR rtl-optimization/77425
3688 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
3689
3690 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
3691
3692 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
3693
3694 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3695
3696 * common.opt (fdiagnostics-generate-patch): New option.
3697 * diagnostic.c: Include "edit-context.h".
3698 (diagnostic_initialize): Initialize context->edit_context_ptr.
3699 (diagnostic_finish): Delete context->edit_context_ptr.
3700 (diagnostic_report_diagnostic): Add fix-it hints from the
3701 diagnostic to context->edit_context_ptr, if any.
3702 * diagnostic.h (class edit_context): Add forward decl.
3703 (struct diagnostic_context): Add field "edit_context_ptr".
3704 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3705 -fdiagnostics-generate-patch.
3706 (-fdiagnostics-generate-patch): New item.
3707 * toplev.c: Include "edit-context.h".
3708 (process_options): Set global_dc->edit_context_ptr to a new
3709 edit_context if the options need one.
3710 (toplev::main): Handle -fdiagnostics-generate-patch by using
3711 global_dc->edit_context_ptr.
3712
3713 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3714
3715 PR c/65467
3716 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
3717 map and firstprivate clauses on target construct for _Atomic
3718 qualified decls.
3719 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
3720 on target construct for _Atomic qualified decls.
3721 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
3722 decls.
3723 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
3724 _Atomic qualified arguments not mentioned in uniform clause.
3725
3726 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3727
3728 * Makefile.in (OBJS-libcommon): Add edit-context.o.
3729 * diagnostic-color.c (color_dict): Add "diff-filename",
3730 "diff-hunk", "diff-delete", and "diff-insert".
3731 (parse_gcc_colors): Update default value of GCC_COLORS in comment
3732 to reflect above changes.
3733 * doc/invoke.texi (-fdiagnostics-color): Update description of
3734 default GCC_COLORS, and of the supported capabilities.
3735 * edit-context.c: New file.
3736 * edit-context.h: New file.
3737 * input.c (struct fcache): Add field "missing_trailing_newline".
3738 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3739 true.
3740 (add_file_to_cache_tab): Likewise.
3741 (fcache::fcache): Likewise.
3742 (get_next_line): Update c->missing_trailing_newline.
3743 (location_missing_trailing_newline): New function.
3744 * input.h (location_missing_trailing_newline): New decl.
3745 * selftest-run-tests.c (selftest::run_tests): Call
3746 edit_context_c_tests.
3747 * selftest.h (edit_context_c_tests): New decl.
3748
3749 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3750 Richard Biener <rguenth@suse.de>
3751
3752 PR tree-optimization/77444
3753 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3754 as steptype, remove redundant initialization.
3755
3756 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3757
3758 PR sanitizer/77396
3759 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3760 (sanopt_optimize_walker): Optimize away
3761 __asan_before_dynamic_init (...) followed by
3762 __asan_after_dynamic_init () without intervening memory loads/stores.
3763 * ipa-pure-const.c (special_builtin_state): Handle
3764 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3765 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3766
3767 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3768
3769 * cfg.c (free_original_copy_tables): Replace second assignment of
3770 bb_copy = NULL by bb_original = NULL.
3771
3772 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3773
3774 PR other/77421
3775 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3776 assignment added in r216794.
3777
3778 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3779
3780 * Makefile.in (OBJS): Add typed-splay-tree.o.
3781 * selftest-run-tests.c (selftest::run_tests): Call
3782 typed_splay_tree_c_tests.
3783 * selftest.h (typed_splay_tree_c_tests): New decl.
3784 * typed-splay-tree.c: New file.
3785 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3786 (typed_splay_tree::max): New method.
3787 (typed_splay_tree::min): New method.
3788 (typed_splay_tree::foreach): New method.
3789 (typed_splay_tree::closure): New struct.
3790 (typed_splay_tree::inner_foreach_fn): New function.
3791
3792 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3793
3794 * ipa-cp.c (ipcp_store_bits_results): Change option name from
3795 -fipa-cp-bit to -fipa-bit-cp.
3796
3797 2016-09-01 Martin Sebor <msebor@redhat.com>
3798
3799 PR tree-optimization/71831
3800 * tree-object-size.h: Return bool instead of the size and add
3801 argument for the size.
3802 * tree-object-size.c (compute_object_offset): Update signature.
3803 (addr_object_size): Same.
3804 (compute_builtin_object_size): Return bool instead of the size
3805 and add argument for the size. Handle POINTER_PLUS_EXPR when
3806 optimization is disabled.
3807 (expr_object_size): Adjust.
3808 (plus_stmt_object_size): Adjust.
3809 (pass_object_sizes::execute): Adjust.
3810 * builtins.c (fold_builtin_object_size): Adjust.
3811 * doc/extend.texi (Object Size Checking): Update.
3812 * ubsan.c (instrument_object_size): Adjust.
3813
3814 2016-09-01 Martin Sebor <msebor@redhat.com>
3815
3816 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
3817 it fits the output of the formatted function regardless of its
3818 arguments.
3819 * gcc/genmodes.c (parser::parse_expr): Same.
3820 * gimplify.c (gimplify_asm_expr): Same.
3821 * passes.c (pass_manager::register_one_dump_file): Same.
3822 * print-tree.c (print_node): Same.
3823
3824 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3825
3826 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
3827
3828 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3829
3830 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
3831
3832 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3833
3834 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
3835 * config/rs6000/vector.md: Ditto.
3836 * config/rs6000/vsx.md: Ditto.
3837
3838 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
3839
3840 * ipa-inline-analysis.c (param_change_prob): Get to the base object
3841 first in all cases.
3842
3843 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3844
3845 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
3846 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
3847 *return_and_restore_gpregs_<mode>_r11,
3848 *return_and_restore_gpregs_<mode>_r12,
3849 *return_and_restore_gpregs_<mode>_r1,
3850 *return_and_restore_fpregs_<mode>_r11,
3851 *return_and_restore_fpregs_<mode>_r12,
3852 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
3853 directly instead of via the "l" constraint. Renumber operands.
3854 Fix whitespace.
3855
3856 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3857
3858 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
3859 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
3860 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
3861 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
3862 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
3863 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
3864 *call_value_nonlocal_darwin64, reload_macho_picbase,
3865 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
3866 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
3867 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
3868 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
3869 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
3870 *save_fpregs_<mode>_r1): Ditto.
3871 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
3872 *return_and_restore_gpregs_spe): Ditto.
3873
3874 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
3875
3876 * config/rs6000/rs6000.md
3877 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
3878 the use of the link register.
3879 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
3880
3881 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3882 Michael Meissner <meissner@linux.vnet.ibm.com>
3883
3884 PR target/72827
3885 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
3886 reg+reg addressing for TImode.
3887 (rs6000_legitimate_address_p): Only allow register indirect
3888 addressing for TImode, even without TARGET_QUAD_MEMORY.
3889
3890 2016-09-01 Richard Biener <rguenther@suse.de>
3891
3892 PR middle-end/77436
3893 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3894 check whether the result fits the desired result type.
3895
3896 2016-09-01 Nathan Sidwell <nathan@acm.org>
3897
3898 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3899
3900 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
3901
3902 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3903 New function.
3904 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3905
3906 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3907
3908 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3909 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3910 for comparisons of integer ZERO_EXTEND against zero.
3911
3912 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
3913
3914 * config/i386/i386.c (ix86_option_override_internal): Also disable the
3915 STV pass if -mstackrealign is enabled.
3916
3917 2016-08-31 Ilya Verbin <iverbin@gmail.com>
3918
3919 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3920 AVX512IFMA.
3921
3922 2016-08-31 David Malcolm <dmalcolm@redhat.com>
3923
3924 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3925 (layout_range::intersects_line_p): New method.
3926 (test_range_contains_point_for_single_point): Rename to...
3927 (test_layout_range_for_single_point): ...this, and add testing
3928 for layout_range::intersects_line_p.
3929 (test_range_contains_point_for_single_line): Rename to...
3930 (test_layout_range_for_single_line): ...this, and add testing
3931 for layout_range::intersects_line_p.
3932 (test_range_contains_point_for_multiple_lines): Rename to...
3933 (test_layout_range_for_multiple_lines): ...this, and add testing
3934 for layout_range::intersects_line_p.
3935 (layout::layout): Populate m_fixit_hints.
3936 (layout::get_expanded_location): Handle the case of a line-span
3937 for a fix-it hint.
3938 (layout::validate_fixit_hint_p): New method.
3939 (get_line_span_for_fixit_hint): New function.
3940 (layout::calculate_line_spans): Add spans for fixit-hints.
3941 (layout::should_print_annotation_line_p): New method.
3942 (layout::print_any_fixits): Drop param "richloc", instead using
3943 validated fixits in m_fixit_hints. Add "const" to hint pointers.
3944 (diagnostic_show_locus): Avoid printing blank annotation lines.
3945 (selftest::test_diagnostic_context::test_diagnostic_context):
3946 Initialize show_column and start_span.
3947 (selftest::test_diagnostic_context::start_span_cb): New static
3948 function.
3949 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3950 (selftest::diagnostic_show_locus_c_tests): Update for function
3951 renamings. Call test_diagnostic_show_locus_fixit_lines.
3952
3953 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
3954
3955 PR tree-optimization/73714
3956 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
3957
3958 2016-08-31 David Malcolm <dmalcolm@redhat.com>
3959
3960 * selftest.c: Move "namespace selftest {" to top of file,
3961 removing explicit "selftest::" qualifiers throughout.
3962
3963 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
3964
3965 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
3966 New types.
3967 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
3968 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
3969 Replace builtin with vector extension.
3970 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
3971 New types.
3972 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
3973 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
3974 Replace builtin with vector extension.
3975 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
3976 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
3977 Replace builtin with vector extension.
3978 * config/i386/xmmintrin.h (__m128_u): New type.
3979 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
3980 (_mm_load_ps, _mm_store_ps): Simplify.
3981
3982 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
3983
3984 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
3985
3986 2016-08-30 David Malcolm <dmalcolm@redhat.com>
3987
3988 * diagnostic-show-locus.c (colorizer::begin_state): Support more
3989 than 3 ranges per diagnostic by alternating between color 1 and
3990 color 2.
3991 (layout::layout): Replace use of rich_location::MAX_RANGES
3992 with richloc->get_num_locations ().
3993 (layout::calculate_line_spans): Replace use of
3994 rich_location::MAX_RANGES with m_layout_ranges.length ().
3995 (layout::print_annotation_line): Handle arbitrary numbers of
3996 ranges in caret-printing by defaulting to '^'.
3997 (selftest::test_one_liner_many_fixits): New function.
3998 (test_diagnostic_show_locus_one_liner): Call it.
3999 * diagnostic.c (diagnostic_initialize): Update for renaming
4000 of rich_location::MAX_RANGES to
4001 rich_location::STATICALLY_ALLOCATED_RANGES.
4002 * diagnostic.h (struct diagnostic_context): Likewise.
4003
4004 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4005
4006 * selftest.c (selftest::named_temp_file::named_temp_file): New
4007 ctor.
4008 (selftest::temp_source_file::~temp_source_file): Move to...
4009 (selftest::named_temp_file::~named_temp_file): ...here.
4010 (selftest::test_named_temp_file): New function.
4011 (selftest::selftest_c_tests): Call test_named_temp_file.
4012 * selftest.h (class named_temp_file): New class.
4013 (class temp_source_file): Convert to a subclass of named_temp_file.
4014
4015 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
4016
4017 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4018 USEs of LR_REGNO in returns and sibcalls.
4019 (rs6000_output_mi_thunk): Similar.
4020 (rs6000_sibcall_aix): Similar.
4021 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4022 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4023 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4024 Remove the USE of LR_REGNO from the patterns as well. Delete an
4025 obsolete comment.
4026 (return_internal_<mode>): Delete.
4027
4028 2016-08-30 Tamar Christina <tamar.christina@arm.com>
4029
4030 * gcc/config/aarch64/aarch64-simd.md
4031 (aarch64_ld2<mode>_dreg_le): New.
4032 (aarch64_ld2<mode>_dreg_be): New.
4033 (aarch64_ld2<mode>_dreg): Removed.
4034 (aarch64_ld3<mode>_dreg_le): New.
4035 (aarch64_ld3<mode>_dreg_be): New.
4036 (aarch64_ld3<mode>_dreg): Removed.
4037 (aarch64_ld4<mode>_dreg_le): New.
4038 (aarch64_ld4<mode>_dreg_be): New.
4039 (aarch64_ld4<mode>_dreg): Removed.
4040 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4041
4042 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4043
4044 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4045 redundant location param.
4046 (test_one_liner_fixit_remove): Likewise.
4047 (test_one_liner_fixit_replace): Likewise.
4048 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4049 * gcc-rich-location.c
4050 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4051 get_range_from_loc. Drop overload taking a const char *.
4052 * gcc-rich-location.h
4053 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4054 a const char *.
4055
4056 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4057
4058 * config/linux.c (linux_libc_has_function): Return true on musl.
4059
4060 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4061
4062 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4063
4064 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
4065
4066 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4067 used for abnormal egdes.
4068
4069 2016-08-30 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR tree-optimization/72866
4072 * tree-vect-patterns.c (search_type_for_mask): Turn into
4073 a small wrapper, move all code to ...
4074 (search_type_for_mask_1): ... this new function. Add caching
4075 and adjust recursive calls.
4076
4077 PR debug/77363
4078 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4079 instead of lookup_type_die (type_main_variant (type)) even for array
4080 types.
4081
4082 PR middle-end/77377
4083 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4084 constant pool reference return x instead of c.
4085
4086 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
4087
4088 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4089 include MQ.
4090
4091 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4092
4093 * input.c
4094 (selftest::test_make_location_nonpure_range_endpoints): Fix
4095 header comment.
4096
4097 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4098
4099 * diagnostic-show-locus.c
4100 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4101 function.
4102 (selftest::test_diagnostic_show_locus_one_liner): Call it.
4103 * input.c (get_pure_location): Move to libcpp/line-map.c.
4104 * input.h (get_pure_location): Convert decl to an inline function
4105 calling implementation in libcpp.
4106
4107 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
4108
4109 PR target/77403
4110 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4111 template for intel asm dialect.
4112 (vec_set_hi_<mode><mask_name>): Ditto.
4113
4114 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4115
4116 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4117 (selftest::fail_formatted): Likewise.
4118
4119 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4120
4121 * input.c (make_location): Call get_start and get_finish
4122 on the endpoints to avoid storing packed ranges or ad-hoc
4123 ranges in them.
4124 (selftest::test_make_location_nonpure_range_endpoints): New function.
4125 (selftest::input_c_tests): Call it.
4126 * input.h (get_start): New inline function.
4127
4128 2016-08-29 Tom de Vries <tom@codesourcery.com>
4129
4130 PR c/77398
4131 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4132 with assert.
4133
4134 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
4135
4136 * Makefile.in (gcov-iov.h): Add dummy recipe.
4137
4138 2016-08-29 Nathan Sidwell <nathan@acm.org>
4139
4140 * config/nvptx/nvptx.c: #include tree-vrp.h.
4141
4142 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 PR target/77324
4145 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4146 HIGH+LO construct during reload.
4147
4148 2016-08-28 Tom de Vries <tom@codesourcery.com>
4149
4150 PR lto/70955
4151 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4152 'sysv_abi va_list' attribute.
4153 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4154 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4155 attributes.
4156
4157 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4158
4159 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4160 * emit-rtl.c (unshare_all_rtl_1): Adjust.
4161 (unshare_all_rtl_again): Likewise.
4162 * function.c (assign_stack_local_1): Likewise.
4163 (assign_stack_temp_for_type): Likewise.
4164
4165 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4166
4167 * cfgbuild.c (make_edges): Adjust.
4168 * cfgrtl.c (can_delete_label_p): Likewise.
4169 * dwarf2cfi.c (create_trace_edges): Likewise.
4170 * except.c (sjlj_emit_dispatch_table): Likewise.
4171 * function.h (struct expr_status): make x_forced_labels a vector.
4172 * jump.c (rebuild_jump_labels_1): Adjust.
4173 * reload1.c (set_initial_label_offsets): Likewise.
4174 * stmt.c (force_label_rtx): Likewise.
4175 (expand_label): Likewise.
4176
4177 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4178
4179 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4180
4181 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
4182
4183 PR tree-optimization/71077
4184 PR tree-optimization/68542
4185 * fold-const.c (fold_relational_const): Fix folding of
4186 VECTOR_CST comparisons that have a scalar boolean result type.
4187 (selftest::test_vector_folding): New static function.
4188 (selftest::fold_const_c_tests): Call it.
4189
4190 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
4191
4192 * doc/extend.texi (SPU Built-in Functions): Remove stale
4193 references to material formerly at IBM and Sony.
4194
4195 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
4196
4197 PR target/77349
4198 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4199
4200 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4201
4202 * diagnostic-show-locus.c
4203 (selftest::test_fixit_consolidation): New function.
4204 (selftest::diagnostic_show_locus_c_tests): Call it.
4205 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4206 constructor based on source_range.
4207
4208 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4209
4210 * diagnostic-color.c (color_dict): Add "fixit-insert" and
4211 "fixit-delete".
4212 (parse_gcc_colors): Update description of default GCC_COLORS.
4213 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4214 (colorizer::set_fixit_insert): New method.
4215 (colorizer::set_fixit_delete): New method.
4216 (colorizer::get_color_by_name): New method.
4217 (colorizer::STATE_FIXIT_INSERT): New constant.
4218 (colorizer::STATE_FIXIT_DELETE): New constant.
4219 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
4220 fields in favor of new field "m_stop_color". Add fields
4221 "m_fixit_insert" and "m_fixit_delete".
4222 (colorizer::colorizer): Update for above changes. Replace
4223 colorize_start calls with calls to get_color_by_name.
4224 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4225 STATE_FIXIT_DELETE. Update for field renamings.
4226 (colorizer::finish_state): Simplify by using m_stop_color,
4227 rather than multiple identical "*_ce" fields.
4228 (colorizer::get_color_by_name): New method.
4229 (layout::print_any_fixits): Print insertions and replacements
4230 using the "fixit-insert" color, and deletions using the
4231 "fixit-delete" color.
4232 * doc/invoke.texi (-fdiagnostics-color): Update description of
4233 default GCC_COLORS, and of the supported capabilities.
4234
4235 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
4236
4237 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4238 current_function_static_stack_size variable with the static
4239 stack frame size of the current function when
4240 flag_stack_usage_info is enabled.
4241
4242 2016-08-26 Nathan Sidwell <nathan@acm.org>
4243
4244 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4245 assignment inside if condition.
4246
4247 2016-08-26 Richard Biener <rguenther@suse.de>
4248
4249 PR tree-optimization/69047
4250 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4251 extracts similar to what FRE does.
4252 (non_rewritable_mem_ref_base): Likewise.
4253
4254 2016-08-26 Joseph Myers <joseph@codesourcery.com>
4255
4256 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4257 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4258 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4259 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4260 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4261 Likewise.
4262 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4263 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4264 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4265 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4266 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4267
4268 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4269
4270 PR target/70473
4271 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4272 reservation duration to 15 cycles.
4273 (cortex_a8_vfp_macs): Likewise.
4274 (cortex_a8_vfp_macd): Likewise.
4275 (cortex_a8_vfp_divs): Likewise.
4276 (cortex_a8_vfp_divd): Likewise.
4277
4278 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4279
4280 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4281 (aarch_macro_fusion_pair_p): Use above to avoid early return.
4282
4283 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4284 Martin Jambhor <mjambor@suse.cz>
4285
4286 * common.opt: New option -fipa-bit-cp.
4287 * doc/invoke.texi: Document -fipa-bit-cp.
4288 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4289 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4290 * tree-ssa-ccp.h: New header file.
4291 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4292 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4293 Replace all occurences of tree parameter by two new params: signop, int.
4294 (bit_value_unop_1): Change to bit_value_unop and export it.
4295 Replace all occurences of tree parameter by two new params: signop,
4296 int.
4297 (bit_value_binop): Change call from bit_value_binop_1 to
4298 bit_value_binop.
4299 (bit_value_assume_aligned): Likewise.
4300 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4301 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4302 to ccp_finalize.
4303 (ccp_finalize): Skip processing if val->mask == 0.
4304 * ipa-cp.c: Include tree-ssa-ccp.h
4305 (ipcp_bits_lattice): New class.
4306 (ipcp_param_lattice (bits_lattice): New member.
4307 (print_all_lattices): Call ipcp_bits_lattice::print.
4308 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4309 (initialize_node_lattices): Likewise.
4310 (propagate_bits_accross_jump_function): New function.
4311 (propagate_constants_accross_call): Call
4312 propagate_bits_accross_jump_function.
4313 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4314 (ipcp_store_bits_results): New function.
4315 (ipcp_driver): Call ipcp_store_bits_results.
4316 * ipa-prop.h (ipa_bits): New struct.
4317 (ipa_jump_func): Add new member bits of type ipa_bits.
4318 (ipa_param_descriptor): Change decl to decl_or_type.
4319 (ipa_get_param): Change decl to decl_or_type and assert on
4320 PARM_DECL.
4321 (ipa_get_type): New function.
4322 (ipcp_transformation_summary): New member bits.
4323 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4324 (ipa_populate_param_decls): Likewise.
4325 (ipa_dump_param): Likewise.
4326 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4327 function.
4328 (ipa_set_jf_unknown): Set ipa_bits::known to false.
4329 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4330 propagation.
4331 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4332 (ipa_write_jump_function): Add streaming for ipa_bits.
4333 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4334 (write_ipcp_transformation_info): Add streaming for ipa_bits
4335 summary for ltrans.
4336 (read_ipcp_transfomration_info): Add support for reading streamed
4337 ipa_bits.
4338 (ipcp_update_bits): New function.
4339 (ipcp_transform_function): Call ipcp_update_bits.
4340
4341 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
4342
4343 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4344 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4345
4346 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
4347
4348 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4349
4350 2016-08-25 Richard Biener <rguenther@suse.de>
4351
4352 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4353 Only add locations in late dwarf.
4354 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4355 (dwarf2out_early_finish): But do it here.
4356
4357 2016-08-24 Michael Collison <michael.collison@linaro.org>
4358 Michael Collison <michael.collison@arm.com>
4359
4360 * config/arm/arm-modes.def: Add new condition code mode CC_V
4361 to represent the overflow bit.
4362 * config/arm/arm.c (maybe_get_arm_condition_code):
4363 Add support for CC_Vmode.
4364 (arm_gen_unlikely_cbranch): New function to generate common
4365 rtl conditional branches for overflow patterns.
4366 * config/arm/arm-protos.h: Add prototype for
4367 arm_gen_unlikely_cbranch.
4368 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4369 addsi3_compareV_upper): New patterns to support signed
4370 builtin overflow add operations.
4371 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4372 New patterns to support unsigned builtin add overflow operations.
4373 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4374 builtin overflow subtract operations,
4375 (usubv<mode>4): New patterns to support unsigned builtin subtract
4376 overflow operations.
4377 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4378 to support builtin overflow negate operations.
4379
4380 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4381
4382 Revert
4383 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4384
4385 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4386 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4387 needed.
4388
4389 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4390
4391 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4392 MULTILIB_OPTIONS should be used. Small wording fixes.
4393 * genmultilib: Memorize set of all option combinations in
4394 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
4395 found in MULTILIB_OPTIONS by checking if option set is listed in
4396 combination_space. Output new and existing error message to stderr.
4397
4398 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4399
4400 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4401 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4402 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4403 (MULTILIB_REUSE): Remove reuse rules for option set including
4404 -mfpu=fp-armv8 and -mfpu=vfpv4
4405
4406 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
4407
4408 * config/arm/t-rtems: Add vfp multilib.
4409
4410 2016-08-23 Ian Lance Taylor <iant@golang.org>
4411
4412 * config/s390/s390.c (s390_asm_file_start): Call
4413 default_file_start.
4414
4415 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4416
4417 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
4418 initialization of all 0's to the 0 constant, instead of directly
4419 generating XOR. Add support for V4SImode vector initialization on
4420 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
4421 initialization. Change variables used in V4SFmode vector
4422 intialization. For V4SFmode vector splat on ISA 3.0, make sure
4423 any memory addresses are in index form. Add support for using
4424 VSPLTH/VSPLTB to initialize vector short and vector char vectors
4425 with all of the same element.
4426 (regno_or_subregno): New helper function to return a register
4427 number for either REG or SUBREG.
4428 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
4429 Use regno_or_subregno where possible.
4430 (rs6000_split_v4si_init_di_reg): New helper function to build up a
4431 DImode value from two SImode values in order to generate V4SImode
4432 vector initialization on 64-bit systems with direct move.
4433 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
4434 initialization.
4435 (rtx_is_swappable_p): V4SImode vector initialization insn is not
4436 swappable.
4437 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
4438 declaration.
4439 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
4440 attributes to initialize V8HImode and V16QImode vectors with the
4441 same element.
4442 (VSX_SPLAT_COUNT): Likewise.
4443 (VSX_SPLAT_SUFFIX): Likewise.
4444 (UNSPEC_VSX_VEC_INIT): New unspec.
4445 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
4446 Allow SFmode values to come from Altivec registers.
4447 (vsx_init_v4si): New insn/split for V4SImode vector initialization
4448 on 64-bit systems with direct move.
4449 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
4450 vector initializations, to allow V4SImode vector initializations
4451 on 64-bit systems with direct move.
4452 (vsx_splat_v4si): Likewise.
4453 (vsx_splat_v4si_di): Likewise.
4454 (vsx_splat_v4sf): Likewise.
4455 (vsx_splat_v4sf_internal): Likewise.
4456 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
4457 register classes.
4458 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
4459 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
4460 initializing V8HImode and V16QImode vectors with the same
4461 element.
4462 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
4463 optimization if -maltivec=be.
4464
4465 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
4466
4467 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
4468 attribute for alternatives 3 and 4.
4469
4470 2016-08-23 David Malcolm <dmalcolm@redhat.com>
4471
4472 * selftest.c (selftest::assert_str_contains): New function.
4473 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
4474 * selftest.h (selftest::assert_str_contains): New decl.
4475 (ASSERT_STR_CONTAINS): New macro.
4476
4477 2016-08-23 Richard Biener <rguenther@suse.de>
4478
4479 PR tree-optimization/77286
4480 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
4481 the CFG here.
4482 (vect_transform_loop): Split exit edges of loop and scalar
4483 loop if required and at the appropriate time.
4484
4485 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4486
4487 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4488 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4489 needed.
4490 Correct a typo in a comment.
4491
4492 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4493
4494 * config/s390/s390.md ("*andc_split"): New splitter for and with
4495 complement.
4496
4497 2016-08-23 Richard Biener <rguenther@suse.de>
4498
4499 PR tree-optimization/27336
4500 * tree-vrp.c (infer_value_range): Handle stmts that can throw
4501 by looking for a non-EH edge.
4502 (process_assert_insertions_for): Likewise.
4503
4504 2016-08-23 Richard Biener <rguenther@suse.de>
4505
4506 PR middle-end/77305
4507 * statistics.c (statistics_counter_event): Robustify against
4508 NULL current_pass.
4509
4510 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4511
4512 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
4513 for targets amdfam10 and barcelona.
4514
4515 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
4516
4517 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
4518 (zero_extend<mode>di2): Ditto.
4519 (*zero_extend<mode>si2): Ditto.
4520 (*zero_extendqihi2): Ditto.
4521
4522 2016-08-22 Joseph Myers <joseph@codesourcery.com>
4523
4524 PR middle-end/77269
4525 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
4526 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
4527
4528 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
4529
4530 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
4531 identical consecutive elements.
4532 [SSA_NAME]: Print the name's def stmt on its own line. When printing
4533 the node's def stmt, avoid printing an unwanted trailing newline by
4534 replacing the call to print_gimple_stmt() with its inlined body and
4535 adjusting it to not set pp_needs_newline and to call pp_flush()
4536 instead of pp_newline_and_flush().
4537
4538 2016-08-22 Joseph Myers <joseph@codesourcery.com>
4539
4540 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
4541 (float32_type_node, float64_type_node, float32x_type_node)
4542 (float128x_type_node): New macros.
4543 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
4544 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
4545 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
4546 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
4547 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
4548 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
4549 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
4550 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
4551 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
4552 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
4553 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
4554 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
4555 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
4556 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
4557 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
4558 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
4559 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
4560 (copysign, fabs, huge_val, inf, nan, nans): Use it.
4561 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
4562 and copysign.
4563 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
4564 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
4565 * doc/extend.texi (Other Builtins): Document these built-in
4566 functions.
4567 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
4568 for nan and nans.
4569
4570 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
4571
4572 * doc/install.texi (Binaries): www.opencsw.org now uses https.
4573
4574 2016-08-22 Richard Biener <rguenther@suse.de>
4575
4576 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
4577
4578 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
4579
4580 PR target/77270
4581 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
4582 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
4583 non-SSE2 athlons only, otherwise prefer SSE prefetches.
4584
4585 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4586
4587 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
4588 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
4589 (vrp_visit_switch_stmt): Likewise.
4590 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
4591 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
4592 (vrp_visit_stmt): Use extract_range_from_stmt.
4593 (vrp_visit_phi_node): Use extract_range_from_phi_node.
4594
4595 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4596
4597 * Makefile.in: Add tree-vrp.h to GTFILES.
4598 * gengtype.c (open_base_files): Add tree-vrp.h.
4599 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
4600 * builtins.c: Likewise.
4601 * fold-const.c: Likewise.
4602 * gimple-builder.c: Likewise.
4603 * gimple-laddress.c: Likewise.
4604 * hsa-gen.c: Likewise.
4605 * internal-fn.c: Likewise.
4606 * ssa.h: Likewise.
4607 * targhooks.c: Liewise,
4608 * tree-ssa-address.c: Likewise.
4609 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
4610 * tree-vrp.c (struct value_range): Move to tree-vrp.h
4611 * tree-vrp.h: New file.
4612
4613 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4614
4615 PR tree-optimization/61839
4616 * tree-vrp.c (two_valued_val_range_p): New.
4617 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
4618 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
4619 Also Convert VAR BINOP CST where VAR is two-valued to
4620 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
4621
4622 2016-08-19 David Malcolm <dmalcolm@redhat.com>
4623
4624 * diagnostic-show-locus.c
4625 (layout::annotation_line_showed_range_p): New method.
4626 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
4627 Reimplement case fixit_hint::REPLACE to cover removals, and
4628 replacements where the range of the replacement isn't one
4629 of the ranges in the rich_location.
4630 (test_one_liner_fixit_replace): Likewise.
4631 (selftest::test_one_liner_fixit_replace_non_equal_range): New
4632 function.
4633 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
4634 New function.
4635 (selftest::test_diagnostic_show_locus_one_liner): Call the new
4636 functions.
4637 * diagnostic.c (print_parseable_fixits): Remove case
4638 fixit_hint::REMOVE.
4639
4640 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
4641
4642 PR target/77270
4643 * config/i386/i386.c (ix86_option_override_internal): Remove
4644 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
4645 Enable SSE prefetch also for TARGET_PREFETCHWT1.
4646 Do not try to enable TARGET_PRFCHW ISA flag here.
4647 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
4648 Rewrite expander function body.
4649 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
4650
4651 2016-08-19 Joseph Myers <joseph@codesourcery.com>
4652
4653 PR c/32187
4654 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
4655 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
4656 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
4657 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
4658 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
4659 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
4660 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
4661 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
4662 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
4663 tree_index values.
4664 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
4665 macros.
4666 (struct floatn_type_info): New structure type.
4667 (floatn_nx_types): New variable declaration.
4668 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
4669 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
4670 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
4671 * tree.c (floatn_nx_types): New variable.
4672 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
4673 corresponding complex types.
4674 * target.def (floatn_mode): New hook.
4675 * targhooks.c: Include "real.h".
4676 (default_floatn_mode): New function.
4677 * targhooks.h (default_floatn_mode): New prototype.
4678 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
4679 types.
4680 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
4681 effective-target and dg-add-options keywords.
4682 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
4683 Document new effective-target keywords.
4684 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
4685 * doc/tm.texi: Regenerate.
4686 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
4687 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
4688 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
4689 18661-3.
4690 * real.h (struct real_format): Add field ieee_bits.
4691 * real.c (ieee_single_format, mips_single_format)
4692 (motorola_single_format, spu_single_format, ieee_double_format)
4693 (mips_double_format, motorola_double_format)
4694 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
4695 (ieee_extended_intel_128_format)
4696 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
4697 (mips_extended_format, ieee_quad_format, mips_quad_format)
4698 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
4699 (decimal_double_format, decimal_quad_format, ieee_half_format)
4700 (arm_half_format, real_internal_format: Initialize ieee_bits
4701 field.
4702 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
4703 float128_type_node. Set float80_type_node to float64x_type_node
4704 if appropriate and long_double_type_node not appropriate.
4705 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
4706 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
4707 Initialize ieee_bits field.
4708 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
4709 (rs6000_init_builtins): Set ieee128_float_type_node to
4710 float128_type_node.
4711 (rs6000_floatn_mode): New function.
4712
4713 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4714
4715 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4716 _rdseed64_step): Uglify argument names and/or local variable names
4717 in inline functions.
4718 * config/i386/rtmintrin.h (_xabort): Likewise.
4719 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
4720 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
4721 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
4722 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
4723 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
4724 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
4725 _mm_maskz_ternarylogic_epi32): Likewise.
4726 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
4727 __lwpins32, __lwpins64): Likewise.
4728 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
4729 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4730 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4731 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4732 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4733 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4734 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4735 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4736 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4737 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4738 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4739 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4740 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4741 _mm256_mask_i64gather_epi32): Likewise.
4742 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4743 * config/i386/ia32intrin.h (__writeeflags): Likewise.
4744 * config/i386/pkuintrin.h (_wrpkru): Likewise.
4745 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4746 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4747 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4748 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4749 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4750 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4751 _mm512_mask_prefetch_i64scatter_ps): Likewise.
4752 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4753 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4754 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4755 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4756 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4757 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4758 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4759 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4760
4761 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4762 returning void.
4763 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4764 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4765 Likewise.
4766 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4767 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
4768 function name.
4769 (_rdpkru_u32): Add space after function name.
4770
4771 * config/i386/t-i386 (i386-c.o): Don't depend on
4772 i386-builtin-types.inc.
4773 (i386.o): Depend on i386-builtin-types.inc.
4774
4775 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
4776
4777 PR target/77281
4778 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4779 Use const_vec_duplicate to check for duplicated elements.
4780
4781 2016-08-19 Richard Biener <rguenther@suse.de>
4782
4783 PR tree-optimization/77290
4784 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4785 Fix flag_tree_parallelize_loops check.
4786
4787 2016-08-19 Richard Biener <rguenther@suse.de>
4788
4789 * match.pd (x | 0 -> x): Add.
4790
4791 2016-08-19 Richard Biener <rguenther@suse.de>
4792
4793 PR tree-optimization/77286
4794 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4795 Deal with virtual PHIs being out-of-order.
4796
4797 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4798
4799 * doc/invoke.texi (fverbose-asm): Note that source code lines
4800 are emitted, and provide an example.
4801 * final.c (asm_show_source): New function.
4802 (final_scan_insn): Call asm_show_source.
4803
4804 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4805
4806 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4807 param with diagnostic_kind.
4808 (class colorizer): Similarly replace field m_diagnostic with
4809 m_diagnostic_kind.
4810 (colorizer::colorizer): Replace diagnostic
4811 param with diagnostic_kind.
4812 (colorizer::begin_state): Update for above field change.
4813 (layout::layout): Replace diagnostic param with rich_location *
4814 and diagnostic_kind.
4815 (diagnostic_show_locus): Replace diagnostic param with richloc
4816 and diagnostic_kind.
4817 (class selftest::test_diagnostic_context): New class.
4818 (selftest::test_diagnostic_show_locus_unknown_location): New
4819 function.
4820 (selftest::test_one_liner_simple_caret): New function.
4821 (selftest::test_one_liner_caret_and_range): New function.
4822 (selftest::test_one_liner_multiple_carets_and_ranges): New
4823 function.
4824 (selftest::test_one_liner_fixit_remove): New function.
4825 (selftest::test_one_liner_fixit_replace): New function.
4826 (selftest::test_diagnostic_show_locus_one_liner): New function.
4827 (selftest::diagnostic_show_locus_c_tests): Call the new test
4828 functions.
4829 * diagnostic.c (diagnostic_initialize): Initialize
4830 colorize_source_p, show_ruler_p and parseable_fixits_p.
4831 (default_diagnostic_finalizer): Update for change to
4832 diagnostic_show_locus.
4833 (diagnostic_append_note): Likewise.
4834 * diagnostic.h (diagnostic_show_locus): Replace
4835 const diagnostic_info * param with location * and diagnostic_t.
4836
4837 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4838
4839 * input.c (saved_line_table): New global.
4840 (class selftest::temp_line_table): Rename to line_table_test and
4841 move declaration to selftest.h, and drop field m_old_line_table.
4842 (selftest::temp_line_table::temp_line_table): Rename ctor to...
4843 (selftest::line_table_test::line_table_test): ...this. Add a
4844 default ctor. Store current value of line_table within
4845 saved_line_table.
4846 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
4847 (selftest::line_table_test::~line_table_test): ...this, and
4848 restore line_table from the saved_line_table, rather than
4849 m_old_line_table.
4850 (selftest::test_accessing_ordinary_linemaps): Update for above
4851 renaming.
4852 (selftest::test_lexer): Likewise.
4853 (struct selftest::lexer_test): Likewise.
4854 (selftest::lexer_test::lexer_test): Likewise.
4855 (selftest::input_c_tests): Move the looping over test cases from
4856 here into...
4857 (selftest::for_each_line_table_case): New function.
4858 * input.h (saved_line_table): New decl.
4859 * selftest.h (struct selftest::line_table_case): New forward decl.
4860 (class selftest::line_table_test): New class, moved here from
4861 selftest::temp_line_table in input.c, and renamed.
4862 (selftest::for_each_line_table_case): New decl.
4863
4864 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
4865
4866 PR target/72839
4867 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
4868
4869 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4870
4871 PR middle-end/70895
4872 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
4873 enclosing parallel construct for reduction variables on OpenACC loop
4874 directives.
4875
4876 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
4877
4878 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
4879 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
4880 -gdwarf-3.
4881 (function_to_dwarf_procedure): Update comment.
4882
4883 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4884
4885 * input.c (diagnostics_file_cache_forcibly_evict_file): New
4886 function.
4887 * input.h (diagnostics_file_cache_forcibly_evict_file): New
4888 declaration.
4889 * selftest.c (selftest::temp_source_file::~temp_source_file):
4890 Evict m_filename from the diagnostic file cache.
4891
4892 2016-08-18 Richard Biener <rguenther@suse.de>
4893
4894 * tree-pass.h (make_pass_materialize_all_clones): Declare.
4895 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4896 make_pass_materialize_all_clones): New simple IPA pass encapsulating
4897 clone materialization.
4898 * passes.def (all_late_ipa_passes): Start with
4899 pass_materialize_all_clones.
4900 * cgraphunit.c (symbol_table::compile): Remove call to
4901 materialize_all_clones.
4902 * tree-into-ssa.c: Include statistics.h.
4903 (update_ssa): Count number of times we do incremental/rewrite
4904 SSA update.
4905
4906 2016-08-18 Richard Biener <rguenther@suse.de>
4907
4908 PR tree-optimization/77282
4909 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4910 When doing auto-parallelizing also prevent use of PHIs that
4911 carry dependences across loop backedges.
4912
4913 2016-08-18 Tamar Christina <tamar.christina@arm.com>
4914 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4915
4916 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4917
4918 2016-08-18 Richard Biener <rguenther@suse.de>
4919
4920 * ssa-iterators.h (ssa_vuse_operand): New inline.
4921 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4922 (predicate_all_scalar_phis): Use remove_phi_node to remove
4923 phi nodes predicated. Delay removing virtual PHIs.
4924 (predicate_mem_writes): Update virtual operands.
4925 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
4926 (tree_if_conversion): Do not rewrite virtual SSA form.
4927 * tree-phinodes.c (release_phi_node): Make static.
4928 * tree-phinodes.h (release_phi_node): Remove.
4929
4930 2016-08-18 Jakub Jelinek <jakub@redhat.com>
4931
4932 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4933 codes that appear in bdesc_* arrays, instead include i386-builtin.def
4934 twice to define those.
4935 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4936 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4937 bdesc_multi_arg): Define by including i386-builtin.def the third time.
4938 * config/i386/i386-builtin.def: New file.
4939
4940 2016-08-17 David Malcolm <dmalcolm@redhat.com>
4941
4942 * input.c (get_source_range_for_char): Rename to...
4943 (selftest::get_source_range_for_char): ...this, and move within
4944 the #if CHECKING_P guard.
4945 (get_num_source_ranges_for_substring): Rename to...
4946 (selftest::get_num_source_ranges_for_substring): ...this, move
4947 within the #if CHECKING_P guard, and make static.
4948 (selftest::assert_num_substring_ranges): Initialize
4949 actual_num_ranges.
4950
4951 2016-08-18 Alan Modra <amodra@gmail.com>
4952
4953 PR rtl-optimization/72771
4954 * reload.c (find_reloads): Don't assume that a subreg mem is OK
4955 when find_reloads_toplev returns address_reloaded==-1.
4956 (alternative_allows_const_pool_ref): Update comment.
4957
4958 2015-08-17 Alan Hayward <alan.hayward@arm.com>
4959
4960 PR tree-optimization/71752
4961 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
4962 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
4963
4964 2016-08-17 Jakub Jelinek <jakub@redhat.com>
4965
4966 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
4967 instead of testing ECF_NORETURN bit in gimple_call_flags.
4968 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
4969 * predict.c (tree_bb_level_predictions): Likewise.
4970 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
4971
4972 PR middle-end/77259
4973 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
4974 turning a call into __builtin_unreachable-like noreturn call, adjust
4975 gimple_call_set_fntype.
4976 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
4977 gimple_call_fntype has void return type.
4978
4979 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
4980
4981 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
4982 maybe_lookup_decl, to handle nested acc loop directives.
4983
4984 2016-08-17 Richard Biener <rguenther@suse.de>
4985
4986 PR tree-optimization/76490
4987 * tree-vrp.c (update_value_range): Preserve overflow infinities
4988 when intersecting with ranges from get_range_info.
4989 (operand_less_p): Handle overflow infinities correctly.
4990 (value_range_constant_singleton): Use vrp_operand_equal_p
4991 to handle overflow max/min correctly.
4992 (vrp_valueize): Likewise.
4993 (union_ranges): Likewise.
4994 (intersect_ranges): Likewise.
4995 (vrp_visit_phi_node): Improve iteration limitation to only
4996 apply when we'll possibly re-visit the PHI via a changed argument
4997 on the backedge.
4998
4999 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5000
5001 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5002 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5003 rather than those that should not be built.
5004
5005 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
5006
5007 PR target/66488
5008 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5009
5010 2016-08-17 Richard Biener <rguenther@suse.de>
5011
5012 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5013 (verify_vssa): New function verifying virtual SSA form.
5014 (verify_ssa): Call it.
5015 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5016 Do not apply loop-closed SSA handling to virtuals.
5017 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5018 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5019 when rewriting their symbol.
5020 (prepare_def_site_for): Likewise.
5021 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5022 operands of moved stmts.
5023
5024 2016-08-17 Richard Biener <rguenther@suse.de>
5025
5026 PR tree-optimization/23855
5027 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5028 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5029 find guards to hoist. Do not update SSA form but rewrite virtuals
5030 into loop closed SSA.
5031 (find_loop_guard): Adjust to skip already hoisted guards. Do
5032 not mark virtuals for renaming or update SSA form.
5033
5034 2016-08-17 Martin Liska <mliska@suse.cz>
5035
5036 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5037 a LONG_LONG_TYPE_SIZE comparison.
5038 * gcov-io.h: Remove macro definitions.
5039 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5040 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5041 comparison.
5042
5043 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5044
5045 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5046 that builtins not mentioned in bdesc_* arrays come first, then
5047 the ones mentioned in bdesc_* arrays in the order they appear in
5048 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5049 IX86_BUILTIN__BDESC_*_LAST enumerator.
5050 (bdesc_mpx): Fix up a comment typo.
5051 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5052 __builtin_ia32_vpcomneu[bwdq] builtins.
5053 (BDESC_VERIFY, BDESC_VERIFYS): Define.
5054 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5055 enum ix86_builtins ordering.
5056 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5057 for direct bdesc_* array member access instead of searching all the
5058 arrays until an fcode match is found.
5059
5060 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
5061
5062 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5063 pattern as define_insn_and_split. Split insn before reload to
5064 ashl<mode>3_1.
5065 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
5066 <shift_insn><mode>3_1.
5067 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
5068 <rotate_insn><mode>3_1.
5069
5070 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5071
5072 PR c/72857
5073 * input.c (get_source_range_for_substring): Rename to...
5074 (get_source_location_for_substring): ...this, adding param
5075 "caret_idx", and converting output param from source_range * to
5076 location_t *.
5077 (get_source_range_for_char): New function.
5078 (get_num_source_ranges_for_substring): Update comment to reflect
5079 above renaming.
5080 (assert_char_at_range): Update to use get_source_range_for_char
5081 rather than get_source_range_for_substring.
5082 (test_lexer_string_locations_concatenation_2): Likewise.
5083 * substring-locations.h (get_source_range_for_substring): Rename
5084 to...
5085 (get_source_location_for_substring): ...this, and adding param
5086 "caret_idx", and converting output param from source_range * to
5087 location_t *.
5088
5089 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5090
5091 * input.c (class selftest::temp_source_file): Move to
5092 selftest.h.
5093 (selftest::temp_source_file::temp_source_file): Move to
5094 selftest.c.
5095 (selftest::temp_source_file::~temp_source_file): Likewise.
5096 * selftest.c (selftest::temp_source_file::temp_source_file): Move
5097 here from input.c.
5098 (selftest::temp_source_file::~temp_source_file): Likewise.
5099 * selftest.h (class selftest::temp_source_file): Move here from
5100 input.c
5101
5102 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5103
5104 PR target/71910
5105 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
5106 inlining, add cgraph edge for the added __builtin_unreachable call.
5107
5108 PR middle-end/67485
5109 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5110 only cast it to SHWI for the final comparison.
5111
5112 2016-08-16 Martin Liska <mliska@suse.cz>
5113
5114 PR gcov-profile/36412
5115 * doc/gcov.texi: Document --hash-filenames(-x).
5116 * gcov.c (print_usage): Add the option.
5117 (process_args): Process the option, sort options alphabetically.
5118 (md5sum_to_hex): New function.
5119 (make_gcov_file_name): Do the md5sum and append it to a
5120 filename.
5121
5122 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5123
5124 PR tree-optimization/69848
5125 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5126 and swtich operands to avoid additional NOT instruction.
5127 (vcond<v_cmp_mixed><mode>): Ditto.
5128 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5129
5130 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
5131
5132 * doc/install.texi (*-*-solaris2*): Adjust latest change.
5133
5134 2016-08-16 Richard Biener <rguenther@suse.de>
5135
5136 PR tree-optimization/76783
5137 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
5138 BB visited flags at start.
5139
5140 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5141
5142 PR tree-optimization/72817
5143 PR tree-optimization/73450
5144 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5145 multiple_of_p for adjusted IV.base.
5146
5147 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
5148
5149 PR target/72867
5150 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5151 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5152 for !flag_finite_math_only or flag_signed_zeros.
5153 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5154 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
5155 depend on flag_finite_math_only.
5156 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5157 New insn pattern.
5158 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5159 (*ieee_smin<mode>3): Ditto.
5160 (*ieee_smax<mode>3): Ditto.
5161 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5162 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5163 flag_signed_zeros.
5164 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
5165 depend on flag_finite_math_only.
5166 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5167 (*mmx_<code>v2sf3): Remove.
5168 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5169 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5170 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5171
5172 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
5173
5174 PR rtl-optimization/73650
5175 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5176 it is not a simple move.
5177
5178 2016-08-15 Martin Liska <mliska@suse.cz>
5179
5180 PR driver/72765
5181 * gcc.c (do_spec_1): Call save_string with the right size.
5182 (save_string): Do an assert about string we copy.
5183
5184 2016-08-15 Richard Biener <rguenther@suse.de>
5185
5186 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5187 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5188 TV_MACH_DEP.
5189 (pass_data_stv): Likewise.
5190
5191 2016-08-15 Richard Biener <rguenther@suse.de>
5192
5193 PR tree-optimization/73434
5194 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5195 TBAA info on the base when forwarding a non-invariant address.
5196
5197 2016-08-15 Jakub Jelinek <jakub@redhat.com>
5198
5199 * dwarf2out.c (struct checksum_attributes): Add
5200 at_string_length_bit_size and at_string_length_byte_size fields.
5201 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5202 and DW_AT_string_length_byte_size.
5203 (die_checksum_ordered): Handle at_string_length_bit_size and
5204 at_string_length_byte_size.
5205 (gen_array_type_die): For dwarf_version >= 5 emit
5206 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5207 (adjust_string_types): For dwarf_version >= 5 remove
5208 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5209 (resolve_addr): Likewise.
5210
5211 PR debug/71906
5212 * dwarf2out.c (string_types): New variable.
5213 (gen_array_type_die): Change early_dwarf handling of
5214 DW_AT_string_length, create DW_OP_call4 referencing the
5215 length var temporarily. Handle parameters that are pointers
5216 to string length.
5217 (adjust_string_types): New function.
5218 (gen_subprogram_die): Temporarily set string_types to local var,
5219 call adjust_string_types if needed.
5220 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5221 New functions.
5222 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5223
5224 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
5225
5226 * doc/install.texi (*-*-solaris2*): Fix version number and document
5227 requirement on GNU make for building libjava with the Solaris linker.
5228
5229 2016-08-15 Martin Liska <mliska@suse.cz>
5230 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR tree-optimization/72824
5233 * tree-loop-distribution.c (const_with_all_bytes_same)
5234 <case VECTOR_CST>: Fix a typo.
5235
5236 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
5237
5238 PR target/76342
5239 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5240 Renamed from _mm512_undefined_si512.
5241 (_mm_undefined_si512): New definition.
5242
5243 2016-08-13 Richard Biener <rguenther@suse.de>
5244
5245 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5246 into PHIs and update the lattice for its def.
5247
5248 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5249
5250 PR c/71512
5251 * ubsan.c (instrument_si_overflow): Pass true instead of false
5252 to gsi_replace.
5253 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5254 of bbs. Return TODO_cleanup_cfg if any returned true.
5255
5256 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5257
5258 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5259 ISA 3.0 MTVSRDD instruction.
5260 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5261 vecperm.
5262
5263 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5264
5265 PR tree-optimization/71083
5266 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5267 bitfield access when possible.
5268
5269 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
5270
5271 PR middle-end/71654
5272 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5273 sign-changing cast from a shorter unsigned type to a wider
5274 signed type.
5275
5276 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5277
5278 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5279 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5280 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5281
5282 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5283
5284 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5285 Correct costs for vec_construct.
5286
5287 2016-08-12 Bin Cheng <bin.cheng@arm.com>
5288
5289 PR tree-optimization/69848
5290 * tree-vectorizer.h (enum vect_def_type): New condition reduction
5291 type CONST_COND_REDUCTION.
5292 * tree-vect-loop.c (vectorizable_reduction): Support new condition
5293 reudction type CONST_COND_REDUCTION.
5294
5295 2016-08-12 Richard Biener <rguenther@suse.de>
5296
5297 PR tree-optimization/57326
5298 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5299 returning an SSA name.
5300 (phi_translate_1): When fully_constant_expression returns a NAME
5301 make sure we have a leader for it.
5302
5303 2016-08-12 Martin Liska <mliska@suse.cz>
5304 Adam Fineman <afineman@afineman.com>
5305
5306 * gcov.c (process_file): Create .gcov file when .gcda
5307 file is missing.
5308
5309 2016-08-12 Marek Polacek <polacek@redhat.com>
5310
5311 PR c/7652
5312 * alias.c (find_base_value): Adjust fall through comment.
5313 * cfgexpand.c (expand_debug_expr): Likewise.
5314 * combine.c (find_split_point): Likewise.
5315 (expand_compound_operation): Likewise. Add FALLTHRU.
5316 (make_compound_operation): Adjust fall through comment.
5317 (canon_reg_for_combine): Add FALLTHRU.
5318 (force_to_mode): Adjust fall through comment.
5319 (simplify_shift_const_1): Likewise.
5320 (simplify_comparison): Likewise.
5321 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5322 FALLTHRU.
5323 * config/aarch64/predicates.md: Likewise.
5324 * config/i386/i386.c (function_arg_advance_32): Likewise.
5325 (ix86_gimplify_va_arg): Likewise.
5326 (print_reg): Likewise.
5327 (ix86_print_operand): Likewise.
5328 (ix86_build_const_vector): Likewise.
5329 (ix86_expand_branch): Likewise.
5330 (ix86_sched_init_global): Adjust fall through comment.
5331 (ix86_expand_args_builtin): Add FALLTHRU.
5332 (ix86_expand_builtin): Likewise.
5333 (ix86_expand_vector_init_one_var): Likewise.
5334 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5335 (rs6000_adjust_cost): Likewise.
5336 (insn_must_be_first_in_group): Likewise.
5337 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
5338 * dbxout.c (dbxout_symbol): Adjust fall through comment.
5339 * df-scan.c (df_uses_record): Likewise.
5340 * dojump.c (do_jump): Add FALLTHRU.
5341 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
5342 comment.
5343 (resolve_args_picking_1): Adjust fall through comment.
5344 (loc_list_from_tree_1): Likewise.
5345 * expmed.c (make_tree): Likewise.
5346 * expr.c (expand_expr_real_2): Add FALLTHRU.
5347 (expand_expr_real_1): Likewise. Adjust fall through comment.
5348 * fold-const.c (const_binop): Adjust fall through comment.
5349 (fold_truth_not_expr): Likewise.
5350 (fold_cond_expr_with_comparison): Add FALLTHRU.
5351 (fold_binary_loc): Likewise.
5352 (contains_label_1): Adjust fall through comment.
5353 (multiple_of_p): Likewise.
5354 * gcov-tool.c (process_args): Add FALLTHRU.
5355 * genattrtab.c (check_attr_test): Likewise.
5356 (write_test_expr): Likewise.
5357 * genconfig.c (walk_insn_part): Likewise.
5358 * genpreds.c (validate_exp): Adjust fall through comment.
5359 (needs_variable): Likewise.
5360 * gensupport.c (get_alternatives_number): Add FALLTHRU.
5361 (subst_dup): Likewise.
5362 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5363 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5364 (gimplify_scan_omp_clauses): Add FALLTHRU.
5365 (goa_stabilize_expr): Likewise.
5366 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5367 through comment.
5368 * hsa-gen.c (get_address_from_value): Likewise.
5369 * ipa-icf.c (sem_function::hash_stmt): Likewise.
5370 * ira.c (ira_setup_alts): Add FALLTHRU.
5371 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5372 comment.
5373 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5374 * opts.c (common_handle_option): Likewise.
5375 * read-rtl.c (read_rtx_code): Likewise.
5376 * real.c (round_for_format): Likewise.
5377 * recog.c (asm_operand_ok): Likewise.
5378 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5379 * reload1.c (set_label_offsets): Likewise.
5380 (eliminate_regs_1): Likewise.
5381 (reload_reg_reaches_end_p): Likewise.
5382 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5383 (rtx_cost): Likewise.
5384 * sched-rgn.c (is_exception_free): Likewise.
5385 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5386 * stor-layout.c (int_mode_for_mode): Likewise.
5387 * toplev.c (print_to_asm_out_file): Likewise.
5388 (print_to_stderr): Likewise.
5389 * tree-cfg.c (gimple_verify_flow_info): Likewise.
5390 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5391 (chrec_fold_multiply): Likewise.
5392 (evolution_function_is_invariant_rec_p): Likewise.
5393 (for_each_scev_op): Likewise.
5394 * tree-data-ref.c (siv_subscript_p): Likewise.
5395 (get_references_in_stmt): Likewise.
5396 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5397 (substitute_in_expr): Likewise.
5398 (type_cache_hasher::equal): Likewise.
5399 (walk_type_fields): Likewise.
5400 * var-tracking.c (adjust_mems): Add FALLTHRU.
5401 (set_dv_changed): Adjust fall through comment.
5402 * varasm.c (default_function_section): Add FALLTHRU.
5403
5404 2016-08-12 Marek Polacek <polacek@redhat.com>
5405
5406 PR c/7652
5407 * tree-complex.c (expand_complex_division): Add missing break.
5408
5409 2016-08-12 Richard Biener <rguenther@suse.de>
5410
5411 * passes.c (execute_todo): Do not push/pop TV_TODO.
5412 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
5413 (execute_one_pass): Likewise.
5414 * common.opt (ftime-report-details): New switch.
5415 * doc/invoke.texi (ftime-report-details): Document.
5416 * timevar.h (timer::print_row): Adjust signature.
5417 (timer::all_zero): New static helper.
5418 (timer::child_map_t): New typedef.
5419 (timer::time_var_def): Add children field.
5420 * timevar.c (timer::named_items::print): Adjust.
5421 (timer::~timer): Free timevar recorded children.
5422 (timer::pop_internal): When -ftime-report-details record
5423 time spent in sub-timevars.
5424 (timer::print_row): Adjust.
5425 (timer::print): Print sub-timevar stats, use all_zero.
5426 * timevar.def (TV_TODO): Remove.
5427
5428 2016-08-12 Richard Biener <rguenther@suse.de>
5429
5430 PR tree-optimization/72851
5431 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
5432 worklists to use bitmaps indexed in execution order.
5433 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
5434 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
5435 (cfg_blocks): Make a bitmap.
5436 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
5437 New globals.
5438 (cfg_blocks_empty_p): Adjust.
5439 (cfg_blocks_add): Likewise.
5440 (cfg_blocks_get): Likewise.
5441 (add_ssa_edge): Likewise.
5442 (add_control_edge): Likewise.
5443 (simulate_stmt): Likewise.
5444 (process_ssa_edge_worklist): Likewise.
5445 (simulate_block): Likewise.
5446 (ssa_prop_init): Compute PRE order and stmt UIDs.
5447 (ssa_prop_fini): Adjust.
5448 (ssa_propagate): Adjust.
5449
5450 2016-08-12 Richard Biener <rguenther@suse.de>
5451
5452 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
5453 the currently executable edges have fixed ranges. Always
5454 go through update_value_range.
5455
5456 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
5457
5458 PR debug/63240
5459 * langhooks-def.h
5460 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
5461 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
5462 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
5463 (LANG_HOOKS_DECLS): Add it.
5464 * langhooks.h (struct lang_hooks_for_decls): Add
5465 function_decl_defaulted. Const_tree-ify
5466 function_decl_explicit_p and function_decl_deleted_p.
5467 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
5468 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
5469 also at strict DWARF v5.
5470
5471 PR debug/55641
5472 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
5473 TYPE_QUAL_CONST in reference-typed decls.
5474
5475 PR debug/49366
5476 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
5477 in DW_OP_pieces, just enough to handle pointers to member
5478 functions.
5479 (gen_remaining_tmpl_value_param_die_attribute): Use a location
5480 expression on DWARFv5 if a constant value doesn't work.
5481
5482 2016-08-11 David Malcolm <dmalcolm@redhat.com>
5483
5484 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
5485 * selftest.c (selftest::test_assertions): New function.
5486 (selftest::selftest_c_tests): New function.
5487 * selftest.h (selftest::selftest_c_tests): New declaration.
5488
5489 2016-08-11 Richard Biener <rguenther@suse.de>
5490 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5491
5492 PR rtl-optimization/72855
5493 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
5494
5495 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5496
5497 PR target/72863
5498 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
5499 (vsx_store_<mode>): Likewise.
5500
5501 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
5502
5503 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
5504 TImode CONST_WIDE_INT store.
5505 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
5506
5507 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
5508
5509 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
5510 mode if unaligned SSE load and store are optimal.
5511
5512 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5513
5514 PR tree-optimization/71083
5515 * tree-predcom.c (ref_at_iteration): Correctly align the
5516 reference type.
5517
5518 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5519
5520 * config/s390/s390-builtin-types.def: Add INT128 types.
5521 * config/s390/s390-builtins.def: Add INT128 variants for the add
5522 sub low-level builtins dealing with TImode.
5523 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
5524 via subreg when expanding a builtin.
5525 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
5526 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
5527 Fix comment.
5528 * config/s390/vecintrin.h: Adjust builtin names accordingly.
5529 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
5530 ("vec_addc<mode>", "vec_addc_u128"): Merge to
5531 "vacc<bhfgq>_<mode>".
5532 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
5533 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
5534 ("vec_subc<mode>", "vec_subc_u128"): Merge to
5535 "vscbi<bhfgq>_<mode>".
5536 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
5537 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
5538
5539 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5540
5541 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
5542
5543 2016-08-11 Bin Cheng <bin.cheng@arm.com>
5544
5545 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
5546 unused declaration.
5547 (vcond<v_cmp_mixed><mode>): Ditto.
5548 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5549
5550 2016-08-11 Bin Cheng <bin.cheng@arm.com>
5551
5552 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
5553 variable explicitly, also assert on it before use.
5554
5555 2016-08-11 Richard Biener <rguenther@suse.de>
5556
5557 PR tree-optimization/72772
5558 * cfgloopmanip.c (create_preheader): Use split_edge if there
5559 is a single loop entry, avoiding degenerate PHIs.
5560
5561 2016-08-11 Richard Biener <rguenther@suse.de>
5562
5563 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
5564 unconditional TODO_cleanup_cfg.
5565 (pass_thread_jumps::execute): Initialize loops, perform a CFG
5566 cleanup only if we threaded a jump.
5567
5568 2016-08-11 Alan Modra <amodra@gmail.com>
5569
5570 PR target/71680
5571 * lra-constraints.c (simplify_operand_subreg): Allow subreg
5572 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
5573 slow. Emit two reloads for slow mem case, first loading in
5574 fast innermode, then converting to required mode.
5575
5576 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
5577
5578 * config/rs6000/altivec.h (vec_extract_exp): New macro.
5579 (vec_extract_sig): New macro.
5580 (vec_insert_exp): New macro.
5581 (vec_test_data_class): New macro.
5582 (scalar_extract_exp): New macro.
5583 (scalar_extract_sig): New macro.
5584 (scalar_insert_exp): New macro.
5585 (scalar_test_data_class): New macro.
5586 (scalar_test_neg): New macro.
5587 (scalar_cmp_exp_gt): New macro.
5588 (scalar_cmp_exp_lt): New macro.
5589 (scalar_cmp_exp_eq): New macro.
5590 (scalar_cmp_exp_unordered): New macro.
5591 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
5592 to enforce constraint that operand is a 7-bit unsigned literal.
5593 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
5594 for power9 built-ins.
5595 (BU_P9V_VSX_2): Likewise.
5596 (BU_P9V_64BIT_VSX_2): Likewise.
5597 (VSEEDP): Add scalar extract exponent support.
5598 (VSEESP): Add scalar extract signature support.
5599 (VSTDCNDP): Add scalar test negative support.
5600 (VSTDCNSP): Likewise.
5601 (VSIEDP): Add scalar insert exponent support.
5602 (VSCEDPGT): Add scalar compare exponent greater than support.
5603 (VSCEDPLT): Add scalar compare exponent less than support.
5604 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
5605 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
5606 (VSTDCDP): Add scalar test data class support.
5607 (VSTDCSP): Likewise.
5608 (VSEEDP): Add overload support for scalar extract exponent
5609 operation.
5610 (VSESDP): Add overload support for scalar extract signature
5611 operation.
5612 (VSTDCN): Add overload support for scalar test negative
5613 operation.
5614 (VSTDCNDP): Add overload support for scalar test negative
5615 operation.
5616 (VSTDCNSP): Add overload support for scalar test negative
5617 operation.
5618 (VSIEDP): Add overload support for scalar insert exponent
5619 operation.
5620 (VSTDC): Add overload support for scalar test data class
5621 operation.
5622 (VSTDCDP): Add overload support for scalar test data class
5623 operation.
5624 (VSTDCSP): Add overload support for scalar test data class
5625 opreation.
5626 (VSCEDPGT): Add overload support for scalar compare exponent
5627 greater than operation.
5628 (VSCEDPLT): Add overload support for scalar compare exponent
5629 less than operation.
5630 (VSCEDPEQ): Add overload support for scalar compare exponent
5631 test-for-equality operation.
5632 (VSCEDPUO): Add overload support for scalar compare exponent
5633 test-for-unordered operation.
5634 (VEEDP): Add vector extract exponent support.
5635 (VEESP): Likewise.
5636 (VESDP): Add vector extract significand support.
5637 (VESSP): Likewise.
5638 (VIEDP): Add vector insert exponent support.
5639 (VIESP): Likewise.
5640 (VTDCDP): Add vector test data class support.
5641 (VTDCSP): Likewise.
5642 (VES): Add overload support for vector extract significand operation.
5643 (VESDP): Likewise.
5644 (VESSP): Likewise
5645 (VEE): Add overload support for vector extract exponent operation.
5646 (VEEDP): Likewise.
5647 (VEESP): Likewise.
5648 (VTDC): Add overload support for vector test data class operation.
5649 (VTDCDP): Likewise.
5650 (VTDCSP): Likewise.
5651 (VIE): Add overload support for vector insert exponent operation.
5652 (VIEDP): Likewise.
5653 (VIESP): Likewise.
5654 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5655 overloaded binary floating point functions.
5656 (altivec_resolve_overloaded_builtin): Improve error messages to
5657 distinguish between functions not supported in the current
5658 compiler configuration and functions that were invoked with an
5659 invalid parameter combination, and include the built-in function
5660 name in both error messages.
5661 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
5662 New prototype.
5663 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
5664 function.
5665 (rs6000_expand_binop_builtin): Add check to enforce that argument
5666 2 of the test data class operations is a 7-bit unsigned literal.
5667 (rs6000_invalid_builtin): Add code to issue an error message if a
5668 built-in function that requires the power9_vector and -m32
5669 command-line options is compiled without these options.
5670 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
5671 (UNSPEC_VSX_SXSIGDP): New value.
5672 (UNSPEC_VSX_SXSIGPDP): New value.
5673 (UNSPEC_VSX_SIEXPDP): New value.
5674 (UNSPEC_VSX_SCMPEXPDP): New value.
5675 (UNSPEC_VSX_STSTDC): New value.
5676 (UNSPEC_VSX_VXEXP): New value.
5677 (UNSPEC_VSX_VXSIG): New value.
5678 (UNSPEC_VSX_VIEXP): New value.
5679 (UNSPEC_VSX_VTSTDC): New value.
5680 (xsxexpdp): New insn for scalar extract exponent.
5681 (xsxsigdp): New insn for scalar extract significand.
5682 (xsiexpdp): New insn for scalar insert exponent.
5683 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
5684 (*xscmpexpdp): New insn for scalar compare exponents.
5685 (xststdc<Fvsx): New expansion for both single- and
5686 double-precision scalar test data class operations.
5687 (xststdcneg<Fvsx>): New expansion for both single- and
5688 double-precision scalar test for negative value operations.
5689 (*xststdc<Fvsx>): New insn for scalar test data class
5690 operation.
5691 (xvxexp<VSs>): New insn for single- and double-precision
5692 vector extract exponent operation.
5693 (xvxsig<VSs>): New insn for single- and double-precision
5694 vector extract significand operation.
5695 (xviexp<VSs>): New insn for single- and double-precision
5696 vector insert exponent operation.
5697 (xvtstdc<VSs>): New insn for single- and double-precision
5698 vector test data class operation.
5699 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5700 built-in functions to represent the Power9 binary floating-point
5701 support instructions.
5702
5703 2016-08-10 bin cheng <bin.cheng@arm.com>
5704
5705 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
5706
5707 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
5708 Renlin Li <renlin.li@arm.com>
5709 Bin Cheng <bin.cheng@arm.com>
5710
5711 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
5712 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
5713 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
5714 (aarch64_vcond_internal<mode><mode>): Delete pattern.
5715 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
5716 (vcond<v_cmp_result><mode>): Ditto.
5717 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
5718 (vcondu<mode><mode>): Ditto.
5719 (vcond<v_cmp_mixed><mode>): New pattern.
5720 (vcondu<mode><v_cmp_mixed>): New pattern.
5721 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
5722 of aarch64_vcond_internal.
5723
5724 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
5725 Renlin Li <renlin.li@arm.com>
5726 Bin Cheng <bin.cheng@arm.com>
5727
5728 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
5729 (vec_cmp<mode><v_cmp_result>): New pattern.
5730 (vec_cmpu<mode><mode>): New pattern.
5731 (vcond_mask_<mode><v_cmp_result>): New pattern.
5732
5733 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5734
5735 PR tree-optimization/71734
5736 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5737 REF_LOOP, invoke ref_indep_loop_p_1.
5738 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5739 to ref_indep_loop_p.
5740 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5741 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5742 is inside LOOP, do not cache dpendence value for loops with
5743 non-zero SAFELEN.
5744 (ref_indep_loop_p_2): Delete function.
5745 (can_sm_ref_p): Pass LOOP as additional argument to
5746 ref_indep_loop_p.
5747
5748 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5749
5750 PR target/72853
5751 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5752 being an offsettable address.
5753
5754 2016-08-10 Martin Liska <mliska@suse.cz>
5755
5756 PR gcov-profile/58306
5757 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5758 atomic variants of profile update functions.
5759
5760 2016-08-10 Martin Liska <mliska@suse.cz>
5761
5762 Cherry picked (and modified) from google-4_7 branch
5763 2012-12-26 Rong Xu <xur@google.com>
5764 * common.opt (fprofile-update): Add new flag.
5765 * coretypes.h: Define enum profile_update.
5766 * doc/invoke.texi: Document -fprofile-update.
5767 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5768 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5769 * tree-profile.c (gimple_init_edge_profiler): Generate
5770 also atomic profiler update.
5771 (gimple_gen_edge_profiler): Likewise.
5772
5773 2016-08-10 David Malcolm <dmalcolm@redhat.com>
5774
5775 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5776 stack_usage_file to NULL after fclose calls.
5777
5778 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5779
5780 PR target/71873
5781 * reload.c (push_reload): Compute subreg_in_class for
5782 subregs of constants and plus expressions. Remove special
5783 handling of SYMBOL_REFs.
5784
5785 2016-08-10 Alan Modra <amodra@gmail.com>
5786
5787 PR target/71680
5788 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5789 SImode for TARGET_E500_DOUBLE when given SImode.
5790
5791 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
5792
5793 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5794 unused variable __O.
5795
5796 2016-08-09 Martin Liska <mliska@suse.cz>
5797
5798 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5799 _gcov_reset to __gcov_reset.
5800 * doc/gcov-tool.texi: Fix typo.
5801
5802 2016-08-09 Martin Liska <mliska@suse.cz>
5803
5804 * value-prof.c (gimple_divmod_values_to_profile): Do not
5805 instrument MOD histogram if a value is not a SSA name.
5806
5807 2016-08-09 Martin Liska <mliska@suse.cz>
5808
5809 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5810 values.
5811
5812 2016-08-09 Renlin Li <renlin.li@arm.com>
5813
5814 PR middle-end/64971
5815 * calls.c (prepare_call_address): Convert funexp to Pmode when
5816 necessary.
5817 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
5818 (sibcall_value): Likewise.
5819
5820 2016-08-09 Marek Polacek <polacek@redhat.com>
5821
5822 PR c/7652
5823 * cselib.c (cselib_expand_value_rtx_1): Add return.
5824 * gengtype.c (dbgprint_count_type_at): Likewise.
5825 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
5826 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
5827
5828 2016-08-09 Martin Jambor <mjambor@suse.cz>
5829
5830 PR ipa/71981
5831 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
5832 if instance is a MEM_REF.
5833
5834 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
5835
5836 PR target/72843
5837 * config/i386/i386.md (*movtf_internal): Use
5838 lra_in_progress || reload_completed instead of !can_create_pseudo_p
5839 in the insn constraint.
5840 (*movxf_internal): Ditto.
5841 (*movdf_internal): Ditto.
5842 (*movsf_internal): Ditto.
5843
5844 2016-08-09 Bin Cheng <bin.cheng@arm.com>
5845
5846 PR tree-optimization/72772
5847 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5848 for expanded base.
5849
5850 2016-08-09 Bin Cheng <bin.cheng@arm.com>
5851
5852 PR tree-optimization/72772
5853 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
5854 parameter STOP.
5855 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
5856 parameter STOP and update calls. Move expand_simple_operations
5857 function call from here...
5858 (simplify_using_initial_conditions): ...to here. Delete parameter
5859 STOP.
5860 (tree_simplify_using_condition): Delete parameter STOP.
5861 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
5862 simplify_using_initial_conditions.
5863
5864 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
5865
5866 PR c/65345
5867 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
5868 Use create_tmp_var_raw instead of create_tmp_var.
5869
5870 2016-08-09 Richard Biener <rguenther@suse.de>
5871
5872 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
5873 Treat same SSA names related.
5874
5875 2016-08-09 Jakub Jelinek <jakub@redhat.com>
5876
5877 PR tree-optimization/72824
5878 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
5879 real_zerop is not negative.
5880
5881 2016-08-09 Richard Biener <rguenther@suse.de>
5882
5883 PR tree-optimization/71802
5884 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
5885 all merge opportunities with the predecessor.
5886
5887 2016-08-09 Richard Biener <rguenther@suse.de>
5888
5889 PR ipa/68273
5890 * ipa-prop.c (ipa_modify_formal_parameters): Build
5891 parameter types with natural alignment also for the
5892 over-aligned case.
5893
5894 2016-08-08 Andi Kleen <ak@linux.intel.com>
5895
5896 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5897
5898 2016-08-08 David Malcolm <dmalcolm@redhat.com>
5899
5900 PR c/64955
5901 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5902 do-nothing langhook.
5903 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5904 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5905 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5906 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5907
5908 2016-08-08 David Malcolm <dmalcolm@redhat.com>
5909
5910 PR bootstrap/72844
5911 * input.c: Ensure that HAVE_ICONV is defined.
5912
5913 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5914
5915 PR middle-end/72781
5916 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5917 private vars for lastprivate and for linear iterator.
5918
5919 PR middle-end/68762
5920 * omp-simd-clone.c: Include varasm.h.
5921 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5922 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5923 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
5924 update function name.
5925
5926 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5927
5928 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5929 (avr_diagnose_devicespecs_error): Remove.
5930 (avr_devicespecs_file): Remove composing absolute path for specfile
5931 and its verbose info. Remove conditions to check specs-file,
5932
5933 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5934
5935 PR rtl-optimization/72821
5936 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5937 just return false for them.
5938
5939 2016-08-08 Alan Modra <amodra@gmail.com>
5940
5941 PR target/72771
5942 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5943 toc refs created during reload. Update function comment.
5944
5945 2016-08-08 Alan Modra <amodra@gmail.com>
5946
5947 PR target/72802
5948 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5949 alternatives. Put loads first, then stores, and reg/reg moves
5950 within same class later. Delete attr length.
5951
5952 2016-08-08 Alan Modra <amodra@gmail.com>
5953
5954 PR target/72802
5955 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
5956 (mem_operand_ds_form): New predicate.
5957 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
5958 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
5959 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
5960 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
5961 (extendsfdf2_fpr): Replace o constraint with wY.
5962
5963 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
5964
5965 * tree-ssa-threadbackward.c: Include tree-inline.h
5966 (profitable_jump_thread_path): Use estimate_num_insns to estimate
5967 size of copied block; for cold paths reduce duplication.
5968 (find_jump_threads_backwards): Remove redundant tests.
5969 (pass_thread_jumps::gate): Enable for -Os.
5970
5971 2016-08-07 Jakub Jelinek <jakub@redhat.com>
5972
5973 PR c/72816
5974 * stor-layout.c (layout_decl): Fix up formatting.
5975 (relayout_decl): Allow DECL to be FIELD_DECL.
5976
5977 2016-08-07 Alan Modra <amodra@gmail.com>
5978
5979 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
5980
5981 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5982
5983 * data-streamer-in.c (streamer_read_wide_int): New.
5984 (streamer_read_widest_int): Renamed function.
5985 * data-streamer-out.c (streamer_write_wide_int): New
5986 (streamer_write_widest_int): Renamed function.
5987 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
5988 data-stream-in.c.
5989 (input_cfg): Call renamed function.
5990 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
5991 data-stream-out.c.
5992 (output_cfg): Call renamed function.
5993 * data-streamer.h: Add declarations.
5994
5995 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5996
5997 * tree-ssa-ccp.c (extend_mask): New param sgn.
5998 Remove ORing with wi::mask.
5999 (get_default_value): Adjust call to extend_mask to pass sign.
6000 (evaluate_stmt): Likewise.
6001
6002 2016-08-06 Jakub Jelinek <jakub@redhat.com>
6003
6004 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6005 INT64_MAX.
6006
6007 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6008
6009 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6010 transform if operand's type is pointer to function or method.
6011
6012 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6013
6014 PR tree-optimization/18046
6015 * tree-ssa-threadedge.c: Include cfganal.h.
6016 (simplify_control_statement_condition): If simplifying a
6017 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6018 with the dominating ASSERT_EXPR before handing it off to VRP.
6019 Mention that a CASE_LABEL_EXPR may be returned.
6020 (thread_around_empty_blocks): Adjust to handle
6021 simplify_control_statement_condition() returning a
6022 CASE_LABEL_EXPR.
6023 (thread_through_normal_block): Likewise.
6024 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6025 a switch statement by trying to determine which case label
6026 will be taken.
6027
6028 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
6029
6030 PR rtl-optimization/69847
6031 * lra-constraints.c (process_invariant_for_inheritance): Save
6032 pattern instead of src.
6033 (remove_inheritance_pseudos): Use the pattern. Add assert.
6034
6035 2016-08-05 David Malcolm <dmalcolm@redhat.com>
6036
6037 * input.c (string_concat::string_concat): New constructor.
6038 (string_concat_db::string_concat_db): New constructor.
6039 (string_concat_db::record_string_concatenation): New method.
6040 (string_concat_db::get_string_concatenation): New method.
6041 (string_concat_db::get_key_loc): New method.
6042 (class auto_cpp_string_vec): New class.
6043 (get_substring_ranges_for_loc): New function.
6044 (get_source_range_for_substring): New function.
6045 (get_num_source_ranges_for_substring): New function.
6046 (class selftest::lexer_test_options): New class.
6047 (struct selftest::lexer_test): New struct.
6048 (class selftest::ebcdic_execution_charset): New class.
6049 (selftest::ebcdic_execution_charset::s_singleton): New variable.
6050 (selftest::lexer_test::lexer_test): New constructor.
6051 (selftest::lexer_test::~lexer_test): New destructor.
6052 (selftest::lexer_test::get_token): New method.
6053 (selftest::assert_char_at_range): New function.
6054 (ASSERT_CHAR_AT_RANGE): New macro.
6055 (selftest::assert_num_substring_ranges): New function.
6056 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6057 (selftest::assert_has_no_substring_ranges): New function.
6058 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6059 (selftest::test_lexer_string_locations_simple): New function.
6060 (selftest::test_lexer_string_locations_ebcdic): New function.
6061 (selftest::test_lexer_string_locations_hex): New function.
6062 (selftest::test_lexer_string_locations_oct): New function.
6063 (selftest::test_lexer_string_locations_letter_escape_1): New function.
6064 (selftest::test_lexer_string_locations_letter_escape_2): New function.
6065 (selftest::test_lexer_string_locations_ucn4): New function.
6066 (selftest::test_lexer_string_locations_ucn8): New function.
6067 (selftest::uint32_from_big_endian): New function.
6068 (selftest::test_lexer_string_locations_wide_string): New function.
6069 (selftest::uint16_from_big_endian): New function.
6070 (selftest::test_lexer_string_locations_string16): New function.
6071 (selftest::test_lexer_string_locations_string32): New function.
6072 (selftest::test_lexer_string_locations_u8): New function.
6073 (selftest::test_lexer_string_locations_utf8_source): New function.
6074 (selftest::test_lexer_string_locations_concatenation_1): New
6075 function.
6076 (selftest::test_lexer_string_locations_concatenation_2): New
6077 function.
6078 (selftest::test_lexer_string_locations_concatenation_3): New
6079 function.
6080 (selftest::test_lexer_string_locations_macro): New function.
6081 (selftest::test_lexer_string_locations_stringified_macro_argument):
6082 New function.
6083 (selftest::test_lexer_string_locations_non_string): New function.
6084 (selftest::test_lexer_string_locations_long_line): New function.
6085 (selftest::test_lexer_char_constants): New function.
6086 (selftest::input_c_tests): Call the new test functions once per
6087 case within the line_table test matrix.
6088 * input.h (struct string_concat): New struct.
6089 (struct location_hash): New struct.
6090 (class string_concat_db): New class.
6091 * substring-locations.h: New header.
6092
6093 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6094
6095 PR tree-optimization/72810
6096 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6097 the type of the case labels when truncating.
6098
6099 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6100
6101 PR Target/72819
6102 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6103 (aarch64_fp16_ptr_type_node): Likewise.
6104 * config/aarch64/aarch64-simd-builtins.c
6105 (aarch64_fp16_ptr_type_node): Define.
6106 (aarch64_init_fp16_types): New, refactored out of...
6107 (aarch64_init_builtins): ...here, update to call
6108 aarch64_init_fp16_types.
6109 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6110 HFmode.
6111 (aapcs_vfp_sub_candidate): Likewise.
6112
6113 2016-08-05 Martin Liska <mliska@suse.cz>
6114 Joshua Cranmer <Pidgeot18@gmail.com>
6115
6116 * gcov.c (line_t::has_block): New function.
6117 (enum loop_type): New enum.
6118 (handle_cycle): New function.
6119 (unblock): Likewise.
6120 (circuit): Likewise.
6121 (get_cycles_count): Likewise.
6122 (accumulate_line_counts): Use new loop detection algorithm.
6123
6124 2016-08-05 Martin Liska <mliska@suse.cz>
6125
6126 * gcov.c (output_intermediate_file): Rename
6127 function_info::line_next to next_file_fn.
6128 (process_file): Likewise.
6129 (read_graph_file): Likewise.
6130 (accumulate_line_counts): Likewise.
6131 (output_lines): Likewise.
6132
6133 2016-08-05 Richard Biener <rguenther@suse.de>
6134
6135 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6136 restriction on threading to a loop header.
6137
6138 2016-08-05 Richard Biener <rguenther@suse.de>
6139
6140 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6141 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6142 adjust loop info accordingly.
6143
6144 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
6145
6146 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6147 before folding call to __builtin_constant_p with parameters to false.
6148
6149 2016-08-05 Alan Modra <amodra@gmail.com>
6150
6151 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6152 code accidentally committed 2016-05-02 providing class when given
6153 NO_REGS.
6154
6155 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6156
6157 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6158 the case label ranges that partially overlap with OP's value
6159 range.
6160
6161 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
6162
6163 PR target/72805
6164 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6165 Cast builtin function result to __mmask16 instead of __mmask8.
6166 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6167 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6168 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6169
6170 2016-08-04 David Malcolm <dmalcolm@redhat.com>
6171
6172 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6173 (ASSERT_TRUE_AT): New macro.
6174 (ASSERT_FALSE): Reimplement in terms of...
6175 (ASSERT_FALSE_AT): New macro.
6176 (ASSERT_STREQ_AT): Fix typo in comment.
6177
6178 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6179
6180 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6181 labels are exhaustive, designate the label with the widest
6182 range to be the default label.
6183
6184 2016-08-04 Andrew Pinski <apinski@cavium.com>
6185
6186 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6187 (thunderx_tunings): Use thunderx_vector_cost instead of
6188 generic_vector_cost.
6189
6190 2016-08-04 Martin Liska <mliska@suse.cz>
6191
6192 * gcov.c (main): Fix GNU coding style.
6193 (output_intermediate_file): Likewise.
6194 (process_file): Likewise.
6195 (generate_results): Likewise.
6196 (release_structures): Likewise.
6197 (create_file_names): Likewise.
6198 (find_source): Likewise.
6199 (read_graph_file): Likewise.
6200 (find_exception_blocks): Likewise.
6201 (canonicalize_name): Likewise.
6202 (make_gcov_file_name): Likewise.
6203 (mangle_name): Likewise.
6204 (accumulate_line_counts): Likewise.
6205 (output_branch_count): Likewise.
6206 (read_line): Likewise.
6207
6208 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6209
6210 PR rtl-optimization/71779
6211 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6212 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6213 or if it was truncated.
6214
6215 PR rtl-optimization/70903
6216 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6217
6218 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6219
6220 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6221 accessing SSA_NAME_PTR_INFO.
6222
6223 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6224
6225 PR 70677
6226 * common/config/avr/avr-common.c (avr_option_optimization_table)
6227 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6228
6229 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6230
6231 PR 55181
6232 * config/avr/avr.md: New pattern to work around do_store_flag
6233 generating shift instructions for bit extractions.
6234
6235 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6236
6237 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6238 BITMAP_ALLOC.
6239 (add_equivalence): Likewise.
6240 (get_value_range): Allocate value range with vrp_value_range_pool.
6241 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6242 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6243
6244 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
6245
6246 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6247 the default for the rs6000 port.
6248
6249 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6250
6251 PR middle-end/71876
6252 * calls.c (special_function_p): Remove special handling of
6253 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6254 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
6255 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6256
6257 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
6258
6259 PR middle-end/72778
6260 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6261 Don't stop on regular insns.
6262
6263 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6264
6265 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6266 size to DImode boundary.
6267 (nvptx_propagate): Likewise.
6268
6269 2016-08-03 Alan Modra <amodra@gmail.com>
6270
6271 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6272 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6273 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6274 from -mefficient-unaligned-vector. Note that this affects fp too.
6275
6276 2016-08-03 Alan Modra <amodra@gmail.com>
6277
6278 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6279 cost more.
6280
6281 2016-08-03 Alan Modra <amodra@gmail.com>
6282
6283 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6284 to a reg. Localize vars.
6285
6286 2016-08-03 Alan Modra <amodra@gmail.com>
6287
6288 * config/rs6000/rs6000.opt: Remove negatives from help strings
6289 and comments.
6290
6291 2016-08-03 Alan Modra <amodra@gmail.com>
6292
6293 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6294 Delete duplicated code.
6295
6296 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6297
6298 PR middle-end/72778
6299 * lra-spills.c (regno_in_use_p): New.
6300 (lra_final_code_change): Use it.
6301
6302 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6303
6304 PR rtl-optimization/69847
6305 * lra-int.h (struct lra-reg): Use restore_rtx instead of
6306 restore_regno.
6307 (lra_rtx_hash): New.
6308 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6309 of restore_regno.
6310 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6311 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6312 * lra-spills.c (lra_final_code_change): Don't delete insn when the
6313 next insn is USE with the same reg as the current insn source.
6314 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6315 of restore_regno.
6316 (lra_constraints_init): Call initiate_invariants.
6317 (lra_constraints_finish): Call finish_invariants.
6318 (struct invariant, invariant_t, invariant_ptr_t): New.
6319 (const_invariant_ptr_t, invariants, invariants_pool): New.
6320 (invariant_table, invariant_hash, invariant_eq_p): New.
6321 (insert_invariant, initiate_invariants, finish_invariants): New.
6322 (clear_invariants, invalid_invariant_regs): New.
6323 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6324 instead of restore_regno.
6325 (invariant_p, process_invariant_for_inheritance): New.
6326 (inherit_in_ebb): Implement invariant inheritance.
6327 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6328 (remove_inheritance_pseudos): Implement undoing invariant
6329 inheritance.
6330 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6331 instead of restore_regno.
6332 * lra-assigns.c (regno_live_length): New.
6333 (reload_pseudo_compare_func): Use regno_live_length.
6334 (assign_by_spills): Use restore_rtx instead of restore_regno.
6335 (lra_assign): Ditto. Initiate regno_live_length.
6336
6337 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
6338
6339 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6340 __builtin_aarch64_fmindf.
6341
6342 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6343
6344 PR tree-optimization/34114
6345 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6346 information for more control IVs.
6347
6348 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6349
6350 PR tree-optimization/34114
6351 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6352 PLUS_EXPR case. Handle SSA_NAME case.
6353
6354 2016-08-02 Tamar Christina <tamar.christina@arm.com>
6355
6356 * config/aarch64/aarch64-simd-builtins.def
6357 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6358 (__builtin_aarch64_fmaxdf): Likewise.
6359 (__builtin_aarch64_smin_nandf): Likewise.
6360 (__builtin_aarch64_smax_nandf): Likewise.
6361 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6362 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6363 (<fmaxmin><mode>3): ...this.
6364 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6365 (vminnm_f64): Likewise.
6366 (vmin_f64): Likewise.
6367 (vmax_f64): Likewise.
6368 * config/aarch64/iterators.md (FMAXMIN): Merge with...
6369 (FMAXMIN_UNS): ...this.
6370 (fmaxmin): Merged with
6371 (fmaxmin_op): ...this...
6372 (maxmin_uns_op): ...in to this.
6373
6374 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6375
6376 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6377 Add support for vec_extract on vector float, vector int, vector
6378 short, and vector char vector types.
6379 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6380 vector float, vector int, vector short, and vector char
6381 optimizations on 64-bit ISA 2.07 systems for both constant and
6382 variable element numbers.
6383 (rs6000_split_vec_extract_var): Likewise.
6384 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6385 Altivec registers on ISA 2.07 and above.
6386 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6387 which never was matched due to the split occuring before register
6388 allocation (and the code would not have worked on little endian
6389 systems if it did match). Allow extracts to go to the Altivec
6390 registers if ISA 2.07 (power8). Change from using "" around the
6391 C++ code to using {}'s.
6392 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6393 vec_extracts when the vector is in memory.
6394 (vsx_extract_v4sf_var): New insn to optimize vector float
6395 vec_extracts when the element number is variable on 64-bit ISA
6396 2.07 systems.
6397 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6398 for 64-bit ISA 2.07 as well as ISA 3.0.
6399 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6400 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6401 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6402 optimize vector int, vector short, and vector char vec_extracts
6403 when the vector is in memory.
6404 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6405 optimize vector int, vector short, and vector char vec_extracts
6406 when the element number is variable.
6407
6408 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6409
6410 PR target/71948
6411 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
6412 does not overlap with other symbol flags.
6413
6414 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
6415
6416 * config/aarch64/aarch64.h (aarch64_frame):
6417 Remove padding0 and hardfp_offset. Add locals_offset,
6418 initial_adjust, callee_adjust, callee_offset and final_adjust.
6419 * config/aarch64/aarch64.c (aarch64_layout_frame):
6420 Remove unused padding0 and hardfp_offset initializations.
6421 Choose frame layout and set frame variables accordingly.
6422 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
6423 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
6424 (aarch64_pop_regs): Likewise.
6425 (aarch64_expand_prologue): Remove all decision code, just emit
6426 prolog according to frame variables.
6427 (aarch64_expand_epilogue): Remove all decision code, just emit
6428 epilog according to frame variables.
6429 (aarch64_initial_elimination_offset): Use offset to local/arg area.
6430
6431 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
6432
6433 PR target/72748
6434 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
6435 fix_debug_reg_uses after changing source register mode to
6436 V1TImode if source register is undefined.
6437
6438 2015-08-01 Alan Hayward <alan.hayward@arm.com>
6439
6440 PR tree-optimization/71818
6441 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
6442 with non invariant evolutions
6443
6444 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6445
6446 PR target/72767
6447 * config/avr/avr.md (length) [branch]: Correct insn length
6448 attribute for forward branches.
6449
6450 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6451
6452 * doc/extend.texi (AVR Built-in Functions): Document
6453 __builtin_avr_nops.
6454 * config/avr/builtins.def (NOPS): New.
6455 * config/avr/avr.c (avr_expand_nops): New static function.
6456 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
6457
6458 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6459
6460 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
6461 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
6462 addresses.
6463
6464 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
6465
6466 * config/aarch64/aarch64.c (vulcan_tunings): Update
6467 vulcan L1 cache_line_size.
6468
6469 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
6470
6471 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
6472 function that takes a vector memory address, a hard register, an
6473 element number and a temporary base register, and recreates an
6474 address that points to the appropriate element within the vector.
6475 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
6476 (rs6000_split_vec_extract_var): Add support for the target of a
6477 vec_extract with variable element number being a scalar memory
6478 location.
6479 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
6480 swappable.
6481 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
6482 vsx_extract_<mode>_load insn with a new insn that optimizes
6483 storing either element to a memory location, using scratch
6484 registers to pick apart the vector and reconstruct the address.
6485 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
6486 (vsx_extract_<mode>_store): Rework alternatives to more correctly
6487 support Altivec registers. Add support for ISA 3.0 Altivec d-form
6488 store instruction.
6489 (vsx_extract_<mode>_var): Add support for extracting a variable
6490 element number from memory.
6491
6492 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
6493
6494 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
6495 when testing for compares against constants of the form 0xabab.
6496
6497 2016-07-29 Bin Cheng <bin.cheng@arm.com>
6498
6499 PR tree-optimization/57558
6500 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
6501 function.
6502 (vect_loop_versioning): Support versioning with niter assumptions.
6503 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
6504 (vect_get_loop_niters): New parameter. Reimplement to support
6505 assumptions in loop niter info.
6506 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
6507 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
6508 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
6509 Support loop versioning for niters.
6510 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
6511 (vect_free_loop_info_assumptions): New function.
6512 (vectorize_loops): Free loop niter info for loops with flag
6513 LOOP_F_ASSUMPTIONS set if vectorization failed.
6514 * tree-vectorizer.h (struct _loop_vec_info): New field
6515 num_iters_assumptions.
6516 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
6517 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
6518 (LOOP_REQUIRES_VERSIONING): New macro.
6519 (vect_free_loop_info_assumptions): New decl.
6520
6521 2016-07-29 Bin Cheng <bin.cheng@arm.com>
6522
6523 * cfgloop.h (struct loop): New field constraints.
6524 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
6525 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
6526 functions.
6527 * cfgloop.c (alloc_loop): Initialize new field.
6528 * cfgloopmanip.c (copy_loop_info): Copy constraints.
6529 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
6530 Adjust niter analysis wrto loop constraints.
6531 * doc/loop.texi (@node Number of iterations): Add description for loop
6532 constraints.
6533
6534 2016-07-29 Marek Polacek <polacek@redhat.com>
6535
6536 PR c/7652
6537 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
6538 (ix86_expand_round_builtin): Likewise.
6539
6540 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6541 Georg-Johann Lay <avr@gjlay.de>
6542
6543 PR rtl-optimization/71976
6544 * combine.c (get_last_value): Return 0 if the argument for which
6545 the function is called has a wider mode than the recorded value.
6546
6547 2016-07-29 Marek Polacek <polacek@redhat.com>
6548
6549 PR c/7652
6550 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
6551 (altivec_expand_st_builtin): Likewise.
6552
6553 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
6554
6555 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
6556 introduced in r238381.
6557
6558 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6559
6560 PR middle-end/68217
6561 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
6562 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
6563
6564 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
6565
6566 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
6567 New declaration.
6568 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6569 Add support for vec_extract of vector double or vector long having
6570 a variable element number on 64-bit ISA 2.07 systems or newer.
6571 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
6572 Likewise.
6573 (rs6000_split_vec_extract_var): New function to split a
6574 vec_extract built-in function with variable element number.
6575 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
6576 swappable.
6577 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
6578 (UNSPEC_VSX_EXTRACT): Likewise.
6579 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
6580 direct move instructions to be generated on 64-bit ISA 2.07
6581 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
6582 instruction.
6583 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
6584 arguments for vec_extract variable element.
6585 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
6586 vec_extract with variable element on V2DFmode and V2DImode
6587 vectors.
6588 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
6589 -mupper-regs-df requirement, since it isn't needed.
6590 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
6591 do direct moves on 64-bit systems, which allows optimization of
6592 vec_extract on 64-bit ISA 2.07 systems and newer.
6593
6594 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
6595 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
6596
6597 * config/aarch64/aarch64.md
6598 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
6599 statement and type.
6600 (<optab>qihi2_aarch64): Likewise, and split into two.
6601 (extendqihi2_aarch64): New.
6602 (zero_extendqihi2_aarch64): New.
6603 * config/aarch64/iterators.md (ldrxt): Remove.
6604 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
6605 uxtb/uxth.
6606
6607 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
6608
6609 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
6610
6611 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
6612
6613 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
6614 (aarch64_push_reg): New function to push 1 or 2 registers.
6615 (aarch64_pop_reg): New function to pop 1 or 2 registers.
6616 (aarch64_expand_prologue): Use aarch64_push_regs.
6617 (aarch64_expand_epilogue): Use aarch64_pop_regs.
6618
6619 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
6620
6621 PR tree-optimization/71734
6622 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
6623 attribute instead of REF_LOOP and use it.
6624 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
6625 set it for Loops having non-zero safelen attribute.
6626 (ref_indep_loop_p): Pass zero as initial value for safelen.
6627
6628 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
6629
6630 PR middle-end/72657
6631 PR target/72683
6632 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
6633 call using chkp_gimple_call_builtin_p.
6634 (chkp_copy_bounds_for_assign): Likewise.
6635
6636 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6637
6638 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
6639 * config/arm/arm-protos.h (struct tune_params): Likewise.
6640 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6641 (cortex_a9_sched_adjust_cost): Likewise.
6642 (fa726te_sched_adjust_cost): Likewise.
6643 (arm_adjust_cost): Likewise.
6644 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
6645 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
6646 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
6647 * config/i386/i386.c (ix86_adjust_cost): Likewise.
6648 * config/ia64/ia64.c: Likewise.
6649 * config/m68k/m68k.c: Likewise.
6650 * config/mep/mep.c (mep_adjust_cost): Likewise.
6651 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6652 * Likewise.
6653 * config/mips/mips.c (mips_adjust_cost): Likewise.
6654 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
6655 * Likewise.
6656 * config/pa/pa.c (pa_adjust_cost): Likewise.
6657 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
6658 (rs6000_debug_adjust_cost): Likewise.
6659 * config/sh/sh.c (sh_adjust_cost): Likewise.
6660 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
6661 (hypersparc_adjust_cost): Likewise.
6662 (sparc_adjust_cost): Likewise.
6663 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
6664 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
6665 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
6666 * Likewise.
6667 * config/visium/visium.c (visium_adjust_cost): Likewise.
6668 * doc/tm.texi: Regenerate.
6669 * haifa-sched.c (dep_cost_1): Adjust.
6670 * target.def: Merge adjust_cost and adjust_cost_2.
6671
6672 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6673
6674 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
6675
6676 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6677
6678 * store-motion.c (struct st_expr): Make pattern_regs a vector.
6679 (extract_mentioned_regs): Append to a vector instead of
6680 returning a rtx_expr_list.
6681 (st_expr_entry): Adjust.
6682 (free_st_expr_entry): Likewise.
6683 (store_ops_ok): Likewise.
6684 (store_killed_in_insn): Likewise.
6685 (find_moveable_store): Likewise.
6686
6687 2016-07-28 Martin Liska <mliska@suse.cz>
6688
6689 PR gcov-profile/68025
6690 * tree-profile.c (tree_profiling): Respect
6691 no_profile_instrument_function attribute.
6692 * doc/extend.texi: Document no_profile_instrument_function
6693 attribute.
6694
6695 2016-07-28 Martin Liska <mliska@suse.cz>
6696
6697 PR rtl-optimization/70944
6698 * combine.c (make_compound_operation):
6699 Do not allow make_compound_operation for vector mode
6700
6701 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
6702
6703 PR middle-end/71994
6704 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
6705 before calling get_ops.
6706
6707 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6708
6709 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
6710 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
6711 (BITS_PER_UNIT_LOG): Remove.
6712 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
6713 * expr.c (expand_assignment): Likewise.
6714 * stor-layout.c (initialize_sizetypes): Likewise.
6715
6716 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6717
6718 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
6719 signature of rs6000_expand_vector_extract so that the element
6720 number is a RTX instead of a constant integer.
6721 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
6722 Likewise.
6723 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
6724 (altivec_expand_vec_ext_builtin): Likewise.
6725 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
6726 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
6727 MFVSRLD instruction.
6728
6729 2016-07-27 David Malcolm <dmalcolm@redhat.com>
6730
6731 * input.c (get_pure_location): Move here from tree.c.
6732 (make_location): Likewise. Add header comment.
6733 (selftest::test_accessing_ordinary_linemaps): Verify
6734 pure_location_p, make_location, get_location_from_adhoc_loc and
6735 get_range_from_loc.
6736 * input.h (get_pure_location): Move declaration here from tree.h.
6737 (get_finish): Likewise for inline function.
6738 (make_location): Likewise for declaration.
6739 * tree.c (get_pure_location): Move to input.c.
6740 (make_location): Likewise.
6741 * tree.h (get_pure_location): Move declaration to tree.h.
6742 (get_finish): Likewise for inline function.
6743 (make_location): Likewise for declaration.
6744
6745 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6746
6747 PR middle-end/71078
6748 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6749
6750 2016-07-27 David Malcolm <dmalcolm@redhat.com>
6751
6752 * system.h (STATIC_ASSERT): Use static_assert if building
6753 with C++11 onwards.
6754
6755 2016-07-27 Richard Biener <rguenther@suse.de>
6756
6757 PR tree-optimization/72517
6758 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6759 Revert change to not compute read-read dependences.
6760
6761 2016-07-27 Richard Biener <rguenther@suse.de>
6762
6763 * predict.c (set_even_probabilities): Make nedges unsigned.
6764
6765 2016-07-27 Martin Liska <mliska@suse.cz>
6766
6767 * predict.c (set_even_probabilities): Handle unlikely edges.
6768 (combine_predictions_for_bb): Likewise.
6769
6770 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6771
6772 PR target/71869
6773 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6774 __float128 support when we don't have hardware support, so that
6775 the IEEE built-in functions like isgreater, first call __unordkf3
6776 to make sure neither operand is a NaN, and if both operands are
6777 ordered, do the normal comparison.
6778
6779 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
6780
6781 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6782 name.
6783 (extract_code_and_val_from_cond_with_ops): Verify that name is
6784 either cond_op0 or cond_op1.
6785
6786 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
6787
6788 PR tree-optimization/18046
6789 * genmodes.c (emit_mode_size_inline): Emit an assert that
6790 verifies that mode is a valid array index.
6791 (emit_mode_nuinits_inline): Likewise.
6792 (emit_mode_inner_inline): Likewise.
6793 (emit_mode_unit_size_inline): Likewise.
6794 (emit_mode_unit_precision_inline): Likewise.
6795 * tree-vrp.c: Include params.h.
6796 (find_switch_asserts): Register edge assertions for the default
6797 label which correspond to the anti-ranges of each case label.
6798 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6799 * doc/invoke.texi: Document it.
6800
6801 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6802
6803 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6804 and unnecessary call to gimple_bb.
6805
6806 2016-07-26 Richard Biener <rguenther@suse.de>
6807
6808 PR rtl-optimization/71984
6809 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6810 for VOIDmode.
6811
6812 2016-07-26 Richard Biener <rguenther@suse.de>
6813
6814 PR middle-end/72517
6815 * expmed.c (extract_bit_field_1): Constrain the vector mode
6816 with element size matching the extraction mode size when
6817 choosing a better vector mode to do the extraction from.
6818
6819 2016-07-26 Richard Biener <rguenther@suse.de>
6820 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6821
6822 PR middle-end/70920
6823 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
6824 pattern.
6825
6826 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6827
6828 * tree-ssa-structalias.c (struct scc_info): Change types of
6829 members to auto_sbitmap and auto_vec.
6830 (scc_info::scc_info): New constructor.
6831 (scc_info::~scc_info): New destructor.
6832 (init_scc_info): Remove.
6833 (free_scc_info): Remove.
6834 (find_indirect_cycles): Adjust.
6835 (perform_var_substitution): Likewise.
6836 (free_var_substitution_info): Likewise.
6837
6838 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6839
6840 * tree-outof-ssa.c (struct elim_graph): Change type of members
6841 to auto_vec and auto_sbitmap.
6842 (elim_graph::elim_graph): New constructor.
6843 (delete_elim_graph): Remove.
6844 (expand_phi_nodes): Adjust.
6845
6846 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6847
6848 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
6849 (new_elim_graph): Adjust.
6850 (clear_elim_graph): Likewise.
6851 (delete_elim_graph): Likewise.
6852 (elim_graph_size): Likewise.
6853 (elim_graph_add_node): Likewise.
6854 (elim_graph_add_edge): Likewise.
6855 (elim_graph_remove_succ_edge): Likewise.
6856 (eliminate_name): Likewise.
6857 (eliminate_build): Likewise.
6858 (elim_forward): Likewise.
6859 (elim_unvisited_predecessor): Likewise.
6860 (elim_backward): Likewise.
6861 (elim_create): Likewise.
6862 (eliminate_phi): Likewise.
6863 (expand_phi_nodes): Likewise.
6864
6865 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6866
6867 * bt-load.c (compute_out): Use auto_sbitmap class.
6868 (link_btr_uses): Likewise.
6869 * cfganal.c (mark_dfs_back_edges): Likewise.
6870 (post_order_compute): Likewise.
6871 (inverted_post_order_compute): Likewise.
6872 (pre_and_rev_post_order_compute_fn): Likewise.
6873 (single_pred_before_succ_order): Likewise.
6874 * cfgexpand.c (pass_expand::execute): Likewise.
6875 * cfgloop.c (verify_loop_structure): Likewise.
6876 * cfgloopmanip.c (fix_bb_placements): Likewise.
6877 (remove_path): Likewise.
6878 (update_dominators_in_loop): Likewise.
6879 * cfgrtl.c (break_superblocks): Likewise.
6880 * ddg.c (check_sccs): Likewise.
6881 (create_ddg_all_sccs): Likewise.
6882 * df-core.c (df_worklist_dataflow): Likewise.
6883 * dse.c (dse_step3): Likewise.
6884 * except.c (eh_region_outermost): Likewise.
6885 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6886 * gcse.c (prune_expressions): Likewise.
6887 (prune_insertions_deletions): Likewise.
6888 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
6889 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6890 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
6891 * lcm.c (compute_earliest): Likewise.
6892 (compute_farthest): Likewise.
6893 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6894 (unroll_loop_runtime_iterations): Likewise.
6895 (unroll_loop_stupid): Likewise.
6896 * lower-subreg.c (decompose_multiword_subregs): Likewise.
6897 * lra-lives.c: Likewise.
6898 * lra.c (lra): Likewise.
6899 * modulo-sched.c (schedule_reg_moves): Likewise.
6900 (optimize_sc): Likewise.
6901 (get_sched_window): Likewise.
6902 (sms_schedule_by_order): Likewise.
6903 (check_nodes_order): Likewise.
6904 (order_nodes_of_sccs): Likewise.
6905 (order_nodes_in_scc): Likewise.
6906 * recog.c (split_all_insns): Likewise.
6907 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6908 * reload1.c (reload): Likewise.
6909 * sched-rgn.c (haifa_find_rgns): Likewise.
6910 (split_edges): Likewise.
6911 (compute_trg_info): Likewise.
6912 * sel-sched.c (init_seqno): Likewise.
6913 * store-motion.c (remove_reachable_equiv_notes): Likewise.
6914 * tree-into-ssa.c (update_ssa): Likewise.
6915 * tree-ssa-live.c (live_worklist): Likewise.
6916 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6917 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6918 * Likewise.
6919 (try_peel_loop): Likewise.
6920 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6921 * Likewise.
6922 * tree-ssa-pre.c (compute_antic): Likewise.
6923 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6924 * tree-stdarg.c (reachable_at_most_once): Likewise.
6925 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6926 * var-tracking.c (vt_find_locations): Likewise.
6927
6928 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6929
6930 * sbitmap.h (auto_sbitmap): New class.
6931
6932 2016-07-26 Alan Modra <amodra@gmail.com>
6933
6934 PR target/72103
6935 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6936 sri->t_icode.
6937
6938 2016-07-25 David Malcolm <dmalcolm@redhat.com>
6939
6940 * input.c (selftest::temp_source_file::temp_source_file): Fix
6941 missing "%s" in fprintf.
6942
6943 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
6944
6945 PR middle-end/71732
6946 * cselib.c (cselib_process_insn): Invalidate argument slots for
6947 const/pure calls.
6948
6949 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6950
6951 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6952 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6953 vmulxh_lane_f16, vmulxh_laneq_f16): New.
6954
6955 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6956
6957 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6958 * config/aarch64/aarch64.md (fma, fnma): Support HF.
6959 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
6960
6961 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6962
6963 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6964 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
6965 New.
6966 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
6967 (add<mode>3): Likewise.
6968 (sub<mode>3): Likewise.
6969 (mul<mode>3): Likewise.
6970 (div<mode>3): Likewise.
6971 (*div<mode>3): Likewise.
6972 (<fmaxmin><mode>3): Extend to HF.
6973 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
6974 (fabd<mode>3): Likewise.
6975 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
6976 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
6977 (aarch64_fmulx<mode>): Likewise.
6978 (aarch64_fac<optab><mode>): Likewise.
6979 (aarch64_frecps<mode>): Likewise.
6980 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
6981 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
6982 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
6983 (VSDQ_HSDI): Support HI.
6984 (fcvt_target, FCVT_TARGET): Likewise.
6985 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
6986 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
6987 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
6988 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
6989 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
6990 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
6991 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
6992 vrsqrtsh_f16): New.
6993
6994 2016-07-25 Jiong Wang <jiong.wang@arm.com>
6995
6996 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
6997 * config/aarch64/aarch64-builtins.c (hi_UP): New.
6998 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6999 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7000 mode.
7001 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7002 (aarch64_cm<optab><mode>): Likewise.
7003 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7004 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7005 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7006 (sqrt<mode>2): Likewise.
7007 (*sqrt<mode>2): Likewise.
7008 (abs<mode>2): Likewise.
7009 (<optab><mode>hf2): New pattern for HF mode.
7010 (<optab>hihf2): Likewise.
7011 * config/aarch64/arm_neon.h: Include arm_fp16.h.
7012 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7013 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7014 Support HF mode.
7015 * config/aarch64/arm_fp16.h: New file.
7016 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7017 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7018 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7019 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7020 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7021 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7022 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7023 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7024 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7025 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7026 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7027 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7028 vsqrth_f16): New.
7029
7030 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7031
7032 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7033 reduc_smin_scal_): Use VDQIF_F16.
7034 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7035 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7036 Use VHSDF.
7037 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7038 * config/aarch64/iterators.md (VDQIF_F16): New.
7039 (vp): Support HF modes.
7040 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7041 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7042
7043 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7044
7045 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7046 "*aarch64_mulx_elt_from_dup<mode>".
7047 (*aarch64_mul3_elt<mode>): Update schedule type.
7048 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7049 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7050 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7051 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7052 (f, fp): Support HF modes.
7053 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7054 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7055 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7056 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7057 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7058 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7059
7060 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7061
7062 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7063 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7064 modes.
7065 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7066 vfmsq_f16): New.
7067
7068 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7069
7070 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7071 * config/aarch64/aarch64-simd.md
7072 (aarch64_rsqrts<mode>): Extend to HF modes.
7073 (fabd<mode>3): Likewise.
7074 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7075 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7076 (aarch64_<maxmin_uns>p<mode>): Likewise.
7077 (<su><maxmin><mode>3): Likewise.
7078 (<maxmin_uns><mode>3): Likewise.
7079 (<fmaxmin><mode>3): Likewise.
7080 (aarch64_faddp<mode>): Likewise.
7081 (aarch64_fmulx<mode>): Likewise.
7082 (aarch64_frecps<mode>): Likewise.
7083 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7084 (add<mode>3): Extend to HF modes.
7085 (sub<mode>3): Likewise.
7086 (mul<mode>3): Likewise.
7087 (div<mode>3): Likewise.
7088 (*div<mode>3): Likewise.
7089 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7090 HF, V4HF and V8HF.
7091 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7092 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7093 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7094 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7095 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7096 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7097 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7098 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7099 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7100 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7101 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7102 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7103 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7104 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7105
7106 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7107
7108 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7109 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7110 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7111 (neg<mode>2): Likewise.
7112 (abs<mode>2): Likewise.
7113 (<frint_pattern><mode>2): Likewise.
7114 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7115 (<optab><VDQF:mode><fcvt_target>2): Likewise.
7116 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7117 (ftrunc<VDQF:mode>2): Likewise.
7118 (<optab><fcvt_target><VDQF:mode>2): Likewise.
7119 (sqrt<mode>2): Likewise.
7120 (*sqrt<mode>2): Likewise.
7121 (aarch64_frecpe<mode>): Likewise.
7122 (aarch64_cm<optab><mode>): Likewise.
7123 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7124 HF, V4HF and V8HF.
7125 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7126 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7127 (stype): New.
7128 * config/aarch64/arm_neon.h (vdup_n_f16): New.
7129 (vdupq_n_f16): Likewise.
7130 (vld1_dup_f16): Use vdup_n_f16.
7131 (vld1q_dup_f16): Use vdupq_n_f16.
7132 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7133 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7134 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7135 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7136 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7137 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7138 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7139 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7140 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7141 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7142 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7143 vsqrt_f16, vsqrtq_f16): New.
7144
7145 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7146
7147 * config/aarch64/aarch64-simd.md
7148 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7149 (aarch64_ext<mode>): Likewise.
7150 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7151 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7152 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7153 and V8HFmode.
7154 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7155 float16x8_t.
7156 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7157 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7158 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7159 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7160 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7161 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7162 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7163 New.
7164 (vmov_n_f16): Reimplement using vdup_n_f16.
7165 (vmovq_n_f16): Reimplement using vdupq_n_f16..
7166
7167 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7168
7169 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7170 "frame_related_p". Generate CFA annotation when it's necessary.
7171 (aarch64_expand_prologue): Use aarch64_add_constant.
7172 (aarch64_expand_epilogue): Likewise.
7173 (aarch64_output_mi_thunk): Pass "false" when calling
7174 aarch64_add_constant.
7175
7176 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7177
7178 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7179 sequences.
7180
7181 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7182
7183 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7184 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7185 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7186 (aarch64_build_constant): Delete.
7187
7188 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
7189
7190 Revert
7191 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7192
7193 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7194 flag_toplevel_reorder.
7195
7196 2016-07-25 Richard Biener <rguenther@suse.de>
7197
7198 * cgraph.c (cgraph_node::verify_node): Compare against builtin
7199 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7200 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7201 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7202 (streamer_get_builtin_tree): Likewise.
7203 (streamer_write_builtin): Likewise.
7204 * lto-streamer.h (LTO_builtin_decl): Remove.
7205 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7206 (lto_input_scc): Remove LTO_builtin_decl handling.
7207 (lto_input_tree_1): Liekwise.
7208 * lto-streamer-out.c (lto_output_tree_1): Remove special
7209 handling of builtins.
7210 (DFS::DFS): Likewise.
7211 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7212 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7213 assert.
7214 (streamer_write_builtin): Remove.
7215
7216 2016-07-25 Martin Liska <mliska@suse.cz>
7217
7218 * lto-cgraph.c (input_symtab): Don't call get_working_sets
7219 if flag_auto_profile is set to true.
7220
7221 2016-07-25 Martin Liska <mliska@suse.cz>
7222
7223 PR gcov-profile/71868
7224 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7225 have a function with multiple latches, count them all.
7226
7227 2016-07-25 Martin Liska <mliska@suse.cz>
7228
7229 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7230
7231 2016-07-25 Martin Liska <mliska@suse.cz>
7232
7233 PR tree-optimization/71987
7234 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7235 just for SSA_NAMEs. Fix GNU coding style.
7236
7237 2016-07-25 Martin Liska <mliska@suse.cz>
7238
7239 PR gcov-profile/64874
7240 * gcov-io.h: Update command about file format.
7241 * gcov-iov.c (main): Adapt the numbering scheme.
7242
7243 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7244
7245 PR middle-end/66726
7246 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7247 whose result is used in PHI.
7248 (final_range_test_p): Likewise.
7249 (maybe_optimize_range_tests): Likewise.
7250
7251 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7252
7253 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7254 Reformat two multi-line strings.
7255
7256 2016-07-22 Martin Sebor <msebor@redhat.com>
7257
7258 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7259
7260 2016-07-22 Martin Sebor <msebor@redhat.com>
7261
7262 PR c/71560
7263 * doc/extend.texi (Compound Literals): Correct and clarify.
7264 (Cast to Union): Same.
7265
7266 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
7267
7268 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7269 comments to explain why certain error messages make mention of
7270 undocumented options.
7271 (rs6000_invalid_builtin): Change error messages to replace mention
7272 of undocumented options with mention of the -mcpu=power9 option
7273 that enables those undocumented options.
7274 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7275 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7276 definition of this macro to correct an existing error.
7277 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7278 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7279 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7280 descriptions of built-in functions so that they depend on
7281 -mcpu=power9 instead of on the corresponding undocumented flags.
7282 * doc/invoke.texi (Option Summary): Remove all mention of newly
7283 undocumented flags.
7284 (IBM RS/6000 and PowerPC Options): Likewise.
7285 * doc/md.texi (Constraints for Particuliar Machines): Remove all
7286 mention of newly undocumented flags.
7287
7288 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
7289
7290 * ipa-cp.c (determine_versionability): Do not create constprop clones,
7291 when target_clones attribute is set.
7292
7293 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7294
7295 * common.opt (funsafe-loop-optimizations): Mark ignore.
7296 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7297 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7298 related code.
7299 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7300 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7301
7302 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7303
7304 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7305 Parameter.
7306 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7307 Parameter.
7308 (number_of_iterations_exit): Warn missed loop optimization for
7309 possible infinite loops.
7310
7311 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
7312
7313 PR target/71216
7314 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7315 when to emit a ".machine" pseudo-op.
7316
7317 2016-07-22 Martin Liska <mliska@suse.cz>
7318
7319 PR gcov-profile/69028
7320 PR gcov-profile/62047
7321 * coverage.c (coverage_compute_lineno_checksum): Do not
7322 calculate checksum for fns w/o xloc.file.
7323 (coverage_compute_profile_id): Likewise.
7324
7325 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
7326
7327 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7328 (avr_secondary_reload): ...and implementation.
7329 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7330 * config/avr/avr.md (reload_in<mode>): Remove insns.
7331 (adjust_len) [lpm]: Remove insn attribute value.
7332 * config/avr/predicates.md (flash_operand): Remove insn predicate.
7333
7334 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7335
7336 PR middle-end/71876
7337 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7338 attribute.
7339 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7340 * calls.c (special_function_p): Remove the special handling of the
7341 "__builtin_" prefix.
7342
7343 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7344
7345 PR middle-end/71876
7346 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
7347 if STMT may be an alloca call.
7348 (gimple_alloca_call_p, alloca_call_p): Return only true for the
7349 builtin alloca call.
7350 * calls.h (gimple_maybe_alloca_call_p): New function.
7351 * tree-inline.c (inline_forbidden_p_stmt): Use
7352 gimple_maybe_alloca_call_p here.
7353
7354 2016-07-21 David Malcolm <dmalcolm@redhat.com>
7355
7356 * spellcheck-tree.c (best_macro_match::best_macro_match):
7357 Explictly specify the template arguments when invoking the base
7358 class constructor, to help older C++ compilers.
7359
7360 2016-07-21 Jakub Jelinek <jakub@redhat.com>
7361
7362 PR sanitizer/71953
7363 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7364 before builtin_decl_implicit.
7365
7366 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7367
7368 * optabs.c (emit_condiitonal_move): Short circuit for identical
7369 sources.
7370
7371 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7372
7373 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7374 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
7375 (noce_conversion_profitable_p): New.
7376 (noce_try_store_flag_constants): Use it.
7377 (noce_try_addcc): Likewise.
7378 (noce_try_store_flag_mask): Likewise.
7379 (noce_try_cmove): Likewise.
7380 (noce_try_cmove_arith): Likewise.
7381 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7382 overwriting it.
7383 (noce_convert_multiple_sets): Move cost model to here, from...
7384 (bb_ok_for_noce_convert_multiple_sets) ...here.
7385 (noce_process_if_block): Update calls for above changes.
7386 (noce_find_if_block): Record new noce_if_info parameters.
7387
7388 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7389
7390 * target.def (max_noce_ifcvt_seq_cost): New.
7391 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7392 * doc/tm.texi: Regenerate.
7393 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7394 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7395 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7396 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7397 * doc/invoke.texi: Document new params.
7398
7399 2016-07-21 Richard Biener <rguenther@suse.de>
7400
7401 PR tree-optimization/71947
7402 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7403 ranges have useful limit_vr information.
7404
7405 2016-07-21 Richard Biener <rguenther@suse.de>
7406
7407 * function-tests.c (build_trivial_generic_function): Set
7408 BLOCK_SUPERCONTEXT of DECL_INITIAL.
7409 * omp-low.c (create_omp_child_function): Likewise.
7410 (grid_expand_target_grid_body): Likewise.
7411 * cgraphunit.c (init_lowered_empty_function): Likewise.
7412 (cgraph_node::expand_thunk): Likewise.
7413 * tree-parloops.c (create_loop_fn): Likewise.
7414 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
7415
7416 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7417
7418 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
7419 in comment.
7420
7421 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
7422
7423 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
7424 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
7425 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
7426 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
7427 values for insn attribute.
7428 * config/avr/avr.c (avr_out_insert_notbit): New function.
7429 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
7430 ADJUST_LEN_INSV_NOTBIT_0/_7.
7431 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
7432
7433 2016-07-21 Bin Cheng <bin.cheng@arm.com>
7434
7435 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
7436 (chrec_convert_1, chrec_convert): Ditto.
7437 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
7438 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
7439 * tree-vrp.c (adjust_range_with_scev): Ditto.
7440 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
7441 (scev_var_range_cant_overflow): New function.
7442 (scev_probably_wraps_p): New parameter. Call above function.
7443 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
7444
7445 2016-07-21 Bin Cheng <bin.cheng@arm.com>
7446
7447 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
7448 by removing computation of may_be_zero.
7449
7450 2016-07-21 Jakub Jelinek <jakub@redhat.com>
7451
7452 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
7453
7454 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
7455
7456 Improving concepts performance and diagnostics.
7457 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
7458 for constraint satisfaction and subsumption.
7459 * timevar.h (auto_timevar): New constructor that matches the push/pop
7460 pattern of usage in pt.c.
7461
7462 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
7463
7464 * hwint.h (HOST_WIDE_INT_0): New define.
7465 (HOST_WIDE_INT_0U): Ditto.
7466 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
7467 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
7468 * simplify-rtx.c: Ditto.
7469 * tree-object-size.c: Ditto.
7470
7471 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7472
7473 * config/s390/s390.c (s390_encode_section_info): Remove mode size
7474 check.
7475
7476 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
7477
7478 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
7479 * combine.c: Use HOST_WIDE_INT_M1U instead of
7480 ~(unsigned HOST_WIDE_INT) 0.
7481 * double-int.h: Ditto.
7482 * dse.c: Ditto.
7483 * dwarf2asm.c:Ditto.
7484 * expmed.c: Ditto.
7485 * genmodes.c: Ditto.
7486 * match.pd: Ditto.
7487 * read-rtl.c: Ditto.
7488 * tree-ssa-loop-ivopts.c: Ditto.
7489 * tree-ssa-loop-prefetch.c: Ditto.
7490 * tree-vect-generic.c: Ditto.
7491 * tree-vect-patterns.c: Ditto.
7492 * tree.c: Ditto.
7493
7494 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7495
7496 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
7497 constant addresses outside [0,0xc0] into a register.
7498 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
7499 cases where the base address register is unused after.
7500 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
7501 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
7502 (avr_out_store_psi_reg_disp_tiny): Same.
7503
7504 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7505
7506 Implement attribute progmem on reduced Tiny cores by adding
7507 flash offset 0x4000 to respective symbols.
7508
7509 PR target/71948
7510 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
7511 documentation how it works on reduced Tiny cores.
7512 (AVR Named Address Spaces): No support for reduced Tiny.
7513 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
7514 (avr_address_tiny_pm_p): New static function.
7515 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
7516 if the address is in progmem.
7517 (avr_assemble_integer): Same.
7518 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
7519 for symbol_ref in progmem.
7520 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
7521 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
7522 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
7523
7524 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
7525
7526 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
7527 * configure: Regenerate.
7528 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
7529 (USE_THIN_ARCHIVES): New variable.
7530 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
7531 this archive as a thin archive.
7532
7533 2016-07-20 David Malcolm <dmalcolm@redhat.com>
7534
7535 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
7536 same location as last time, don't skip if we have fix-it hints.
7537 Clarify the skipping logic by converting it from one "if" clause
7538 to repeated "if" clauses.
7539 * spellcheck-tree.c: Include "cpplib.h".
7540 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
7541 (best_macro_match::best_macro_match): New constructor.
7542 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
7543 Move here from c/c-decl.c.
7544 (class best_macro_match): Move here from c/c-decl.c, converting
7545 from a typedef to a subclass, gaining a ctor.
7546
7547 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7548
7549 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
7550 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
7551 define...
7552 (avr_addr_space_diagnose_usage): ...and implementation.
7553 (avr_addr_space_supported_p): New function.
7554 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
7555 report bad address space usage if that space is supported.
7556 (avr_insert_attributes): Same. No more complain about unsupported
7557 address spaces.
7558 * config/avr/avr-c.c (tm_p.h): Include it.
7559 (avr_cpu_cpp_builtins): Only define addr-space related built-in
7560 macro if avr_addr_space_supported_p.
7561
7562 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7563
7564 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7565 flag_toplevel_reorder.
7566
7567 2016-07-20 David Malcolm <dmalcolm@redhat.com>
7568
7569 * gcc-rich-location.c
7570 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
7571 a const char *.
7572 * gcc-rich-location.h
7573 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
7574
7575 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7576
7577 * target.def (addr_space): Add new diagnose_usage to hook vector.
7578 * targhooks.c (default_addr_space_diagnose_usage): Add default
7579 implementation and...
7580 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
7581 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
7582 is some address space, call targetm.addr_space.diagnose_usage.
7583 * doc/tm.texi.in (Named Address Spaces): Add anchor for
7584 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
7585 * doc/tm.texi: Regenerate.
7586
7587 2016-07-20 Martin Liska <mliska@suse.cz>
7588
7589 PR middle-end/71898
7590 * graphite-isl-ast-to-gimple.c (later_of_the_two):
7591 Properly handly PHI stmts.
7592
7593 2016-07-20 Bin Cheng <bin.cheng@arm.com>
7594
7595 PR tree-optimization/71503
7596 PR tree-optimization/71683
7597 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
7598 and break.
7599
7600 2016-07-20 Martin Liska <mliska@suse.cz>
7601
7602 * doc/invoke.texi (-fipa-ra): Document when the option is
7603 disabled. Fix a typo.
7604
7605 2016-07-20 Martin Liska <mliska@suse.cz>
7606
7607 * Makefile.in: Include fibonacci_heap.c
7608 * fibonacci_heap.c: New file.
7609 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
7610 (fibonacci_heap::union_with): Fix deletion of the second heap.
7611 * selftest-run-tests.c (selftest::run_tests): Incorporate
7612 fibonacci heap tests.
7613 * selftest.h: Declare fibonacci_heap_c_tests.
7614
7615 2016-07-20 Martin Liska <mliska@suse.cz>
7616
7617 * selftest-run-tests.c (selftest::run_tests): New function.
7618 * selftest.h (sreal_c_tests): Declare.
7619 * sreal.c (sreal_verify_basics): New function.
7620 (verify_aritmetics): Likewise.
7621 (sreal_verify_arithmetics): Likewise.
7622 (verify_shifting): Likewise.
7623 (sreal_verify_shifting): Likewise.
7624 (void sreal_c_tests): Likewise.
7625
7626 2016-07-19 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR rtl-optimization/71916
7629 * cfgrtl.c (contains_no_active_insn_p): Return false also for
7630 bb which have a single succ fake edge.
7631
7632 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
7633
7634 PR debug/71855
7635 * dwarf2out.c (gen_subprogram_die): Only call
7636 gen_unspecified_parameters_die while dumping early dwarf.
7637
7638 2016-07-19 Jakub Jelinek <jakub@redhat.com>
7639
7640 PR middle-end/71874
7641 * gimple-fold.c (fold_builtin_memory_op): Use
7642 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7643
7644 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
7645
7646 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
7647 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
7648 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
7649 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
7650 * combine.c: Ditto.
7651 * cse.c: Ditto.
7652 * dojump.c: Ditto.
7653 * double-int.c: Ditto.
7654 * dse.c: Ditto.
7655 * dwarf2out.c: Ditto.
7656 * expmed.c: Ditto.
7657 * expr.c: Ditto.
7658 * fold-const.c: Ditto.
7659 * function.c: Ditto.
7660 * fwprop.c: Ditto.
7661 * genmodes.c: Ditto.
7662 * hwint.c: Ditto.
7663 * hwint.h: Ditto.
7664 * ifcvt.c: Ditto.
7665 * loop-doloop.c: Ditto.
7666 * loop-invariant.c: Ditto.
7667 * loop-iv.c: Ditto.
7668 * match.pd: Ditto.
7669 * optabs.c: Ditto.
7670 * real.c: Ditto.
7671 * reload.c: Ditto.
7672 * rtlanal.c: Ditto.
7673 * simplify-rtx.c: Ditto.
7674 * stor-layout.c: Ditto.
7675 * toplev.c: Ditto.
7676 * tree-ssa-loop-ivopts.c: Ditto.
7677 * tree-vect-generic.c: Ditto.
7678 * tree-vect-patterns.c: Ditto.
7679 * tree.c: Ditto.
7680 * tree.h: Ditto.
7681 * ubsan.c: Ditto.
7682 * varasm.c: Ditto.
7683 * wide-int-print.cc: Ditto.
7684 * wide-int.cc: Ditto.
7685 * wide-int.h: Ditto.
7686
7687 2016-07-19 David Malcolm <dmalcolm@redhat.com>
7688
7689 * selftest.c (selftest::assert_streq): Handle NULL values of
7690 val_actual and val_expected.
7691
7692 2016-07-19 Martin Jambor <mjambor@suse.cz>
7693
7694 PR fortran/71688
7695 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
7696 rather than cgraph_create_node to get a call graph node.
7697
7698 2016-07-19 Richard Biener <rguenther@suse.de>
7699
7700 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
7701 handle all tcc_constant bases and valueize SSA names.
7702 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
7703 tcc_constant bases.
7704
7705 2016-07-19 David Malcolm <dmalcolm@redhat.com>
7706
7707 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
7708 the flags of the exit block and bb2, not just the entry block.
7709
7710 2016-07-19 Richard Biener <rguenther@suse.de>
7711
7712 PR tree-optimization/71901
7713 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7714 align member, group stuff with the bitfield.
7715 (vn_ref_op_align_unit): New inline.
7716 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
7717 record element alignment and operand 3 unchanged.
7718 (ao_ref_init_from_vn_reference): Adjust.
7719 (valueize_refs_1): Likewise.
7720 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7721
7722 2016-07-19 Richard Biener <rguenther@suse.de>
7723
7724 PR tree-optimization/71908
7725 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
7726 symbolic constants in a more reliable way.
7727
7728 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
7729
7730 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7731 comment.
7732 (vect_update_inits_of_drs): Likewise.
7733 (vect_create_cond_for_alias_checks): Likewise.
7734 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7735
7736 2016-07-19 Richard Biener <rguenther@suse.de>
7737
7738 PR lto/71907
7739 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7740 with an abstract origin that is not an inlined function outer
7741 scope add a self-reference as abstract origin.
7742 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7743
7744 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7745
7746 PR target/71493
7747 * config/rs6000/rs6000.c (rs6000_function_value): Fix
7748 unintentional System V.4 structure return breakage for structures
7749 with a single floating point element.
7750
7751 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7752
7753 PR tree-optimization/71734
7754 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7755 contains REF, use it to check safelen, assume that safelen value
7756 must be greater 1, fix style.
7757 (ref_indep_loop_p_2): Add REF_LOOP argument.
7758 (ref_indep_loop_p): Pass LOOP as additional argument to
7759 ref_indep_loop_p_2.
7760
7761 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
7762
7763 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7764 allocation in the prologue.
7765 * explow.c (get_dynamic_stack_base): New function to return an address
7766 expression for the dynamic stack base.
7767 (get_dynamic_stack_size): New function to do the required dynamic stack
7768 space size calculations.
7769 (allocate_dynamic_stack_space): Use new functions.
7770 (align_dynamic_address): Move some code from
7771 allocate_dynamic_stack_space to new function.
7772 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7773
7774 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7775
7776 * config/s390/s390.c (s390_encode_section_info): Always set
7777 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7778 found.
7779
7780 2016-07-18 Richard Biener <rguenther@suse.de>
7781
7782 PR tree-optimization/71893
7783 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7784 for sizetype cast added by array_ref_element_size.
7785 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7786
7787 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
7788
7789 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7790 register parameters. Remove code to initialize argument pointer
7791 on TARGET_64BIT. Optimize call to _mcount when it can be reached
7792 using a pc-relative branch. Cleanup conditional code.
7793 * config/pa/pa.md (call_mcount): New expander.
7794 (call_mcount_nonpic): New insn.
7795 (call_mcount_pic): New insn and split.
7796 (call_mcount_pic_post_reload): New insn.
7797 (call_mcount_64bit): New insn and split.
7798 (call_mcount_64bit_post_reload): New insn.
7799
7800 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
7801
7802 * config/avr/predicates.md (const_m255_to_m1_operand): New.
7803 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7804 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7805 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7806 (*usum_widenqihi3, *udiff_widenqihi3)
7807 (*addhi3_zero_extend.const): New combiner insns.
7808 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7809 just 1 bit is affected.
7810 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7811 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7812
7813 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
7814
7815 * omp-low.c (lower_omp_target): Mark data clauses with
7816 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
7817 zero-length subarrays.
7818
7819 2016-07-15 Richard Biener <rguenther@suse.de>
7820
7821 PR tree-optimization/71881
7822 * tree-loop-distribution.c (destroy_loop): Remove blocks in
7823 reverse DOM order to make debug temp generation happy.
7824
7825 2016-07-15 Richard Biener <rguenther@suse.de>
7826
7827 PR tree-optimization/71887
7828 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
7829 verify it is not zero for division / modulo handling.
7830 (value_replacement): Adjust.
7831
7832 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
7833 Julian Brown <julian@codesourcery.com>
7834
7835 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
7836 * config/aarch64/aarch64-cost-tables.h
7837 (vulcan_extra_costs): New variable.
7838 * config/aarch64/aarch64.c
7839 (vulcan_addrcost_table): Likewise.
7840 (vulcan_regmove_cost): Likewise.
7841 (vulcan_vector_cost): Likewise.
7842 (vulcan_branch_cost): Likewise.
7843 (vulcan_tunings): Likewise.
7844
7845 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
7846
7847 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
7848 (output_in_order): Loop over undefined variables too. Output them
7849 via assemble_undefined_decl. Skip variables that correspond to hard
7850 registers or have value-exprs.
7851 * varpool.c (symbol_table::output_variables): Handle undefined
7852 variables together with defined ones.
7853
7854 2016-07-15 Richard Biener <rguenther@suse.de>
7855
7856 * tree-ssa-pre.c (get_representative_for): Make sure to return
7857 the value number of SSA names.
7858 (phi_translate_1): get_representative_for cannot return NULL.
7859 (do_pre_regular_insertion): Remove redundant call to
7860 fully_constant_expression.
7861 (do_pre_partial_partial_insertion): Likewise.
7862
7863 2016-07-15 Bin Cheng <bin.cheng@arm.com>
7864
7865 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
7866 (derive_simple_iv_with_niters): New function.
7867 (simple_iv): Rewrite using simple_iv_with_niters.
7868 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7869 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7870 function.
7871 (number_of_iterations_exit): Rewrite using above function.
7872 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7873 Decl.
7874
7875 2016-07-15 Richard Biener <rguenther@suse.de>
7876
7877 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
7878 vec_construct cost.
7879
7880 2016-07-14 Jakub Jelinek <jakub@redhat.com>
7881
7882 PR tree-optimization/71872
7883 * tree-data-ref.c (get_references_in_stmt): Ignore references
7884 with is_gimple_constant get_base_address.
7885
7886 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7887
7888 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
7889 (TARGET_HAVE_LDACQD): New macro.
7890 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
7891 than TARGET_HAVE_LDACQ.
7892 (arm_load_acquire_exclusivedi): Likewise.
7893 (arm_store_release_exclusivedi): Likewise.
7894
7895 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
7896
7897 PR rtl-optimization/71878
7898 * lra-constraints.c (match_reload): Pass information about other
7899 output operands. Create new unique register value if matching input
7900 operand shares same register value as output operand being considered.
7901 (curr_insn_transform): Record output operands already processed.
7902
7903 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7904
7905 PR target/65951
7906 PR tree-optimization/70923
7907 * tree-vect-patterns.c: Include mult-synthesis.h.
7908 (target_supports_mult_synth_alg): New function.
7909 (synth_lshift_by_additions): Likewise.
7910 (apply_binop_and_append_stmt): Likewise.
7911 (vect_synth_mult_by_constant): Likewise.
7912 (target_has_vecop_for_code): Likewise.
7913 (vect_recog_mult_pattern): Use above functions to synthesize vector
7914 multiplication by integer constants.
7915
7916 2016-07-14 Alan Modra <amodra@gmail.com>
7917
7918 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7919 gpr alternatives. Correct '*' placement on Y,r alternative.
7920 Add '*' on operand 1 of r,r alternative.
7921
7922 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7923
7924 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7925 * expmed.h: ... Here.
7926
7927 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
7928
7929 * gimple.h (stmt_can_terminate_bb_p): New function.
7930 * tree-cfg.c (need_fake_edge_p): Rename to ...
7931 (stmt_can_terminate_bb_p): ... this; return true if stmt can
7932 throw external; handle const and pure calls.
7933 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7934
7935 2016-07-14 Richard Biener <rguenther@suse.de>
7936
7937 PR tree-optimization/71866
7938 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7939 (do_hoist_insertion): Avoid endless recursion when we
7940 didn't insert anything because we managed to simplify
7941 things down to a constant or SSA name.
7942 (fully_constant_expression): Re-write in terms of ...
7943 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
7944 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7945 vn_nary_build_or_lookup_1.
7946 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7947 (vn_nary_build_or_lookup): ... this which now wraps it.
7948
7949 2016-07-14 Alan Modra <amodra@gmail.com>
7950
7951 PR target/71733
7952 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7953 with p9_vector override before power9-dform override.
7954
7955 2016-07-13 Andi Kleen <ak@linux.intel.com>
7956
7957 * value-prof.c (gimple_value_profile_transformations): Don't run
7958 when auto_profile is on.
7959
7960 2016-07-13 Andi Kleen <ak@linux.intel.com>
7961
7962 * auto-profile.c (update_inlined_ind_target,
7963 afdo_indirect_call): Print information to dump file.
7964
7965 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7966
7967 * genrecog.c (special_predicate_operand_p): New function.
7968 (predicate_name): Move function.
7969 (validate_pattern): Don't warn about missing mode for all
7970 define_special_predicate predicates.
7971
7972 2016-07-13 Bin Cheng <bin.cheng@arm.com>
7973
7974 * tree-vect-data-refs.c (vect_no_alias_p): New function.
7975 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
7976 resolve alias checks which are known at compilation time.
7977 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
7978 alias checks are resolved. Move dump info for too many runtime
7979 alias checks to here...
7980 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
7981
7982 2016-07-13 Richard Biener <rguenther@suse.de>
7983
7984 PR tree-optimization/24574
7985 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
7986 position and add shift, rotate, divison and modulo support
7987 for left zero.
7988 (value_replacement): Pass in argument position to absorbing_element_p.
7989
7990 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
7991
7992 PR ipa/71633
7993 * ipa-inline-transform.c (inline_call): Support
7994 instrumented thunks.
7995
7996 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7997
7998 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
7999 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8000 divide feature.
8001 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8002 Baseline. Make initial alternative TARGET_32BIT only.
8003 (udivsi3): Likewise.
8004 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8005 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8006 target.
8007
8008 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8009
8010 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8011 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8012 availability with TARGET_HAVE_MOVT.
8013 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8014 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8015 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8016 UINTVAL.
8017 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8018 extra instruction if MOVW is available. Use a cost variable
8019 incremented by COSTS_N_INSNS (1) when the condition match rather than
8020 returning an arithmetic expression based on COSTS_N_INSNS. Make
8021 constant with bottom half word zero cost 2 instruction if MOVW is
8022 available.
8023 * config/arm/arm.md (define_attr "arch"): Add v8mb.
8024 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8025 target is ARMv8-M Baseline.
8026 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8027 (arm_movtas_ze): Likewise.
8028 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8029 alternative for constants satisfying j constraint.
8030 (thumb1_movsi_insn): Likewise.
8031 (movsi splitter for K alternative): Tighten condition to not trigger
8032 if movt is available and j constraint is satisfied.
8033 (Pe immediate splitter): Likewise.
8034 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8035 constant fitting in an halfword to use MOVW.
8036 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8037 effective target.
8038
8039 2016-07-13 Richard Biener <rguenther@suse.de>
8040
8041 PR middle-end/71104
8042 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8043 gimplifying the LHS. Make sure to gimplify a returning twice
8044 call LHS without using SSA names.
8045
8046 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8047
8048 * tree-data-ref.c (find_data_references_in_stmt): Remove
8049 unnecessary call to vec::release.
8050 (graphite_find_data_references_in_stmt): Likewise.
8051 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8052 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8053
8054 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8055
8056 * cfgexpand.c (expand_used_vars): Make the type of a local
8057 variable auto_vec.
8058 * genmatch.c (lower_for): Likewise.
8059 * haifa-sched.c (haifa_sched_init): Likewise.
8060 (add_to_speculative_block): Likewise.
8061 (create_check_block_twin): Likewise.
8062 * predict.c (handle_missing_profiles): Likewise.
8063 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8064 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8065 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8066 Likewise.
8067 (maybe_lower_iteration_bound): Likewise.
8068 * tree-ssa-sccvn.c (DFS): Likewise.
8069 * tree-stdarg.c (reachable_at_most_once): Likewise.
8070 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8071 (vectorizable_store): Likewise.
8072
8073 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8074
8075 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8076 (sccvn_dom_walker): make cond_stack an auto_vec.
8077
8078 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8079
8080 * ree.c (struct ext_state): Make type of members auto_vec.
8081 (find_and_remove_re): Adjust.
8082
8083 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8084
8085 * cfgexpand.c (struct stack_vars_data): Make type of fields
8086 auto_vec.
8087 (expand_used_vars): Adjust.
8088
8089 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8090
8091 * ipa.c (record_cdtor_fn): Adjust.
8092 (build_cdtor_fns): Likewise.
8093 (ipa_cdtor_merge): Make static_ctors and static_dtors local
8094 variables.
8095
8096 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8097
8098 * genextract.c (struct accum_extract): Add constructor and make
8099 members auto_vec.
8100 (gen_insn): Adjust.
8101
8102 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8103
8104 * tree.c (struct free_lang_data_d): Add constructor and change
8105 types of members to ones that automatically manage resources.
8106 (fld_worklist_push): Adjust.
8107 (find_decls_types): Likewise.
8108 (find_decls_types_in_eh_region): Likewise.
8109 (free_lang_data_in_cgraph): Stop manually creating and
8110 destroying members of free_lang_data_d.
8111
8112 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
8113
8114 PR rtl-optimization/68961
8115 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8116 peephole variant. Use sse_reg_operand predicates.
8117
8118 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
8119
8120 * config/i386/predicates.md (x86_64_immediate_operand)
8121 <case CONST_INT>: Remove unneeded truncation to DImode.
8122 <case CONST>: Ditto.
8123 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8124
8125 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8126
8127 PR target/71805
8128 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8129 The xxperm and xxpermr instructions require that the 2nd input
8130 operand overlap with the output operand, and not the 1st.
8131 (altivec_vperm_v8hiv16qi): Likewise.
8132 (altivec_vperm_<mode>_uns_internal): Likewise.
8133 (altivec_vpermr_<mode>_internal): Likewise.
8134 (vperm_v8hiv4si): Likewise.
8135 (vperm_v16qiv8hi): Likewise.
8136
8137 2016-07-12 Nathan Sidwell <nathan@acm.org>
8138
8139 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8140 when -mno-pic-data-is-text-relative is in effect, by default.
8141 * doc/invoke.texi (mpic-data-is-text-relative): Document new
8142 behavior and clarify.
8143
8144 2016-07-12 Martin Liska <mliska@suse.cz>
8145
8146 * params.def: Add avg-loop niter.
8147 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8148 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8149 * doc/invoke.texi: Document the new parameter.
8150
8151 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8152
8153 PR middle-end/71700
8154 * expr.c (store_constructor): Mask sign-extended bits when widening
8155 sub-word constructor element at the start of a word.
8156
8157 2016-07-12 Martin Liska <mliska@suse.cz>
8158
8159 * Makefile.in: Append rule for params-options.h.
8160 * params-options.h: New file.
8161
8162 2016-07-12 Martin Liska <mliska@suse.cz>
8163
8164 * ira-build.c (mark_loops_for_removal): Properly iterate
8165 loops.
8166
8167 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
8168 Richard Biener <rguenther@suse.de>
8169
8170 PR tree-optimization/23286
8171 PR tree-optimization/70159
8172 * doc/invoke.texi: Document -fcode-hoisting.
8173 * common.opt (fcode-hoisting): New flag.
8174 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8175 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8176 (do_regular_insertion): Rename to ...
8177 (do_pre_regular_insertion): ... this and amend general comments
8178 on insertion strathegy.
8179 (do_partial_partial_insertion): Rename to ...
8180 (do_pre_partial_partial_insertion): ... this.
8181 (do_hoist_insertion): New function.
8182 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8183 and call do_hoist_insertion properly.
8184 (insert): Adjust.
8185 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8186 (pass_pre::execute): Register hoist_insert stats.
8187
8188 2016-07-12 Jakub Jelinek <jakub@redhat.com>
8189
8190 PR middle-end/71716
8191 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8192 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8193 is different from mode's bitsize. Small cleanup.
8194
8195 2016-07-12 Richard Biener <rguenther@suse.de>
8196
8197 PR rtl-optimization/68961
8198 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8199 to simplify to a non-constant.
8200
8201 2016-07-11 Jakub Jelinek <jakub@redhat.com>
8202
8203 PR middle-end/71758
8204 * omp-low.c (expand_omp_target): Gimplify device.
8205
8206 PR tree-optimization/71823
8207 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8208 to get vec_oprnds2 from op2.
8209
8210 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
8211
8212 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8213 Hoist common subexpressions.
8214 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8215
8216 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
8217
8218 PR target/71800
8219 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8220 prevent generation of 'stxsiwx' on pre Power8 hardware.
8221
8222 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8223
8224 * input.c: Include cpplib.h.
8225 (selftest::temp_source_file): New class.
8226 (selftest::temp_source_file::temp_source_file): New ctor.
8227 (selftest::temp_source_file::~temp_source_file): New dtor.
8228 (selftest::should_have_column_data_p): New function.
8229 (selftest::test_should_have_column_data_p): New function.
8230 (selftest::temp_line_table): New class.
8231 (selftest::temp_line_table::temp_line_table): New ctor.
8232 (selftest::temp_line_table::~temp_line_table): New dtor.
8233 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8234 it to create a temp_line_table.
8235 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8236 locations that are known to have column data.
8237 (selftest::line_table_case): New struct.
8238 (selftest::test_reading_source_line): Move tempfile handling
8239 to class temp_source_file.
8240 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8241 (selftest::assert_token_loc_eq): New function.
8242 (ASSERT_TOKEN_LOC_EQ): New macro.
8243 (selftest::test_lexer): New function.
8244 (selftest::boundary_locations): New array.
8245 (selftest::input_c_tests): Call test_should_have_column_data_p.
8246 Loop over a test matrix of interesting values of location and
8247 default_range_bits, calling test_lexer on each case in the matrix.
8248 Move call to test_accessing_ordinary_linemaps into the matrix.
8249 * selftest.h (ASSERT_EQ): Reimplement in terms of...
8250 (ASSERT_EQ_AT): New macro.
8251
8252 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
8253
8254 PR target/71801
8255 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8256 Don't convert TImode in debug insn.
8257
8258 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8259
8260 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8261 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8262 (tree_type_common::lang_flag_7): New.
8263 (tree_type_common::spare): Reduce size.
8264 * tree.h (TYPE_ALIGN_OK): Remove.
8265 (TYPE_LANG_FLAG_7): New.
8266 (get_inner_reference): Adjust header.
8267 * print-tree.c (print_node): Adjust.
8268 * expr.c (get_inner_reference): Remove parameter keep_aligning.
8269 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8270 calls to get_inner_reference.
8271 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
8272 handling of TYPE_ALIGN_OK.
8273 * builtins.c (get_object_alignment_2): Adjust call to
8274 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
8275 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8276 TYPE_ALIGN_OK.
8277 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8278 * cfgexpand.c (expand_debug_expr): Likewise.
8279 * dbxout.c (dbxout_expand_expr): Likewise.
8280 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8281 loc_list_from_tree, fortran_common): Likewise.
8282 * fold-const.c (optimize_bit_field_compare,
8283 decode_field_reference, fold_unary_loc, fold_comparison,
8284 split_address_to_core_and_offset): Likewise.
8285 * gimple-laddress.c (execute): Likewise.
8286 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8287 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8288 * hsa-gen.c (gen_hsa_addr): Likewise.
8289 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8290 * tsan.c (instrument_expr): Likewise.
8291 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8292 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8293 * tree-affine.c (tree_to_aff_combination,
8294 get_inner_reference_aff): Adjust calls to get_inner_reference.
8295 * tree-data-ref.c (split_constant_offset_1,
8296 dr_analyze_innermost): Likewise.
8297 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8298 * tree-sra.c (ipa_sra_check_caller): Likewise.
8299 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8300 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8301 bswap_replace): Likewise.
8302 * tree-vect-data-refs.c (vect_check_gather,
8303 vect_analyze_data_refs): Likewise.
8304 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8305 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8306 TYPE_ALIGN_OK.
8307
8308 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8309
8310 * Makefile.in (selftest-valgrind): New phony target.
8311 * function-tests.c (selftest::build_cfg): Delete pass instances
8312 created by the test.
8313 (selftest::convert_to_ssa): Likewise.
8314 (selftest::test_expansion_to_rtl): Likewise.
8315 * tree-cfg.c (selftest::test_linear_chain): Release dominator
8316 vectors.
8317 (selftest::test_diamond): Likewise.
8318
8319 2016-07-11 Richard Biener <rguenther@suse.de>
8320
8321 PR tree-optimization/71816
8322 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8323 than replacing all of its operands.
8324
8325 2016-07-11 Alan Modra <amodra@gmail.com>
8326
8327 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8328 (ctr<mode>): Add unspec.
8329 (ctr<mode>_internal*): Likewise.
8330
8331 2016-07-08 James Bowman <james.bowman@ftdichip.com>
8332
8333 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8334 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8335
8336 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
8337
8338 PR rtl-optimization/71621
8339 * lra-constraints.c (process_alt_operands): Check combination of
8340 reg class and mode.
8341
8342 2016-07-08 Jason Merrill <jason@redhat.com>
8343 Richard Biener <rguenther@suse.de>
8344
8345 P0145: Refining Expression Order for C++.
8346 * gimplify.c (initial_rhs_predicate_for): New.
8347 (gimplfy_modify_expr): Gimplify RHS before LHS.
8348
8349 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8350
8351 PR target/71297
8352 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8353 Allow standard error handling to take over when a wrong number
8354 of arguments is presented to __builtin_vec_ld () or
8355 __builtin_vec_st ().
8356
8357 2016-07-08 Jiong Wang <jiong.wang@arm.com>
8358
8359 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8360 variants.
8361 (smin): Likewise.
8362 (fmax): New entry.
8363 (fmin): Likewise.
8364 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8365 __builtin_aarch64_fmaxv2sf.
8366 (vmaxnmq_f32): Likewise.
8367 (vmaxnmq_f64): Likewise.
8368 (vminnm_f32): Likewise.
8369 (vminnmq_f32): Likewise.
8370 (vminnmq_f64): Likewise.
8371
8372 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8373
8374 PR target/71806
8375 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8376 enable -mfloat128-hardware by default.
8377 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8378 that IEEE 128-bit hardware support needs.
8379 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8380 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8381 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8382 floating point requires.
8383 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8384 -mfloat128 and -mfloat128-hardware changes.
8385
8386 2016-07-08 Alan Hayward <alan.hayward@arm.com>
8387
8388 PR tree-optimization/71667
8389 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8390
8391 2016-07-08 Martin Liska <mliska@suse.cz>
8392
8393 PR middle-end/71606
8394 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8395 folding produces SAVE_EXPRs, thus return false for the type.
8396
8397 2016-07-07 Martin Liska <mliska@suse.cz>
8398
8399 * file-find.c (remove_prefix): New function.
8400 * file-find.h (remove_prefix): Declare the function.
8401 * gcc-ar.c (main): Skip a folder of the wrapper if
8402 a wrapped binary would point to the same file.
8403
8404 2016-07-07 Jan Hubicka <jh@suse.cz>
8405
8406 * tree-scalar-evolution.c (iv_can_overflow_p): export.
8407 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8408 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
8409
8410 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
8411
8412 PR ipa/71624
8413 * ipa-inline-analysis.c (compute_inline_parameters): Set
8414 local.can_change_signature to false for intrumentation
8415 thunk callees.
8416
8417 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8418
8419 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
8420 with TARGET_HAVE_MOVT.
8421 (TARGET_HAVE_MOVT): Define.
8422 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
8423 availability with TARGET_HAVE_MOVT.
8424 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
8425 availability.
8426 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
8427 TARGET_THUMB2.
8428 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
8429 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
8430 * config/arm/constraints.md (define_constraint "j"): Use
8431 TARGET_HAVE_MOVT to check MOVT availability.
8432
8433 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8434
8435 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
8436
8437 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8438
8439 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
8440 (armv8-m.main): Likewise.
8441 (armv8-m.main+dsp): Likewise.
8442 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
8443 (FL_FOR_ARCH8M_MAIN): Likewise.
8444 * config/arm/arm-tables.opt: Regenerate.
8445 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
8446 armv8-m.main+dsp to BE8_LINK_SPEC.
8447 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
8448 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
8449 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
8450 Baseline and Mainline.
8451 (arm_option_override_internal): Also disable arm_restrict_it when
8452 !arm_arch_notm. Update comment for -munaligned-access to also cover
8453 ARMv8-M Baseline.
8454 (arm_file_start): Increase buffer size for printing architecture name.
8455 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
8456 and armv8-m.main+dsp.
8457 (mno-unaligned-access): Clarify that this is disabled by default for
8458 ARMv8-M Baseline architectures as well.
8459
8460 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8461
8462 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
8463 decide whether to prevent some libgcc routines being included for some
8464 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
8465 link between this condition and the one in
8466 libgcc/config/arm/lib1func.S.
8467
8468 2016-07-07 Richard Biener <rguenther@suse.de>
8469
8470 * tree-ssa-pre.c: Include alias.h.
8471 (compute_avail): If we have multiple VN_REFERENCEs with the
8472 same hashtable entry adjust that to make it a valid replacement
8473 for all of them with respect to alignment and aliasing
8474 when doing insertion.
8475 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
8476 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
8477
8478 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
8479
8480 PR target/70098
8481 PR target/71763
8482 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8483 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
8484 constraint.
8485
8486 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8487
8488 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
8489 (adjust_mems): Adjust.
8490 (adjust_insn): Likewise.
8491 (prepare_call_arguments): Likewise.
8492
8493 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8494
8495 * gcse.c (struct ls_expr): Make stores field a vector.
8496 (ldst_entry): Adjust.
8497 (free_ldst_entry): Likewise.
8498 (print_ldst_list): Likewise.
8499 (compute_ld_motion_mems): Likewise.
8500 (update_ld_motion_stores): Likewise.
8501
8502 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8503
8504 * gcse.c (struct ls_expr): Remove loads field.
8505 (ldst_entry): Adjust.
8506 (free_ldst_entry): Likewise.
8507 (print_ldst_list): Likewise.
8508 (compute_ld_motion_mems): Likewise.
8509
8510 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8511
8512 * store-motion.c (struct st_expr): Make antic_stores a vector.
8513 (st_expr_entry): Adjust.
8514 (free_st_expr_entry): Likewise.
8515 (print_store_motion_mems): Likewise.
8516 (find_moveable_store): Likewise.
8517 (compute_store_table): Likewise.
8518 (remove_reachable_equiv_notes): Likewise.
8519 (replace_store_insn): Likewise.
8520 (build_store_vectors): Likewise.
8521
8522 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8523
8524 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
8525 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
8526
8527 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8528
8529 PR tree-optimization/71518
8530 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
8531 misalign also for outer loops with negative step.
8532
8533 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
8534
8535 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
8536 (cortex_a53_shift): Add mov_shift.
8537 (cortex_a53_shift_reg): Add new reservation for register shifts.
8538 (cortex_a53_alu): Remove bfm.
8539 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
8540 (cortex_a53_alu_extr): Add new reservation for EXTR.
8541 (bypasses): Improve bypass modelling.
8542
8543 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8544
8545 PR target/50739
8546 * config/avr/avr.c (avr_asm_select_section): Strip off
8547 SECTION_DECLARED from flags when calling get_section.
8548
8549 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8550
8551 * tree-vectorizer.h (vect_memory_access_type): Add
8552 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
8553 * tree-vect-stmts.c (compare_step_with_zero): New function.
8554 (perm_mask_for_reverse): Move further up file.
8555 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
8556 step is negative.
8557 (get_negative_load_store_type): New function.
8558 (get_load_store_type): Call it. Add an ncopies argument.
8559 (vectorizable_mask_load_store): Update call accordingly and
8560 remove tests for negative steps.
8561 (vectorizable_store, vectorizable_load): Likewise. Handle new
8562 memory_access_types.
8563
8564 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8565
8566 * tree-vectorizer.h (vect_memory_access_type): New enum.
8567 (_stmt_vec_info): Add a memory_access_type field.
8568 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
8569 (vect_model_store_cost): Take an access type instead of a boolean.
8570 (vect_model_load_cost): Likewise.
8571 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
8572 vect_model_store_cost and vect_model_load_cost.
8573 * tree-vect-stmts.c (vec_load_store_type): New enum.
8574 (vect_model_store_cost): Take an access type instead of a
8575 store_lanes_p boolean. Simplify tests.
8576 (vect_model_load_cost): Likewise, but for load_lanes_p.
8577 (get_group_load_store_type, get_load_store_type): New functions.
8578 (vectorizable_store): Use get_load_store_type. Record the access
8579 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
8580 (vectorizable_load): Likewise.
8581 (vectorizable_mask_load_store): Likewise. Replace is_store
8582 variable with vls_type.
8583
8584 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8585
8586 * tree-vectorizer.h (vect_grouped_load_supported): Add a
8587 single_element_p parameter.
8588 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8589 Check the PR65518 case here rather than in vectorizable_load.
8590 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
8591 * tree-vect-stmts.c (vectorizable_load): Likewise.
8592
8593 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8594
8595 * tree-vectorizer.h (gather_scatter_info): New structure.
8596 (vect_check_gather_scatter): Return a bool rather than a decl.
8597 Replace return-by-pointer arguments with a single
8598 gather_scatter_info *.
8599 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
8600 (vect_analyze_data_refs): Update call accordingly.
8601 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8602 (vectorizable_mask_load_store): Likewise. Also record the
8603 offset dt and vectype in the gather_scatter_info.
8604 (vectorizable_store): Likewise.
8605 (vectorizable_load): Likewise.
8606
8607 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8608
8609 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
8610 strided groups, use the cost of N scalar accesses instead
8611 of ncopies vector accesses.
8612 (vect_model_load_cost): Likewise.
8613
8614 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8615
8616 * tree-vect-stmts.c (vect_cost_group_size): Delete.
8617 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
8618 variable to indicate when once-per-group costs are being used.
8619 (vect_model_load_cost): Likewise. Fix comment and misindented code.
8620
8621 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8622
8623 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
8624 peeling-for-gaps condition.
8625
8626 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8627
8628 * config/s390/s390.c (s390_expand_vec_init): Force initializer
8629 element to register if it doesn't match general_operand.
8630
8631 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8632 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8633
8634 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
8635 prototype.
8636 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
8637 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
8638 (SIGNBIT): New mode iterator.
8639 (Fsignbit): New mode attribute.
8640 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
8641 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
8642 when direct moves are available.
8643 (signbit<mode>2_dm): New define_insn_and_split).
8644 (signbit<mode>2_dm2): New define_insn.
8645
8646 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8647
8648 PR rtl-optimization/71594
8649 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
8650 into subregs of appropriate mode before trying to emit a conditional
8651 move.
8652
8653 2016-07-05 Jan Hubicka <jh@suse.cz>
8654
8655 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
8656 (simple_iv): Use it.
8657
8658 2016-07-05 Jan Hubicka <jh@suse.cz>
8659
8660 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
8661
8662 2016-07-05 Jiong Wang <jiong.wang@arm.com>
8663
8664 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
8665 "offmemok".
8666
8667 2016-07-05 Jan Hubicka <jh@suse.cz>
8668
8669 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
8670 IV can overflow.
8671
8672 2016-07-05 Richard Biener <rguenther@suse.de>
8673
8674 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
8675 Handle empty else block.
8676 (is_feasible_trace): Likewise.
8677 (split_paths): Likewise.
8678
8679 2016-07-05 Richard Biener <rguenther@suse.de>
8680
8681 * tree-loop-distribution.c (distribute_loop): Fix issue with
8682 the cost model loop.
8683
8684 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
8685
8686 * config/arm/neon-testgen.ml: Delete.
8687 * config/arm/neon.ml: Delete.
8688
8689 2016-07-04 Jakub Jelinek <jakub@redhat.com>
8690
8691 PR c++/71739
8692 * tree.c (attribute_value_equal): Use get_attribute_name instead of
8693 directly using TREE_PURPOSE.
8694
8695 2016-07-04 Jiong Wang <jiong.wang@arm.com>
8696
8697 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
8698 * config/aarch64/aarch64_neon.h: Likewise.
8699 * config/aarch64/arm_neon.h: Likewise.
8700 * config/aarch64/atomics.md: Likewise.
8701 * config/aarch64/aarch64-simd-builtins.def: Likewise.
8702 * doc/invoke.texi: Likewise.
8703
8704 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
8705
8706 * config/s390/s390.md: Add "z13" cpu_facility.
8707 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
8708 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
8709 condition" type instructions.
8710
8711 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
8712 Jeff Law <law@redhat.com>
8713
8714 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
8715 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
8716
8717 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
8718
8719 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
8720 permutation for TARGET_AVX512F.
8721 (ix86_expand_vec_one_operand_perm_avx512): New function.
8722 (expand_vec_perm_1): Invoke introduced function.
8723 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8724 it may be not valid after vectorization.
8725
8726 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8727
8728 PR target/63874
8729 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8730 typo in comment. Only force to memory if it is a weak
8731 external reference.
8732
8733 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
8734 Jiong Wang <jiong.wang@arm.com>
8735
8736 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8737 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8738 (AARCH64_FL_F16): New.
8739 (AARCH64_FL_FOR_ARCH8_2): New.
8740 (AARCH64_ISA_8_2): New.
8741 (AARCH64_ISA_F16): New.
8742 (TARGET_FP_F16INST): New.
8743 (TARGET_SIMD_F16INST): New.
8744 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8745 ("fp"): Disabling "fp" also disables "fp16".
8746 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8747 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8748 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8749 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8750
8751 2016-07-04 Jan Beulich <jbeulich@suse.com>
8752
8753 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8754
8755 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8756
8757 PR target/71720
8758 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8759 the insns, use an insn form that does not adjust the offset on
8760 little endian systems.
8761
8762 2016-07-01 Jan Beulich <jbeulich@suse.com>
8763
8764 * varasm.c (get_variable_section): Validate initializer in
8765 named .bss-like sections.
8766
8767 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
8768
8769 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8770 Exchange the order of the second and third operands in the vpermr
8771 instruction tmeplate.
8772
8773 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
8774
8775 PR target/71698
8776 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8777 Disallow TDmode values.
8778
8779 2016-07-01 Alan Modra <amodra@gmail.com>
8780
8781 PR rtl-optimization/71709
8782 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8783 being set, not referenced.
8784
8785 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8786
8787 PR tree-optimization/70729
8788 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8789 of loop since it can be not valid after transformation.
8790
8791 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8792
8793 * config/arm/arm.c (thumb_reload_in_hi): Delete.
8794 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8795
8796 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
8797
8798 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8799 for NULL decl.
8800
8801 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8802
8803 PR target/71677
8804 * config/rs6000/constraints.md (wY constraint): New constraint to
8805 match the requirements for the LXSD and STXSD instructions.
8806 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8807 predicate to match the requirements for the LXSD and STXSD
8808 instructions.
8809 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8810 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8811 to make sure that the bottom 2 bits of offset are 0, the address
8812 form is offsettable, and no updating is done in the address mode.
8813 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8814 (movdi_internal32): Likewise
8815 (movdi_internal64): Likewise.
8816
8817 2016-06-30 Jakub Jelinek <jakub@redhat.com>
8818
8819 PR tree-optimization/71707
8820 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
8821 strinfo even for ADDR_EXPR ptr.
8822
8823 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8824
8825 * config/rs6000/altivec.md (darn_32): Change the condition to
8826 TARGET_P9_MISC instead of TARGET_MODULO.
8827 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
8828 condition expression.
8829 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
8830 condition expression.
8831 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
8832 (DFP_TEST): New code iterator.
8833 (dfptstsfi_<code>_mode>): New define_expand.
8834 (*dfp_sgnfcnc_<mode>): New define_insn.
8835 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
8836 definition next to BU_P9_MISC_1 definition and change the MASK
8837 value to RS6000_BTM_P9_MISC.
8838 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
8839 (BU_P9_64BIT_MISC_0): Likewise.
8840 (BU_P9_DFP_MISC_0): New macro definition.
8841 (BU_P9_DFP_MISC_1): New macro definition.
8842 (BU_P9_DFP_MISC_2): New macro definition.
8843 (BU_P9_DFP_OVERLOAD_1): New macro definition.
8844 (BU_P9_DFP_OVERLOAD_2): New macro definition.
8845 (BU_P9_DFP_OVERLOAD_3): New macro definition.
8846 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
8847 (TSTSFI_LT_TD): Likewise.
8848 (TSTSFI_EQ_DD): Likewise.
8849 (TSTSFI_EQ_TD): Likewise.
8850 (TSTSFI_GT_DD): Likewise.
8851 (TSTSFI_GT_TD): Likewise.
8852 (TSTSFI_OV_DD): Likewise.
8853 (TSTSFI_OV_TD): Likewise.
8854 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
8855 (TSTSFI_LT_DD): Likewise.
8856 (TSTSFI_LT_TD): Likewise.
8857 (TSTSFI_EQ): Likewise.
8858 (TSTSFI_EQ_DD): Likewise.
8859 (TSTSFI_EQ_TD): Likewise.
8860 (TSTSFI_GT): Likewise.
8861 (TSTSFI_GT_DD): Likewise.
8862 (TSTSFI_GT_TD): Likewise.
8863 (TSTSFI_OV): Likewise.
8864 (TSTSFI_OV_DD): Likewise.
8865 (TSTSFI_OV_TD): Likewise.
8866 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8867 overloaded test significance functions.
8868 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8869 OPTION_MASK_P9_MISC into the representation of this mask.
8870 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
8871 of this mask.
8872 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
8873 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
8874 non-zero.
8875 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
8876 argument is a 6-bit unsigned literal value if the icode argument
8877 represents a DFP test significance built-in call.
8878 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
8879 flag used independently and in combination with the
8880 RS6000_BTM_64BIT flag.
8881 (rs6000_opt_masks): Add entry for power9-misc command-line option.
8882 (rs6000_builtin_mask_names): Add entry for power9-misc
8883 command-line option.
8884 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
8885 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
8886 RS6000_BTM_P9_MISC macros.
8887 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
8888 option and change the description of the -mpower9-vector option to
8889 enable only vector instructions, removing its erroneously claimed
8890 support for scalar instructions.
8891 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8892 the ISA 3.0 digital floating point test significance built-in
8893 functions.
8894
8895 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
8896
8897 * config/aarch64/aarch64.c (cortexa35_tunings):
8898 Enable AES fusion. Use cortexa57_branch_cost.
8899 (cortexa53_tunings): Use cortexa57_branch_cost.
8900 (cortexa72_tunings): Use cortexa57_branch_cost.
8901 Use AUTOPREFETCHER_WEAK.
8902 (cortexa73_tunings): Use cortexa57_branch_cost.
8903
8904 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8905 James Greenhalgh <james.greenhalgh@arm.com>
8906
8907 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8908 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8909 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8910 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8911 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8912 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8913 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8914 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8915 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8916 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8917 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8918 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8919 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8920 New intrinsics.
8921
8922 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
8923 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8924
8925 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8926 New define_insn.
8927 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8928
8929 2016-06-30 David Malcolm <dmalcolm@redhat.com>
8930
8931 PR driver/71651
8932 * gcc.c (driver::build_option_suggestions): Pass "option" to
8933 add_misspelling_candidates.
8934 * opts-common.c (add_misspelling_candidates): Add "option" param;
8935 use it to avoid adding negated forms for options marked with
8936 RejectNegative.
8937 * opts.h (add_misspelling_candidates): Add "option" param.
8938
8939 2016-06-30 Jakub Jelinek <jakub@redhat.com>
8940
8941 PR middle-end/71693
8942 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8943 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8944 first when permuting bitwise operation with rotate. Cast
8945 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8946
8947 2016-06-29 David Malcolm <dmalcolm@redhat.com>
8948
8949 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8950 for misspelled param names.
8951 * params.c: Include spellcheck.h.
8952 (find_param_fuzzy): New function.
8953 * params.h (find_param_fuzzy): New prototype.
8954 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
8955 * spellcheck.h (struct edit_distance_traits<const char *>):
8956 ...here.
8957
8958 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8959
8960 * config/rs6000/predicates.md (const_0_to_7_operand): New
8961 predicate, recognize 0..7.
8962 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8963 support for doing extracts from V16QImode, V8HImode, V4SImode
8964 under ISA 3.0.
8965 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
8966 vector extract support.
8967 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
8968 for ISA 3.0 vector extract.
8969 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
8970 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
8971 extracts of a constant element number from small integer vectors
8972 on 64-bit ISA 3.0 systems.
8973 (vsx_extract_<mode>_di): Likewise.
8974 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
8975 say when we can do ISA 3.0 vector extracts.
8976 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
8977 registers, using the stxsiwx instruction.
8978
8979 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
8980
8981 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
8982 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
8983 qdf24xx_regmove_cost, qdf24xx_tunings): New.
8984 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
8985 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
8986 * config/arm/arm.c (arm_qdf24xx_tune): New.
8987
8988 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
8989
8990 * config/aarch64/aarch64.c (cortexa53_tunings):
8991 Increase loop alignment to 8. Set function alignment to 16.
8992 (cortexa35_tunings): Likewise.
8993 (cortexa57_tunings): Increase loop alignment to 8.
8994 (cortexa72_tunings): Likewise.
8995 (cortexa73_tunings): Likewise.
8996
8997 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
8998
8999 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9000 for arm_fp16_ok and arm_fp16_hw.
9001 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9002 arm_fp16_alternative.
9003
9004 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
9005
9006 PR tree-optimization/71655
9007 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9008 types when swapping operands.
9009
9010 2016-06-29 Martin Liska <mliska@suse.cz>
9011
9012 PR middle-end/71585
9013 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9014 * ipa-inline-transform.c (inline_call): Remove unnecessary call
9015 of build_optimization_node.
9016
9017 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9018
9019 PR tree-optimization/70729
9020 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9021 independent in loops having positive safelen value.
9022 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9023 it may be not valid after vectorization.
9024
9025 2016-06-29 Jakub Jelinek <jakub@redhat.com>
9026
9027 PR tree-optimization/71625
9028 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
9029 is sorted by ascending list->offset. If PTR is non-NULL and there is
9030 previous strinfo, call get_stridx_plus_constant.
9031 (get_stridx): Pass exp as second argument to get_addr_stridx.
9032 (addr_stridxptr): Add missing list = list->next, so that there can be
9033 more than one entries in the list. Bump limit from 16 to 32. Ensure
9034 the list is sorted by ascending list->offset.
9035 (get_stridx_plus_constant): Adjust so that it can be also called with
9036 ADDR_EXPR instead of SSA_NAME as PTR.
9037 (handle_char_store): Pass NULL_TREE as second argument to
9038 get_addr_stridx.
9039
9040 2016-06-29 Richard Biener <rguenther@suse.de>
9041
9042 PR rtl-optimization/68961
9043 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9044
9045 2016-06-29 Richard Biener <rguenther@suse.de>
9046
9047 PR middle-end/71002
9048 * alias.c (component_uses_parent_alias_set_from): Handle
9049 type punning through union accesses by using the union alias set.
9050 * gimple.c (gimple_get_alias_set): Remove union type punning case.
9051
9052 2016-07-29 Richard Biener <rguenther@suse.de>
9053
9054 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9055 precision not matching mode precision.
9056
9057 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
9058
9059 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9060 pa_output_arg_descriptor.
9061 (call_val_symref_64bit_post_reload): Likewise.
9062 (call_val_powf_64bit_post_reload): Likewise.
9063 (sibcall_internal_symref_64bit): Likewise.
9064 (sibcall_value_internal_symref_64bit): Likewise.
9065
9066 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9067
9068 PR middle-end/71626
9069 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9070 a constant, force its SUBREG_REG into memory or register instead
9071 of whole op1.
9072
9073 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9074
9075 PR target/58655
9076 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9077 * doc/invoke.texi (AVR Options): Document it.
9078
9079 2016-06-28 Walter Lee <walt@tilera.com>
9080
9081 * config/tilegx/linux.h: Do not include arch/icache.h
9082 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9083 * config/tilepro/linux.h: Do not include arch/icache.h
9084 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9085
9086 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9087
9088 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9089 for big-endian BIT_FIELD_REF.
9090
9091 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
9092
9093 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9094 ('size' attribute): Add '128'.
9095 Include power9.md.
9096 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9097 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9098 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9099 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9100 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9101 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9102 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9103 *trunc<mode>df2_odd): Set size attribute to '128'.
9104 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9105 * config/rs6000/power6.md (power6-fp): Include dfp type.
9106 * config/rs6000/power7.md (power7-fp): Likewise.
9107 * config/rs6000/power8.md (power8-fp): Likewise.
9108 * config/rs6000/power9.md: New file.
9109 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9110 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9111 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9112 htmsimple.
9113 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9114 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9115 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9116 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9117 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9118 dfp_dscri_<mode>): Change type attribute to dfp.
9119 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9120 attribute to vecsimple.
9121 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9122 and prefetch streams.
9123 (rs6000_option_override_internal): Remove temporary code setting
9124 tuning to power8. Don't set rs6000_sched_groups for power9.
9125 (last_scheduled_insn): Change to rtx_insn *.
9126 (divide_cnt, vec_load_pendulum): New variables.
9127 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9128 (rs6000_issue_rate): Set issue rate for Power9.
9129 (is_power9_pairable_vec_type): New.
9130 (power9_sched_reorder2): New.
9131 (rs6000_sched_reorder2): Call new function for Power9 specific
9132 reordering.
9133 (insn_must_be_first_in_group): Remove Power9.
9134 (insn_must_be_last_in_group): Likewise.
9135 (force_new_group): Likewise.
9136 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9137 Initialize divide_cnt/vec_load_pendulum.
9138 (_rs6000_sched_context, rs6000_init_sched_context,
9139 rs6000_set_sched_context): Handle context save/restore of new
9140 variables.
9141
9142 2016-06-28 Richard Biener <rguenther@suse.de>
9143
9144 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9145 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9146 COMPONENT_REF operand.
9147 (nonoverlapping_component_refs_p): Likewise.
9148 * stor-layout.c (start_bitfield_representative): Mark
9149 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9150
9151 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9152
9153 * Makefile.in: Don't cat ../stage_current if it does not exist.
9154
9155 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9156 last argument is a bit-field.
9157
9158 PR rtl-optimization/71673
9159 * internal-fn.c (expand_arith_overflow_result_store): Use
9160 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9161 expand_simple_binop.
9162
9163 PR middle-end/66867
9164 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9165 expand_ifn_atomic_compare_exchange): New functions.
9166 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9167 * tree.h (build_call_expr_internal_loc): Rename to ...
9168 (build_call_expr_internal_loc_array): ... this. Fix up type of
9169 last argument.
9170 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9171 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9172 ATOMIC_COMPARE_EXCHANGE result.
9173 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9174 * gimple-fold.h (optimize_atomic_compare_exchange_p,
9175 fold_builtin_atomic_compare_exchange): New prototypes.
9176 * gimple-fold.c (optimize_atomic_compare_exchange_p,
9177 fold_builtin_atomic_compare_exchange): New functions..
9178 * tree-ssa.c (execute_update_addresses_taken): If
9179 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9180 of call when finding addressable vars, and if such var becomes
9181 non-addressable, call fold_builtin_atomic_compare_exchange.
9182
9183 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
9184
9185 PR target/71670
9186 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9187 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9188
9189 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
9190
9191 * config/rs6000/rs6000.md ('type' attribute): Add
9192 veclogical,veccmpfx,vecexts,vecmove insn types.
9193 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9194 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9195 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9196 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9197 *nabs<mode>2_hw): Change type to vecmove.
9198 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9199 *boolcc<mode>3_internal, *eqv<mode>3_internal,
9200 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9201 *ieee_128bit_vsx_abs<mode>2_internal,
9202 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9203 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9204 *ieee128_mtvsrd_32bit): Change type to veclogical.
9205 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9206 *movdi_internal32, *movdi_internal64): Update insn types.
9207 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9208 vsx_extract_<mode>): Change type to veclogical.
9209 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9210 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9211 *vsx_sign_extend_si_v2di): Change type to vecexts.
9212 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9213 type to veclogical.
9214 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9215 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9216 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9217 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9218 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9219 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9220 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9221 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9222 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9223 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9224 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9225 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9226 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9227 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9228 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9229 (ppc7450-vecsimple): Add veclogical, vecmove.
9230 (ppc7450-veccmp): Add veccmpfx.
9231 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9232 vecmove.
9233 (ppc8540_vector_compare): Add veccmpfx.
9234 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9235 * config/rs6000/cell.md (cell-fp): Add fpsimple.
9236 (cell-vecsimple): Add veclogical, vecmove.
9237 (cell-veccmp): Add veccmpfx.
9238 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9239 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9240 veccmpfx.
9241 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9242 * config/rs6000/power4.md (power4-fp): Add fpsimple.
9243 (power4-vecsimple): Add veclogical, vecmove.
9244 (power4-veccmp): Add veccmpfx.
9245 * config/rs6000/power5.md (power5-fp): Add fpsimple.
9246 * config/rs6000/power6.md (power6-fp): Add fpsimple.
9247 (power6-vecsimple): Add veclogical, vecmove.
9248 (power6-veccmp): Add veccmpfx.
9249 * config/rs6000/power7.md (power7-fp): Add fpsimple.
9250 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9251 * config/rs6000/power8.md (power8-fp): Add fpsimple.
9252 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9253 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9254 * config/rs6000/titan.md (titan_fp): Add fpsimple.
9255 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9256 fpsimple.
9257 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9258
9259 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
9260
9261 PR target/71656
9262 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9263 OPTION_MASK_P9_DFORM_VECTOR.
9264 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9265 disable -mpower9-dform-vector when using reload.
9266 (quad_address_p): Remove 'gpr_p' argument and all associated code.
9267 New 'strict' argument. Update all callers. Add strict addressing
9268 support.
9269 (rs6000_legitimate_offset_address_p): Remove call to
9270 virtual_stack_registers_memory_p.
9271 (rs6000_legitimize_reload_address): Add quad address support.
9272 (rs6000_legitimate_address_p): Move call to quad_address_p above
9273 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
9274 to account for new strict usage.
9275 (rs6000_output_move_128bit): Adjust quad_address_p args to account
9276 for new strict usage.
9277 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9278
9279 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
9280
9281 PR target/70902
9282 PR target/71453
9283 PR target/71555
9284 PR target/71596
9285 PR target/71657
9286 * config/i386/i386.c (ix86_spill_class): Disable condition to
9287 always return NO_REGS.
9288
9289 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
9290
9291 * predict.c: Include gimple-pretty-print.h
9292 (predicted_by_loop_heuristics_p): Check also
9293 PRED_LOOP_EXIT_WITH_RECURSION
9294 (predict_loops): Find self recursive calls and use special purpose
9295 predictors for them; dump log about decisions.
9296 (pass_profile::execute): Dump info about #of iterations.
9297 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9298 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9299
9300 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
9301
9302 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9303 output_asm_insn calls and shorten long lines. Output .CALL
9304 argument descriptor using pa_output_arg_descriptor. Add various
9305 inline $$dyncall and other optimizations.
9306 (pa_attr_length_indirect_call): Adjust ordering and lengths.
9307
9308 2016-06-25 Jakub Jelinek <jakub@redhat.com>
9309
9310 PR tree-optimization/71643
9311 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9312 EH preds.
9313
9314 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9315 leak a bitmap if dep_bb is NULL.
9316
9317 PR tree-optimization/71631
9318 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9319 to rewrite_expr_tree even if negate_result, move new_lhs var
9320 declaration and initialization earlier, for powi_result set afterwards
9321 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
9322 if new_lhs != lhs, and don't shadow gsi var.
9323
9324 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9325
9326 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9327 Add in_loop parameter.
9328 (predict_loops): Add loop guard heuristics.
9329 * predict.def (PRED_LOOP_GUARD): New heuristics.
9330
9331 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9332
9333 * predict.c: Include ipa-utils.h
9334 (tree_bb_level_prediction): Predict recursive calls.
9335 (tree_estimate_probability_bb): Skip inexpensive calls for call
9336 predictor.
9337 * predict.def (PRED_RECURSIVE_CALL): New.
9338
9339 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9340
9341 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9342 (BU_FLOAT128_1): Likewise.
9343 (FABSQ): Likewise.
9344 (COPYSIGNQ): Likewise.
9345 (RS6000_BUILTIN_NANQ): Likewise.
9346 (RS6000_BUILTIN_NANSQ): Likewise.
9347 (RS6000_BUILTIN_INFQ): Likewise.
9348 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9349 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9350 (TARGET_FOLD_BUILTIN): New #define.
9351 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9352 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9353 (rs6000_fold_builtin): New target hook implementation, handling
9354 folding of 128-bit NaNs and infinities.
9355 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9356 entries are filled in to avoid problems during bootstrap
9357 self-test; define builtins for 128-bit NaNs and infinities.
9358 (rs6000_opt_mask): Add entry for float128.
9359 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9360 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9361 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9362 (const_str_type_node): New #define.
9363 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9364 to a define_expand that dispatches to either copysign<mode>3_soft
9365 or copysign<mode>3_hard.
9366 (copysign<mode>3_hard): Rename from copysign<mode>3.
9367 (copysign<mode>3_soft): New define_insn.
9368 * doc/extend.texi: Document new builtins.
9369
9370 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9371
9372 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9373 PRIu64 instead of lu.
9374
9375 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
9376
9377 PR debug/71642
9378 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9379 copy the type name.
9380
9381 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9382
9383 PR tree-optimization/71647
9384 * omp-low.c (lower_rec_input_clauses): Convert
9385 omp_clause_aligned_alignment (c) to size_type_node for the
9386 last argument of __builtin_assume_aligned.
9387
9388 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
9389
9390 * configure.ac (calling ___tls_get_addr via GOT): New
9391 assembler/linker check.
9392 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
9393 assembler and linker supports calling ___tls_get_addr via GOT.
9394 Otherise, defined to 0.
9395 * config.in: Regenerated.
9396 * configure: Likewise.
9397 * config/i386/constraints.md (Yb): New constraint.
9398 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9399 (REG_CLASS_NAMES): Likewise.
9400 (REG_CLASS_CONTENTS): Likewise.
9401 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9402 the b constraint with the Yb constraint. Call ___tls_get_addr
9403 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9404 is 1.
9405 (*tls_local_dynamic_base_32_gnu): Likewise.
9406 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9407 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9408 (*tls_local_dynamic_base_64_<mode>): Likewise.
9409
9410 2016-06-24 Martin Liska <mliska@suse.cz>
9411
9412 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
9413 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
9414 few functions.
9415 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
9416 argument to true if the expected number of iterations is
9417 loop-based.
9418
9419 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
9420
9421 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
9422 assemble for 32bit target.
9423 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
9424 and $ld_ix86_gld_32_opt to link for 32bit target.
9425 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
9426 * configure: Regenerate.
9427
9428 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9429
9430 * config/arm/arm.c (int_log2): Delete definition and prototype.
9431 (shift_op): Use exact_log2 instead of int_log2.
9432 (vfp3_const_double_for_fract_bits): Likewise.
9433
9434 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9435
9436 * internal-fn.c (expand_arith_set_overflow): New function.
9437 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
9438 Use it.
9439 (expand_arith_overflow_result_store): Likewise. Handle precision
9440 smaller than mode precision.
9441 * tree-vrp.c (extract_range_basic): For imag part, handle
9442 properly signed 1-bit precision result.
9443 * doc/extend.texi (__builtin_add_overflow): Document that last
9444 argument can't be pointer to enumerated or boolean type.
9445 (__builtin_add_overflow_p): Document that last argument can't
9446 have enumerated or boolean type.
9447
9448 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9449 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9450
9451 * config/rs6000/predicates.md (splat_input_operand): Rework.
9452 Don't allow constants, since the insns that use this predicate
9453 don't support constants. Constants are handled by other insns
9454 that are created via combine. During and after register
9455 allocation, only allow indexed or indirect addresses, and not
9456 general addresses. Only allow modes supported by the hardware.
9457 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
9458 comment. Move check for using VSPLTIS<x> to a common location,
9459 instead of doing it in two different places.
9460
9461 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
9462
9463 * config/i386/driver-i386.c (host_detect_local_cpu): Set
9464 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
9465 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
9466 signature_CENTAUR_ebx.
9467
9468 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
9469
9470 PR target/66232
9471 PR target/67400
9472 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
9473 (as_ix86_gas_32_opt): This.
9474 (ld_ix86_tls_ldm_opt): Renamed to ...
9475 (ld_ix86_gld_32_opt): This.
9476 (R_386_TLS_LDM reloc): Updated.
9477 (R_386_GOT32X reloc): New assembler/linker check.
9478 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
9479 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
9480 defined to 0.
9481 * config.in: Regenerated.
9482 * configure: Likewise.
9483 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
9484 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
9485 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
9486 if ix86_force_load_from_GOT_p returns true.
9487 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
9488 ix86_force_load_from_GOT_p returns true.
9489 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
9490 the external function address via the GOT slot.
9491 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
9492 HAVE_AS_IX86_GOT32X before returning false.
9493 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
9494 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
9495
9496 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
9497
9498 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
9499
9500 2016-06-23 Andi Kleen <ak@linux.intel.com>
9501
9502 * Makefile.in: Regenerate.
9503 * doc/install.texi: Document autoprofiledbootstrap.
9504
9505 2016-06-23 Andi Kleen <ak@linux.intel.com>
9506
9507 * config/i386/gcc-auto-profile: New file.
9508
9509 2016-06-23 Martin Liska <mliska@suse.cz>
9510
9511 PR middle-end/71619
9512 * predict.c (predict_loops): Revert the hunk that was removed
9513 in r237103.
9514
9515 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
9516
9517 * config.gcc: Add support for arm*-*-phoenix* targets.
9518 * config/arm/t-phoenix: New.
9519 * config/phoenix.h: New.
9520
9521 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
9522 H.J. Lu <hongjiu.lu@intel.com>
9523
9524 PR target/67400
9525 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
9526 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
9527 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
9528 ix86_force_load_from_GOT_p returns true.
9529 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
9530 ix86_force_load_from_GOT_p returns true.
9531 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
9532 ix86_force_load_from_GOT_p returns true.
9533 (ix86_expand_move): Load the external function address via the
9534 GOT slot if ix86_force_load_from_GOT_p returns true.
9535 * config/i386/predicates.md (x86_64_immediate_operand): Return
9536 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
9537 (x86_64_zext_immediate_operand): Ditto.
9538
9539 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
9540
9541 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
9542
9543 2016-06-22 David Malcolm <dmalcolm@redhat.com>
9544
9545 PR c/70339
9546 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
9547 * diagnostic.c (pedwarn_at_rich_loc): New function.
9548 * spellcheck.h (best_match::best_match): Add a
9549 "best_distance_so_far" optional parameter.
9550 (best_match::set_best_so_far): New method.
9551 (best_match::get_best_distance): New accessor.
9552 (best_match::get_best_candidate_length): New accessor.
9553
9554 2016-06-22 Nick Clifton <nickc@redhat.com>
9555
9556 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
9557 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
9558 modes are accepted as well.
9559 (ucompare_loc_descriptor): Likewise.
9560 (minmax_loc_descriptor): Likewise.
9561 (clz_loc_descriptor): Likewise.
9562 (popcount_loc_descriptor): Likewise.
9563 (bswap_loc_descriptor): Likewise.
9564 (rotate_loc_descriptor): Likewise.
9565 (mem_loc_descriptor): Likewise.
9566 (loc_descriptor): Likewise.
9567
9568 2016-06-22 David Malcolm <dmalcolm@redhat.com>
9569
9570 * common.opt (fdiagnostics-parseable-fixits): New option.
9571 * diagnostic.c: Include "selftest.h".
9572 (print_escaped_string): New function.
9573 (print_parseable_fixits): New function.
9574 (diagnostic_report_diagnostic): Call print_parseable_fixits.
9575 (selftest::assert_print_escaped_string): New function.
9576 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
9577 (selftest::test_print_escaped_string): New function.
9578 (selftest::test_print_parseable_fixits_none): New function.
9579 (selftest::test_print_parseable_fixits_insert): New function.
9580 (selftest::test_print_parseable_fixits_remove): New function.
9581 (selftest::test_print_parseable_fixits_replace): New function.
9582 (selftest::diagnostic_c_tests): New function.
9583 * diagnostic.h (struct diagnostic_context): Add field
9584 "parseable_fixits_p".
9585 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9586 -fdiagnostics-parseable-fixits.
9587 (-fdiagnostics-parseable-fixits): New option.
9588 * opts.c (common_handle_option): Handle
9589 -fdiagnostics-parseable-fixits.
9590 * selftest-run-tests.c (selftest::run_tests): Call
9591 selftest::diagnostic_c_tests.
9592 * selftest.h (selftest::diagnostic_c_tests): New prototype.
9593
9594 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
9595
9596 PR tree-optimization/71488
9597 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
9598 comparison of boolean vectors.
9599 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
9600 of boolean vectors using bitwise operations.
9601
9602 2016-06-22 Andreas Schwab <schwab@suse.de>
9603
9604 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
9605 Remove declaration.
9606
9607 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
9608
9609 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
9610
9611 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
9612
9613 * config/i386/i386.c (print_reg): Emit an error message on attempt to
9614 print FLAGS_REG.
9615
9616 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9617
9618 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
9619 * config/arm/arm-cores.def (cortex-a73): New entry.
9620 (cortex-a73.cortex-a35): Likewise.
9621 (cortex-a73.cortex-a53): Likewise.
9622 * config/arm/arm-tables.opt: Regenerate.
9623 * config/arm/arm-tune.md: Likewise.
9624 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
9625 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9626 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
9627 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9628 * doc/invoke.texi (ARM Options): Document cortex-a73,
9629 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
9630
9631 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9632
9633 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
9634 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
9635 (cortex-a73.cortex-a35): Likewise.
9636 (cortex-a73.cortex-a53): Likewise.
9637 * config/aarch64/aarch64-tune.md: Regenerate.
9638 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
9639 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
9640 -mcpu and -mtune.
9641
9642 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9643
9644 * configure.ac (gcc_cv_as_compress_debug): Remove
9645 --compress-debug-sections as extra as switch.
9646 Handle gas --compress-debug-sections=type.
9647 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
9648 Handle gld --compress-debug-sections=type.
9649 * configure: Regenerate.
9650
9651 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
9654
9655 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
9656
9657 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
9658 (do_rewrite): likewise.
9659
9660 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9661
9662 * common/config/mep/mep-common.c: Remove.
9663 * config.gcc: Remove mep-* support.
9664 * config/mep/constraints.md: Remove.
9665 * config/mep/default.h: Remove.
9666 * config/mep/intrinsics.h: Remove.
9667 * config/mep/intrinsics.md: Remove.
9668 * config/mep/ivc2-template.h: Remove.
9669 * config/mep/mep-c5.cpu: Remove.
9670 * config/mep/mep-core.cpu: Remove.
9671 * config/mep/mep-default.cpu: Remove.
9672 * config/mep/mep-ext-cop.cpu: Remove.
9673 * config/mep/mep-intrin.h: Remove.
9674 * config/mep/mep-ivc2.cpu: Remove.
9675 * config/mep/mep-pragma.c: Remove.
9676 * config/mep/mep-protos.h: Remove.
9677 * config/mep/mep.c: Remove.
9678 * config/mep/mep.cpu: Remove.
9679 * config/mep/mep.h: Remove.
9680 * config/mep/mep.md: Remove.
9681 * config/mep/mep.opt: Remove.
9682 * config/mep/predicates.md: Remove.
9683 * config/mep/t-mep: Remove.
9684 * doc/install.texi: Remove mep-* documentation.
9685 * doc/md.texi: Likewise.
9686
9687 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9688
9689 * config.gcc: Remove support for avr-rtems.
9690 * config/avr/gen-avr-mmcu-specs.c: Likewise.
9691 * config/avr/rtems.h: Remove.
9692 * config/avr/t-rtems: Remove.
9693
9694 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9695
9696 * config.gcc: Remove m32r-rtems support.
9697 * config/m32r/rtems.h: Remove.
9698
9699 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9700
9701 * config.gcc: Remove h8300-rtems support.
9702 * config/h8300/rtems.h: Remove.
9703 * config/h8300/t-rtems: Remove.
9704
9705 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9706
9707 * config.gcc: Remove support for knetbsd.
9708 * configure.ac: Likewise.
9709 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
9710 * config/knetbsd-gnu.h: Remove.
9711 * configure: Regenerate.
9712
9713 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9714
9715 * config.gcc: Remove support for openbsd 2 and 3.
9716 * config/openbsd-oldgas.h: Remove.
9717
9718 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9719
9720 * config.gcc: Remove interix support.
9721 * config/i386/i386-interix.h: Remove.
9722 * config/i386/interix.opt: Remove.
9723 * config/i386/t-interix: Remove.
9724 * configure: Regenerate.
9725 * configure.ac: Remove interix support.
9726 * doc/install.texi: Remove interix documentation.
9727
9728 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
9729
9730 * config/rs6000/rs6000.h: Add conditional preprocessing directives
9731 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9732 not defined.
9733
9734 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
9735
9736 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9737 they are both PLACEHOLDER_EXPRs.
9738
9739 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9740
9741 * stor-layout.c (layout_type): Move setting complex MODE to
9742 layout_type, instead of setting it ahead of time by the caller.
9743 * tree.c (build_complex_type): Likewise.
9744
9745 2016-06-21 Martin Liska <mliska@suse.cz>
9746
9747 * predict.c (force_edge_cold): Replace imposisble with
9748 impossible.
9749
9750 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
9751
9752 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9753 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9754
9755 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
9756
9757 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9758
9759 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
9760 Ilya Enkovich <ilya.enkovich@intel.com>
9761
9762 PR target/71549
9763 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9764 New member function to convert V1TImode register to SUBREG
9765 TImode in debug insn.
9766 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9767 after changing register mode to V1TImode.
9768
9769 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
9770
9771 * config/aarch64/aarch64-cores.def (vulcan): New core.
9772 * config/aarch64/aarch64-tune.md: Regenerate.
9773 * doc/invoke.texi: Document vulcan as an available option.
9774
9775 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
9776
9777 * cse.c (canon_asm_operands): New function extracted from...
9778 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
9779 either standalone or member of a PARALLEL.
9780
9781 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
9782
9783 PR target/30417
9784 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9785 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9786 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9787
9788 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
9789
9790 PR target/71103
9791 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9792 constant addresses if can_create_pseudo_p.
9793
9794 2016-06-21 Jakub Jelinek <jakub@redhat.com>
9795
9796 PR tree-optimization/71588
9797 * tree-ssa-strlen.c (valid_builtin_call): New function.
9798 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9799 it.
9800
9801 2016-06-20 Jakub Jelinek <jakub@redhat.com>
9802
9803 PR middle-end/71581
9804 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9805 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9806 for conversion of scalar user var to complex type and use the
9807 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
9808 punt.
9809
9810 PR rtl-optimization/71591
9811 * toplev.c (toplev::run_self_tests): If no_backend, complain and
9812 don't run any tests.
9813
9814 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
9815
9816 PR target/71571
9817 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
9818 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
9819 space for PIC with non-v32 and the common non-PIC "jump".
9820
9821 2016-06-20 Jakub Jelinek <jakub@redhat.com>
9822
9823 PR target/71559
9824 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
9825 returned values and add UN*/LTGT/*ORDERED cases with values matching
9826 D operand modifier on vcmp for AVX.
9827
9828 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
9829
9830 * config/aarch64/aarch64.opt
9831 (mpc-relative-literal-loads): Rename internal option name.
9832 * config/aarch64/aarch64.c
9833 (aarch64_nopcrelative_literal_loads): Rename to
9834 aarch64_pcrelative_literal_loads.
9835 (aarch64_expand_mov_immediate): Likewise.
9836 (aarch64_secondary_reload): Likewise.
9837 (aarch64_can_use_per_function_literal_pools_p): Likewise.
9838 (aarch64_override_options_after_change_1): Rename and simplify logic.
9839 (aarch64_classify_symbol): Merge large model checks into switch,
9840 remove pc-relative load check.
9841
9842 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
9843
9844 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
9845 costs relative to the cost of a register move.
9846
9847 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
9848
9849 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
9850 (vcvt_n_f64_u64): Likewise.
9851 (vcvt_n_s64_f64): Likewise.
9852 (vcvt_n_u64_f64): Likewise.
9853 (vcvt_f64_s64): Likewise.
9854 (vrecpe_f64): Likewise.
9855 (vcvt_f64_u64): Likewise.
9856 (vrecps_f64): Likewise.
9857
9858 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
9859
9860 * config/aarch64/aarch64.md
9861 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
9862 iterators.
9863 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
9864 attributes.
9865 * config/aarch64/aarch64-builtins.c
9866 (aarch64_types_binop_uss_qualifiers): Delete.
9867 (TYPES_BINOP_USS): Likewise.
9868 (aarch64_types_binop_sus_qualifiers): Likewise.
9869 (TYPES_BINOP_SUS): Likewise.
9870 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
9871 (TYPES_FCVTIMM_SUS): Likewise.
9872 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
9873 rather than BINOP.
9874 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
9875 (fcvtzs): Use SHIFTIMM rather than BINOP.
9876 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
9877
9878 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
9879
9880 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
9881 costs relative to the cost of a register move.
9882
9883 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
9884
9885 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
9886 Allow scalar/single vector modes to be tieable.
9887
9888 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
9889
9890 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
9891
9892 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9893
9894 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9895 "alignement".
9896 * tree.h (TYPE_ALIGN): Likewise.
9897
9898 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
9899
9900 PR target/71103
9901 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9902
9903 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
9904
9905 * config/avr/avr.c (avr_print_operand): Fix "format not a string
9906 literal" build warnings.
9907 (avr_print_operand_address): Dito.
9908
9909 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
9910
9911 PR target/71375
9912 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9913 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9914
9915 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
9916
9917 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9918
9919 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
9920
9921 PR bootstrap/71435
9922 * reload1.c (reload): Pass 0 to finish_spills when called because
9923 update_eliminables_and_spill returns true and remove did_spill.
9924 (finish_spills): Adjust comment and document GLOBAL parameter.
9925
9926 2016-06-17 DJ Delorie <dj@redhat.com>
9927
9928 PR target/71338
9929 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9930 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9931 (umulqihi3_virt): Likewise.
9932 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9933 (umulqihi3_real): Likewise.
9934
9935 2016-06-17 Martin Liska <mliska@suse.cz>
9936
9937 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9938
9939 2016-06-17 Martin Liska <mliska@suse.cz>
9940
9941 * predict.def: PRED_LOOP_EXIT from 92 to 85.
9942
9943 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
9944
9945 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9946 __FAST_MATH__.
9947 (vaddq_f32): Likewise.
9948 (vmul_f32): Likewise.
9949 (vmulq_f32): Likewise.
9950 (vsub_f32): Likewise.
9951 (vsubq_f32): Likewise.
9952
9953 2016-06-17 Bin Cheng <bin.cheng@arm.com>
9954
9955 PR tree-optimization/71347
9956 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
9957 cost for all uses in group.
9958
9959 2016-06-17 Bin Cheng <bin.cheng@arm.com>
9960
9961 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
9962 insert gimple seq if it's not empty.
9963
9964 2016-06-17 Bin Cheng <bin.cheng@arm.com>
9965
9966 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
9967 member OFFSET.
9968 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
9969 rather than OFFSET.
9970 (comp_dr_with_seg_len_pair): Ditto.
9971 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
9972 struct dr_with_seg_len_pair against DR_OFFSET.
9973 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
9974 DR_OFFSET directly.
9975
9976 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
9977
9978 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
9979
9980 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
9981
9982 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
9983 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
9984 (pa_output_millicode_call): Likewise.
9985 (pa_output_call): Likewise.
9986 (pa_output_indirect_call): Likewise.
9987 (pa_asm_output_mi_thunk): Likewise.
9988
9989 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9990
9991 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
9992
9993 2016-06-16 Martin Liska <mliska@suse.cz>
9994
9995 * predict.c (combine_predictions_for_insn): When we find a first
9996 match predictor, we should consider just predictors with
9997 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
9998 DS theory predictor.
9999 (combine_predictions_for_bb): Likewise.
10000
10001 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10002
10003 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10004 with base of reference to struct.
10005
10006 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10007
10008 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10009
10010 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10011
10012 PR target/71151
10013 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10014 progmem_swtable_section.
10015 (progmem_swtable_section): Remove.
10016 (avr_asm_function_rodata_section): Remove.
10017 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10018 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10019
10020 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
10021
10022 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10023 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10024 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10025 signature_CENTAUR_ebx.
10026 * config/i386/i386.c (ix86_option_override_internal): Add
10027 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10028 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10029 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10030
10031 2016-06-16 Martin Liska <mliska@suse.cz>
10032
10033 * predict.def: Add fortran loop preheader predictor.
10034 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10035 fold IFN_BUILTIN_EXPECT with a known constant argument.
10036
10037 2016-06-16 Martin Liska <mliska@suse.cz>
10038
10039 * predict.def: Add 'Fortran' to display text of all
10040 PRED_FORTRAN_* predictors.
10041
10042 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10043
10044 PR target/71242
10045 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10046 [IA64_BUILTIN_NANSQ]: Ditto.
10047 (ia64_fold_builtin): New function.
10048 (TARGET_FOLD_BUILTIN): New define.
10049 (ia64_init_builtins) Declare const_string_type node.
10050 Add __builtin_nanq and __builtin_nansq builtin functions.
10051 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10052
10053 2016-06-16 Nick Clifton <nickc@redhat.com>
10054
10055 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10056 MSP430_HWMULT_ prefix to enum values.
10057 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10058 * config/msp430/msp430.c: Update use of enum values.
10059 * config/msp430/msp430.md: Likewise.
10060 * config/msp430/msp430.opt: Likewise.
10061
10062 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
10063
10064 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10065 of comparsions in the last iteration.
10066
10067 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10068 Joern Rennecke <joern.rennecke@embecosm.com>
10069
10070 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10071 addresses.
10072 (arc_needs_pcl_p): Add GOTOFFPC.
10073 (arc_legitimate_pic_addr_p): Likewise.
10074 (arc_output_pic_addr_const): Likewise.
10075 (arc_legitimize_pic_address): Generate a pc-relative address using
10076 GOTOFFPC.
10077 (arc_output_libcall): Use @pcl syntax.
10078 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10079 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10080 (*movsi_insn): Use @pcl syntax.
10081 (doloop_begin_i): Likewise.
10082
10083 2016-06-16 Martin Liska <mliska@suse.cz>
10084
10085 * predict.def: Define a new predictor.
10086
10087 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10088
10089 * config/arc/arc.opt (mtp-regno): Update text.
10090
10091 2016-06-16 Renlin Li <renlin.li@arm.com>
10092
10093 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10094
10095 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10096
10097 PR target/71554
10098 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10099 (setcc + and peephole2): Likewise.
10100
10101 PR rtl-optimization/71532
10102 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10103 memory slots.
10104
10105 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10106
10107 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10108 DImode constants with XXSPLTIB in vector registers.
10109 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10110 vsx_extract_<mode>_internal{1,2} into a single insn that handles
10111 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10112 extraction of the element at the top of the register as a scalar
10113 value.
10114 (vsx_extract_<mode>_internal1): Likewise.
10115 (vsx_extract_<mode>_internal2): Likewise.
10116 * config/rs6000/constraints.md (wi constraint): Remove a comment
10117 about DImode not being allowed in Altivec registers.
10118 (wB constraint): New constraint for constants that can be
10119 generated in Altivec registers with VSPLTISW/VUPKHSW.
10120 * config/rs6000/predicates.md (xxspltib_constant_split): Update
10121 comments.
10122 (xxspltib_constant_nosplit): Likewise.
10123 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10124 support for -mupper-regs-di to enable DImode to go into Altivec
10125 registers.
10126 (POWERPC_MASKS): Likewise.
10127 (power7 cpu): Likewise.
10128 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10129 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10130 for DImode being allowed in Altivec registers. Update wi/wj
10131 constraints. Set scalar_in_vmx_p flag.
10132 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10133 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
10134 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10135 (rs6000_opt_masks): Add -mupper-regs-di.
10136 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10137 direct move to use wi and not wj.
10138 (lfiwzx): Likewise.
10139 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10140 alternative.
10141 (floatunssi<mode>2_lfiwzx_mem): Likewise.
10142 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10143 any VSX register, instead of just Altivec registers, to allow
10144 either operand to be an Altivec register or both.
10145 (fixuns_trunc<mode>di2_fctiduz): Likewise.
10146 (movdi_internal32): Add support for -mupper-regs-di. Add support
10147 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
10148 the alternatives and attributes to be lined up to be easier to
10149 read.
10150 (movdi_internal64): Likewise.
10151 (64-bit DImode splitters): Change predicates to only split loading
10152 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
10153 load constants in ISA 3.0 or ISA 2.07 respectively.
10154 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10155 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
10156 mention -mcpu=power9 sets these options.
10157 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10158 wB constraint.
10159
10160 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10161
10162 PR target/67353
10163 * config/avr/avr.c (avr_set_current_function): Warn misspelled
10164 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10165 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10166 by default to warn misspelled interrupt/ signal handler.
10167 * doc/invoke.texi (AVR Options): Document it. Update description
10168 for -nodevicelib option.
10169
10170 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10171
10172 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10173 up parentheses. Use GET_MODE_UNIT_BITSIZE.
10174 (aarch64_<sur>shll2_n<mode>): Likewise.
10175
10176 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
10177
10178 PR middle-end/71529
10179 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10180 DECL_CONTEXT for copied arguments.
10181
10182 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10183
10184 PR tree-optimization/71483
10185 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10186 for slp
10187
10188 2016-06-15 Martin Liska <mliska@suse.cz>
10189
10190 * predict.c (tree_predict_by_opcode): Call predict_edge_def
10191 instead of predict_edge w/o a probability.
10192
10193 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10194
10195 PR tree-optimization/71439
10196 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10197 live PHIs.
10198
10199 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10200
10201 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10202 register subregs in SET_SRC.
10203
10204 2016-06-15 Richard Biener <rguenther@suse.de>
10205
10206 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10207 store restrictions.
10208
10209 2016-06-15 Richard Biener <rguenther@suse.de>
10210
10211 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10212 not consider dependences between accesses that belong to the
10213 same group.
10214 (vect_analyze_data_ref_dependences): Do not analyze read-read
10215 or self-dependences.
10216
10217 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10218
10219 * spellcheck-tree.c: Include spellcheck-tree.h rather than
10220 spellcheck.h.
10221 (find_closest_identifier): Reimplement in terms of
10222 best_match<tree,tree>.
10223 * spellcheck-tree.h: New file.
10224 * spellcheck.c (struct edit_distance_traits<const char *>): New
10225 struct.
10226 (find_closest_string): Reimplement in terms of
10227 best_match<const char *, const char *>.
10228 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10229 overload to spellcheck-tree.h.
10230 (find_closest_identifier): Likewise.
10231 (struct edit_distance_traits<T>): New template.
10232 (class best_match): New class.
10233
10234 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10235
10236 * selftest-run-tests.c (selftest::run_tests): Call
10237 selftest::spellcheck_tree_c_tests.
10238 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10239 * spellcheck-tree.c: Include selftest.h and stringpool.h.
10240 (selftest::test_find_closest_identifier): New function.
10241 (selftest::spellcheck_tree_c_tests): New function.
10242 * spellcheck.c (selftest::test_find_closest_string): Verify that
10243 the order of the vec does not affect the results for this case.
10244 (selftest::test_data): New array.
10245 (selftest::test_metric_conditions): New function.
10246 (selftest::spellcheck_c_tests): Add a test of case-comparison.
10247 Call selftest::test_metric_conditions.
10248
10249 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10250
10251 * config/rs6000/rs6000-builtin.def (commentary): Typo.
10252 (BU_P9_MISC_1): Likewise.
10253 (BU_P9_64BIT_MISC_0): Likewise.
10254 (BU_P9_MISC_0): Likewise.
10255
10256 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10257
10258 * gcc-rich-location.c
10259 (gcc_rich_location::add_fixit_misspelled_id): New method.
10260 * gcc-rich-location.h
10261 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10262
10263 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
10264
10265 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10266 FreeBSD 11 and above.
10267
10268 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
10269
10270 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10271
10272 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10273
10274 * expmed.h: Close parenthesis in "at your option" in copyright
10275 boilerplate.
10276 * lower-subreg.h: Likewise.
10277
10278 2016-06-14 Richard Biener <rguenther@suse.de>
10279
10280 PR middle-end/71526
10281 * genmatch.c (expr::gen_transform): Use in_type for comparisons
10282 if available.
10283
10284 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10285
10286 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10287 New function.
10288 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
10289 mask+shift version.
10290 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10291 New prototype.
10292 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10293 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10294
10295 2016-06-14 Richard Biener <rguenther@suse.de>
10296
10297 PR tree-optimization/71522
10298 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10299 copying into float copying.
10300
10301 2016-06-14 Jakub Jelinek <jakub@redhat.com>
10302
10303 PR tree-optimization/71520
10304 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10305 (replace_block_by): Move user labels from bb1 to bb2.
10306
10307 2016-06-14 Richard Biener <rguenther@suse.de>
10308
10309 PR middle-end/71310
10310 PR bootstrap/71510
10311 * expr.h (get_bit_range): Declare.
10312 * expr.c (get_bit_range): Export.
10313 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10314 word_mode again to constrain the bitfield access.
10315
10316 2016-06-14 Richard Biener <rguenther@suse.de>
10317
10318 PR tree-optimization/71521
10319 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10320 division int_const_binop against zero divisor.
10321
10322 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10323
10324 * config/i386/i386.md (signbittf2): New expander.
10325 * config/i386/sse.md (ptesttf2): New insn pattern.
10326
10327 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10328
10329 PR bootstrap/71481
10330 * input.c (selftest::test_reading_source_line): Avoid reading from
10331 __FILE__ by creating a tempfile with known content and reading
10332 from that instead.
10333
10334 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10335
10336 * pretty-print.c (assert_pp_format_colored): Skip the test if
10337 GCC_COLORS is set.
10338 (test_pp_format): Remove comment about GCC_COLORS.
10339
10340 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10341
10342 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10343 * pretty-print.c (assert_pp_format_va): Add location param and use
10344 it with ASSERT_STREQ_AT.
10345 (assert_pp_format): Add location param and pass it to
10346 assert_pp_format_va.
10347 (assert_pp_format_colored): Likewise.
10348 (ASSERT_PP_FORMAT_1): New.
10349 (ASSERT_PP_FORMAT_2): New.
10350 (ASSERT_PP_FORMAT_3): New.
10351 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10352 explicitly, or implicitly via the above macros.
10353 * selftest.c (selftest::pass): Use a selftest::location rather
10354 than file and line.
10355 (selftest::fail): Likewise. Print the function name.
10356 (selftest::fail_formatted): Likewise.
10357 (selftest::assert_streq): Use a selftest::location rather than
10358 file and line.
10359 * selftest.h (selftest::location): New struct.
10360 (SELFTEST_LOCATION): New macro.
10361 (selftest::pass): Accept a const location & rather than file
10362 and line.
10363 (selftest::fail): Likewise.
10364 (selftest::fail_formatted): Likewise.
10365 (selftest::assert_streq): Likewise.
10366 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10367 (ASSERT_FALSE): Likewise.
10368 (ASSERT_EQ): Likewise.
10369 (ASSERT_NE): Likewise.
10370 (ASSERT_STREQ): Likewise.
10371 (ASSERT_PRED1): Likewise.
10372 (ASSERT_STREQ_AT): New macro.
10373
10374 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10375
10376 * selftest.c (selftest::fail_formatted): New function.
10377 (selftest::assert_streq): New function.
10378 * selftest.h (selftests::fail_formatted): New decl.
10379 (selftest::assert_streq): New decl.
10380 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10381
10382 2016-06-13 Jeff Law <law@redhat.com>
10383
10384 PR tree-optimization/71403
10385 * tree-ssa-threadbackward.c
10386 (convert_and_register_jump_thread_path): No longer accept reference
10387 to path. Do not pop items off the path anymore.
10388 (fsm_find_control_statement_thread_paths): Do not allow threading
10389 to a deeper loop nest. Pop the last item off the path here rather
10390 than in convert_and_register_jump_thread_path.
10391
10392 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10393 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
10394
10395 [AArch64] Emit division using the Newton series
10396
10397 * config/aarch64/aarch64-protos.h
10398 (cpu_approx_modes): Add new member "division".
10399 (aarch64_emit_approx_div): Declare new function.
10400 * config/aarch64/aarch64.c
10401 (generic_approx_modes): New member "division".
10402 (exynosm1_approx_modes): Likewise.
10403 (xgene1_approx_modes): Likewise.
10404 (aarch64_emit_approx_div): Define new function.
10405 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10406 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10407 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10408 * doc/invoke.texi (-mlow-precision-div): Describe new option.
10409
10410 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10411 Wilco Dijkstra <wilco.dijkstra@arm.com>
10412
10413 [AArch64] Emit square root using the Newton series
10414
10415 * config/aarch64/aarch64-protos.h
10416 (aarch64_emit_approx_rsqrt): Replace with new function
10417 "aarch64_emit_approx_sqrt".
10418 (cpu_approx_modes): New member "sqrt".
10419 * config/aarch64/aarch64.c
10420 (generic_approx_modes): New member "sqrt".
10421 (exynosm1_approx_modes): Likewise.
10422 (xgene1_approx_modes): Likewise.
10423 (aarch64_emit_approx_rsqrt): Replace with new function
10424 "aarch64_emit_approx_sqrt".
10425 (aarch64_override_options_after_change_1): Handle new option.
10426 * config/aarch64/aarch64-simd.md
10427 (rsqrt<mode>2): Use new function instead.
10428 (sqrt<mode>2): New expansion and insn definitions.
10429 * config/aarch64/aarch64.md: Likewise.
10430 * config/aarch64/aarch64.opt
10431 (mlow-precision-sqrt): Add new option description.
10432 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
10433
10434 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10435
10436 [AArch64] Add more choices for the reciprocal square root approximation
10437
10438 Allow a target to prefer such operation depending on the operation mode.
10439
10440 * config/aarch64/aarch64-protos.h
10441 (AARCH64_APPROX_MODE): New macro.
10442 (AARCH64_APPROX_{NONE,ALL}): Likewise.
10443 (cpu_approx_modes): New structure.
10444 (tune_params): New member "approx_modes".
10445 * config/aarch64/aarch64-tuning-flags.def
10446 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
10447 * config/aarch64/aarch64.c
10448 (generic_approx_modes): New core "cpu_approx_modes" structure.
10449 (exynosm1_approx_modes): Likewise.
10450 (xgene1_approx_modes): Likewise.
10451 (generic_tunings): New member "approx_modes".
10452 (cortexa35_tunings): Likewise.
10453 (cortexa53_tunings): Likewise.
10454 (cortexa57_tunings): Likewise.
10455 (cortexa72_tunings): Likewise.
10456 (exynosm1_tunings): Likewise.
10457 (thunderx_tunings): Likewise.
10458 (xgene1_tunings): Likewise.
10459 (use_rsqrt_p): New argument for the mode and use new member from
10460 "tune_params".
10461 (aarch64_builtin_reciprocal): Devise mode from builtin.
10462 (aarch64_optab_supported_p): New argument for the mode.
10463 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
10464
10465 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
10466
10467 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
10468 RS6000_BTM_MODULO flag into the set of flags that are considered
10469 to be part of the common configuration.
10470
10471 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
10472
10473 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
10474 difference unsigned.
10475 (vec_absdb): New macro for vector absolute difference unsigned
10476 byte.
10477 (vec_absdh): New macro for vector absolute difference unsigned
10478 half-word.
10479 (vec_absdw): New macro for vector absolute difference unsigned word.
10480 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
10481 (vadu<mode>3): New insn.
10482 (*p9_vadu<mode>3): New insn.
10483 * config/rs6000/rs6000-builtin.def (vadub): New built-in
10484 definition.
10485 (vaduh): New built-in definition.
10486 (vaduw): New built-in definition.
10487 (vadu): New overloaded built-in definition.
10488 (vadub): New overloaded built-in definition.
10489 (vaduh): New overloaded built-in definition.
10490 (vaduw): New overloaded built-in definition.
10491 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10492 overloaded vector absolute difference unsigned functions.
10493 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10494 the ISA 3.0 vector absolute difference unsigned built-in functions.
10495
10496 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
10497
10498 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
10499 update shared_lookup_references only once after changing operands.
10500
10501 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
10502
10503 PR middle-end/71373
10504 * tree-nested.c (convert_nonlocal_omp_clauses)
10505 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
10506
10507 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
10508 * tree.def (CASE_LABEL_EXPR): Likewise.
10509
10510 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10511
10512 PR bootstrap/71481
10513 * input.c (test_builtins): Fix an assertion.
10514
10515 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10516
10517 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
10518 (paritysi2): Ditto.
10519 (isinfxf2): Ditto.
10520 (isinf<mode>2): Ditto.
10521
10522 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10523
10524 * ggc-tests.c (test_finalization): Only test need_finalization_p
10525 for GCC_VERSION >= 4003.
10526
10527 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10528
10529 * config/s390/vecintrin.h: Fix file description in comment.
10530
10531 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10532
10533 * config/s390/s390-builtin-types.def: Change builtin type naming
10534 scheme to match builtin-types.def.
10535
10536 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
10537
10538 * fold-const.c (optimize_minmax_comparison): Remove.
10539 (fold_comparison): Remove call to the above.
10540 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
10541 New transformations.
10542
10543 2016-06-13 Alan Hayward <alan.hayward@arm.com>
10544
10545 PR tree-optimization/71416
10546 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
10547 multiple entries
10548
10549 2016-06-13 Martin Liska <mliska@suse.cz>
10550
10551 * predict.c (enum predictor_reason): Prefix enum with REASON_.
10552 (combine_predictions_for_insn): Likewise.
10553 (prune_predictions_for_bb): Likewise.
10554 (combine_predictions_for_bb): Likewise.
10555
10556 2016-06-13 Richard Biener <rguenther@suse.de>
10557
10558 PR tree-optimization/71505
10559 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
10560 assert match comment.
10561
10562 2016-06-13 Marek Polacek <polacek@redhat.com>
10563
10564 PR middle-end/71476
10565 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
10566 gimplify_switch_expr.
10567 (warn_switch_unreachable_r): New function.
10568
10569 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10570
10571 PR target/71379
10572 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
10573 one.
10574
10575 2016-06-13 Richard Biener <rguenther@suse.de>
10576
10577 PR middle-end/64516
10578 * fold-const.c (fold_unary_loc): Preserve alignment when
10579 folding a VIEW_CONVERT_EXPR into a MEM_REF.
10580
10581 2016-06-13 Martin Liska <mliska@suse.cz>
10582
10583 PR sanitizer/71458
10584 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
10585 w/ -fsanitize=bounds.
10586
10587 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
10588
10589 * config/i386/i386.c (ix86_init_builtins): Calculate
10590 FLOAT128_FTYPE_CONST_STRING function type only once.
10591 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
10592 built-in functions are available for x86-32 and x86-64 targets.
10593
10594 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
10595
10596 PR target/71241
10597 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
10598 New primitive type.
10599 (FLOAT128_FTYPE_CONST_STRING): New function type.
10600 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
10601 [IX86_BUILTIN_NANSQ]: Ditto.
10602 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10603 (ix86_init_builtin_types): Declare const_string_type_node.
10604 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
10605 builtin functions.
10606 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10607 * doc/extend.texi (x86 Built-in Functions): Document
10608 __builtin_nanq and __builtin_nansq.
10609
10610 2016-06-11 Jiong Wang <jiong.wang@arm.com>
10611
10612 PR target/71061
10613 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
10614 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
10615 length for pop patterns.
10616 (arm_attr_length_push_multi): Update comments.
10617 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
10618 attribute.
10619 (*pop_multiple_with_writeback_and_return): Likewise.
10620 (*pop_multiple_with_return): Likewise.
10621
10622 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
10623
10624 PR middle-end/71310
10625 * fold-const.c (optimize_bit_field_compare): Don't try to use
10626 word_mode unconditionally for reading the bit field, look at
10627 DECL_BIT_FIELD_REPRESENTATIVE instead.
10628
10629 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10630
10631 PR middle-end/71478
10632 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
10633 vector integer type.
10634
10635 2016-06-10 Jakub Jelinek <jakub@redhat.com>
10636
10637 PR middle-end/71494
10638 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
10639 without LABEL_DECL, set *handled_ops_p to false instead of true.
10640
10641 2016-06-10 Martin Sebor <msebor@redhat.com>
10642
10643 PR c/71392
10644 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
10645 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
10646 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
10647 them.
10648 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
10649 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
10650 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
10651 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
10652 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
10653 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
10654 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
10655 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
10656
10657 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10658
10659 * config/arm/arm.h (pool_vector_label,
10660 return_used_this_function): Remove.
10661
10662 2016-06-10 Jeff Law <law@redhat.com>
10663
10664 PR tree-optimization/71335
10665 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
10666 zero length paths here.
10667 (convert_and_register_jump_thread_path): Remove hacks related to
10668 duplicated blocks in the jump thread path.
10669 (fsm_find_control_statement_thread_paths): Avoid putting the same
10670 block on the thread path twice, but ensure the thread path is
10671 unchanged from the caller's point of view.
10672
10673 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
10674
10675 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
10676 * predict.def (PRED_LOOP_BRANCH): Remove.
10677
10678 2016-06-10 David Malcolm <dmalcolm@redhat.com>
10679
10680 * Makefile.in (OBJS): Add ggc-tests.o.
10681 (GTFILES): Add ggc-tests.c.
10682 * ggc-tests.c: New file.
10683 * selftest-run-tests.c (selftest::run_tests): Call
10684 selftest::ggc_tests_c_tests.
10685 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
10686
10687 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
10688
10689 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
10690
10691 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
10692
10693 PR sanitizer/71480
10694 * varasm.c (place_block_symbol): Adjust alignment for asan protected
10695 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
10696
10697 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
10698
10699 * profile.c: Include cfgloop.h.
10700 (branch_prob): Compute estimated number of iterations.
10701 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
10702 recompute estimate number of iterations from profile.
10703
10704 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10705
10706 PR inline-asm/68843
10707 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
10708 must be grouped on top of stack. Don't force early clobber
10709 on ordinary reg outputs.
10710
10711 2016-06-10 Richard Biener <rguenther@suse.de>
10712
10713 * targhooks.c (default_builtin_vectorization_cost): Adjust
10714 vec_construct cost.
10715
10716 2016-06-10 Richard Biener <rguenther@suse.de>
10717
10718 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
10719 to fold the RHS to a constant if possible.
10720
10721 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10722
10723 PR middle-end/71373
10724 * tree-nested.c (convert_nonlocal_omp_clauses)
10725 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
10726 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10727 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
10728
10729 * gimplify.c (gimplify_adjust_omp_clauses): Discard
10730 OMP_CLAUSE_TILE.
10731 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10732
10733 * omp-low.c (scan_sharing_clauses): Don't expect
10734 OMP_CLAUSE__CACHE_.
10735
10736 2016-06-10 Alan Hayward <alan.hayward@arm.com>
10737
10738 PR tree-optimization/71407
10739 PR tree-optimization/71416
10740 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10741 BIT_FIELD_REF type.
10742
10743 2016-06-10 Richard Biener <rguenther@suse.de>
10744
10745 PR middle-end/71477
10746 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10747
10748 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
10749
10750 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10751
10752 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
10753 Jiong Wang <jiong.wang@arm.com>
10754
10755 PR rtl-optimization/70751
10756 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10757 spilled into memory.
10758
10759 2016-06-09 Jonathan Yong <10walls@gmail.com>
10760
10761 Revert:
10762 2015-09-21 Jonathan Yong <10walls@gmail.com>
10763
10764 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10765 sysroot/usr/lib/32api for additional win32 libraries,
10766 fixes failing Cygwin bootstrapping.
10767
10768 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
10769
10770 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10771 Delete.
10772
10773 2016-06-09 David Malcolm <dmalcolm@redhat.com>
10774
10775 PR bootstrap/71471
10776 * pretty-print.c (pp_indent): Specify that %p is printed in a
10777 host-dependent manner.
10778 (test_pp_format): Remove the test for %p.
10779
10780 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
10781
10782 * config/mips/mips.c (mips_output_jump): Fix formatting.
10783
10784 2016-06-09 Richard Biener <rguenther@suse.de>
10785
10786 PR tree-optimization/71462
10787 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10788 removed blocks.
10789
10790 2016-06-09 Martin Liska <mliska@suse.cz>
10791
10792 * predict.c (dump_prediction): Add new argument.
10793 (enum predictor_reason): New enum.
10794 (struct predictor_hash): New struct.
10795 (predictor_hash::hash): New function.
10796 (predictor_hash::equal): Likewise.
10797 (not_removed_prediction_p): New function.
10798 (prune_predictions_for_bb): Likewise.
10799 (combine_predictions_for_bb): Prune predictions.
10800
10801 2016-06-09 Martin Liska <mliska@suse.cz>
10802
10803 * predict.c (filter_predictions): New function.
10804 (remove_predictions_associated_with_edge): Use the filter
10805 function.
10806 (equal_edge_p): New function.
10807
10808 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
10809
10810 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10811 Correct usage of @samp vs @option, add @samp where appropriate.
10812 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10813 Add armv6s-m and document it, as it is no official ARM name.
10814
10815 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10816
10817 * ifcvt.c (struct noce_if_info): Add transform_name field.
10818 (noce_try_move): Set if_info->transform_name to the function name.
10819 (noce_try_ifelse_collapse): Likewise.
10820 (noce_try_store_flag): Likewise.
10821 (noce_try_inverse_constants): Likewise.
10822 (noce_try_store_flag_constants): Likewise.
10823 (noce_try_addcc): Likewise.
10824 (noce_try_store_flag_mask): Likewise.
10825 (noce_try_cmove): Likewise.
10826 (noce_try_cmove_arith): Likewise.
10827 (noce_try_minmax): Likewise.
10828 (noce_try_abs): Likewise.
10829 (noce_try_sign_mask): Likewise.
10830 (noce_try_bitop): Likewise.
10831 (noce_convert_multiple_sets): Likewise.
10832 (noce_process_if_block): Print if_info->transform_name to
10833 dump_file if transformation succeeded.
10834
10835 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10836
10837 * config/arm/cortex-a57.md (cortex_a57_alu):
10838 Handle csel type.
10839
10840 2016-06-08 Martin Sebor <msebor@redhat.com>
10841 Jakub Jelinek <jakub@redhat.com>
10842
10843 PR c++/70507
10844 PR c/68120
10845 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
10846 BUILT_IN_MUL_OVERFLOW_P): New builtins.
10847 * builtins.c: Include gimple-fold.h.
10848 (fold_builtin_arith_overflow): Handle
10849 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
10850 (fold_builtin_3): Likewise.
10851 * doc/extend.texi (Integer Overflow Builtins): Document
10852 __builtin_{add,sub,mul}_overflow_p.
10853
10854 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
10855
10856 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
10857 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
10858
10859 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
10860
10861 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
10862 Rewrite, looking one level down for records and arrays.
10863
10864 2016-06-08 David Malcolm <dmalcolm@redhat.com>
10865
10866 * pretty-print.c: Include "selftest.h".
10867 (pp_format): Fix comment.
10868 (identifier_to_locale): Likewise.
10869 (selftest::test_basic_printing): New function.
10870 (selftest::assert_pp_format): New function.
10871 (selftest::test_pp_format): New function.
10872 (selftest::pretty_print_c_tests): New function.
10873 * selftest-run-tests.c (selftest::run_tests): Call
10874 selftest::pretty_print_c_tests.
10875 * selftest.h (pretty_print_c_tests): New declaration.
10876
10877 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
10878
10879 * invoke.texi (max-loop-headers-insns): Document.
10880 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
10881 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
10882 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
10883
10884 2016-06-08 Richard Biener <rguenther@suse.de>
10885
10886 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
10887 on strided SLP loads and fall back to scalar loads in case
10888 we can't chunk them.
10889
10890 2016-06-08 Richard Biener <rguenther@suse.de>
10891
10892 PR tree-optimization/71452
10893 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10894 type used for the SSA rewrite has enough precision to cover
10895 the dynamic type of the location.
10896
10897 2016-06-08 Jakub Jelinek <jakub@redhat.com>
10898 Richard Biener <rguenther@suse.de>
10899
10900 PR c++/71448
10901 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10902 the same as DECL_P (base0) for indirect_base0. Use equality_code
10903 in one further place.
10904
10905 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
10906
10907 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10908 to one word if the field is known to overlap other words.
10909 (extract_bit_field_1): Likewise.
10910 (store_split_bit_field): Remove compensating code.
10911 (extract_split_bit_field): Likewise.
10912
10913 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
10914
10915 PR debug/71432
10916 PR ada/71413
10917 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10918
10919 2016-06-08 Jiong Wang <jiong.wang@arm.com>
10920
10921 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10922 VDQF.
10923 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10924 (arch64_addpv4sf): Delete.
10925 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10926 "gen_aarch64_addpv4sf".
10927 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
10928 builtin.
10929 (vpadds_f32): Likewise.
10930 (vpaddq_f32): Likewise.
10931 (vpaddq_f64): Likewise.
10932
10933 2016-06-08 Jiong Wang <jiong.wang@arm.com>
10934
10935 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10936 VALLF.
10937 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10938 to VALLF. Rename to "fabd<mode>3".
10939 "*fabd_scalar<mode>3): Delete.
10940 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10941 Use builtin.
10942 (vabdd_f64): Likewise.
10943 (vabd_f32): Likewise.
10944 (vabd_f64): Likewise.
10945 (vabdq_f32): Likewise.
10946 (vabdq_f64): Likewise.
10947
10948 2016-06-08 Jiong Wang <jiong.wang@arm.com>
10949
10950 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10951 VALLF.
10952 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10953 "aarch64_rsqrts<mode>".
10954 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
10955 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
10956 builtin.
10957 (vrsqrtsd_f64): Likewise.
10958 (vrsqrts_f32): Likewise.
10959 (vrsqrts_f64): Likewise.
10960 (vrsqrtsq_f32): Likewise.
10961 (vrsqrtsq_f64): Likewise.
10962
10963 2016-06-08 Jiong Wang <jiong.wang@arm.com>
10964
10965 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
10966 VALLF.
10967 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
10968 "aarch64_rsqrte<mode>".
10969 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
10970 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
10971 builtin.
10972 (vrsqrted_f64): Likewise.
10973 (vrsqrte_f32): Likewise.
10974 (vrsqrte_f64): Likewise.
10975 (vrsqrteq_f32): Likewise.
10976 (vrsqrteq_f64): Likewise.
10977
10978 2016-06-08 Jiong Wang <jiong.wang@arm.com>
10979
10980 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
10981 (ucvtf): Likewise.
10982 (fcvtzs): Likewise.
10983 (fcvtzu): Likewise.
10984 * config/aarch64/aarch64-simd.md
10985 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
10986 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
10987 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
10988 Use builtin.
10989 (vcvt_n_f32_u32): Likewise.
10990 (vcvt_n_s32_f32): Likewise.
10991 (vcvt_n_u32_f32): Likewise.
10992 (vcvtq_n_f32_s32): Likewise.
10993 (vcvtq_n_f32_u32): Likewise.
10994 (vcvtq_n_f64_s64): Likewise.
10995 (vcvtq_n_f64_u64): Likewise.
10996 (vcvtq_n_s32_f32): Likewise.
10997 (vcvtq_n_s64_f64): Likewise.
10998 (vcvtq_n_u32_f32): Likewise.
10999 (vcvtq_n_u64_f64): Likewise.
11000 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11001 (VSDQ_SDI): Likewise.
11002 (fcvt_target): Support V4DI, V4SI and V2SI.
11003 (FCVT_TARGET): Likewise.
11004
11005 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11006
11007 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11008 (TYPES_BINOP_SUS): Likewise.
11009 (aarch64_simd_builtin_data): Update include file name.
11010 (aarch64_builtins): Likewise.
11011 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11012 for conversion between scalar float-point and fixed-point.
11013 (ucvtf): Likewise.
11014 (fcvtzs): Likewise.
11015 (fcvtzu): Likewise.
11016 * config/aarch64/aarch64.md
11017 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11018 pattern for conversion between scalar float to fixed-pointer.
11019 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11020 (UNSPEC_FCVTZS): New UNSPEC enumeration.
11021 (UNSPEC_FCVTZU): Likewise.
11022 (UNSPEC_SCVTF): Likewise.
11023 (UNSPEC_UCVTF): Likewise.
11024 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11025 Use builtin.
11026 (vcvtd_n_f64_u64): Likewise.
11027 (vcvtd_n_s64_f64): Likewise.
11028 (vcvtd_n_u64_f64): Likewise.
11029 (vcvtd_n_f32_s32): Likewise.
11030 (vcvts_n_f32_u32): Likewise.
11031 (vcvtd_n_s32_f32): Likewise.
11032 (vcvts_n_u32_f32): Likewise.
11033 * config/aarch64/iterators.md (fcvt_target): Support integer to float
11034 mapping.
11035 (FCVT_TARGET): Likewise.
11036 (FCVT_FIXED2F): New iterator.
11037 (FCVT_F2FIXED): Likewise.
11038 (fcvt_fixed_insn): New define_int_attr.
11039
11040 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11041
11042 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11043 some statements was removed.
11044
11045 2016-06-08 Alan Hayward <alan.hayward@arm.com>
11046
11047 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11048 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11049 (vect_can_advance_ivs_p): likewise.
11050 (vect_update_ivs_after_vectorizer): likewise.
11051 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11052 (vect_analyze_scalar_cycles_1): likewise.
11053 (vect_analyze_loop_operations): likewise.
11054 (report_vect_op): likewise.
11055 (vect_is_slp_reduction): likewise.
11056 (vect_is_simple_reduction): likewise.
11057 (get_initial_def_for_induction): likewise.
11058 (vect_transform_loop): likewise.
11059 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11060 (vect_recog_sad_pattern): likewise.
11061 (vect_recog_widen_sum_pattern): likewise.
11062 (vect_recog_widening_pattern): likewise.
11063 (vect_recog_divmod_pattern): likewise.
11064 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11065 (vect_analyze_slp_instance): likewise.
11066 (vect_transform_slp_perm_load): likewise.
11067 (vect_schedule_slp_instance): likewise.
11068
11069 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11070
11071 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11072 (return_prediction): PRED_CONST_RETURN predict return as not taken.
11073 * predict.def (PRED_CONTINUE): Change hitrate 50->67
11074 (PRED_LOOP_BRANCH): Document predictor as broken.
11075 (PRED_LOOP_EXIT): Change hitrate 91->92.
11076 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11077 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11078 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11079 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11080 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11081 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11082 (PRED_CALL): Chane hitrate 71->67.
11083 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11084 (PRED_GOTO): Document as unused right now.
11085 (PRED_CONST_RETURN): Change hitrate 67->69
11086 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11087 (PRED_NULL_RETURN): Change hitrate 91->90.
11088 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11089 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11090 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11091
11092 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
11093
11094 * config/rs6000/altivec.h: Add __builtin_vec_mul.
11095 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11096 special case Altivec builtin.
11097 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11098 VSX_BUILTIN_VEC_MUL (replaced with special case code).
11099 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11100 code for ALTIVEC_BUILTIN_VEC_MUL.
11101 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11102 for __builtin_vec_mul.
11103
11104 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
11105
11106 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11107 -mno-htm.
11108
11109 2016-06-07 David Malcolm <dmalcolm@redhat.com>
11110
11111 * spellcheck.c (selftest::test_find_closest_string): New function.
11112 (spellcheck_c_tests): Call the above.
11113
11114 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11115
11116 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11117
11118 2016-06-07 Jakub Jelinek <jakub@redhat.com>
11119
11120 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11121 Yv=Yv,C alternatives.
11122
11123 2016-06-07 Richard Biener <rguenther@suse.de>
11124
11125 PR c/61564
11126 * common.opt (ffast-math): Make Optimization.
11127
11128 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
11129 Prachi Godbole <prachi.godbole@imgtec.com>
11130
11131 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11132 `fabs' and `fneg' type attributes.
11133 (p5600_fpu_fabs): Add `fmove' to the comment.
11134
11135 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11136
11137 * gimple.c: Include builtins.h
11138 (gimple_inexpensive_call_p): New function.
11139 * gimple.h (gimple_inexpensive_call_p): Declare.
11140 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11141 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11142 fix formatting.
11143
11144 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
11145
11146 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11147 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11148 warning_at_rich_loc, warning_n, pedwarn, permerror,
11149 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11150 sorry, fatal_error, internal_error, internal_error_no_backtrace):
11151 Use the above.
11152
11153 2016-06-07 Richard Biener <rguenther@suse.de>
11154
11155 PR tree-optimization/71428
11156 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11157 BIT_FIELD_REF op vs. load.
11158
11159 2016-06-07 Richard Biener <rguenther@suse.de>
11160
11161 PR middle-end/71423
11162 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11163 for signed ops.
11164
11165 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11166
11167 * config/pa/pa.md (call): Generate indirect long calls to non-local
11168 functions on TARGET_64BIT.
11169 (call_value): Likewise.
11170
11171 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11172
11173 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11174 pattern and subsequent splitters.
11175 (call_val_reg_64bit_post_reload): Likewise.
11176
11177 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11178
11179 PR middle-end/71408
11180 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11181 propagate_op_to_single_use.
11182
11183 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11184
11185 PR middle-end/71281
11186 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11187
11188 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
11189
11190 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11191 (enum x86_dirflag_state): New enum.
11192 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11193 (machine_function): Remove needs_cld.
11194 (ix86_current_function_needs_cld): Remove.
11195 * config/i386/i386.c (ix86_set_func_type): Set
11196 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11197 (ix86_expand_prologue): Do not emit CLD here.
11198 (ix86_dirflag_mode_needed): New function.
11199 (ix86_dirflag_mode_entry): Ditto.
11200 (ix86_mode_needed): Handle X86_DIRFLAG entity.
11201 (ix86_mode_after): Ditto.
11202 (ix86_mode_entry): Ditto.
11203 (ix86_mode_exit): Ditto.
11204 (ix86_emit_mode_set): Ditto.
11205 * config/i386/i386.md (strmov_singleop): Set
11206 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11207 Do not set ix86_current_function_needs_cld.
11208 (rep_mov): Ditto.
11209 (strset_singleop): Ditto.
11210 (rep_stos): Ditto.
11211 (cmpstrnqi_nz_1): Ditto.
11212 (cmpstrnqi_1): Ditto.
11213 (strlenqi_1): Ditto.
11214
11215 2016-06-06 Jakub Jelinek <jakub@redhat.com>
11216
11217 PR tree-optimization/71259
11218 * tree-vect-slp.c (vect_get_constant_vectors): For
11219 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11220 one for constant op, and use COND_EXPR for non-constant.
11221
11222 2016-06-06 David Malcolm <dmalcolm@redhat.com>
11223
11224 * Makefile.in (OBJS): Add function-tests.o,
11225 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11226 selftest-run-tests.o.
11227 (OBJS-libcommon): Add selftest.o.
11228 (OBJS-libcommon-target): Add selftest.o.
11229 (all.internal): Add "selftest".
11230 (all.cross): Likewise.
11231 (selftest): New phony target.
11232 (s-selftest): New target.
11233 (selftest-gdb): New phony target.
11234 (COLLECT2_OBJS): Add selftest.o.
11235 * bitmap.c: Include "selftest.h".
11236 (selftest::test_gc_alloc): New function.
11237 (selftest::test_set_range): New function.
11238 (selftest::test_clear_bit_in_middle): New function.
11239 (selftest::test_copying): New function.
11240 (selftest::test_bitmap_single_bit_set_p): New function.
11241 (selftest::bitmap_c_tests): New function.
11242 * common.opt (fself-test): New.
11243 * diagnostic-show-locus.c: Include "selftest.h".
11244 (make_range): New function.
11245 (test_range_contains_point_for_single_point): New function.
11246 (test_range_contains_point_for_single_line): New function.
11247 (test_range_contains_point_for_multiple_lines): New function.
11248 (assert_eq): New function.
11249 (test_get_line_width_without_trailing_whitespace): New function.
11250 (selftest::diagnostic_show_locus_c_tests): New function.
11251 * et-forest.c: Include "selftest.h".
11252 (selftest::test_single_node): New function.
11253 (selftest::test_simple_tree): New function.
11254 (selftest::test_disconnected_nodes): New function.
11255 (selftest::et_forest_c_tests): New function.
11256 * fold-const.c: Include "selftest.h".
11257 (selftest::assert_binop_folds_to_const): New function.
11258 (selftest::assert_binop_folds_to_nonlvalue): New function.
11259 (selftest::test_arithmetic_folding): New function.
11260 (selftest::fold_const_c_tests): New function.
11261 * function-tests.c: New file.
11262 * gimple.c: Include "selftest.h".
11263 Include "gimple-pretty-print.h".
11264 (selftest::verify_gimple_pp): New function.
11265 (selftest::test_assign_single): New function.
11266 (selftest::test_assign_binop): New function.
11267 (selftest::test_nop_stmt): New function.
11268 (selftest::test_return_stmt): New function.
11269 (selftest::test_return_without_value): New function.
11270 (selftest::gimple_c_tests): New function.
11271 * hash-map-tests.c: New file.
11272 * hash-set-tests.c: New file.
11273 * input.c: Include "selftest.h".
11274 (selftest::assert_loceq): New function.
11275 (selftest::test_accessing_ordinary_linemaps): New function.
11276 (selftest::test_unknown_location): New function.
11277 (selftest::test_builtins): New function.
11278 (selftest::test_reading_source_line): New function.
11279 (selftest::input_c_tests): New function.
11280 * rtl-tests.c: New file.
11281 * selftest-run-tests.c: New file.
11282 * selftest.c: New file.
11283 * selftest.h: New file.
11284 * spellcheck.c: Include "selftest.h".
11285 (selftest::levenshtein_distance_unit_test_oneway): New function,
11286 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11287 (selftest::levenshtein_distance_unit_test): Likewise.
11288 (selftest::spellcheck_c_tests): Likewise.
11289 * toplev.c: Include selftest.h.
11290 (toplev::run_self_tests): New.
11291 (toplev::main): Handle -fself-test.
11292 * toplev.h (toplev::run_self_tests): New.
11293 * tree.c: Include "selftest.h".
11294 (selftest::test_integer_constants): New function.
11295 (selftest::test_identifiers): New function.
11296 (selftest::test_labels): New function.
11297 (selftest::tree_c_tests): New function.
11298 * tree-cfg.c: Include "selftest.h".
11299 (selftest::push_fndecl): New function.
11300 (selftest::test_linear_chain): New function.
11301 (selftest::test_diamond): New function.
11302 (selftest::test_fully_connected): New function.
11303 (selftest::tree_cfg_c_tests): New function.
11304 * vec.c: Include "selftest.h".
11305 (selftest::safe_push_range): New function.
11306 (selftest::test_quick_push): New function.
11307 (selftest::test_safe_push): New function.
11308 (selftest::test_truncate): New function.
11309 (selftest::test_safe_grow_cleared): New function.
11310 (selftest::test_pop): New function.
11311 (selftest::test_safe_insert): New function.
11312 (selftest::test_ordered_remove): New function.
11313 (selftest::test_unordered_remove): New function.
11314 (selftest::test_block_remove): New function.
11315 (selftest::reverse_cmp): New function.
11316 (selftest::test_qsort): New function.
11317 (selftest::vec_c_tests): New function.c.
11318 * wide-int.cc: Include selftest.h and wide-int-print.h.
11319 (selftest::from_int <wide_int>): New function.
11320 (selftest::from_int <offset_int>): New function.
11321 (selftest::from_int <widest_int>): New function.
11322 (selftest::assert_deceq): New function.
11323 (selftest::assert_hexeq): New function.
11324 (selftest::test_printing <VALUE_TYPE>): New function template.
11325 (selftest::test_ops <VALUE_TYPE>): New function template.
11326 (selftest::test_comparisons <VALUE_TYPE>): New function template.
11327 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11328 template.
11329 (selftest::wide_int_cc_tests): New function.
11330
11331 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11332
11333 PR middle-end/37780
11334 * ifcvt.c (noce_try_ifelse_collapse): New function.
11335 Declare prototype.
11336 (noce_process_if_block): Call noce_try_ifelse_collapse.
11337 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11338 (simplify_ternary_operation): Use the above to simplify
11339 conditional CLZ/CTZ expressions.
11340
11341 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11342
11343 PR middle-end/37780
11344 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11345 define_insn_and_split.
11346
11347 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11348
11349 PR middle-end/37780
11350 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11351
11352 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11353
11354 PR c/24414
11355 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11356 Implicitly clobber memory for basic asm with non-empty assembler
11357 string. Use targetm.md_asm_adjust also here.
11358 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11359 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11360 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11361 non-empty assembler string.
11362 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11363 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11364 (decode_asm_operands): Handle basic asm in PARALLEL block.
11365 (extract_insn): Handle basic asm in PARALLEL block.
11366 * doc/extend.texi: Mention new behavior of basic asm.
11367 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11368 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11369 branch_needs_nop_p): Use asm_noperands.
11370
11371 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
11372
11373 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11374 Include the M7 SPARC DFA scheduler.
11375 New attribute v3pipe.
11376 Annotate insns with v3pipe where appropriate.
11377 Define cpu_feature vis4.
11378 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11379 Add (V8QI "8") to vbits.
11380 Add insns {add,sub}v8qi3
11381 Add insns ss{add,sub}v8qi3
11382 Add insns us{add,sub}{v8qi,v4hi}3
11383 Add insns {min,max}{v8qi,v4hi,v2si}3
11384 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11385 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11386 * config/sparc/niagara4.md: Add a comment explaining the
11387 discrepancy between the documented latenty numbers and the
11388 implemented ones.
11389 * config/sparc/niagara7.md: New file.
11390 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11391 supports SPARC5 and VIS 4.0 instructions.
11392 * configure: Regenerate.
11393 * config.in: Likewise.
11394 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11395 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11396 TARGET_CPU_niagara7.
11397 (ASM_CPU64_DEFAULT_SPEC): Likewise.
11398 (CPP_CPU_SPEC): Handle niagara7.
11399 (ASM_CPU_SPEC): Likewise.
11400 * config/sparc/sparc-opts.h (processor_type): Add
11401 PROCESSOR_NIAGARA7.
11402 (mvis4): New option.
11403 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11404 (AS_NIAGARA7_FLAG): Define.
11405 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11406 (CPP_CPU64_DEFAULT_SPEC): Likewise.
11407 (CPP_CPU_SPEC): Handle niagara7.
11408 (ASM_CPU_SPEC): Likewise.
11409 * config/sparc/sparc.c (niagara7_costs): Define.
11410 (sparc_option_override): Handle niagara7 and adjust cache-related
11411 parameters with better values for niagara cpus. Also support VIS4.
11412 (sparc32_initialize_trampoline): Likewise.
11413 (sparc_use_sched_lookahead): Likewise.
11414 (sparc_issue_rate): Likewise.
11415 (sparc_register_move_cost): Likewise.
11416 (dump_target_flag_bits): Support VIS4.
11417 (sparc_vis_init_builtins): Likewise.
11418 (sparc_builtins): Likewise.
11419 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
11420 VIS4 4.0.
11421 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
11422 UltraSparc M7.
11423 * config/sparc/sparc.opt (sparc_processor_type): New value
11424 niagara7.
11425 * config/sparc/visintrin.h (__attribute__): Prototypes for the
11426 VIS4 builtins.
11427 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
11428 -mvis4.
11429 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
11430 VIS4 builtins.
11431
11432 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
11433
11434 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
11435
11436 2016-06-06 Richard Biener <rguenther@suse.de>
11437
11438 PR tree-optimization/71398
11439 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
11440 remove edges.
11441
11442 2016-06-05 James Bowman <james.bowman@ftdichip.com>
11443
11444 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
11445 ft32_expand_prolog, ft32_expand_epilogue):
11446 Handle pretend_args.
11447 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
11448 * config/ft32/ft32.md: Add pretend_returner.
11449
11450 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
11451
11452 PR target/71389
11453 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11454 Copy op1 RTX to avoid invalid sharing.
11455 (ix86_expand_vector_move_misalign): Ditto.
11456
11457 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
11458
11459 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
11460 ATTRIBUTE_UNUSED.
11461
11462 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
11463
11464 * predict.c (predicted_by_loop_heuristics_p): New function.
11465 (predict_iv_comparison): Use it.
11466 (predict_loops): Walk from innermost loops; do not predict edges
11467 leaving multiple loops multiple times; implement
11468 PRED_LOOP_ITERATIONS_MAX heuristics.
11469 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
11470
11471 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
11472
11473 * cfg.c (check_bb_profile): Do not report mismatched profiles when
11474 only edges out of BB are EH edges.
11475
11476 2016-06-04 Martin Sebor <msebor@redhat.com>
11477 Marcin Baczyński <marbacz@gmail.com>
11478
11479 PR c/48116
11480 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
11481 a void expression in a void function.
11482
11483 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
11484
11485 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
11486 aux; dump reasons of decisions.
11487 (should_duplicate_loop_header_p): Likewise.
11488 (do_while_loop_p): Likewise.
11489 (ch_base::copy_headers): Dump asi num insns duplicated.
11490
11491 2016-06-04 Jakub Jelinek <jakub@redhat.com>
11492
11493 PR tree-optimization/71405
11494 * tree-ssa.c (execute_update_addresses_taken): For clobber with
11495 incompatible type, build a new clobber with the right type instead
11496 of building a VIEW_CONVERT_EXPR around it.
11497
11498 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
11499
11500 PR tree-optimization/52171
11501 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
11502 by_pieces_ninsns instead of move_by_pieces_ninsns.
11503
11504 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
11505
11506 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
11507 for reg+reg addressing mode.
11508
11509 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11510
11511 * rs6000-c.c (c/c-tree.h): Add #include.
11512 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
11513 in C++ when found in the base position of vec_ld or vec_st.
11514
11515 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
11516
11517 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
11518 use of profile unless profile status is PROFILE_READ.
11519 * profile.c (compute_branch_probabilities): Set profile status
11520 only after reporting predictor hitrates.
11521
11522 2016-06-03 Joseph Myers <joseph@codesourcery.com>
11523
11524 PR target/71276
11525 PR target/71277
11526 * common.opt (ffp-int-builtin-inexact): New option.
11527 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
11528 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
11529 (ceil@var{m}2): Document dependence on this option.
11530 * ipa-inline-transform.c (inline_call): Handle
11531 flag_fp_int_builtin_inexact.
11532 * ipa-inline.c (can_inline_edge_p): Likewise.
11533 * config/i386/i386.md (rintxf2): Do not test
11534 flag_unsafe_math_optimizations.
11535 (rint<mode>2_frndint): New define_insn.
11536 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
11537 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
11538 for 387 instead of extending and truncating.
11539 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
11540 !flag_trapping_math instead of flag_unsafe_math_optimizations.
11541 Change to frndint<mode>2_<rounding>.
11542 (frndintxf2_<rounding>_i387): Likewise. Change to
11543 frndint<mode>2_<rounding>_i387.
11544 (<rounding_insn>xf2): Likewise.
11545 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
11546 !flag_trapping_math instead of flag_unsafe_math_optimizations for
11547 x87. Test TARGET_ROUND || !flag_trapping_math ||
11548 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
11549 SSE. Use ROUND_NO_EXC in constant operand of
11550 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
11551 for 387 instead of extending and truncating.
11552
11553 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
11554 Julia Koval <julia.koval@intel.com>
11555
11556 PR target/66960
11557 PR target/67630
11558 PR target/67634
11559 PR target/67841
11560 PR target/68037
11561 PR target/68618
11562 PR target/68661
11563 PR target/69575
11564 PR target/69596
11565 PR target/69734
11566 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
11567 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
11568 all registers, except for function return registers if there are
11569 no caller-saved registers.
11570 (ix86_set_func_type): New function.
11571 (ix86_set_current_function): Call ix86_set_func_type to set
11572 no_caller_saved_registers and func_type. Call reinit_regs if
11573 caller-saved registers are changed. Don't allow MPX, SSE, MMX
11574 nor x87 instructions in interrupt handler nor function with
11575 no_caller_saved_registers attribute.
11576 (ix86_function_ok_for_sibcall): Return false if there are no
11577 caller-saved registers.
11578 (type_natural_mode): Don't warn ABI change for MMX in interrupt
11579 handler.
11580 (ix86_function_arg_advance): Skip for callee in interrupt handler.
11581 (ix86_function_arg): Return special arguments in interrupt handler.
11582 (ix86_promote_function_mode): Promote pointer to word_mode only
11583 for normal functions.
11584 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
11585 interrupt handler.
11586 (ix86_epilogue_uses): New function.
11587 (ix86_hard_regno_scratch_ok): Likewise.
11588 (ix86_save_reg): Preserve all registers in interrupt handler
11589 after reload. Preserve all registers, except for function return
11590 registers, if there are no caller-saved registers after reload.
11591 (find_drap_reg): Always use callee-saved register if there are
11592 no caller-saved registers.
11593 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
11594 for interrupt handler.
11595 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
11596 Emit cld instruction if stringops are used in interrupt handler
11597 or interrupt handler isn't a leaf function.
11598 (ix86_expand_epilogue): Generate interrupt return for interrupt
11599 handler and pop the 'ERROR_CODE' off the stack before interrupt
11600 return in exception handler.
11601 (ix86_expand_call): Disallow calling interrupt handler directly.
11602 If there are no caller-saved registers, mark all registers that
11603 are clobbered by the call which returns as clobbered.
11604 (ix86_handle_no_caller_saved_registers_attribute): New function.
11605 (ix86_handle_interrupt_attribute): Likewise.
11606 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
11607 attributes.
11608 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
11609 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
11610 accumulation in interrupt function if stack may be realigned to
11611 avoid DRAP.
11612 (EPILOGUE_USES): New.
11613 (function_type): New enum.
11614 (machine_function): Add func_type and no_caller_saved_registers.
11615 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
11616 (interrupt_return): New pattern.
11617 * doc/extend.texi: Document x86 interrupt and
11618 no_caller_saved_registers attributes.
11619
11620 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
11621
11622 PR tree-optimization/52171
11623 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
11624 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
11625 Look for constant strings. Move some code to emit_block_cmp_hints
11626 and use it.
11627 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
11628 * defaults.h (COMPARE_MAX_PIECES): New macro.
11629 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
11630 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
11631 (clear_by_pieces_1): Don't declare. Move definition before use.
11632 (can_do_by_pieces): New static function.
11633 (can_move_by_pieces): Use it. Return bool.
11634 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
11635 OP. All callers changed. Handle COMPARE_BY_PIECES.
11636 (class pieces_addr); New.
11637 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
11638 pieces_addr::adjust, pieces_addr::increment_address,
11639 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
11640 functions for it.
11641 (class op_by_pieces_d): New.
11642 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
11643 functions for it.
11644 (class move_by_pieces_d, class compare_by_pieces_d,
11645 class store_by_pieces_d): New subclasses of op_by_pieces_d.
11646 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
11647 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
11648 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
11649 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
11650 compare_by_pieces_d::finish_mode): New member functions.
11651 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
11652 functions.
11653 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
11654 (emit_block_cmp_hints): New function.
11655 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
11656 use the newly defined classes.
11657 * expr.h (by_pieces_constfn): New typedef.
11658 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
11659 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
11660 (move_by_pieces_ninsns): Don't declare.
11661 (can_move_by_pieces): Change return value to bool.
11662 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
11663 (compare_by_pieces_branch_ratio): New hook.
11664 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
11665 (by_pieces_ninsns): Declare.
11666 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
11667 COMPARE_BY_PIECES.
11668 (default_compare_by_pieces_branch_ratio): New function.
11669 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
11670 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
11671 * doc/tm.texi: Regenerate.
11672 * tree-ssa-strlen.c: Include "builtins.h".
11673 (handle_builtin_memcmp): New static function.
11674 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
11675 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
11676
11677 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11678
11679 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
11680 relevant stmts which are simple and invariant.
11681 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
11682 instead of simple and invariant
11683
11684 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11685
11686 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
11687 (vectorizable_reduction): Check for new relevant state.
11688 (vectorizable_live_operation): vectorize live stmts using
11689 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
11690 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
11691 (vect_stmt_relevant_p): Check for stmts which are only used live.
11692 (process_use): Use of a stmt does not inherit it's live value.
11693 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
11694 (vect_analyze_stmt): Check for new relevant state.
11695 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
11696 outside the loop, but not inside it.
11697
11698 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11699
11700 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
11701 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
11702 (vect_get_vec_def_for_operand): Split out code.
11703
11704 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11705
11706 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
11707
11708 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11709
11710 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
11711
11712 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11713
11714 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
11715
11716 2016-06-03 Jakub Jelinek <jakub@redhat.com>
11717
11718 PR middle-end/71387
11719 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
11720 to noreturn e->callee->decl that has void return type and void
11721 arguments, adjust gimple_call_fntype and remove lhs even if it had
11722 previously addressable type.
11723
11724 2016-06-02 Jeff Law <law@redhat.com>
11725
11726 PR tree-optimization/71328
11727 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
11728 error when checking for a jump back onto the copied path.
11729
11730 2016-06-02 David Malcolm <dmalcolm@redhat.com>
11731
11732 * config/microblaze/microblaze.c (get_branch_target): Add return
11733 NULL_RTX for the non-CALL_P case.
11734 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11735 (insert_wic): Remove unused local "j".
11736
11737 2016-06-02 Martin Liska <mliska@suse.cz>
11738
11739 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11740
11741 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
11742 Julia Koval <julia.koval@intel.com>
11743
11744 * function.c (assign_parm_setup_stack): Force source into a
11745 register if needed.
11746 * target.def (function_incoming_arg): Update documentation to
11747 allow arbitrary address computation based on hard register.
11748 * doc/tm.texi: Regenerated.
11749
11750 2016-06-02 Martin Liska <mliska@suse.cz>
11751
11752 * predict.c (combine_predictions_for_bb): Fix first match in
11753 cases where a first predictor contains more than one occurence
11754 in list of predictors. Take the best value in such case.
11755
11756 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11757
11758 PR rtl-optimization/71295
11759 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11760 offset would go over the size of the inner mode reject it.
11761
11762 2016-06-02 Jakub Jelinek <jakub@redhat.com>
11763
11764 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11765 x=x,x and v=v,m instead of x=x,m.
11766
11767 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11768 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
11769 alternative to v=rm,C.
11770
11771 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11772 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
11773 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
11774 instead of vex for the last two above mentioned alternatives.
11775
11776 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11777
11778 PR target/70830
11779 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11780
11781 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
11782
11783 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11784
11785 2016-06-01 David Malcolm <dmalcolm@redhat.com>
11786
11787 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11788 from int to unsigned.
11789
11790 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11791
11792 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11793 alternatives, eliminating preferred register class. Add support
11794 for the MTVSRDD instruction in ISA 3.0.
11795 (vsx_splat_v4si_internal): Use splat_input_operand instead of
11796 reg_or_indexed_operand.
11797 (vsx_splat_v4sf_internal): Likewise.
11798
11799 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11800
11801 PR target/71186
11802 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11803 for loading up all 0's or all 1's.
11804
11805 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
11806
11807 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11808
11809 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
11810
11811 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11812 extension.
11813 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11814 * gcc.c (set_source_date_epoch_envvar): New function, sets
11815 the SOURCE_DATE_EPOCH environment variable to the current time.
11816
11817 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
11818
11819 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
11820 the factor for live Phi nodes.
11821
11822 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
11823
11824 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
11825 * tree-parloops.c (parallelize_loops): likewise.
11826 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
11827 tree_unswitch_outer_loop): likewise.
11828
11829 2016-06-01 Jakub Jelinek <jakub@redhat.com>
11830
11831 PR middle-end/71371
11832 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
11833 around creation of the temporary.
11834
11835 2016-06-01 Richard Biener <rguenther@suse.de>
11836
11837 PR tree-optimization/71366
11838 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
11839 (unloop_loops): Move removing edges here ...
11840 (try_unroll_loop_completely): ... from here.
11841 (try_peel_loop): ... and here.
11842 (tree_unroll_loops_completely_1): Track parent loops via
11843 bitmap of header BBs.
11844 (tree_unroll_loops_completely): Adjust for that.
11845
11846 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
11847
11848 * config/rs6000/altivec.h (vec_slv): New macro.
11849 (vec_srv): New macro.
11850 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
11851 (UNSPEC_VSRV): New value.
11852 (vslv): New insn.
11853 (vsrv): New insn.
11854 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
11855 (vsrv): New builtin definition.
11856 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
11857 define argument types for new builtin.
11858 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
11859 new builtin.
11860 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
11861 functions.
11862
11863 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
11864 Jocelyn Mayer <l_indien@magic.fr>
11865
11866 PR target/67310
11867 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
11868 detect processor family for signature_CENTAUR_ebx.
11869 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
11870 signature_CENTAUR_ebx.
11871 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
11872 <default>: Pass x86-64 for has_longmode.
11873
11874 2016-06-01 Nathan Sidwell <nathan@acm.org>
11875
11876 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
11877 undefined weak.
11878
11879 2016-06-01 Richard Biener <rguenther@suse.de>
11880
11881 PR tree-optimization/71261
11882 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
11883 of stmts successfully put in the bool pattern. Remove
11884 single-use restriction.
11885 (adjust_bool_pattern_cast): Add cast at the use site via the
11886 pattern def sequence.
11887 (adjust_bool_pattern): Remove recursion, maintain a hash-map
11888 of patterned defs. Use the pattern def seqence instead of
11889 multiple independent patterns.
11890 (sort_after_uid): New qsort compare function.
11891 (adjust_bool_stmts): New function to process stmts in the bool
11892 pattern in IL order.
11893 (vect_recog_bool_pattern): Adjust.
11894 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11895 (ifcvt_walk_pattern_tree): Likewise.
11896 (stmt_is_root_of_bool_pattern): Likewise.
11897 (ifcvt_repair_bool_pattern): Likewise.
11898 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11899
11900 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
11901
11902 * loop-unroll.c (decide_unroll_constant_iterations,
11903 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11904 likely upper bounds.
11905 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11906
11907 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
11908
11909 * tree-core.h (enum omp_clause_code): Remove
11910 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
11911
11912 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11913
11914 * config/arm/sync.md (arm_store_exclusive<mode>):
11915 Use 'H' output modifier on operands[2] rather than creating a new
11916 entry in out-of-bounds memory of the operands array.
11917 (arm_store_release_exclusivedi): Likewise.
11918
11919 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11920
11921 * config/arm/arm.c (arm_fusion_enabled_p): New function.
11922 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11923 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11924 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
11925
11926 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
11927
11928 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11929 into account live statements for mask producers.
11930
11931 2016-06-01 Richard Biener <rguenther@suse.de>
11932
11933 PR tree-optimization/71311
11934 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11935 restrict to non-INTEGER_CST @0.
11936
11937 2016-06-01 Richard Biener <rguenther@suse.de>
11938
11939 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11940 (relational patterns): Use :c to avoid pattern duplications.
11941
11942 2016-06-01 Richard Biener <rguenther@suse.de>
11943
11944 * genmatch.c (comparison_code_p): New predicate.
11945 (swap_tree_comparison): New function.
11946 (commutate): Add for_vec parameter to append new for entries.
11947 Support commutating relational operators by swapping it alongside
11948 operands.
11949 (lower_commutative): Adjust.
11950 (dt_simplify::gen): Do not pass artificial operators to gen
11951 functions.
11952 (decision_tree::gen): Do not add artificial operators as parameters.
11953 (parser::parse_expr): Verify operator commutativity when :c is
11954 applied. Allow :C to override this.
11955 * match.pd: Adjust patterns to use :C instead of :c where required.
11956
11957 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
11958
11959 PR tree-optimization/71077
11960 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
11961 the combining step, use boolean_false_node and boolean_true_node
11962 as the designated false/true return values.
11963
11964 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
11965
11966 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
11967 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
11968 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
11969 PRED_LOOP_EXIT.
11970
11971 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
11972
11973 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
11974 of flags impliying the register renaming.
11975 * toplev.c (process_options): Do not imply flag_rename_registers with
11976 loop peeling.
11977
11978 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
11979
11980 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
11981 default implementation.
11982
11983 2016-05-31 Nathan Sidwell <nathan@acm.org>
11984
11985 * dwarf2out.c (cur_line_info_table): Add GTY marker.
11986
11987 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
11988
11989 * config/sh/constraints.md (b): Remove constraint.
11990 * config/sh/predicates.md (arith_reg_operand): Remove
11991 TARGET_REGISTER_P.
11992 * config/sh/sh-modes.def (PDI): Remove.
11993 * config/sh/sh.c (sh_target_reg_class,
11994 sh_optimize_target_register_callee_saved): Remove functions.
11995 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
11996 (sh_expand_epilogue): Update comment.
11997 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
11998 sh_secondary_reload): Remove TARGET_REGS related code.
11999 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12000 TARGET_REGISTER_P): Remove macros.
12001 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12002 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12003 TR1_REG, TR2_REG): Remove constants.
12004 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12005
12006 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12007
12008 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12009 define_expand patterns.
12010 (adddi3_compact): Rename to adddi3.
12011 (subdi3_compact): Rename to subdi3.
12012 (*negdi2): Rename to negdi2.
12013 (*abs<mode>2): Rename to abs<mode>2.
12014
12015 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12016
12017 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12018 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12019 (atomic_sub_fetchsi): ... this new pattern.
12020 (mvtc): Add CC_REG clobber.
12021
12022 2016-05-31 Marek Polacek <polacek@redhat.com>
12023
12024 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12025
12026 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12027
12028 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12029 aarch64_fusion_enabled_p to check for fusion capabilities.
12030
12031 2016-05-31 Richard Biener <rguenther@suse.de>
12032
12033 PR tree-optimization/71352
12034 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12035 minus one and a negate.
12036
12037 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12038
12039 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12040 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12041 Delete prototype.
12042 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12043 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12044 Remove use of aarch64_simd_attr_length_move, set length attribute
12045 directly.
12046 (*aarch64_be_movoi): Likewise.
12047 (*aarch64_be_movci): Likewise.
12048 (*aarch64_be_movxi): Likewise.
12049
12050 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12051
12052 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12053 It no longer does that.
12054 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12055
12056 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
12057
12058 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12059 attribute __unused__.
12060
12061 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
12062
12063 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12064 * config/arm/arm.c (arm_arch_thumb1): Define.
12065 (arm_option_override): Initialize arm_arch_thumb1.
12066 * config/arm/arm.h (arm_arch_thumb1): Declare.
12067 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12068 support Thumb-1 ISA.
12069
12070 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
12071
12072 PR target/71346
12073 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12074 `Yv' for scalar operand.
12075
12076 2016-05-31 Tom de Vries <tom@codesourcery.com>
12077
12078 PR tree-optimization/69068
12079 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12080 phis with more than two args.
12081
12082 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
12083
12084 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12085 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12086 target.
12087
12088 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
12089
12090 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12091 tune_64.
12092 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12093 support on SPARC.
12094 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12095 cpu_32, cpu_64, tune_32 and tune_64.
12096 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12097
12098 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
12099
12100 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12101
12102 2016-05-30 Andi Kleen <ak@linux.intel.com>
12103
12104 * auto-profile.c (read_profile): Replace asserts with errors
12105 when file does not exist.
12106 * gcov-io.c (gcov_read_words): Dito.
12107
12108 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12109
12110 * tree-cfg.c (print_loop): Print likely upper bounds.
12111
12112 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12113
12114 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12115 * opts.c (default_options): Enable peel loops at -O3.
12116 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12117 (try_peel_loop): Do not re-peel already peeled loops;
12118 use likely upper bounds; fix profile updating.
12119 (pass_complete_unroll::execute): Initialize peeled_loops.
12120
12121 2016-05-30 Martin Liska <mliska@suse.cz>
12122
12123 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12124 computed costs by frequency of BB they belong to.
12125 (get_scaled_computation_cost_at): New function.
12126
12127 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
12128 Marc Glisse <marc.glisse@inria.fr>
12129
12130 PR tree-optimization/71289
12131 * match.pd (-1 / B < A, A > -1 / B): New transformations.
12132
12133 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12134
12135 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12136
12137 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12138
12139 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12140 for peeled copies; avoid underflow when updating estimates; correctly
12141 scale loop profile.
12142
12143 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12144
12145 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12146 r236875. Corrected oe3 to oe2 as obvious.
12147
12148 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12149
12150 PR middle-end/71269
12151 PR middle-end/71252
12152 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12153 that inserted stmt will not dominate stmts that defines its operand.
12154 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12155 (rewrite_expr_tree_parallel): Likewise.
12156
12157 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12158
12159 PR middle-end/71252
12160 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12161 all fields including stmt_to_insert are swapped.
12162
12163 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12164
12165 * predict.h (force_edge_cold): Declare.
12166 * predict.c (force_edge_cold): New function.
12167 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12168 updating.
12169 (canonicalize_loop_induction_variables): Fix formating.
12170
12171 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
12172
12173 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12174 (visium_expand_copysign): Use gen_int_mode directly.
12175 (visium_compute_frame_size): Minor tweaks.
12176
12177 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12178
12179 * tree-vect-loop.c (vect_analyze_loop_2): Use
12180 likely_max_stmt_executions_int.
12181
12182 2016-05-30 Tom de Vries <tom@codesourcery.com>
12183
12184 PR tree-optimization/69067
12185 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12186
12187 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
12188
12189 PR target/71245
12190 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12191 New peepholes to remove unneeded fild/fistp pairs.
12192 (define_peephole2 atomic_loaddi_fpu): Ditto.
12193
12194 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12195
12196 * predict.c (maybe_hot_frequency_p): Avoid division.
12197
12198 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
12199
12200 * doc/install.texi: Use https for shop.fsf.org.
12201
12202 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12203
12204 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12205 likely_max_stmt_executions_int.
12206
12207 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12208
12209 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12210 likely_max_stmt_executions_int.
12211
12212 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12213
12214 * profile.c (compute_branch_probabilities): Do not report hitrates
12215 here.
12216 (branch_prob): Report hitrates here.
12217 * predict.c (gimple_predict_edge): Do not assert profile status;
12218 fix formatting issues.
12219
12220 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12221
12222 * predict.c (edge_predicted_by_p): New function.
12223 (predict_paths_for_bb): Do not put multiple predictions of the same type
12224 on one edge.
12225
12226 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12227
12228 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12229 commit.
12230
12231 2016-05-28 Alan Modra <amodra@gmail.com>
12232
12233 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12234
12235 2016-05-28 Alan Modra <amodra@gmail.com>
12236
12237 PR rtl-optimization/71275
12238 * ira.c (ira): Free dominance info.
12239
12240 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
12241
12242 * doc/sourcebuild.texi: New address for upstream Go repository.
12243
12244 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
12245
12246 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12247 (TARGET_ARM_V7M): Likewise.
12248
12249 2016-05-26 Jeff Law <law@redhat.com>
12250
12251 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12252 (thread_across_edge): Remove calls to find_jump_threads_backwards.
12253 * passes.def: Add jump threading passes before DOM/VRP.
12254 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12255 argument to a basic block from an edge. Remove tests which are
12256 handled elsewhere.
12257 (pass_data_thread_jumps, class pass_thread_jumps): New.
12258 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12259 (make_pass_thread_jumps): Likewise.
12260 * tree-pass.h (make_pass_thread_jumps): Declare.
12261
12262 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
12263
12264 * config/visium/visium-protos.h (split_double_move): Rename into...
12265 (visium_split_double_move): ...this.
12266 (visium_split_double_add): Declare.
12267 * config/visium/visium.c (split_double_move): Rename into...
12268 (visium_split_double_move): ...this.
12269 (visium_split_double_add): New function.
12270 (visium_expand_copysign): Renumber operands for consistency.
12271 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12272 (DFmode move splitter): Likewise.
12273 (*addi3_insn): Split by means of visium_split_double_add.
12274 (*adddi3_insn_flags): Delete.
12275 (*plus_plus_sltu<subst_arith>): New insn.
12276 (*subdi3_insn): Split by means of visium_split_double_add.
12277 (subdi3_insn_flags): Delete.
12278 (*minus_minus_sltu<subst_arith>): New insn.
12279 (*negdi2_insn): Split by means of visium_split_double_add.
12280 (*negdi2_insn_flags): Delete.
12281
12282 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
12283
12284 * configure.ac: Treat a --with-headers option without argument
12285 the same as the default (i.e. consult sys-include directory).
12286 * configure: Regenerate.
12287
12288 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12289
12290 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12291 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12292 prototype.
12293 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12294 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12295
12296 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12297
12298 PR target/63596
12299 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12300 tree-stdarg analysis results.
12301 (aarch64_setup_incoming_varargs): Likewise.
12302
12303 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12304
12305 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12306 va_list_gpr_counter_field and va_list_fpr_counter_field.
12307
12308 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
12309
12310 PR67609
12311 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12312 * config/aarch64/aarch64.c
12313 (aarch64_cannot_change_mode_class): Remove function.
12314 * config/aarch64/aarch64-protos.h
12315 (aarch64_cannot_change_mode_class): Remove.
12316
12317 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12318
12319 * cfgloop.c (record_niter_bound): Record likely upper bounds.
12320 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12321 get_likely_max_loop_iterations_int): New.
12322 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12323 any_likely_upper_bound.
12324 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12325 Declare.
12326 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12327 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12328 upper bound.
12329 (unroll_loop_constant_iterations): Likewise.
12330 (unroll_loop_runtime_iterations): Likewise.
12331 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12332 * lto-streamer-out.c (output_cfg): Likewise.
12333 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12334 bounds.
12335 (canonicalize_loop_induction_variables): Dump likely upper bounds.
12336 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12337 (likely_max_loop_iterations): New.
12338 (likely_max_loop_iterations_int): New.
12339 (likely_max_stmt_executions): New.
12340 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12341 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12342 likely_max_stmt_executions): Declare.
12343
12344 2016-05-27 Marek Polacek <polacek@redhat.com>
12345
12346 PR middle-end/71308
12347 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12348
12349 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12350
12351 * config/s390/s390.md (2x risbg splitters): Use
12352 reg_overlap_mentioned_p instead of rtx_equal_p.
12353
12354 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12355
12356 * combine.c (make_compound_operation): Take known zero bits into
12357 account when checking for possible zero_extend.
12358
12359 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12360
12361 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12362 Use const_int_operand for operand 2 predicate. Simplify expand code
12363 as a result.
12364
12365 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
12366
12367 PR middle-end/71279
12368 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12369 into comparison.
12370
12371 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12372
12373 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12374 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12375 that returns CC_SESWPmode and CC_ZESWPmode.
12376 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12377 and CC_SESWPmode.
12378 (aarch64_rtx_costs): Likewise.
12379
12380 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12381
12382 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12383 for ISA 3.0 min/max support.
12384 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12385 conditional move support.
12386 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12387 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12388 available.
12389 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12390 conditional moves where the comparison type is different from move
12391 type.
12392 (fp_minmax): New code iterator for smin/smax.
12393 (minmax): New code attributes for min/max.
12394 (SMINMAX): Likewise.
12395 (smax<mode>3): Combine min, max insns into one insn using the
12396 fp_minmax code iterator. Add support for ISA 3.0 min/max
12397 instructions that don't need -ffast-math.
12398 (s<minmax><mode>3): Likewise.
12399 (smax<mode>3_vsx): Likewise.
12400 (smin<mode>3): Likewise.
12401 (s<minmax><mode>3_vsx): Likewise.
12402 (smin<mode>3_vsx): Likewise.
12403 (pre-VSX min/max splitters): Likewise.
12404 (s<minmax><mode>3_fpr): Likewise.
12405 (movsfcc): Rewrite floating point conditional moves to combine
12406 SFmode/DFmode into a single insn.
12407 (mov<mode>cc): Likewise.
12408 (movdfcc): Likewise.
12409 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
12410 SFDF2 iterators to handle all combinations.
12411 (fseldfsf4): Likewise.
12412 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
12413 (fseldfdf4): Likewise.
12414 (fselsfdf4): Likewise.
12415 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
12416 comparison instructions that set a 0/-1 mask, and use it for
12417 floating point conditional move via XXSEL.
12418 (fpmask<mode>): Likewise.
12419 (xxsel<mode>): Likewise.
12420 * config/rs6000/predicates.md (min_max_operator): Delete, no
12421 longer used.
12422 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
12423 instructions that generate a 0/-1 mask for use with XXSEL.
12424 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
12425 say whether floating point min/max is available, either through
12426 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
12427 (TARGET_MINMAX_DF): Likewise.
12428
12429 2016-05-27 Alan Modra <amodra@gmail.com>
12430
12431 PR rtl-optimization/71275
12432 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
12433 for update_equiv_regs and combine_and_move_insns.
12434
12435 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
12436
12437 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
12438 if_then_else or cond RTXes to calculate attribute value.
12439 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
12440 <attr "length_immediate>: Ditto.
12441 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
12442 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
12443 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
12444 <attr "type">: Ditto.
12445 <attr "prefix_data16">: Ditto.
12446 <attr "prefix_extra">: Ditto.
12447 <attr "length_immediate">: Ditto.
12448 <attr "prefix">: Ditto.
12449 (vec_set<mode>_0) <attr "isa">: Ditto.
12450 <attr "prefix_extra">: Ditto.
12451 <attr "length_immediate">: Ditto.
12452 <attr "prefix">: Ditto.
12453 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
12454 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
12455 (sse2_storelpd) <attr "prefix_data16">: Ditto.
12456 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
12457 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
12458 <attr "length_immediate">: Ditto.
12459 <attr "prefix">: Ditto.
12460 (sse2_movsd) <attr "length_immediate">: Ditto.
12461 <attr "prefix">: Ditto.
12462 (vec_concatv2df) <attr "isa">: Ditto.
12463 <attr "prefix">: Ditto.
12464 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
12465 (*vec_extractv2di_1) <attr "isa">: Ditto.
12466 <attr "type">: Ditto.
12467 <attr "length_immediate">: Ditto.
12468 <attr "prefix_rex">: Ditto.
12469 <attr "prefix_extra">: Ditto.
12470 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
12471 <attr "prefix_extra">: Ditto.
12472 <attr "length_immediate">: Ditto.
12473 (vec_concatv2di) <attr "isa">: Ditto.
12474 <attr "prefix_extra">: Ditto.
12475 <attr "length_immediate">: Ditto.
12476 <attr "prefix">: Ditto.
12477
12478 2016-05-26 Martin Liska <mliska@suse.cz>
12479
12480 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
12481 function.
12482 (operator+): Likewise.
12483 (operator-): Likewise.
12484 (comp_cost::operator+=): Likewise.
12485 (comp_cost::operator-=): Likewise.
12486 (comp_cost::operator/=): Likewise.
12487 (comp_cost::operator*=): Likewise.
12488 (operator<): Likewise.
12489 (operator==): Likewise.
12490 (operator<=): Likewise.
12491 (new_cost): Remove.
12492 (infinite_cost_p): Likewise.
12493 (add_costs): Likewise.
12494 (sub_costs): Likewise.
12495 (compare_costs): Likewise.
12496 (set_group_iv_cost): Use the newly introduced functions.
12497 (get_address_cost): Likewise.
12498 (get_shiftadd_cost): Likewise.
12499 (force_expr_to_var_cost): Likewise.
12500 (split_address_cost): Likewise.
12501 (ptr_difference_cost): Likewise.
12502 (difference_cost): Likewise.
12503 (get_computation_cost_at): Likewise.
12504 (determine_group_iv_cost_generic): Likewise.
12505 (determine_group_iv_cost_address): Likewise.
12506 (determine_group_iv_cost_cond): Likewise.
12507 (autoinc_possible_for_pair): Likewise.
12508 (determine_group_iv_costs): Likewise.
12509 (cheaper_cost_pair): Likewise.
12510 (iv_ca_recount_cost): Likewise.
12511 (iv_ca_set_no_cp): Likewise.
12512 (iv_ca_set_cp): Likewise.
12513 (iv_ca_cost): Likewise.
12514 (iv_ca_new): Likewise.
12515 (iv_ca_dump): Likewise.
12516 (iv_ca_narrow): Likewise.
12517 (iv_ca_prune): Likewise.
12518 (iv_ca_replace): Likewise.
12519 (try_add_cand_for): Likewise.
12520 (try_improve_iv_set): Likewise.
12521 (find_optimal_iv_set): Likewise.
12522
12523 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
12524
12525 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
12526 that internal functions will clobber all caller-saved registers.
12527
12528 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
12529
12530 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
12531 Return a better case_values_threshold when optimizing.
12532
12533 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
12534
12535 * config/aarch64/aarch64-simd.md (aarch64_combinez):
12536 Add ? to integer variant.
12537 (aarch64_combinez_be): Likewise.
12538
12539 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12540
12541 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
12542 instead of x constraint.
12543 (vcvtps2ph256<mask_name>): Likewise.
12544
12545 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
12546 alternative. Formatting fix.
12547
12548 * config/i386/sse.md
12549 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
12550 to ...
12551 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
12552 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
12553 maybe_evex prefix instead of vex.
12554 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
12555 EXT_REX_SSE_REG_P (op0) case in the splitter.
12556
12557 2016-05-25 Jeff Law <law@redhat.com>
12558
12559 PR tree-optimization/71272
12560 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
12561 Update comments. Add test for empty path.
12562
12563 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12564
12565 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
12566 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
12567 special case builtin.
12568 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12569 code for ALTIVEC_BUILTIN_VEC_CMPNE.
12570 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12571 for __builtin_vec_cmpne.
12572
12573 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
12574
12575 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
12576 redundant test and bail out if the type of the new operand is not
12577 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
12578
12579 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
12580
12581 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
12582 (x_ix86_target_flags_explicit): Remove.
12583 * config/i386/i386.c (ix86_function_specific_save): Do not copy
12584 x_ix86_target_flags_explicit.
12585 (ix86_function_specific_restore): Ditto.
12586
12587 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
12588 H.J. Lu <hongjiu.lu@intel.com>
12589
12590 PR target/70738
12591 * common/config/i386/i386-common.c
12592 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
12593 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
12594 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
12595 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
12596 (-mgeneral-regs-only): Add new option.
12597 * config/i386/i386.c (ix86_option_override_internal): Don't enable
12598 x87 instructions if only general registers are allowed.
12599 (ix86_target_string): Add ix86_flags argument. Handle additional
12600 flags options through ix86_flags argument. Update all callers.
12601 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
12602
12603 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12604
12605 PR rtl-optimization/66940
12606 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
12607 decrementing desired_val will not overflow before performing these
12608 operations.
12609
12610 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
12611
12612 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
12613 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
12614 * config/i386/i386.c (enum ix86_builtins): Add
12615 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
12616 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
12617 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
12618 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
12619 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
12620 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
12621 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
12622 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
12623 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
12624 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
12625 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
12626 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
12627 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
12628 __builtin_ia32_cvtps2dq512_mask.
12629 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
12630 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
12631 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
12632 * config/i386/sse.md
12633 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
12634 Rename to ...
12635 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
12636 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
12637 to ...
12638 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
12639 (avx512f_vec_pack_sfix_v8df): New define_expand.
12640 (avx512f_roundpd512): Rename to ...
12641 (avx512f_round<castmode>512): ... this. Change iterator.
12642 (avx512f_roundps512_sfix): New define_expand.
12643 (round<mode>2_sfix): Change iterator.
12644
12645 2016-05-25 Nick Clifton <nickc@redhat.com>
12646
12647 * config/msp430/msp430.c (msp430_attr): Produce an error if a
12648 static interrupt handler is detected.
12649 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
12650 default linker script.
12651 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
12652 the low part of a symbolic pointer.
12653
12654 2016-05-25 Richard Biener <rguenther@suse.de>
12655
12656 PR tree-optimization/71261
12657 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
12658 interesting stmt instead of immediate uses when looking
12659 for the use operand to replace.
12660
12661 2016-05-25 Martin Liska <mliska@suse.cz>
12662
12663 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
12664
12665 2016-05-25 Richard Biener <rguenther@suse.de>
12666
12667 PR tree-optimization/71264
12668 * tree-vect-stmts.c (vect_init_vector): Properly deal with
12669 vector type val.
12670
12671 2016-05-25 Martin Liska <mliska@suse.cz>
12672
12673 PR tree-optimization/71239
12674 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
12675 if DECL_SIZE is NULL.
12676
12677 2016-05-25 Richard Biener <rguenther@suse.de>
12678
12679 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
12680 * tree-if-conv.c (pass_data_if_conversion): Use it.
12681
12682 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12683
12684 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
12685 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
12686 * varpool.c (varpool_node::get_availability): Likewise.
12687
12688 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12689
12690 * config/rs6000/altivec.md (VNEG iterator): New iterator for
12691 VNEGW/VNEGD instructions.
12692 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
12693 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
12694 support for ISA 3.0 VNEGW/VNEGD instructions.
12695
12696 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12697
12698 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
12699 pointers inside OACC_DATA regions.
12700 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
12701 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
12702 (gimplify_adjust_omp_clauses): Fix typo in comment.
12703
12704 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12705
12706 * config/rs6000/altivec.md (VParity): New mode iterator for vector
12707 parity built-in functions.
12708 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
12709 zeros.
12710 (p9v_parity<mode>2): Likewise.
12711 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
12712 parity.
12713 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
12714 (parity<mode>2): ISA 3.0 expander for vector parity.
12715 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
12716 power9 built-ins.
12717 (BU_P9_64BIT_MISC_0): Likewise.
12718 (BU_P9_MISC_0): Likewise.
12719 (BU_P9V_AV_1): Likewise.
12720 (BU_P9V_AV_2): Likewise.
12721 (BU_P9V_AV_3): Likewise.
12722 (BU_P9V_AV_P): Likewise.
12723 (BU_P9V_VSX_1): Likewise.
12724 (BU_P9V_OVERLOAD_1): Likewise.
12725 (BU_P9V_OVERLOAD_2): Likewise.
12726 (BU_P9V_OVERLOAD_3): Likewise.
12727 (VCTZB): Add vector count trailing zeros support.
12728 (VCTZH): Likewise.
12729 (VCTZW): Likewise.
12730 (VCTZD): Likewise.
12731 (VPRTYBD): Add vector parity support.
12732 (VPRTYBQ): Likewise.
12733 (VPRTYBW): Likewise.
12734 (VCTZ): Add overloaded vector count trailing zeros support.
12735 (VPRTYB): Add overloaded vector parity support.
12736 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12737 overloaded vector count trailing zeros and parity instructions.
12738 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12739 vector parity support.
12740 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12741 trailing zeros support.
12742 (vec_cntlz): Likewise.
12743 (vec_vctzb): Likewise.
12744 (vec_vctzd): Likewise.
12745 (vec_vctzh): Likewise.
12746 (vec_vctzw): Likewise.
12747 (vec_vprtyb): Add ISA 3.0 vector parity support.
12748 (vec_vprtybd): Likewise.
12749 (vec_vprtybw): Likewise.
12750 (vec_vprtybq): Likewise.
12751 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12752 the ISA 3.0 vector count trailing zeros and vector parity built-in
12753 functions.
12754
12755 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
12756
12757 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12758 when there is stmt_to_insert.
12759
12760 2016-05-24 Martin Sebor <msebor@redhat.com>
12761
12762 PR c++/71147
12763 * tree.h (complete_or_array_type_p): New inline function.
12764
12765 2016-05-24 Jakub Jelinek <jakub@redhat.com>
12766
12767 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12768 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12769 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12770
12771 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12772 Limit 1st alternative to noavx isa, split 2nd alternative into one
12773 noavx and one avx alternative, use *x and Bm in the former and
12774 x and m in the latter.
12775
12776 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12777 of sse4 for the first alternative, drop %v from the template
12778 and d operand modifier. Split second alternative into one sse4_noavx
12779 and one avx alternative, use *x instead of *v in the former and v
12780 instead of *v in the latter.
12781 (*sse4_1_extractps): Use noavx isa instead of * for the first
12782 alternative, drop %v from the template. Split second alternative into
12783 one noavx and one avx alternative, use *x instead of *v in the
12784 former and v instead of *v in the latter.
12785 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12786 with noavx and the last one with avx.
12787 (sse4_1_phminposuw): Guard first alternative with noavx isa,
12788 split the second one into one noavx and one avx alternative,
12789 use *x and Bm in the former and x and m in the latter one.
12790 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12791 alternatives.
12792
12793 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12794 first two alternatives to noavx, use *x instead of *v in the second
12795 one, add avx alternative without *.
12796 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12797 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12798 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12799
12800 2016-05-24 Jeff Law <law@redhat.com>
12801
12802 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12803 New function, extracted from...
12804 (fsm_find_control_statement_thread_paths): Here. Use the new function.
12805 Allow simple copies and constant initializations in the SSA chain.
12806
12807 2016-05-24 Marek Polacek <polacek@redhat.com>
12808
12809 PR c/71249
12810 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12811 scope.
12812
12813 2016-05-24 Jakub Jelinek <jakub@redhat.com>
12814
12815 PR c++/71257
12816 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12817 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12818 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
12819 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
12820 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
12821
12822 2016-05-24 Richard Biener <rguenther@suse.de>
12823
12824 PR tree-optimization/71240
12825 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
12826 has integral type.
12827
12828 2016-05-24 Richard Biener <rguenther@suse.de>
12829
12830 PR tree-optimization/71230
12831 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
12832
12833 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
12834
12835 * tree-vectorizer.h (vectorizable_comparison): Delete.
12836 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
12837 PURE_SLP_STMT check.
12838 * tree-vect-stmts.c (vectorizable_call): Likewise.
12839 (vectorizable_simd_clone_call): Likewise.
12840 (vectorizable_conversion): Likewise.
12841 (vectorizable_assignment): Likewise.
12842 (vectorizable_shift): Likewise.
12843 (vectorizable_operation): Likewise.
12844 (vectorizable_load): Likewise.
12845 (vectorizable_condition): Likewise.
12846 (vectorizable_store): Likewise. Assert that we don't have
12847 hybrid SLP.
12848 (vectorizable_comparison): Make static. Remove redundant
12849 PURE_SLP_STMT check.
12850 (vect_transform_stmt): Assert that we always have an slp_node
12851 if PURE_SLP_STMT.
12852
12853 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12854
12855 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
12856 operands[2] against 1 with comparison against CONST1_RTX.
12857 (<shift>di3_neon): Likewise.
12858 * config/arm/predicates.md (const0_operand): Replace with comparison
12859 against CONST0_RTX.
12860
12861 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12862
12863 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
12864 operands[2] against 1 with comparison against CONST1_RTX.
12865 (ashrdi3): Likewise.
12866 (lshrdi3): Likewise.
12867 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
12868 UINTVAL.
12869 (ashrsi3): Likewise.
12870 (lshrsi3): Likewise.
12871 (rotrsi3): Likewise.
12872 (define_split above *compareqi_eq0): Likewise.
12873 (define_split above "prologue"): Likewise.
12874 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
12875 * config/arm/predicates.md (shift_operator): Likewise.
12876 (shift_nomul_operator): Likewise.
12877 (sat_shift_operator): Likewise.
12878 (thumb1_cmp_operand): Likewise.
12879 (const_neon_scalar_shift_amount_operand): Replace manual range
12880 check with IN_RANGE.
12881 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
12882 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
12883
12884 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12885
12886 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
12887 with HOST_WIDE_INT_1.
12888 (insv): Likewise.
12889 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
12890 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
12891 (arm_canonicalize_comparison): Likewise.
12892 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12893 HOST_WIDE_INT_1.
12894 (thumb1_size_rtx_costs): Likewise.
12895 (vfp_const_double_index): Replace cast of 1 to unsigned
12896 HOST_WIDE_INT with HOST_WIDE_INT_1U.
12897 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12898 HOST_WIDE_INT_1.
12899 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12900 HOST_WIDE_INT with HOST_WIDE_INT_1U.
12901 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12902 HOST_WIDE_INT with HOST_WIDE_INT_1.
12903
12904 2016-05-24 Marek Polacek <polacek@redhat.com>
12905
12906 * tree-cfg.h (should_remove_lhs_p): New predicate.
12907 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12908 * gimplify.c (gimplify_modify_expr): Likewise.
12909 * tree-cfg.c (verify_gimple_call): Likewise.
12910 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12911 * gimple-fold.c: Include "tree-cfg.h".
12912 (gimple_fold_call): Use should_remove_lhs_p.
12913
12914 2016-05-24 Richard Biener <rguenther@suse.de>
12915
12916 PR tree-optimization/71253
12917 * cfganal.h (control_dependences): Make robust against edge
12918 and BB removal.
12919 (control_dependences::control_dependences): Remove edge_list argument.
12920 (control_dependences::get_edge): Remove.
12921 (control_dependences::get_edge_src): Add.
12922 (control_dependences::get_edge_dest): Likewise.
12923 (control_dependences::m_el): Make a vector of edge src/dest index.
12924 * cfganal.c (control_dependences::find_control_dependence): Adjust.
12925 (control_dependences::control_dependences): Likewise.
12926 (control_dependences::~control_dependence): Likewise.
12927 (control_dependences::get_edge): Remove.
12928 (control_dependences::get_edge_src): Add.
12929 (control_dependences::get_edge_dest): Likewise.
12930 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12931 get_edge_src.
12932 (perform_tree_ssa_dce): Adjust.
12933 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12934 get_edge_src.
12935 (pass_loop_distribution::execute): Adjust. Do loop destroying
12936 conditional on changed.
12937
12938 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12939
12940 PR target/69857
12941 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12942 return. Reindent transformation comment and mention the ARM state
12943 behavior.
12944
12945 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
12946
12947 PR middle-end/71252
12948 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12949 after build_and_add_sum creates new use stmt.
12950
12951 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
12952
12953 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12954 load_lanes/grouped_load classification comes first. Don't check
12955 whether the vectorization factor is a multiple of the group size
12956 for load_lanes.
12957
12958 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
12959
12960 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
12961 GROUP_GAP for single-element interleaving.
12962 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
12963 variable.
12964
12965 2016-05-24 Richard Biener <rguenther@suse.de>
12966
12967 PR middle-end/70434
12968 PR c/69504
12969 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
12970 bases which are accessed with non-invariant indices.
12971 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
12972 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
12973
12974 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
12975
12976 PR middle-end/71170
12977 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
12978 (add_to_ops_vec): Add stmt_to_insert.
12979 (add_repeat_to_ops_vec): Init stmt_to_insert.
12980 (insert_stmt_before_use): New.
12981 (transform_add_to_multiply): Remove mult_stmt insertion and add it
12982 to ops vector.
12983 (get_ops): Init stmt_to_insert.
12984 (maybe_optimize_range_tests): Likewise.
12985 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
12986 (rewrite_expr_tree_parallel): Likewise.
12987 (reassociate_bb): Likewise.
12988
12989 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12990
12991 PR target/71201
12992 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
12993 ISA 3.0 xxperm fusion alternative.
12994 (altivec_vperm_v8hiv16qi): Likewise.
12995 (altivec_vperm_<mode>_uns_internal): Likewise.
12996 (vperm_v8hiv4si): Likewise.
12997 (vperm_v16qiv8hi): Likewise.
12998
12999 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13000 Kelvin Nilsen <kelvin@gcc.gnu.org>
13001
13002 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13003 vpermr/xxpermr on ISA 3.0.
13004 (altivec_expand_vec_perm_le): Likewise.
13005 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13006 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13007 ISA 3.0.
13008
13009 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
13010
13011 * config/i386/i386.h (IS_STACK_MODE): Enable for
13012 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
13013 SSE_FLOAT_MODE_P macros.
13014 * config/i386/i386.c (ix86_preferred_reload_class): Use
13015 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13016 Cleanup regclass processing for CONST_DOUBLE_P.
13017 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13018 (ix86_rtx_costs): Remove redundant TARGET_80387 check
13019 with IS_STACK_MODE macro.
13020 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13021 with TARGET_SSE2.
13022 (*movdf_internal): Use IS_STACK_MODE macro.
13023 (*movsf_internal): Ditto.
13024
13025 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
13026
13027 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13028 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13029
13030 2016-05-23 Jeff Law <law@redhat.com>
13031
13032 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13033 extracted from ...
13034 (fsm_find_control_statement_thread_paths): Call it.
13035
13036 2016-05-23 Martin Jambor <mjambor@suse.cz>
13037
13038 PR ipa/71234
13039 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13040 from_global_constant if t is not NULL.
13041
13042 2016-05-23 Marek Polacek <polacek@redhat.com>
13043
13044 PR c/49859
13045 * common.opt (Wswitch-unreachable): New option.
13046 * doc/invoke.texi: Document -Wswitch-unreachable.
13047 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13048 warning.
13049
13050 2016-05-23 Bin Cheng <bin.cheng@arm.com>
13051
13052 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13053 TMR_INDEX is non-NULL.
13054
13055 2016-05-23 Richard Biener <rguenther@suse.de>
13056
13057 PR tree-optimization/71230
13058 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13059 (try_special_add_to_ops): ... here. Always test for single-use.
13060
13061 2016-05-23 Martin Jambor <mjambor@suse.cz>
13062
13063 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13064 default block if a PHI node in the original one would be resized.
13065
13066 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13067
13068 PR tree-optimization/58135
13069 * tree-vect-slp.c: When group size is not multiple
13070 of vector size, allow splitting of store group at
13071 vector boundary.
13072
13073 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
13074
13075 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13076
13077 2016-05-22 Jakub Jelinek <jakub@redhat.com>
13078
13079 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13080 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13081 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
13082 of 64x2.
13083
13084 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13085 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13086 v constraint instead of x and vinserti32x4 insn.
13087
13088 * config/i386/sse.md (i128vldq): New mode iterator.
13089 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13090 avx512dq and avx512vl alternatives.
13091
13092 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13093 constraint, use maybe_evex prefix instead of vex.
13094 (vec_dupv4sf): Use v constraint instead of x for output
13095 operand except for noavx alternative, use Yv constraint
13096 instead of x for input. Use maybe_evex prefix instead of vex.
13097 (*vec_dupv4si): Likewise.
13098 (*vec_dupv2di): Likewise.
13099
13100 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13101
13102 PR middle-end/40921
13103 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13104 (linearize_expr_tree): Call try_special_add_to_ops.
13105 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13106
13107 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13108
13109 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13110 to computed stack_usage.
13111
13112 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13113
13114 PR target/71103
13115 * config/avr/avr.md (define_expand "mov<mode>"): If the source
13116 operand is subreg (symbol_ref) then move the symbol ref to register.
13117
13118 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
13119
13120 * tree.c (array_at_struct_end_p): Look through MEM_REF.
13121
13122 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13123
13124 PR middle-end/71179
13125 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13126 VECTOR type.
13127
13128 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13129
13130 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13131 ranges by calling get_single_symbol and tidy up. Look more closely
13132 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13133
13134 2016-05-20 Jeff Law <law@redhat.com>
13135
13136 * bitmap.c (bitmap_find_bit): Remove useless test.
13137
13138 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13139
13140 * function.c (thread_prologue_and_epilogue_insns): Commit the
13141 insertion of the epilogue.
13142
13143 2016-05-20 Martin Jambor <mjambor@suse.cz>
13144
13145 PR tree-optimization/70884
13146 * tree-sra.c (initialize_constant_pool_replacements): Do not check
13147 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13148 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13149 of constant pool data as a reason for scalarization.
13150
13151 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13152
13153 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13154 for naked functions.
13155 (thumb1_expand_prologue): Likewise.
13156
13157 2016-05-20 Nathan Sidwell <nathan@acm.org>
13158
13159 * config/nvptx/nptx.c (nvptx_option_override): Only set
13160 flag_toplevel_reorder, if not explicitly specified. Set
13161 flag_no_common, unless explicitly specified.
13162
13163 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13164
13165 * calls.c (can_implement_as_sibling_call_p): Mark param
13166 reg_parm_stack_space with ATTRIBUTE_UNUSED.
13167
13168 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
13169
13170 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13171 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13172 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13173 constants.
13174 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13175 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13176 and CASE_CONST_ANY.
13177
13178 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
13179
13180 * config/nvptx/nvptx.md (sincossf3): New pattern.
13181
13182 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13183
13184 * calls.c (maybe_complain_about_tail_call): New function.
13185 (initialize_argument_information): Call
13186 maybe_complain_about_tail_call when clearing *may_tailcall.
13187 (can_implement_as_sibling_call_p): Call
13188 maybe_complain_about_tail_call when returning false.
13189 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13190 ensure try_tail_call is set. Call maybe_complain_about_tail_call
13191 if tail-call optimization fails.
13192 * cfgexpand.c (expand_call_stmt): Initialize
13193 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13194 * gimple-pretty-print.c (dump_gimple_call): Dump
13195 gimple_call_must_tail_p.
13196 * gimple.c (gimple_build_call_from_tree): Call
13197 gimple_call_set_must_tail with the value of
13198 CALL_EXPR_MUST_TAIL_CALL.
13199 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13200 (gimple_call_set_must_tail): New function.
13201 (gimple_call_must_tail_p): New function.
13202 * print-tree.c (print_node): Update printing of TREE_STATIC
13203 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13204 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13205 trailing comment listing applicable flags.
13206 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13207
13208 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13209
13210 * calls.c (expand_call): Move "Rest of purposes for tail call
13211 optimizations to fail" to...
13212 (can_implement_as_sibling_call_p): ...this new function, and
13213 split into multiple "if" statements.
13214
13215 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13216
13217 * cfgloop.h (expected_loop_iterations_unbounded,
13218 expected_loop_iterations): Unconstify.
13219 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13220 profile with known upper bound; return 3 when profile is absent.
13221 (expected_loop_iterations): Update.
13222
13223 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13224
13225 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13226 and get_max_loop_iterations_int.
13227
13228 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13229
13230 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13231 realistic upper bounds here.
13232
13233 2016-05-20 Jakub Jelinek <jakub@redhat.com>
13234
13235 PR c++/71210
13236 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13237 calls if the LHS is variable length or has addressable type.
13238 If targets[0]->decl is a noreturn call with void return type and
13239 zero arguments, adjust fntype and remove lhs in that case.
13240
13241 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
13242
13243 PR tree-optimization/71079
13244 PR tree-optimization/71206
13245 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13246
13247 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13248
13249 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13250 (get_vec_alignment_for_array_decl): Likewise.
13251 (get_vec_alignment_for_record_decl): Likewise.
13252 (increase_alignment::execute): Move code to find alignment to
13253 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13254 (type_align_map): New hash_map.
13255
13256 2016-05-20 Richard Guenther <rguenther@suse.de>
13257
13258 PR tree-optimization/29756
13259 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13260 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13261 * fold-const.c (operand_equal_p): Likewise.
13262 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13263 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13264 * tree-inline.c (estimate_operator_cost): Likewise.
13265 * tree-pretty-print.c (dump_generic_node): Likewise.
13266 * tree-ssa-operands.c (get_expr_operands): Likewise.
13267 * cfgexpand.c (expand_debug_expr): Likewise.
13268 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13269 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13270 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13271 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13272 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13273 (execute_update_addresses_taken): Do it.
13274
13275 2016-05-20 Richard Biener <rguenther@suse.de>
13276
13277 PR tree-optimization/71185
13278 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13279 register operations.
13280
13281 2016-05-20 Richard Biener <rguenther@suse.de>
13282
13283 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13284 gimple_seq_add_seq_without_update.
13285 (release_bb_predicate): Assert we have no operands to free.
13286 (if_convertible_loop_p_1): Calculate post dominators later.
13287 Do not free BB predicates here.
13288 (combine_blocks): Do not recompute BB predicates.
13289 (version_loop_for_if_conversion): Save BB predicates around
13290 loop versioning.
13291
13292 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13293
13294 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13295 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
13296 code. Ignore sibcalls on EDGE_IGNORE edges.
13297 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
13298 on edges for sibcalls that run without prologue. The rest of the
13299 function is combined from...
13300 (fix_fake_fallthrough_edge): ... this, and ...
13301 (try_shrink_wrapping): ... a part of this. Remove the bb_with
13302 function argument, make it a local variable.
13303
13304 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
13305
13306 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13307 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13308 for 32-bit mode and SEH for 64-bit.
13309 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13310 TARGET_64BIT_DEFAULT.
13311
13312 2016-05-19 Ryan Burn <contact@rnburn.com>
13313
13314 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13315 * gengtype.c (open_base_files): Add cilk.h to ifiles.
13316
13317 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
13318
13319 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13320 force pending loads from memory.
13321
13322 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
13323
13324 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13325 (UNSPEC_DARN_32): New unspec constant.
13326 (UNSPEC_DARN_RAW): New unspec constant.
13327 (darn_32): New instruction.
13328 (darn_raw): New instruction.
13329 (darn): New instruction.
13330 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13331 support and documentation for this macro.
13332 (BU_P9_MISC_1): New macro definition.
13333 (BU_P9_64BIT_MISC_0): New macro definition.
13334 (BU_P9_MISC_0): New macro definition.
13335 (darn_32): New builtin definition.
13336 (darn_raw): New builtin definition.
13337 (darn): New builtin definition.
13338 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13339 RS6000_BUILTIN_0 directives to surround each occurrence of
13340 #include "rs6000-builtin.def".
13341 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13342 RS6000_BTM_64BIT flags to the returned mask, depending on
13343 configuration.
13344 (def_builtin): Correct an error in the assignments made to the
13345 debugging variable attr_string.
13346 (rs6000_expand_builtin): Add support for no-operand built-in
13347 functions.
13348 (builtin_function_type): Remove fatal_error assertion that is no
13349 longer valid.
13350 (rs6000_common_init_builtins): Add support for no-operand built-in
13351 functions.
13352 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13353 definition.
13354 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13355 definition.
13356 (RS6000_BTM_64BIT): New macro definition.
13357 * doc/extend.texi: Document __builtin_darn (void),
13358 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13359 functions.
13360
13361 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
13362
13363 * tree-vect-loop.c (vect_analyze_loop_2): Use also
13364 max_loop_iterations_int.
13365
13366 2016-05-19 Marek Polacek <polacek@redhat.com>
13367
13368 PR tree-optimization/71031
13369 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13370 condition and adjust the code a bit.
13371
13372 2016-05-19 Martin Liska <mliska@suse.cz>
13373
13374 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13375 auto_vec instead of vec.
13376
13377 2016-05-19 Martin Liska <mliska@suse.cz>
13378
13379 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13380
13381 2016-05-19 Martin Liska <mliska@suse.cz>
13382
13383 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13384
13385 2016-05-19 Martin Liska <mliska@suse.cz>
13386
13387 * ipa-pure-const.c (set_function_state): Remove an existing
13388 funct_state.
13389 (remove_node_data): Do not free it as it's released
13390 in set_function_state.
13391
13392 2016-05-19 Martin Liska <mliska@suse.cz>
13393
13394 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13395 bitmap.
13396
13397 2016-05-19 Martin Liska <mliska@suse.cz>
13398
13399 * omp-simd-clone.c (simd_clone_adjust): Release vector.
13400
13401 2016-05-19 Martin Liska <mliska@suse.cz>
13402
13403 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13404 an auto_vec instead of re-creating it.
13405
13406 2016-05-19 Martin Liska <mliska@suse.cz>
13407
13408 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
13409 auto_vec instead of vec.
13410
13411 2016-05-19 Martin Liska <mliska@suse.cz>
13412
13413 * lto-section-in.c (lto_get_section_data): Call
13414 lto_check_version with additional argument.
13415 * lto-streamer.c (lto_check_version): Add new argument.
13416 * lto-streamer.h (lto_check_version): Likewise.
13417
13418 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13419
13420 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
13421 Don't add cost of inner memory when handling sign-extended loads.
13422
13423 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
13424
13425 PR rtl-optimization/71148
13426 * cse.c (cse_main): Free dominance info.
13427 (rest_of_handle_cse): Don't free dominance info.
13428 (rest_of_handle_cse2): Likewise.
13429 (rest_of_handle_cse_after_global_opts): Likewise.
13430
13431 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13432
13433 PR target/71056
13434 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
13435 NULL_TREE early if NEON is not available. Remove now redundant check
13436 in ARM_CHECK_BUILTIN_MODE.
13437
13438 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
13439
13440 PR sanitizer/64354
13441 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
13442 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
13443 * doc/cpp.texi: Document new macros.
13444
13445 2016-05-19 Bin Cheng <bin.cheng@arm.com>
13446
13447 PR tree-optimization/69848
13448 * tree-vect-loop.c (vectorizable_reduction): Don't factor
13449 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
13450
13451 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13452
13453 * function.c (thread_prologue_and_epilogue_insn): Move the
13454 "goto epilogue_done" one block later.
13455
13456 2016-05-19 Richard Biener <rguenther@suse.de>
13457
13458 PR tree-optimization/70729
13459 * passes.def: Move LIM pass before PRE. Remove no longer
13460 required copyprop and move first DCE out of the loop pipeline.
13461
13462 2016-05-18 David Malcolm <dmalcolm@redhat.com>
13463
13464 PR driver/69265
13465 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
13466 (OBJS-libcommon-target): ...here.
13467 * opts-common.c: Include spellcheck.h.
13468 (cmdline_handle_error): Build a vec of valid options and use it
13469 to suggest provide hints for misspelled arguments.
13470
13471 2016-05-18 Jakub Jelinek <jakub@redhat.com>
13472
13473 PR c++/71100
13474 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
13475 lhs if it has TREE_ADDRESSABLE type.
13476
13477 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
13478
13479 PR target/71145
13480 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
13481 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
13482
13483 2016-05-18 Martin Jambor <mjambor@suse.cz>
13484
13485 PR ipa/69708
13486 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
13487 input for NOP_EXPR pass-through functions.
13488 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
13489 aggregate global constant VAR_DECLs in constant jump functions.
13490
13491 2016-05-18 Martin Jambor <mjambor@suse.cz>
13492
13493 PR ipa/69708
13494 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
13495 from TREE_READONLY parameters.
13496
13497 2016-05-18 Martin Jambor <mjambor@suse.cz>
13498
13499 PR ipa/69708
13500 * cgraph.h (cgraph_indirect_call_info): New field
13501 guaranteed_unmodified.
13502 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
13503 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13504 appropriate.
13505 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
13506 pass the parameter value to ipa_find_agg_cst_for_param.
13507 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
13508 guaranteed_unmodified, store AA results there instead of bailing out
13509 if present.
13510 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
13511 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
13512 (find_constructor_constant_at_offset): New function.
13513 (ipa_find_agg_cst_from_init): Likewise.
13514 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
13515 static initializers of contants, report back through a new paameter
13516 from_global_constant if that was the case.
13517 (try_make_edge_direct_simple_call): Also pass parameter value to
13518 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13519 appropriate.
13520 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
13521 (ipa_read_indirect_edge_info): Likewise.
13522 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
13523 (ipa_load_from_parm_agg): Likewise.
13524
13525 2016-05-18 Jiong Wang <jiong.wang@arm.com>
13526
13527 PR rtl-optimization/71150
13528 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
13529 check.
13530
13531 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13532
13533 PR target/70915
13534 * config/rs6000/constraints.md (wE constraint): New constraint
13535 for a vector constant that can be loaded with XXSPLTIB.
13536 (wM constraint): New constraint for a vector constant of a 1's.
13537 (wS constraint): New constraint for a vector constant that can be
13538 loaded with XXSPLTIB and a vector sign extend instruction.
13539 * config/rs6000/predicates.md (xxspltib_constant_split): New
13540 predicates for wE/wS constraints.
13541 (xxspltib_constant_nosplit): Likewise.
13542 (easy_vector_constant): Add support for constants that can be
13543 loaded via XXSPLTIB.
13544 (all_ones_constant): New predicate for vector constant with all
13545 1's set.
13546 (splat_input_operand): Add support for ISA 3.0 word splat operations.
13547 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
13548 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
13549 instruction and possibly with a sign extension.
13550 (output_vec_const_move): Add support for XXSPLTIB. If we are
13551 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
13552 instead of XXLXOR/XXLORC.
13553 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
13554 operations.
13555 (rs6000_legitimize_reload_address): Likewise.
13556 (rs6000_output_move_128bit): Use output_vec_const_move to emit
13557 constants.
13558 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
13559 combine VSX_M and VSX_M2 into one iterator.
13560 (VSX_M2): Likewise.
13561 (VSINT_84): New iterators for loading constants with XXSPLTIB.
13562 (VSINT_842): Likewise.
13563 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
13564 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
13565 XXSPLTIB instruction.
13566 (xxspltib_<mode>_nosplit): Likewise.
13567 (xxspltib_<mode>_split): New insn to load up constants with
13568 XXSPLTIB and a sign extend instruction.
13569 (vsx_mov<mode>): Replace single move that handled all vector types
13570 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
13571 moves (when -mvsx-timode is in effect) into the main vector
13572 moves. Eliminate separate moves for <VSr> <VSa>, where the
13573 preferred register class (<VSr>) is listed first, and the
13574 secondary register class (<VSa>) is listed second with a '?' to
13575 discourage use. Prefer loading 0/-1 in any VSX register for ISA
13576 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
13577 that if the register was involved in a slow operation, the
13578 clear/set operation does not wait for the slow operation to
13579 finish. Adjust the length attributes for 32-bit mode. Use
13580 rs6000_output_move_128bit and drop the use of the string
13581 instructions for 32-bit movti when -mvsx-timode is in effect. Use
13582 spacing so that the alternatives and attributes don't generate
13583 long lines, and put things in columns, so that it is easier to
13584 match up the operands and attributes with the insn alternatives.
13585 (vsx_mov<mode>_64bit): Likewise.
13586 (vsx_mov<mode>_32bit): Likewise.
13587 (vsx_movti_64bit): Fold movti into normal vector moves.
13588 (vsx_movti_32bit): Likewise.
13589 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
13590 splat instructions.
13591 (vsx_splat_v4si_internal): Likewise.
13592 (vsx_splat_v4sf_internal): Likewise.
13593 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
13594 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
13595 extend vector elements.
13596 (vsx_sign_extend_hi_<mode>): Likewise.
13597 (vsx_sign_extend_si_v2di): Likewise.
13598 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
13599 declaration.
13600 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
13601 constraints. Add trailing period to wL documentation.
13602
13603 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
13604
13605 PR middle-end/71020
13606 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
13607 * tree-dfa.c (replace_abnormal_ssa_names): New function.
13608 * tree-call-cdce.c: Include tree-dfa.h.
13609 (can_guard_call_p): New function, extracted from...
13610 (can_use_internal_fn): ...here.
13611 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
13612 and return void.
13613 (shrink_wrap_one_built_in_call): Likewise.
13614 (use_internal_fn): Likewise.
13615 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
13616 and return void. Call replace_abnormal_ssa_names.
13617 (pass_call_cdce::execute): Check can_guard_call_p during the
13618 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
13619 will always change something.
13620
13621 2016-05-18 Martin Jambor <mjambor@suse.cz>
13622
13623 PR ipa/70646
13624 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
13625 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
13626
13627 2016-05-18 Martin Jambor <mjambor@suse.cz>
13628
13629 PR ipa/70646
13630 * ipa-inline.h (condition): New field size.
13631 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
13632 for comaprison and store it into the new condition.
13633 (evaluate_conditions_for_known_args): Use condition size to check
13634 access sizes for all but CHANGED conditions.
13635 (unmodified_parm_1): New parameter size_p, store access size into it.
13636 (unmodified_parm): Likewise.
13637 (unmodified_parm_or_parm_agg_item): Likewise.
13638 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
13639 (set_cond_stmt_execution_predicate): Extract access sizes and store
13640 them to conditions.
13641 (set_switch_stmt_execution_predicate): Likewise.
13642 (will_be_nonconstant_expr_predicate): Likewise.
13643 (will_be_nonconstant_predicate): Likewise.
13644 (inline_read_section): Stream condition size.
13645 (inline_write_summary): Likewise.
13646
13647 2016-05-18 Richard Biener <rguenther@suse.de>
13648
13649 * tree-ssa-loop-im.c (determine_max_movement): Properly add
13650 condition cost to PHI cost instead of total_cost.
13651
13652 2016-05-18 Martin Liska <mliska@suse.cz>
13653
13654 PR fortran/70856
13655 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
13656 merged variables.
13657
13658 2016-05-18 Richard Biener <rguenther@suse.de>
13659
13660 * lto-streamer.h (LTO_major_version): Bump to 6.
13661
13662 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
13663
13664 * function.c (make_split_prologue_seq, make_prologue_seq,
13665 make_epilogue_seq): New functions, factored out from...
13666 (thread_prologue_and_epilogue_insns): Here.
13667
13668 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
13669
13670 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13671 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
13672 of before. Add a comment.
13673
13674 2016-05-18 Bin Cheng <bin.cheng@arm.com>
13675
13676 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
13677 expression pointer, not pointer to the pointer.
13678
13679 2016-05-18 Jakub Jelinek <jakub@redhat.com>
13680
13681 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
13682 (avx2_pbroadcast<mode>): Add another alternative with v instead
13683 of x constraints in it, using <pbroadcast_evex_isa> isa.
13684 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
13685
13686 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
13687 constraint x instead of v in second alternative, add avx512bw
13688 alternative.
13689
13690 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
13691 constraint x instead of v in second alternative, add avx512bw
13692 alternative.
13693
13694 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
13695 constraint x instead of v in second alternative, add avx512bw
13696 alternative.
13697
13698 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
13699 avx512bw alternative.
13700
13701 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
13702
13703 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
13704 array to 128 chars.
13705 (define_insn "*andnottf3"): Ditto.
13706 (define_insn "*<code><mode>3"/any_logic): Ditto.
13707 (define_insn "*<code>tf3"/any_logic): Ditto.
13708 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
13709 operand to block AVX-512VL insn variant emit when it is not enabled.
13710
13711 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
13712
13713 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
13714 constraint fot SF mode.
13715
13716 2016-05-18 Petr Murzin <petr.murzin@intel.com>
13717 Kirill Yukhin <kirill.yukhin@intel.com>
13718
13719 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
13720 modifiers.
13721 (define_insn "rsqrt14<mode>"): Ditto.
13722 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
13723 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13724 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
13725 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13726 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
13727 Ditto.
13728 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
13729 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13730 * config/i386/i386.c (ix86_print_operand): Expand check for size
13731 override codes for Intel syntax.
13732
13733 2016-05-18 Richard Biener <rguenther@suse.de>
13734
13735 PR tree-optimization/71168
13736 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13737 initialization earlier.
13738
13739 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
13740
13741 * config/aarch64/aarch64-simd.md
13742 (aarch64_reduc_plus_internal<mode>): Rename to...
13743 (reduc_plus_scal): ...This, and remove previous implementation.
13744
13745 2016-05-18 Richard Biener <rguenther@suse.de>
13746
13747 * passes.def: Put late dse and cd_dce in canonical order.
13748
13749 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
13750
13751 * ipa-inline-transform.c (preserve_function_body_p): Look for
13752 first non-thunk clone.
13753 (save_function_body): Save into first non-thunk.
13754 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13755 up call stmt id.
13756 (lto_output_node): Inline thunks don't need body in every
13757 partition.
13758 * lto-streamer-in.c: Do not fixup thunk clones.
13759 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13760 thunks.
13761 * tree-inline.c (copy_bb): Be prepared for target node to be new after
13762 folding suceeds.
13763
13764 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13765
13766 PR middle-end/63586
13767 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13768 (reassociate_bb): Call transform_add_to_multiply.
13769
13770 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13771
13772 * config/aarch64/aarch64.c (all_extensions): Removed unused
13773 static variable.
13774
13775 2016-05-17 Nathan Sidwell <nathan@acm.org>
13776
13777 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13778 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13779
13780 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
13781
13782 PR tree-optimization/54579
13783 PR middle-end/55299
13784 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13785
13786 2016-05-17 Marek Polacek <polacek@redhat.com>
13787
13788 PR ipa/71146
13789 * tree-inline.c (expand_call_inline): Call
13790 maybe_remove_unused_call_args.
13791
13792 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
13793
13794 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13795 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13796 * doc/md.texi (fmin@var{m}3): Likewise.
13797
13798 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13799
13800 * match.pd (X & C): New transformation.
13801
13802 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13803
13804 * match.pd (~X & Y): New transformation.
13805
13806 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13807
13808 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13809 information for new SSA_NAME.
13810 (simplify_conversion_using_ranges): Get range through get_range_info
13811 instead of get_value_range.
13812
13813 2016-05-17 Jiong Wang <jiong.wang@arm.com>
13814
13815 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
13816 Remove inline assembly.
13817 (vmvn_s16): Likewise.
13818 (vmvn_s32): Likewise.
13819 (vmvn_u8): Likewise.
13820 (vmvn_u16): Likewise.
13821 (vmvn_u32): Likewise.
13822 (vmvnq_s8): Likewise.
13823 (vmvnq_s16): Likewise.
13824 (vmvnq_s32): Likewise.
13825 (vmvnq_u8): Likewise.
13826 (vmvnq_u16): Likewise.
13827 (vmvnq_u32): Likewise.
13828 (vmvn_p8): Likewise.
13829 (vmvnq_p16): Likewise.
13830
13831 2016-05-17 Jiong Wang <jiong.wang@arm.com>
13832
13833 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
13834 Use builtin.
13835 (vmul_n_s16): Likewise.
13836 (vmul_n_s32): Likewise.
13837 (vmul_n_u16): Likewise.
13838 (vmul_n_u32): Likewise.
13839 (vmulq_n_f32): Likewise.
13840 (vmulq_n_f64): Likewise.
13841 (vmulq_n_s16): Likewise.
13842 (vmulq_n_s32): Likewise.
13843 (vmulq_n_u16): Likewise.
13844 (vmulq_n_u32): Likewise.
13845
13846 2016-05-17 Jiong Wang <jiong.wang@arm.com>
13847
13848 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
13849 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
13850
13851 2016-05-17 Jiong Wang <jiong.wang@arm.com>
13852
13853 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
13854 to *aarch64_fma4_elt_from_dup<mode>.
13855 (*aarch64_fnma4_elt_to_128df): Rename to
13856 *aarch64_fnma4_elt_from_dup<mode>.
13857 * config/aarch64/arm_neon.h (vfma_n_f64): New.
13858 (vfms_n_f32): Likewise.
13859 (vfms_n_f64): Likewise.
13860 (vfmsq_n_f32): Likewise.
13861 (vfmsq_n_f64): Likewise.
13862
13863 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
13864
13865 * wide-int.h: Change fixed_wide_int_storage from class to struct.
13866
13867 2016-05-17 Richard Biener <rguenther@suse.de>
13868
13869 PR tree-optimization/71132
13870 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
13871 Only add control dependences for blocks in the loop.
13872 (build_rdg): Adjust.
13873 (generate_code_for_partition): Return whether loop should
13874 be destroyed and delay that.
13875 (distribute_loop): Likewise.
13876 (pass_loop_distribution::execute): Record loops to be destroyed
13877 and perform delayed destroying of loops.
13878
13879 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13880
13881 PR target/70809
13882 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
13883
13884 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
13885
13886 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
13887
13888 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
13889
13890 PR target/71114
13891 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
13892 insertion point for instructions generated by validize_mem.
13893
13894 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
13895
13896 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13897 in brackets.
13898
13899 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
13900
13901 * config/aarch64/aarch64.c
13902 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13903 rather than a macro.
13904
13905 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
13906
13907 * doc/invoke.texi (AArch64 Options): Various updates.
13908
13909 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
13910
13911 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13912 into instrumentation thunks.
13913 * cif-code.def (CIF_CHKP): New.
13914
13915 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
13916
13917 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13918
13919 2016-05-16 Martin Jambor <mjambor@suse.cz>
13920
13921 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13922 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13923
13924 2016-05-16 Marek Polacek <polacek@redhat.com>
13925
13926 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13927 commentary.
13928
13929 2016-05-16 Martin Jambor <mjambor@suse.cz>
13930
13931 PR hsa/70857
13932 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13933 the outlined kernel function.
13934
13935 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
13936
13937 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13938 (ISA_HAS_DLSA): Ditto.
13939
13940 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
13941
13942 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13943
13944 2016-05-16 Nathan Sidwell <nathan@acm.org>
13945
13946 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13947 (nvptx_name_replacement): Restore. Add comment.
13948 (write_fn_proto, write_fn_proto_from_insn,
13949 nvptx_output_call_insn): Restore
13950 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13951
13952 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
13953
13954 * config/aarch64/aarch64.md
13955 (add<mode>3_compareC_cconly_imm): Remove use of %w.
13956 (add<mode>3_compareC_imm): Likewise.
13957 (<optab>si3_uxtw): Split into register and immediate variants.
13958 (andsi3_compare0_uxtw): Likewise.
13959 (and<mode>3_compare0): Likewise.
13960 (and<mode>3nr_compare0): Likewise.
13961 (stack_protect_test_<mode>): Don't use %x for memory operands.
13962
13963 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
13964
13965 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
13966
13967 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
13968
13969 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13970 Split integer shifts into shift_reg and bfm.
13971 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13972 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13973 (ror<mode>3_insn): Likewise.
13974 (<optab>si3_insn_uxtw): Likewise.
13975 (<optab><mode>3_insn): Change to rotate_imm.
13976 (extr<mode>5_insn_alt): Likewise.
13977 (extrsi5_insn_uxtw): Likewise.
13978 (extrsi5_insn_uxtw_alt): Likewise.
13979
13980 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
13981
13982 * doc/tm.texi: Regenerate.
13983 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
13984 (TARGET_INVALID_RETURN_TYPE): Remove.
13985 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
13986 TARGET_INVALID_RETURN_TYPE.
13987 * target.def (invalid_parameter_type): Remove.
13988 (invalid_return_type): Remove.
13989
13990 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
13991
13992 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
13993 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
13994 calls from thunk.
13995 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
13996 gimple body.
13997 (preserve_function_body_p): No need to preserve function body
13998 * cif-codes.def (CIF_THUNK): Remove.
13999 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14000
14001 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14002
14003 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14004
14005 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14006
14007 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14008 for thunks.
14009
14010 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14011
14012 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14013 (inline_small_functions): Do not look for function symbol when
14014 resetting caches.
14015
14016 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14017
14018 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14019 of inline thunks
14020
14021 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14022 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14023 Jiong Wang <jiong.wang@arm.com>
14024
14025 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14026 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14027 Define __ARM_FP16_ARGS when appropriate.
14028 * config/arm/arm.c (arm_invalid_parameter_type): Remove
14029 declaration.
14030 (arm_invalid_return_type): Likewise.
14031 (TARGET_INVALID_PARAMETER_TYPE): Remove.
14032 (TARGET_INVALID_RETURN_TYPE): Remove.
14033 (aapcs_vfp_sub_candidate): Allow HFmode.
14034 (aapcs_vfp_allocate): Add comment. Support HFmode.
14035 (aapcs_vfp_allocate_return_reg): Likewise.
14036 (struct aapcs_cp_arg_layout): Slightly reword comments for
14037 is_return_candidate and allocate_return_reg.
14038 (output_mov_vfp): Update assert.
14039 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14040 condition.
14041 (arm_invalid_parameter_type): Remove.
14042 (amr_invalid_return_type): Remove.
14043 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14044 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14045 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14046
14047 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14048
14049 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14050 * config/aarch64/arch64-protos.h
14051 (aarch64_legitimize_reload_address): Remove.
14052 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14053 Remove.
14054
14055 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
14056
14057 * configure.ac: Add ACX_NONCANONICAL_HOST.
14058 * configure: Regenerate.
14059 * Makefile.in: Set host_noncanonical.
14060
14061 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
14062
14063 PR target/71097
14064 * config/i386/i386.md (*movtf_internal): Before register allocation,
14065 do not allow FP constants for CM_MEDIUM memory model, allow only
14066 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14067 (*movxf_internal): Ditto.
14068 (*movdf_internal): Ditto.
14069 (*movsf_internal): Ditto.
14070
14071 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14072
14073 PR rtl-optimization/67483
14074 * combine.c (make_compound_operation): Don't call extract_left_shift
14075 with negative shift amounts.
14076
14077 2016-05-13 Jakub Jelinek <jakub@redhat.com>
14078
14079 PR bootstrap/71071
14080 * fold-const.c (fold_checksum_tree): Allow modification
14081 of TYPE_ALIAS_SET during folding.
14082
14083 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14084 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14085 (ix86_split_to_parts): Likewise. Fix up formatting.
14086
14087 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
14088
14089 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14090 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14091 printf format.
14092
14093 2016-05-13 Nathan Sidwell <nathan@acm.org>
14094
14095 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14096 (nvptx_name_replacement): Delete.
14097 (write_fn_proto, write_fn_proto_from_insn,
14098 nvptx_output_call_insn): Remove nvptx_name_replacement call.
14099 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14100 * langhooks.c (add_builtin_funcction_common): Call
14101 targetm.mangle_decl_assembler_name.
14102
14103 * config/nvptx/nvptx.c (write_fn_proto): Handle
14104 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14105
14106 2016-05-13 Martin Liska <mliska@suse.cz>
14107
14108 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14109 and PRIu64 in printf format.
14110
14111 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14112
14113 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14114 comment.
14115
14116 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14117
14118 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14119 Change --param max-completely-peeled-times to
14120 --param max-completely-peel-times in dump file printing.
14121
14122 2016-05-13 Richard Biener <rguenther@suse.de>
14123
14124 PR tree-optimization/42587
14125 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14126 (find_bswap_or_nop_1): Likewise.
14127 (bswap_replace): Likewise.
14128
14129 2016-05-13 Martin Liska <mliska@suse.cz>
14130
14131 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14132 Initialize a variable with default value.
14133
14134 2016-05-13 Martin Liska <mliska@suse.cz>
14135
14136 * doc/invoke.texi: Enhance explanation of error recovery
14137 of sanitizers.
14138
14139 2016-05-13 Martin Liska <mliska@suse.cz>
14140
14141 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14142 (struct cost_pair): Change inv_expr_id (int) to inv_expr
14143 (iv_inv_expr_ent *).
14144 (struct iv_inv_expr_ent): Comment struct fields.
14145 (sort_iv_inv_expr_ent): New function.
14146 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14147 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14148 a hash_map between iv_inv_expr_ent and number of usages.
14149 (niter_for_exit): Fix coding style.
14150 (tree_ssa_iv_optimize_init): Use renamed variable.
14151 (determine_base_object): Fix coding style.
14152 (alloc_iv): Likewise.
14153 (find_interesting_uses_outside): Likewise.
14154 (add_candidate_1): Likewise.
14155 (add_standard_iv_candidates): Likewise.
14156 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14157 (prepare_decl_rtl): Fix coding style.
14158 (get_address_cost): Likewise.
14159 (get_shiftadd_cost): Likewise.
14160 (force_expr_to_var_cost): Likewise.
14161 (compare_aff_trees): Likewise.
14162 (get_expr_id): Restructure the function.
14163 (get_loop_invariant_expr_id): Renamed to
14164 get_loop_invariant_expr.
14165 (get_computation_cost_at): Replace usage of inv_expr_id with
14166 inv_expr.
14167 (get_computation_cost): Likewise.
14168 (determine_group_iv_cost_generic): Likewise.
14169 (determine_group_iv_cost_address): Likewise.
14170 (iv_period): Fix coding style.
14171 (iv_elimination_compare_lt): Likewise.
14172 (may_eliminate_iv): Likewise.
14173 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
14174 inv_expr.
14175 (determine_group_iv_costs): Dump invariant expressions.
14176 (iv_ca_recount_cost): Use the newly added hash_map.
14177 (iv_ca_set_remove_invariants): Fix coding style.
14178 (iv_ca_set_add_invariants): Fix coding style.
14179 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14180 invariants.
14181 (iv_ca_set_cp): Likewise.
14182 (iv_ca_new): Initialize the newly added hash_map and remove
14183 initialization of fields.
14184 (iv_ca_free): Delete the hash_map.
14185 (iv_ca_dump): Dump invariant expressions.
14186 (iv_ca_extend): Fix coding style.
14187 (try_add_cand_for): Likewise.
14188 (create_new_ivs): Dump information about # of avg iterations and
14189 # of used invariant expressions.
14190 (rewrite_use_compare): Fix coding style.
14191 (free_loop_data): Set default value for max_inv_expr_id.
14192
14193 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14194
14195 * cse.c (rest_of_handle_cse): Use cleanup_cfg
14196 returned value cse_cfg_altered computation.
14197 (rest_of_handle_cse2): Likewise.
14198 (rest_of_handle_cse_after_global_opts): Likewise.
14199
14200 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14201
14202 PR target/53440
14203 * config/arm/arm.c (arm32_output_mi_thunk): New.
14204 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14205 to split Thumb1 vs TARGET_32BIT functionality.
14206 (arm_thumb1_mi_thunk): New.
14207
14208 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14209
14210 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14211 to true.
14212
14213 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215 PR target/71080
14216 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14217
14218 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
14219
14220 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14221 (expand_builtin_trap): Emit a regular call.
14222 (set_builtin_user_assembler_name): Remove obsolete cases.
14223 * dse.c (scan_insn): Adjust.
14224 * except.c: Include calls.h.
14225 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14226 emit a regular call to setjmp.
14227 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14228 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14229 (emit_block_move_via_libcall): Delete.
14230 (block_move_fn): Delete.
14231 (init_block_move_fn): Likewise.
14232 (emit_block_move_libcall_fn): Likewise.
14233 (emit_block_op_via_libcall): New function.
14234 (set_storage_via_libcall): Tidy up and use memset builtin.
14235 (block_clear_fn): Delete.
14236 (init_block_clear_fn): Likewise.
14237 (clear_storage_libcall_fn): Likewise.
14238 (expand_assignment): Call emit_block_move_via_libcall.
14239 Do not include gt-expr.h.
14240 * expr.h (emit_block_op_via_libcall): Declare.
14241 (emit_block_copy_via_libcall): New inline function.
14242 (emit_block_move_via_libcall): Likewise.
14243 (emit_block_comp_via_libcall): Likewise.
14244 (block_clear_fn): Delete.
14245 (init_block_move_fn): Likewise.
14246 (init_block_clear_fn): Likewise.
14247 (emit_block_move_via_libcall): Likewise.
14248 (set_storage_via_libcall): Add default parameter value.
14249 * libfuncs.h (enum libfunc_index): Remove obsolete values.
14250 (abort_libfunc): Delete.
14251 (memcpy_libfunc): Likewise.
14252 (memmove_libfunc): Likewise.
14253 (memcmp_libfunc): Likewise.
14254 (memset_libfunc): Likewise.
14255 (setbits_libfunc): Likewise.
14256 (setjmp_libfunc): Likewise.
14257 (longjmp_libfunc): Likewise.
14258 (profile_function_entry_libfunc): Likewise.
14259 (profile_function_exit_libfunc): Likewise.
14260 (gcov_flush_libfunc): Likewise.
14261 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14262 and DECL_VISIBILITY on the declaration.
14263 (init_optabs): Do not initialize obsolete libfuncs.
14264 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14265 * tree-core.h (ECF_RET1): Define.
14266 (ECF_TM_PURE): Adjust.
14267 (ECF_TM_BUILTIN): Likewise.
14268 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14269 (build_common_builtin_nodes): Initialize abort builtin.
14270 Add ECF_RET1 on memcpy, memmove and memset builtins.
14271 Pass final flags for alloca and alloca_with_align builtins.
14272 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14273 obsolete builtins.
14274 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14275 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14276 set_storage_via_libcall and call emit_block_copy_via_libcall.
14277
14278 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
14279
14280 * config/i386/i386.md (*call_got_x32): Change operand 0 to
14281 DImode before it is passed to ix86_output_call_operand.
14282 (*call_value_got_x32): Ditto for operand 1.
14283
14284 2016-05-12 Jiong Wang <jiong.wang@arm.com>
14285
14286 PR rtl-optimization/70904
14287 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14288 reload for wide mode.
14289
14290 2016-05-12 Marek Polacek <polacek@redhat.com>
14291
14292 PR c/70756
14293 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14294 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14295 * langhooks.h (incomplete_type_error): Likewise.
14296 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
14297 parameter, pass it down to incomplete_type_error.
14298 * tree.h (size_in_bytes): New inline overload.
14299 (size_in_bytes_loc): Renamed from size_in_bytes.
14300
14301 2016-05-12 Richard Biener <rguenther@suse.de>
14302
14303 PR tree-optimization/71059
14304 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14305 nary before looking up or entering the expression into the VN
14306 hashes.
14307 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14308 Make sure to re-use NARYs without result as inserted by
14309 phi-translation.
14310
14311 2016-05-12 Richard Biener <rguenther@suse.de>
14312
14313 PR tree-optimization/71062
14314 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14315 field.
14316 * tree-ssa-structalias.c (set_uids_in_ptset): Set
14317 vars_contains_restrict if the var is a restrict tag.
14318 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14319 do not disambiguate pointers against it.
14320 (dump_points_to_solution): Re-structure and adjust for new
14321 vars_contains_restrict flag.
14322 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14323
14324 2016-05-12 Martin Liska <mliska@suse.cz>
14325
14326 * doc/invoke.texi: Explain connection between
14327 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14328
14329 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
14330
14331 PR tree-optimization/71006
14332 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14333 consider COND_EXPR as a mask producer.
14334
14335 2016-05-12 Marek Polacek <polacek@redhat.com>
14336
14337 PR driver/71063
14338 * opts.c (common_handle_option): Detect missing argument for --help^.
14339
14340 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14341
14342 PR target/70830
14343 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14344 when popping the PC and within an interrupt handler routine.
14345 Add missing tab to output of "ldmfd".
14346 (output_return_instruction): Output LDMFD with SP update rather
14347 than POP when returning from interrupt handler.
14348
14349 2016-05-12 Jakub Jelinek <jakub@redhat.com>
14350
14351 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14352 TARGET_64BIT && TARGET_AVX512DQ.
14353 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14354 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14355 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14356 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14357 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14358 (*vec_extractv4si_zext): Add avx512dq alternative.
14359 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14360 use v instead of x constraint in other alternatives where possible.
14361
14362 * config/i386/sse.md (sse2_loadld): Use v instead of x
14363 constraint in alternatives 0,1,4.
14364
14365 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14366 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14367 v constraints instead of x and <pinsr_evex_isa> isa attribute.
14368
14369 PR target/71019
14370 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14371 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14372 is not emitted unless TARGET_AVX512BW.
14373 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14374 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14375 for the result operand.
14376
14377 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14378 constraint instead of x in avx alternatives. Use maybe_evex instead
14379 of vex prefix.
14380
14381 * config/i386/constraints.md (Yv): New constraint.
14382 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14383 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14384 * config/i386/i386.md (avx512fvecmode): New mode attr.
14385 (*pushtf): Use v constraint instead of x.
14386 (*movtf_internal): Likewise. For TARGET_AVX512VL and
14387 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14388 (*absneg<mode>2): Use Yv constraint instead of x constraint.
14389 (*absnegtf2_sse): Likewise.
14390 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14391 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14392 avx512f alternatives.
14393 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14394
14395 2016-05-12 Richard Biener <rguenther@suse.de>
14396
14397 PR tree-optimization/71060
14398 * tree-data-ref.c (initialize_data_dependence_relation): Do not
14399 require exact match of DR_BASE_OBJECT but only matching address and
14400 type.
14401
14402 2016-05-12 Richard Biener <rguenther@suse.de>
14403
14404 PR tree-optimization/70986
14405 * cfganal.c: Include cfgloop.h.
14406 (dfs_find_deadend): Prefer to take edges exiting loops.
14407
14408 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14409
14410 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
14411 compile and run time.
14412
14413 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
14414
14415 PR c/43651
14416 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
14417
14418 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
14419
14420 * config/i386/i386.c (legitimize_pic_address): Use
14421 copy_to_suggested_reg instead of gen_movsi.
14422
14423 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14424
14425 * config/rs6000/predicates.md (quad_memory_operand): Move most of
14426 the code into quad_address_p and call it to share code with
14427 vsx_quad_dform_memory_operand.
14428 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
14429 d-form support.
14430 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
14431 bit instead of being a separate word. Split -mpower9-dform into
14432 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14433 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
14434 for the register class supporting 128-bit quad word memory offsets.
14435 (mode_supports_vsx_dform_quad): Helper function to return if the
14436 register class uses quad word memory offsets.
14437 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
14438 (rs6000_debug_reg_global): Always print if we are using LRA or not.
14439 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
14440 instructions are enabled, set up the appropriate addr_masks for
14441 128-bit types.
14442 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
14443 -mpower9-dform-scalar, instead of -mpower9-dform.
14444 (rs6000_option_override_internal): Split -mpower9-dform into two
14445 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
14446 -mpower9-dform switch sets or clears both. If we are not using
14447 the LRA register allocator, do not enable -mpower9-dform-vector by
14448 default. If we are using LRA, enable -mpower9-dform-vector and
14449 -mvsx-timode if it is appropriate. Issue a warning if either
14450 -mpower9-dform-vector or -mvsx-timode are explicitly used without
14451 enabling LRA.
14452 (quad_address_offset_p): New helper function to return if the
14453 offset is legal for quad word memory instructions.
14454 (quad_address_p): New function to determin if GPR or vector
14455 register quad word memory addresses are legal.
14456 (mem_operand_gpr): Validate quad word address offsets.
14457 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
14458 d-form (register + offset) instructions.
14459 (offsettable_ok_by_alignment): Likewise.
14460 (rs6000_legitimate_offset_address_p): Likewise.
14461 (legitimate_lo_sum_address_p): Likewise.
14462 (rs6000_legitimize_address): Likewise.
14463 (rs6000_legitimize_reload_address): Add more debug statements for
14464 -mdebug=addr.
14465 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
14466 d-form instructions.
14467 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
14468 d-form instructions. Distinguish different cases in debug
14469 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
14470 d-form instructions.
14471 (rs6000_preferred_reload_class): Likewise.
14472 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
14473 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
14474 of the ISA 2.06 indexed memory instructions.
14475 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
14476 use them to save/restore the saved vector registers instead of
14477 using Altivec instructions.
14478 (rs6000_emit_epilogue): Likewise.
14479 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
14480 (rs6000_opt_masks): Split -mpower9-dform into
14481 -mpower9-dform-scalar and -mpower9-dform-vector.
14482 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
14483 was not selected.
14484 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
14485 ISA 3.0 vector indexed memory instructions, and fold the code into
14486 the normal mov<mode> patterns.
14487 (p9_vecstore_<mode>): Likewise.
14488 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
14489 instructions.
14490 (vsx_movti_64bit): Likewise.
14491 (vsx_movti_32bit): Likewise.
14492 * config/rs6000/constraints.md (wO constraint): New constraint for
14493 ISA 3.0 vector d-form support.
14494 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
14495 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
14496 include -mpower9-dform-vector until we switch over to LRA.
14497 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
14498 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14499 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
14500 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
14501 for -mpower9-dform and -mlra.
14502 * doc/md.texi (wO constraint): Document wO constraint.
14503
14504 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
14505
14506 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
14507 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
14508 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
14509 Move handling of non-insn arguments inline into the sole user:
14510 (output_trans_func): ...here.
14511 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
14512 in emitted function prototype.
14513 (output_internal_insn_latency_func): Ditto. Simplify.
14514 (output_internal_maximal_insn_latency_func): Ditto. Delete
14515 always-unused argument.
14516 (output_insn_latency_func): Ditto.
14517 (output_maximal_insn_latency_func): Ditto.
14518
14519 2016-05-11 Richard Biener <rguenther@suse.de>
14520
14521 PR tree-optimization/71055
14522 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
14523 sth with precision not equal to access size verify we don't chop
14524 off bits.
14525
14526 2016-05-11 Richard Biener <rguenther@suse.de>
14527
14528 PR debug/71057
14529 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
14530 (dwarf2out_finish): Move retry_incomplete_types call ...
14531 (dwarf2out_early_finish): ... here.
14532
14533 2016-05-11 Richard Biener <rguenther@suse.de>
14534
14535 PR middle-end/71002
14536 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
14537 if the langhook insists on it.
14538 * fold-const.c (make_bit_field_ref): Add arg for the original
14539 reference and preserve its alias-set.
14540 (decode_field_reference): Take exp by reference and adjust it
14541 to the original memory reference.
14542 (optimize_bit_field_compare): Adjust callers.
14543 (fold_truth_andor_1): Likewise.
14544 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
14545
14546 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
14547
14548 PR middle-end/70807
14549 * cfgrtl.h (delete_insn_and_edges): Now return bool.
14550 * cfgrtl.c (delete_insn_and_edges): Likewise.
14551 * config/i386/i386.c (convert_scalars_to_vector): Remove
14552 redundant code.
14553 * cse.c (cse_insn): Compute cse_cfg_altered.
14554 (delete_trivially_dead_insns): Likewise.
14555 (cse_cc_succs): Likewise.
14556 (rest_of_handle_cse): Free dominance info if required.
14557 (rest_of_handle_cse2): Likewise.
14558 (rest_of_handle_cse_after_global_opts): Likewise.
14559
14560 2016-05-11 Alan Modra <amodra@gmail.com>
14561
14562 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
14563 abi_v4_pass_in_fpr): New functions.
14564 (rs6000_function_arg_boundary): Exclude complex IBM long double
14565 from 64-bit alignment when ABI_V4.
14566 (rs6000_function_arg, rs6000_function_arg_advance_1,
14567 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
14568
14569 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
14570
14571 PR rtl-optimization/71028
14572 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
14573 jump with just a return in the fallthrough block if the branch
14574 block contains just a return as well.
14575
14576 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
14577
14578 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
14579 * match.pd ((X & Y) ^ Y): ... this.
14580 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
14581 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
14582
14583 2016-05-10 David Malcolm <dmalcolm@redhat.com>
14584
14585 * read-md.c (require_char_ws): New function.
14586 (read_string): Simplify using require_char_ws.
14587 (handle_constants): Likewise.
14588 (handle_enum): Likewise.
14589 (handle_file): Likewise.
14590 * read-md.h (require_char_ws): New declaration.
14591 * read-rtl.c (read_conditions): Simplify using require_char_ws.
14592 (read_mapping): Likewise.
14593 (read_rtx_code): Likewise.
14594 (read_nested_rtx): Likewise.
14595
14596 2016-05-10 James Norris <jnorris@codesourcery.com>
14597
14598 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
14599 if offloading is enabled and -fopenacc or -fopenmp is specified.
14600 (CRTOFFLOADEND): Likewise.
14601 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
14602 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
14603
14604 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
14605
14606 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
14607 gotoff_operand code paths. Use copy_to_suggested_regs and
14608 expand_simple_binop where appropriate. Cleanup.
14609
14610 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14611
14612 PR target/70799
14613 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
14614 integer constants.
14615 (dimode_scalar_chain::vector_const_cost): New.
14616 (dimode_scalar_chain::compute_convert_gain): Handle constants.
14617 (dimode_scalar_chain::convert_op): Likewise.
14618 (dimode_scalar_chain::convert_insn): Likewise.
14619
14620 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
14621
14622 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
14623 unary operation, not a binary one.
14624
14625 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14626
14627 PR middle-end/70877
14628 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
14629 calls with type casted fndecl.
14630
14631 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14632
14633 PR tree-optimization/70786
14634 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
14635 * calls.c (initialize_argument_information): Bind bounds
14636 with corresponding args passed by reference.
14637
14638 2016-05-10 Jakub Jelinek <jakub@redhat.com>
14639
14640 PR target/70927
14641 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
14642 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
14643 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
14644 accordingly.
14645
14646 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14647
14648 PR target/70963
14649 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
14650 code for a zero scale factor.
14651 (vsx_xvcvdpuxds_scale): Likewise.
14652
14653 2016-05-10 David Malcolm <dmalcolm@redhat.com>
14654
14655 * diagnostic-show-locus.c (layout::layout): Call show_ruler
14656 if show_ruler_p was set on the context.
14657 (layout::show_ruler): New method.
14658 * diagnostic.h (struct diagnostic_context): Add field
14659 "show_ruler_p".
14660
14661 2016-05-10 Richard Biener <rguenther@suse.de>
14662
14663 PR tree-optimization/71039
14664 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
14665 (chk_uses): New function.
14666 (propagate_with_phi): Verify we can safely replicate the lhs of an
14667 aggregate assignment on all incoming edges.
14668
14669 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
14670
14671 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
14672 Forward declare.
14673 (rx_atomic_sequence): New class.
14674 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
14675 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
14676 non-inline.
14677 (rx_atomic_sequence::rx_atomic_sequence,
14678 rx_atomic_sequence::~rx_atomic_sequence): New functions.
14679 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
14680 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
14681 CTRLREG_INTB): New constants.
14682 (FETCHOP): New code iterator.
14683 (fethcop_name, fetchop_name2): New iterator code attributes.
14684 (QIHI): New mode iterator.
14685 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
14686 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
14687 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
14688
14689 2016-05-10 Martin Liska <mliska@suse.cz>
14690
14691 * tree-inline.c (remap_dependence_clique): Do not remap
14692 debugging statements.
14693
14694 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14695
14696 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
14697 ("*fixuns_truncdfdi2_z13")
14698 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
14699 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
14700 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
14701
14702 2016-05-10 Richard Biener <rguenther@suse.de>
14703
14704 PR tree-optimization/70497
14705 PR tree-optimization/28367
14706 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
14707 split out from ...
14708 (visit_reference_op_load): ... here.
14709 (vn_reference_lookup_3): Use it to handle subreg-like accesses
14710 with simplified BIT_FIELD_REFs.
14711 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
14712 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
14713 correctly.
14714
14715 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
14716
14717 * dwarf2out.c (add_abstract_origin_attribute): Adjust
14718 documentation comment. For BLOCK nodes, add a
14719 DW_AT_abstract_origin attribute that points to the DIE generated
14720 for the origin BLOCK.
14721 (gen_lexical_block_die): Call add_abstract_origin_attribute for
14722 blocks from inlined functions.
14723
14724 2016-05-10 Alan Modra <amodra@gmail.com>
14725
14726 PR target/70947
14727 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
14728 regrename modifying insns saving lr before __morestack call.
14729 * config/rs6000/rs6000.md (split_stack_return): Similarly for
14730 insns restoring lr after __morestack call.
14731
14732 2016-05-09 Jakub Jelinek <jakub@redhat.com>
14733
14734 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14735 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14736 expanders.
14737 * config/i386/sse.md (vec_interleave_high<mode>,
14738 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14739 <avx512>_vpermt2var<mode>3_maskz): Likewise.
14740
14741 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14742
14743 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14744 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14745 parallel reassociation for power8 and forward.
14746
14747 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
14748
14749 * config/i386/i386.md (absneg splitters with general regs): Use
14750 general_reg_operand predicate.
14751 (btsq peephole2): Use x86_64_immediate_operand to check if new
14752 value is suitable for immediate operand. Generate emitted insn
14753 using RTL expressions.
14754 (btcq peephole2): Ditto.
14755 (btrq peephole2): Ditto. Generate correct immediate operand
14756 for AND masking.
14757
14758 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
14759
14760 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14761 bitpos.
14762
14763 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
14764
14765 * tree-affine.c (wide_int_constant_multiple_p): Add missing
14766 pointer dereference.
14767
14768 2016-05-09 Richard Biener <rguenther@suse.de>
14769
14770 PR tree-optimization/70985
14771 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14772 op0 isn't a gimple register.
14773
14774 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
14775
14776 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14777 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14778 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14779 (i6400_fpu_mult): New cpu units.
14780 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14781 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14782 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14783 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14784 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14785 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14786 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14787 (i6400_msa_long_float4, i6400_msa_long_float5)
14788 (i6400_msa_long_float8, i6400_msa_fdiv_df)
14789 (i6400_msa_fdiv_sf): New reservations.
14790 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14791 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14792 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14793 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14794 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14795 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14796 (msa_short_cmp, msa_short_float2, msa_short_logic3)
14797 (msa_short_store4, msa_long_load, msa_short_store)
14798 (msa_long_logic, msa_long_float2, msa_long_float4)
14799 (msa_long_float5, msa_long_float8, msa_long_mult)
14800 (msa_long_fdiv, msa_long_div): New reservations.
14801
14802 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
14803 Sameera Deshpande <sameera.deshpande@imgtec.com>
14804 Matthew Fortune <matthew.fortune@imgtec.com>
14805 Graham Stott <graham.stott@imgtec.com>
14806 Chao-ying Fu <chao-ying.fu@imgtec.com>
14807
14808 * config.gcc: Add MSA header file for mips*-*-* target.
14809 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14810 (Ubv8i, Urv8): New constraints.
14811 * config/mips/mips-ftypes.def: Add function types for MSA
14812 builtins.
14813 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14814 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
14815 * config/mips/mips-msa.md: New file.
14816 * config/mips/mips-protos.h
14817 (mips_split_128bit_const_insns): New prototype.
14818 (mips_msa_idiv_insns): Likewise.
14819 (mips_split_128bit_move): Likewise.
14820 (mips_split_128bit_move_p): Likewise.
14821 (mips_split_msa_copy_d): Likewise.
14822 (mips_split_msa_insert_d): Likewise.
14823 (mips_split_msa_fill_d): Likewise.
14824 (mips_expand_msa_branch): Likewise.
14825 (mips_const_vector_same_val_p): Likewise.
14826 (mips_const_vector_same_bytes_p): Likewise.
14827 (mips_const_vector_same_int_p): Likewise.
14828 (mips_const_vector_shuffle_set_p): Likewise.
14829 (mips_const_vector_bitimm_set_p): Likewise.
14830 (mips_const_vector_bitimm_clr_p): Likewise.
14831 (mips_msa_vec_parallel_const_half): Likewise.
14832 (mips_msa_output_division): Likewise.
14833 (mips_ldst_scaled_shift): Likewise.
14834 (mips_expand_vec_cond_expr): Likewise.
14835 * config/mips/mips.c (enum mips_builtin_type): Add
14836 MIPS_BUILTIN_MSA_TEST_BRANCH.
14837 (mips_gen_const_int_vector_shuffle): New prototype.
14838 (mips_const_vector_bitimm_set_p): New function.
14839 (mips_const_vector_bitimm_clr_p): Likewise.
14840 (mips_const_vector_same_val_p): Likewise.
14841 (mips_const_vector_same_bytes_p): Likewise.
14842 (mips_const_vector_same_int_p): Likewise.
14843 (mips_const_vector_shuffle_set_p): Likewise.
14844 (mips_symbol_insns): Forbid loading symbols via immediate for
14845 MSA.
14846 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
14847 stores.
14848 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
14849 MSA.
14850 (mips_lx_address_p): Add support load indexed address for MSA.
14851 (mips_address_insns): Add calculation of instructions needed for
14852 stores and loads for MSA.
14853 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
14854 CONST_VECTOR for MSA and let it fall through.
14855 (mips_ldst_scaled_shift): New function.
14856 (mips_subword_at_byte): Likewise.
14857 (mips_msa_idiv_insns): Likewise.
14858 (mips_legitimize_move): Validate MSA moves.
14859 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
14860 calculation of costs for MSA division.
14861 (mips_split_move_p): Check if MSA moves need splitting.
14862 (mips_split_move): Split MSA moves if necessary.
14863 (mips_split_128bit_move_p): New function.
14864 (mips_split_128bit_move): Likewise.
14865 (mips_split_msa_copy_d): Likewise.
14866 (mips_split_msa_insert_d): Likewise.
14867 (mips_split_msa_fill_d): Likewise.
14868 (mips_output_move): Handle MSA moves.
14869 (mips_expand_msa_branch): New function.
14870 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
14871 Reinstate 'y' modifier.
14872 (mips_file_start): Add MSA .gnu_attribute.
14873 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
14874 FPRs.
14875 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
14876 (mips_class_max_nregs): Add register size for MSA supported mode.
14877 (mips_cannot_change_mode_class): Allow conversion between MSA
14878 vector modes and TImode.
14879 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
14880 instruction.
14881 (mips_secondary_reload_class): Force MSA loads/stores via memory.
14882 (mips_preferred_simd_mode): Add preffered modes for MSA.
14883 (mips_vector_mode_supported_p): Add MSA supported modes.
14884 (mips_autovectorize_vector_sizes): New function.
14885 (mips_msa_output_division): Likewise.
14886 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
14887 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
14888 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
14889 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
14890 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
14891 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
14892 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14893 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14894 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14895 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14896 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
14897 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
14898 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
14899 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
14900 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14901 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14902 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14903 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14904 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14905 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14906 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14907 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14908 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14909 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14910 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14911 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14912 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14913 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14914 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14915 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14916 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14917 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14918 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14919 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14920 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14921 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14922 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14923 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14924 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14925 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14926 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14927 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14928 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14929 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14930 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14931 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14932 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14933 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14934 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14935 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14936 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14937 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14938 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14939 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14940 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14941 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14942 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14943 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14944 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14945 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14946 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14947 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14948 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14949 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14950 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14951 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14952 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14953 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14954 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
14955 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
14956 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
14957 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
14958 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
14959 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
14960 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
14961 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
14962 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
14963 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
14964 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
14965 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
14966 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
14967 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
14968 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
14969 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
14970 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
14971 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
14972 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
14973 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
14974 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
14975 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
14976 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
14977 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
14978 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
14979 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
14980 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
14981 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
14982 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
14983 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
14984 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
14985 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
14986 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
14987 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
14988 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
14989 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
14990 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
14991 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
14992 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
14993 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
14994 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
14995 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
14996 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
14997 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
14998 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
14999 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15000 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15001 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15002 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15003 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15004 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15005 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15006 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15007 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15008 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15009 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15010 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15011 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15012 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15013 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15014 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15015 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15016 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15017 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15018 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15019 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15020 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15021 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15022 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15023 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15024 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15025 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15026 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15027 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15028 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15029 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15030 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15031 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15032 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15033 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15034 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15035 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15036 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15037 move_v builtins.
15038 (mips_get_builtin_decl_index): New array.
15039 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15040 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15041 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15042 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15043 (mips_init_builtins): Initialize mips_get_builtin_decl_index
15044 array.
15045 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15046 hook.
15047 (mips_expand_builtin_insn): Prepare operands for
15048 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15049 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15050 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15051 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15052 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15053 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15054 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15055 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15056 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15057 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15058 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15059 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15060 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15061 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15062 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15063 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15064 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15065 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15066 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15067 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15068 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15069 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15070 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15071 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15072 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15073 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15074 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15075 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15076 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15077 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15078 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15079 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15080 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15081 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15082 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15083 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15084 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15085 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15086 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15087 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15088 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15089 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15090 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15091 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15092 These are set implicitly and an error is reported if overridden.
15093 (mips_expand_builtin_msa_test_branch): New function.
15094 (mips_expand_msa_shuffle): Likewise.
15095 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15096 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15097 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15098 (mips_expand_vec_unpack): Add support for MSA.
15099 (mips_expand_vector_init): Likewise.
15100 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15101 instead of const0_rtx.
15102 (mips_msa_vec_parallel_const_half): New function.
15103 (mips_gen_const_int_vector): Likewise.
15104 (mips_gen_const_int_vector_shuffle): Likewise.
15105 (mips_expand_msa_cmp): Likewise.
15106 (mips_expand_vec_cond_expr): Likewise.
15107 * config/mips/mips.h
15108 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15109 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15110 specified.
15111 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15112 (ISA_HAS_MSA): New macro.
15113 (UNITS_PER_MSA_REG): Likewise.
15114 (BITS_PER_MSA_REG): Likewise.
15115 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15116 (MSA_REG_FIRST): New macro.
15117 (MSA_REG_LAST): Likewise.
15118 (MSA_REG_NUM): Likewise.
15119 (MSA_REG_P): Likewise.
15120 (MSA_REG_RTX_P): Likewise.
15121 (MSA_SUPPORTED_MODE_P): Likewise.
15122 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15123 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15124 * config/mips/mips.md: Include mips-msa.md.
15125 (alu_type): Add simd_add.
15126 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15127 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15128 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15129 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15130 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15131 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15132 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15133 simd_move, simd_load, simd_store. Choose "multi" for moves
15134 for "qword_mode".
15135 (qword_mode): New attribute.
15136 (insn_count): Add instruction count for quad moves.
15137 Increase the count for MIPS SIMD division.
15138 (UNITMODE): Add UNITMODEs for vector types.
15139 (addsub): New code iterator.
15140 * config/mips/mips.opt (mmsa): New option.
15141 * config/mips/msa.h: New file.
15142 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15143 specified.
15144 * config/mips/mti-linux.h: Likewise.
15145 * config/mips/predicates.md
15146 (const_msa_branch_operand): New constraint.
15147 (const_uimm3_operand): Likewise.
15148 (const_uimm4_operand): Likewise.
15149 (const_uimm5_operand): Likewise.
15150 (const_uimm8_operand): Likewise.
15151 (const_imm5_operand): Likewise.
15152 (aq10b_operand): Likewise.
15153 (aq10h_operand): Likewise.
15154 (aq10w_operand): Likewise.
15155 (aq10d_operand): Likewise.
15156 (const_m1_operand): Likewise.
15157 (reg_or_m1_operand): Likewise.
15158 (const_exp_2_operand): Likewise.
15159 (const_exp_4_operand): Likewise.
15160 (const_exp_8_operand): Likewise.
15161 (const_exp_16_operand): Likewise.
15162 (const_vector_same_val_operand): Likewise.
15163 (const_vector_same_simm5_operand): Likewise.
15164 (const_vector_same_uimm5_operand): Likewise.
15165 (const_vector_same_uimm6_operand): Likewise.
15166 (const_vector_same_uimm8_operand): Likewise.
15167 (par_const_vector_shf_set_operand): Likewise.
15168 (reg_or_vector_same_val_operand): Likewise.
15169 (reg_or_vector_same_simm5_operand): Likewise.
15170 (reg_or_vector_same_uimm6_operand): Likewise.
15171 * doc/extend.texi (MIPS SIMD Architecture Functions): New
15172 section.
15173 * doc/invoke.texi (-mmsa): Document new option.
15174
15175 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15176
15177 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15178 * configure: Regenerate.
15179 * config.in: Regenerate.
15180 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15181 on -fvtable-verify.
15182 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15183 (ENDFILE_VTV_SPEC): Define.
15184
15185 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
15186
15187 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15188 registers in all interrupt handlers if necessary.
15189 (rl78_option_override): Add warning.
15190 (MUST_SAVE_MDUC_REGISTERS): New macro.
15191 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15192 * config/rl78/rl78.c (check_mduc_usage): New function.
15193 (mduc_regs): New structure to hold MDUC register data.
15194 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15195 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15196 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15197 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15198 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15199 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15200
15201 2016-05-09 Bin Cheng <bin.cheng@arm.com>
15202
15203 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15204 (tree-ssa-loop-niter.h): Ditto.
15205 (idx_within_array_bound, ref_within_array_bound): New functions.
15206 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15207 Factor out check on writable base object to ...
15208 (base_object_writable): ... here.
15209
15210 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15211
15212 * config/arm/arm.md (probe_stack): Add modes to set source
15213 and destination.
15214
15215 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
15216
15217 * regrename.c (base_reg_class_for_rename): New static function.
15218 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15219
15220 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
15221
15222 * cgraph.c (thunk_adjust): Export.
15223 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15224 * cgraphunit.c (thunk_adjust): Export.
15225 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15226 thunks.
15227 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15228 inlinable.
15229 * tree-inline.c (expand_call_inline): Expand thunks inline.
15230
15231 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
15232
15233 PR target/70998
15234 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15235 (*sse2_vd_cvtss2sd): Ditto.
15236 * config/i386/i386.md
15237 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15238 Generate *sse2_vd_cvtsd2ss pattern.
15239 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15240 Generate *sse2_vd_cvtss2sd pattern.
15241
15242 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15243
15244 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15245 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
15246 users.
15247
15248 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15249
15250 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15251 * config/sh/sh.c: Define and declare variables on first use throughout
15252 the file.
15253 (current_function_interrupt): Change to bool type.
15254 (frame_insn): Rename to emit_frame_insn and update users.
15255 (push_regs): Use bool for 'interrupt_handler' argument.
15256 (save_schedule_s): Remove.
15257 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15258 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15259 targetm.asm_out.unaligned_op.di.
15260 (gen_far_branch): Remove redundant forward declaration.
15261 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15262 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15263 (sh_set_return_address, sh_function_ok_for_sibcall,
15264 scavenge_reg): Update comments.
15265 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15266 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15267 (sh_attr_renesas_p): Remove unnecessary parentheses.
15268 (branch_dest): Simplify.
15269 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15270 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15271 (CUMULATIVE_ARGS): Change macro to typedef.
15272 (current_function_interrupt): Change to bool type.
15273 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15274 Surround with __cplusplus ifdef.
15275 (sh_compare_op0, sh_compare_op1): Remove.
15276 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15277
15278 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
15279
15280 * config/arm/arm.md: (arch): Add neon.
15281 (arch_enabled): Return yes for arch neon when TARGET_NEON.
15282 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
15283 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
15284 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
15285 attributes for alt renumbering. Mark alt 3 as non-predicable.
15286 (thumb2_movdf_vfp): Likewise.
15287
15288 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
15289
15290 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15291 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15292 (*andqi_1): Add preferred_for_speed attribute to disparage
15293 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15294 (*<code>qi_1): Ditto.
15295 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15296 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15297 (*ashlqi3_1): Ditto.
15298 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15299 Add preferred_for_size attribute to disparage alternative 0 and
15300 preferred_for_speed attribute to disparage alternative 1 for
15301 TARGET_PARTIAL_REG_STALL targets.
15302
15303 2016-05-07 Tom de Vries <tom@codesourcery.com>
15304
15305 PR tree-optimization/70956
15306 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15307 def.
15308
15309 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
15310
15311 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15312 * config/sh/sh.c (sh_cbranch_distance): Implement it.
15313 * config/sh/sh.md (branch_zero): Remove define_attr.
15314 (define_delay): Disable delay slot if branch distance is one insn.
15315
15316 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15317
15318 * config/i386/i386.md (LEAMODE): New mode attribute.
15319 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15320 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15321 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
15322 operand 2 predicate.
15323 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15324 (*lea<mode>_general_3): Ditto.
15325 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15326
15327 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15328
15329 * genmddump.c (main): Convert argv from char ** to const char **.
15330
15331 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15332
15333 * coretypes.h (OVERRIDE): New macro.
15334 (FINAL): New macro.
15335
15336 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
15337
15338 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15339 allow coalescing if the types are compatible.
15340
15341 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15342
15343 * pass_manager.h (pass_manager::register_pass_name): New method.
15344 (pass_manager::get_pass_by_name): New method.
15345 (pass_manager::create_pass_tab): New method.
15346 (pass_manager::m_name_to_pass_map): New field.
15347 * passes.c (name_to_pass_map): Delete global in favor of field
15348 "m_name_to_pass_map" of pass_manager.
15349 (register_pass_name): Rename from a function to...
15350 (pass_manager::register_pass_name): ...this method, updating
15351 for renaming of global "name_to_pass_map" to field
15352 "m_name_to_pass_map".
15353 (create_pass_tab): Rename from a function to...
15354 (pass_manager::create_pass_tab): ...this method, updating
15355 for renaming of global "name_to_pass_map" to field.
15356 (get_pass_by_name): Rename from a function to...
15357 (pass_manager::get_pass_by_name): ...this method.
15358 (enable_disable_pass): Convert use of get_pass_by_name to
15359 a method call, locating the pass_manager singleton.
15360
15361 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15362
15363 * genattr-common.c (main): Convert argv from char ** to const char **.
15364 * genattr.c (main): Likewise.
15365 * genattrtab.c (main): Likewise.
15366 * genautomata.c (initiate_automaton_gen): Likewise.
15367 (main): Likewise.
15368 * gencodes.c (main): Likewise.
15369 * genconditions.c (main): Likewise.
15370 * genconfig.c (main): Likewise.
15371 * genconstants.c (main): Likewise.
15372 * genemit.c (main): Likewise.
15373 * genenums.c (main): Likewise.
15374 * genextract.c (main): Likewise.
15375 * genflags.c (main): Likewise.
15376 * genmddeps.c (main): Likewise.
15377 * genopinit.c (main): Likewise.
15378 * genoutput.c (main): Likewise.
15379 * genpeep.c (main): Likewise.
15380 * genpreds.c (main): Likewise.
15381 * genrecog.c (main): Likewise.
15382 * gensupport.c (init_rtx_reader_args_cb): Likewise.
15383 (init_rtx_reader_args): Likewise.
15384 * gensupport.h (init_rtx_reader_args_cb): Likewise.
15385 (init_rtx_reader_args): Likewise.
15386 * gentarget-def.c (main): Likewise.
15387 * read-md.c (read_md_files): Likewise.
15388 * read-md.h (read_md_files): Likewise.
15389
15390 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15391
15392 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15393 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15394 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15395 Remove unused predicate.
15396 (register_and_not_fp_reg_operand): Ditto.
15397
15398 2016-05-06 Martin Liska <mliska@suse.cz>
15399
15400 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15401 instead of vec as the vector is local to the function.
15402
15403 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15404
15405 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15406 avx512bw alternative.
15407
15408 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
15409 before the ashr<mode>3 pattern.
15410
15411 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
15412 v instead of x in vex or maybe_vex alternatives, use
15413 maybe_evex instead of vex in prefix.
15414
15415 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
15416 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
15417 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
15418 in vex or maybe_vex alternatives, use maybe_evex instead of vex
15419 in prefix.
15420
15421 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
15422 v instead of x in vex or maybe_vex alternatives, use
15423 maybe_evex instead of vex in prefix.
15424
15425 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
15426 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
15427 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
15428 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
15429 alternatives, use maybe_evex instead of vex in prefix.
15430
15431 * config/i386/sse.md (vec_interleave_lowv4sf,
15432 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
15433 v instead of x in vex or maybe_vex alternatives, use
15434 maybe_evex instead of vex in prefix.
15435
15436 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
15437 v instead of x in vex or maybe_vex alternatives, use
15438 maybe_evex instead of vex in prefix.
15439
15440 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
15441 v constraint instead of x.
15442
15443 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
15444
15445 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
15446 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
15447 equality first.
15448
15449 2016-05-06 Richard Biener <rguenther@suse.de>
15450
15451 PR tree-optimization/70948
15452 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15453 Properly clobber all fields of va_list for __builtin_va_start.
15454
15455 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
15456
15457 PR debug/70935
15458 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
15459 loop latch destination.
15460
15461 2016-05-06 Martin Liska <mliska@suse.cz>
15462
15463 * tree-ssa-uninit.c: Apply manual changes
15464 to the GNU coding style.
15465 (prune_uninit_phi_opnds): Rename from
15466 prune_uninit_phi_opnds_in_unrealizable_paths.
15467
15468 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15469
15470 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
15471 mspace): Remove deprecated options.
15472 * doc/invoke.texi (SH options): Remove -mspace.
15473
15474 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15475
15476 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
15477
15478 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15479
15480 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
15481 corresponding combine split pattern.
15482
15483 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15484
15485 PR target/58219
15486 * config/sh/predicates.md (long_displacement_mem_operand): New.
15487 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
15488 Add movi20, movi20s alternatives. Adjust length attribute for
15489 alternatives.
15490 (movsi_ie): Allow for any FPU. Adjust length attribute for
15491 alternatives.
15492 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
15493 attribute for alternatives.
15494 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
15495 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
15496 length attribute for alternatives.
15497
15498 2016-05-06 Richard Biener <rguenther@suse.de>
15499
15500 PR tree-optimization/70960
15501 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
15502
15503 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15504
15505 PR target/52933
15506 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
15507 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
15508
15509 2016-05-06 Marek Polacek <polacek@redhat.com>
15510
15511 PR sanitizer/70875
15512 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
15513
15514 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15515
15516 PR target/54089
15517 * config/sh/sh.md (*rotcr): Add another variant.
15518
15519 2016-05-06 Richard Biener <rguenther@suse.de>
15520
15521 PR middle-end/70931
15522 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
15523
15524 2016-05-06 Richard Biener <rguenther@suse.de>
15525
15526 PR middle-end/70941
15527 * fold-const.c (split_tree): Always convert to the original type
15528 before negating.
15529
15530 2016-05-06 Richard Biener <rguenther@suse.de>
15531
15532 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
15533 (fwprop_addr): Likewise.
15534
15535 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15536
15537 PR target/70873
15538 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
15539 New prototype.
15540 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
15541 * config/i386/i386.md (push mem splitter): Use find_constant_src in
15542 the splitter condition.
15543 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
15544 the splitter condition.
15545 (FP float_extend load splitter): Ditto.
15546
15547 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
15548
15549 * config/i386/i386.md (peehole2 patterns): Change true_regnum
15550 to REGNO in all peephole2 patterns.
15551 (post-reload splitters): Change true_regnum to REGNO in
15552 post-reload splitters.
15553 (zero_extend splitters): Use general_reg_operand and
15554 nonimmediate_gr_operand predicates.
15555
15556 2016-05-05 Jakub Jelinek <jakub@redhat.com>
15557
15558 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
15559 v constraint instead of x.
15560
15561 2016-05-05 Alan Modra <amodra@gmail.com>
15562
15563 PR target/68662
15564 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15565 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
15566 TARGET_NO_FP_IN_TOC for -mrelocatable.
15567 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
15568 TARGET_RELOCATABLE test.
15569 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15570 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15571 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15572 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15573 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15574 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15575 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15576 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15577 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
15578 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15579 Likewise.
15580 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
15581 (rs6000_stack_info): Likewise.
15582 (rs6000_elf_asm_out_constructor): Likewise.
15583 (rs6000_elf_asm_out_destructor): Likewise.
15584 (rs6000_elf_declare_function_name): Likewise.
15585 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
15586 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
15587 Don't define.
15588
15589 2016-05-05 Alan Modra <amodra@gmail.com>
15590
15591 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
15592
15593 2016-05-05 Alan Modra <amodra@gmail.com>
15594
15595 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
15596 out-of-line gpr restore for one or two regs if that would add
15597 a save of lr.
15598
15599 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
15600
15601 PR target/70873
15602 * config/i386/i386.md
15603 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
15604 Change to post-epilogue_completed late splitter. Use sse_reg_operand
15605 as operand 0 predicate.
15606 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
15607 Ditto.
15608 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
15609 Ditto. Emit the pattern using RTX.
15610
15611 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
15612 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
15613 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
15614 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
15615 Ditto.
15616 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
15617 sse_reg_operand as operand 0 predicate.
15618
15619 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
15620 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
15621 instead of gen_rtx_REG.
15622 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
15623 Ditto.
15624
15625 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15626
15627 * function.c (emit_use_return_register_into_block): Delete.
15628 (gen_return_pattern): Delete.
15629 (emit_return_into_block): Delete.
15630 (active_insn_between): Delete.
15631 (convert_jumps_to_returns): Delete.
15632 (emit_return_for_exit): Delete.
15633 (thread_prologue_and_epilogue_insns): Delete all code dealing with
15634 simple_return for shrink-wrapped blocks.
15635 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
15636 end of blocks that need one.
15637 (get_unconverted_simple_return): Delete.
15638 (convert_to_simple_return): Delete.
15639 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
15640 (convert_to_simple_return): Ditto.
15641
15642 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15643
15644 * cfgcleanup.c (bb_is_just_return): New function.
15645 (try_optimize_cfg): Simplify jumps to return, branches to return,
15646 and branches around return.
15647
15648 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15649
15650 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
15651 branch to a return.
15652
15653 2016-05-04 Jakub Jelinek <jakub@redhat.com>
15654
15655 PR c++/70906
15656 PR c++/70933
15657 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
15658 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
15659 assert flags & OEP_HASH_CHECK, instead of asserting it
15660 never happens. Handle TARGET_EXPR.
15661 * fold-const.c (operand_equal_p): For hash verification,
15662 or in OEP_HASH_CHECK into flags.
15663
15664 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
15665
15666 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
15667 comment.
15668 (compute_samebase_partition_bases): Fix typo.
15669
15670 2016-05-04 Jakub Jelinek <jakub@redhat.com>
15671
15672 * config/i386/sse.md (vec_interleave_highv8sf,
15673 vec_interleave_lowv8sf, vec_interleave_highv4df,
15674 vec_interleave_lowv4df): Remove constraints from expanders.
15675
15676 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
15677
15678 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
15679
15680 * tree-inline.c (expand_call_inline): Fix path dealing with
15681 making lhs of call statement undefined.
15682
15683 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
15684
15685 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15686 Check availability on NODE, too.
15687 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
15688 (cgraph_node::call_for_symbol_and_aliases): Likewise.
15689 (varpool_node::call_for_symbol_and_aliase): Likewise.
15690 * ipa-pure-const.c (add_new_function): Analyze all bodies.
15691 (propagate_pure_const): Propagate across interposable functions, too.
15692 (skip_function_for_local_pure_const): Do not skip interposable bodies
15693 with aliases.
15694 (pass_local_pure_const::execute): Update.
15695
15696 2016-05-04 Marek Polacek <polacek@redhat.com>
15697
15698 * doc/invoke.texi: Document -Wdangling-else.
15699
15700 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15701
15702 * config.gcc: Error out when conflicting multilib is detected. Do not
15703 loop over multilibs since no combination is legal.
15704
15705 2016-05-04 Alan Modra <amodra@gmail.com>
15706
15707 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
15708 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
15709 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15710 Align .toc.
15711
15712 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
15713
15714 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
15715 Clean up p5600 comments.
15716
15717 2016-05-04 Richard Biener <rguenther@suse.de>
15718
15719 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
15720 constructor simplifications.
15721 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
15722
15723 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
15724
15725 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
15726 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
15727 result.set_rtx is null instead of aborting.
15728 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
15729 Always enable.
15730 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15731 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15732 *mov<mode>_store_postinc): New patterns.
15733
15734 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
15735
15736 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
15737 as commutative. Check both conversions are NOP.
15738 ((A & B) OP (C & B)): Remove.
15739
15740 2016-05-04 Alan Modra <amodra@gmail.com>
15741
15742 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15743
15744 2016-05-04 Alan Modra <amodra@gmail.com>
15745
15746 PR target/70866
15747 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15748 when cr2,3,4 are all fixed regs.
15749
15750 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
15751
15752 PR rtl-optimization/57193
15753 * opts.c (default_options_table): Revert OPT_frename_registers change.
15754 * doc/invoke.texi (-frename-registers, -O2): Likewise.
15755
15756 2016-05-03 Martin Sebor <msebor@redhat.com>
15757
15758 PR c++/66561
15759 * builtins.c (fold_builtin_FILE): New function.
15760 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15761 (fold_builtin_0): Call them.
15762 * gimplify.c (gimplify_call_expr): Remove the handling of
15763 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15764
15765 PR c++/66561
15766 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15767 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15768 constants.
15769
15770 PR c++/66639
15771 * doc/extend.texi (Function Names as Strings): Update __func__,
15772 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15773 constants.
15774
15775 2016-05-03 Jakub Jelinek <jakub@redhat.com>
15776 Richard Biener <rguenther@suse.de>
15777
15778 PR tree-optimization/70916
15779 * tree-if-conv.c: Include cfganal.h.
15780 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15781 and remove_fake_exit_edges around the optimization pass.
15782
15783 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
15784
15785 * cgraph.c (symbol_table::create_edge): Set inline_failed.
15786 (cgraph_edge::make_direct): Likewise.
15787 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15788 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15789 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15790 (CIF_THUNK): New code.
15791 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15792 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15793 (compute_inline_parameters): Set inline_failed for thunks.
15794 (inline_analyze_function): Cleanup.
15795 * ipa-inline.c (can_inline_edge_p): Do not deal with
15796 call_stmt_cannot_inline_p.
15797 (can_early_inline_edge_p): Likewise.
15798 (early_inliner): Initialize inline_failed.
15799 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15800
15801 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
15802
15803 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15804 from nonimm_ssenomem_operand.
15805 (nonimm_ssenomem_operand): New predicate.
15806 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15807 as operand 0 predicate.
15808 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15809 Disable unsupported alternatives using "enabled" attribute.
15810 Use register_ssemem_operand as operand 0 predicate.
15811 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15812
15813 2016-05-03 Marek Polacek <polacek@redhat.com>
15814
15815 PR c/70859
15816 * input.c (expansion_point_location): New function.
15817 * input.h (expansion_point_location): Declare.
15818
15819 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
15820
15821 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
15822 occurence with frame_offset_ ones.
15823
15824 2016-05-03 Alan Modra <amodra@gmail.com>
15825
15826 PR rtl-optimization/70890
15827 * ira.c (combine_and_move_insns): When moving def_insn, remove
15828 equivs on use_insn.
15829
15830 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
15831
15832 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
15833 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
15834 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
15835 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
15836
15837 2016-05-03 Alan Modra <amodra@gmail.com>
15838
15839 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
15840 for SAVE_MULTIPLE/STORE_MULTIPLE.
15841
15842 2016-05-03 Jakub Jelinek <jakub@redhat.com>
15843
15844 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
15845 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
15846
15847 2016-05-03 Richard Biener <rguenther@suse.de>
15848
15849 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
15850 default true.
15851 (gimplify_arg): Likewise.
15852 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
15853 re-writing the result to a decl if required.
15854 (internal_get_tmp_var): Add allow_ssa parameter
15855 and override into_ssa with it.
15856 (get_formal_tmp_var): Adjust.
15857 (get_initialized_tmp_var): Add allow_ssa parameter.
15858 (gimplify_arg): Add allow_ssa parameter and avoid generating
15859 SSA names for the result false.
15860 (gimplify_call_expr): If the call may return twice do not
15861 gimplify parameters into SSA.
15862 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
15863 (gimplify_modify_expr): Adjust assert. For noreturn calls
15864 with a SSA name LHS adjust its def.
15865 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
15866 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
15867 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
15868 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
15869 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
15870 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
15871 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
15872 (optimize_target_teams): Do not allow SSA names for clause operands.
15873 (gimplify_expr): Likewise for where we mark the result addressable.
15874 * passes.def (pass_init_datastructures): Remove.
15875 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
15876 (rewrite_stmt): Likewise.
15877 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
15878 (replace_locals_op): Replace SSA names.
15879 (copy_gimple_seq_and_replace_locals): Init src_cfun.
15880 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
15881 * cgraph.c (release_function_body): Free CFG annotations only
15882 when we have a CFG. Simplify.
15883 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15884 force_gimple_operand instead of get_initialized_tmp_var.
15885 * tree-pass.h (make_pass_init_datastructures): Remove.
15886 * tree-ssa.c (execute_init_datastructures): Remove.
15887 (pass_data_init_datastructures): Likewise.
15888 (class pass_init_datastructures): Likewise.
15889 (make_pass_init_datastructures): Likewise.
15890 * omp-low.c (create_omp_child_function): Init SSA data structures.
15891 (grid_expand_target_grid_body): Likewise.
15892 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15893 name before adding it to names_to_release.
15894 (remove_bb): Always release SSA defs.
15895 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15896 before dereferencing it.
15897 * cgraphunit.c (init_lowered_empty_function): Always
15898 int SSA data structures.
15899 * tree-ssanames.c (release_defs): Remove assert that we are in
15900 SSA form.
15901 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15902
15903 2016-05-03 Jakub Jelinek <jakub@redhat.com>
15904 Uros Bizjak <ubizjak@gmail.com>
15905
15906 PR rtl-optimization/70467
15907 * config/i386/predicates.md (x86_64_hilo_int_operand,
15908 x86_64_hilo_general_operand): New predicates.
15909 * config/i386/constraints.md (Wd): New constraint.
15910 * config/i386/i386.md (mode attr di): Use Wd instead of e.
15911 (general_hilo_operand): New mode attr.
15912 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15913 instead of <general_operand>.
15914 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15915 x86_64_hilo_general_operand instead of <general_operand>.
15916
15917 2016-05-03 Jakub Jelinek <jakub@redhat.com>
15918
15919 PR tree-optimization/70916
15920 * tree-if-conv.c (constant_or_ssa_name): Removed.
15921 (fold_build_cond_expr): Use is_gimple_val instead of
15922 constant_or_ssa_name.
15923
15924 PR tree-optimization/70916
15925 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15926 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15927
15928 PR target/49244
15929 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15930 (optimize_atomic_bit_test_and): New function.
15931 (pass_fold_builtins::execute): Use it.
15932 * optabs.def (atomic_bit_test_and_set_optab,
15933 atomic_bit_test_and_complement_optab,
15934 atomic_bit_test_and_reset_optab): New optabs.
15935 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15936 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15937 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15938 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15939 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15940 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15941 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15942 * doc/md.texi (atomic_bit_test_and_set@var{mode},
15943 atomic_bit_test_and_complement@var{mode},
15944 atomic_bit_test_and_reset@var{mode}): Document.
15945 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15946 atomic_bit_test_and_complement<mode>,
15947 atomic_bit_test_and_reset<mode>): New expanders.
15948 (atomic_bit_test_and_set<mode>_1,
15949 atomic_bit_test_and_complement<mode>_1,
15950 atomic_bit_test_and_reset<mode>_1): New insns.
15951
15952 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
15953
15954 PR rtl-optimization/70687
15955 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
15956 instead of unsigned HOST_WIDE_INT.
15957
15958 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
15959
15960 PR rtl-optimization/44281
15961 * hard-reg-set.h (struct target_hard_regs): New field
15962 x_fixed_nonglobal_reg_set.
15963 (fixed_nonglobal_reg_set): New macro.
15964 * reginfo.c (init_reg_sets_1): Initialize it.
15965 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
15966 of fixed_reg_set.
15967 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
15968
15969 2016-05-03 Bin Cheng <bin.cheng@arm.com>
15970
15971 PR tree-optimization/56541
15972 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
15973 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
15974 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
15975 (any_complicated_phi): new static variable.
15976 (aggressive_if_conv): delete.
15977 (if_convertible_phi_p): support phis with more than two arguments.
15978 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
15979 critical pred edges.
15980 (ifcvt_split_critical_edges): support phis with more than two
15981 arguments by checking new parameter. only split critical edges
15982 if needed.
15983 (tree_if_conversion): handle simd pragma marked loop using new
15984 local variable aggressive_if_conv. check any_complicated_phi.
15985
15986 2016-05-03 Bin Cheng <bin.cheng@arm.com>
15987
15988 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
15989 before using it.
15990
15991 2016-05-03 Bin Cheng <bin.cheng@arm.com>
15992
15993 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
15994 cbase.
15995
15996 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
15997
15998 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
15999 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16000 define_insn_and_split.
16001 (mulsi3_i): New define_insn_and_split.
16002 (mulsi3_call): Convert to define_insn.
16003 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16004 Remove constraints.
16005
16006 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16007
16008 * machmode.h (mode_complex): Add support to give the complex mode
16009 for a given mode.
16010 (GET_MODE_COMPLEX_MODE): Likewise.
16011 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16012 stored by build_complex_type and gfc_build_complex_type instead of
16013 trying to figure out the appropriate mode based on the size. Raise
16014 an assertion error, if the type was not set.
16015 * genmodes.c (struct mode_data): Add field for the complex type of
16016 the given type.
16017 (blank_mode): Likewise.
16018 (make_complex_modes): Remember the complex mode created in the
16019 base type.
16020 (emit_mode_complex): Write out the mode_complex array to map a
16021 type mode to the complex version.
16022 (emit_insn_modes_c): Likewise.
16023 * tree.c (build_complex_type): Set the complex type to use before
16024 calling layout_type.
16025 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16026 support for __float128 complex datatypes.
16027 (rs6000_hard_regno_mode_ok): Likewise.
16028 (rs6000_setup_reg_addr_masks): Likewise.
16029 (rs6000_complex_function_value): Likewise.
16030 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16031 __float128 and __ibm128 complex.
16032 (FLOAT128_IBM_P): Likewise.
16033 (ALTIVEC_ARG_MAX_RETURN): Likewise.
16034 * doc/extend.texi (Additional Floating Types): Document that
16035 -mfloat128 must be used to enable __float128. Document complex
16036 __float128 and __ibm128 support.
16037
16038 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16039
16040 PR target/49244
16041 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16042 char/short arguments promoted to int because of promote_prototypes.
16043
16044 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16045
16046 * config/i386/predicates.md (register_ssemem_operand): New predicate.
16047 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16048 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16049 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
16050 alternatives using "enabled" attribute. Use register_ssemem_operand
16051 as operand 1 predicate.
16052 (*cmpi<unord>xf_i387): Split XFmode pattern from
16053 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16054 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16055 *absneg<mode>2_i387. Disable unsupported alternatives using
16056 "enabled" attribute.
16057 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16058
16059 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16060
16061 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16062 marker.
16063 (oacc_loop_process): Check mask for loop termination.
16064
16065 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16066
16067 * cif-code.def (CIF_THUNK): Add.
16068 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16069 accidental change.
16070
16071 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16072
16073 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16074 (dump_inline_summary): Dump it.
16075 (fp_expression_p): New predicate.
16076 (estimate_function_body_sizes): Use it.
16077 (inline_merge_summary): Merge fp_expressions.
16078 (inline_read_section): Read fp_expressions.
16079 (inline_write_summary): Write fp_expressions.
16080 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16081 codegen boundary if either caller or callee is !fp_expressions.
16082 * ipa-inline.h (inline_summary): Add fp_expressions.
16083 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16084 to fp_expressions be sure the fp generation flags are updated.
16085
16086 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16087
16088 PR rtl-optimization/70467
16089 * cse.c (cse_insn): Handle no-op MEM moves after folding.
16090
16091 PR rtl-optimization/70467
16092 * ipa-pure-const.c (check_call): Handle internal calls even in
16093 ipa mode like in local mode.
16094
16095 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16096
16097 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16098
16099 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16100
16101 * match.pd (X u< X, X u> X): New transformations.
16102
16103 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16104
16105 * flag-types.h (enum warn_strict_overflow_code): Move ...
16106 * coretypes.h: ... here.
16107 * fold-const.h (fold_overflow_warning): Declare.
16108 * fold-const.c (fold_overflow_warning): Make non-static.
16109 (fold_comparison): Move the transformation of X +- C1 CMP C2
16110 into X CMP C2 -+ C1 ...
16111 * match.pd: ... here.
16112 * gimple-fold.c (fold_stmt_1): Protect with
16113 fold_defer_overflow_warnings.
16114
16115 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16116
16117 * omp-low.c (struct oacc_loop): Add 'inner' field.
16118 (new_oacc_loop_raw): Initialize it to zero.
16119 (oacc_loop_fixed_partitions): Initialize it.
16120 (oacc_loop_auto_partitions): Partition outermost loop to outermost
16121 available partitioning.
16122
16123 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16124
16125 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16126 register_operand.
16127 (umulsidi3): Likewise.
16128 (indirect_jump): Fix jump instruction assembly patterns.
16129
16130 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
16131
16132 PR target/70860
16133 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16134 (nvptx_function_value): Assert non-NULL cfun.
16135
16136 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
16137
16138 PR rtl-optimization/70886
16139 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16140
16141 * cselib.h (rtx_equal_for_cselib_1): Declare.
16142 (rtx_equal_for_cselib_p: New inline function.
16143 * cselib.c (rtx_equal_for_cselib_p): Delete.
16144 (rtx_equal_for_cselib_1): Make public.
16145
16146 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16147
16148 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16149 (register_mixssei387nonimm_operand): Remove predicate.
16150 * config/i386/i386.md (*fop_<mode>_comm): Merge from
16151 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
16152 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
16153 for TARGET_MIX_SSE_I387 alternatives.
16154 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16155 Disable unsupported alternatives using "enabled" attribute. Use
16156 nonimm_ssenomem_operand as operand 1 predicate. Also check
16157 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16158
16159 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16160
16161 * tree.c (cst_and_fits_in_hwi): Simplify.
16162
16163 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16164
16165 * tree.h (wi::to_wide): New function.
16166 * expr.c (expand_expr_real_1): Use wi::to_wide.
16167 * fold-const.c (int_const_binop_1): Likewise.
16168 (extract_muldiv_1): Likewise.
16169
16170 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16171
16172 * wide-int.h: Update offset_int and widest_int documentation.
16173 (WI_SIGNED_SHIFT_RESULT): New macro.
16174 (wi::binary_shift): Define signed_shift_result_type for
16175 shifts on offset_int- and widest_int-like types.
16176 (generic_wide_int): Support <<= and >>= if << and >> are supported.
16177 * tree.h (int_bit_position): Use shift operators instead of wi::
16178 shifts.
16179 * alias.c (adjust_offset_for_component_ref): Likewise.
16180 * expr.c (get_inner_reference): Likewise.
16181 * fold-const.c (fold_comparison): Likewise.
16182 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16183 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16184 * tree-dfa.c (get_ref_base_and_extent): Likewise.
16185 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16186 (stmt_kills_ref_p): Likewise.
16187 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16188 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16189 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16190 (ao_ref_init_from_vn_reference): Likewise.
16191
16192 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16193
16194 * wide-int.h: Update offset_int and widest_int documentation.
16195 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16196 (wi::binary_traits): Allow ordered comparisons between offset_int and
16197 offset_int, between widest_int and widest_int, and between either
16198 of these types and basic C types.
16199 (operator <, <=, >, >=): Define for the same combinations.
16200 * tree.h (tree_int_cst_lt): Use comparison operators instead
16201 of wi:: comparisons.
16202 (tree_int_cst_le): Likewise.
16203 * gimple-fold.c (fold_array_ctor_reference): Likewise.
16204 (fold_nonarray_ctor_reference): Likewise.
16205 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16206 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16207 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16208 * tree-sra.c (completely_scalarize): Likewise.
16209 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16210 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16211 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16212 (check_for_binary_op_overflow): Likewise.
16213 (search_for_addr_array): Likewise.
16214 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16215
16216 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16217
16218 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16219 (arc_save_restore): Likewise.
16220 (arc_dwarf_register_span): Likewise.
16221 (arc_output_pic_addr_const): Initialize suffix variable.
16222
16223 2016-05-02 Martin Liska <mliska@suse.cz>
16224
16225 * symbol-summary.h (function_summary::function_summary):
16226 Remove checking assert for all cgraph nodes.
16227 (function_summary::get): Check summary_uid.
16228 (symtab_insertion): Check summary_uid.
16229
16230 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16231
16232 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16233 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16234 bmaskn instruction.
16235 (arc_dwarf_register_span): Remove enum keyword.
16236 (compact_memory_operand_p): New function.
16237 * config/arc/arc.h (reg_class): Add code density register classes.
16238 (REG_CLASS_NAMES): Likewise.
16239 (REG_CLASS_CONTENTS): Likewise.
16240 * config/arc/arc.md (*movqi_insn): Add code density instructions.
16241 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16242 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16243 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16244 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16245 constraints.
16246 (h, Rcd, Rsd, Rzd): New register constraints.
16247 (T): Use compact_memory_operand_p function.
16248 * config/arc/predicates.md (compact_load_memory_operand): Remove.
16249
16250 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16251
16252 * config/sh/sh.md (*negnegt, *movtt): Remove.
16253
16254 2016-05-02 Marek Polacek <polacek@redhat.com>
16255 Tom de Vries <tom@codesourcery.com>
16256
16257 PR tree-optimization/70700
16258 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16259 bigger than FIRST_REF_NODE.
16260
16261 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16262
16263 PR target/52898
16264 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16265 TARGET_CMPEQDI_T.
16266 (prepare_cbranch_operands): Don't use scratch register. Assume that
16267 function is used when pseudos can be created.
16268 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
16269 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16270 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16271 define_expand. Allow it only when pseudos can be created.
16272 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16273
16274 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
16275
16276 * config/i386/constraints.md (BC): Only allow -1 operands.
16277 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16278 Add "enabled" attribute. Update XI mode attribute calculation.
16279 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16280 (*movoi_internal_avx): Update XI mode attribute calculation.
16281 (*movti_internal): Ditto.
16282
16283 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16284
16285 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16286 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16287
16288 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
16289
16290 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16291 statement on instruction code. Remove trailing spaces.
16292 (altivec_expand_stv_builtin): Likewise.
16293
16294 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16295
16296 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16297 (TARGET_FPU_DOUBLE): Simplify.
16298 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16299 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16300 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16301 with 'TARGET_FPU_DOUBLE'.
16302 * config/sh/sh.md: Likewise.
16303
16304 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
16305
16306 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16307 SH_DIV_STR_FOR_SIZE): Remove.
16308 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16309 SH_DIV_STR_FOR_SIZE): Remove.
16310
16311 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16312
16313 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16314 logical_reg_operand): Delete.
16315 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16316 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16317 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16318 match_operand and match_test.
16319 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
16320 variables on their first use. Return bool values.
16321 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16322 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16323 arith_reg_operand for input operand. Remove empty constraints.
16324 (xorsi3): Delete.
16325 (*xorsi3_compact): Rename to xorsi3.
16326 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16327 (*zero_extend<mode>si2_disp_mem): Update comment.
16328 (mov_nop): Delete.
16329
16330 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16331
16332 * config/sh/t-sh: Remove SH5 support.
16333 * config.gcc: Likewise.
16334 * configure: Likewise.
16335
16336 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16337
16338 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16339
16340 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16341
16342 * config/sh/sh.c (register_sh_passes, sh_option_override,
16343 sh_print_operand, prepare_move_operands,
16344 sh_can_follow_jump): Remove TARGET_SH1 checks.
16345 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16346 PROMOTE_MODE): Likewise.
16347 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16348 movdi): Likewise.
16349
16350 2016-04-30 Alan Modra <amodra@gmail.com>
16351
16352 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16353 restoring when fixed_reg_p, but allow out-of-line or stmw save.
16354 Check for user regs later to avoid unnecessary looping over regs.
16355 Merge user reg check with non-saved reg check. Don't force
16356 inline VR restore when static chain used.
16357 (rs6000_frame_related): Omit eh_frame info for user regs when
16358 saving.
16359 (fixed_regs_p): Delete.
16360
16361 2016-04-30 Alan Modra <amodra@gmail.com>
16362
16363 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16364 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
16365 Update all uses.
16366
16367 2016-04-30 Alan Modra <amodra@gmail.com>
16368
16369 PR target/69645
16370 * config/rs6000/rs6000.c (fixed_reg_p): New function.
16371 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
16372 Update all uses.
16373
16374 2016-04-30 Alan Modra <amodra@gmail.com>
16375
16376 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16377 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
16378 flag_pic test for Darwin.
16379
16380 2016-04-30 Alan Modra <amodra@gmail.com>
16381
16382 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16383 throw_calls_crossed.
16384 (REG_FREQ_CALLS_CROSSED): Delete.
16385 (REG_N_THROWING_CALLS_CROSSED): Delete.
16386 * regstat.c (regstat_bb_compute_ri): Don't calculate
16387 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16388 (dump_reg_info): Don't print call cross frequency.
16389 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16390 and REG_N_THROWING_CALLS_CROSSED.
16391
16392 2016-04-30 Alan Modra <amodra@gmail.com>
16393
16394 * regs.h (struct reg_info_t): Delete live_length.
16395 (REG_LIVE_LENGTH): Delete macro.
16396 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16397 local_live, local_processed and local_live_last_luid params.
16398 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
16399 Formatting fixes.
16400 (regstat_compute_ri): Adjust for above. Don't set
16401 REG_LIVE_LENGTH.
16402 (dump_reg_info): Don't print live length.
16403 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16404 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
16405 Localize loop_depth var.
16406
16407 2016-04-30 Alan Modra <amodra@gmail.com>
16408
16409 * ira.c (enum valid_equiv): New.
16410 (validate_equiv_mem): Return enum.
16411 (update_equiv_mem): Create replacement in more cases.
16412 (add_store_equivs): Update validate_equiv_mem call.
16413
16414 2016-04-30 Alan Modra <amodra@gmail.com>
16415
16416 * ira.c (combine_and_move_insns): Rather than scanning insns,
16417 use DF infrastucture to find use and def insns.
16418
16419 2016-04-30 Alan Modra <amodra@gmail.com>
16420
16421 ira.c (combine_and_move_insns): Move invariant conditions..
16422 (ira.c): ..to here. Call combine_and_move_insns before
16423 add_store_equivs. Call grow_reg_equivs later. Allocate
16424 req_equiv later using max_reg_num() rather than global max_regno.
16425 (contains_replace_regs): Delete.
16426 (add_store_equivs): Remove contains_replace_regs test.
16427
16428 2016-04-30 Alan Modra <amodra@gmail.com>
16429
16430 * ira.c (struct equiv_mem_data): New.
16431 (equiv_mem, equiv_mem_modified): Delete static vars.
16432 (validate_equiv_mem_from_store): Use "data" param to communicate..
16433 (validate_equiv_mem): ..from here.
16434
16435 2016-04-30 Alan Modra <amodra@gmail.com>
16436
16437 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
16438 split out from..
16439 (update_reg_equivs): ..here. Move allocation and freeing of
16440 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
16441 end_alias_analysis to..
16442 (ira): ..here.
16443
16444 2016-04-30 Alan Modra <amodra@gmail.com>
16445
16446 * ira.c (pdx_subregs): Delete.
16447 (struct equivalence): Add pdx_subregs field.
16448 (set_paradoxical_subreg): Remove pdx_subregs param. Update
16449 pdx_subregs access.
16450 (update_equiv_regs): Don't create or free pdx_subregs. Update
16451 pdx_subregs access.
16452
16453 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16454
16455 * config/rs6000/altivec.h: Change definitions of vec_xl and
16456 vec_xst.
16457 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
16458 (LD_ELEMREV_V2DI): New.
16459 (LD_ELEMREV_V4SF): New.
16460 (LD_ELEMREV_V4SI): New.
16461 (LD_ELEMREV_V8HI): New.
16462 (LD_ELEMREV_V16QI): New.
16463 (ST_ELEMREV_V2DF): New.
16464 (ST_ELEMREV_V2DI): New.
16465 (ST_ELEMREV_V4SF): New.
16466 (ST_ELEMREV_V4SI): New.
16467 (ST_ELEMREV_V8HI): New.
16468 (ST_ELEMREV_V16QI): New.
16469 (XL): New.
16470 (XST): New.
16471 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16472 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
16473 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
16474 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
16475 (altivec_expand_builtin): Add handling for
16476 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
16477 (rs6000_invalid_builtin): Add error-checking for
16478 RS6000_BTM_P9_VECTOR.
16479 (altivec_init_builtins): Define builtins used to implement vec_xl
16480 and vec_xst.
16481 (rs6000_builtin_mask_names): Define power9-vector.
16482 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
16483 (RS6000_BTM_P9_VECTOR): Define.
16484 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
16485 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
16486 (vsx_ld_elemrev_v2df): Likewise.
16487 (vsx_ld_elemrev_v4sf): Likewise.
16488 (vsx_ld_elemrev_v4si): Likewise.
16489 (vsx_ld_elemrev_v8hi): Likewise.
16490 (vsx_ld_elemrev_v16qi): Likewise.
16491 (vsx_st_elemrev_v2df): Likewise.
16492 (vsx_st_elemrev_v2di): Likewise.
16493 (vsx_st_elemrev_v4sf): Likewise.
16494 (vsx_st_elemrev_v4si): Likewise.
16495 (vsx_st_elemrev_v8hi): Likewise.
16496 (vsx_st_elemrev_v16qi): Likewise.
16497 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
16498 grammar.
16499
16500 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
16501
16502 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
16503 out into ...
16504 (simplify_control_stmt_condition_1): ... here. Recurse into
16505 BIT_AND_EXPRs and BIT_IOR_EXPRs.
16506
16507 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
16508
16509 PR target/69810
16510 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
16511 (zero_extendqi<mode>2_dot): Revert earlier conversion from
16512 define_insn_and_split to define_insn.
16513 (zero_extendqi<mode>2_dot2): Same.
16514 (extendqi<mode>2_dot): Same.
16515 (extendqi<mode>2_dot2): Same.
16516
16517 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16518
16519 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
16520 (probe_stack): New expander.
16521 (probe_stack_<mode>): New insn pattern.
16522
16523 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16524
16525 * config/i386/i386.md
16526 (operations with memory inputs setting flags peephole2):
16527 Remove uneeded REG_P checks. Cleanup pattern generation.
16528
16529 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
16530
16531 * tree-vect-loop.c (vect_transform_loop): Fix
16532 nb_iterations_upper_bound computation for vectorized loop.
16533
16534 2016-04-29 Marek Polacek <polacek@redhat.com>
16535 Jakub Jelinek <jakub@redhat.com>
16536
16537 PR sanitizer/70342
16538 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
16539 TARGET_EXPR_SLOT as a base.
16540
16541 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
16542
16543 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
16544 with 'rCm2' constraints to limit possible immediate size.
16545 (*load_zeroextendqisi_update): Likewise.
16546 (*load_signextendqisi_update): Likewise.
16547 (*loadhi_update): Likewise.
16548 (*load_zeroextendhisi_update): Likewise.
16549 (*load_signextendhisi_update): Likewise.
16550 (*loadsi_update): Likewise.
16551 (*loadsf_update): Likewise.
16552
16553 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16554
16555 * config/i386/predicates.md (constm1_operand): Fix comparison.
16556
16557 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
16558
16559 * testsuite/gcc.target/arc/ieee_eq.c: New test.
16560
16561 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
16562
16563 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
16564 remaining SH5 related settings.
16565 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
16566 shmedia_prepare_call_address): Delete.
16567 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
16568 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
16569 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
16570 UNSUPPORTED_SH2A): Remove m5 checks.
16571 (sh_divide_strategy_e): Remove SH5 division strategies.
16572 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
16573 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
16574
16575 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16576
16577 * config/s390/s390.c (s390_rtx_costs): Update documentation.
16578
16579 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16580
16581 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
16582 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
16583 Change lder to ldr.
16584 * config/s390/vector.md ("mov<mode>"): Likewise.
16585
16586 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
16587
16588 * config/s390/constraints.md ("U", "W"): Invoke
16589 s390_mem_constraint with "ZR" and "ZT".
16590 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
16591 addresses when using LRA. Accept also short displacements for S
16592 and T constraints. Do not check for long displacement target for
16593 S and T constraints.
16594 (s390_mem_constraint): Remove handling of U and W constraints.
16595 * config/s390/s390.md (various patterns): Remove the short
16596 displacement constraints (Q and R) if a long displacement
16597 constraint is present. Add longdisp as required CPU capability.
16598 * config/s390/vector.md: Likewise.
16599 * config/s390/vx-builtins.md: Likewise.
16600
16601 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16602
16603 PR target/60040
16604 * reload1.c (reload): Call finish_spills before
16605 restarting reload loop. Skip select_reload_regs
16606 if update_eliminables_and_spill returns true.
16607
16608 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
16609
16610 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
16611 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
16612 (umulhisi3_imm): Update predicates and constraint letters.
16613 (umulhisi3_reg): Declare instruction as commutative.
16614 * config/arc/constraints.md (J12, J16): New constraints.
16615 * config/arc/predicates.md (short_unsigned_const_operand): New
16616 predicate.
16617 (arc_short_operand): Likewise.
16618 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
16619
16620 2016-04-29 Richard Biener <rguenther@suse.de>
16621
16622 PR tree-optimization/13962
16623 PR tree-optimization/65686
16624 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
16625 * tree-ssa-alias.c (ptrs_compare_unequal): New function
16626 using PTA to compare pointers.
16627 * match.pd: Add pattern for pointer equality compare simplification
16628 using ptrs_compare_unequal.
16629
16630 2016-04-29 Richard Biener <rguenther@suse.de>
16631
16632 * stor-layout.c (layout_type): Do not build a pointer-to-element
16633 type for arrays.
16634
16635 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16636
16637 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
16638 Use SWI mode iterator. Use general_reg_operand predicate.
16639 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
16640 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
16641 predicates.
16642
16643 2016-04-29 Jakub Jelinek <jakub@redhat.com>
16644
16645 PR middle-end/70843
16646 * fold-const.c (operand_equal_p): Don't verify hash value equality
16647 if arg0 == arg1.
16648 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
16649 and OMP_CLAUSE.
16650
16651 2016-04-28 Jakub Jelinek <jakub@redhat.com>
16652
16653 PR target/70858
16654 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
16655 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
16656 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
16657 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
16658 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
16659
16660 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16661
16662 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
16663 to info. Don't initialize separate fields to 0. Clean up
16664 formatting a bit.
16665
16666 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
16667
16668 * config/i386/i386.md (peephole2s for operations with memory inputs):
16669 Use SWI mode iterator.
16670 (peephole2s for operations with memory outputs): Ditto.
16671 Do not check for stack checking probe.
16672
16673 (probe_stack): Remove expander.
16674
16675 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16676 Andrew Burgess <andrew.burgess@embecosm.com>
16677
16678 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
16679 operands as 32-bits.
16680
16681 2016-04-28 Jason Merrill <jason@redhat.com>
16682
16683 * gdbinit.in: Skip line-map.h.
16684
16685 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16686 Andrew Burgess <andrew.burgess@embecosm.com>
16687
16688 * config/arc/arc.c (arc_conditional_register_usage): Take
16689 TARGET_RRQ_CLASS into account.
16690 (arc_print_operand): Support printing 'p' and 's' operands.
16691 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
16692 as 0.
16693 (TARGET_RRQ_CLASS): Define.
16694 (IS_POWEROF2_OR_0_P): Define.
16695 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
16696 alternatives.
16697 (*tst_movb): New define_insn.
16698 (*tst): Avoid recognition if it could prevent '*tst_movb'
16699 combination; replace c/CnL with c/Chs alternative.
16700 (*tst_bitfield_tst): New define_insn.
16701 (*tst_bitfield_asr): New define_insn.
16702 (*tst_bitfield): New define_insn.
16703 (andsi3_i): Add Rrq variant.
16704 (extzv): New define_expand.
16705 (insv): New define_expand.
16706 (*insv_i): New define_insn.
16707 (*movb): New define_insn.
16708 (*movb_signed): New define_insn.
16709 (*movb_high): New define_insn.
16710 (*movb_high_signed): New define_insn.
16711 (*movb_high_signed + 1): New define_split pattern.
16712 (*mrgb): New define_insn.
16713 (*mrgb + 1): New define_peephole2 pattern.
16714 (*mrgb + 2): New define_peephole2 pattern.
16715 * config/arc/arc.opt (mbitops): New option for nps400, uses
16716 TARGET_NPS_BITOPS_DEFAULT.
16717 * config/arc/constraints.md (q): Make register class conditional.
16718 (Rrq): New register constraint.
16719 (Chs): New constraint.
16720 (Clo): New constraint.
16721 (Chi): New constraint.
16722 (Cbf): New constraint.
16723 (Cbn): New constraint.
16724 (C18): New constraint.
16725 (Cbi): New constraint.
16726
16727 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16728
16729 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16730 dst->popcount.
16731 (bitmap_intersection_of_preds): Ditto.
16732 (bitmap_union_of_succs): Ditto.
16733 (bitmap_union_of_preds): Ditto.
16734 * sbitmap.c (do_popcount): Delete.
16735 (BITMAP_DEBUGGING): Delete.
16736 (sbitmap_verify_popcount): Delete.
16737 (sbitmap_alloc): Don't initialize the popcount field.
16738 (sbitmap_alloc_with_popcount): Delete.
16739 (sbitmap_resize): Don't resize the popcount array.
16740 (sbitmap_vector_alloc): Don't initialize the popcount field.
16741 (bitmap_copy): Don't copy the popcount array.
16742 (bitmap_clear): Don't clear the popcount array.
16743 (bitmap_clear): Delete the popcount array handling.
16744 (bitmap_ior_and_compl): Delete the popcount assert.
16745 (bitmap_not): Ditto.
16746 (bitmap_and_compl): Ditto.
16747 (bitmap_and): Delete the popcount array handling.
16748 (bitmap_xor): Ditto.
16749 (bitmap_ior): Ditto.
16750 (bitmap_or_and): Delete the popcount assert.
16751 (bitmap_and_or): Ditto.
16752 (popcount_table): Delete.
16753 (sbitmap_elt_popcount): Delete.
16754 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16755 (bitmap_set_bit): Delete the popcount assert.
16756 (bitmap_clear_bit): Ditto.
16757 (sbitmap_free): Don't free the popcount array.
16758 (sbitmap_alloc_with_popcount): Delete declaration.
16759 (sbitmap_popcount): Ditto.
16760
16761 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16762 Andrew Burgess <andrew.burgess@embecosm.com>
16763
16764 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16765 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16766 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16767 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16768 * config/arc/arc.opt (mcmem): New option.
16769 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16770 supply length for r/m alternative.
16771 (*extendqisi2_ac): Likewise.
16772 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16773 r/Uex alternative.
16774 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16775 (movhi_insn): Likewise.
16776 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16777 (*zero_extendqihi2_i): Add r/Ucm alternative.
16778 (*zero_extendqisi2_ac): Likewise.
16779 (*zero_extendhisi2_i): Likewise.
16780 * config/arc/constraints.md (Uex): New memory constraint.
16781 (Ucm): New define_constraint.
16782 * config/arc/predicates.md (long_immediate_loadstore_operand):
16783 Return 0 for MEM with cmem_address address.
16784 (cmem_address_0): New predicates.
16785 (cmem_address_1): Likewise.
16786 (cmem_address_2): Likewise.
16787 (cmem_address): Likewise.
16788
16789 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16790
16791 * config/rs6000/rs6000.c (machine_function): Rename
16792 insn_chain_scanned_p to spe_insn_chain_scanned_p.
16793 (rs6000_stack_info): Adjust.
16794
16795 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16796 Andrew Burgess <andrew.burgess@embecosm.com>
16797
16798 * config/arc/constraints.md (Usd): Convert to define_constraint.
16799 (Us<): Likewise.
16800 (Us>): Likewise.
16801
16802 2016-04-28 Jakub Jelinek <jakub@redhat.com>
16803
16804 PR target/70821
16805 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16806 Add new peephole2 where the first insn is *mov<mode>_or instead of
16807 *mov<mode>_internal.
16808
16809 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
16810
16811 * tracer.c (bb_seen): Make static.
16812
16813 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
16814
16815 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
16816 support, setup defaults.
16817 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
16818 * config/arc/arc.c (arc_init): Add NPS400 support.
16819 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
16820 (TARGET_ARC700): NPS400 is also an ARC700.
16821 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
16822
16823 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16824
16825 PR target/70668
16826 * config/nds32/nds32.md (casesi): Don't access the operands array
16827 out of bounds.
16828
16829 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
16830
16831 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
16832 (or $-1,reg peephole2): Ditto.
16833 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
16834
16835 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
16836
16837 * doc/extend.texi (Common Function Attributes) [optimize]:
16838 Discourage use of the optimize attribute.
16839
16840 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
16841
16842 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
16843 special case builtin.
16844 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16845 ALTIVEC_BUILTIN_VEC_ADDE.
16846 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16847 support for ALTIVEC_BUILTIN_VEC_ADDE.
16848 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
16849 for __builtin_vec_adde.
16850
16851 2016-04-28 Jakub Jelinek <jakub@redhat.com>
16852
16853 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
16854 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
16855
16856 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16857
16858 PR testsuite/70595
16859 * doc/sourcebuild.texi (Effective-Target Keywords, Other
16860 attributes): Document cilkplus_runtime.
16861
16862 2016-04-28 Martin Jambor <mjambor@suse.cz>
16863
16864 * tree-cfg.c (verify_expr): Verify that local declarations belong to
16865 this function. Call verify_expr on MEM_REFs and bases of other
16866 handled_components.
16867
16868 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16869
16870 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
16871 for WORD_REGISTER_OPERATIONS to runtime check.
16872
16873 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
16874
16875 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
16876
16877 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
16878
16879 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
16880 big-endian compilation.
16881 * config/arc/arc.md (addf3): Likewise.
16882 (subdf3): Likewise.
16883 (muldf3): Likewise.
16884
16885 2016-04-28 Richard Biener <rguenther@suse.de>
16886
16887 PR tree-optimization/70840
16888 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
16889 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
16890 Mark x * pow(x,c) -> pow(x,c+1) commutative.
16891 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16892
16893 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16894
16895 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16896 and explain why in a comment.
16897
16898 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
16899
16900 * config/arc/arc.md (cpu_facility): Add fpx variant.
16901 (subdf3): Prohibit use reverse sub when assist operations option
16902 is enabled.
16903 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16904 instructions only when FPX is enabled.
16905 * testsuite/gcc.target/arc/trsub.c: New test.
16906
16907 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
16908
16909 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16910 mult_operator when calculating "type" attribute.
16911 (*fop_<mode>_1_i387): Ditto.
16912 (*fop_xf_1_i387): Ditto.
16913 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16914 Use std::swap to swap operands. Use RTL expressions to generate
16915 converted pattern.
16916
16917 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
16918 Joern Rennecke <joern.rennecke@embecosm.com>
16919
16920 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16921 declaration.
16922 (emit_pic_move): Remove.
16923 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16924 * config/arc/arc.c (emit_pic_move): Removed.
16925 (TARGET_HAVE_TLS): Define.
16926 (arc_conditional_register_usage): Test for arc_tp_regno.
16927 (arc_print_operand, arc_print_operand_address): Handle TLS
16928 unspecs.
16929 (arc_needs_pcl_p): New function.
16930 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16931 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16932 (arc_raw_symbolic_reference_mentioned_p): Likewise.
16933 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16934 (arc_legitimize_tls_address): Likewise.
16935 (DTPOFF_ZERO_SYM): Define.
16936 (arc_legitimize_pic_address): Make it static, handle TLS cases.
16937 (arc_output_pic_addr_const): Print TLS unspecs.
16938 (prepare_pic_move): New function, replaces emit_pic_move.
16939 (arc_legitimate_constant_p): Handle TLS unspecs.
16940 (arc_legitimate_address_p): Likewise.
16941 (arc_rewrite_small_data_p): Use assert for TLS constants.
16942 (prepare_move_operands): Use prepare_pic_move.
16943 (arc_legitimize_address): Legitimize tls addresses.
16944 (arc_epilogue_uses): Check for arc_tp_regno.
16945 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16946 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16947 Define.
16948 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16949 Likewise.
16950 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16951 %(arc_tls_extra_start_spec).
16952 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16953 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16954 (EH_USES): Define.
16955 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
16956 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
16957 (UNSPEC_TLS_OFF): Add.
16958 (R10_REG): Define.
16959 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
16960 (get_thread_pointersi): New patterns.
16961 * config/arc/arc.opt (mtp-regno): New option.
16962 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
16963 (move_dest_operand): Likewise.
16964 * configure: Regenerate.
16965 * configure.ac: Add arc*-*-* case to test for tls.
16966 * doc/invoke.texi (ARC options): Document mtp-regno.
16967
16968 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
16969
16970 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
16971 the new ARC HS SIMD instructions.
16972 (arc_preferred_simd_mode): New function.
16973 (arc_autovectorize_vector_sizes): Likewise.
16974 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16975 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16976 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
16977 (arc_init_builtins): Add new SIMD builtin types.
16978 (arc_split_move): Handle 64 bit vector moves.
16979 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
16980 (TARGET_PLUS_QMACW): Define.
16981 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
16982 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
16983 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
16984 (VSUBADD4H): New builtins.
16985 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
16986 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
16987
16988 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
16989 Matthias Klose <doko@debian.org>
16990
16991 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
16992
16993 2016-04-28 Richard Biener <rguenther@suse.de>
16994
16995 PR middle-end/70777
16996 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
16997 canonicalization.
16998
16999 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
17000
17001 * common/config/sh/sh-common.c: Remove SH5 support.
17002 * config/sh/constraints.md: Likewise.
17003 * config/sh/config/sh/elf.h: Likewise.
17004 * config/sh/linux.h: Likewise.
17005 * config/sh/netbsd-elf.h: Likewise.
17006 * config/sh/predicates.md: Likewise.
17007 * config/sh/sh-c.c: Likewise.
17008 * config/sh/sh-protos.h: Likewise.
17009 * config/sh/sh.c: Likewise.
17010 * config/sh/sh.h: Likewise.
17011 * config/sh/sh.md: Likewise.
17012 * config/sh/sh.opt: Likewise.
17013 * config/sh/sync.md: Likewise.
17014 * config/sh/sh64.h: Delete.
17015 * config/sh/shmedia.h: Likewise.
17016 * config/sh/shmedia.md: Likewise.
17017 * config/sh/sshmedia.h: Likewise.
17018 * config/sh/t-netbsd-sh5-64: Likewise.
17019 * config/sh/t-sh64: Likewise.
17020 * config/sh/ushmedia.h: Likewise.
17021
17022 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17023
17024 * config/i386/i386.md (sign_extend to memory peephole2s): Use
17025 general_reg_operand instead of register_operand predicate.
17026
17027 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17028
17029 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17030
17031 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
17032
17033 * match.pd (A - B > A, A + B < A): New transformations.
17034
17035 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
17036
17037 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17038 which defaults to true. Emit an outer pair of parentheses only if
17039 EMIT_PARENS. When continuing a chain of && or || (or & or |),
17040 don't emit parentheses for the right-hand operand.
17041
17042 2016-04-27 Jeff Law <law@redhat.com>
17043
17044 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17045
17046 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17047
17048 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17049 (altivec_lvx_<mode>_internal): Document.
17050 (altivec_lvx_<mode>_2op): New define_insn.
17051 (altivec_lvx_<mode>_1op): Likewise.
17052 (altivec_lvx_<mode>_2op_si): Likewise.
17053 (altivec_lvx_<mode>_1op_si): Likewise.
17054 (altivec_stvx_<mode>): Remove.
17055 (altivec_stvx_<mode>_internal): Document.
17056 (altivec_stvx_<mode>_2op): New define_insn.
17057 (altivec_stvx_<mode>_1op): Likewise.
17058 (altivec_stvx_<mode>_2op_si): Likewise.
17059 (altivec_stvx_<mode>_1op_si): Likewise.
17060 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17061 Expand vec_ld and vec_st during parsing.
17062 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17063 changes.
17064 (altivec_expand_stvx_be): Likewise.
17065 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17066 address-masking behavior in RTL.
17067 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17068 address-masking behavior in RTL.
17069 (altivec_expand_builtin): Change builtin code arguments for calls
17070 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17071 (insn_is_swappable_p): Avoid incorrect swap optimization in the
17072 presence of lvx/stvx patterns.
17073 (alignment_with_canonical_addr): New function.
17074 (alignment_mask): Likewise.
17075 (find_alignment_op): Likewise.
17076 (recombine_lvx_pattern): Likewise.
17077 (recombine_stvx_pattern): Likewise.
17078 (recombine_lvx_stvx_patterns): Likewise.
17079 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17080 stvx patterns from expand.
17081 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17082 expansions.
17083 (vector_altivec_store_<mode>): Likewise.
17084
17085 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
17086
17087 * config/aarch64/aarch64.md
17088 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17089 remove the "fp" attributes.
17090 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17091 add the "simd" attributes.
17092 (*movdf_aarch64): Likewise.
17093 (*movtf_aarch64): Remove the "fp" attributes.
17094 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17095 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17096
17097 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17098
17099 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17100 rtx to rtx_code_label *.
17101 * rtl.h (maybe_set_first_label_num): Likewise.
17102
17103 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17104
17105 * df-core.c (df_add_problem): Make the problem param be const.
17106 (df_remove_problem): Make local "problem" be const.
17107 * df-problems.c (problem_RD): Make const.
17108 (problem_LR): Likewise.
17109 (problem_LIVE): Likewise.
17110 (problem_MIR): Likewise.
17111 (problem_CHAIN): Likewise.
17112 (problem_WORD_LR): Likewise.
17113 (problem_NOTE): Likewise.
17114 (problem_MD): Likewise.
17115 * df-scan.c (problem_SCAN): Likewise.
17116 * df.h (struct df_problem): Make field "dependent_problem" be
17117 const.
17118 (struct dataflow): Likewise for field "problem".
17119 (df_add_problem): Make param const.
17120
17121 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17122
17123 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17124 inter-unit moves to/from vector registers are enabled. Do not disable
17125 for TARGET_MMX.
17126
17127 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17128
17129 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17130 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17131 #define to...
17132 (enum df_problem_id): ...this new enum.
17133 (struct df_problem): Convert field "id" from "int" to
17134 enum df_problem_id.
17135
17136 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17137
17138 * rtl.def: Update comment for "things in the instruction chain" to
17139 reflect the removal of the leading "i" field for INSN_UID in
17140 r210360. Fix bogus apostrophe.
17141
17142 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17143
17144 * config/i386/i386.md
17145 (lea arith with mem operand + setcc peephole2): Set operator mode.
17146
17147 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
17148
17149 PR target/70155
17150 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17151 (dimode_scalar_to_vector_candidate_p): This.
17152 (timode_scalar_to_vector_candidate_p): New function.
17153 (scalar_to_vector_candidate_p): Likewise.
17154 (timode_check_non_convertible_regs): Likewise.
17155 (timode_remove_non_convertible_regs): Likewise.
17156 (remove_non_convertible_regs): Likewise.
17157 (remove_non_convertible_regs): Renamed to ...
17158 (dimode_remove_non_convertible_regs): This.
17159 (scalar_chain::~scalar_chain): Make it virtual.
17160 (scalar_chain::compute_convert_gain): Make it pure virtual.
17161 (scalar_chain::mark_dual_mode_def): Likewise.
17162 (scalar_chain::convert_insn): Likewise.
17163 (scalar_chain::convert_registers): Likewise.
17164 (scalar_chain::add_to_queue): Make it protected.
17165 (scalar_chain::emit_conversion_insns): Likewise.
17166 (scalar_chain::replace_with_subreg): Likewise.
17167 (scalar_chain::replace_with_subreg_in_insn): Likewise.
17168 (scalar_chain::convert_op): Likewise.
17169 (scalar_chain::convert_reg): Likewise.
17170 (scalar_chain::make_vector_copies): Likewise.
17171 (scalar_chain::convert_registers): New pure virtual function.
17172 (class dimode_scalar_chain): New class.
17173 (class timode_scalar_chain): Likewise.
17174 (scalar_chain::mark_dual_mode_def): Renamed to ...
17175 (dimode_scalar_chain::mark_dual_mode_def): This.
17176 (timode_scalar_chain::mark_dual_mode_def): New function.
17177 (timode_scalar_chain::convert_insn): Likewise.
17178 (dimode_scalar_chain::convert_registers): Likewise.
17179 (scalar_chain::compute_convert_gain): Renamed to ...
17180 (dimode_scalar_chain::compute_convert_gain): This.
17181 (scalar_chain::replace_with_subreg): Renamed to ...
17182 (dimode_scalar_chain::replace_with_subreg): This.
17183 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17184 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17185 (scalar_chain::make_vector_copies): Renamed to ...
17186 (dimode_scalar_chain::make_vector_copies): This.
17187 (scalar_chain::convert_reg): Renamed to ...
17188 (dimode_scalar_chain::convert_reg ): This.
17189 (scalar_chain::convert_op): Renamed to ...
17190 (dimode_scalar_chain::convert_op): This.
17191 (scalar_chain::convert_insn): Renamed to ...
17192 (dimode_scalar_chain::convert_insn): This.
17193 (scalar_chain::convert): Call convert_registers.
17194 (convert_scalars_to_vector): Change to scalar_chain pointer to
17195 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17196 in 32-bit mode. Delete scalar_chain pointer. Call
17197 free_dominance_info in 64-bit mode.
17198 (pass_stv::gate): Remove TARGET_64BIT check.
17199 (ix86_option_override): Put the 64-bit STV pass before the CSE
17200 pass.
17201
17202 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
17203
17204 * dwarf2out.h (struct dw_loc_descr_node): Remove the
17205 dw_loc_frame_offset field.
17206 * dwarf2out.c (new_loc_descr): Likewise.
17207 (resolve_args_picking_1): Turn the VISITED hash set into a
17208 FRAME_OFFSET hash map. Use it to associate a frame offset to
17209 visited nodes. Remove uses of the CHECKING_P macro.
17210 (resolve_args_picking): Update call to resolve_args_picking_1.
17211
17212 2016-04-27 Martin Liska <mliska@suse.cz>
17213
17214 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17215 (free_loop_data): Release vuses of groups.
17216
17217 2016-04-27 Bin Cheng <bin.cheng@arm.com>
17218
17219 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17220 instead of redundant use_id and boolean have_use_for.
17221 (struct iv_use): Change sub_id into group_id. Remove field next.
17222 Move fields: related_cands, n_map_members, cost_map and selected
17223 to ...
17224 (struct iv_group): ... here. New structure.
17225 (struct iv_common_cand): Use structure declaration directly.
17226 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17227 (MAX_CONSIDERED_USES): Rename macro to ...
17228 (MAX_CONSIDERED_GROUPS): ... here.
17229 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17230 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17231 (dump_uses): Rename to ...
17232 (dump_groups): ... here. Update all uses.
17233 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17234 (find_induction_variables): Refactor format of dump information.
17235 (record_sub_use): Delete.
17236 (record_use): Update all uses.
17237 (record_group): New function.
17238 (record_group_use, find_interesting_uses_op): Call above functions.
17239 Update all uses.
17240 (find_interesting_uses_cond): Ditto.
17241 (group_compare_offset): New function.
17242 (split_all_small_groups): Rename to ...
17243 (split_small_address_groups_p): ... here. Update all uses.
17244 (split_address_groups): Update all uses.
17245 (find_interesting_uses): Refactor format of dump information.
17246 (add_candidate_1): Update all uses. Remove redundant check on iv,
17247 base and step.
17248 (add_candidate, record_common_cand): Remove redundant assert.
17249 (add_iv_candidate_for_biv): Update use.
17250 (add_iv_candidate_derived_from_uses): Update all uses.
17251 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17252 (alloc_use_cost_map): Ditto.
17253 (set_use_iv_cost, get_use_iv_cost): Rename to ...
17254 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
17255 (determine_use_iv_cost_generic): Ditto.
17256 (determine_group_iv_cost_generic): Ditto.
17257 (determine_use_iv_cost_address): Ditto.
17258 (determine_group_iv_cost_address): Ditto.
17259 (determine_use_iv_cost_condition): Ditto.
17260 (determine_group_iv_cost_cond): Ditto.
17261 (determine_use_iv_cost): Ditto.
17262 (determine_group_iv_cost): Ditto.
17263 (set_autoinc_for_original_candidates): Update all uses.
17264 (find_iv_candidates): Update all uses. Refactor dump information.
17265 (determine_use_iv_costs): Ditto.
17266 (determine_iv_costs): Ditto.
17267 (iv_ca_cand_for_use): Rename to ...
17268 (iv_ca_cand_for_group): ... here. Update all uses.
17269 (iv_ca_add_use, iv_ca_add_group): Ditto.
17270 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17271 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17272 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17273 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17274 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17275 (create_new_iv, adjust_iv_update_pos): Ditto.
17276 (rewrite_use_address): Delete.
17277 (rewrite_use_address_1): Rename to ...
17278 (rewrite_use_address): ... here.
17279 (rewrite_use_compare): Update all uses.
17280 (rewrite_use): Delete.
17281 (rewrite_uses): Rename to ...
17282 (rewrite_groups): ... here. Update all uses.
17283 (remove_unused_ivs, free_loop_data): Update all uses.
17284 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17285
17286 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17287
17288 * rtlanal.c (nonzero_bits1): Convert preprocessor check
17289 for WORD_REGISTER_OPERATIONS to runtime check.
17290
17291 2016-04-27 Richard Biener <rguenther@suse.de>
17292
17293 PR ipa/70760
17294 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17295 aggregate_value_p to determine if a function result is
17296 returned by reference.
17297 (ipa_pta_execute): Functions having their address taken are
17298 not automatically nonlocal.
17299
17300 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17301
17302 PR sanitizer/70683
17303 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17304 * fold-const.c (operand_equal_p): If flag_checking and
17305 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17306 and if it returns non-zero, assert iterative_hash_expr on both
17307 args is the same.
17308
17309 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17310
17311 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17312
17313 2016-04-27 Nick Clifton <nickc@redhat.com>
17314
17315 PR middle-end/49889
17316 * varasm.c (merge_weak): Generate an error if an attempt is made
17317 to convert a non-weak static function into a weak, public function.
17318
17319 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17320
17321 * params.def (MAX_PARTITION_SIZE): New param.
17322 * doc/invoke.texi: Document lto-max-partition.
17323
17324 2016-04-27 Richard Biener <rguenther@suse.de>
17325
17326 PR ipa/70785
17327 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17328 function cummulating used_from_other_partition, externally_visible
17329 and force_output from aliases.
17330 (refered_from_nonlocal_var): Likewise.
17331 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17332 node flags properly.
17333
17334 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17335
17336 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17337 (-Wmemset-elt-size): New item.
17338
17339 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
17340
17341 PR ada/70759
17342 * stor-layout.h (internal_reference_types): Delete.
17343 * stor-layout.c (reference_types_internal): Likewise.
17344 (internal_reference_types): Likewise.
17345 (layout_type) <REFERENCE_TYPE>: Adjust.
17346
17347 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17348
17349 PR sanitizer/70683
17350 * tree.h (inchash::add_expr): Add FLAGS argument.
17351 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
17352 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
17353 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17354 Formatting fix. Adjust recursive calls. For tcc_comparison,
17355 if swap_tree_comparison (code) is smaller than code, hash that
17356 and arguments in the other order. Hash CONVERT_EXPR the same
17357 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17358 of ADDR_EXPR of decl as the decl itself. Add or remove
17359 OEP_ADDRESS_OF from recursive flags as needed. For
17360 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17361 operands commutatively and only the third one normally.
17362 For internal CALL_EXPR hash in CALL_EXPR_IFN.
17363
17364 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
17365
17366 * config/rtems.h (LIB_SPEC): Add -latomic.
17367
17368 2016-04-27 Joel Sherrill <joel@rtems.org>
17369
17370 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17371 xilink.ld and flags not relevant to RTEMS.
17372
17373 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17374
17375 * toplev.c (backend_init_target): Avoid calling init_reload when using
17376 LRA.
17377
17378 2016-04-26 Jakub Jelinek <jakub@redhat.com>
17379
17380 * reorg.c (try_merge_delay_insns): Declare i and j inside the
17381 for loops rather than one for the whole function.
17382
17383 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17384
17385 * match.pd (X + CST CMP X): New transformation.
17386
17387 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17388
17389 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17390 * fold-const.c (fold_binary_loc): Remove 2 transformations
17391 superseded by match.pd.
17392 * match.pd (x+x -> x*2): Generalize to integers.
17393
17394 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
17395
17396 * config/i386/i386.md (operation on memory peephole): Duplicate an
17397 existing peephole and adapt it to match lea rather than an operation
17398 that clobbers CC.
17399
17400 PR rtl-optimization/57193
17401 * opts.c (default_options_table): Add OPT_frename_registers at -O2
17402 and above.
17403 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17404
17405 2016-04-26 Bin Cheng <bin.cheng@arm.com>
17406
17407 * tree-if-conv.c (any_pred_load_store): New static variable.
17408 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
17409 any_pred_load_store instead of and_mask_load_store.
17410 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
17411 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
17412 (combine_blocks, tree_if_conversion): Ditto.
17413
17414 2016-04-26 Bin Cheng <bin.cheng@arm.com>
17415
17416 PR tree-optimization/70771
17417 PR tree-optimization/70775
17418 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
17419 virtual PHI nodes. Delete parameter.
17420 (if_convertible_loop_p_1): Delete argument to above function.
17421 (predicate_all_scalar_phis): Delete code handling single-argument
17422 PHIs.
17423 (tree_if_conversion): Mark and update virtual SSA.
17424
17425 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17426
17427 PR target/61821
17428 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
17429 (x86_elf_aligned_common): Rename to ...
17430 (x86_elf_aligned_decl_common): ... this.
17431 Add decl arg. Switch to .lbss for largecomm object. Use
17432 LARGECOMM_SECTION_ASM_OP.
17433 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
17434 renaming.
17435 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
17436 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
17437 Pass new decl arg.
17438 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17439 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
17440
17441 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17442
17443 PR target/59407
17444 * config/i386/i386.c (SECTION_LARGE): Define.
17445 (x86_64_elf_select_section): Set it for large data/bss sections.
17446 Only clear SECTION_WRITE for .lrodata.
17447 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
17448 data/bss sections.
17449 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
17450 * varasm.c (default_elf_asm_named_section): Grow flagchars.
17451 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
17452 SECTION_MACH_DEP.
17453 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
17454 * doc/tm.texi: Regenerate.
17455
17456 2016-04-26 Jakub Jelinek <jakub@redhat.com>
17457
17458 PR bootstrap/70704
17459 * configure.ac (--enable-checking): Document extra flag, for
17460 non-release builds default to --enable-checking=yes,extra.
17461 If misc checking and extra checking, define CHECKING_P to 2 instead
17462 of 1.
17463 * common.opt (fchecking=): Add.
17464 * doc/invoke.texi (-fchecking=): Document.
17465 * doc/install.texi: Document --enable-checking changes.
17466 * configure: Regenerated.
17467 * config.in: Regenerated.
17468
17469 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17470
17471 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
17472 attribute instead of which_alternative.
17473 * config/i386/sse.md (*mov<mode>_internal): Ditto.
17474 Use EXT_REX_SSE_REG_P where appropriate.
17475
17476 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17477
17478 * config/i386/predicates.md (const0_operand): Do not match
17479 const_wide_int code.
17480 (const1_operand): Ditto.
17481
17482 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17483
17484 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
17485 for SSE constm1 operands and TARGET_AVX512VL.
17486 (*movti_internal): Ditto.
17487 (*mov<mode>_or): Use constm1_operand predicate.
17488 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
17489 for SSE vector_all_ones operands and TARGET_AVX512VL.
17490 * config/i386/predicates.md (constm1_operand): New predicate.
17491 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
17492 emission of constant -1 load.
17493
17494 2016-04-25 Jason Merrill <jason@redhat.com>
17495
17496 * gdbinit.in: Skip is-a.h.
17497
17498 * attribs.c (register_scoped_attributes): Fix logic.
17499 * attribs.h: Declare register_scoped_attributes.
17500
17501 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17502
17503 * config/rs6000/rs6000-builtin.def: Correct pasto error for
17504 stxvd2x and stxvw4x built-in functions.
17505
17506 2016-04-25 DJ Delorie <dj@redhat.com>
17507
17508 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
17509 (ashrhi3): Likewise.
17510 (lshrhi3): Likewise.
17511
17512 2016-04-25 Richard Biener <rguenther@suse.de>
17513
17514 PR tree-optimization/70780
17515 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
17516 wasn't visited yet.
17517 (compute_antic): Mark blocks with abnormal preds as visited as
17518 they have a final empty antic-in solution already.
17519
17520 2016-04-25 Michael Collison <michael.collison@linaro.org>
17521
17522 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
17523
17524 2016-04-25 Michael Collison <michael.collison@linaro.org>
17525
17526 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
17527 mode is VQI to improve mixed mode vectorization.
17528 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
17529 define_insn to match low half of signed vaddw.
17530 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
17531 define_insn to match high half of signed vaddw.
17532 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
17533 define_insn to match low half of unsigned vaddw.
17534 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
17535 define_insn to match high half of unsigned vaddw.
17536 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
17537 (arm_simd_check_vect_par_cnst_half_p): Likewise.
17538 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
17539 for new function.
17540 (arm_simd_check_vect_par_cnst_half_p): Likewise.
17541 * config/arm/predicates.md (vect_par_constant_high): Support
17542 big endian and simplify by calling
17543 arm_simd_check_vect_par_cnst_half
17544 (vect_par_constant_low): Likewise.
17545
17546 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17547
17548 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
17549 predicate for operand 2.
17550
17551 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
17552 H.J. Lu <hongjiu.lu@intel.com>
17553
17554 * config/i386/i386-protos.h (standard_sse_constant_p): Add
17555 machine_mode argument.
17556 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
17557 constm1_rtx operands. For VOIDmode constants, get mode from
17558 pred_mode. Check mode size if the mode is supported by ABI.
17559 (standard_sse_constant_opcode): Do not use standard_constant_p.
17560 Strictly check ABI support for all-ones operands.
17561 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
17562 immediates. Update calls to standard_sse_constant_p.
17563 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
17564 (ix86_rtx_costs): Ditto.
17565 * config/i386/i386.md (*movxi_internal_avx512f): Use
17566 nonimmediate_or_sse_const_operand instead of vector_move_operand.
17567 Use (v,BC) alternative instead of (v,C). Use register_operand
17568 checks instead of MEM_P.
17569 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
17570 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
17571 isa attribute. Use register_operand checks instead of MEM_P.
17572 (*movti_internal): Use nonimmediate_or_sse_const_operand for
17573 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
17574 alternative and corresponding sse2 isa attribute.
17575 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
17576 to standard_sse_constant_p.
17577 (FP constant splitters): Ditto.
17578 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
17579 (C): Ditto.
17580 * config/i386/predicates.md (constm1_operand): Remove.
17581 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
17582 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
17583 vector_all_ones_operand instead of constm1_operand.
17584
17585 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17586
17587 * print-rtl.c (print_rtx_insn_vec): New function.
17588 * print-rtl.h: New prototype.
17589 * store-motion.c (struct st_expr): Make avail_stores a vector.
17590 (st_expr_entry): Adjust.
17591 (free_st_expr_entry): Likewise.
17592 (print_store_motion_mems): Likewise.
17593 (find_moveable_store): Likewise.
17594 (compute_store_table): Likewise.
17595 (delete_store): Likewise.
17596 (build_store_vectors): Likewise.
17597
17598 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17599
17600 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
17601
17602 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17603
17604 * vec.h (vec_safe_contains): New function.
17605 (vec::contains): Likewise.
17606 (vec::begin): Likewise.
17607 (vec::end): Likewise.
17608
17609 2016-04-23 Jakub Jelinek <jakub@redhat.com>
17610
17611 PR sanitizer/70712
17612 * cfgexpand.c (expand_stack_vars): Fix typo.
17613
17614 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
17615
17616 * system.h (list, map, set, vector): Include conditionally.
17617 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
17618 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
17619 * ipa-icf.c (INCLUDE_LIST): Define.
17620 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
17621 * config/sh/sh.c (INCLUDE_VECTOR): Define.
17622 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
17623 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
17624 * cp/logic.cc (INCLUDE_LIST): Define.
17625 * fortran/trans-common.c (INCLUDE_MAP): Define.
17626
17627 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
17628
17629 * auto-profile.c: Remove <string.h> include.
17630 * ipa-icf-gimple.c: Remove <list> include.
17631 * diagnostic.c: Remove <new> include.
17632 * genmatch.c: Likewise.
17633 * pretty-print.c: Likewise.
17634 * toplev.c: Likewise
17635 * c/c-objc-common.c: Likewise.
17636 * cp/error.c: Likewise.
17637 * fortran/error.c: Likewise.
17638
17639 2016-04-22 Richard Biener <rguenther@suse.de>
17640
17641 * lto-streamer-in.c (input_ssa_names): Do not allocate
17642 GIMPLE_NOP for all SSA names.
17643 * lto-streamer-out.c (output_ssa_names): Do not output
17644 SSA names that should have been released.
17645
17646 2016-04-22 Richard Biener <rguenther@suse.de>
17647
17648 PR tree-optimization/70740
17649 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
17650 VDEF.
17651
17652 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
17653
17654 PR target/70750
17655 * config/i386/predicates.md (call_insn_operand): Replace
17656 sibcall_memory_operand with memory_operand.
17657
17658 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
17659
17660 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
17661 has_single_use() tests.
17662 (register_edge_assert_for_1): Likewise.
17663 (find_assert_locations_1): Check the liveness bitmap instead of
17664 checking has_single_use().
17665
17666 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
17667
17668 PR target/70728
17669 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
17670 Extract AVX-512BW constraint from AVX.
17671
17672 2016-04-21 Richard Biener <rguenther@suse.de>
17673
17674 PR tree-optimization/70725
17675 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
17676 for phi_convertible_by_degenerating_args.
17677 (predicate_all_scalar_phis): Handle single-argument PHIs.
17678
17679 2016-04-21 Richard Biener <rguenther@suse.de>
17680
17681 PR middle-end/70747
17682 * fold-const.c (fold_comparison): Return properly typed
17683 constant boolean.
17684
17685 2016-04-21 Bin Cheng <bin.cheng@arm.com>
17686
17687 PR tree-optimization/70715
17688 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
17689 after expanding BASE using expand_simple_operations.
17690
17691 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
17692
17693 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
17694 New transformations.
17695
17696 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
17697
17698 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
17699
17700 2016-04-20 Jan Hubicka <jh@suse.cz>
17701
17702 * ipa-inline.c (can_inline_edge_p): Pass caller info to
17703 ultiimate_alias_target.
17704 (update_callee_keys): Likewise.
17705 (lookup_recursive_calls): Likewise.
17706 (speculation_useful_p): Likewise.
17707
17708 2016-04-20 Jan Hubicka <jh@suse.cz>
17709
17710 PR ipa/70018
17711 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
17712 (set_nothrow_flag_1): ... this; handle interposition correctly;
17713 recurse on aliases and thunks.
17714 (cgraph_node::set_nothrow_flag): New.
17715 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
17716 functions compiled with non-call exceptions that binds to current
17717 def.
17718 (propagate_nothrow): Be safe WRT interposition.
17719 * cgraph.h (set_nothrow_flag): Update prototype.
17720
17721 2016-04-18 Jan Hubicka <jh@suse.cz>
17722
17723 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17724 max_loop_iterations_int.
17725 (tree_unswitch_outer_loop): Likewise.
17726
17727 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17728
17729 PR tree-optimization/69489
17730 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17731 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17732 Revise dump message.
17733 (if_convertible_bb_p): Remove check on edge count of basic block's
17734 predecessors.
17735
17736 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17737
17738 PR tree-optimization/56625
17739 PR tree-optimization/69489
17740 * tree-data-ref.h (DR_INNERMOST): New macro.
17741 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17742 hashing struct innermost_loop_behavior.
17743 (ref_DR_map): Remove.
17744 (innermost_DR_map): New map.
17745 (baseref_DR_map): Revise comment.
17746 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17747 to innermost_DR_map accroding to its innermost loop behavior.
17748 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17749 to its innermost loop behavior.
17750 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17751 Add initialization for innermost_DR_map. Record memory reference
17752 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17753 have innermost loop behavior.
17754 (if_convertible_loop_p): Remove release for ref_DR_map. Release
17755 innermost_DR_map.
17756
17757 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
17758
17759 * config/i386/i386.md (*lea<mode>_general_1): Rename from
17760 *lea_general_1. Use explicit SWI12 mode interator.
17761 (*lea<mode>_general_2): Rename from *lea_general_2.
17762 Use explicit SWI12 mode interator.
17763 (*lea<mode>_general_3): Rename from *lea_general_3.
17764 Use explicit SWI12 mode interator.
17765 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17766 Use explicit SWI12 mode interator.
17767 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17768 Use explicit SWI48 mode interator.
17769
17770 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
17771
17772 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17773 Short-cut unaligned load and store cases. Handle all integer
17774 vector modes.
17775 (ix86_expand_vector_move_misalign): Short-cut unaligned load
17776 and store cases. Call ix86_avx256_split_vector_move_misalign
17777 directly without checking mode class.
17778
17779 2016-04-20 Andrew Pinski <apinski@cavium.com>
17780 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17781
17782 PR target/64971
17783 * config/aarch64/aarch64.md (sibcall): Force call
17784 address to be DImode for ILP32.
17785 (sibcall_value): Likewise.
17786
17787 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
17788
17789 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17790
17791 2016-04-20 Richard Biener <rguenther@suse.de>
17792
17793 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17794 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17795 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17796 (maybe_push_res_to_seq): Adjust.
17797 * gimple-fold.c (maybe_build_generic_op): Likewise.
17798
17799 2016-04-20 Marek Polacek <polacek@redhat.com>
17800
17801 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17802 rather than true.
17803
17804 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
17805
17806 * config/i386/sse.md (vec_unpacks_lo_hi): Always
17807 use kmovw to support AVX512F target.
17808
17809 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17810
17811 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17812
17813 2016-04-20 Marek Polacek <polacek@redhat.com>
17814
17815 PR tree-optimization/70725
17816 * tree-if-conv.c (is_false_predicate): New function.
17817 (predicate_mem_writes): Use it.
17818
17819 2016-04-20 Richard Biener <rguenther@suse.de>
17820
17821 PR tree-optimization/70726
17822 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
17823 shift amounts from a pattern stmt operand.
17824
17825 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17826
17827 PR target/70674
17828 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
17829 stack_restore_from_fpr pattern when restoring r15.
17830 (s390_optimize_prologue): Strip away the memory barrier in the
17831 parallel when trying to get rid of restore insns.
17832 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
17833 definition for loading the stack pointer from an FPR. Compared to
17834 the normal move insn this pattern includes a full memory barrier.
17835
17836 2016-04-19 Jakub Jelinek <jakub@redhat.com>
17837
17838 PR middle-end/70680
17839 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
17840 implicitly linear or lastprivate iterator on the outer context.
17841
17842 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
17843
17844 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
17845 alignment check.
17846 * config/i386/i386.md (ssememalign): Removed.
17847 * config/i386/sse.md: Remove ssememalign attribute from patterns.
17848
17849 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
17850
17851 PR target/69201
17852 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
17853 const short * to __builtin_ia32_loaddquhi512_mask.
17854 (_mm512_maskz_loadu_epi16): Likewise.
17855 (_mm512_mask_storeu_epi16): Pass short * to
17856 __builtin_ia32_storedquhi512_mask.
17857 (_mm512_mask_loadu_epi8): Pass const char * to
17858 __builtin_ia32_loaddquqi512_mask.
17859 (_mm512_maskz_loadu_epi8): Likewise.
17860 (_mm512_mask_storeu_epi8): Pass char * to
17861 __builtin_ia32_storedquqi512_mask.
17862 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
17863 const double * to __builtin_ia32_loadupd512_mask.
17864 (_mm512_mask_loadu_pd): Likewise.
17865 (_mm512_maskz_loadu_pd): Likewise.
17866 (_mm512_storeu_pd): Pass double * to
17867 __builtin_ia32_storeupd512_mask.
17868 (_mm512_mask_storeu_pd): Likewise.
17869 (_mm512_loadu_ps): Pass const float * to
17870 __builtin_ia32_loadups512_mask.
17871 (_mm512_mask_loadu_ps): Likewise.
17872 (_mm512_maskz_loadu_ps): Likewise.
17873 (_mm512_storeu_ps): Pass float * to
17874 __builtin_ia32_storeups512_mask.
17875 (_mm512_mask_storeu_ps): Likewise.
17876 (_mm512_mask_loadu_epi64): Pass const long long * to
17877 __builtin_ia32_loaddqudi512_mask.
17878 (_mm512_maskz_loadu_epi64): Likewise.
17879 (_mm512_mask_storeu_epi64): Pass long long *
17880 to __builtin_ia32_storedqudi512_mask.
17881 (_mm512_loadu_si512): Pass const int * to
17882 __builtin_ia32_loaddqusi512_mask.
17883 (_mm512_mask_loadu_epi32): Likewise.
17884 (_mm512_maskz_loadu_epi32): Likewise.
17885 (_mm512_storeu_si512): Pass int * to
17886 __builtin_ia32_storedqusi512_mask.
17887 (_mm512_mask_storeu_epi32): Likewise.
17888 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
17889 char * to __builtin_ia32_storedquqi256_mask.
17890 (_mm_mask_storeu_epi8): Likewise.
17891 (_mm256_mask_loadu_epi16): Pass const short * to
17892 __builtin_ia32_loaddquhi256_mask.
17893 (_mm256_maskz_loadu_epi16): Likewise.
17894 (_mm_mask_loadu_epi16): Pass const short * to
17895 __builtin_ia32_loaddquhi128_mask.
17896 (_mm_maskz_loadu_epi16): Likewise.
17897 (_mm256_mask_loadu_epi8): Pass const char * to
17898 __builtin_ia32_loaddquqi256_mask.
17899 (_mm256_maskz_loadu_epi8): Likewise.
17900 (_mm_mask_loadu_epi8): Pass const char * to
17901 __builtin_ia32_loaddquqi128_mask.
17902 (_mm_maskz_loadu_epi8): Likewise.
17903 (_mm256_mask_storeu_epi16): Pass short * to.
17904 __builtin_ia32_storedquhi256_mask.
17905 (_mm_mask_storeu_epi16): Pass short * to.
17906 __builtin_ia32_storedquhi128_mask.
17907 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17908 const double * to __builtin_ia32_loadupd256_mask.
17909 (_mm256_maskz_loadu_pd): Likewise.
17910 (_mm_mask_loadu_pd): Pass onst double * to
17911 __builtin_ia32_loadupd128_mask.
17912 (_mm_maskz_loadu_pd): Likewise.
17913 (_mm256_mask_storeu_pd): Pass double * to
17914 __builtin_ia32_storeupd256_mask.
17915 (_mm_mask_storeu_pd): Pass double * to
17916 __builtin_ia32_storeupd128_mask.
17917 (_mm256_mask_loadu_ps): Pass const float * to
17918 __builtin_ia32_loadups256_mask.
17919 (_mm256_maskz_loadu_ps): Likewise.
17920 (_mm_mask_loadu_ps): Pass const float * to
17921 __builtin_ia32_loadups128_mask.
17922 (_mm_maskz_loadu_ps): Likewise.
17923 (_mm256_mask_storeu_ps): Pass float * to
17924 __builtin_ia32_storeups256_mask.
17925 (_mm_mask_storeu_ps): ass float * to
17926 __builtin_ia32_storeups128_mask.
17927 (_mm256_mask_loadu_epi64): Pass const long long * to
17928 __builtin_ia32_loaddqudi256_mask.
17929 (_mm256_maskz_loadu_epi64): Likewise.
17930 (_mm_mask_loadu_epi64): Pass const long long * to
17931 __builtin_ia32_loaddqudi128_mask.
17932 (_mm_maskz_loadu_epi64): Likewise.
17933 (_mm256_mask_storeu_epi64): Pass long long * to
17934 __builtin_ia32_storedqudi256_mask.
17935 (_mm_mask_storeu_epi64): Pass long long * to
17936 __builtin_ia32_storedqudi128_mask.
17937 (_mm256_mask_loadu_epi32): Pass const int * to
17938 __builtin_ia32_loaddqusi256_mask.
17939 (_mm256_maskz_loadu_epi32): Likewise.
17940 (_mm_mask_loadu_epi32): Pass const int * to
17941 __builtin_ia32_loaddqusi128_mask.
17942 (_mm_maskz_loadu_epi32): Likewise.
17943 (_mm256_mask_storeu_epi32): Pass int * to
17944 __builtin_ia32_storedqusi256_mask.
17945 (_mm_mask_storeu_epi32): Pass int * to
17946 __builtin_ia32_storedqusi128_mask.
17947 * config/i386/i386-builtin-types.def (PCSHORT): New.
17948 (PINT64): Likewise.
17949 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17950 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17951 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17952 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17953 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17954 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
17955 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
17956 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
17957 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
17958 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
17959 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
17960 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
17961 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
17962 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
17963 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
17964 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
17965 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
17966 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
17967 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
17968 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
17969 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
17970 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
17971 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
17972 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
17973 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
17974 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
17975 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
17976 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
17977 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
17978 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
17979 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
17980 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
17981 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
17982 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
17983 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
17984 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
17985 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
17986 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
17987 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
17988 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
17989 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
17990 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
17991 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
17992 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
17993 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
17994 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
17995 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
17996 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
17997 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
17998 use UNSPEC_STOREU.
17999 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18000 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18001 load nor store.
18002 (ix86_expand_vector_move_misalign): Likewise.
18003 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18004 to scalar function prototype for unaligned load/store builtins.
18005 (ix86_expand_special_args_builtin): Updated.
18006 * config/i386/sse.md (UNSPEC_LOADU): Removed.
18007 (UNSPEC_STOREU): Likewise.
18008 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18009 (VI_ULOADSTORE_F_AVX512VL): Likewise.
18010 (ssescalarsize): Handle V4TI, V2TI and V1TI.
18011 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18012 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18013 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18014 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18015 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18016 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18017 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18018 (<avx512>_storedqu<mode>_mask): Likewise.
18019 (*sse4_2_pcmpestr_unaligned): Likewise.
18020 (*sse4_2_pcmpistr_unaligned): Likewise.
18021 (*mov<mode>_internal): Renamed to ...
18022 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
18023 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18024 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18025 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18026
18027 2016-04-19 Richard Biener <rguenther@suse.de>
18028
18029 PR tree-optimization/70171
18030 * tree-ssa-phiprop.c: Include stor-layout.h.
18031 (phiprop_insert_phi): Handle the aggregate copy case.
18032 (propagate_with_phi): Likewise.
18033
18034 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
18035
18036 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18037 instead of simplify_gen_subreg (... , 0).
18038 (ix86_delegitimize_address): Ditto.
18039 (ix86_split_divmod): Ditto.
18040 (ix86_split_copysign_const): Ditto.
18041 (ix86_split_copysign_var): Ditto.
18042 (ix86_expand_args_builtin): Ditto.
18043 (ix86_expand_round_builtin): Ditto.
18044 (ix86_expand_special_args_builtin): Ditto.
18045 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18046 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18047 (udivmodqi4): Ditto.
18048 (absneg splitters): Ditto.
18049 (*jcc_bt<mode>_1): Ditto.
18050
18051 2016-04-19 Richard Biener <rguenther@suse.de>
18052
18053 PR tree-optimization/70724
18054 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18055 restoring out from ...
18056 (free_scc_vn): ... here.
18057 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18058 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18059 tail merging.
18060 (pass_fre::execute): Restore SSA info.
18061
18062 2016-04-19 Richard Biener <rguenther@suse.de>
18063
18064 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18065 * gimple-walk.c (walk_gimple_op): Initialize it.
18066 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18067 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18068 remapping SSA names of defs.
18069 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18070 adjustment.
18071
18072 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
18073
18074 PR middle-end/70689
18075 * lra-constraints.c (equiv_substition_p): New.
18076 (process_alt_operands): Use it.
18077 (swap_operands): Swap it.
18078 (curr_insn_transform): Update it.
18079
18080 2016-04-18 Michael Matz <matz@suse.de>
18081
18082 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18083 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18084 * tree-core.h (tree_type_common.align): Use bit-field.
18085 (tree_type_common.spare): New.
18086 (tree_decl_common.off_align): Make smaller.
18087 (tree_decl_common.align): Use bit-field.
18088
18089 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18090 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18091 (scan_sharing_clauses): Ditto.
18092 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18093 (omp_finish_file): Ditto.
18094 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18095 (layout_decl): Ditto.
18096 (relayout_decl): Ditto.
18097 (finalize_record_size): Use SET_TYPE_ALIGN.
18098 (finalize_type_size): Ditto.
18099 (finish_builtin_struct): Ditto.
18100 (layout_type): Ditto.
18101 (initialize_sizetypes): Ditto.
18102 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18103 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18104 (lookup_field_for_decl): Use SET_DECL_ALIGN.
18105 (get_chain_field): Ditto.
18106 (get_trampoline_type): Ditto.
18107 (get_nl_goto_field): Ditto.
18108 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18109 SET_DECL_ALIGN.
18110 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18111 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18112 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18113 (build_qualified_type): Use SET_TYPE_ALIGN.
18114 (build_aligned_type, build_range_type_1): Ditto.
18115 (build_atomic_base): Ditto.
18116 (build_common_tree_nodes): Ditto.
18117 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18118 (expand_one_stack_var_at): Ditto.
18119 * coverage.c (build_var): Use SET_DECL_ALIGN.
18120 * except.c (init_eh): Ditto.
18121 * function.c (assign_parm_setup_block): Ditto.
18122 * symtab.c (increase_alignment_1): Ditto.
18123 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18124 * tree-vect-stmts.c (ensure_base_align): Ditto.
18125 * varasm.c (align_variable): Ditto.
18126 (assemble_variable): Ditto.
18127 (build_constant_desc): Ditto.
18128 (output_constant_def_contents): Ditto.
18129
18130 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18131 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18132 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18133 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18134 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18135
18136 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
18137
18138 PR target/70708
18139 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18140 replace %vmovsd with "%vmovq".
18141 (vec_concatv2df): Likewise.
18142
18143 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
18144
18145 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18146 (*vec_extractv2si_0): Ditto.
18147 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18148 (zero_extended_scalar_load_operand splitters): Ditto.
18149 (vec_extract splitters): Ditto.
18150 (*vec_extractv4si_0_zext): Ditto.
18151 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18152 and lowpart_subreg.
18153 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18154 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18155 (*sse4_1_extractps): Use lowpart_subreg.
18156 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18157
18158 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18159
18160 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18161 gld requirements.
18162 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18163 Mention Solaris 11 packaging changes.
18164 Update gas and gld requirements.
18165 Remove reference to pre-Solaris 10 bug.
18166 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18167 systems and bugs.
18168 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18169 with cc.
18170
18171 2016-04-17 Jan Hubicka <jh@suse.cz>
18172
18173 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18174 max_loop_iterations_int.
18175
18176 2016-04-18 Richard Biener <rguenther@suse.de>
18177
18178 PR tree-optimization/43434
18179 * tree-ssa-structalias.c (struct vls_data): New.
18180 (visit_loadstore): Handle all pointer-based accesses.
18181 (compute_dependence_clique): Compute a bitmap of restrict tags
18182 assigned bases and pass it to visit_loadstore.
18183
18184 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
18185
18186 PR target/70711
18187 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18188 armv8.1-a and armv8.1-a+crc.
18189
18190 2016-04-18 Richard Biener <rguenther@suse.de>
18191
18192 PR tree-optimization/70701
18193 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18194 references after translating through a memcpy.
18195
18196 2016-04-18 Richard Biener <rguenther@suse.de>
18197
18198 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18199 (compute_antic): ... here. For partial antic use regular
18200 postorder and scrap iteration.
18201 (compute_partial_antic_aux): Remove unused return value.
18202 (init_pre): Do not allocate postorder.
18203 (fini_pre): Do not free postorder.
18204
18205 2016-04-18 Richard Biener <rguenther@suse.de>
18206
18207 PR middle-end/37870
18208 * expmed.c (extract_bit_field_1): Remove broken case
18209 using a wider MODE_INT mode.
18210
18211 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
18212
18213 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18214 unless compiling with at least GCC-4.8.
18215
18216 2016-04-17 Jan Hubicka <jh@suse.cz>
18217
18218 PR bootstrap/70706
18219 * graphite.c (graphite_finalize): Update call to
18220 tree_estimate_probability.
18221 * predict.h (tree_estimate_probability): Update prototype.
18222
18223 2016-04-17 Jan Hubicka <jh@suse.cz>
18224
18225 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18226 (tree_estimate_probability): Likewise.
18227 (pass_profile::execute): Update.
18228 (report_predictor_hitrates): New function.
18229 * profile.c (compute_branch_probabilities): Use it.
18230 * predict.h (report_predictor_hitrates): Declare.
18231
18232 2016-04-17 Jan Hubicka <jh@suse.cz>
18233
18234 PR ipa/70018
18235 * cgraph.h (cgraph_node::set_const_flag,
18236 cgraph_node::set_pure_flag): Update prototype to return bool;
18237 update comment.
18238 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18239 of interposable symbol are interposable, too.
18240 (cgraph_set_const_flag_1): Rename to ...
18241 (set_const_flag_1): ... this one; change to self recursive function
18242 instead of call_for_symbol_thunks_and_aliases. Handle correctly
18243 clearnig the flag in all variants and also virtual thunks of const
18244 functions are pure; track if any change was done.
18245 (cgraph_node::set_const_flag): Update.
18246 (struct set_pure_flag_info): New struct.
18247 (cgraph_set_pure_flag_1): Rename to ...
18248 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18249 rather than pointer encoded flags; track if any changes was done;
18250 handle correctly clearning flag and setting flag of aliases already
18251 declared const.
18252 (cgraph_node::set_pure_flag): Update.
18253 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18254
18255 2016-04-17 Tom de Vries <tom@codesourcery.com>
18256
18257 PR other/70433
18258 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18259 backslash in label.
18260
18261 2016-04-17 Tom de Vries <tom@codesourcery.com>
18262
18263 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18264 '{}<> ' as escape-for-record.
18265
18266 2016-04-17 Tom de Vries <tom@codesourcery.com>
18267
18268 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18269 structure.
18270
18271 2016-04-17 Tom de Vries <tom@codesourcery.com>
18272
18273 PR other/70185
18274 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18275 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18276 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18277 * passes.c (finish_optimization_passes): Only call
18278 finish_graph_dump_file if dfi->graph_dump_initialized.
18279 (execute_function_dump, pass_init_dump_file): Use
18280 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18281
18282 2016-04-17 Tom de Vries <tom@codesourcery.com>
18283
18284 PR tree-optimization/70256
18285 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18286 (debug_varmap): New function.
18287
18288 2016-04-17 Tom de Vries <tom@codesourcery.com>
18289
18290 PR other/70183
18291 * passes.c (pass_manager::register_pass): Propagate pflags.
18292
18293 2016-04-17 Tom de Vries <tom@codesourcery.com>
18294
18295 PR other/68875
18296 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18297 * passes.c (pass_manager::pass_manager): Declare and init p_start in
18298 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
18299 check if it's equal to p_start.
18300 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18301
18302 2016-04-15 Jan Hubicka <jh@suse.cz>
18303
18304 PR ipa/70018
18305 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18306 function does not bind to current def.
18307 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18308 handle conservatively calls to functions that does not need to bind
18309 to current def.
18310 (check_call): Update call of worse_state.
18311 (ignore_edge_for_nothrow): Update.
18312 (ignore_edge_for_pure_const): Likewise.
18313 (propagate_pure_const): Update calls to worse_state.
18314 (skip_function_for_local_pure_const): Reformat comments.
18315
18316 2016-04-15 Jan Hubicka <jh@suse.cz>
18317
18318 PR ipa/70018
18319 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18320 (cgraph_node::function_symbol): Likewise.
18321 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18322 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18323 (symtab_node::ultimate_alias_target): Add REF parameter.
18324 (symtab_node::binds_to_current_def_p): Declare.
18325 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18326 (cgraph_node::function_symbol): Likewise.
18327 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18328 (cgraph_node::get_availability): Likewise.
18329 (cgraph_edge::binds_to_current_def_p): New inline function.
18330 (varpool_node::get_availability): Add REF parameter.
18331 (varpool_node::ultimate_alias_target): Likewise.
18332 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18333 (symtab_node::binds_to_current_def_p): Likewise.
18334 * varpool.c (varpool_node::get_availability): Likewise.
18335
18336 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18337
18338 PR target/70662
18339 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18340 Fix mode size check.
18341
18342 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18343
18344 * BASE-VER: Set to 7.0.0.
18345
18346 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
18347
18348 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18349
18350 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18351
18352 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18353 architecture revisions.
18354
18355 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
18356
18357 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18358 * config/i386/i386.c (ix86_using_red_zone): No longer static.
18359 * config/i386/i386.md (stack decrement to push peepholes): Guard
18360 with !x86_using_red_zone ().
18361
18362 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR c++/70675
18365 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18366 to dump_generic_node.
18367 (NIY): Pass also flags to do_niy.
18368
18369 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
18370
18371 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18372 (simd_clone_vector_of_formal_parm_types)
18373 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18374 (simd_clone_mangle, simd_clone_create)
18375 (simd_clone_adjust_return_type, create_tmp_simd_array)
18376 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18377 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18378 (ipa_simd_modify_function_body, simd_clone_linear_addend)
18379 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18380 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18381 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18382 * omp-simd-clone.c: ... this new file.
18383 (simd_clone_vector_of_formal_parm_types): Make it static.
18384 * Makefile.in (OBJS): Add omp-simd-clone.o.
18385
18386 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18387
18388 PR target/70662
18389 * config/i386/sse.md: Use proper memory operand modifiers.
18390
18391
18392 2016-04-15 Richard Biener <rguenther@suse.de>
18393 Alan Modra <amodra@gmail.com>
18394
18395 PR tree-optimization/70130
18396 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18397 when alignment stays not the same and no not use the realign
18398 scheme then.
18399
18400 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18401
18402 PR target/70669
18403 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18404 direct move handlers for KFmode. Change TFmode handlers test from
18405 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18406
18407 2016-04-14 Jakub Jelinek <jakub@redhat.com>
18408
18409 PR c++/70594
18410 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
18411 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
18412 (inlined_polymorphic_ctor_dtor_block_p): Use it.
18413 * tree-ssa-live.c (remove_unused_scope_block_p): When
18414 in_ctor_dtor_block, avoid discarding not just BLOCKs with
18415 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
18416 block_ultimate_origin is FUNCTION_DECL.
18417 (remove_unused_locals): If current_function_decl is
18418 polymorphic_ctor_dtor_p, pass initial true to
18419 remove_unused_scope_block_p' is_ctor_dtor_block.
18420
18421 2016-04-14 Martin Sebor <msebor@redhat.com>
18422
18423 PR c++/69517
18424 PR c++/70019
18425 PR c++/70588
18426 * doc/extend.texi (Variable Length): Revert.
18427
18428 2016-04-14 Marek Polacek <polacek@redhat.com>
18429 Jan Hubicka <hubicka@ucw.cz>
18430
18431 PR c++/70029
18432 * tree.c (verify_type): Disable the canonical type of main variant
18433 check.
18434
18435 2016-04-14 Jason Merrill <jason@redhat.com>
18436
18437 * cfgexpand.c, expr.c: Revert previous change.
18438
18439 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
18440
18441 PR middle-end/70643
18442 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
18443 when building a mem ref for the incoming reduction variable.
18444
18445 2016-04-14 Richard Biener <rguenther@suse.de>
18446
18447 PR tree-optimization/70614
18448 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
18449 loop if the evolution dropped to chrec_dont_know.
18450 (interpret_condition_phi): Likewise.
18451
18452 2016-04-14 Richard Biener <rguenther@suse.de>
18453
18454 PR tree-optimization/70623
18455 * tree-ssa-pre.c (changed_blocks): Make global ...
18456 (compute_antic): ... local here. Move and fix worklist
18457 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
18458 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
18459 worklist handling, dump when ANTIC_IN changed.
18460 (compute_partial_antic_aux): Remove worklist handling.
18461 (init_pre): Do not compute post dominators. Add a comment about
18462 the CFG order chosen.
18463 (fini_pre): Do not free post dominators.
18464
18465 2016-04-13 Martin Sebor <msebor@redhat.com>
18466
18467 PR c++/69517
18468 PR c++/70019
18469 PR c++/70588
18470 * doc/extend.texi (Variable Length): Document C++ specifics.
18471
18472 2016-04-13 Jakub Jelinek <jakub@redhat.com>
18473
18474 PR c++/70641
18475 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
18476 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
18477 eh edges have been purged.
18478
18479 PR c++/70594
18480 * tree-sra.c (create_access_replacement,
18481 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
18482 gets fancy name.
18483 * tree-pretty-print.c (dump_fancy_name): New function.
18484 (dump_decl_name, dump_generic_node): Use it.
18485
18486 2016-04-13 Jason Merrill <jason@redhat.com>
18487
18488 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
18489 * expr.c (expand_expr_real_1): Likewise.
18490
18491 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
18492
18493 * config/i386/i386.md (kunpckhi): Swap operands.
18494 (kunpcksi): Likewise.
18495 (kunpckdi): Likewise.
18496 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
18497 (vec_pack_trunc_<mode>): Likewise.
18498
18499 2016-04-13 Jakub Jelinek <jakub@redhat.com>
18500
18501 PR debug/70628
18502 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
18503
18504 PR middle-end/70633
18505 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
18506 gimplification turns some element into non-constant.
18507
18508 PR debug/70628
18509 * rtl.h (convert_memory_address_addr_space_1): New prototype.
18510 * explow.c (convert_memory_address_addr_space_1): No longer static,
18511 add NO_EMIT argument and don't call convert_modes if true, pass
18512 it down recursively, remove break after return.
18513 (convert_memory_address_addr_space): Adjust caller.
18514 * simplify-rtx.c (simplify_unary_operation_1): Call
18515 convert_memory_address_addr_space_1 instead of convert_memory_address,
18516 if it returns NULL, don't simplify.
18517
18518 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
18519
18520 PR target/70630
18521 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
18522
18523 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18524
18525 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18526 Bump the upper SIMDLEN limits, so that if the return type or
18527 characteristic type if the return type is void can be passed in
18528 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
18529 allowed.
18530
18531 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18532
18533 PR target/70640
18534 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
18535 Do not use "=" constraint on an input constraint.
18536 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18537 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18538 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
18539 generates (neg (abs ...)) instead of (abs ...).
18540
18541 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18542
18543 PR rtl-optimization/70596
18544 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
18545 just invalidate LRA data and reset them. Adjust dump wording.
18546
18547 2016-04-12 Martin Liska <mliska@suse.cz>
18548
18549 Revert
18550 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
18551
18552 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18553 estimates here.
18554 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18555 max_loop_iterations_int.
18556 (tree_unswitch_outer_loop): Likewise.
18557 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18558 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18559
18560 2016-04-12 Tom de Vries <tom@codesourcery.com>
18561
18562 PR tree-optimization/68756
18563 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
18564 instead of new_name.
18565
18566 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18567
18568 PR tree-optimization/70602
18569 * tree-sra.c (generate_subtree_copies): Don't write anything into
18570 constant pool decls.
18571
18572 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
18573 regardless whether there are depend clauses or not.
18574
18575 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18576
18577 PR target/70381
18578 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
18579 target attribute and pragma from changing the -mfloat128
18580 and -mfloat128-hardware options.
18581
18582 * doc/extend.texi (Additional Floating Types): Document PowerPC
18583 __float128 restrictions.
18584
18585 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18586
18587 PR target/70133
18588 * config/aarch64/driver-aarch64.c
18589 (aarch64_get_extension_string_for_isa_flags): New.
18590 (arch_extension): Rename to...
18591 (aarch64_arch_extension): ...This.
18592 (ext_to_feat_string): Rename to...
18593 (aarch64_extensions): ...This.
18594 (aarch64_core_data): Keep track of architecture extension flags.
18595 (cpu_data): Rename to...
18596 (aarch64_cpu_data): ...This.
18597 (aarch64_arch_driver_info): Keep track of architecture extension
18598 flags.
18599 (get_arch_name_from_id): Rename to...
18600 (get_arch_from_id): ...This, change return type.
18601 (host_detect_local_cpu): Update and reformat for renames, handle
18602 extensions through common infrastructure.
18603
18604 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18605
18606 PR target/70133
18607 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
18608 track of a canonical flag name.
18609 (all_extensions): Likewise.
18610 (arch_to_arch_name): Also track extension flags enabled by the arch.
18611 (all_architectures): Likewise.
18612 (aarch64_parse_extension): Move to here.
18613 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
18614 rework.
18615 (aarch64_rewrite_selected_cpu): Update for above change.
18616 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
18617 are handled, such that the single explicit value enabled by an
18618 extension is kept seperate from the implicit values it also enables.
18619 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
18620 to here.
18621 (aarch64_parse_extension): New.
18622 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
18623 here to config/aarch64/aarch64-protos.h.
18624 (aarch64_parse_extension): Move from here to
18625 common/config/aarch64/aarch64-common.c.
18626 (aarch64_option_print): Update.
18627 (aarch64_declare_function_name): Likewise.
18628 (aarch64_start_file): Likewise.
18629 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
18630 the canonical flag for extensions.
18631 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
18632 flags.
18633
18634 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18635
18636 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
18637 AARCH64_FL_CRC.
18638
18639 2016-04-09 Tom de Vries <tom@codesourcery.com>
18640
18641 PR tree-optimization/68953
18642 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
18643 first to last subscript.
18644
18645 2016-04-09 Jakub Jelinek <jakub@redhat.com>
18646
18647 PR tree-optimization/70586
18648 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
18649 for any calls.
18650
18651 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
18652
18653 PR lto/70289
18654 PR ipa/70348
18655 PR tree-optimization/70373
18656 PR middle-end/70533
18657 PR middle-end/70534
18658 PR middle-end/70535
18659 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
18660 clauses for acc parallel reductions as necessary. Error on those
18661 that are private.
18662 * omp-low.c (scan_sharing_clauses): Don't install variables which
18663 are used in acc parallel reductions.
18664 (lower_rec_input_clauses): Remove dead code.
18665 (lower_oacc_reductions): Add support for reference reductions.
18666 (lower_reduction_clauses): Remove dead code.
18667 (lower_omp_target): Don't remap variables appearing in acc parallel
18668 reductions.
18669 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
18670
18671 2016-04-08 Jakub Jelinek <jakub@redhat.com>
18672
18673 PR middle-end/70593
18674 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
18675 with multiple SSA_NAME defs, force the outputs other than first
18676 to be live before calling live_track_process_def on each output.
18677
18678 PR rtl-optimization/70574
18679 * fwprop.c (forward_propagate_and_simplify): Don't add
18680 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
18681 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
18682 paradoxical subregs within *loc.
18683
18684 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
18685
18686 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
18687 -ftree-parallelize-loops={0,1}.
18688 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18689 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18690 * config/ia64/hpux.h (LIB_SPEC): Likewise.
18691 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18692 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18693
18694 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
18695
18696 PR sanitizer/70541
18697 * asan.c (instrument_derefs): If we get unknown location, extract it
18698 with EXPR_LOCATION.
18699 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
18700
18701 2016-04-08 Tom de Vries <tom@codesourcery.com>
18702
18703 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
18704 implicit firstprivate clause.
18705
18706 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18707
18708 PR target/70566
18709 * config/arm/thumb2.md (tst + branch-> lsls + branch
18710 peephole below *orsi_not_shiftsi_si): Require that condition
18711 register is dead after the peephole.
18712 (second peephole after the above): Likewise.
18713
18714 2016-04-08 Alan Modra <amodra@gmail.com>
18715
18716 PR target/70117
18717 * builtins.c (fold_builtin_classify): For IBM extended precision,
18718 look at just the high-order double to test for NaN.
18719 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
18720 test just the high double for Inf but both doubles for subnormal
18721 limit.
18722
18723 2016-04-07 Jakub Jelinek <jakub@redhat.com>
18724
18725 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
18726 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
18727 node->simdclone->mask_mode != VOIDmode masks.
18728 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
18729 earlier, use it instead of node->simdclone.
18730 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18731 Set clonei->mask_mode.
18732
18733 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
18734
18735 PR c/70436
18736 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18737 Pass it through to cp_parser_already_scoped_statement.
18738 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
18739 it through to cp_parser_statement.
18740 (cp_parser_statement): Pass IF_P through to
18741 cp_parser_iteration_statement.
18742 (cp_parser_pragma): Adjust call to
18743 cp_parser_iteration_statement.
18744
18745 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
18746
18747 PR c/70436
18748 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18749 resolve a future -Wparentheses warning.
18750 * omp-low.c (scan_sharing_clauses): Likewise.
18751 * tree-parloops.c (eliminate_local_variables): Likewise.
18752
18753 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
18754
18755 PR rtl-optimization/70398
18756 * lra-constraints.c (process_address_1): Check zero scale and code
18757 for reloading with zero scale.
18758
18759 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
18760
18761 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18762 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18763
18764 2016-04-06 Jakub Jelinek <jakub@redhat.com>
18765
18766 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18767 Add support for AVX512F clones, include them by default for
18768 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
18769 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18770 up to 128.
18771
18772 PR middle-end/70550
18773 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18774 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18775 firstprivate clauses.
18776 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18777 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18778 (lower_omp_target): Set TREE_NO_WARNING for
18779 non-addressable possibly uninitialized vars which are copied into
18780 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18781
18782 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
18783
18784 * config/pa/predicates.md (integer_store_memory_operand): Accept
18785 REG+D operands with a large offset when reload_in_progress is true.
18786 (floating_point_store_memory_operand): Likewise.
18787
18788 2016-04-05 Jakub Jelinek <jakub@redhat.com>
18789
18790 PR c++/70336
18791 * match.pd (nested int casts): Limit to GIMPLE.
18792
18793 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
18794
18795 PR ipa/66223
18796 * ipa-devirt.c (maybe_record_node): Fix comment; use
18797 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18798
18799 2016-04-05 Jakub Jelinek <jakub@redhat.com>
18800
18801 PR rtl-optimization/70542
18802 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18803 if there are any uses other than insn or debug insns.
18804
18805 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
18806 Jakub Jelinek <jakub@redhat.com>
18807
18808 PR tree-optimization/70509
18809 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18810 Shift HOST_WIDE_INT_1U instead of 1.
18811
18812 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
18813
18814 PR tree-optimization/70509
18815 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
18816 of the vector base type for index.
18817
18818 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
18819
18820 PR target/70510
18821 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
18822
18823 2016-04-05 Richard Biener <rguenther@suse.de>
18824
18825 PR tree-optimization/70526
18826 * tree-sra.c (build_ref_for_offset): Use prev_base to
18827 extract the alias pointer type.
18828
18829 2016-04-05 Richard Biener <rguenther@suse.de>
18830
18831 * dse.c (struct store_info): Remove alias_set member.
18832 (struct read_info_type): Likewise.
18833 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
18834 spill_deleted, clear_alias_set_lookup): Remove.
18835 (get_group_info): Remove dead base == NULL_RTX case.
18836 (dse_step0): Remove initialization of removed variables.
18837 (delete_dead_store_insn): Reomve alias set dumping.
18838 (free_read_records): Remove alias_set handling.
18839 (canon_address): Remove alias_set_out parameter.
18840 (record_store): Remove spill_alias_set, it's always zero.
18841 (check_mem_read_rtx): Likewise.
18842 (dse_step2): Rename from ...
18843 (dse_step2_nospill): ... this. Adjust.
18844 (scan_stores): Rename from ...
18845 (scan_stores_nospill): ... this.
18846 (scan_reads): Rename from ...
18847 (scan_reads_nospill): ... this.
18848 (scan_stores_spill, scan_reads_spill): Remove.
18849 (dse_step3_scan): Remove for_spills argument which is always false.
18850 (dse_step3): Likewise.
18851 (dse_step5): Rename from ...
18852 (dse_step5_nospill): ... this. Remove alias_set handling.
18853 (rest_of_handle_dse): Adjust.
18854
18855 2016-04-05 Jakub Jelinek <jakub@redhat.com>
18856
18857 PR target/70525
18858 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
18859 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
18860 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
18861 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
18862
18863 2016-04-05 Richard Biener <rguenther@suse.de>
18864
18865 PR middle-end/70499
18866 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
18867 non-register type temporaries into SSA.
18868
18869 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
18870
18871 PR ipa/66223
18872 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
18873 calls when sanitizing.
18874 (possible_polymorphic_call_target_p): Fix formatting.
18875
18876 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18877 Jakub Jelinek <jakub@redhat.com>
18878
18879 PR middle-end/70457
18880 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
18881 to ensure a call statement is compatible with a built-in's
18882 prototype.
18883 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
18884 Likewise.
18885
18886 2016-04-04 Richard Biener <rguenther@suse.de>
18887
18888 PR rtl-optimization/70484
18889 * rtl.h (canon_output_dependence): Declare.
18890 * alias.c (canon_output_dependence): New function.
18891 * dse.c (record_store): Use canon_output_dependence rather
18892 than canon_true_dependence.
18893
18894 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
18895
18896 PR ipa/68881
18897 * cgraph.h (symtab_node::copy_visibility_from): New function.
18898 * symtab.c (symtab_node::copy_visibility_from): New function.
18899 * ipa-visibility.c (optimize_weakref): New function.
18900 (function_and_variable_visibility): Use it.
18901
18902 2016-04-04 Martin Liska <mliska@suse.cz>
18903
18904 PR hsa/70402
18905 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18906 value that is really in range handled by SBR instruction.
18907 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18908 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18909 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18910
18911 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
18912
18913 PR target/70416
18914 PR target/67391
18915 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18916 set, but not for SP_REG operands.
18917
18918 2016-04-02 Martin Sebor <msebor@redhat.com>
18919
18920 PR c++/67376
18921 * fold-const.c (maybe_nonzero_address): New function.
18922 (fold_comparison): Call it. Fold equality and relational
18923 expressions involving null pointers.
18924 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18925
18926 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
18927
18928 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18929 the "Y" constraint (scalar FP 0.0 immediate).
18930
18931 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18932 Add the "const_double" to the list of operand constraints.
18933
18934 2016-04-01 Jakub Jelinek <jakub@redhat.com>
18935
18936 PR rtl-optimization/70467
18937 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18938 If low word of the last operand is 0, just emit addition/subtraction
18939 for the high word.
18940
18941 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18942
18943 PR target/70404
18944 * config/s390/s390.c (s390_expand_insv): Check for everything
18945 constant instead of just VOIDmode stuff.
18946
18947 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18948
18949 PR target/70496
18950 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18951
18952 2016-04-01 Nathan Sidwell <nathan@acm.org>
18953
18954 * tree.def (TRY_CATCH_EXPR): Correct documentation.
18955
18956 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
18957
18958 PR rtl-optimization/70461
18959 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
18960 is necessary.
18961
18962 2016-03-31 Martin Liska <mliska@suse.cz>
18963
18964 PR hsa/70399
18965 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
18966 a tree value or an immediate integer value to a buffer
18967 that is eventually copied to a BRIG section.
18968 (emit_immediate_operand): Call the function here.
18969 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
18970 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
18971 of class' fields that are removed.
18972 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
18973 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
18974 m_brig_repr_size fields.
18975
18976 2016-03-31 Martin Liska <mliska@suse.cz>
18977
18978 PR hsa/70391
18979 * hsa-gen.c (hsa_function_representation::update_dominance): New
18980 function.
18981 (convert_addr_to_flat_segment): Likewise.
18982 (gen_hsa_memory_set): New alignment argument.
18983 (gen_hsa_ctor_assignment): Likewise.
18984 (gen_hsa_insns_for_single_assignment): Provide alignment
18985 to gen_hsa_ctor_assignment.
18986 (gen_hsa_insns_for_direct_call): Add new argument.
18987 (expand_lhs_of_string_op): New function.
18988 (expand_string_operation_builtin): Likewise.
18989 (expand_memory_copy): New function.
18990 (expand_memory_set): New function.
18991 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
18992 (convert_switch_statements): Change signature.
18993 (generate_hsa): Use a return value of the function.
18994 (pass_gen_hsail::execute): Do not call
18995 convert_switch_statements here.
18996 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
18997 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
18998 (hsa_function_representation::update_dominance): New function.
18999
19000 2016-03-31 Martin Liska <mliska@suse.cz>
19001
19002 PR hsa/70391
19003 * hsa-brig.c (emit_directive_variable): Emit alignment
19004 according to hsa_symbol::m_align.
19005 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19006 (dump_hsa_symbol): Dump alignment of HSA symbols.
19007 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19008 (gen_hsa_addr_with_align): New function.
19009 (hsa_bitmemref_alignment): Use newly added function.
19010 (gen_hsa_insns_for_load): Likewise.
19011 (gen_hsa_insns_for_store): Likewise.
19012 (gen_hsa_memory_copy): New argument added.
19013 (gen_hsa_insns_for_single_assignment): Respect
19014 alignment for assignments processed via gen_hsa_memory_copy.
19015 (gen_hsa_insns_for_direct_call): Likewise.
19016 (gen_hsa_insns_for_return): Likewise.
19017 (gen_function_def_parameters): Set default alignment.
19018 * hsa.c (hsa_object_alignment): New function.
19019 (hsa_byte_alignment): Pasted function.
19020 * hsa.h (hsa_symbol::m_align): New field.
19021
19022 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19023
19024 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19025 scratch field for goto case.
19026
19027 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
19028
19029 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19030
19031 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
19032
19033 PR target/70442
19034 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19035 (scalar_chain::convert_insn): Call convert_op for reg
19036 moves to handle undefined registers.
19037
19038 2016-03-31 Nathan Sidwell <nathan@acm.org>
19039
19040 PR c++/70393
19041 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19042 Assert we don't want to move backwards.
19043
19044 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
19045
19046 PR target/70453
19047 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19048
19049 2016-03-31 Jakub Jelinek <jakub@redhat.com>
19050
19051 PR rtl-optimization/70460
19052 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19053 with operand from REG_LABEL_OPERAND, instead substitute
19054 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19055 Don't do anything for REG_NON_LOCAL_GOTO jumps.
19056
19057 2016-03-31 Martin Liska <mliska@suse.cz>
19058
19059 * passes.c (execute_one_pass): Do not call
19060 todo_after for a discarded function.
19061
19062 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19063
19064 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19065 (no_cost, infinite_cost): Initialize the new field.
19066 (get_computation_cost_at): Record setup cost.
19067 (determine_use_iv_cost_address): Skip cost computation for sub
19068 uses if we can estimate it without losing accuracy.
19069
19070 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19071
19072 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19073 estimates here.
19074 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19075 max_loop_iterations_int.
19076 (tree_unswitch_outer_loop): Likewise.
19077 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19078 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19079
19080 2016-03-30 Richard Biener <rguenther@suse.de>
19081
19082 PR middle-end/70450
19083 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19084
19085 2016-03-30 Jakub Jelinek <jakub@redhat.com>
19086
19087 PR target/70421
19088 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19089 in gen_blendm expander.
19090
19091 2016-03-30 Nick Clifton <nickc@redhat.com>
19092
19093 PR target/62254
19094 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19095 case where we are already provided with an SImode SUBREG.
19096
19097 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
19098
19099 PR target/70439
19100 * config/i386/i386.c (ix86_expand_epilogue): Properly check
19101 conflict between DRAP register and __builtin_eh_return.
19102
19103 2016-03-30 Michael Matz <matz@suse.de>
19104 Richard Biener <rguenther@suse.de>
19105
19106 PR ipa/12392
19107 * ipa-polymorphic-call.c (struct type_change_info): Change
19108 speculative to an unsigned allowing to limit the work we do.
19109 (csftc_abort_walking_p): New inline function..
19110 (check_stmt_for_type_change): Limit the number of may-defs
19111 skipped for speculative devirtualization to
19112 max-speculative-devirt-maydefs.
19113 * params.def (max-speculative-devirt-maydefs): New param.
19114 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19115
19116 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
19117
19118 PR target/63890
19119 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19120 and TARGET_MACHO.
19121
19122 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
19123
19124 PR tree-optimization/59124
19125 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19126 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19127
19128 2016-03-29 Jeff Law <law@redhat.com>
19129
19130 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19131
19132 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19133
19134 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19135 to HOST_WIDE_INT.
19136
19137 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
19138
19139 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19140 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19141 gcrt0.o if linking dynamically.
19142
19143 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19144
19145 PR ipa/70283
19146 * ipa-devirt.c (methods_equal_p): New function.
19147 (compare_virtual_tables): Use it.
19148 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19149 * cgraphclones.c (clone_function_name_1): Use
19150 symbol_table::symbol_suffix_separator.
19151 * coverage.c (build_var): Likewise.
19152 * symtab.c (symbol_table::symbol_suffix_separator): New.
19153
19154 2016-03-29 Jakub Jelinek <jakub@redhat.com>
19155
19156 PR rtl-optimization/70429
19157 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19158 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19159 mode != result_mode.
19160
19161 PR c++/70353
19162 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19163
19164 PR tree-optimization/70405
19165 * ssa-iterators.h (num_imm_uses): Add missing braces.
19166
19167 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
19168
19169 PR rtl-optimization/68695
19170 * ira-color.c (allocno_copy_cost_saving): New.
19171 (improve_allocation): Use it.
19172
19173 2016-03-29 Richard Henderson <rth@redhat.com>
19174
19175 PR middle-end/70355
19176 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19177
19178 2016-03-29 Richard Biener <rguenther@suse.de>
19179
19180 PR middle-end/70424
19181 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19182 use alignment returned by get_pointer_alignment_1 if it is
19183 bigger than BITS_PER_UNIT.
19184 * builtins.c (get_pointer_alignment_1): Do not return true
19185 for alignment extracted from SSA info.
19186
19187 2016-03-28 James Bowman <james.bowman@ftdichip.com>
19188
19189 * config/ft32/ft32.opt (mnodiv): New.
19190 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19191 * doc/invoke.texi (FT32 Options -mnodiv): New.
19192
19193 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
19194
19195 PR target/70406
19196 * config/i386/i386.md (define_split, andn): Fix modes.
19197
19198 2016-03-26 Richard Biener <rguenther@suse.de>
19199 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19200
19201 PR ipa/70366
19202 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19203 instead of
19204 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19205 as 2nd argument to cl_optimization_restore().
19206
19207 2016-03-25 Richard Henderson <rth@redhat.com>
19208
19209 PR target/70120
19210 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19211 * config/aarch64/aarch64-protos.h: Declare it.
19212 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19213
19214 2016-03-25 Alan Modra <amodra@gmail.com>
19215
19216 PR target/70052
19217 * config/rs6000/constraints.md (j): Simplify.
19218 * config/rs6000/predicates.md (easy_fp_constant): Exclude
19219 decimal float 0.D.
19220 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19221 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19222 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19223 in all constraint alternatives.
19224 (movtd_64bit_nodm): Delete "j" constraint alternative.
19225
19226 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19227
19228 * tree-ssa-propagate.c: Enhance docs for
19229 SSA_PROP_NOT_INTERESTING.
19230
19231 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19232
19233 * doc/extend.texi: Fix typo in documentation to pure attribute.
19234
19235 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
19236
19237 PR target/70319
19238 * config/pa/pa.md (bswapdi2): Use a scratch register.
19239
19240 2016-03-24 Richard Henderson <rth@redhat.com>
19241
19242 PR middle-end/69845
19243 * fold-const.c (extract_muldiv_1): Correct test for multiplication
19244 overflow.
19245
19246 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
19247
19248 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19249 using ix86_expand_binary_operator instead of gen_andsi3.
19250
19251 2016-03-24 Richard Biener <rguenther@suse.de>
19252
19253 PR tree-optimization/70396
19254 * tree-vect-stmts.c (vectorizable_comparison): Use
19255 get_vectype_for_scalar_type.
19256
19257 2016-03-24 Richard Biener <rguenther@suse.de>
19258
19259 PR middle-end/70370
19260 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19261 with register bases.
19262
19263 2016-03-24 Richard Biener <rguenther@suse.de>
19264
19265 PR tree-optimization/70372
19266 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19267 build_all_ones_cst to also handle vector types correctly.
19268
19269 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19270
19271 PR target/70381
19272 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19273 -mfloat128 here.
19274
19275 2016-03-23 Marek Polacek <polacek@redhat.com>
19276
19277 PR c++/69884
19278 * doc/invoke.texi: Document -Wignored-attributes.
19279
19280 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19281
19282 PR tree-optimization/69042
19283 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19284 parameter from 30 to 40.
19285
19286 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19287
19288 PR tree-optimization/69042
19289 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19290 for use with constant offset stripped in base.
19291
19292 2016-03-23 Richard Biener <rguenther@suse.de>
19293
19294 PR middle-end/70251
19295 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19296 mode compatibility check.
19297 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19298
19299 2016-03-23 Jeff Law <law@redhat.com>
19300
19301 PR tree-optimization/64058
19302 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19303 CONFLICT_COUNT.
19304 (struct ssa_conflicts): Move up earlier in the file.
19305 (conflicts_, var_map_): New static variables.
19306 (initialize_conflict_count): New function to initialize the
19307 CONFLICT_COUNT field for each conflict pair.
19308 (compare_pairs): Lazily initialize the conflict count and use it
19309 as the first tie-breaker.
19310 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
19311 and wipe conflicts_ and map_ around the call to qsort. Remove
19312 special case for 2 coalesce pairs.
19313 * bitmap.c (bitmap_count_unique_bits): New function.
19314 (bitmap_count_bits_in_word): New function, extracted from
19315 bitmap_count_bits.
19316 (bitmap_count_bits): Use bitmap_count_bits_in_word.
19317 * bitmap.h (bitmap_count_unique_bits): Declare it.
19318
19319 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
19320
19321 PR target/69917
19322 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19323 transparent alias chain for decl assembler name.
19324 * config/sol2.c (solaris_assemble_visibility): Likewise.
19325
19326 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19327
19328 * config/arm/arm1020e.md (1020call_op): Reduce reservation
19329 duration.
19330 (v10_fdivs): Likewise.
19331 (v10_fdivd): Likewise.
19332
19333 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19334
19335 PR driver/70132
19336 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19337 to not call fclose twice on file.
19338
19339 2016-03-23 Jakub Jelinek <jakub@redhat.com>
19340
19341 PR tree-optimization/70354
19342 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19343 oprnd0 is wider than oprnd1 and there is a cast from the wider
19344 type to oprnd1, mask it with the mask of the narrower type.
19345
19346 PR target/70321
19347 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19348 Optimize TARGET_STV splitters, if high or low word of last argument
19349 is 0 or -1.
19350
19351 2016-03-22 Jeff Law <law@redhat.com>
19352
19353 PR target/70232
19354 tree-ssa-threadbackward.c
19355 (fsm_find_control_statement_thread_paths): Correctly distinguish
19356 between old style jump threads vs FSM jump threads.
19357
19358 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19359
19360 PR target/70302
19361 * config/i386/i386.c (scalar_chain::convert_op): Support
19362 uninitialized register usage case.
19363
19364 2016-03-22 Richard Biener <rguenther@suse.de>
19365
19366 PR middle-end/70251
19367 * genmatch.c (gen_transform): Adjust last parameter to a three-state
19368 int...
19369 (capture::gen_transform): ... to change behavior when substituting
19370 a condition into cond or not-cond expr context.
19371 (dt_simplify::gen_1): Adjust.
19372 * gimple-match-head.c: Include gimplify.h for unshare_expr.
19373 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19374 last change and instead change to
19375 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19376 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19377
19378 2016-03-22 Anthony Green <green@moxielogic.com>
19379
19380 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
19381 issue for moxiebox targets.
19382 (CC1PLUS_SPEC): Ditto.
19383
19384 2016-03-22 Richard Biener <rguenther@suse.de>
19385
19386 PR middle-end/70333
19387 * fold-const.c (extract_muldiv_1): Properly perform multiplication
19388 in the wide type.
19389
19390 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19391
19392 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19393
19394 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19395
19396 PR target/70325
19397 * config/i386/i386.c (def_builtin): Handle
19398 OPTION_MASK_ISA_AVX512VL to be and-ed with other
19399 bits.
19400 (const struct builtin_description bdesc_special_args[]):
19401 Remove duplicate ISA bits.
19402
19403 2016-03-22 Jakub Jelinek <jakub@redhat.com>
19404
19405 PR target/70329
19406 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19407 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
19408 in a way that works also for AVX512BW.
19409
19410 PR target/70300
19411 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
19412 instead of source if operands[1] is xmm16 and above and
19413 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
19414 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
19415
19416 PR c++/70295
19417 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
19418 on assign if (*from_p) is a comparison, set it to
19419 TREE_NO_WARNING (*from_p).
19420
19421 2016-03-21 Jakub Jelinek <jakub@redhat.com>
19422
19423 PR middle-end/70326
19424 * lra.c (restore_scratches): Ignore deleted insns.
19425
19426 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
19427 Jakub Jelinek <jakub@redhat.com>
19428
19429 PR tree-optimization/70317
19430 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
19431 to HONOR_NANS.
19432
19433 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
19434
19435 PR target/70327
19436 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
19437 of ix86_expand_move.
19438 (movoi): Ditto.
19439 (movti): Use general_operand for operand 1 predicate.
19440
19441 2016-03-21 Martin Liska <mliska@suse.cz>
19442
19443 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
19444 insns.
19445 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
19446
19447 2016-03-21 Martin Liska <mliska@suse.cz>
19448
19449 PR ipa/70306
19450 * ipa-icf.c (sem_function::parse): Skip static
19451 constructors and destructors.
19452
19453 2016-03-21 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR target/70296
19456 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
19457 function-like macro, peek following token(s) if it is followed
19458 by CPP_OPEN_PAREN token with optional padding in between, and
19459 if not, don't treat it like a macro.
19460
19461 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
19462 Alexander Monakov <amonakov@ispras.ru>
19463
19464 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
19465 for the stabs debug format.
19466
19467 2016-03-21 Richard Biener <rguenther@suse.de>
19468
19469 PR tree-optimization/70310
19470 * tree-vect-generic.c (expand_vector_condition): Fold the built
19471 condition.
19472
19473 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
19474
19475 PR target/70293
19476 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
19477 Block third alternative for AVX-512VL target,
19478
19479 2016-03-21 Martin Liska <mliska@suse.cz>
19480
19481 PR hsa/70234
19482 * hsa-brig.c (emit_function_directives): Mark unemitted
19483 global variables for emission.
19484 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
19485 (get_symbol_for_decl): Likewise.
19486 * hsa.h (struct hsa_symbol): New flag.
19487
19488 2016-03-21 Richard Biener <rguenther@suse.de>
19489
19490 PR tree-optimization/70288
19491 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
19492 we do not estimate unsimplified all-constant conditionals or
19493 switches as optimized away.
19494
19495 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
19496
19497 PR rtl-optimization/69102
19498 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
19499 when we have a readonly dependency context.
19500
19501 2016-03-18 Jeff Law <law@redhat.com>
19502
19503 PR rtl-optimization/70263
19504 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
19505 (update_equiv_regs): When trying to move a store to after the insn
19506 that sets the source of the store, make sure the store occurs after
19507 the insn that sets the source of the store. When successful note
19508 the REG_EQUIV note created in the dump file.
19509
19510 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
19511 Bernd Schmidt <bschmidt@redhat.com>
19512
19513 * doc/extend.texi: Document more potential problems with basic asms.
19514
19515 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
19516
19517 PR rtl-optimization/70278
19518 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
19519 VOIDmode.
19520
19521 2016-03-18 Jason Merrill <jason@redhat.com>
19522
19523 * calls.c (load_register_parameters): Fix zero size sibcall logic.
19524
19525 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
19526
19527 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
19528 values to 128b regs.
19529
19530 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19531
19532 PR tree-optimization/70252
19533 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
19534 boolean vector has a proper number of elements.
19535 (supportable_narrowing_operation): Likewise.
19536
19537 2016-03-18 Tom de Vries <tom@codesourcery.com>
19538
19539 PR ipa/70269
19540 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
19541
19542 2016-03-18 Jakub Jelinek <jakub@redhat.com>
19543
19544 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
19545 instead of replace_rtx for DEBUG_INSNs.
19546
19547 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19548
19549 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
19550 load type reservations.
19551
19552 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
19553
19554 PR target/70188
19555 * config/pa/constraints.md: Revert 2015-02-13 change. Use
19556 define_constraint for "Q" and "T" constraints.
19557
19558 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
19559
19560 Tweak the pipeline model for Exynos M1
19561
19562 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
19563 model.
19564
19565 2016-03-17 David Malcolm <dmalcolm@redhat.com>
19566
19567 PR c/70264
19568 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
19569 where one or both locations aren't within a line_map.
19570
19571 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
19572
19573 PR driver/70192
19574 * opts.c (finish_options): Don't set flag_pie to the default if
19575 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
19576 if it is -1.
19577
19578 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
19579
19580 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
19581 true as ALL_REGS argument to replace_rtx.
19582
19583 2016-03-17 Richard Biener <rguenther@suse.de>
19584
19585 PR debug/70271
19586 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
19587 last.
19588
19589 2016-03-17 Jakub Jelinek <jakub@redhat.com>
19590
19591 PR target/70245
19592 * rtl.h (replace_rtx): Add ALL_REGS argument.
19593 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
19594 equality and assert mode is the same, instead of just rtx pointer
19595 equality.
19596 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
19597 true as ALL_REGS argument to replace_rtx.
19598
19599 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
19600
19601 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
19602 for boolean vector with vector mode only.
19603 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19604
19605 2016-03-17 Nick Clifton <nickc@redhat.com>
19606
19607 PR target/70162
19608 * config/rx/rx.c (rx_print_integer): Print negative constants in
19609 decimal.
19610
19611 2016-03-17 Jakub Jelinek <jakub@redhat.com>
19612
19613 PR target/70261
19614 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
19615
19616 2016-03-16 Richard Henderson <rth@redhat.com>
19617 Richard Biener <rguenth@suse.de>
19618
19619 PR middle-end/70240
19620 PR middle-end/68215
19621 PR tree-opt/68714
19622 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
19623 first operand as is_gimple_condexpr.
19624
19625 PR middle-end/70240
19626 PR middle-end/68215
19627 Revert r231575
19628 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
19629 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
19630 Do not gimplify the result.
19631 (do_unop): Adjust call to tree_vec_extract.
19632 (do_binop): Likewise.
19633 (do_compare): Likewise.
19634 (do_plus_minus): Likewise.
19635 (do_negate): Likewise.
19636 (expand_vector_condition): Likewise.
19637 (do_cond): Likewise.
19638
19639 2016-03-16 Richard Henderson <rth@redhat.com>
19640
19641 PR target/70048
19642 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
19643 (aarch64_classify_address): Use it.
19644 (aarch64_legitimize_address): Force all subexpressions of PLUS
19645 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
19646
19647 2016-03-16 Jakub Jelinek <jakub@redhat.com>
19648 Richard Biener <rguenth@suse.de>
19649
19650 PR target/70245
19651 * rtlanal.c (replace_rtx): For REG, if from is a REG,
19652 return to even if only REGNO is equal, and assert
19653 mode is the same.
19654
19655 2016-03-11 Jeff Law <law@redhat.com>
19656
19657 PR rtl-optimization/70224
19658 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
19659
19660 2016-03-16 Richard Henderson <rth@redhat.com>
19661
19662 PR middle-end/70199
19663 * function.h (struct function): Add has_forced_label_in_static.
19664 * gimplify.c (force_labels_r): Set it.
19665 * lto-streamer-in.c (input_struct_function_base): Read it.
19666 * lto-streamer-out.c (output_struct_function_base): Write it.
19667 * tree-inline.c (has_label_address_in_static_1): Remove.
19668 (copy_forbidden): Remove fndecl parameter; test
19669 has_forced_label_in_static.
19670 (inline_forbidden_p): Update call to copy_forbidden.
19671 (tree_versionable_function_p): Likewise.
19672 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
19673 (chkp_versioning): Likewise.
19674 * tree-inline.h (copy_forbidden): Update decl.
19675
19676 2016-03-16 Marek Polacek <polacek@redhat.com>
19677
19678 PR c/70093
19679 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
19680 function being thunked if the result type doesn't have fixed size.
19681 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
19682 doesn't have fixed size.
19683
19684 2016-03-16 Bin Cheng <bin.cheng@arm.com>
19685
19686 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
19687 reporting malformed loop nest.
19688
19689 2016-03-16 Tom de Vries <tom@codesourcery.com>
19690
19691 PR lto/70187
19692 * ipa-devirt.c (possible_polymorphic_call_targets): Move
19693 nodes.length () == 1 test to before first nodes[0] access.
19694
19695 2016-03-16 Tom de Vries <tom@codesourcery.com>
19696
19697 PR tree-optimization/68715
19698 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
19699 single_pred_p test.
19700
19701 2016-03-16 Tom de Vries <tom@codesourcery.com>
19702
19703 PR tree-optimization/68809
19704 * graphite-scop-detection.c (same_close_phi_node): Test if result types
19705 are the same.
19706
19707 2016-03-16 Carlos O'Donell <carlos@redhat.com>
19708 Sandra Loosemore <sandra@codesourcery.com>
19709
19710 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
19711 on leaf attribute. Mention ELF interposition problems.
19712
19713 2016-03-16 Alan Modra <amodra@gmail.com>
19714
19715 PR rtl-optimization/69195
19716 PR rtl-optimization/47992
19717 * ira.c (indirect_jump_optimize): Ignore artificial defs.
19718 Add comments.
19719
19720 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
19721
19722 PR bootstrap/69513
19723 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
19724
19725 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19726
19727 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
19728
19729 2016-03-15 Jakub Jelinek <jakub@redhat.com>
19730
19731 PR rtl-optimization/70222
19732 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19733 optimization if mode is different from result_mode, queue up masking
19734 of the result in outer_op. Formatting fix.
19735
19736 PR middle-end/70239
19737 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19738 of safe_grow.
19739
19740 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19741
19742 PR rtl-optimization/69032
19743 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19744 looping backwards over basic block insns.
19745
19746 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19747
19748 PR target/66660
19749 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19750 to non-speculative when propagating trap bits.
19751
19752 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19753
19754 PR rtl-optimization/63384
19755 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19756 DEBUG_INSN_P insns.
19757
19758 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19759
19760 PR target/64411
19761 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19762 factored out from ...
19763 (sched_analyze_insn): ... here.
19764 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19765 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19766 get_implicit_reg_pending_clobbers in it.
19767 (setup_id_reg_sets): Use setup_id_implicit_regs.
19768 (deps_init_id): Ditto.
19769
19770 2016-03-15 Tom de Vries <tom@codesourcery.com>
19771
19772 PR ipa/70161
19773 * cgraph.c (cgraph_node::get_body): Save, reset and restore
19774 dump_file_name.
19775 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19776 execute_function_dump.
19777 (execute_one_pass): Don't dump function if it will be dumped after ipa
19778 transform.
19779
19780 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
19781
19782 * genrecog.c (match_pattern_2): If pred is NULL don't call
19783 safe_predicate_mode on it.
19784
19785 2016-03-14 Jakub Jelinek <jakub@redhat.com>
19786
19787 PR middle-end/70219
19788 * lra-constraints.c (delete_move_and_clobber): Change assertion
19789 to also allow dregno == 0.
19790
19791 2016-03-14 Richard Henderson <rth@redhat.com>
19792
19793 PR tree-opt/68714
19794 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19795 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19796 (reassociate_bb): Use optimize_vec_cond_expr; avoid
19797 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19798 on vectors.
19799
19800 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
19801
19802 PR target/70083
19803 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19804 regs.
19805 (lra_create_live_ranges_1): initialize hard register biggest_mode to
19806 VOIDmode.
19807 * lra-constraints.c (split_reg): For hard regs, try to find the
19808 biggest single-register mode used in the function.
19809
19810 2016-03-14 Richard Biener <rguenther@suse.de>
19811
19812 PR tree-optimization/56365
19813 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19814 constants to compare against.
19815
19816 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
19817
19818 PR target/70098
19819 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
19820 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
19821 (define_split for the GPR case): Use int_reg_operand instead of
19822 gpc_reg_operand for the output.
19823
19824 2016-03-14 Tom de Vries <tom@codesourcery.com>
19825
19826 PR tree-optimization/70045
19827 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
19828 create_empty_if_region_on_edge argument.
19829
19830 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
19831
19832 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
19833 (STACK_CHECK_PROTECT): Likewise.
19834 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19835 (STACK_CHECK_PROTECT): Likewise.
19836 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19837 (STACK_CHECK_PROTECT): Likewise.
19838 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
19839 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19840 (STACK_CHECK_PROTECT): Likewise.
19841
19842 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
19843
19844 PR rtl-optimization/69307
19845 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
19846 registers in modes that span more than one register.
19847
19848 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
19849
19850 PR target/69614
19851 * lra-constraints.c (delete_move_and_clobber): New.
19852 (remove_inheritance_pseudos): Use it.
19853
19854 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
19855
19856 PR ada/70017
19857 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
19858 the libcall is LCT_THROW.
19859 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
19860 for the checking routine.
19861
19862 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19863
19864 PR target/70131
19865 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
19866 optimization if we have direct move.
19867 (roundu32<mode>2_fprs): Likewise.
19868
19869 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
19870
19871 PR target/70123
19872 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
19873 be rematerialized.
19874 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
19875 Arguments swapped. All callers changed. Take reg_renumber into
19876 account, and Calculate and compare register ranges for hard regs.
19877
19878 2016-03-11 Jeff Law <law@redhat.com>
19879
19880 PR tree-optimization/70190
19881 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19882 Handle cases where we can not extract the taken edge, even though we
19883 found a constant value.
19884
19885 PR tree-optimization/64058
19886 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
19887 (num_coalesce_pairs): Move up earlier in file.
19888 (find_coalesce_pair): Initialize the INDEX field for each pair
19889 discovered.
19890 (compare_pairs): No longer sort on the elements in each pair.
19891 Instead break ties with the index of the coalesce pair.
19892
19893 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19894
19895 PR target/70002
19896 * config/aarch64/aarch64-protos.h
19897 (aarch64_save_restore_target_globals): New prototype.
19898 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19899 Call the above when popping pragma.
19900 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19901 New function.
19902 (aarch64_set_current_function): Rewrite using the above.
19903
19904 2016-03-11 Jakub Jelinek <jakub@redhat.com>
19905
19906 PR tree-optimization/70177
19907 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19908 (extract_ops_from_tree): ... this. In the 2 argument
19909 overload remove _1 suffix.
19910 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19911 (extract_ops_from_tree): ... this.
19912 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19913 Adjust callers.
19914 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19915 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19916 extract_ops_from_tree instead of 2 operand one.
19917
19918 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
19919
19920 PR tree-optimization/70013
19921 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19922 for constant-pool entries.
19923
19924 2016-03-11 Jakub Jelinek <jakub@redhat.com>
19925
19926 PR rtl-optimization/70174
19927 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19928 followed by gen_lowpart on force_reg instead of just gen_lowpart.
19929
19930 PR tree-optimization/70169
19931 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19932 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
19933 for unknown codes.
19934
19935 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
19936 Jakub Jelinek <jakub@redhat.com>
19937
19938 PR target/70160
19939 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19940 of uninitialized values.
19941
19942 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19943
19944 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19945 define_expand.
19946 ("*trunctddd2"): New pattern definition.
19947 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19948 TD->DD truncation.
19949
19950 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19951
19952 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19953 definitions for BFP and DFP rounding modes.
19954 ("fixuns_truncdddi2", "fixuns_trunctddi2")
19955 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
19956 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
19957 ("fix_trunctf<mode>2"): Use the new constants instead of magic
19958 numbers.
19959
19960 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19961
19962 * config/s390/constraints.md: Adjust comment.
19963 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
19964 s390_decompose_addrstyle_without_index.
19965 * config/s390/predicates.md (shift_count_or_setmem_operand):
19966 Rename to setmem_operand.
19967 * config/s390/s390-protos.h
19968 (s390_decompose_shift_count): Rename to
19969 s390_decompose_addrstyle_without_index.
19970 * config/s390/s390.c (s390_decompose_shift_count)
19971 (s390_mem_constraint, print_shift_count_operand)
19972 (print_operand_address, print_operand): Rename
19973 s390_decompose_shift_count to
19974 s390_decompose_addrstyle_without_index and rename
19975 print_shift_count_operand to print_addrstyle_operand troughout the
19976 file.
19977 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
19978 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
19979 Rename shift_count_or_setmem_operand to setmem_operand.
19980 * config/s390/vx-builtins.md ("vec_insert<mode>")
19981 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
19982 nonmemory_operand.
19983
19984 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19985
19986 PR target/70168
19987 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19988 Handle overlapping retval and newval.
19989
19990 2016-03-10 Nick Clifton <nickc@redhat.com>
19991
19992 PR target/7044
19993 * config/aarch64/aarch64.c
19994 (aarch64_override_options_after_change_1): When forcing
19995 flag_omit_frame_pointer to be true, use a special value that can
19996 be detected if this function is called again, thus preventing
19997 flag_omit_leaf_frame_pointer from being forced to be false.
19998
19999 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20000
20001 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20002 Set x_flag_omit_leaf_frame_pointer when handling
20003 -momit-leaf-frame-pointer.
20004
20005 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20006
20007 PR lto/69589
20008 * cgraph.c (cgraph_node::dump): Dump split_part and
20009 indirect_call_target.
20010 * cgraph.h (cgraph_node): Add indirect_call_target flag.
20011 * ipa.c (has_addr_references_p): Cleanup.
20012 (is_indirect_call_target_p): New.
20013 (walk_polymorphic_call_targets): Do not mark virtuals that may be
20014 called indirectly as local.
20015 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20016
20017 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20018
20019 PR ipa/69630
20020 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20021 on cxa_pure_virtual.
20022
20023 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20024
20025 PR lto/69589
20026 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20027
20028 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20029
20030 PR lto/69589
20031 * tree.c (need_assembler_name_p): Only record main variant type names.
20032
20033 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20034
20035 PR target/70113.
20036 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20037 Always define to 0 or 1.
20038 (TARGET_FIX_ERR_A53_843419): New macro.
20039 * config/aarch64/aarch64-elf-raw.h
20040 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20041 * config/aarch64/aarch64-linux.h: Likewise.
20042 * config/aarch64/aarch64.c
20043 (aarch64_override_options_after_change_1): Do not default
20044 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20045 843419 is on.
20046 (aarch64_attributes): Handle fix-cortex-a53-843419.
20047 (aarch64_can_inline_p): Likewise.
20048 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20049
20050 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
20051 Jakub Jelinek <jakub@redhat.com>
20052
20053 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20054 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20055 DECL_COMMONS if flag_unconstrained_commons is set.
20056 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20057 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20058 (funconstrained-commons): Document.
20059
20060 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20061
20062 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20063 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20064
20065 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
20066
20067 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20068 has a proper number of elements.
20069
20070 2016-03-10 Alan Modra <amodra@gmail.com>
20071
20072 PR rtl-optimization/69195
20073 PR rtl-optimization/47992
20074 * ira.c (recorded_label_ref): Delete.
20075 (update_equiv_regs): Return void.
20076 (indirect_jump_optimize): New function.
20077 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20078 before regstat_compute_ri. Don't rebuild_jump_labels here.
20079 Delete update_regstat.
20080
20081 2016-03-10 Richard Biener <rguenther@suse.de>
20082
20083 PR tree-optimization/70128
20084 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20085 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20086
20087 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20088
20089 PR tree-optimization/70152
20090 * tree-sra.c (replace_removed_params_ssa_names): Copy over
20091 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20092
20093 PR target/70086
20094 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20095 instead of gen_sse2_loadlpd.
20096 * config/i386/sse.md (*vec_concatv2df): Rename to...
20097 (vec_concatv2df): ... this.
20098
20099 PR tree-optimization/70127
20100 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20101
20102 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20103
20104 PR c/68473
20105 PR c++/70105
20106 * diagnostic-show-locus.c (compatible_locations_p): New function.
20107 (layout::layout): Sanitize ranges using compatible_locations_p.
20108
20109 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20110
20111 PR c/68473
20112 PR c++/70105
20113 * diagnostic-show-locus.c (layout_range::layout_range): Replace
20114 location_range param with three const expanded_locations * and a
20115 bool.
20116 (layout::layout): Replace call to
20117 rich_location::lazily_expand_location with get_expanded_location.
20118 Extract the range and perform location expansion here, passing
20119 the results to the layout_range ctor.
20120 * diagnostic.c (source_range::debug): Delete.
20121 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20122 of rich_location::get_expanded_location.
20123 * gcc-rich-location.c (get_range_for_expr): Delete.
20124 (gcc_rich_location::add_expr): Reimplement to avoid the
20125 rich_location::add_range overload that took a location_range,
20126 passing a location_t instead.
20127
20128 2016-03-09 Richard Biener <rguenther@suse.de>
20129 Jakub Jelinek <jakub@redhat.com>
20130
20131 PR tree-optimization/70138
20132 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20133 Also skip vect_double_reduction_def.
20134
20135 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20136
20137 PR target/70049
20138 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20139 if the operand is "m".
20140
20141 2016-03-09 Nathan Sidwell <nathan@acm.org>
20142
20143 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20144
20145 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20146
20147 * config/i386/i386.c (processor_target_table): Fix cost table
20148 intialization order for znver1.
20149
20150 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20151
20152 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20153 - becuase -> because.
20154 * ipa-reference.c (ignore_module_statics): Likewise.
20155 * cgraph.c (cgraph_node::get_body): Likewise.
20156 * ipa-inline.c (early_inliner): Likewise.
20157 * ipa-devirt.c (types_same_for_odr): Likewise.
20158 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20159 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20160
20161 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20162
20163 * tree-ssa-math-opts.c: Fix typo in comment.
20164
20165 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20166
20167 PR target/70110
20168 * config/i386/i386.c (scalar_chain::make_vector_copies,
20169 scalar_chain::convert_reg): Call end_sequence in between
20170 get_insns and emit_conversion_insns rather than after both
20171 calls.
20172
20173 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
20174
20175 PR target/70064
20176 * config/i386/i386.h (machine_function): Add
20177 pc_thunk_call_expanded flag.
20178 (ix86_pc_thunk_call_expanded): New define.
20179 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20180 (*set_got): Rename insn pattern from set_got.
20181 (*set_got_labelled): Rename inst pattern from set_got_labelled.
20182 * config/i386/i386.c (ix86_compute_frame_layout): Use
20183 ix86_pc_thunk_call_expanded to prevent red-zone.
20184
20185 2016-03-07 Martin Jambor <mjambor@suse.cz>
20186
20187 * hsa.h (hsa_get_ctor_statements): Declare.
20188 (hsa_get_dtor_statements): Likewise.
20189 (hsa_get_kernel_dispatch_type): Likewise.
20190 * hsa.c (hsa_get_ctor_statements): New function.
20191 (hsa_get_dtor_statements): Likewise.
20192 (hsa_get_kernel_dispatch_type): Likewise.
20193 * hsa-brig.c (hsa_cdtor_statements): Removed.
20194 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20195 hsa_get_dtor_statements.
20196 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20197 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20198
20199 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20200
20201 * config/arm/arm-cores.def (cortex-r8): New.
20202 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20203 * config/arm/arm-tune.md: Likewise.
20204 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20205
20206 2016-03-07 Martin Sebor <msebor@redhat.com>
20207
20208 PR rtl-optimization/19705
20209 * doc/invoke.texi (Options That Control Optimization): Clarify
20210 -fno-branch-count-reg.
20211
20212 2016-02-26 Richard Biener <rguenther@suse.de>
20213 Jeff Law <law@redhat.com>
20214
20215 PR tree-optimization/69740
20216 * cfghooks.c (remove_edge): Request loop fixups if we delete
20217 an edge that might turn an irreducible loop into a natural
20218 loop.
20219 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20220 Move after definition of loops_state_clear.
20221
20222 2016-03-07 Bin Cheng <bin.cheng@arm.com>
20223
20224 PR rtl-optimization/69052
20225 * rtlanal.c (commutative_operand_precedence): Set higher precedence
20226 to CONST_WIDE_INT.
20227
20228 2016-03-07 Tom de Vries <tom@codesourcery.com>
20229
20230 PR tree-optimization/70116
20231 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20232 is_tm_ending stmts and ubsan/asan internal functions.
20233 (find_duplicate): Use it. Don't test is_tm_ending here.
20234
20235 2016-03-07 Richard Biener <rguenther@suse.de>
20236
20237 PR tree-optimization/70115
20238 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20239 (propagate_constants_for_unrolling): Use replace_uses_by.
20240
20241 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
20242
20243 PR middle-end/69916
20244 * omp-low.c (struct oacc_loop): Add ifns.
20245 (new_oacc_loop_raw): Initialize it.
20246 (finish_oacc_loop): Clear mask & flags if no ifns.
20247 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20248 (oacc_loop_xform_loop): Add ifns arg & adjust.
20249 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20250
20251 2016-03-07 Richard Henderson <rth@redhat.com>
20252
20253 PR rtl-opt/70061
20254 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20255 (insert_value_copy_on_edge): Likewise.
20256
20257 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20258
20259 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20260
20261 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20262
20263 PR target/62281
20264 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20265
20266 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20267
20268 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20269
20270 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20271
20272 Fix sseimul type attribute.
20273 * config/i386/znver1.md
20274 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20275 znver1_sseimul_avx256_load) : Fix the type attribute.
20276 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20277 pipe usage and latency.
20278
20279 2016-03-05 Jakub Jelinek <jakub@redhat.com>
20280
20281 PR c++/70084
20282 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20283 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20284 to the right type.
20285
20286 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20287
20288 PR c/69973
20289 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20290
20291 PR rtl-optimization/69941
20292 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20293 the reg share its mode.
20294
20295 2016-03-04 Jeff Law <law@redhat.com>
20296
20297 PR tree-optimization/69196
20298 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20299 If the both SSA_NAMEs are anonymous, then consider them unassociated
20300 and include the PHI in the statement count.
20301
20302 2016-03-05 Tom de Vries <tom@codesourcery.com>
20303
20304 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20305 construct in oacc routine. Check for oacc region in oacc routine.
20306
20307 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20308
20309 PR target/70062
20310 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
20311 2016-02-22 changes, instead don't recurse if RECUR is already true.
20312 Don't change *dynamic_check if RECUR. Adjust recursive caller
20313 to pass true to the new argument.
20314 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20315
20316 PR target/70059
20317 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20318 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20319 fixes.
20320 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
20321
20322 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20323
20324 PR rtl-optimization/57676
20325 * lra-assigns.c (lra_assign): Guard test for maximum iterations
20326 with flag_checking.
20327
20328 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
20329
20330 * tree-vect-patterns.c (search_type_for_mask): Handle
20331 comparison of booleans.
20332
20333 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20334
20335 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20336 Fix @xref usage.
20337
20338 PR debug/69947
20339 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20340 all other ops that have dw_val_class_die_ref operands,
20341 and DW_OP_GNU_entry_value.
20342
20343 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20344
20345 PR rtl-optimization/69904
20346 * config/arm/arm.c (arm_cannot_copy_insn_p):
20347 Return true for load-exclusive instructions.
20348
20349 2016-03-03 Jakub Jelinek <jakub@redhat.com>
20350
20351 PR target/70021
20352 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20353 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20354 the pattern no matter if it is used just by non-pattern, pattern
20355 or mix thereof.
20356 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20357 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20358 oprnd1 def_stmt is in pattern, don't look through it.
20359
20360 2016-03-03 Marek Polacek <polacek@redhat.com>
20361
20362 PR middle-end/70050
20363 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20364
20365 2016-03-03 Martin Liska <mliska@suse.cz>
20366
20367 PR tree-optimization/70043
20368 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20369 previous statement if we see a debug statement.
20370
20371 2016-03-03 Richard Biener <rguenther@suse.de>
20372
20373 PR tree-optimization/55936
20374 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20375 parameter and guard unsafe equivalence use.
20376 (vrp_evaluate_conditional_warnv_with_ops): Always use
20377 safe equivalences but not via the quadratic compare_names
20378 helper.
20379
20380 2016-03-03 Michael Collison <michael.collison@linaro.org>
20381
20382 PR target/70014
20383 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20384 for operand 1 to s_register_operand. Change predicate for operand
20385 2 to arm_not_immediate_operand.
20386
20387 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
20388
20389 * doc/tm.texi: Regenerated.
20390
20391 2016-03-02 Richard Henderson <rth@redhat.com>
20392
20393 PR rtl-opt/67145
20394 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20395 simplification when all args are positive non-fixed registers.
20396
20397 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20398
20399 * target.def (lra_p): Specify that new ports should use LRA.
20400
20401 2016-03-02 Jakub Jelinek <jakub@redhat.com>
20402
20403 PR libgomp/69555
20404 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20405 gimplify_type_sizes the type they refer to.
20406 (omp_notice_variable): Handle reference vars to VLAs.
20407 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20408 reference to VLA decls in the second pass instead of first pass.
20409
20410 2016-03-02 Tom de Vries <tom@codesourcery.com>
20411
20412 PR tree-optimization/68659
20413 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
20414 new_expr == NULL_TREE.
20415 (get_new_name): Handle ADDR_EXPR.
20416
20417 2016-03-02 Bin Cheng <bin.cheng@arm.com>
20418
20419 PR rtl-optimization/69052
20420 * loop-invariant.c (canonicalize_address): New function.
20421 (inv_can_prop_to_addr_use): Check validity of address expression
20422 which is canonicalized by above function.
20423
20424 2016-03-02 Alan Modra <amodra@gmail.com>
20425
20426 PR ipa/69990
20427 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
20428 larger alignment.
20429
20430 2016-03-02 Jakub Jelinek <jakub@redhat.com>
20431
20432 PR target/70028
20433 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
20434 (*movhi_internal): Put mask moves from and to memory separately
20435 from moves from/to GPRs.
20436
20437 2016-03-02 Richard Biener <rguenther@suse.de>
20438
20439 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
20440 GENERIC expressions in GIMPLE.
20441
20442 2016-03-02 Richard Biener <rguenther@suse.de>
20443
20444 * config/i386/i386.c (type_natural_mode): Fix typo.
20445
20446 2016-03-02 Nick Clifton <nickc@redhat.com>
20447
20448 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
20449
20450 2016-03-02 Richard Biener <rguenther@suse.de>
20451 Uros Bizjak <ubizjak@gmail.com>
20452
20453 PR target/67278
20454 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
20455
20456 2016-03-02 Richard Biener <rguenther@suse.de>
20457
20458 PR middle-end/67278
20459 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
20460
20461 2016-03-02 Marek Polacek <polacek@redhat.com>
20462
20463 PR c/67854
20464 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
20465 "is promoted to" warning.
20466
20467 2016-03-01 DJ Delorie <dj@redhat.com>
20468
20469 * config.gcc: Deprecate mep-*.
20470
20471 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
20472
20473 PR middle-end/70025
20474 * lra-constraints.c (regno_val_use_in): New.
20475 (match_reload): Use it instead of regno_use_in.
20476
20477 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
20478
20479 PR rtl-optimization/70007
20480 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
20481 references present in REG_EQUAL notes attached to non-SET patterns.
20482
20483 2016-03-01 Jeff Law <law@redhat.com>
20484
20485 PR tree-optimization/69196
20486 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20487 Appropriately clamp the number of statements to copy when the
20488 thread path does not traverse a loop backedge.
20489
20490 PR tree-optimization/69196
20491 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20492 Do count some PHIs in the thread path against the insn count. Decrease
20493 final statement count by one as the control statement in the last
20494 block will get removed. Remove special cased code for handling PHIs
20495 in the last block.
20496
20497 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
20498
20499 PR target/70027
20500 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
20501 asm dialect alternatives to explicit GOTPCREL calls.
20502
20503 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
20504
20505 PR ada/70017
20506 * ira.c (do_reload): Issue warning for generic stack checking here...
20507 * reload1.c (reload): ...instead of here and streamline it.
20508
20509 2016-03-01 Nick Clifton <nickc@redhat.com>
20510
20511 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
20512
20513 2016-03-01 Richard Biener <rguenther@suse.de>
20514
20515 PR tree-optimization/69983
20516 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
20517 types and fall back to operand_equal_p.
20518
20519 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20520
20521 Revert
20522 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20523
20524 * config/s390/constraints.md ("jm8"): New constraint.
20525 * config/s390/predicates.md ("const_int_8bitset_operand"): New
20526 predicate.
20527 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
20528 into ...
20529 ("*setmem_long<setmem_and>"): New pattern.
20530 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
20531 into ...
20532 ("*setmem_long_31z<setmem_and>"): New pattern.
20533 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
20534 New substitution rules with the required attributes.
20535
20536
20537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20538
20539 Revert
20540 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20541
20542 * gensupport.c (process_substs_on_one_elem): Split loop to
20543 complete mark_operands_used_in_match_dup on all expressions in the
20544 vector first.
20545 (adjust_operands_numbers): Inline into process_substs_on_one_elem
20546 and remove function.
20547
20548 2016-03-01 Richard Biener <rguenther@suse.de>
20549
20550 PR middle-end/70022
20551 * fold-const.c (fold_indirect_ref_1): Fix range checking for
20552 vector BIT_FIELD_REF extract.
20553
20554 2016-03-01 Richard Biener <rguenther@suse.de>
20555
20556 PR tree-optimization/69994
20557 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
20558
20559 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
20560
20561 PR tree-optimization/69956
20562 * tree-vect-stmts.c (supportable_widening_operation): Support
20563 multi-step conversion of boolean vectors.
20564 (supportable_narrowing_operation): Likewise.
20565
20566 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20567
20568 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
20569 anymore.
20570
20571 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20572
20573 * config/s390/subst.md (DSI_VI): New mode iterator.
20574 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
20575 * config/s390/vector.md ("vec_set<mode>"): Move expander before
20576 the insn definition.
20577 ("*vec_set<mode>"): Change predicate and add alternative to
20578 support only either register or const_int operands as element
20579 selector.
20580 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
20581 operands.
20582 ("vec_extract<mode>"): New expander.
20583 ("*vec_extract<mode>"): New insn definition supporting reg and
20584 const_int element selectors.
20585 ("*vec_extract<mode>_plus"): New insn definition supporting
20586 reg+const_int element selectors.
20587 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
20588 following expander+insn definition.
20589 ("<vec_shifts_name><mode>3"): New expander.
20590 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
20591
20592 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20593
20594 * config/s390/s390.md ("*tabort_1"): Change predicate to
20595 nonmemory_operand. Add a second alternative to cover
20596 register as well as const int operands.
20597 ("*tabort_1_plus"): New pattern definition.
20598
20599 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20600
20601 * config/s390/s390.md ("*ashrdi3_cc_31")
20602 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
20603 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
20604 Merge insn definitions into ...
20605 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20606 New pattern definition.
20607 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
20608 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
20609 ("*ashr<mode>3_and"): Merge insn definitions into ...
20610 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20611 New pattern definition.
20612 * config/s390/subst.md ("addr_style_op_cc_subst")
20613 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
20614 substitutions patterns plus attributes.
20615 Add ashiftrt to SUBST iterator.
20616
20617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20618
20619 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
20620 op2 to nonmemory_operand.
20621 ("*<shift>di3_31", "*<shift>di3_31_and"):
20622 Merge into single pattern definition ...
20623 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
20624 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
20625 pattern definition ...
20626 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
20627 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
20628 iterator.
20629
20630 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20631
20632 * config/s390/predicates.md (const_int_6bitset_operand): New
20633 predicate.
20634 * config/s390/s390.md: Include subst.md.
20635 ("rotl<mode>3"): New expander.
20636 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
20637 ...
20638 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
20639 * config/s390/subst.md: New file.
20640
20641 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20642
20643 * config/s390/s390.md ("op_type", "atype", "length" attributes):
20644 Remove RRR type. It doesn't really exist.
20645 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
20646 attributes.
20647 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
20648 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20649 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
20650 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
20651 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
20652 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
20653 `enabled' attribute.
20654
20655 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20656
20657 * gensupport.c (process_substs_on_one_elem): Split loop to
20658 complete mark_operands_used_in_match_dup on all expressions in the
20659 vector first.
20660 (adjust_operands_numbers): Inline into process_substs_on_one_elem
20661 and remove function.
20662
20663 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
20664
20665 PR target/69706
20666 * config/sparc/sparc.c (NWORDS_UP): Rename to...
20667 (CEIL_NWORDS): ...this. Use CEIL macro.
20668 (compute_fp_layout): Adjust to above renaming.
20669 (function_arg_union_value): Likewise.
20670 (sparc_arg_partial_bytes): Likewise.
20671 (sparc_function_arg_advance): Likewise.
20672
20673 2016-02-29 Jeff Law <law@redhat.com>
20674
20675 PR tree-optimization/70005
20676 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
20677 where an object with a boolean range is compared against a value
20678 outside [0..1].
20679
20680 PR tree-optimization/69999
20681 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
20682 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
20683 loop cleanups.
20684
20685 2016-02-29 Richard Biener <rguenther@suse.de>
20686
20687 PR tree-optimization/69994
20688 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
20689 (get_unary_op): Look through nop conversions.
20690 (ops_equal_values_p): New function, look for equality diregarding
20691 nop conversions.
20692 (eliminate_plus_minus_pair): Use ops_equal_values_p
20693 (repropagate_negates): Do not use get_unary_op here.
20694
20695 2016-02-29 Martin Liska <mliska@suse.cz>
20696
20697 * system.h: Poison ENABLE_CHECKING macro.
20698
20699 2016-02-29 Martin Liska <mliska@suse.cz>
20700
20701 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
20702 is presented in dump flags.
20703 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20704 (hsa_regalloc): Likewise.
20705
20706 2016-02-19 Richard Biener <rguenther@suse.de>
20707
20708 PR tree-optimization/69980
20709 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
20710 permutation of those we need to keep.
20711
20712 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
20713
20714 PR target/69706
20715 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
20716 (NWORDS_UP): ...this
20717 (init_cumulative_args): Minor tweaks.
20718 (sparc_promote_function_mode): Likewise.
20719 (scan_record_type): Delete.
20720 (traverse_record_type): New function template.
20721 (classify_data_t): New structure type.
20722 (classify_registers): New inline function.
20723 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
20724 exhausted. Instantiate traverse_record_type on classify_registers and
20725 deal with the case of a structure passed in slot #15 with no FP field
20726 in the first word.
20727 (assign_data_t): New structure type.
20728 (compute_int_layout): New static function.
20729 (compute_fp_layout): Likewise.
20730 (count_registers): New inline function.
20731 (assign_int_registers): New static function.
20732 (assign_fp_registers): Likewise.
20733 (assign_registers): New inline function.
20734 (function_arg_record_value_1): Delete.
20735 (function_arg_record_value_2): Likewise.
20736 (function_arg_record_value_3): Likewise.
20737 (function_arg_record_value): Adjust to above changes. Instantiate
20738 traverse_record_type on count_registers to first count the number of
20739 registers to be used and then on assign_registers to assign them.
20740 (function_arg_union_value): Adjust to above renaming.
20741 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
20742 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
20743 case of a structure passed in slot #15
20744 (sparc_function_arg_advance): Likewise.
20745 (function_arg_padding): Minor tweak.
20746
20747 2016-02-29 Richard Biener <rguenther@suse.de>
20748
20749 PR tree-optimization/69720
20750 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20751 the adjustment_def path for possibly vectorized defs.
20752 (vect_create_epilog_for_reduction): Handle vectorized initial
20753 defs properly.
20754
20755 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
20756
20757 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20758
20759 2016-02-27 Jeff Law <law@redhat.com>
20760
20761 Revert
20762 2016-02-26 Richard Biener <rguenther@suse.de>
20763 Jeff Law <law@redhat.com>
20764
20765 PR tree-optimization/69740
20766 * cfghooks.c (remove_edge): Request loop fixups if we delete
20767 an edge that might turn an irreducible loop into a natural
20768 loop.
20769
20770 2016-02-27 Jakub Jelinek <jakub@redhat.com>
20771
20772 PR rtl-optimization/69896
20773 * tree-vect-generic.c (get_compute_type): Avoid single element
20774 vector types.
20775
20776 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
20777
20778 Rename the AArch64 tuning option and related functions to enable the
20779 Newton series for the reciprocal square root to reflect its
20780 approximative characteristic.
20781
20782 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20783 function to "aarch64_emit_approx_rsqrt".
20784 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20785 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20786 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20787 (xgene1_tunings): Likewise.
20788 (use_rsqrt_p): Likewise.
20789 (aarch64_emit_swrsqrt): Use new function name.
20790 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20791 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20792 text explaining this option.
20793 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20794
20795 2016-02-26 Jakub Jelinek <jakub@redhat.com>
20796
20797 PR target/69969
20798 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20799 complain about -mallow-movmisalign without -mvsx if
20800 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20801
20802 2016-02-26 Joel Sherrill <joel@rtems.org>
20803
20804 * config.gcc: Add x86_64-*-rtems*.
20805 * config/i386/rtems-64.h: New file.
20806
20807 2016-02-26 Joel Sherrill <joel@rtems.org>
20808
20809 * config.gcc: Add aarch64-*-rtems*.
20810 * config/aarch64/rtems.h: New file.
20811
20812 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
20813
20814 PR target/69946
20815 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
20816 shift amount using %h. Add comment.
20817
20818 2016-02-26 Richard Biener <rguenther@suse.de>
20819 Jeff Law <law@redhat.com>
20820
20821 PR tree-optimization/69740
20822 * cfghooks.c (remove_edge): Request loop fixups if we delete
20823 an edge that might turn an irreducible loop into a natural
20824 loop.
20825
20826 2016-02-26 Martin Jambor <mjambor@suse.cz>
20827
20828 PR middle-end/69920
20829 * tree-sra.c (sra_modify_assign): Do not remove loads of
20830 uninitialized aggregates to SSA_NAMEs.
20831
20832 2016-02-26 Richard Henderson <rth@redhat.com>
20833
20834 PR target/69709
20835 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
20836 pseudo in case the target rtx matches the source of the left
20837 shift.
20838
20839 2016-02-26 Martin Jambor <mjambor@suse.cz>
20840
20841 PR hsa/69568
20842 * hsa.h (hsa_type_packed_p): Declare.
20843 * hsa.c (hsa_type_packed_p): New function.
20844 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
20845 loads.
20846 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
20847 * hsa-brig.c (emit_basic_insn): Likewise.
20848
20849 2016-02-26 Martin Jambor <mjambor@suse.cz>
20850
20851 pr hsa/69674
20852 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
20853 pointers.
20854 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
20855
20856 2016-02-26 Martin Jambor <mjambor@suse.cz>
20857
20858 * hsa.h (is_a_helper): New overload for hsa_op_immed for
20859 hsa_op_with_type operands.
20860 (hsa_unsigned_type_for_type): Declare.
20861 * hsa.c (hsa_unsigned_type_for_type): New function.
20862 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
20863 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
20864 the finalizer. Do not emit extra move.
20865
20866 2016-02-26 Martin Jambor <mjambor@suse.cz>
20867
20868 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
20869 atomic operations in private segment.
20870
20871 2016-02-26 Martin Jambor <mjambor@suse.cz>
20872
20873 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
20874 statements to wi->info. Also disallow omp simd constructs.
20875 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
20876 for not gridifying. Dump special string for omp_for.
20877
20878 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20879
20880 PR target/69245
20881 * config/aarch64/aarch64.c (aarch64_set_current_function):
20882 Save/restore target globals when switching to
20883 target_option_default_node.
20884
20885 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20886
20887 PR target/69613
20888 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
20889 Return 0 if !SHIFT_COUNT_TRUNCATED.
20890
20891 2016-02-26 Jakub Jelinek <jakub@redhat.com>
20892 Eric Botcazou <ebotcazou@adacore.com>
20893
20894 PR rtl-optimization/69891
20895 * dse.c (scan_insn): If we can't figure out memset arguments
20896 or they are non-constant, call clear_rhs_from_active_local_stores.
20897
20898 2016-02-26 Martin Liska <mliska@suse.cz>
20899
20900 * doc/extend.texi: Mention clog10, clog10f an clog10l
20901 in Builtins section.
20902
20903 2016-02-26 Martin Liska <mliska@suse.cz>
20904
20905 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20906 CHECKING_P.
20907 (resolve_args_picking_1): Likewise.
20908 * dwarf2out.h (struct GTY): Likewise.
20909
20910 2016-02-26 Martin Liska <mliska@suse.cz>
20911
20912 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20913 with flag_checking.
20914 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20915
20916 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
20917 Martin Liska <mliska@suse.cz>
20918
20919 * doc/install.texi: Mention --enable-valgrind-annotations.
20920
20921 2016-02-26 Richard Biener <rguenther@suse.de>
20922
20923 PR tree-optimization/69551
20924 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20925 looking through aliases adjust DECL_PT_UID to refer to the
20926 ultimate alias target.
20927
20928 2016-02-25 Martin Liska <mliska@suse.cz>
20929
20930 PR middle-end/69919
20931 * alloc-pool.c (after_memory_report): New variable.
20932 * alloc-pool.h (base_pool_allocator ::release): Do not use
20933 the infrastructure if after_memory_report.
20934 * toplev.c (toplev::main): Mark after memory report.
20935
20936 2016-02-25 Richard Biener <rguenther@suse.de>
20937
20938 PR tree-optimization/48795
20939 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20940
20941 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
20942
20943 PR driver/68463
20944 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
20945 offloading is enabled and -fopenacc or -fopenmp is specified.
20946 (CRTOFFLOADEND): Likewise.
20947 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20948 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20949 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20950 (offload_objects_file_name): New static var.
20951 (tool_cleanup): Remove offload_objects_file_name file.
20952 (find_offloadbeginend): Replace with ...
20953 (find_crtoffloadtable): ... this.
20954 (run_gcc): Remove offload_argc and offload_argv.
20955 Get offload_objects_file_name from -foffload-objects=... option.
20956 Read names of object files with offload from this file, pass them to
20957 compile_images_for_offload_targets. Don't call find_offloadbeginend and
20958 don't pass offloadbegin and offloadend to the linker. Don't pass
20959 offload non-LTO files to the linker, because now they're not claimed.
20960
20961 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
20962
20963 PR ipa/69630
20964 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20965 on builtin_unreachable.
20966
20967 2016-02-25 Jakub Jelinek <jakub@redhat.com>
20968
20969 PR rtl-optimization/69896
20970 * regcprop.c: Include cfgrtl.h.
20971 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
20972 than remembered mode, either delete it (if noop_move_p), or
20973 treat like copy_p but not noop_p instruction.
20974
20975 2016-02-24 Jakub Jelinek <jakub@redhat.com>
20976
20977 PR debug/69705
20978 * dwarf2out.c (gen_variable_die): Work around buggy LTO
20979 - allow NULL decl for Fortran DW_TAG_common_block variables.
20980
20981 2016-02-24 Jason Merrill <jason@redhat.com>
20982
20983 * common.opt (flifetime-dse): Add -flifetime-dse=1.
20984
20985 2016-02-24 Richard Biener <rguenther@suse.de>
20986 Jakub Jelinek <jakub@redhat.com>
20987
20988 PR middle-end/69760
20989 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
20990 conditionally executed ops to well-defined overflow behavior.
20991
20992 2016-02-24 Jakub Jelinek <jakub@redhat.com>
20993
20994 PR middle-end/69915
20995 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
20996 elements.
20997
20998 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20999
21000 PR rtl-optimization/69886
21001 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21002 argument. Use it when checking validity of set instructions.
21003 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21004 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21005 callsite.
21006 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21007 * store-motion.c (find_moveable_store): Update
21008 can_assign_to_reg_without_clobbers_p callsite.
21009
21010 2016-02-24 Richard Biener <rguenther@suse.de>
21011
21012 PR middle-end/68963
21013 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21014 bogus check.
21015 (record_nonwrapping_iv): Do not fall back to the low/high bound
21016 for non-constant IV bases if the stmt is not always executed.
21017
21018 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21019
21020 * config/arm/arm-cores.def (cortex-a32): New entry.
21021 * config/arm/arm-tables.opt: Regenerate.
21022 * config/arm/arm-tune.md: Regenerate.
21023 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21024 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21025 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21026 for -mcpu and -mtune.
21027
21028 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21029
21030 PR target/69875
21031 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21032 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21033 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21034 (atomic_loaddi_1): Delete.
21035 (atomic_loaddi): Rewrite expander using the above changes.
21036
21037 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21038
21039 PR c/69918
21040 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21041 2 to 3.
21042
21043 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21044 Richard Biener <rguenth@suse.de>
21045
21046 PR middle-end/69909
21047 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21048 set_mem_attributes if tem is SSA_NAME which got expanded
21049 as a MEM.
21050
21051 2016-02-24 Richard Biener <rguenther@suse.de>
21052
21053 PR tree-optimization/69907
21054 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21055 end of permutations for BB vectorization.
21056
21057 2016-02-24 Christian Bruel <christian.bruel@st.com>
21058
21059 * config/arm/arm-c.c (arm_option_override): Initialize
21060 target_option_current_node.
21061 * config/arm/arm.c (arm_pragma_target_parse): Replace
21062 build_target_option_node call by target_option_current_node.
21063 Set target_option_current_node.
21064 Fix comments.
21065
21066 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
21067
21068 PR target/69810
21069 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21070 define_insn_and_split to define_insn.
21071 (zero_extendqi<mode>2_dot2): Same.
21072 (extendqi<mode>2_dot): Same.
21073 (extendqi<mode>2_dot2): Same.
21074
21075 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21076
21077 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21078 and add bypass for AES{D,E} and AESMC pairs.
21079 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21080 and AESMC pairs.
21081
21082 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21083
21084 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21085 series for reciprocal square root in Exynos M1.
21086
21087 2016-02-23 Martin Sebor <msebor@redhat.com>
21088
21089 PR c/69759
21090 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21091 __builtin_alloca_with_align.
21092
21093 2016-02-23 Richard Henderson <rth@redhat.com>
21094
21095 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21096 (ix86_register_pragmas): Remove __seg_tls.
21097 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21098 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21099 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21100 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21101 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21102 * doc/extend.texi (__seg_tls): Remove item.
21103
21104 2016-02-23 Richard Biener <rguenther@suse.de>
21105
21106 * alloc-pool.h (struct allocation_object): Make id member
21107 conditional on CHECKING_P again.
21108 (get_instance): Adjust.
21109 (base_pool_allocator): Likewise.
21110
21111 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
21112
21113 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21114 (parallelize_loops): In OpenACC kernels mode, set n_threads to
21115 zero.
21116 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21117 flag_openacc.
21118 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21119
21120 2016-02-23 Richard Biener <rguenther@suse.de>
21121
21122 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21123 * bitmap.h (struct bitmap_usage): Likewise.
21124 (bitmap_move): Declare.
21125 * bitmap.c (register_overhead): Take size_t argument.
21126 (bitmap_move): New function.
21127 * df-problems.c (df_rd_transfer_function): Use bitmap_move
21128 to properly account overhead.
21129 * tree.c (free_node): Use tree_size.
21130
21131 2016-02-23 Jakub Jelinek <jakub@redhat.com>
21132
21133 PR c++/69902
21134 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21135 when inverting comparison.
21136
21137 PR c/69900
21138 * common.opt (Wunreachable-code): Add Warning flag.
21139
21140 2016-02-23 Mark Wielaard <mjw@redhat.com>
21141 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR c/69911
21144 * cgraphunit.c (check_global_declaration): Check main_input_filename
21145 and DECL_SOURCE_FILE are not NULL.
21146
21147 2016-02-23 Martin Jambor <mjambor@suse.cz>
21148
21149 PR tree-optimization/69666
21150 * tree-sra.c (sra_modify_assign): Do not attempt to create
21151 default_def replacements for unscalarizable regions.
21152
21153 2016-02-20 Mark Wielaard <mjw@redhat.com>
21154
21155 PR c/28901
21156 * cgraphunit.c (check_global_declaration): Check level of
21157 warn_unused_const_variable and main_input_filename.
21158 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21159 (-Wunused-variable): For C implies -Wunused-const-variable=1.
21160 (-Wunused-const-variable): Explain levels 1 and 2.
21161
21162 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21163
21164 PR target/69888
21165 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21166 identical arguments. Formatting and spelling fixes.
21167
21168 PR target/69885
21169 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21170 be specified.
21171
21172 PR target/69894
21173 PR target/69895
21174 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21175 and m68k-devices.def.
21176 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21177 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21178
21179 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
21180
21181 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21182 and HImode registers.
21183
21184 2016-02-22 Richard Biener <rguenther@suse.de>
21185
21186 PR tree-optimization/69882
21187 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21188 preserve permutations present because of gaps.
21189 (vect_supported_load_permutation_p): Always continue checking
21190 permutations after vect_attempt_slp_rearrange_stmts.
21191
21192 2016-02-22 Bin Cheng <bin.cheng@arm.com>
21193
21194 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21195 min_profitable_estimate, rather than min_profitable_iters.
21196
21197 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21198
21199 PR target/69885
21200 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21201 SImode for last match_operand.
21202
21203 2016-02-22 Martin Liska <mliska@suse.cz>
21204
21205 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21206 return bitsize - 1 as the return value.
21207
21208 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
21209
21210 PR target/69806
21211 PR target/54089
21212 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21213 Handle negative shift counts.
21214 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21215 force_reg on the shift constant.
21216 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
21217 (lshrsi3_d): Handle negative shift counts.
21218
21219 2016-02-22 Richard Biener <rguenther@suse.de>
21220 Tom de Vries <tom@codesourcery.com>
21221
21222 * graph.c: Include dumpfile.h.
21223 (print_graph_cfg): Split into three overloads.
21224 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21225
21226 2016-02-22 Tom de Vries <tom@codesourcery.com>
21227
21228 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21229 dump-fn.
21230
21231 2016-02-22 Richard Biener <rguenther@suse.de>
21232
21233 PR ipa/37448
21234 * ipa-inline-transform.c (inline_call): When not updating
21235 overall summaries adjust self size by the growth estimate.
21236 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21237 hash-set, do not update overall summaries here. Renamed from ...
21238 (inline_to_all_callers): ... this which is now wrapping the
21239 above and performing delayed overall summary update.
21240 (early_inline_small_functions): Delay updating of the overall
21241 summary.
21242
21243 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
21244
21245 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21246 variable.
21247
21248 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21249
21250 PR driver/69805
21251 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21252 :%* in %:gt() argument.
21253 (greater_than_spec_func): Adjust for expecting only numbers,
21254 if there are more than two numbers, compare the last two.
21255
21256 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
21257
21258 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21259 -Wnarrowing with -std.
21260
21261 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21262
21263 PR c++/69851
21264 * expr.c (store_field): Don't use bit-field path if exp is
21265 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21266 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21267 and the assignment can be performed by bitwise copy. Formatting
21268 fix.
21269
21270 PR middle-end/69838
21271 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21272 call copy_reg_eh_region_note_forward on before and/or after sequences
21273 and remove note from insn if it no longer can throw.
21274
21275 PR target/69820
21276 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21277 if TARGET_AVX512BW.
21278
21279 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21280
21281 * config/s390/vector.md: Add missing commutative operand markers
21282 to the patterns which qualify for one.
21283 * config/s390/vx-builtins.md: Likewise.
21284
21285 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21286
21287 * config/s390/vector.md (VI, VI_QHS): Add single element vector
21288 types to mode iterators.
21289 (vec_double): ... and mode attribute.
21290 * config/s390/vx-builtins.md (non_vec_int): Likewise.
21291
21292 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21293
21294 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21295 Change the predicate of op2 from nonimmediate to general and let
21296 reload fix it if necessary.
21297
21298 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21299
21300 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21301
21302 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21303
21304 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21305 mode.
21306
21307 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21308
21309 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21310 * config/s390/s390.c (s390_expand_vec_movstr): New function.
21311 * config/s390/s390.md ("movstr<P:mode>"): Call
21312 s390_expand_vec_movstr.
21313
21314 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21315
21316 * config/s390/s390.md: Add missing output modifier for operand 1
21317 to print it as address properly.
21318
21319 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21320
21321 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21322 * config/s390/2964.md: New file.
21323 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21324 of insn grouping attributes depending on the CPU level.
21325 (s390_get_unit_mask): New function.
21326 (s390_sched_score): Remove the OOO from the scheduling macros.
21327 Add loop to calculate a score for the instruction mix.
21328 (s390_sched_reorder): Likewise plus improve debug output.
21329 (s390_sched_variable_issue): Rename macros as above. Calculate
21330 the unit distances after actually scheduling an insn. Improve
21331 debug output.
21332 (s390_sched_init): Clear last_scheduled_unit_distance array.
21333 * config/s390/s390.md: Include 2964.md.
21334
21335 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21336
21337 PR target/69671
21338 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21339 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21340 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21341 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21342 *avx512f_<code>v8div16qi2_mask_1): New insns.
21343
21344 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
21345
21346 PR target/68404
21347 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21348 2016-02-09 change.
21349
21350 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21351 earlyclobber from target. Use wF constraint for fused memory
21352 address.
21353 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21354
21355 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21356 Martin Liska <mliska@suse.cz>
21357
21358 PR sanitizer/69863
21359 * cfgexpand.c (asan_sanitize_stack_p): New function.
21360 (partition_stack_vars): Use the function.
21361 (expand_stack_vars): Likewise.
21362 (defer_stack_allocation): Likewise.
21363 (expand_used_vars): Likewise.
21364
21365 2016-02-18 Richard Biener <rguenther@suse.de>
21366
21367 PR middle-end/69553
21368 * fold-const.c (operand_equal_p): Properly compare offsets for
21369 IMAGPART_EXPR and ARRAY_REF.
21370
21371 2016-02-18 Nick Clifton <nickc@redhat.com>
21372
21373 PR target/62254
21374 PR target/69610
21375 * config/arm/arm.c (arm_option_override_internal): Disable
21376 interworking if the target does not support thumb instructions.
21377 (arm_reload_in_hi): Handle the case where a register to register
21378 move needs reloading because there is no simple pattern to handle
21379 it.
21380 (arm_reload_out_hi): Likewise.
21381
21382 2016-02-18 Richard Biener <rguenther@suse.de>
21383
21384 PR middle-end/69854
21385 * match.pd: Don't use fold_binary or fold_unary for folding
21386 constants.
21387
21388 2016-02-17 Jakub Jelinek <jakub@redhat.com>
21389
21390 PR c++/69850
21391 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21392 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21393 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21394 warn on gimple_no_warning_p statements.
21395
21396 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
21397
21398 * doc/extend.texi (C++ Attributes): Correct description of
21399 warn_unused type attribute.
21400
21401 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21402
21403 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21404 correct instruction.
21405
21406 2016-02-17 Richard Biener <rguenther@suse.de>
21407
21408 PR rtl-optimization/69609
21409 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
21410 (find_traces_1_round): When ending a trace update cached priority
21411 of successors.
21412 (bb_to_key): Use cached priority when available.
21413 (copy_bb): Initialize cached priority.
21414 (reorder_basic_blocks_software_trace_cache): Likewise.
21415
21416 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21417
21418 PR target/69161
21419 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
21420 New predicate.
21421 (aarch64_comparison_operator): Break overly long line into two.
21422 (aarch64_comparison_operation): Likewise.
21423 * config/aarch64/aarch64.md (cstorecc4): Use
21424 aarch64_comparison_operator_mode instead of
21425 aarch64_comparison_operator.
21426 (cstore<mode>4): Likewise.
21427 (aarch64_cstore<mode>): Likewise.
21428 (*cstoresi_insn_uxtw): Likewise.
21429 (cstore<mode>_neg): Likewise.
21430 (*cstoresi_neg_uxtw): Likewise.
21431
21432 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21433
21434 PR target/69161
21435 * config/arm/predicates.md (arm_comparison_operator_mode):
21436 New predicate.
21437 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
21438 instead of arm_comparison_operator.
21439 (*mov_negscc): Likewise.
21440 (*mov_notscc): Likewise.
21441 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
21442 (*thumb2_mov_negscc): Likewise.
21443 (*thumb2_mov_negscc_strict_it): Likewise.
21444 (*thumb2_mov_notscc): Likewise.
21445 (*thumb2_mov_notscc_strict_it): Likewise.
21446
21447 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
21448
21449 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
21450 Add missing return.
21451
21452 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
21453
21454 * config/visium/visium.c (machine_libfunc_index): New enum.
21455 (machine_libfuncs): New structure.
21456 (visium_libfuncs): New static variable.
21457 (TARGET_INIT_LIBFUNCS): Define to...
21458 (visium_init_libfuncs): ...this. New function.
21459 (expand_block_move_4): Use the appropriate libfunc.
21460 (expand_block_move_2): Likewise.
21461 (expand_block_move_1): Likewise.
21462 (expand_block_set_4): Likewise.
21463 (expand_block_set_2): Likewise.
21464 (expand_block_set_1): Likewise.
21465 (visium_trampoline_init): Likewise.
21466
21467 2016-02-17 Nick Clifton <nickc@redhat.com>
21468
21469 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
21470 TI's devices.csv file as of March 2016.
21471
21472 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
21473
21474 PR Target/48344
21475 * opts-global.c (handle_common_deferred_options): Introduce and
21476 initialize two global variables to remember command-line options
21477 specifying a stack-limiting register.
21478 * opts.h: Add extern declarations of the two new global variables.
21479 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
21480 variable based on the values of the two new global variables.
21481
21482 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21483
21484 PR c/69835
21485 * common.opt (Wnonnull-compare): New warning.
21486 * doc/invoke.texi (-Wnonnull): Remove text about comparison
21487 of arguments against NULL.
21488 (-Wnonnull-compare): Document.
21489 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
21490 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
21491 * passes.def (pass_warn_nonnull_compare): Add.
21492 * gimple-ssa-nonnull-compare.c: New file.
21493
21494 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21495
21496 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
21497 AARCH64_EXTRA_TUNE_RECIP_SQRT.
21498
21499 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21500
21501 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
21502 reciprocal sqrt for -mlow-precision-recip-sqrt.
21503
21504 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21505 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21506
21507 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
21508 always use lane loads to construct non-constant vectors.
21509
21510 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21511
21512 * config/aarch64/aarch64.md
21513 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
21514 constraints for operand 3.
21515 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
21516
21517 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21518 Richard Biener <rguenther@suse.de>
21519
21520 PR tree-optimization/69820
21521 * tree-vect-patterns.c (type_conversion_p): Return false if
21522 *orig_type is unsigned single precision or boolean.
21523 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
21524 Formatting fix.
21525
21526 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21527
21528 PR rtl-optimization/69764
21529 PR rtl-optimization/69771
21530 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
21531 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
21532
21533 2016-02-16 Richard Biener <rguenther@suse.de>
21534
21535 PR tree-optimization/69776
21536 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
21537 sets from caller.
21538 (indirect_refs_may_alias_p): Likewise.
21539 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
21540 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
21541 according to tbaa_p.
21542 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
21543 (optimize_stmt): For redundant store discovery do not allow tbaa.
21544
21545 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
21546
21547 PR tree-optimization/69714
21548 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
21549 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
21550
21551 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
21552
21553 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
21554 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
21555 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
21556 * config/arc/arc.c (arc_init): Check FPU options.
21557 (get_arc_condition_code): Handle new CC_FPU* modes.
21558 (arc_select_cc_mode): Likewise.
21559 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
21560 register pair only. Allow access for ARCv2 accumulator.
21561 (gen_compare_reg): Whenever we have FPU support use FPU compare
21562 instructions.
21563 (arc_reorg): Don't generate brcc insns when FPU compare
21564 instructions are involved.
21565 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
21566 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
21567 floating point emulation.
21568 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
21569 (REVERSE_CONDITION): Add new CC_FPU* modes.
21570 (TARGET_FP_SP_BASE): Define.
21571 (TARGET_FP_DP_BASE): Likewise.
21572 (TARGET_FP_SP_FUSED): Likewise.
21573 (TARGET_FP_DP_FUSED): Likewise.
21574 (TARGET_FP_SP_CONV): Likewise.
21575 (TARGET_FP_DP_CONV): Likewise.
21576 (TARGET_FP_SP_SQRT): Likewise.
21577 (TARGET_FP_DP_SQRT): Likewise.
21578 (TARGET_FP_DP_AX): Likewise.
21579 * config/arc/arc.md (ARCV2_ACC): New constant.
21580 (type): New fpu type attribute.
21581 (SDF): Conditional iterator.
21582 (cstore<mode>, cbranch<mode>): Change expand condition.
21583 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
21584 handles FPU/FPX cases as well.
21585 * config/arc/arc.opt (mfpu): New option.
21586 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
21587 Renamed.
21588 (adddf3, muldf3, subdf3): Removed.
21589 * config/arc/predicates.md (proper_comparison_operator): Recognize
21590 CC_FPU* modes.
21591 * config/arc/fpu.md: New file.
21592 * doc/invoke.texi (ARC Options): Document mfpu option.
21593
21594 2016-02-16 Richard Biener <rguenther@suse.de>
21595
21596 PR rtl-optimization/69291
21597 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
21598 noce_operand_ok check.
21599
21600 2016-02-16 Tom de Vries <tom@codesourcery.com>
21601
21602 PR lto/67709
21603 * omp-low.c (simd_clone_create): Remove call to
21604 symtab->call_cgraph_insertion_hooks.
21605
21606 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21607
21608 PR tree-optimization/69802
21609 * tree-ssa-reassoc.c (update_range_test): If op is
21610 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
21611 op == 1 test of precision 1 integral op, otherwise handle
21612 that case as op itself. Fix up formatting.
21613 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
21614 up formatting.
21615
21616 2016-02-16 Richard Biener <rguenther@suse.de>
21617
21618 PR tree-optimization/69586
21619 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
21620 types for conversion sources.
21621
21622 2016-02-16 Richard Biener <rguenther@suse.de>
21623
21624 PR middle-end/69801
21625 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
21626 mask OEP_ADDRESS_OF.
21627
21628 2016-02-16 Alan Modra <amodra@gmail.com>
21629
21630 PR target/68973
21631 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
21632 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
21633 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
21634 (p8_mtvsrwz): New.
21635 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
21636 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
21637 (p8_fmrgow_<mode>): Likewise.
21638 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
21639 changes.
21640 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
21641 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
21642 to use movdi_internal64. Remove op0_di.
21643 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
21644
21645 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
21646
21647 Add support for the FCCMP insn types
21648
21649 * config/aarch64/aarch64.md (fccmp): Change insn type.
21650 (fccmpe): Likewise.
21651 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
21652 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
21653 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
21654 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
21655 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
21656 * config/arm/types.md (fccmps): Add new insn type.
21657 (fccmpd): Likewise.
21658
21659 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
21660
21661 * alias.c (get_alias_set): Fix a typo in comment.
21662
21663 2016-02-15 Richard Biener <rguenther@suse.de>
21664
21665 PR tree-optimization/69595
21666 * match.pd: Complete range test simplification to true.
21667
21668 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
21669
21670 PR rtl-optimization/69648
21671 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
21672 pic_offset_table_rtx.
21673
21674 PR rtl-optimization/69752
21675 * ira.c (update_equiv_regs): When looking for more than a single SET,
21676 also take other side effects into account.
21677
21678 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
21679
21680 * config/s390/s390.c (s390_function_profiler): Add a new sequence
21681 for z900+ CPUs in 31-bit mode.
21682
21683 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
21684
21685 * common/config/s390/s390-common.c (s390_supports_split_stack):
21686 New function.
21687 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
21688 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
21689 * config/s390/s390.c (struct machine_function): New field
21690 split_stack_varargs_pointer.
21691 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
21692 in s390_emit_prologue.
21693 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
21694 vararg pointer.
21695 (morestack_ref): New global.
21696 (SPLIT_STACK_AVAILABLE): New macro.
21697 (s390_expand_split_stack_prologue): New function.
21698 (s390_live_on_entry): New function.
21699 (s390_va_start): Use split-stack vararg pointer if appropriate.
21700 (s390_asm_file_end): Emit the split-stack note sections.
21701 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
21702 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
21703 (UNSPECV_SPLIT_STACK_CALL): New unspec.
21704 (UNSPECV_SPLIT_STACK_DATA): New unspec.
21705 (split_stack_prologue): New expand.
21706 (split_stack_space_check): New expand.
21707 (split_stack_data): New insn.
21708 (split_stack_call): New expand.
21709 (split_stack_call_*): New insn.
21710 (split_stack_cond_call): New expand.
21711 (split_stack_cond_call_*): New insn.
21712
21713 2016-02-15 Richard Biener <rguenther@suse.de>
21714
21715 PR tree-optimization/69783
21716 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21717 Add trivially correct cases.
21718
21719 2016-02-15 Tom de Vries <tom@codesourcery.com>
21720
21721 PR lto/69655
21722 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
21723 do_force_output.
21724 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
21725
21726 2016-02-15 Richard Biener <rguenther@suse.de>
21727
21728 PR tree-optimization/69776
21729 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21730 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21731 indicate whether we can use TBAA to disambiguate against stores.
21732 Use alias-set zero if not.
21733 (visit_reference_op_store): Do not use TBAA when looking up
21734 redundant stores.
21735 * tree-ssa-pre.c (compute_avail): Use TBAA here.
21736 (eliminate_dom_walker::before_dom_children): But not when looking
21737 up redundant stores.
21738
21739 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
21740
21741 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21742
21743 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21744
21745 * config/i386/znver1.md
21746 (znver1_pop, znver1_pop_mem,
21747 znver1_load_imov_double_store,
21748 znver1_load_imov_direct_store,
21749 znver1_load_imov_direct_load,
21750 znver1_load_imov_double_load): Add new.
21751 (znver1_insn, znver1_insn_load): Add icmov type.
21752 (znver1_sseavx_fma,
21753 znver1_sseavx_fma_load,
21754 znver1_avx256_fma,
21755 znver1_avx256_fma_load): Fix pipe usage.
21756
21757 2016-02-14 Alan Modra <amodra@gmail.com>
21758
21759 PR target/68973
21760 * reload.c (find_reloads_address_1): For pre/post-inc/dec
21761 with an invalid hard reg, reload just the reg not the entire
21762 pre/post-inc/dec address expression.
21763
21764 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
21765
21766 PR target/67260
21767 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21768 fixed R1_REG scratch reg.
21769 (sibcall_value_pcrel_fdpic): Likewise.
21770
21771 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
21772
21773 PR target/67636
21774 PR target/64345
21775 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21776
21777 2016-02-12 Walter Lee <walt@tilera.com>
21778
21779 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21780 * config/tilegx/t-tilegx: Likewise.
21781
21782 2016-02-12 David Malcolm <dmalcolm@redhat.com>
21783
21784 PR other/69554
21785 * diagnostic-show-locus.c (struct line_span): New struct.
21786 (layout::get_first_line): Delete.
21787 (layout::get_last_line): Delete.
21788 (layout::get_num_line_spans): New member function.
21789 (layout::get_line_span): Likewise.
21790 (layout::print_heading_for_line_span_index_p): Likewise.
21791 (layout::get_expanded_location): Likewise.
21792 (layout::calculate_line_spans): Likewise.
21793 (layout::m_first_line): Delete.
21794 (layout::m_last_line): Delete.
21795 (layout::m_line_spans): New field.
21796 (layout::layout): Update comment. Replace m_first_line and
21797 m_last_line with m_line_spans, replacing their initialization
21798 with a call to calculate_line_spans.
21799 (diagnostic_show_locus): When printing source lines and
21800 annotations, rather than looping over a single span
21801 of lines, instead loop over each line_span within
21802 the layout, with an inner loop over the lines within them.
21803 Call the context's start_span callback when changing line spans.
21804 * diagnostic.c (diagnostic_initialize): Initialize start_span.
21805 (diagnostic_build_prefix): Break out the building of the location
21806 part of the string into...
21807 (diagnostic_get_location_text): ...this new function, rewriting
21808 it from nested ternary expressions to a sequence of "if"
21809 statements.
21810 (default_diagnostic_start_span_fn): New function.
21811 * diagnostic.h (diagnostic_start_span_fn): New typedef.
21812 (diagnostic_context::start_span): New field.
21813 (default_diagnostic_start_span_fn): New prototype.
21814
21815 2016-02-12 David Malcolm <dmalcolm@redhat.com>
21816
21817 PR driver/69779
21818 * gcc.c (driver::finalize): Fix cleanup of "specs".
21819
21820 2016-02-12 David Malcolm <dmalcolm@redhat.com>
21821
21822 PR driver/69265
21823 PR driver/69453
21824 * gcc.c (driver::driver): Initialize m_option_suggestions.
21825 (driver::~driver): Clean up m_option_suggestions.
21826 (suggest_option): Convert to...
21827 (driver::suggest_option): ...this, and split out into
21828 driver::build_option_suggestions and find_closest_string.
21829 (driver::build_option_suggestions): New function, from
21830 first half of suggest_option. Special-case
21831 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
21832 the sanitizer_opts array. For options of enum types, add the
21833 various enum values to the candidate strings.
21834 (driver::handle_unrecognized_options): Remove "const".
21835 * gcc.h (driver::handle_unrecognized_options): Likewise.
21836 (driver::build_option_suggestions): New decl.
21837 (driver::suggest_option): New decl.
21838 (driver::m_option_suggestions): New field.
21839 * opts-common.c (add_misspelling_candidates): New function.
21840 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
21841 and make non-static.
21842 * opts.h (sanitizer_opts): New array decl.
21843 (add_misspelling_candidates): New function decl.
21844 * spellcheck.c (find_closest_string): New function.
21845 * spellcheck.h (find_closest_string): New function decl.
21846
21847 2016-02-12 Jakub Jelinek <jakub@redhat.com>
21848
21849 PR rtl-optimization/69764
21850 PR rtl-optimization/69771
21851 * optabs.c (expand_binop_directly): For shift_optab_p, force
21852 convert_modes with VOIDmode if xop1 has VOIDmode.
21853
21854 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
21855
21856 PR target/69729
21857 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
21858 to correctly determine instrumentation thunks.
21859
21860 2016-02-12 Jakub Jelinek <jakub@redhat.com>
21861
21862 PR ipa/69241
21863 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
21864 type by reference, force lhs on the call.
21865
21866 PR ipa/68672
21867 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
21868 Compute retval and retbnd early in all cases if split_part_return_p
21869 and return_bb is not EXIT. Remove all clobber stmts and reset
21870 all debug stmts that refer to SSA_NAMEs defined in split part,
21871 except if it is retval, in that case replace the old retval with the
21872 lhs of the call to the split part.
21873
21874 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21875
21876 revert:
21877 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21878
21879 PR middle-end/66726
21880 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21881 whose result is used in PHI.
21882 (maybe_optimize_range_tests): Likewise.
21883 (final_range_test_p): Likweise.
21884
21885 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21886
21887 PR middle-end/66726
21888 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21889 whose result is used in PHI.
21890 (maybe_optimize_range_tests): Likewise.
21891 (final_range_test_p): Likweise.
21892
21893 2016-02-12 Jakub Jelinek <jakub@redhat.com>
21894
21895 * cgraph.c: Spelling fixes - behaviour -> behavior and
21896 neighbour -> neighbor.
21897 * target.def: Likewise.
21898 * sel-sched.c: Likewise.
21899 * config/mips/mips.c: Likewise.
21900 * config/arc/arc.md: Likewise.
21901 * config/arm/cortex-a57.md: Likewise.
21902 * config/arm/arm.c: Likewise.
21903 * config/arm/neon.md: Likewise.
21904 * config/arm/arm-c.c: Likewise.
21905 * config/vms/vms-c.c: Likewise.
21906 * config/s390/s390.c: Likewise.
21907 * config/i386/znver1.md: Likewise.
21908 * config/i386/i386.c: Likewise.
21909 * config/ia64/hpux-unix2003.h: Likewise.
21910 * config/msp430/msp430.md: Likewise.
21911 * config/rx/rx.c: Likewise.
21912 * config/rx/rx.md: Likewise.
21913 * config/aarch64/aarch64-simd.md: Likewise.
21914 * config/aarch64/aarch64.c: Likewise.
21915 * config/nvptx/nvptx.c: Likewise.
21916 * config/bfin/bfin.c: Likewise.
21917 * config/cris/cris.opt: Likewise.
21918 * config/rs6000/rs6000.c: Likewise.
21919 * target.h: Likewise.
21920 * spellcheck.c: Likewise.
21921 * ira-build.c: Likewise.
21922 * tree-inline.c: Likewise.
21923 * builtins.c: Likewise.
21924 * lra-constraints.c: Likewise.
21925 * explow.c: Likewise.
21926 * hwint.h: Likewise.
21927 * targhooks.c: Likewise.
21928 * tree-vect-data-refs.c: Likewise.
21929 * expr.c: Likewise.
21930 * doc/tm.texi: Likewise.
21931 * doc/extend.texi: Likewise.
21932 * doc/install.texi: Likewise.
21933 * doc/md.texi: Likewise.
21934 * tree-ssa-tail-merge.c: Likewise.
21935 * sched-int.h: Likewise.
21936 * match.pd: Likewise.
21937 * sched-ebb.c: Likewise.
21938 * target.def (omit_struct_return_reg): Likewise.
21939 * gimple-ssa-isolate-paths.c: Likewise.
21940 (find_implicit_erroneous_behaviour): Renamed to...
21941 (find_implicit_erroneous_behavior): ... this.
21942 (find_explicit_erroneous_behaviour): Renamed to...
21943 (find_explicit_erroneous_behavior): ... this.
21944 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21945
21946 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
21947
21948 PR rtl-optimization/64682
21949 PR rtl-optimization/69567
21950 PR rtl-optimization/69737
21951 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21952 in I2 as well, just lose it.
21953
21954 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21955
21956 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
21957 New variable.
21958 (aarch64_last_printed_tune_string): Likewise.
21959 (aarch64_declare_function_name): Only output .arch assembler
21960 directive if it will be different from the previously output
21961 directive. Same for .tune comment but only if -dA is set.
21962 (aarch64_start_file): New function.
21963 (TARGET_ASM_FILE_START): Define.
21964
21965 2016-02-11 David Malcolm <dmalcolm@redhat.com>
21966
21967 PR plugins/69758
21968 * Makefile.in (PLUGIN_HEADERS): Add params.list.
21969
21970 2016-02-11 Jakub Jelinek <jakub@redhat.com>
21971
21972 PR target/65313
21973 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
21974 -Wmaybe-uninitialized warning.
21975
21976 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
21977
21978 PR target/69713
21979 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
21980
21981 2016-02-11 Richard Biener <rguenther@suse.de>
21982
21983 PR rtl-optimization/69291
21984 * ifcvt.c (noce_try_store_flag_constants): Do not allow
21985 subexpressions affected by changing the result.
21986
21987 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
21988
21989 PR target/69148
21990 * lra-constraints.c (curr_insn_transform): Find in/out operands
21991 for secondary memory moves. Update dups.
21992
21993 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
21994
21995 PR tree-optimization/69652
21996 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
21997 to nested loop, did source re-formatting, skip debug statements,
21998 add check on statement with volatile operand, remove dead scalar
21999 statements.
22000
22001 2016-02-10 Jakub Jelinek <jakub@redhat.com>
22002 Patrick Palka <ppalka@gcc.gnu.org>
22003
22004 PR ipa/69241
22005 PR c++/69649
22006 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22007 calls if the return type is TREE_ADDRESSABLE.
22008 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22009 * ipa-split.c (split_function): Fix doubled "we" in comment.
22010 Use void return type for the split part even if
22011 !split_point->split_part_set_retval.
22012
22013 2016-02-10 Bin Cheng <bin.cheng@arm.com>
22014
22015 PR tree-optimization/68021
22016 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22017 when computing the value of biv cand by itself.
22018
22019 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22020
22021 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22022 (cortexa57_tunings): Likewise.
22023 (cortexa72_tunings): Likewise.
22024 (arch_macro_fusion_pair_p): Add support for AES fusion.
22025 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22026 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22027 Allow virtual registers before reload so early scheduling works.
22028 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22029 correct latency and pipeline.
22030 (cortex_a57_crypto_complex): Likewise.
22031 (cortex_a57_crypto_xor): Likewise.
22032 (define_bypass): Add AES bypass.
22033
22034 2016-02-10 Richard Biener <rguenther@suse.de>
22035
22036 PR tree-optimization/69726
22037 * passes.def: Add DCE pass before late uninit.
22038 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22039 really fixup if-conversions job.
22040
22041 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22042
22043 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22044 (arm_cortex_a57_tune): Likewise.
22045 (aarch_macro_fusion_pair_p): Add support for AES fusion.
22046 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22047
22048 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
22049
22050 * timevar.def (TV_PHASE_DBGINFO): Delete.
22051 (TV_PHASE_CHECK_DBGINFO): Likewise.
22052 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22053
22054 2016-02-10 Richard Biener <rguenther@suse.de>
22055
22056 PR tree-optimization/69719
22057 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22058 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22059
22060 2016-02-09 Andrew Pinski <apinski@cavium.com>
22061
22062 PR tree-opt/69282
22063 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22064 get_vcond_mask_icode returns false.
22065
22066 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22067
22068 PR target/68404
22069 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22070 an ADDIS that adds a pointer to a large constant that sets the
22071 upper16 bits with a load operation.
22072
22073 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22074
22075 PR target/68532
22076 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22077 order.
22078 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22079 endian.
22080 (vzipq_s16): Likewise.
22081 (vzipq_s32): Likewise.
22082 (vzipq_f32): Likewise.
22083 (vzipq_u8): Likewise.
22084 (vzipq_u16): Likewise.
22085 (vzipq_u32): Likewise.
22086 (vzipq_p8): Likewise.
22087 (vzipq_p16): Likewise.
22088
22089 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22090
22091 PR target/68532
22092 * config/arm/arm.c (neon_endian_lane_map): New function.
22093 (neon_vector_pair_endian_lane_map): New function.
22094 (arm_evpc_neon_vuzp): Allow for big endian lane order.
22095 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22096 endian.
22097 (vuzpq_s16): Likewise.
22098 (vuzpq_s32): Likewise.
22099 (vuzpq_f32): Likewise.
22100 (vuzpq_u8): Likewise.
22101 (vuzpq_u16): Likewise.
22102 (vuzpq_u32): Likewise.
22103 (vuzpq_p8): Likewise.
22104 (vuzpq_p16): Likewise.
22105
22106 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
22107
22108 PR target/69634
22109 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22110 debug insns.
22111
22112 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
22113
22114 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22115 truncate const_int operand 1 to QImode.
22116
22117 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
22118
22119 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22120 corresponding to an abnormal edge.
22121
22122 2016-02-09 Tom de Vries <tom@codesourcery.com>
22123
22124 PR tree-optimization/69599
22125 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22126 function.
22127 (find_func_aliases_for_builtin_call, find_func_clobbers)
22128 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
22129 partition.
22130
22131 2016-02-09 Richard Biener <rguenther@suse.de>
22132
22133 PR tree-optimization/69715
22134 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22135 LHS on calls as non-rewritable.
22136
22137 2016-02-09 Tom de Vries <tom@codesourcery.com>
22138
22139 PR lto/69707
22140 * lto-wrapper.c (append_diag_options): New function.
22141 (compile_offload_image): Call append_diag_options.
22142
22143 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
22144
22145 PR other/69722
22146 * doc/extend.texi (Flag Output Operands): Correct sectioning.
22147 Minor copy-edit to fix verb tenses.
22148
22149 2016-02-08 Jakub Jelinek <jakub@redhat.com>
22150
22151 PR tree-optimization/69209
22152 * ipa-split.c (split_function): If split part is not
22153 returning retval, retval has gimple type but is not
22154 gimple value, force it into a SSA_NAME first.
22155
22156 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
22157
22158 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22159 outdated section.
22160
22161 2016-02-08 Jason Merrill <jason@redhat.com>
22162
22163 PR c++/69631
22164 * convert.c (convert_to_integer_1): Check dofold on truncation
22165 distribution.
22166 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22167 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22168 Rename from *_nofold.
22169 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22170 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22171
22172 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
22173
22174 PR target/60410
22175 * tree.c (build_common_tree_nodes): Remove short_double argument.
22176 All callers changed.
22177 * tree.h (build_common_tree_nodes): Adjust declaration.
22178 * doc/invoke.texi (-fshort-double): Remove documentation.
22179 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22180 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22181 * lto-wrapper.c (merge_and_complain, append_compiler_options)
22182 (append_linker_options): Don't handle OPT_fshort_double.
22183
22184 PR rtl-optimization/68730
22185 * lra-remat.c (insn_to_cand_activation): New static variable.
22186 (lra_remat): Allocate and free it.
22187 (create_cand): New arg activation. Initialize a field in
22188 insn_to_cand_activation if it is nonnull.
22189 (create_cands): Pass the activation insn to create_cand when making
22190 a candidate involving an output reload. Reorganize code a little.
22191 (do_remat): Keep track of active status of candidates in a separate
22192 bitmap.
22193
22194 2016-02-08 Richard Biener <rguenther@suse.de>
22195
22196 PR tree-optimization/69719
22197 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22198 Properly use absolute of the difference of the two offsets to
22199 compare or adjust the segment length.
22200
22201 2016-02-08 Richard Biener <rguenther@suse.de>
22202 Jeff Law <law@redhat.com>
22203
22204 PR target/68273
22205 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22206 types for anonymous SSA names.
22207
22208 2016-02-08 Richard Biener <rguenther@suse.de>
22209
22210 PR rtl-optimization/69274
22211 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22212
22213 2016-02-08 Jeff Law <law@redhat.com>
22214
22215 PR tree-optimization/65917
22216 * tree-ssa-dom.c (record_temporary_equivalences): Record both
22217 equivalences from if (x == y) style conditionals.
22218 (loop_depth_of_name): Remove.
22219 (record_equality): Remove loop depth check.
22220 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22221 (const_and_copies::record_const_or_copy_raw): New member function.
22222 * tree-ssa-scopedtables.c
22223 (const_and_copies::record_const_or_copy_raw): New, factored out of
22224 (const_and_copies::record_const_or_copy): Call new member function.
22225
22226 2016-02-05 Jeff Law <law@redhat.com>
22227
22228 PR tree-optimization/68541
22229 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22230 (count_stmts_in_block): New function.
22231 (poor_ifcvt_candidate_code): Likewise.
22232 (is_feasible_trace): Add some heuristics to determine when path
22233 splitting is profitable.
22234 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22235 is a diamond with a single exit.
22236
22237 2016-02-05 Martin Sebor <msebor@redhat.com>
22238
22239 PR c++/69662
22240 * doc/invoke.texi: Update -Wplacement-new to take an optional
22241 argument.
22242
22243 2016-02-06 Richard Henderson <rth@redhat.com>
22244
22245 PR c/69643
22246 * tree.c (tree_nop_conversion_p): Do not strip casts into or
22247 out of non-standard address spaces.
22248
22249 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22250
22251 PR rtl-optimization/69691
22252 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22253
22254 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
22255
22256 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22257 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22258 (*ieee128_mfvsrd_64bit): Likewise.
22259 (*ieee128_mfvsrd_32bit): Likewise.
22260
22261 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
22262
22263 PR target/69369
22264 Revert r232560:
22265 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22266
22267 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22268 instrumented_version.
22269
22270 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
22271
22272 * doc/invoke.texi (Optimize Options): In table of --param options
22273 rename second occurrence of tracer-min-branch-ratio to
22274 tracer-min-branch-probability, rename
22275 tracer-min-branch-ratio-feedback to
22276 tracer-min-branch-probability-feedback and clarify description,
22277 rename sched-spec-state-edge-prob-cutoff to
22278 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22279 to selsched-insns-to-rename, rename lto-minpartition to
22280 lto-min-partition, delete reorder-blocks-duplicate and
22281 reorder-blocks-duplicate-feedback.
22282
22283 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22284
22285 * config/s390/s390.c (s390_register_info_set_ranges): Remove
22286 superfluous loops.
22287
22288 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
22289
22290 * doc/extend.texi: S/390: Correct some typos.
22291
22292 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22293
22294 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22295
22296 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22297
22298 PR target/69625
22299 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22300 (s390_register_info_gprtofpr): Use new macros above.
22301 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22302 its name.
22303 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22304 its name. Adjust restore and save gpr ranges.
22305 (s390_register_info_set_ranges): New function.
22306 (s390_register_info): Use new macros above. Call
22307 s390_register_info_set_ranges.
22308 (s390_optimize_register_info): Likewise.
22309 (s390_hard_regno_rename_ok): Use new macros.
22310 (s390_hard_regno_scratch_ok): Likewise.
22311 (s390_emit_epilogue): Likewise.
22312 (s390_can_use_return_insn): Likewise.
22313 (s390_optimize_prologue): Likewise.
22314 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22315
22316 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22317
22318 PR bootstrap/69677
22319 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22320 alignment fixes.
22321 (ix86_option_override_internal): Disable TARGET_STV even for
22322 -m{incoming,preferred}-stack-boundary=3.
22323
22324 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22325
22326 * config.gcc: Mark deprecated rtems targets as obsolete.
22327
22328 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
22329
22330 PR rtl-optimization/64682
22331 PR rtl-optimization/69567
22332 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22333 before I2 only if the register is both used and set in I2.
22334
22335 2016-02-04 DJ Delorie <dj@redhat.com>
22336
22337 * config/msp430/msp430.c (msp430_start_function): Add function type.
22338
22339 2016-02-04 Jakub Jelinek <jakub@redhat.com>
22340
22341 PR fortran/69368
22342 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22343
22344 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
22345
22346 PR rtl-optimization/69577
22347 Revert:
22348 2015-10-29 Richard Henderson <rth@redhat.com>
22349
22350 PR target/68124
22351 PR rtl-opt/67609
22352 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22353 sse check to the exact conditions of PR 67609.
22354
22355 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
22356
22357 PR target/69667
22358 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22359 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22360 not allowed into the traditional Altivec registers.
22361 (movtd_64bit_nodm): Likewise.
22362 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22363
22364 2016-02-04 David Malcolm <dmalcolm@redhat.com>
22365
22366 * config/aarch64/cortex-a57-fma-steering.c
22367 (aarch64_register_fma_steering): Remove "static" from arguments
22368 to register_pass.
22369
22370 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
22371
22372 PR target/69619
22373 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22374 twice when complex.
22375
22376 2016-02-04 Mike Frysinger <vapier@gentoo.org>
22377
22378 * doc/invoke.texi: Delete -mno-fma4.
22379
22380 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
22381
22382 PR rtl-optimization/69577
22383 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22384 (find_subregs_of_mode): Update accordingly. Iterate over partial
22385 definitions.
22386
22387 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
22388
22389 * config/arm/arm-protos.h (neon_reinterpret): Remove.
22390 * config/arm/arm.c (neon_reinterpret): Remove.
22391 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22392 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22393 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22394 vreinterpretti): Remove.
22395 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22396 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22397 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22398 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22399 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22400 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22401 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22402 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22403 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22404 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22405 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22406 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22407 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22408 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
22409 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
22410 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
22411 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
22412 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
22413 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
22414 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
22415 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
22416 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
22417 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
22418 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
22419 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
22420 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
22421 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
22422 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
22423 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
22424 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
22425 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
22426 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
22427 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
22428 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
22429 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
22430 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
22431 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
22432 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
22433 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
22434 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
22435 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
22436 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
22437 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
22438 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
22439 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
22440 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
22441 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
22442 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
22443 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
22444 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
22445 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
22446 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
22447 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
22448 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
22449 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
22450 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
22451 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
22452 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
22453 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
22454 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
22455 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
22456 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
22457 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
22458 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
22459 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
22460 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
22461 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
22462 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
22463 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
22464 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
22465 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
22466 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
22467 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
22468 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
22469 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
22470 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
22471 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
22472 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
22473 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
22474 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
22475 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
22476 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
22477 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
22478 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
22479 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
22480 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
22481 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
22482 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
22483 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
22484 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
22485 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
22486 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
22487 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
22488 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
22489 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
22490 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
22491 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
22492 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
22493 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
22494 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
22495 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
22496 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
22497 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
22498
22499 2016-02-04 Martin Liska <mliska@suse.cz>
22500
22501 PR sanitizer/69276
22502 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
22503 that are gimple_store_p.
22504 (maybe_instrument_call): Likewise.
22505
22506 2016-02-04 Bin Cheng <bin.cheng@arm.com>
22507
22508 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
22509 register scaling out of memory reference and comment why.
22510
22511 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22512
22513 PR target/65932
22514 PR target/67714
22515 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
22516 folding the source of a SET.
22517
22518 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22519
22520 PR target/65932
22521 PR target/67714
22522 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
22523 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
22524
22525 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
22526
22527 PR target/65932
22528 PR target/67714
22529 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
22530 HImode.
22531
22532 2016-02-04 Christian Bruel <christian.bruel@st.com>
22533
22534 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
22535 * config/arm/arm.c (arm_set_current_function): Likewise.
22536
22537 2016-02-04 Jakub Jelinek <jakub@redhat.com>
22538 Ilya Enkovich <enkovich.gnu@gmail.com>
22539 H.J. Lu <hongjiu.lu@intel.com>
22540
22541 PR target/69454
22542 * config/i386/i386.c (convert_scalars_to_vector): Remove
22543 stack alignment fixes.
22544 (ix86_option_override_internal): Disable TARGET_STV if stack
22545 might not be aligned enough.
22546 (ix86_minimum_alignment): Assert that TARGET_STV is false.
22547
22548 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
22549
22550 * config/i386/x86-tune.def: Disable default prefetching
22551 for -march=znver1.
22552
22553 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22554 Vladimir Makarov <vmakarov@redhat.com>
22555
22556 PR target/69461
22557 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
22558 in validating fused toc addresses.
22559
22560 2016-02-03 Jakub Jelinek <jakub@redhat.com>
22561
22562 PR c/69627
22563 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
22564 range->m_caret fields if range->m_show_caret_p is false.
22565
22566 PR target/69644
22567 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22568 Force oldval into register if it does not satisfy reg_or_short_operand
22569 predicate. Fix up formatting.
22570
22571 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
22572 Alexandre Oliva <aoliva@redhat.com>
22573
22574 PR target/69461
22575 * lra-constraints.c (simplify_operand_subreg): Check additionally
22576 address validity after potential reloading.
22577 (process_address_1): Check insns validity. In case of failure do
22578 nothing.
22579
22580 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
22581
22582 PR target/69118
22583 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
22584 Fix target.
22585
22586 2016-02-02 Jakub Jelinek <jakub@redhat.com>
22587
22588 * wide-int.cc (canonize_uhwi): New function.
22589 (wi::divmod_internal): Use it.
22590
22591 2016-02-02 James Norris <jnorris@codesourcery.com>
22592
22593 * gimplify.c (omp_notice_variable): Add usage check.
22594
22595 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
22596
22597 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
22598 like LE, GE, LT, GT when emitting relational operator.
22599
22600 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
22601
22602 * ira-costs.c (find_costs_and_classes): Add extra argument.
22603 * target.def (ira_change_pseudo_allocno_class): Add parameter.
22604 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
22605 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
22606 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
22607 Add best_class parameter, and return it if not ALL_REGS.
22608 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
22609 Add parameter.
22610 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
22611 Update target hook.
22612
22613 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
22614
22615 * config/aarch64/aarch64.c
22616 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
22617 (aarch64_ira_change_pseudo_allocno_class): New function.
22618
22619 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
22620
22621 PR target/67032
22622 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
22623
22624 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22625
22626 * config/avr/avr.c (avr_option_override): Set
22627 PARAM_ALLOW_STORE_DATA_RACES to 1.
22628
22629 2016-02-02 Richard Biener <rguenther@suse.de>
22630
22631 PR tree-optimization/69595
22632 * match.pd: Add range test simplifications to true/false.
22633
22634 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
22635
22636 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
22637 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
22638 instead.
22639
22640 2016-02-02 Richard Biener <rguenther@suse.de>
22641
22642 PR tree-optimization/69606
22643 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
22644 info on the result before moving a stmt.
22645
22646 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
22647
22648 PR middle-end/68542
22649 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
22650 branch with vector comparison.
22651 * config/i386/sse.md (VI48_AVX): New mode iterator.
22652 (define_expand "cbranch<mode>4): Add support for conditional branch
22653 with vector comparison.
22654 * tree-vect-loop.c (optimize_mask_stores): New function.
22655 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
22656 has_mask_store field of vect_info.
22657 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
22658 vectorized loops having masked stores after vec_info destroy.
22659 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
22660 correspondent macros.
22661 (optimize_mask_stores): Add prototype.
22662
22663 2016-02-02 Alan Modra <amodra@gmail.com>
22664
22665 PR target/69548
22666 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
22667 allow subregs.
22668
22669 2016-02-02 Alan Modra <amodra@gmail.com>
22670
22671 PR target/68662
22672 * config/rs6000/rs6000.c (need_toc_init): New var, set it
22673 whenever toc_label_name used.
22674 (rs6000_file_start): Don't set up toc section here,
22675 (rs6000_output_function_epilogue): do so here instead,
22676 (rs6000_xcoff_file_start): and here.
22677 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
22678 (load_toc_aix_di): Likewise.
22679
22680 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22681
22682 PR rtl-optimization/69592
22683 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
22684 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
22685 (num_sign_bit_copies_binary_arith_p): New inline function.
22686 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
22687
22688 2016-02-01 Jeff Law <law@redhat.com>
22689
22690 PR tree-optimization/69580
22691 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
22692 * tree-ssa-threadbackward.c
22693 (fsm_find_control_statement_thread_paths): Do not try to walk
22694 through large PHI nodes.
22695
22696 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22697
22698 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
22699 when count is incremented above limit, don't analyze further
22700 insns afterwards.
22701
22702 * omp-low.c (oacc_parse_default_dims): Avoid
22703 -Wsign-compare warning, make sure value fits into int
22704 rather than just unsigned int.
22705
22706 2016-02-01 Bin Cheng <bin.cheng@arm.com>
22707
22708 PR tree-optimization/67921
22709 * fold-const.c (split_tree): New parameters. Convert pointer
22710 type variable part to proper type before negating.
22711 (fold_binary_loc): Pass new arguments to split_tree.
22712
22713 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
22714
22715 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
22716 (nvptx_goacc_validate_dims): Extend to handle global defaults.
22717 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
22718 * doc/tm.texti: Rebuilt.
22719 * doc/invoke.texi (fopenacc-dim): Document.
22720 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
22721 (append_compiler_options): Likewise.
22722 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
22723 (oacc_parse_default_dims): New.
22724 (oacc_validate_dims): Add USED arg. Select non-unity default when
22725 possible.
22726 (oacc_loop_fixed_partitions): Return mask of used partitions.
22727 (oacc_loop_auto_partitions): Emit dump info.
22728 (oacc_loop_partition): Return mask of used partitions.
22729 (execute_oacc_device_lower): Parse default dimension arg. Adjust
22730 loop partitioning and validation calls.
22731
22732 2016-02-01 Richard Biener <rguenther@suse.de>
22733
22734 PR middle-end/69556
22735 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22736
22737 2016-02-01 Richard Biener <rguenther@suse.de>
22738
22739 PR tree-optimization/69574
22740 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22741 of asserting return chrec_dont_know.
22742
22743 2016-02-01 Martin Liska <mliska@suse.cz>
22744
22745 * mem-stats-traits.h: Add copyright header.
22746 * mem-stats.h: Likewise.
22747
22748 2016-02-01 Richard Biener <rguenther@suse.de>
22749
22750 PR tree-optimization/69579
22751 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22752 Do not propagate through abnormal PHI results.
22753
22754 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
22755
22756 * postreload.c (reload_cse_simplify): Remove dead code.
22757
22758 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22759
22760 PR rtl-optimization/69570
22761 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22762 if there is more than one set, not if there is a single set.
22763
22764 2016-02-01 Richard Henderson <rth@redhat.com>
22765
22766 PR rtl-opt/69535
22767 * combine.c (make_compound_operation): When looking through a
22768 subreg, make sure to re-extend to the width of the outer mode.
22769
22770 2016-01-30 Jakub Jelinek <jakub@redhat.com>
22771
22772 PR tree-optimization/69546
22773 * wide-int.cc (wi::divmod_internal): For unsigned division
22774 where both operands fit into uhwi, if o1 is 1 and o0 has
22775 msb set, if divident_prec is larger than bits per hwi,
22776 clear another quotient word and return 2 instead of 1.
22777 Similarly for remainder with msb in HWI set, if dividend_prec
22778 is larger than bits per hwi.
22779
22780 2016-01-29 Martin Jambor <mjambor@suse.cz>
22781
22782 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22783 Use short lowercase names.
22784 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
22785 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22786 acq_rel one. Protect warning agains segfaults if
22787 get_memory_order_name returns NULL.
22788 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22789 with release semantics. Do not warn if get_memory_order already did.
22790 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22791 semantics. Fix check for relaxed or acquire semantics. Do not warn
22792 if get_memory_order already did.
22793
22794 2016-01-29 Sebastian Pop <s.pop@samsung.com>
22795
22796 * doc/install.texi: Document that isl-0.16 is supported.
22797
22798 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
22799
22800 PR target/69299
22801 * config/i386/constraints.md (Bm): Describe as special memory
22802 constraint.
22803 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22804 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22805 * genpreds.c (struct constraint_data): Add is_special_memory.
22806 (have_special_memory_constraints, special_memory_start): New
22807 static vars.
22808 (special_memory_end): Ditto.
22809 (add_constraint): Add new arg is_special_memory. Add code to
22810 process its true value. Update have_special_memory_constraints.
22811 (process_define_constraint): Pass the new arg.
22812 (process_define_register_constraint): Ditto.
22813 (choose_enum_order): Process special memory.
22814 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
22815 function insn_extra_special_memory_constraint.
22816 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22817 * gensupport.c (process_rtx): Process
22818 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22819 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
22820 * ira-lives.c (single_reg_class): Use
22821 insn_extra_special_memory_constraint.
22822 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
22823 * lra-constraints.c (process_alt_operands): Ditto.
22824 (curr_insn_transform): Use insn_extra_special_memory_constraint.
22825 * recog.c (asm_operand_ok, preprocess_constraints): Process
22826 CT_SPECIAL_MEMORY.
22827 * reload.c (find_reloads): Ditto.
22828 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
22829 * stmt.c (parse_input_constraint): Use
22830 insn_extra_special_memory_constraint.
22831
22832 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
22833
22834 PR target/69530
22835 * lra-splill.c (lra_final_code_change): Revert r229087 by
22836 removing all sub-registers.
22837
22838 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
22839
22840 PR target/65604
22841 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
22842
22843 2016-01-29 Jakub Jelinek <jakub@redhat.com>
22844
22845 PR target/69551
22846 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
22847 SSE1, copy target into the temporary reg first before recursing
22848 on it.
22849
22850 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
22851
22852 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
22853 with vm.
22854
22855 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
22856
22857 * ginclude/stdarg.h: Test __cplusplus instead of
22858 __GXX_EXPERIMENTAL_CXX0X__.
22859
22860 2016-01-29 Richard Biener <rguenther@suse.de>
22861
22862 PR tree-optimization/69547
22863 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
22864 Do not mark clobbers necessary.
22865 (mark_all_reaching_defs_necessary_1): Likewise.
22866
22867 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22868
22869 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
22870 declaration name with %qs and print it in both error messages.
22871 Also fix indentation.
22872
22873 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22874
22875 PR other/69006
22876 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
22877 trailing blank line from error message.
22878
22879 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
22880
22881 PR c++/69462
22882 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
22883 for C++-11.
22884
22885 2016-01-29 Richard Biener <rguenther@suse.de>
22886
22887 PR middle-end/69537
22888 * match.pd: Allow all integral types when simplifying a
22889 widening or sign-changing conversion.
22890
22891 2016-01-28 Sebastian Pop <s.pop@samsung.com>
22892
22893 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22894 back to setting codegen_error to fail codegen.
22895
22896 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
22897
22898 PR target/69459
22899 * config/i386/constraints.md (C): Only accept constant zero operand.
22900 (BC): New constraint.
22901 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22902 instead of C constraint.
22903 * doc/md.texi (Machine Constraints): Update description
22904 of C constraint.
22905
22906 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
22907
22908 PR target/68400
22909 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22910
22911 2016-01-28 Jakub Jelinek <jakub@redhat.com>
22912
22913 PR middle-end/69542
22914 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22915 non-debug insns.
22916
22917 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
22918
22919 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22920 branches if using guessed profile.
22921
22922 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
22923
22924 * graphite-optimize-isl.c (optimize_isl): Fix dump.
22925
22926 2016-01-28 Richard Henderson <rth@redhat.com>
22927
22928 PR target/69305
22929 * config/aarch64/aarch64-modes.def (CC_Cmode): New
22930 * config/aarch64/aarch64-protos.h: Update.
22931 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22932 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22933 (aarch64_get_condition_code_1): Handle CC_Cmode.
22934 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22935 (*add<mode>3_compareC_cconly_imm): New.
22936 (*add<mode>3_compareC_cconly): New.
22937 (*add<mode>3_compareC_imm): New.
22938 (add<mode>3_compareC): New.
22939 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22940 to be first. Use aarch64_carry_operation.
22941 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22942 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22943 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22944 (subti3): Use subdi3_compare1.
22945 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22946 (sub<mode>3_compare1): New.
22947 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22948 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22949 (*subsi3_carryin_uxtw): Likewise.
22950 (*ngc<mode>, *ngcsi_uxtw): Likewise.
22951 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22952 * config/aarch64/iterators.md (DWI): New.
22953 * config/aarch64/predicates.md (aarch64_carry_operation): New.
22954 (aarch64_borrow_operation): New.
22955
22956 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
22957
22958 * graphite-optimize-isl.c (optimize_isl): Print a different debug
22959 message when isl does not return a valid schedule.
22960
22961 2016-01-28 Sebastian Pop <s.pop@samsung.com>
22962
22963 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
22964 Remove comments from class declarations: they are already in the code
22965 close by the defs.
22966
22967 2016-01-28 Sebastian Pop <s.pop@samsung.com>
22968
22969 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
22970 codegen_error_p.
22971 (ternary_op_to_tree): Same.
22972 (unary_op_to_tree): Same.
22973 (nary_op_to_tree): Same.
22974 (gcc_expression_from_isl_expr_op): Same.
22975 (gcc_expression_from_isl_expression): Same.
22976 (graphite_create_new_loop): Same.
22977 (graphite_create_new_loop_guard): Same.
22978 (build_iv_mapping): Same.
22979 (graphite_create_new_guard): Same.
22980 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
22981 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
22982
22983 2016-01-28 Sebastian Pop <s.pop@samsung.com>
22984
22985 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
22986 instead of setting codegen_error to fail codegen.
22987
22988 2016-01-28 Jason Merrill <jason@redhat.com>
22989
22990 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
22991
22992 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
22993
22994 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22995 Remove CONST_INT_P check in CCMP cost calculation.
22996
22997 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
22998
22999 * config/aarch64/aarch64.c (generic_vector_cost):
23000 Set vec_permute_cost.
23001 (cortexa57_vector_cost): Likewise.
23002 (exynosm1_vector_cost): Likewise.
23003 (xgene1_vector_cost): Likewise.
23004 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23005 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23006 Add vec_permute_cost entry.
23007
23008 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23009
23010 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23011 immediate as %1.
23012 (add<mode>3_compare0): Likewise.
23013 (addsi3_compare0_uxtw): Likewise.
23014 (add<mode>3nr_compare0): Likewise.
23015 (compare_neg<mode>): Likewise.
23016 (<optab><mode>3): Likewise.
23017
23018 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
23019
23020 * tree-vect-stmts.c (vectorizable_comparison): Add
23021 NULL check for vectype.
23022
23023 2016-01-28 Richard Biener <rguenther@suse.de>
23024
23025 PR tree-optimization/69466
23026 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23027 Account for PHIs we couldn't duplicate.
23028
23029 2016-01-28 Martin Liska <mliska@suse.cz>
23030
23031 PR pch/68758
23032 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23033 instead of ENABLE_VALGRIND_CHECKING.
23034
23035 2016-01-27 Richard Henderson <rth@redhat.com>
23036
23037 PR rtl-opt/69447
23038 * lra-remat.c (subreg_regs): New.
23039 (dump_candidates_and_remat_bb_data): Dump it.
23040 (operand_to_remat): Reject if operand in subreg_regs.
23041 (set_bb_regs): Collect subreg_regs.
23042 (lra_remat): Init and free subreg_regs. Compute
23043 calculate_local_reg_remat_bb_data before create_cands.
23044
23045 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
23046
23047 PR target/68986
23048 * config/i386/i386.c (ix86_update_stack_boundary): Don't
23049 change stack_alignment_needed for __tls_get_addr call.
23050
23051 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
23052
23053 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23054
23055 2016-01-27 Jeff Law <law@redhat.com>
23056
23057 PR tree-optimization/68398
23058 PR tree-optimization/69196
23059 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23060 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23061 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23062 Only count PHIs in the last block in the path. The others will
23063 const/copy propagate away. Add heuristic to allow more irreducible
23064 subloops to be created when it is likely profitable to do so.
23065
23066 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23067 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
23068 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
23069
23070 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23071
23072 PR lto/69254
23073 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23074 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23075 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23076 * tree-streamer-in.c: Include asan.h.
23077 (streamer_get_builtin_tree): For builtins in sanitizer
23078 range call initialize_sanitizer_builtins and retry.
23079
23080 2016-01-27 Ian Lance Taylor <iant@google.com>
23081
23082 * common.opt (fkeep-gc-roots-live): New undocumented option.
23083 * tree-ssa-loop-ivopts.c (add_candidate_1): If
23084 -fkeep-gc-roots-live, skip pointers.
23085 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23086 NULL.
23087
23088 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
23089
23090 PR target/69512
23091 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23092 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23093
23094 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
23095
23096 PR target/68380
23097 * configure.ac: NetBSD provides SSP in its C library.
23098 * configure: Updated.
23099
23100 2016-01-27 Richard Biener <rguenther@suse.de>
23101
23102 PR tree-optimization/69166
23103 * tree-vect-loop.c (vect_is_simple_reduction): Always check
23104 reduction code for commutativity / associativity.
23105
23106 2016-01-27 Martin Jambor <mjambor@suse.cz>
23107
23108 PR tree-optimization/69355
23109 * tree-sra.c (analyze_access_subtree): Correct hole detection when
23110 total_scalarization fails.
23111
23112 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
23113
23114 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23115 power9.
23116
23117 2016-01-27 Christian Bruel <christian.bruel@st.com>
23118
23119 PR target/69245
23120 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23121 Move arm_reset_previous_fndecl and set_target_option_current_node in
23122 the conditional part. Call save_restore_target_globals.
23123 * config/arm/arm.c (arm_set_current_function):
23124 Refactor to better support #pragma target and attribute mix.
23125 Call save_restore_target_globals.
23126 * config/arm/arm-protos.h (save_restore_target_globals): New function.
23127
23128 2016-01-27 Martin Liska <mliska@suse.cz>
23129
23130 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23131 reference for an HSA kernel and its host function.
23132
23133 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23134
23135 PR tree-optimization/69399
23136 * wide-int.h (wi::lrshift): For larger precisions, only
23137 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23138
23139 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
23140
23141 * config/arc/predicates.md (proper_comparison_operator): Reject
23142 constant-constant comparison.
23143
23144 2016-01-26 Tom de Vries <tom@codesourcery.com>
23145
23146 PR tree-optimization/69110
23147 * tree-data-ref.c (initialize_data_dependence_relation): Handle
23148 DR_NUM_DIMENSIONS == 0.
23149
23150 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23151 Sebastian Pop <s.pop@samsung.com>
23152
23153 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23154 isl_ast_op_cond and isl_ast_op_select.
23155 (gcc_expression_from_isl_expr_op): Same.
23156
23157 2016-01-26 Jason Merrill <jason@redhat.com>
23158
23159 PR c++/68782
23160 * tree.c (recompute_constructor_flags): Split out from
23161 build_constructor.
23162 (verify_constructor_flags): New.
23163 * tree.h: Declare them.
23164
23165 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
23166
23167 PR rtl-optimization/69217
23168 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23169 are no TYPE_FIELDS set for the record type.
23170
23171 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23172
23173 PR target/68662
23174 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23175 toc_label_name unconditionally.
23176 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23177 SYMBOL_REF string. Use toc_label_name instead of constructing
23178 LCTOC1.
23179 (rs6000_elf_declare_function_name): Use toc_label_name instead of
23180 constructing LCTOC1.
23181
23182 2016-01-26 Martin Sebor <msebor@redhat.com>
23183
23184 PR other/69477
23185 * doc/extend.texi (Common Type Attributes): Move text that talks about
23186 attribute packed from attribute aligned to the section discussing
23187 the former attribute for clarity.
23188
23189 2016-01-26 Richard Henderson <rth@redhat.com>
23190
23191 PR middle-end/60908
23192 * trans-mem.c (tm_region_init): Mark entry block as visited.
23193
23194 2016-01-26 David Malcolm <dmalcolm@redhat.com>
23195
23196 PR other/69006
23197 * diagnostic-show-locus.c (layout::print_source_line): Replace
23198 call to pp_newline with call to layout::print_newline.
23199 (layout::print_annotation_line): Likewise.
23200 (layout::move_to_column): Likewise.
23201 (layout::print_any_fixits): After printing any fixits, print a
23202 trailing newline, if necessary.
23203 (layout::print_newline): New method, resetting any colorization
23204 before a newline.
23205 (diagnostic_show_locus): Move the pp_newline to before the
23206 early bailout. Remove dummy block enclosing the layout instance.
23207 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23208 of pp_newline_and_flush with pp_flush.
23209 (diagnostic_append_note): Delete use of pp_newline.
23210 (diagnostic_append_note_at_rich_loc): Delete.
23211 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23212 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23213 when newline characters are added to the buffer.
23214
23215 2016-01-26 Michael Matz <matz@suse.de>
23216
23217 * configure.ac (ac_cv_std_swap_in_utility): New test.
23218 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23219 * configure: Regenerate.
23220 * config.in: Regenerate.
23221
23222 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
23223
23224 * config/arc/arc.md (cstoresi4): Force operand into register.
23225 (arcset<code>): Fix predicate.
23226 (arcsetltu): Likewise.
23227 (arcsetgeu): Likewise.
23228 (arcsethi): Likewise.
23229 (arcsetls): Likewise.
23230
23231 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23232
23233 PR tree-optimization/69483
23234 * gimple-fold.c (canonicalize_constructor_val): Return NULL
23235 if base has error_mark_node type.
23236
23237 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
23238
23239 PR target/68620
23240 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23241 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23242 New helper macros.
23243 (vget_lane_f16): Handle big-endian.
23244 (vgetq_lane_f16): Likewise.
23245 (vset_lane_f16): Likewise.
23246 (vsetq_lane_f16): Likewise.
23247 * config/arm/iterators.md (VQXMOV): Add V8HF.
23248 (VDQ): Add V4HF and V8HF.
23249 (V_reg): Handle V4HF and V8HF.
23250 (Is_float_mode): Likewise.
23251 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23252 neon_vdup_nv8hf): New patterns.
23253 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23254 Use VD_LANE iterator.
23255 (neon_vld1_dup<mode>): Use VQ2 iterator.
23256
23257 2016-01-26 Nathan Sidwell <nathan@acm.org>
23258
23259 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23260 (set_oacc_fn_attrib): Add IS_KERNEL arg.
23261 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23262 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23263 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23264 (oacc_validate_dims): Add LEVEL arg, don't return level.
23265 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23266 oacc_validate_dims.
23267 (execute_oacc_device_lower): Adjust, add more dump output.
23268 * tree-ssa-loop.c (gate_oacc_kernels): Use
23269 oacc_fn_attrib_kernels_p.
23270 * tree-parloops.c (create_parallel_loop): Adjust
23271 set_oacc_fn_attrib call.
23272
23273 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23274
23275 PR lto/69254
23276 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23277 (append_compiler_options): Handle -fcilkplus.
23278 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23279
23280 2016-01-26 Nick Clifton <nickc@redhat.com>
23281
23282 PR target/66655
23283 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23284 been marked as DECL_ONE_ONLY but we do not the means to make it
23285 so, then do not allow it to bind locally.
23286
23287 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23288
23289 PR lto/69254
23290 * opts.h (parse_sanitizer_options): New prototype.
23291 * opts.c (sanitizer_opts): New array.
23292 (parse_sanitizer_options): New function.
23293 (common_handle_option): Use parse_sanitizer_options.
23294
23295 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
23296
23297 PR target/68986
23298 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23299 alignment adjustment to ...
23300 (ix86_update_stack_boundary): Here. Don't over-align stack for
23301 __tls_get_addr.
23302 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23303 if __tls_get_addr is called.
23304
23305 2016-01-26 Christian Bruel <christian.bruel@st.com>
23306
23307 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23308
23309 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
23310
23311 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23312
23313 2016-01-26 Richard Biener <rguenther@suse.de>
23314
23315 PR middle-end/69467
23316 * match.pd: Guard X * CST CMP 0 pattern with single_use.
23317
23318 2016-01-26 Richard Biener <rguenther@suse.de>
23319
23320 PR tree-optimization/69452
23321 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23322 (move_computations_dom_walker::before_dom_children): Rename
23323 to ...
23324 (move_computations_worker): This.
23325 (move_computations): Perform an RPO rather than a DOM walk.
23326
23327 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23328
23329 PR target/69442
23330 * combine.c (combine_instructions): For REG_EQUAL note with
23331 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23332 to the underlying register.
23333 * doc/rtl.texi (REG_EQUAL): Document the behavior of
23334 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23335
23336 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
23337
23338 PR target/67896
23339 * config/aarch64/aarch64-builtins.c
23340 (aarch64_init_simd_builtin_types): Do not set structural
23341 equality to __Poly{8,16,64,128}_t types.
23342
23343 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
23344
23345 PR tree-optimization/69400
23346 * wide-int.cc (wi_pack): Take the precision as argument and
23347 perform canonicalization here rather than in the callers.
23348 Use the main loop to handle all full-width HWIs. Add a
23349 zero HWI if in_len isn't a full result.
23350 (wi::divmod_internal): Update accordingly.
23351 (wi::mul_internal): Likewise. Simplify.
23352
23353 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
23354 Sebastian Pop <s.pop@samsung.com>
23355
23356 * graphite-poly.c (apply_poly_transforms): Simplify.
23357 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23358 (print_isl_map): Same.
23359 (print_isl_union_map): Same.
23360 (print_isl_schedule): New.
23361 (debug_isl_schedule): New.
23362 * graphite-dependences.c (scop_get_reads): Do not call
23363 isl_union_map_add_map that is undocumented isl functionality.
23364 (scop_get_must_writes): Same.
23365 (scop_get_may_writes): Same.
23366 (scop_get_original_schedule): Remove.
23367 (scop_get_dependences): Do not call isl_union_map_compute_flow that
23368 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
23369 (compute_deps): Remove.
23370 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23371 (debug_schedule_ast): New.
23372 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23373 set_separate_option.
23374 (graphite_regenerate_ast_isl): Add dump.
23375 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23376 from scop->transformed_schedule.
23377 (graphite_regenerate_ast_isl): Add more dump.
23378 * graphite-optimize-isl.c (optimize_isl): Set
23379 scop->transformed_schedule. Check whether schedules are equal.
23380 (apply_poly_transforms): Move here.
23381 * graphite-poly.c (apply_poly_transforms): ... from here.
23382 (free_poly_bb): Static.
23383 (free_scop): Static.
23384 (pbb_number_of_iterations_at_time): Remove.
23385 (print_isl_ast): New.
23386 (debug_isl_ast): New.
23387 (debug_scop_pbb): New.
23388 * graphite-scop-detection.c (print_edge): Move.
23389 (print_sese): Move.
23390 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23391 (build_scop_scattering): Remove.
23392 (create_pw_aff_from_tree): Assert instead of bailing out.
23393 (add_condition_to_pbb): Remove unused code, do not fail.
23394 (add_conditions_to_domain): Same.
23395 (add_conditions_to_constraints): Remove.
23396 (build_scop_context): New.
23397 (add_iter_domain_dimension): New.
23398 (build_iteration_domains): Initialize pbb->iterators.
23399 Call add_conditions_to_domain.
23400 (nested_in): New.
23401 (loop_at): New.
23402 (index_outermost_in_loop): New.
23403 (index_pbb_in_loop): New.
23404 (outermost_pbb_in): New.
23405 (add_in_sequence): New.
23406 (add_outer_projection): New.
23407 (outer_projection_mupa): New.
23408 (add_loop_schedule): New.
23409 (build_schedule_pbb): New.
23410 (build_schedule_loop): New.
23411 (embed_in_surrounding_loops): New.
23412 (build_schedule_loop_nest): New.
23413 (build_original_schedule): New.
23414 (build_poly_scop): Call build_original_schedule.
23415 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
23416 (free_poly_dr): Remove.
23417 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
23418 (free_poly_bb): Remove.
23419 (debug_loop_vec): Remove.
23420 (print_isl_ast): Declare.
23421 (debug_isl_ast): Declare.
23422 (scop_do_interchange): Remove.
23423 (scop_do_strip_mine): Remove.
23424 (scop_do_block): Remove.
23425 (flatten_all_loops): Remove.
23426 (optimize_isl): Remove.
23427 (pbb_number_of_iterations_at_time): Remove.
23428 (debug_scop_pbb): Declare.
23429 (print_schedule_ast): Declare.
23430 (debug_schedule_ast): Declare.
23431 (struct scop): Remove schedule. Add original_schedule,
23432 transformed_schedule.
23433 (free_gimple_poly_bb): Remove.
23434 (print_generated_program): Remove.
23435 (debug_generated_program): Remove.
23436 (unify_scattering_dimensions): Remove.
23437 * sese.c (print_edge): ... here.
23438 (print_sese): ... here.
23439 (debug_edge): ... here.
23440 (debug_sese): ... here.
23441 * sese.h (print_edge): Declare.
23442 (print_sese): Declare.
23443 (dump_edge): Declare.
23444 (dump_sese): Declare.
23445
23446 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
23447 Sebastian Pop <s.pop@samsung.com>
23448
23449 * Makefile.in: Set ISLVER in site.exp.
23450
23451 2016-01-25 Jakub Jelinek <jakub@redhat.com>
23452
23453 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
23454 DECL_VALUE_EXPR of new_var even for the non-array case. Look
23455 through DECL_VALUE_EXPR for expansion.
23456
23457 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
23458
23459 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
23460 the frame info after reload completed.
23461
23462 2016-01-25 Jeff Law <law@redhat.com>
23463
23464 PR tree-optimization/69196
23465 PR tree-optimization/68398
23466 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
23467 tree-ssa-threadupdate.c.
23468 (determine_bb_domination_status): Prototype
23469 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
23470 (determine_bb_domination_status): No longer static.
23471 (valid_jump_thread_path): Remove code to detect characteristics
23472 of the jump thread path not associated with correctness.
23473 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
23474 Correct test for thread path length. Count PHIs for real operands as
23475 statements that need to be copied. Do not count ASSERT_EXPRs.
23476 Look at all the blocks in the thread path. Compute and selectively
23477 filter thread paths based on threading through the latch, threading
23478 a multiway branch or crossing a multiway branch.
23479
23480 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23481
23482 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
23483 decl with __attribute__ ((unused)) annotation.
23484
23485 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
23486
23487 PR target/69421
23488 * tree-vect-stmts.c (vectorizable_condition): Check vectype
23489 of operands is compatible with a statement vectype.
23490
23491 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
23492
23493 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
23494 improve wording for mixed storage order support.
23495
23496 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
23497
23498 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
23499 (vcvt_u64_f64): Likewise.
23500 (vcvta_s64_f64): Likewise.
23501 (vcvta_u64_f64): Likewise.
23502 (vcvtm_s64_f64): Likewise.
23503 (vcvtm_u64_f64): Likewise.
23504 (vcvtn_s64_f64): Likewise.
23505 (vcvtn_u64_f64): Likewise.
23506 (vcvtp_s64_f64): Likewise.
23507 (vcvtp_u64_f64): Likewise.
23508
23509 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
23510
23511 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
23512 (arc_init): Check validity mll64 option.
23513 (arc_save_restore): Use double load/store instruction.
23514 (arc_expand_movmem): Likewise.
23515 (arc_split_move): Don't split if we have double load/store
23516 instructions. Returns a boolean.
23517 (arc_process_double_reg_moves): Change function to return boolean
23518 instead of a sequence of instructions.
23519 (arc_dwarf_register_span): New function.
23520 * config/arc/arc-protos.h (arc_split_move): Change prototype.
23521 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
23522 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
23523 (*movdf_insn): Likewise.
23524 * config/arc/arc.opt (mll64): New option.
23525 * config/arc/predicates.md (even_register_operand): New predicate.
23526 * doc/invoke.texi (ARC Options): Add mll64 documentation.
23527
23528 2016-01-25 Richard Biener <rguenther@suse.de>
23529
23530 PR lto/69393
23531 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
23532 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
23533 DECL_NAMELESS.
23534 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
23535
23536 2016-01-25 Richard Biener <rguenther@suse.de>
23537
23538 PR tree-optimization/69376
23539 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
23540 flag.
23541 (VN_INFO_ANTI_RANGE_P): New inline.
23542 (VN_INFO_RANGE_TYPE): Likewise.
23543 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
23544 SSA_NAME_ANTI_RANGE_P.
23545 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
23546 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23547 Properly query VN_INFO_RANGE_TYPE.
23548
23549 2016-01-25 Nick Clifton <nickc@redhat.com>
23550
23551 PR target/66655
23552 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
23553
23554 2016-01-23 Tom de Vries <tom@codesourcery.com>
23555
23556 PR tree-optimization/69426
23557 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
23558 removed clobber.
23559
23560 2016-01-23 Jakub Jelinek <jakub@redhat.com>
23561
23562 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
23563 "the the" with "the" in the comments.
23564 * ipa-devirt.c (build_type_inheritance_graph,
23565 update_type_inheritance_graph): Likewise.
23566 * tree.c (build_function_type_list_1): Likewise.
23567 * cfgloopmanip.c (scale_loop_profile): Likewise.
23568 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
23569 * gimple-ssa-split-paths.c
23570 (find_block_to_duplicate_for_splitting_paths): Likewise.
23571 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
23572 * expr.c (convert_move): Likewise.
23573 * var-tracking.c (vt_stack_adjustments): Likewise.
23574 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
23575 * tree-vrp.c (test_for_singularity): Likewise.
23576
23577 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
23578 directly instead of building a temporary tree.
23579
23580 PR bootstrap/69434
23581 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
23582 remove <algorithm> include.
23583
23584 2016-01-22 Jakub Jelinek <jakub@redhat.com>
23585
23586 PR target/69432
23587 * config/i386/i386.c: Include dojump.h.
23588 (expand_small_movmem_or_setmem,
23589 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
23590 fixes.
23591 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
23592 if dynamic_check != -1.
23593
23594 2016-01-21 Jeff Law <law@redhat.com>
23595
23596 PR middle-end/69347
23597 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
23598 record_temporary_equivalences. Rewritten to avoid unnecessary calls
23599 into dominated_by_p.
23600 (cprop_into_successor_phis): Avoid unnecessary tests.
23601
23602 2016-01-22 Richard Henderson <rth@redhat.com>
23603
23604 PR target/69416
23605 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
23606 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
23607
23608 2016-01-22 Michael Matz <matz@suse.de>
23609
23610 * system.h (string, algorithm): Include only conditionally.
23611 (new): Include always under C++.
23612 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
23613 * final.c (toplevel): Ditto.
23614 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
23615 * genconditions.c (write_header): Make gencondmd.c define
23616 INCLUDE_STRING.
23617 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
23618
23619 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
23620 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
23621
23622 2016-01-22 Christian Bruel <christian.bruel@st.com>
23623
23624 PR target/68674
23625 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
23626
23627 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23628
23629 PR target/69403
23630 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
23631 define_insn_and_split. Ensure operands[1] and operands[0] do not
23632 get assigned the same register.
23633
23634 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23635
23636 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
23637
23638 2016-01-22 Christian Bruel <christian.bruel@st.com>
23639
23640 * config/arm/arm-c.c (arm_pragma_target_parse):
23641 Remove warn_builtin_macro_redefined overwrite.
23642
23643 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
23644
23645 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
23646 flag_non_call_exceptions compatibility.
23647
23648 2016-01-22 Jakub Jelinek <jakub@redhat.com>
23649
23650 PR debug/66668
23651 * dwarf2out.c (add_child_die_after): New function.
23652 (dwarf_qual_info_t): New type.
23653 (dwarf_qual_info): New variable.
23654 (qualified_die_p): New function.
23655 (modified_type_die): For -fdebug-types-section, ensure
23656 canonical order of qualifiers. Put qualified DIEs adjacent
23657 to the corresponding non-qualified type DIE and search there
23658 for existing qualified DIEs.
23659
23660 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
23661
23662 * doc/extend.texi (scalar_storage_order type attribute): Document
23663 restriction on type punning and aliasing, and remove future tense.
23664
23665 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
23666
23667 PR target/69252
23668 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
23669 first stage.
23670
23671 2016-01-21 Jeff Law <law@redhat.com>
23672
23673 PR middle-end/69347
23674 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
23675 useless call to record_temporary_equivalences.
23676 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
23677 allocate 10 slots in the bb_path vector and let it grow as needed.
23678 (fsm_find_control_statement_thread_paths): Similarly for the next_path
23679 vector.
23680
23681 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
23682
23683 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
23684 Detangle.
23685 * configure: Regenerate.
23686
23687 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
23688
23689 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
23690 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
23691
23692 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
23693
23694 PR middle-end/66178
23695 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
23696 drop EXPAND_INITIALIZER.
23697 * rtl.h (contains_symbolic_reference_p): Declare.
23698 * rtlanal.c (contains_symbolic_reference_p): New function.
23699 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
23700 a subtraction into a NOT if symbolic constants are involved.
23701
23702 2016-01-21 Anton Blanchard <anton@samba.org>
23703 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23704
23705 PR target/63354
23706 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
23707 #define.
23708 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
23709 function.
23710
23711 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
23712
23713 * config/microblaze/microblaze.c
23714 (get_branch_target): New.
23715 (insert_wic_for_ilb_runout): New.
23716 (insert_wic): New.
23717 (microblaze_machine_dependent_reorg): New.
23718 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
23719 * config/microblaze/microblaze.md
23720 (UNSPEC_IPREFETCH): Define.
23721 (iprefetch): New pattern
23722 * config/microblaze/microblaze.opt
23723 (mxl-prefetch): New flag.
23724
23725 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
23726
23727 * config/microblaze/microblaze.h
23728 (FIXED_REGISTERS): Update in macro.
23729 (CALL_USED_REGISTERS): Update in macro.
23730
23731 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
23732
23733 PR rtl-optimization/68920
23734 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23735 moves.
23736
23737 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
23738
23739 PR rtl-optimization/68990
23740 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23741 pseudo instead of inheritance ones.
23742
23743 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23744 Nick Clifton <nickc@redhat.com>
23745
23746 PR target/69129
23747 PR target/69012
23748 * config/mips/mips.c (mips_compute_frame_info): Initialise
23749 args_size and hard_frame_pointer_offset fields of the frame
23750 structure before calling mips_global_pointer.
23751
23752 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
23753
23754 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23755 label reference.
23756 * configure: Regenerate.
23757
23758 2016-01-21 Richard Biener <rguenther@suse.de>
23759
23760 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23761
23762 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
23763
23764 * config/s390/s390.c (s390_asm_declare_function_size): Add code
23765 to actually emit the .size directive.
23766
23767 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
23768 Jakub Jelinek <jakub@redhat.com>
23769
23770 PR target/69187
23771 PR target/65624
23772 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23773 args array size by one to avoid buffer overflow.
23774
23775 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
23776
23777 * config/s390/s390.md (pool_section_start): Use switch_to_section
23778 to select proper read-only data section instead of hardcoding
23779 .rodata.
23780 (pool_section_end): Use switch_to_section to match the above.
23781
23782 2016-01-21 Richard Biener <rguenther@suse.de>
23783
23784 PR tree-optimization/69378
23785 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23786 (set_ssa_val_to): Use it for dominance checks taking into
23787 account not executable edges.
23788
23789 2016-01-21 Jakub Jelinek <jakub@redhat.com>
23790
23791 PR c++/69355
23792 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23793 for bitsize instead of GET_MODE_PRECISION (mode).
23794
23795 2016-01-20 Martin Sebor <msebor@redhat.com>
23796
23797 PR c/52291
23798 * extend.texi (__sync Builtins): Clarify the semantics of
23799 __sync_fetch_and_OP built-ins on pointers.
23800 (__atomic Builtins): Same.
23801
23802 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23803 Sebastian Pop <s.pop@samsung.com>
23804
23805 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23806 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23807 (is_valid_rename): Same.
23808 (translate_isl_ast_to_gimple::get_rename): Same.
23809 (translate_isl_ast_to_gimple::rename_all_uses): Same.
23810 (translate_isl_ast_to_gimple::rename_uses): Same.
23811 (get_new_name): Check for close_phi nodes.
23812 (copy_loop_phi_args): Use phi_node_kind.
23813 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23814 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
23815
23816 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23817 Sebastian Pop <s.pop@samsung.com>
23818
23819 Revert commit r229783.
23820 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
23821 Remove use of parameter_rename_map.
23822 (copy_def): Remove.
23823 (copy_internal_parameters): Remove.
23824 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
23825 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
23826 (free_sese_info): Do not free parameter_rename_map.
23827 (set_rename): Do not use parameter_rename_map.
23828 (rename_uses): Update call to set_rename.
23829 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
23830 * sese.h (parameter_rename_map_t): Remove.
23831 (struct sese_info_t): Remove field parameter_rename_map.
23832
23833 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23834 Sebastian Pop <s.pop@samsung.com>
23835
23836 * graphite-isl-ast-to-gimple.c: Fix comment.
23837 * graphite-scop-detection.c (defined_in_loop_p): New.
23838 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
23839 names defined in loop.
23840
23841 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23842 Sebastian Pop <s.pop@samsung.com>
23843
23844 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
23845 Discard unstructured if-then-else regions.
23846
23847 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23848 Sebastian Pop <s.pop@samsung.com>
23849
23850 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
23851 (cleanup_loop_iter_dom): Remove.
23852 (build_loop_iteration_domains): Remove.
23853 (build_scop_context): Remove.
23854 (build_scop_iteration_domain): Remove.
23855 (add_loop_constraints): New.
23856 (build_iteration_domains): New.
23857 (build_poly_scop): Call build_iteration_domains.
23858
23859 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23860 Sebastian Pop <s.pop@samsung.com>
23861
23862 * graphite-scop-detection.c
23863 (scop_detection::harmful_loop_in_region): Free dom and loops.
23864 (scop_detection::loop_body_is_valid_scop): Free bbs.
23865
23866 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23867 Sebastian Pop <s.pop@samsung.com>
23868
23869 * graphite-scop-detection.c (record_loop_in_sese): New.
23870 (gather_bbs::before_dom_children): Call record_loop_in_sese.
23871 (build_scops): Remove call to build_sese_loop_nests.
23872 * sese.c (sese_record_loop): Remove.
23873 (build_sese_loop_nests): Remove.
23874 (new_sese_info): Remove region->loops.
23875 (free_sese_info): Same.
23876 * sese.h (sese_contains_loop): Same.
23877 (build_sese_loop_nests): Remove.
23878 (sese_contains_loop): Remove.
23879
23880 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23881 Sebastian Pop <s.pop@samsung.com>
23882
23883 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
23884 loop_is_valid_in_scop.
23885 (scop_detection::harmful_stmt_in_region): Renamed
23886 harmful_loop_in_region.
23887 Call loop_is_valid_in_scop.
23888
23889 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23890 Sebastian Pop <s.pop@samsung.com>
23891
23892 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23893 isl_ast_node_mark.
23894
23895 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23896 Sebastian Pop <s.pop@samsung.com>
23897
23898 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23899 * graphite.h (struct poly_bb): Remove field is_reduction.
23900 (PBB_IS_REDUCTION): Remove.
23901
23902 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23903 Sebastian Pop <s.pop@samsung.com>
23904
23905 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23906 (add_pdr_constraints): Same.
23907 (scop_get_reads): Same.
23908 (scop_get_must_writes): Same.
23909 (scop_get_may_writes): Same.
23910 (scop_get_original_schedule): Same.
23911 (extend_schedule): Same.
23912 (apply_schedule_on_deps): Same.
23913 (carries_deps): Same.
23914 (compute_deps): Same.
23915 (scop_get_dependences): Same.
23916 * graphite-isl-ast-to-gimple.c
23917 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23918 * graphite-optimize-isl.c (get_schedule_for_band): Same.
23919 (get_schedule_for_band_list): Same.
23920 (get_schedule_map): Same.
23921 (apply_schedule_map_to_scop): Same.
23922 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23923 (build_loop_iteration_domains): Same.
23924 (add_condition_to_pbb): Same.
23925 (add_param_constraints): Same.
23926 (pdr_add_memory_accesses): Same.
23927 (pdr_add_data_dimensions): Same.
23928
23929 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
23930
23931 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23932 requirements.
23933
23934 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
23935
23936 * common.opt (feliminate-dwarf2-dups): Replace references to
23937 "DWARF 2" with just "DWARF".
23938 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23939 * doc/extend.texi: Likewise.
23940 * doc/cpp.texi: Likewise.
23941 * doc/invoke.texi: Likewise.
23942 (Option Summary): Add -gdwarf to list of Debugging Options.
23943 (Debugging Options): Document -gdwarf.
23944 * doc/contrib.texi: Spell "DWARF" like that.
23945
23946 2016-01-21 Jakub Jelinek <jakub@redhat.com>
23947
23948 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23949 warning. Fix up formatting.
23950
23951 PR middle-end/67653
23952 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23953 attempt to mark memory input operand addressable and
23954 call prepare_gimple_addressable in that case. Don't adjust
23955 input_location for diagnostics, use error_at instead.
23956
23957 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
23958
23959 * config/rs6000/ppc-auxv.h: New file.
23960 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
23961 (cpu_is): Likewise.
23962 (cpu_supports): Likewise.
23963 * config/rs6000/rs6000.c: include "ppc-auxv.h".
23964 (cpu_is_info): New variable.
23965 (cpu_supports_info): Likewise.
23966 (tcb_verification_symbol): Likewise.
23967 (cpu_builtin_p): Likewise.
23968 (cpu_expand_builtin): New function.
23969 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
23970 (rs6000_init_builtins): Likewise.
23971 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
23972 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
23973 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
23974 * configure: Regenerate.
23975 * config.in: Likewise.
23976 * doc/extend.texi (PowerPC Built-in Functions): Document
23977 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
23978
23979 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
23980
23981 PR target/68609
23982 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
23983 domain check.
23984 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
23985 for V4SFmode.
23986
23987 2016-01-20 Richard Henderson <rth@redhat.com>
23988
23989 PR bootstrap/69343
23990 PR bootstrap/69339
23991 PR tree-opt/68964
23992 Revert:
23993 * tree.c (tm_define_builtin): New.
23994 (find_tm_vector_type): New.
23995 (build_tm_vector_builtins): New.
23996 (build_common_builtin_nodes): Call it.
23997
23998 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
23999
24000 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24001 (arm_fp_ok): Likewise.
24002 (arm_fp): Likewise.
24003 (arm_crypto): Likewise.
24004
24005 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24006 Richard Biener <rguenther@suse.de>
24007
24008 PR tree-optimization/69328
24009 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24010 vectors have same number of elements.
24011 (vectorizable_condition): Fix masked version recognition.
24012
24013 2016-01-20 Richard Biener <rguenther@suse.de>
24014
24015 PR tree-optimization/69345
24016 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24017 (VN_INFO_PTR_INFO): Likewise.
24018 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24019 info when it is equal between non-dominating SSA names.
24020 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24021 Make sure to look at original SSA infos.
24022
24023 2016-01-20 Jeff Law <law@redhat.com>
24024
24025 PR target/25114
24026 * config/m68k/predicates.md (pow2_m1_operand): New predicate
24027 extracted from ...
24028 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24029 (pc_or_label_operand): New predicate.
24030 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24031 tests for small integers that are 2^n - 1.
24032
24033 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
24034
24035 * doc/invoke.texi (Options Summary): Add '.' after @xref.
24036
24037 2016-01-19 Jeff Law <law@redhat.com>
24038
24039 PR middle-end/69347
24040 * tree-ssa-threadbackwards.c
24041 (fsm_find_control_statement_thread_paths): Do not try to lookup
24042 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24043
24044 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24045
24046 * doc/lto.texi: Remove text that says only Gold has linker plugin
24047 support.
24048
24049 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
24050
24051 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24052 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24053 the DIE accordingly.
24054 (modified_type_die): Add REVERSE parameter and pass it recursively,
24055 as well as to base_type_die. Adjust presence check accordingly.
24056 (base_type_for_mode): Adjust call to modified_type_die.
24057 (add_type_attribute): Add REVERSE parameter and pass it to
24058 modified_type_die.
24059 (generic_parameter_die): Adjust call to add_type_attribute.
24060 (add_scalar_info): Likewise.
24061 (add_subscript_info): Likewise.
24062 (gen_array_type_die): Likewise.
24063 (gen_descr_array_type_die): Likewise.
24064 (gen_entry_point_die): Likewise.
24065 (gen_enumeration_type_die): Likewise.
24066 (gen_formal_parameter_die): Likewise.
24067 (gen_subprogram_die): Likewise.
24068 (gen_variable_die ): Likewise.
24069 (gen_const_die): Likewise.
24070 (gen_field_die): Likewise.
24071 (gen_pointer_type_die): Likewise.
24072 (gen_reference_type_die): Likewise.
24073 (gen_ptr_to_mbr_type_die): Likewise.
24074 (gen_inheritance_die): Likewise.
24075 (gen_subroutine_type_die): Likewise.
24076 (gen_typedef_die): Likewise.
24077 (force_type_die): Adjust call to modified_type_die.
24078
24079 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
24080
24081 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24082 flow throughout the file. Fix broken link to Objective-C 2.0
24083 documentation.
24084 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24085 errors.
24086
24087 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24088
24089 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24090
24091 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24092
24093 PR ipa/66223
24094 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24095 (maybe_record_node): Record cxa_pure_virtual as the only possible
24096 target if there are not ohter candidates.
24097 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24098
24099 2016-01-19 Richard Biener <rguenther@suse.de>
24100
24101 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24102 (get_memory_order): Likewise.
24103
24104 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
24105
24106 * tree-vect-stmts.c (vectorizable_store): Check
24107 rhs vectype.
24108
24109 2016-01-19 David Malcolm <dmalcolm@redhat.com>
24110
24111 PR jit/68446
24112 * gcc.c (driver::decode_argv): Add call to
24113 init_opts_obstack before init_options_struct.
24114 * opts.c (init_opts_obstack): Remove idempotency.
24115 (init_options_struct): Replace call to init_opts_obstack
24116 with a gcc_assert to verify that it has already been called.
24117 * toplev.c (toplev::main): Add call to init_opts_obstack before
24118 calls to init_options_struct.
24119 (toplev::finalize): Move cleanup of opts_obstack next to
24120 cleanup of save_decoded_options, clearing the latter, and
24121 save_decoded_options_count.
24122
24123 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24124
24125 PR target/69135
24126 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24127 attribute to unconditional. Remove %? from output template.
24128
24129 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24130 Jiong Wang <jiong.wang@arm.com>
24131
24132 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24133 generated from different expand order.
24134
24135 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24136
24137 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24138 Add support for CCMP costing.
24139
24140 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24141
24142 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24143 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24144 (fccmpe<mode>): Likewise.
24145 (fcmp): Rename to fcmp and globalize pattern.
24146 (fcmpe): Likewise.
24147 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24148 (aarch64_gen_ccmp_next): Add FP support.
24149
24150 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24151
24152 * target.def (gen_ccmp_first): Update documentation.
24153 (gen_ccmp_next): Likewise.
24154 * doc/tm.texi (gen_ccmp_first): Update documentation.
24155 (gen_ccmp_next): Likewise.
24156 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24157 expand_ccmp_expr_1. Improve comments.
24158 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24159 (ccmp_ior<mode>): Remove pattern.
24160 (cmp<mode>): Remove expand.
24161 (cmp): Globalize pattern.
24162 (cstorecc4): Use cc_register.
24163 (mov<mode>cc): Remove ccmp_cc_register check.
24164 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24165 Simplify after removal of CC_DNE/* modes.
24166 (aarch64_ccmp_mode_to_code): Remove.
24167 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
24168 In 'k' case use integer as condition.
24169 (aarch64_nzcv_codes): Remove inverted cases.
24170 (aarch64_code_to_ccmode): Remove.
24171 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
24172 comparison with CC register to be used in folowing CCMP/branch/CSEL.
24173 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24174 pattern. Return the comparison with CC register. Invert conditions
24175 when bitcode is OR.
24176 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24177 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24178
24179 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24180
24181 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24182 instrumented_version.
24183
24184 2016-01-19 Richard Biener <rguenther@suse.de>
24185
24186 PR tree-optimization/69336
24187 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24188 handled components with get_ref_base_and_extent.
24189 (equal_mem_array_ref_p): Adjust.
24190
24191 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24192
24193 PR debug/65779
24194 * shrink-wrap.c: Include valtrack.h.
24195 (move_insn_for_shrink_wrap): Add DEBUG argument. If
24196 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24197 in between insn and where it will be moved to. Call
24198 dead_debug_insert_temp.
24199 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
24200 first and dead_debug_local_finish at the end.
24201 For uses and defs bitmap, handle all regs in between REGNO and
24202 END_REGNO, not just the first one.
24203
24204 2016-01-19 Richard Biener <rguenther@suse.de>
24205
24206 PR tree-optimization/69352
24207 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24208 (equal_mem_array_ref_p): Constrain size and max size properly.
24209 Compare the reverse flag.
24210
24211 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
24212
24213 * ira.c (ira): Update regstat data if we deleted insns.
24214
24215 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24216
24217 PR rtl-optimization/68955
24218 PR rtl-optimization/64557
24219 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24220 here. Fix up formatting.
24221 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24222
24223 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24224
24225 PR lto/69133
24226 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24227 assume that the node has body.
24228 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24229 check.
24230
24231 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24232
24233 * lto-streamer-out.c (lto_output): Do not stream instrumentation
24234 thunks.
24235
24236 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24237
24238 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24239 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24240
24241 2016-01-19 Martin Jambor <mjambor@suse.cz>
24242 Martin Liska <mliska@suse.cz>
24243 Michael Matz <matz@suse.de>
24244
24245 * Makefile.in (OBJS): Add new source files.
24246 (GTFILES): Add hsa.c.
24247 * common.opt (disable_hsa): New variable.
24248 (-Whsa): New warning.
24249 * config.in (ENABLE_HSA): New.
24250 * configure.ac: Treat hsa differently from other accelerators.
24251 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24252 $enable_offloading.
24253 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24254 * doc/install.texi (Configuration): Document --with-hsa-runtime,
24255 --with-hsa-runtime-include, --with-hsa-runtime-lib and
24256 --with-hsa-kmt-lib.
24257 * doc/invoke.texi (-Whsa): Document.
24258 (hsa-gen-debug-stores): Likewise.
24259 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24260 to invoke offload compiler for hsa acclerator.
24261 * opts.c (common_handle_option): Determine whether HSA offloading
24262 should be performed.
24263 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24264 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24265 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24266 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24267 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24268 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24269 GF_OMP_FOR_KIND_GRID_LOOP.
24270 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24271 (pp_gimple_stmt_1): Likewise.
24272 * gimple-walk.c (walk_gimple_stmt): Likewise.
24273 * gimple.c (gimple_build_omp_grid_body): New function.
24274 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24275 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24276 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24277 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24278 GF_OMP_TEAMS_GRID_PHONY.
24279 (gimple_statement_omp_single_layout): Updated comments.
24280 (gimple_build_omp_grid_body): New function.
24281 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24282 (gimple_omp_for_grid_phony): New function.
24283 (gimple_omp_for_set_grid_phony): Likewise.
24284 (gimple_omp_parallel_grid_phony): Likewise.
24285 (gimple_omp_parallel_set_grid_phony): Likewise.
24286 (gimple_omp_teams_grid_phony): Likewise.
24287 (gimple_omp_teams_set_grid_phony): Likewise.
24288 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24289 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24290 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24291 (BUILT_IN_GOMP_TARGET): Updated type.
24292 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24293 (adjust_for_condition): New function.
24294 (get_omp_for_step_from_incr): Likewise.
24295 (extract_omp_for_data): Moved parts to adjust_for_condition and
24296 get_omp_for_step_from_incr.
24297 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24298 (fixup_child_record_type): Bail out if receiver_decl is NULL.
24299 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24300 (scan_omp_parallel): Do not create child functions for phony
24301 constructs.
24302 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24303 (scan_omp_1_op): Checking assert we are not remapping to
24304 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
24305 (parallel_needs_hsa_kernel_p): New function.
24306 (expand_parallel_call): Register apprpriate parallel child
24307 functions as HSA kernels.
24308 (grid_launch_attributes_trees): New type.
24309 (grid_attr_trees): New variable.
24310 (grid_create_kernel_launch_attr_types): New function.
24311 (grid_insert_store_range_dim): Likewise.
24312 (grid_get_kernel_launch_attributes): Likewise.
24313 (get_target_argument_identifier_1): Likewise.
24314 (get_target_argument_identifier): Likewise.
24315 (get_target_argument_value): Likewise.
24316 (push_target_argument_according_to_value): Likewise.
24317 (get_target_arguments): Likewise.
24318 (expand_omp_target): Call get_target_arguments instead of looking
24319 up for teams and thread limit.
24320 (grid_expand_omp_for_loop): New function.
24321 (grid_arg_decl_map): New type.
24322 (grid_remap_kernel_arg_accesses): New function.
24323 (grid_expand_target_kernel_body): New function.
24324 (expand_omp): Call it.
24325 (lower_omp_for): Do not emit phony constructs.
24326 (lower_omp_taskreg): Do not emit phony constructs but create for them
24327 a temporary variable receiver_decl.
24328 (lower_omp_taskreg): Do not emit phony constructs.
24329 (lower_omp_teams): Likewise.
24330 (lower_omp_grid_body): New function.
24331 (lower_omp_1): Call it.
24332 (grid_reg_assignment_to_local_var_p): New function.
24333 (grid_seq_only_contains_local_assignments): Likewise.
24334 (grid_find_single_omp_among_assignments_1): Likewise.
24335 (grid_find_single_omp_among_assignments): Likewise.
24336 (grid_find_ungridifiable_statement): Likewise.
24337 (grid_target_follows_gridifiable_pattern): Likewise.
24338 (grid_remap_prebody_decls): Likewise.
24339 (grid_copy_leading_local_assignments): Likewise.
24340 (grid_process_kernel_body_copy): Likewise.
24341 (grid_attempt_target_gridification): Likewise.
24342 (grid_gridify_all_targets_stmt): Likewise.
24343 (grid_gridify_all_targets): Likewise.
24344 (execute_lower_omp): Call grid_gridify_all_targets.
24345 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24346 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24347 (tree_omp_clause): Added union field dimension.
24348 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24349 * tree.c (omp_clause_num_ops): Added number of arguments of
24350 OMP_CLAUSE__GRIDDIM_.
24351 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24352 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24353 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24354 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24355 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24356 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24357 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24358 * tree-pass.h (make_pass_gen_hsail): Declare.
24359 (make_pass_ipa_hsa): Likewise.
24360 * ipa-hsa.c: New file.
24361 * lto-section-in.c (lto_section_name): Add hsa section name.
24362 * lto-streamer.h (lto_section_type): Add hsa section.
24363 * timevar.def (TV_IPA_HSA): New.
24364 * hsa-brig-format.h: New file.
24365 * hsa-brig.c: New file.
24366 * hsa-dump.c: Likewise.
24367 * hsa-gen.c: Likewise.
24368 * hsa.c: Likewise.
24369 * hsa.h: Likewise.
24370 * toplev.c (compile_file): Call hsa_output_brig.
24371 * hsa-regalloc.c: New file.
24372
24373 2016-01-18 Jeff Law <law@redhat.com>
24374
24375 PR tree-optimization/69320
24376 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24377 ranged object, do nothing if the RHS constant is not [0..1].
24378 (optimize_stmt): Comparing a boolean ranged object against a
24379 constant outside [0..1] results in a compile-time constant.
24380
24381 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24382 test.
24383
24384 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
24385
24386 * doc/invoke.texi (Invoking GCC): Add new section to menu.
24387 (Option Summary): Update to reflect new section and moved options.
24388 (C++ Dialect Options): Move -fstats to new section.
24389 (Debugging Options): Move all dump, statistics, and other GCC
24390 developer options to new section. Rewrite section introduction
24391 and re-order remaining options to put the more basic ones first.
24392 (Optimization Options): Move -fira-verbose and -flto-report* to
24393 new section.
24394 (Developer Options): New section incorporating moved options.
24395 * doc/cppopts.texi (-dM): Update cross-reference.
24396
24397 2016-01-18 Richard Henderson <rth@redhat.com>
24398
24399 PR target/69176
24400 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24401 operands to pseudo only if CSE is expected. Split long immediate
24402 operands only after reload, and for the stack pointer.
24403 (*add<GPI>3_pluslong): Remove.
24404 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24405 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
24406 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24407 (*add<GPI>3 peepholes): New.
24408 (*add<GPI>3 splitters): New.
24409 * config/aarch64/constraints.md (Upl): New.
24410 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
24411
24412 2016-01-18 Richard Biener <rguenther@suse.de>
24413
24414 PR tree-optimization/69297
24415 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
24416 stmt at most once.
24417 (vect_bb_vectorization_profitable_p): Clear visited flag again.
24418
24419 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
24420
24421 PR middle-end/68542
24422 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
24423 of mixind vector and scalar types.
24424 (fold_relational_const): Add handling of vector
24425 comparison with boolean result.
24426 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
24427 comparison of vector operands with boolean result for EQ/NE only.
24428 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
24429 (verify_gimple_cond): Likewise.
24430 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
24431 valid type of VAL.
24432
24433 2016-01-18 Joseph Myers <joseph@codesourcery.com>
24434
24435 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
24436 !TARGET_OCTEON.
24437
24438 2016-01-18 Richard Biener <rguenther@suse.de>
24439
24440 PR middle-end/69308
24441 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
24442
24443 2016-01-18 Tom de Vries <tom@codesourcery.com>
24444
24445 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
24446
24447 2016-01-18 Tom de Vries <tom@codesourcery.com>
24448
24449 * omp-low.c (set_oacc_fn_attrib): Make extern.
24450 * omp-low.h (set_oacc_fn_attrib): Declare.
24451 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
24452 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
24453 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
24454 Add and handle function parameter oacc_kernels_p.
24455 (find_reduc_addr, get_omp_data_i_param): New function.
24456 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
24457 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
24458 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
24459 Calculate dominance info. Skip loops that are not in a kernels region
24460 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
24461 (pass_parallelize_loops::execute): Call parallelize_loops with
24462 oacc_kernels_p argument.
24463 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
24464 New member function.
24465 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
24466 * passes.def: Add argument to pass_parallelize_loops instantation.
24467
24468 2016-01-18 Tom de Vries <tom@codesourcery.com>
24469
24470 * tree-parloops.c (pass_parallelize_loops::execute): Allow
24471 pass_parallelize_loops to be run outside the loop pipeline.
24472
24473 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24474
24475 * tree-scalar-evolution.c (follow_copies_to_constant): New.
24476 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
24477
24478 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24479
24480 PR target/63679
24481 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
24482 using get_ref_base_and_extent.
24483 (equal_mem_array_ref_p): New.
24484 (hashable_expr_equal_p): Add call to previous.
24485
24486 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24487
24488 PR target/63679
24489 * tree-sra.c (disqualified_constants, constant_decl_p): New.
24490 (sra_initialize): Allocate disqualified_constants.
24491 (sra_deinitialize): Free disqualified_constants.
24492 (disqualify_candidate): Update disqualified_constants when appropriate.
24493 (create_access): Scan for constant-pool entries as we go along.
24494 (scalarizable_type_p): Add check against type_contains_placeholder_p.
24495 (maybe_add_sra_candidate): Allow constant-pool entries.
24496 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
24497 (initialize_constant_pool_replacements): New.
24498 (sra_modify_assign): Avoid mangling assignments created by previous,
24499 and don't generate writes into constant pool.
24500 (sra_modify_function_body): Call initialize_constant_pool_replacements.
24501
24502 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24503
24504 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
24505 andnot instruction.
24506 (scalar_chain::convert_op): Likewise.
24507 * config/i386/i386.md (*andndi3_doubleword): New.
24508
24509 2016-01-18 Richard Biener <rguenther@suse.de>
24510
24511 PR tree-optimization/69170
24512 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
24513 building a vector from scalar results of a pattern stmt.
24514
24515 2016-01-18 Jakub Jelinek <jakub@redhat.com>
24516
24517 * haifa-sched.c (autopref_multipass_init): Work around
24518 -Wmaybe-uninitialized warning.
24519
24520 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
24521
24522 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
24523 against the constant 0.
24524
24525 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24526
24527 PR tree-optimization/68799
24528 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
24529 look up phi candidates in the statement-candidate map.
24530 (phi_add_costs): Likewise.
24531 (record_phi_increments): Likewise.
24532 (phi_incr_cost): Likewise.
24533 (ncd_with_phi): Likewise.
24534 (all_phi_incrs_profitable): Likewise.
24535
24536 2016-01-17 Jakub Jelinek <jakub@redhat.com>
24537
24538 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
24539 -Wmaybe-uninitialized warning.
24540
24541 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
24542
24543 * doc/invoke.texi (Invoking GCC): Add new section to menu.
24544 (Option Summary): Update to reflect new section and moved options.
24545 (C++ Dialect Options): Move -fvtable-verify and related options.
24546 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
24547 and profiling-related options.
24548 (Optimization Options): Move profile generation options and
24549 -fstack-protector and related options.
24550 (Instrumentation Options): New section incorporating moved options.
24551 (Code Generation Options): Move -finstrument-functions and
24552 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
24553
24554 2016-01-16 Tom de Vries <tom@codesourcery.com>
24555
24556 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
24557
24558 2016-01-16 Tom de Vries <tom@codesourcery.com>
24559
24560 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
24561
24562 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
24563
24564 * hash-table.h (hash_table::empty): Turn into an inline wrapper
24565 that checks whether the table is already empty. Rename the
24566 original implementation to...
24567 (hash_table::empty_slot): ...this new private function.
24568
24569 2016-01-15 David Malcolm <dmalcolm@redhat.com>
24570
24571 PR diagnostic/68899
24572 * diagnostic-show-locus.c (layout::print_source_line): Move x
24573 offset of line until after call to
24574 get_line_width_without_trailing_whitespace.
24575
24576 2016-01-15 Jeff Law <law@redhat.com>
24577
24578 PR tree-optimization/69270
24579 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
24580 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
24581 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
24582 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
24583 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24584 ssa_name_has_boolean_range and constant_boolean_node.
24585
24586 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
24587
24588 PR rtl-optimization/69030
24589 * lra-spills.c (remove_pseudos): Check nrefs and make the function
24590 returning bool.
24591 (spill_pseudos): Delete debug insn for dead pseudo.
24592 (lra_spill): Initiate spill_hard_reg and slots memory separately.
24593
24594 2016-01-15 Jiong Wang <jiong.wang@arm.com>
24595
24596 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
24597 New.
24598 (TYPES_UNOPUS): Likewise.
24599 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
24600 builtin type, from UNOP to UNOPUS.
24601 (lbtruncuv4sf): Likewise.
24602 (lbtruncuv2df): Likewise.
24603 (lrounduv2sf): Likewise.
24604 (lrounduv4sf): Likewise.
24605 (lrounduv2df): Likewise.
24606 (lroundusf): Likewise.
24607 (lroundusf): Likewise.
24608 (lceiluv2sf): Likewise.
24609 (lceiluv4sf): Likewise.
24610 (lceiluv2df): Likewise.
24611 (lceilusf): Likewise.
24612 (lceiludf): Likewise.
24613 (lflooruv2sf): Likewise.
24614 (lflooruv4sf): Likewise.
24615 (lflooruv2df): Likewise.
24616 (lfloorusf): Likewise.
24617 (lfloorudf): Likewise.
24618 (lfrintnuv2sf): Likewise.
24619 (lfrintnuv4sf): Likewise.
24620 (lfrintnuv2df): Likewise.
24621 (lfrintnusf): Likewise.
24622 (lfrintnudf): Likewise.
24623 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
24624 conversion.
24625 (vcvtq_u32_f32): Likewise.
24626 (vcvtq_u64_f64): Likewise.
24627 (vcvta_u32_f32): Likewise.
24628 (vcvtaq_u32_f32): Likewise.
24629 (vcvtaq_u64_f64): Likewise.
24630 (vcvtm_u32_f32): Likewise.
24631 (vcvtmq_u32_f32): Likewise.
24632 (vcvtmq_u64_f64): Likewise.
24633 (vcvtn_u32_f32): Likwise.
24634 (vcvtnq_u32_f32): Likewise.
24635 (vcvtnq_u64_f64): Likewise.
24636 (vcvtp_u32_f32): Likewise.
24637 (vcvtpq_u32_f32): Likewise.
24638 (vcvtpq_u64_f64): Likewise.
24639 (vcvtmd_u64_f64): Likewise.
24640 (vcvtms_u32_f32): Likewise.
24641 (vcvtad_u64_f64): Likewise.
24642 (vcvtas_u32_f32): Likewise.
24643 (vcvtnd_u64_f64): Likewise.
24644 (vcvtns_u32_f32): Likewise.
24645 (vcvtpd_u64_f64): Likewise.
24646 (vcvtps_u32_f32): Likewise.
24647
24648 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24649
24650 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
24651 CSEL of zero_extended registers.
24652
24653 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24654
24655 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24656 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
24657
24658 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24659
24660 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
24661 false when argument string is not found in the attributes table
24662 at all.
24663
24664 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
24665
24666 PR target/68609
24667 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
24668 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
24669 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
24670 precision estimate.
24671
24672 2016-01-15 Richard Biener <rguenther@suse.de>
24673
24674 PR tree-optimization/66856
24675 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
24676 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
24677 (vect_create_new_slp_node): Increment stmt reference count.
24678 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
24679 an SLP tree before swapping operands.
24680 (vect_build_slp_tree): Likewise.
24681 (destroy_bb_vec_info): Free stmt info after SLP instances.
24682 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
24683 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
24684 (STMT_VINFO_NUM_SLP_USES): New macro.
24685
24686 2016-01-15 Richard Biener <rguenther@suse.de>
24687
24688 PR debug/69137
24689 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
24690 (add_linkage_name): ... here.
24691 (gen_typedef_die): Use add_linkage_name_raw instead of
24692 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
24693 if necessary.
24694
24695 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
24696
24697 * gimplify.c (oacc_default_clause): Decode reference and pointer
24698 types for both kernels and parallel regions.
24699
24700 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
24701
24702 PR middle-end/69246
24703 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
24704
24705 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24706
24707 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
24708 (convert_scalars_to_vector): Likewise.
24709
24710 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
24711
24712 * doc/extend.texi (Type Traits): Fix grammar.
24713
24714 2016-01-15 Martin Jambor <mjambor@suse.cz>
24715
24716 * tree-inline.c (remap_decl): Use existing dclarations if
24717 remapping a type and prevent_decl_creation_for_types.
24718 (replace_locals_stmt): Do an initial remapping of non-VLA typed
24719 decls first. Do real remapping with
24720 prevent_decl_creation_for_types set.
24721 * tree-inline.h (copy_body_data): New field
24722 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
24723 padding.
24724
24725 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
24726
24727 * config/s390/s390.opt (mmvcle): More verbose help text.
24728
24729 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
24730
24731 * config/s390/s390.opt: Add period to -mzvector option text.
24732
24733 2016-01-15 Richard Biener <rguenther@suse.de>
24734
24735 PR tree-optimization/68961
24736 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24737 of invariants in stores again.
24738
24739 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
24740
24741 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24742
24743 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24744
24745 * config/i386/i386.c (ix86_expand_branch): Don't split
24746 DI mode xor instruction to SI mode.
24747
24748 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
24749
24750 PR ipa/68148
24751 * ipa-icf.c (sem_function::merge): Virtual functions may become
24752 reachable even if they address is not taken and there are no
24753 idrect calls.
24754
24755 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
24756
24757 * lto-streamer-out.c (subtract_estimated_size): New function.
24758 (get_symbol_initial_value): Use it.
24759
24760 2016-01-15 Christian Bruel <christian.bruel@st.com>
24761
24762 PR target/65837
24763 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24764 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24765 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24766 use add_builtin_function_ext_scope instead of add_builtin_function.
24767 (neon_set_p, neon_crypto_set_p): Remove.
24768 (arm_init_builtins): Always call arm_init_neon_builtins and
24769 arm_init_crypto_builtins.
24770 (arm_expand_builtin): Check that builtins are allowed for the arch.
24771 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24772 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24773 arm_init_neon_builtins call.
24774
24775 2016-01-15 Richard Biener <rguenther@suse.de>
24776
24777 PR tree-optimization/69117
24778 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24779 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24780 of the leader conservatively.
24781 (free_scc_vn): Restore original SSA name infos.
24782
24783 2016-01-14 Jeff Law <law@redhat.com>
24784
24785 PR tree-optimization/69270
24786 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24787 single bit of precision, verify it's also unsigned.
24788 (record_edge_info): Use constant_boolean_node rather than fold_convert
24789 to convert boolean_true/boolean_false to the right type.
24790
24791 2016-01-14 Richard Henderson <rth@redhat.com>
24792
24793 PR rtl-opt/69014
24794 * loop-doloop.c (record_reg_sets): New.
24795 (doloop_optimize): Reject the transform if the sequence
24796 clobbers registers live at the end of the loop block.
24797 (doloop_optimize_loops): Enable df_live if needed.
24798
24799 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24800
24801 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24802 * config/rs6000/rs6000.c: Likewise.
24803 * config/rs6000/rs6000.h: Likewise.
24804 * config/rs6000/rs6000.md: Likewise.
24805 * doc/extend.texi: Likewsie.
24806
24807 2016-01-14 Jeff Law <law@redhat.com>
24808
24809 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24810 typo.
24811
24812 2016-01-14 Richard Henderson <rth@redhat.com>
24813
24814 PR c/69272
24815 PR tree-opt/68964
24816 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
24817 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
24818 instead of builtin_decl_declared_p to test for declaration.
24819
24820 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
24821
24822 * doc/loop.texi (Loop Analysis and Representation): Document
24823 loop_depth function.
24824
24825 2016-01-14 Tom de Vries <tom@codesourcery.com>
24826
24827 PR tree-optimization/68773
24828 * omp-low.c (expand_omp_target): Don't set force_output.
24829 * varpool.c (varpool_node::get_create): Same.
24830 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
24831 offload_funcs with force_output.
24832
24833 2016-01-14 Jakub Jelinek <jakub@redhat.com>
24834
24835 PR debug/69244
24836 * lra-eliminations.c (move_plus_up): Don't change anything if either
24837 the outer or inner subreg mode is not MODE_INT.
24838 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
24839 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
24840
24841 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
24842
24843 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
24844 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
24845 reduc_uplus_@var{m}): Remove.
24846 * expr.c (expand_expr_real_2): Remove expansion path for
24847 reduc_[us](min|max|plus) optabs.
24848 * optabs-tree.c (scalar_reduc_to_vector): Remove.
24849 * optabs-tree.h (scalar_reduc_to_vector): Remove.
24850 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
24851 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
24852 * tree-vect-loop.c (vectorizable_reduction): Remove test for
24853 reduc_[us](min|max|plus) optabs.
24854
24855 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
24856
24857 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
24858 (reduc_plus_scal_v2sf): New.
24859 (reduc_smax_v2sf): Rename to...
24860 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
24861 (reduc_smin_v2sf): Rename to...
24862 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
24863
24864 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
24865
24866 * alias.c (compare_base_symbol_refs): New function.
24867 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
24868 it.
24869
24870 2016-01-14 Jakub Jelinek <jakub@redhat.com>
24871
24872 PR middle-end/68146
24873 PR tree-optimization/69155
24874 * tree-complex.c: Include cfganal.h.
24875 (phis_to_revisit): New variable.
24876 (extract_component): Add phiarg_p argument. Assert that returned
24877 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
24878 (update_phi_components): Partly rewrite to use loop over real/imag
24879 components instead of code duplication. If extract_component returns
24880 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
24881 create_tmp_reg into the PHI node instead, and mention the phi triplet
24882 in phis_to_revisit.
24883 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
24884 in phis_to_revisit at the end.
24885
24886 2016-01-14 Richard Biener <rguenther@suse.de>
24887
24888 PR tree-optimization/68060
24889 * tree-vect-loop.c (vect_is_simple_reduction): Check the
24890 outer loop reduction is only used in the inner loop before
24891 detecting a double reduction.
24892
24893 2016-01-14 Jakub Jelinek <jakub@redhat.com>
24894
24895 PR target/68269
24896 * combine.c (expand_field_assignment): Punt if compute_mode is
24897 unsupported scalar mode.
24898
24899 2016-01-14 Richard Biener <rguenther@suse.de>
24900
24901 PR tree-optimization/66856
24902 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24903 SLP node only if it built successfully.
24904 (vect_analyze_slp_instance): Adjust.
24905
24906 2016-01-14 Jeff Law <law@redhat.com>
24907
24908 PR tree-optimization/69270
24909 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24910 (record_edge_info): Use it. Convert boolean_{true,false}_node
24911 to the type of op0.
24912
24913 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
24914
24915 PR ipa/66487
24916 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24917 use block_ultimate_origin
24918 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24919
24920 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
24921
24922 * doc/invoke.texi (Submodel Options): Rename section to
24923 "Machine-Dependent Options" to better reflect its content.
24924 Rewrite introductory text to remove archaic CPU names.
24925 Update references.
24926
24927 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
24928
24929 * doc/invoke.texi (Code Gen Options): Move section up in file,
24930 before target-specific options. Update menu and option summary
24931 to reflect the new section ordering.
24932
24933 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
24934
24935 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24936 (C++ Dialect Options): Add cross-reference to -std option.
24937 * doc/standards.texi (C++ Language): Document C++14 support.
24938
24939 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24940
24941 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24942 for pack/unpack functions for __ibm128.
24943 (PACK_IF): Likewise.
24944 (UNPACK_IF): Likewise.
24945
24946 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24947 support for __ibm128 pack/unpack functions.
24948 (rs6000_invalid_builtin): Likewise.
24949 (rs6000_init_builtins): Likewise.
24950 (rs6000_opt_masks): Likewise.
24951
24952 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24953 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24954 functions
24955 (RS6000_BTM_COMMON): Likewise.
24956
24957 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
24958 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
24959 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
24960 128-bit floating point. Add support for the double values to be
24961 in Altivec registers for TF/IF packing and unpacking, but restrict
24962 TD packing sub-fields to be FPR registers. Don't allow overlapped
24963 register support for packing. Allow pack inputs to be memory
24964 locations. Don't build generator functions for unpack<mode>_dm
24965 and unpack<mode>_nodm.
24966 (unpack<mode>_dm): Likewise.
24967 (unpack<mode>_nodm): Likewise.
24968 (pack<mode>): Likewise.
24969
24970 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
24971 built-in functions to pack/unpack explicit __ibm128 values.
24972 (__builtin_unpack_ibm128): Likewise.
24973
24974 * doc/extend.texi (PowerPC Built-in Functions): Document
24975 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
24976
24977 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
24978
24979 PR c/66208
24980 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
24981 Add new arg loc and pass it down as context.
24982 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
24983 to the location to use for the warning.
24984 (check_function_arguments): New arg loc. All callers changed. Pass
24985 it to check_function_nonnull.
24986 * c-common.h (check_function_arguments): Adjust declaration.
24987
24988 2016-01-13 Jakub Jelinek <jakub@redhat.com>
24989
24990 PR tree-optimization/69156
24991 * gimple.c (validate_type): Removed.
24992 (gimple_builtin_call_types_compatible_p): Use
24993 useless_type_conversion_p instead of validate_type.
24994 * value-prof.c (gimple_stringop_fixed_value): Fold
24995 icall_size to correct type.
24996
24997 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
24998
24999 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25000 effects.
25001
25002 2016-01-13 Richard Henderson <rth@redhat.com>
25003
25004 PR tree-opt/68964
25005 * target.def (builtin_tm_load, builtin_tm_store): Remove.
25006 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25007 (ix86_builtin_tm_store): Remove.
25008 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25009 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25010 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25011 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25012 * doc/tm.texi: Rebuild.
25013
25014 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25015 (BUILT_IN_TM_MEMCPY_RTWN): New.
25016 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25017 fallback from vector to integer helpers.
25018 (build_tm_load): Handle vector types directly, instead of
25019 via target hook.
25020 (build_tm_store): Likewise.
25021 (expand_assign_tm): Prepare for register types not handled by
25022 the above. Copy them to memory and use memcpy.
25023 * tree.c (tm_define_builtin): New.
25024 (find_tm_vector_type): New.
25025 (build_tm_vector_builtins): New.
25026 (build_common_builtin_nodes): Call it.
25027
25028 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
25029
25030 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25031 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
25032
25033 2016-01-13 Tom de Vries <tom@codesourcery.com>
25034
25035 PR tree-optimization/69169
25036 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25037 handled_struct_type param.
25038 (create_variable_info_for, intra_create_variable_infos): Call
25039 create_variable_info_for_1 with extra arg.
25040
25041 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
25042
25043 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25044 and "armv8.1-a+crc" entries.
25045
25046 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
25047
25048 PR target/69228
25049 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25050 Change first operand predicate from register_or_constm1_operand
25051 to register_operand.
25052 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25053 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25054 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25055 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25056 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25057 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25058 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25059 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25060 comparison with constm1_rtx from vec_prefetch_gen part.
25061
25062 2016-01-13 Richard Biener <rguenther@suse.de>
25063
25064 PR tree-optimization/69013
25065 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25066 Exchange assert for a test.
25067
25068 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25069
25070 PR target/69247
25071 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25072
25073 2016-01-13 Richard Biener <rguenther@suse.de>
25074
25075 PR tree-optimization/69242
25076 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25077 assert with a check.
25078
25079 2016-01-13 Richard Biener <rguenther@suse.de>
25080
25081 PR tree-optimization/69186
25082 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25083 Properly guard vect_update_misalignment_for_peel call.
25084
25085 2016-01-12 Jeff Law <law@redhat.com>
25086
25087 PR tree-optimization/pr67755
25088 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25089 "need_profile_correction".
25090 (thread_block_1): Initialize new field to false by default. If we
25091 have multiple thread paths through a common joiner to different
25092 final targets, then set new field to true.
25093 (compute_path_counts): Only do count adjustment when it's really
25094 needed.
25095
25096 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25097
25098 * doc/invoke.texi (Spec Files): Move section down in file, past
25099 all command-line option descriptions.
25100
25101 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25102
25103 PR middle-end/54809
25104 * doc/gty.texi: Remove documentation of mark_hook.
25105 * gengtype.c (struct write_types_data): Remove code to support
25106 mark_hook attribute.
25107 (walk_type): Likewise.
25108 (write_func_for_structure): Likewise.
25109
25110 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25111
25112 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25113 Directory Options, and -specs= to Overall Options.
25114 (Overall Options): Adjust similarly. Reorder to group related
25115 options together. Make -specs= cross-reference the spec file details.
25116 (Directory Options): Adjust similarly.
25117
25118 2016-01-12 Jeff Law <law@redhat.com>
25119
25120 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25121
25122 2016-01-12 Olivier Hainque <hainque@adacore.com>
25123
25124 * gcc.c (spec_undefvar_allowed): New global.
25125 (process_command): Set to true when running for --version or --help,
25126 alone or together.
25127 (getenv_spec_function): When the variable is not defined, use the
25128 variable name as the variable value if we're allowed not to issue
25129 a fatal error.
25130
25131 2016-01-12 Bin Cheng <bin.cheng@arm.com>
25132
25133 PR tree-optimization/68911
25134 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25135 information computed for expression "init + nit * step".
25136
25137 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25138
25139 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
25140 about name of GCC executable. Remove deleted node from menu.
25141 (Directory Options) <-B>: Remove cross-reference to deleted node.
25142 (Target Options): Delete section.
25143
25144 2016-01-12 Christian Bruel <christian.bruel@st.com>
25145
25146 PR target/69180
25147 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25148 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25149
25150 2016-01-12 Jakub Jelinek <jakub@redhat.com>
25151
25152 PR target/69198
25153 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25154 aligned_mem is properly set for AVX512-VL floating point masked
25155 stores.
25156
25157 PR target/69175
25158 * ifcvt.c (cond_exec_process_if_block): When removing the last
25159 insn from then_bb, remove also any possible barriers that follow it.
25160
25161 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
25162
25163 PR target/68456
25164 PR target/69226
25165 * config/i386/iamcu.h (SIZE_TYPE): New macro.
25166 (PTRDIFF_TYPE): Likewise.
25167 (WCHAR_TYPE): Likewise.
25168 (WCHAR_TYPE_SIZE): Likewise.
25169 (STDINT_LONG32): Likewise.
25170
25171 2016-01-12 Richard Biener <rguenther@suse.de>
25172
25173 PR tree-optimization/69053
25174 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25175 convert initial value for cond reductions.
25176
25177 2016-01-12 Richard Biener <rguenther@suse.de>
25178
25179 PR tree-optimization/69007
25180 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25181 widen_sum after dot_prod and sad.
25182
25183 2016-01-12 Richard Biener <rguenther@suse.de>
25184
25185 PR tree-optimization/69168
25186 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25187 pattern stmt SLP type.
25188 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25189 end up unused so cope with that case.
25190
25191 2016-01-12 Richard Biener <rguenther@suse.de>
25192
25193 PR tree-optimization/69157
25194 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25195 stmts def type only during analyze phase.
25196 (vectorizable_call): Likewise.
25197 (vectorizable_simd_clone_call): Likewise.
25198 (vectorizable_conversion): Likewise.
25199 (vectorizable_assignment): Likewise.
25200 (vectorizable_shift): Likewise.
25201 (vectorizable_operation): Likewise.
25202 (vectorizable_store): Likewise.
25203 (vectorizable_load): Likewise.
25204
25205 2016-01-12 Richard Biener <rguenther@suse.de>
25206
25207 PR tree-optimization/69174
25208 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25209 space.
25210 (vectorizable_load): Properly compute the number of loads needed
25211 for permuted strided SLP loads and do not spuriously assign
25212 to SLP_TREE_VEC_STMTS.
25213
25214 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
25215
25216 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25217 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25218 (MD_EXEC_PREFIX): Remove.
25219 (MD_STARTFILE_PREFIX) Removee.
25220 (FILE_NAME_ABSOLUTE_P): Remove.
25221 (CPP_SPEC): Do not read macros from sys/version.h.
25222 (LINK_COMMAND_SPEC): Remove.
25223 (LOCAL_INCLUDE_DIR): Remove.
25224 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25225 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25226 (POST_LINK_SPEC): Define to invoke stubify after linker
25227 (LIBSTDCXX): Remove define
25228 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25229 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25230 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25231 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25232 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25233 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25234 (i386_djgpp_asm_named_section): Add propotype of new procedure
25235
25236 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25237 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25238 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25239 in config/i386/djgpp.h).
25240 (STANDARD_STARTFILE_PREFIX_2): Define identical to
25241 STANDARD_STARTFILE_PREFIX_1.
25242 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25243 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25244 installation errors.
25245 (MAX_OFILE_ALIGNMENT): Define to 128.
25246 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25247
25248 * config/i386/djgpp.c: New file. Add implementation of
25249 i386_djgpp_asm_named_section.
25250
25251 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25252
25253 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25254 Add rule for building djgpp.o.
25255
25256 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25257
25258 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25259 (rtx_is_swappable_p): Reductions are swappable.
25260 (insn_is_swappable_p): V2DF reductions are swappable.
25261
25262 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
25263
25264 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25265 reloads for other unsupported memory operands.
25266
25267 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25268 Jim Wilson <jim.wilson@linaro.org>
25269
25270 PR target/69194
25271 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25272 copy_to_mode_reg instead of force_reg.
25273
25274 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25275
25276 PR target/69225
25277 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25278 TARGET_80387 is true.
25279
25280 2016-01-11 Jakub Jelinek <jakub@redhat.com>
25281
25282 PR target/69071
25283 * lra-eliminations.c (move_plus_up): Only move plus up
25284 if subreg of the constant can be simplified into constant
25285 and use the simplified subreg of the constant instead of
25286 the original constant.
25287
25288 * fold-const.c (fold_convertible_p): Don't return true
25289 for conversion of VECTOR_TYPE to same sized integral type.
25290 (fold_convert_loc): Fix up formatting. Fold conversion of
25291 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25292 instead of NOP_EXPR.
25293
25294 PR tree-optimization/69214
25295 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25296 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25297 Formatting fix.
25298
25299 PR tree-optimization/69207
25300 * tree-vect-slp.c (vect_get_constant_vectors): For
25301 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25302 fold_convertible_p to vector_type's element type, and always
25303 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25304
25305 2016-01-11 Richard Biener <rguenther@suse.de>
25306
25307 PR tree-optimization/69173
25308 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25309 fixup the cycle if all stmts are in a pattern.
25310
25311 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
25312
25313 PR middle-end/68999
25314 * alias.c (base_alias_check): Move check for addresses with
25315 alignment ANDs before the call for compare_base_decls.
25316 (memrefs_conflict_p): Return -1 for different decls
25317 that went through alignment adjustments.
25318
25319 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25320
25321 PR rtl-optimization/68796
25322 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25323 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25324 and QImode comparisons against zero with CC_NZmode.
25325 * config/aarch64/iterators.md (short_mask): New mode_attr.
25326
25327 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25328
25329 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25330 (<avx512>_store<mode>_mask): Likewise.
25331
25332 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
25333 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25334
25335 PR rtl-optimization/68841
25336 * ifcvt.c (struct noce_if_info): Add orig_x field.
25337 (bbs_ok_for_cmove_arith): Add to_rename parameter.
25338 Don't record conflicts on to_rename if it's present.
25339 Allow memory destinations in sets.
25340 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25341 blocks, passing orig_x to the checks.
25342 (noce_process_if_block): Set if_info->orig_x appropriately.
25343
25344 2016-01-11 Tom de Vries <tom@codesourcery.com>
25345
25346 PR tree-optimization/69069
25347 * tree-parloops.c (create_parallel_loop): Add missing phi args.
25348
25349 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
25350
25351 PR rtl-optimization/68920
25352 * config/i386/i386.c (ix86_option_override_internal): Restrict number
25353 of conditional moves for RTL if-conversion to 1 for
25354 TARGET_ONE_IF_CONV_INSN.
25355 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25356 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25357 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25358 parameter to restirct number of conditional moves for
25359 RTL if-conversion.
25360 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25361 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25362 conditionl moves.
25363
25364 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
25365
25366 PR bootstrap/69123
25367 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25368 onepart vars. Fix typo in comment. Fix reversed condition in
25369 unshare test.
25370 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25371
25372 PR bootstrap/69123
25373 * var-tracking.c (dump_onepart_variable_differences): New.
25374 (dataflow_set_different): If a detailed dump is requested,
25375 delay early returns and dump differences between onepart
25376 variables present before and after, and added variables.
25377
25378 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
25379
25380 PR target/69010
25381 * expr.c (expand_expr_real_1): For boolean vector constants
25382 with a scalar mode use const_scalar_mask_from_tree.
25383 (const_scalar_mask_from_tree): New.
25384 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25385 assigned to a mask type to handle constants.
25386
25387 2016-01-11 Martin Jambor <mjambor@suse.cz>
25388
25389 PR ipa/69044
25390 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25391 useless parameters if we cannot change function signature.
25392
25393 2016-01-11 Martin Jambor <mjambor@suse.cz>
25394
25395 PR ipa/66616
25396 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25397 flag.
25398
25399 2016-01-11 Tom de Vries <tom@codesourcery.com>
25400
25401 PR tree-optimization/69109
25402 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25403 latch with phi.
25404
25405 2016-01-11 Tom de Vries <tom@codesourcery.com>
25406
25407 PR tree-optimization/69108
25408 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
25409 res is not used in a phi.
25410
25411 2016-01-11 Yury Gribov <y.gribov@samsung.com>
25412
25413 PR 67425
25414 * common.opt (frandom-seed): Fix parameter name.
25415 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
25416
25417 2016-01-11 Tom de Vries <tom@codesourcery.com>
25418
25419 PR tree-optimization/69058
25420 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
25421 not supported.
25422
25423 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
25424
25425 * config/arc/arc.opt (mdiv-rem): Add period to the end.
25426 (mcode-density): Likewise.
25427
25428 2016-01-10 Tom de Vries <tom@codesourcery.com>
25429
25430 PR tree-optimization/69062
25431 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
25432 (parallelize_loops): Don't paralelize loop that has phi with address
25433 arg.
25434
25435 2016-01-10 Tom de Vries <tom@codesourcery.com>
25436
25437 PR tree-optimization/69039
25438 * tree-parloops.c (try_create_reduction_list): Only allow single exit
25439 phi for reduction.
25440
25441 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
25442
25443 PR middle-end/68743
25444 * match.pd: Require target has function_c99_misc before doing
25445 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
25446
25447 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
25448
25449 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
25450 use GMPINC.
25451 * configure: Regenerate.
25452
25453 2016-01-09 Jakub Jelinek <jakub@redhat.com>
25454
25455 PR middle-end/50865
25456 PR tree-optimization/69097
25457 * fold-const.h (expr_not_equal_to): New prototype.
25458 * fold-const.c: Include stringpool.h and tree-ssanames.h.
25459 (expr_not_equal_to): New function.
25460 * match.pd (X % -Y is the same as X % Y): Don't optimize
25461 unless X is known not to be equal to minimum or Y is known
25462 not to be equal to -1.
25463 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
25464 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
25465 (simplify_stmt_using_ranges): Adjust caller.
25466 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
25467 substitute_and_fold.
25468
25469 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
25470
25471 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
25472 w/o DECL_NAME.
25473
25474 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25475
25476 PR tree-optimization/69167
25477 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
25478 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
25479 ops[0] comparison.
25480 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
25481
25482 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
25483 Richard Biener <rguenther@suse.de>
25484
25485 PR tree-optimization/68707
25486 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
25487 instances that can be handled via vect_load_lanes.
25488
25489 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
25490
25491 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
25492 if we can't determine address equivalence.
25493 * alias.c (compare_base_decl): Update for changed return value of
25494 symtab_node::equal_address_to.
25495
25496 2016-01-08 Jason Merrill <jason@redhat.com>
25497
25498 PR c++/68983
25499 PR c++/67557
25500 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
25501 * expr.c (store_field): Not here.
25502 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
25503 call with TREE_ADDRESSABLE type.
25504 * tree-cfg.c (verify_gimple_call): Adjust.
25505
25506 2016-01-08 Olivier Hainque <hainque@adacore.com>
25507
25508 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
25509 libc_internal.
25510
25511 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
25512
25513 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
25514 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
25515 (reduc_smin_v2sf): Rename to...
25516 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
25517 (reduc_splus_v2sf): Rename to...
25518 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
25519
25520 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25521
25522 PR tree-optimization/69162
25523 * gimplify.c (gimplify_va_arg_expr): Encode original type of
25524 valist argument in another argument.
25525 (gimplify_modify_expr): Adjust for the above change. Cleanup.
25526 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
25527 to determine the va_list type, build a MEM_REF instead of
25528 build_fold_indirect_ref.
25529
25530 PR tree-optimization/69172
25531 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
25532 gimple_build.
25533
25534 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
25535
25536 PR tree-optimization/67781
25537 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
25538 and cmpnop in two steps: first the ones not accessed in original
25539 gimple expression in a endian independent way and then the ones not
25540 accessed in the final result in an endian-specific way.
25541
25542 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25543
25544 PR tree-optimization/69083
25545 * tree-vect-slp.c (vect_get_constant_vectors): For
25546 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
25547 element type. If op is fold_convertible_p to vector_type's element
25548 type, use NOP_EXPR instead of VCE.
25549
25550 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
25551
25552 PR rtl-optimization/67778
25553 PR rtl-optimization/68634
25554 PR rtl-optimization/68909
25555 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
25556 block from the stack until done with it. Remove a superfluous
25557 bitmap set. Remove a superfluous bitmap test.
25558
25559 2016-01-07 Martin Sebor <msebor@redhat.com>
25560
25561 PR c/68966
25562 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
25563 constraint on the type of arguments.
25564
25565 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
25566
25567 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
25568 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
25569 unaligned_access on the gcc_options set.
25570 * config/arm/arm.c (arm_option_override_internal): Use
25571 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
25572
25573 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
25574
25575 PR target/69140
25576 * config/i386/i386.c (ix86_frame_pointer_required): Enable
25577 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
25578
25579 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
25580
25581 Revert
25582 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
25583
25584 PR target/69140
25585 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25586 depending on frame_pointer_needed before remaining integer and SSE
25587 registers are saved.
25588
25589 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
25590
25591 PR 1078
25592 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
25593
25594 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
25595
25596 PR target/69171
25597 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
25598 Use the "xBm" constraint.
25599 (float<sseintvecmodelower><mode>2<mask_name><round_name):
25600 Likewise.
25601 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
25602 (sse_cvtsi2ssq<round_name>): Likewise.
25603 (sse_cvtss2si<round_name>): Likewise.
25604 (sse_cvtss2siq<round_name>): Likewise.
25605 (sse2_cvtsi2sdq<round_name>): Likewise.
25606 (sse2_cvtsd2si<round_name>): Likewise.
25607 (sse2_cvtsd2siq<round_name>): Likewise.
25608 * config/i386/subst.md (round_nimm_scalar_predicate): New
25609 predicate.
25610
25611 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
25612
25613 PR middle-end/67639
25614 * varasm.c (make_decl_rtl): Mark invalid register vars as
25615 DECL_EXTERNAL.
25616
25617 PR rtl-optimization/66206
25618 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
25619 All callers changed.
25620
25621 2016-01-07 Jakub Jelinek <jakub@redhat.com>
25622
25623 PR tree-optimization/69141
25624 * tree-ssa-pre.c: Include langhooks.h.
25625 (eliminate_dom_walker::before_dom_children): Use
25626 lang_hooks.decl_printable_name instead of
25627 cgraph_node::get ()->name ().
25628
25629 PR middle-end/68960
25630 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
25631 it and DECL_ALIGN too.
25632
25633 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
25634
25635 * config/mips/mips-ftypes.def: Sort to lexicographical order.
25636
25637 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
25638
25639 PR target/69140
25640 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25641 depending on frame_pointer_needed before remaining integer and SSE
25642 registers are saved.
25643
25644 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25645
25646 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
25647 mode iterator with VSX_M2.
25648 (*p9_vecstore_<mode>): Likewise.
25649 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
25650 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
25651 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
25652 (define_split for VSX_LE128 stores): Likewise.
25653 (define_peephole2 for TImode LE swaps): Likewise.
25654 (define_split for VSX_LE128 post-reload stores): Likewise.
25655
25656 2016-01-06 Marek Polacek <polacek@redhat.com>
25657
25658 PR sanitizer/69099
25659 * convert.c (convert_to_integer_1): Adjust call to
25660 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
25661 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
25662 EXPR instead of ARG.
25663 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
25664
25665 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25666
25667 PR 1078
25668 * doc/extend.texi (RL78 Variable Attributes): New section.
25669
25670 2016-01-05 Marek Polacek <polacek@redhat.com>
25671
25672 PR c/69104
25673 * builtins.c (get_memmodel): Use expansion point location rather than
25674 the input location. Call warning_at rather than warning.
25675 (expand_builtin_atomic_compare_exchange): Likewise.
25676 (expand_builtin_atomic_load): Likewise.
25677 (expand_builtin_atomic_store): Likewise.
25678 (expand_builtin_atomic_clear): Likewise.
25679
25680 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
25681
25682 PR target/68991
25683 * config/i386/i386.c (ix86_expand_vector_logical_operator):
25684 Replace nonimmediate_operand with vector_operand.
25685 * config/i386/predicates.md (vector_operand): New predicate.
25686 (general_vector_operand): Replace nonimmediate_operand with
25687 vector_operand.
25688 * config/i386/sse.md: Replace nonimmediate_operand with
25689 vector_operand and m constraint with Bm constraint on SSE
25690 patterns with 16-byte memory operand.
25691 * config/i386/subst.md (round_nimm_predicate): Replace
25692 nonimmediate_operand with vector_operand.
25693 (round_saeonly_nimm_predicate): Likewise.
25694 (round_saeonly_nimm_scalar_predicate): New.
25695
25696 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
25697
25698 PR target/68991
25699 * config/i386/constraints.md (Bm): New constraint.
25700 * config/i386/predicates.md (vector_memory_operand): New
25701 predicate.
25702 * config/i386/sse.md: Replace xm with xBm in plusminus and
25703 any_logic patterns.
25704
25705 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25706
25707 PR 1078
25708 * doc/extend.texi (V850 Function Attributes): New section.
25709 (V850 Variable Attributes): New section.
25710
25711 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25712
25713 PR 1078
25714 * doc/extend.texi (MicroBlaze Function Attributes): Document
25715 interrupt_handler and fast_interrupt attributes.
25716
25717 2016-01-05 Sergei Trofimovich <siarheit@google.com>
25718
25719 PR other/60465
25720 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
25721 for local symbolic operands.
25722 * config/ia64/predicates.md (local_symbolic_operand64): New
25723 predicate.
25724
25725 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25726
25727 PR rtl-optimization/68651
25728 * combine.c (combine_simplify_rtx): Canonicalize x + x into
25729 x << 1.
25730
25731 2016-01-05 Nathan Sidwell <nathan@acm.org>
25732
25733 * alias.c (compare_base_decls): Use symtab_node::get.
25734
25735 2016-01-05 Nick Clifton <nickc@redhat.com>
25736
25737 PR target/68770
25738 * ira-costs.c (copy_cost): Initialise the t_icode field of the
25739 secondary_reload_info structure.
25740
25741 PR target/66655
25742 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25743 decls if weak support is available.
25744
25745 2016-01-04 Martin Sebor <msebor@redhat.com>
25746
25747 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25748
25749 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25750
25751 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25752 OPTION_MASK_P9_DFORM.
25753
25754 * config/rs6000/constraints.md (wo constraint): New constraint for
25755 ISA 3.0 (power9).
25756
25757 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25758 for wo constraint.
25759 (rs6000_init_hard_regno_mode_ok): Likewise.
25760
25761 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25762 wo constraint.
25763
25764 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25765 expanders not to have constraints. Add support for ISA 3.0 xxperm
25766 instruction. Add support for fusing xxlor with xxperm.
25767 (altivec_vperm_<mode>_internal): Likewise.
25768 (altivec_vperm_v8hiv16qi): Likewise.
25769 (altivec_vperm_<mode>v16q): Likewise.
25770 (altivec_vperm_<mode>_uns): Likewise.
25771 (vperm_v8hiv4si): Likewise.
25772 (vperm_v16qiv8hi): Likewise.
25773
25774 * doc/md.texi (RS/6000 constraints): Document wo constraint.
25775
25776 2016-01-04 Jakub Jelinek <jakub@redhat.com>
25777
25778 Update copyright years.
25779
25780 * gcc.c (process_command): Update copyright notice dates.
25781 * gcov-dump.c (print_version): Ditto.
25782 * gcov.c (print_version): Ditto.
25783 * gcov-tool.c (print_version): Ditto.
25784 * gengtype.c (create_file): Ditto.
25785 * doc/cpp.texi: Bump @copying's copyright year.
25786 * doc/cppinternals.texi: Ditto.
25787 * doc/gcc.texi: Ditto.
25788 * doc/gccint.texi: Ditto.
25789 * doc/gcov.texi: Ditto.
25790 * doc/install.texi: Ditto.
25791 * doc/invoke.texi: Ditto.
25792
25793 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25794
25795 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25796 modes larger than TImode as TImode if NEON is not enabled.
25797
25798 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25799
25800 PR target/69100
25801 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25802 mode for %f0-%f31 only if TARGET_FPU.
25803
25804 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25805
25806 PR target/69072
25807 * config/sparc/sparc.c (scan_record_type): Take into account subfields
25808 to compute the PACKED_P predicate.
25809 (function_arg_record_value): Minor tweaks.
25810
25811 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25812
25813 * doc/install.texi (--with-multilib-list): Describe the meaning of the
25814 option for arm*-*-* targets.
25815
25816 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
25817
25818 * doc/extend.texi (Common Function Attributes): Move docs for
25819 MSP430-specific attributes to....
25820 (MSP430 Function Attributes): ...here. Delete the redundant
25821 entries and copy-edit the remaining text.
25822 (MSP430 Variable Attributes): Use uniform format for index
25823 entries and add a cross-reference to the corresponding function
25824 attribute docs.
25825
25826 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
25827
25828 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
25829 -finite-math typo.
25830 (x86 Options): Likewise.
25831
25832 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
25833
25834 PR 1078
25835
25836 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
25837 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
25838 to corresponding attribute.
25839
25840 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
25841
25842 * doc/extend.texi (Common Function Attributes) <noplt>: Move
25843 to correct alphabetization of table. Copy-edit and correct
25844 markup.
25845 <stack_protect>: Likewise.
25846 <target_clones>: Likewise.
25847 <simd>: Likewise.
25848 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
25849 Correct punctuation.
25850 (Code Gen Options) <-fno-plt>: Copy-edit.
25851
25852 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25853
25854 PR target/68917
25855 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
25856 SI values. Explicitly convert SI to DI and vice-versa.
25857
25858 2016-01-01 Jakub Jelinek <jakub@redhat.com>
25859
25860 PR tree-optimization/69070
25861 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
25862 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
25863
25864 PR sanitizer/69055
25865 * ubsan.c (ubsan_instrument_float_cast): Call
25866 initialize_sanitizer_builtins.
25867
25868 PR target/69015
25869 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
25870 \f
25871 Copyright (C) 2016 Free Software Foundation, Inc.
25872
25873 Copying and distribution of this file, with or without modification,
25874 are permitted in any medium without royalty provided the copyright
25875 notice and this notice are preserved.