re PR target/77957 (Undefined .LCTOC0 with -fstack-protector-strong -mminimal-toc...
[gcc.git] / gcc / ChangeLog
1 2016-10-13 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/77957
4 * hooks.h (hook_tree_void_null): Declare.
5 * hooks.c (hook_tree_void_null): New function.
6 * langhooks.c (lhd_return_null_tree_v): Remove.
7 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9 set y to const0_rtx.
10 * function.c (stack_protect_epilogue): Likewise.
11 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
12 if TARGET_THREAD_SSP_OFFSET is defined.
13 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
14 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
15 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
16 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
17 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
18 (ix86_stack_protect_guard): New function.
19
20 2016-10-13 Richard Biener <rguenther@suse.de>
21
22 * dwarf2out.c (tree_add_const_value_attribute): Do not try
23 rtl_for_decl_init during early phase.
24 (gen_variable_die): Do not create locations during early phase.
25 (gen_label_die): Likewise.
26 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
27 twice.
28
29 2016-10-12 Richard Biener <rguenther@suse.de>
30
31 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
32 try_add_new_range and made to eturn new range.
33 (evrp_dom_walker::before_dom_children): Push op1 value range before
34 pushing op0 value range.
35
36 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37
38 PR tree-optimization/77937
39 * gimple-ssa-strength-reduction.c (analyze_increments): Use
40 POINTER_TYPE_P on the candidate type to determine whether
41 candidates in this chain require pointer arithmetic.
42
43 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
44
45 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
46 correction if the type is smaller than a word.
47 (visium_select_cc_mode): Add ... fall through ... comment.
48
49 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
50
51 * config/rs6000/rs6000.c (machine_function): Add new fields
52 gpr_is_wrapped_separately and lr_is_wrapped_separately.
53 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
54 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
55 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
56 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
57 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
58 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
59 (rs6000_get_separate_components): New function.
60 (rs6000_components_for_bb): New function.
61 (rs6000_disqualify_components): New function.
62 (rs6000_emit_prologue_components): New function.
63 (rs6000_emit_epilogue_components): New function.
64 (rs6000_set_handled_components): New function.
65 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
66 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
67 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
68 (rs6000_emit_epilogue): Don't emit GPR restores if
69 gpr_is_wrapped_separately for that register. Don't make a
70 REG_CFA_RESTORE note for registers we did not restore, either.
71
72 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
73
74 * function.c (thread_prologue_and_epilogue_insns): Call
75 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
76 if it has possibly changed. Compute the split_prologue_seq and
77 epilogue_seq later, too.
78 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
79 (dump_components): New function.
80 (struct sw): New struct.
81 (SW): New function.
82 (init_separate_shrink_wrap): New function.
83 (fini_separate_shrink_wrap): New function.
84 (place_prologue_for_one_component): New function.
85 (spread_components): New function.
86 (disqualify_problematic_components): New function.
87 (emit_common_heads_for_components): New function.
88 (emit_common_tails_for_components): New function.
89 (insert_prologue_epilogue_for_components): New function.
90 (try_shrink_wrapping_separate): New function.
91 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
92
93 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
94
95 * regrename.c (build_def_use): Invalidate chains that have a
96 REG_CFA_RESTORE on some instruction.
97
98 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
99
100 * dce.c (delete_unmarked_insns): Don't delete instructions with
101 a REG_CFA_RESTORE note.
102
103 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
104
105 * common.opt (-fshrink-wrap-separate): New flag.
106 * doc/invoke.texi: Document it.
107 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
108 * doc/tm.texi: Regenerate.
109 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
110 * target.def (shrink_wrap): New hook vector.
111 (get_separate_components, components_for_bb, disqualify_components,
112 emit_prologue_components, emit_epilogue_components,
113 set_handled_components): New hooks.
114
115 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
116
117 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
118 vector return by reference only if -Wpsabi.
119 (rs6000_pass_by_reference): Similarly, for argument passing.
120
121 2016-10-12 David Malcolm <dmalcolm@redhat.com>
122
123 * function-tests.c: Include "print-rtl.h".
124 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
125 function, and verify what is dumped.
126 * print-rtl-function.c (print_edge): New function.
127 (begin_any_block): New function.
128 (end_any_block): New function.
129 (can_have_basic_block_p): New function.
130 (print_rtx_function): Track the basic blocks of insns in the
131 chain, wrapping those that are within blocks within "(block)"
132 directives. Remove the "(cfg)" directive.
133
134 2016-10-12 David Malcolm <dmalcolm@redhat.com>
135
136 * selftest.c (selftest::read_file): New function.
137 (selftest::test_read_file): New function.
138 (selftest::selftest_c_tests): Call test_read_file.
139 * selftest.h (selftest::read_file): New decl.
140
141 2016-10-12 Richard Biener <rguenther@suse.de>
142
143 PR debug/77947
144 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
145 function context.
146
147 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
148
149 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
150
151 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
152 dwarf2out_assembly_start.
153
154 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
155
156 * Makefile.in (SELFTEST_FLAGS): New variable.
157 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
158
159 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
160 early_finish hook.
161
162 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
163
164 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
165 dumped in RTL dumps.
166
167 2016-10-12 Martin Liska <mliska@suse.cz>
168
169 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
170 (gimple_fold_builtin_memory_op): Use the function.
171 (gimple_fold_builtin_strchr): Likewise.
172 (gimple_fold_builtin_strcat): Likewise.
173 (gimple_build): Likewise.
174
175 2016-10-12 Nathan Sidwell <nathan@acm.org>
176
177 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
178
179 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
180
181 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
182 equivalent 32-bit constant (modulo 2**32) when that yields
183 smaller instructions.
184 (size_of_int_loc_descriptor): Update accordingly.
185
186 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
187
188 * dwarf2out.c (dwarf2out_early_global_decl): For nested
189 functions, call dwarf2out_decl on the parent function first.
190
191 2016-10-12 Richard Biener <rguenther@suse.de>
192
193 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
194 on the conversion.
195
196 2016-10-12 Richard Biener <rguenther@suse.de>
197
198 * tree-ssa-propagate.c
199 (substitute_and_fold_dom_walker::before_dom_children): Do not
200 ignore ASSERT_EXPRs but only preserve them.
201 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
202 that have been propagated into.
203 (vrp_finalize): Enable DCE for substitute_and_fold.
204
205 2016-10-12 Richard Biener <rguenther@suse.de>
206
207 PR tree-optimization/77920
208 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
209 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
210 (simplify_abs_using_ranges): Likewise.
211 (simplify_conversion_using_ranges): Likewise.
212 (simplify_stmt_using_ranges): Adjust.
213
214 2016-10-12 Jakub Jelinek <jakub@redhat.com>
215
216 PR tree-optimization/77929
217 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
218 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
219
220 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
221
222 PR target/77934
223 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
224 needs a base register for arg 1.
225
226 2016-10-12 Jakub Jelinek <jakub@redhat.com>
227
228 * common.opt (Wimplicit-fallthrough) Turn into alias to
229 -Wimplicit-fallthrough=3. Remove EnabledBy.
230 (Wimplicit-fallthrough=): New option.
231 * gimplify.c (warn_implicit_fallthrough_r): Use
232 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
233 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
234 to -Wimplicit-fallthrough=3.
235 (-Wimplicit-fallthrough=): Document.
236
237 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
238
239 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
240 and GEU in DImode if TARGET_SUBXC.
241 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
242 (seqdi<W:mode>_zero_subxc): Delete.
243 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
244 (neg_seqdi<W:mode>_zero_vis3): Delete.
245 (plus_seqdi<W:mode>_zero): Likewise.
246 (minus_seqdi<W:mode>_zero): Likewise.
247 (plus_plus_sltu<W:mode>): Accept only register.
248 (addx<W:mode>): Likewise.
249 (plus_sltu<W:mode>_vis3): Likewise.
250 (plus_plus_sltu<W:mode>_vis3): Likewise.
251 (neg_sgeu<W:mode>_vis3): Delete.
252 (minus_sgeu<W:mode>_vis3): Likewise.
253 (addxc<W:mode>): Accept only registers.
254 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
255 (minus_neg_sltu<W:mode>_subxc): Accept only register.
256 (neg_plus_sltu<W:mode>_subxc): Likewise.
257 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
258 (minus_minus_sltu<W:mode>_subxc): Accept only register.
259 (sgeu<W:mode>_insn_subxc): Delete.
260 (plus_sgeu<W:mode>_subxc): Likewise.
261 (subxc<W:mode>): Accept only register.
262 (scc splitter): Split always GEU again.
263
264 2016-10-11 Jeff Law <law@redhat.com>
265
266 PR tree-optimization/77424
267 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
268 dead conditionals. Assert that all e->aux fields are NULL.
269
270 2016-10-11 David Malcolm <dmalcolm@redhat.com>
271
272 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
273 operand-printing "switch" statement into...
274 (print_rtx_operand_code_0): ...this new function, ...
275 (print_rtx_operand_code_e): ...this new function, ...
276 (print_rtx_operand_codes_E_and_V): ...this new function, ...
277 (print_rtx_operand_code_i): ...this new function, ...
278 (print_rtx_operand_code_r): ...this new function, ...
279 (print_rtx_operand_code_u): ...this new function, ...
280 (print_rtx_operand): ...and this new function.
281
282 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
283
284 * config/alpha/alpha-passes.def: New file.
285 * config/alpha/t-alpha: New file.
286 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
287 (make_pass_handle_trap_shadows): New prototype.
288 (make_pass_align_insns): Ditto.
289 * config/alpha/alpha.c (alpha_option_override): Don't register
290 passes here.
291 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
292
293 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
294
295 PR target/77924
296 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
297 distinct __ibm128 IBM extended double type if long doubles are
298 128-bits and the default format for long double is IEEE 128-bit.
299
300 2016-10-11 Richard Biener <rguenther@suse.de>
301
302 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
303 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
304 (verify_die): New function.
305 (dwarf2out_finish): Call it.
306 (output_line_info): Handle case of -gsplit-dwarf without
307 DWARF2_ASM_LINE_DEBUG_INFO.
308
309 2016-10-11 Richard Biener <rguenther@suse.de>
310
311 PR debug/77931
312 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
313 sub-chains of BLOCK_VARS and gimple_bind_vars.
314
315 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
316
317 * config/i386/znver1.md : Fix imov/imovx load type reservations.
318
319 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
320
321 * config/sparc/sparc.opt (msubxc): New option.
322 * doc/invoke.texi (SPARC options): Document it and tidy up.
323 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
324 * doc/tm.texi: Regenerate.
325 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
326 (CCNZ): ...this.
327 (CCX_NOOV): Rename into...
328 (CCXNZ): ...this.
329 (CCC): New.
330 (CCXC): Likewise.
331 * config/sparc/predicates.m (fcc_register_operand): Simplify.
332 (fcc0_register_operand): Likewise.
333 (icc_register_operand): New.
334 (icc_or_fcc_register_operand): Simplify.
335 (nz_comparison_operator): New.
336 (c_comparison_operator): Likewise.
337 (noov_compare_operator): Rename into...
338 (icc_comparison_operator): ...this. Use above predicates.
339 (noov_compare64_operator): Rename into...
340 (v9_comparison_operator): ...this and tidy up.
341 (fcc_comparison_operator): New.
342 (icc_or_fcc_comparison_operator): Likewise.
343 (v9_register_compare_operator): Rename info...
344 (v9_register_comparison_operator): ...this.
345 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
346 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
347 for Niagara-7.
348 (sparc_fixed_condition_code_regs): New function.
349 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
350 renaming and add support for CCC/CCXC.
351 (output_cbranch): Likewise.
352 (sparc_print_operand): Likewise.
353 (gen_v9_scc): Remove obsolete assertion.
354 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
355 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
356 (output_cbcond): Remove bogus handling of CC modes.
357 (sparc_register_move_cost): Return 100 for NO_REGS.
358 * config/sparc/sparc.md (W): New mode iterator.
359 (length): Adjust for noov_compare64_operator renaming.
360 (cmpsi_sne): New instruction.
361 (cmpdi_sne): Likewise.
362 (seqdi_special): Delete.
363 (seqdi_special): Likewise.
364 (snesi<P:mode>_special): Likewise.
365 (snedi_special): Likewise.
366 (snedi_special_vis3): Likewise.
367 (snesi patterns): Use W iterator.
368 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
369 (sltu patterns): Likewise.
370 (sgeu patterns): Likewise.
371 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
372 (normal_branch): Use icc_comparison_operator predicate.
373 (inverted_branch): Likewise.
374 (cbcond_sp32): Use comparison_operator predicate.
375 (cbcond_sp64): Likewise.
376 (normal_int_branch_sp64): Adjust for renaming
377 (inverted_int_branch_sp64): Likewise.
378 (mov<I:mode>_cc_reg_sp64): Likewise.
379 (movsf_cc_reg_sp6): Likewise.
380 (movdf_cc_reg_sp64): Likewise.
381 (movtf_cc_reg_hq_sp64): Likewise.
382 (movtf_cc_reg_sp64): Likewise.
383 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
384 (movsf_cc_v9): Likewise.
385 (movdf_cc_v9): Likewise.
386 (movtf_cc_hq_v9): Likewise.
387 (movtf_cc_v9): Likewise.
388 (adddi3): Call gen_adddi3_sp32.
389 (adddi3_insn_sp32): Rename to...
390 (adddi3_sp32): ...this. Accept only register_operand as operand #1
391 and use CCCmode for the carry.
392 (addx_extend_sp32): Use CCCmode for the carry.
393 (addx_extend_sp64): Delete.
394 (adddi3_extend_sp32): Use CCCmode for the carry.
395 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
396 (subdi3): Call gen_subdi3_sp32.
397 (subdi3_insn_sp32): Rename to...
398 (subdi3_sp32): ...this and use CCmode for the carry.
399 (subx_extend_sp32): Use CCCmode for the carry.
400 (subx_extend_sp64): Delete.
401 (subdi3_extend_sp32): Use CCmode for the carry.
402 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
403 (negdi3): Call gen_negdi3_sp32.
404 (negdi3_sp32): Use CCCmode for the carry.
405 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
406 (cmp_nz_ashift_1): Use CCNZ mode.
407 (cmp_nz_set_ashift_1): Likewise.
408 (ctrapsi4): Use comparison_operator predicate.
409 (ctrapdi4): Likewise.
410 (trapsi_insn): Use icc_comparison_operator predicate.
411 (trapdi_insn): Likewise.
412 (edge8 patterns): Use CCNZmode.
413 (edge16 patterns): Likewise.
414 (edge32 patterns): Likewise.
415
416 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
417
418 * config/visium/visium-modes.def (CC_NOOV): Rename into...
419 (CCNZ): ...this.
420 (CC_BTST): Rename into...
421 (CCC): ...this.
422 * config/visium/predicates.md (real_add_operand): New.
423 (visium_btst_operator): Rename into...
424 (visium_equality_comparison_operator): ...this.
425 (visium_noov_operator): Rename into...
426 (visium_nz_comparison_operator): ...this.
427 (visium_c_comparison_operator): New.
428 (visium_branch_operator): Adjust and deal with all CC modes.
429 * config/visium/visium.c (visium_adjust_cost): Adjust.
430 (visium_split_double_add): Use the *_set_carry patterns.
431 (visium_select_cc_mode): Add support for CCC mode and adjust.
432 (output_cbranch): Adjust and use the carry-based operators for
433 floating-point comparisons.
434 * config/visium/visium.md (flags_subst_arith): Adjust.
435 (addsi3_insn_set_carry): New instruction.
436 (subsi3_insn_set_carry): Likewise.
437 (negsi2_insn_set_carry): Likewise.
438 (btst): Adjust.
439 (cmp<mode>_sne): Likewise.
440 (cbranch<mode>4): Use ordered_comparison_operator.
441 (cbranch<mode>4_insn): Likewise.
442 (cbranchsi4_btst_insn): Adjust.
443
444 2016-10-11 Tom de Vries <tom@codesourcery.com>
445
446 PR middle-end/77558
447 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
448 special-casing.
449
450 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
451
452 * tree.h (build_complex_type): Add second parameter with default.
453 * tree.c (build_complex_type): Add NAMED second parameter and adjust
454 recursive call. Create a TYPE_DECL only if NAMED is true.
455 (build_common_tree_nodes): Pass true in calls to build_complex_type.
456
457 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
458
459 New avr-passes.def to register AVR specific passes.
460
461 * config/avr/avr-passes.def: New file.
462 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
463 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
464 (make_avr_pass_recompute_note): New proto.
465 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
466 (avr_pass_recompute_notes): Use anonymous namespace.
467 (avr_register_passes): Remove function...
468 (avr_option_override): ...and its call.
469
470 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
471
472 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
473 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
474 PTF_AVOID_BRANCHLIKELY_SPEED for others.
475 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
476 flags.
477 * config/mips/mips.c (mips_option_override): Enable the branch
478 likely depending on the tune flags and optimization level.
479 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
480 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
481 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
482 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
483
484 2016-10-11 Richard Biener <rguenther@suse.de>
485
486 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
487 (output_function): Properly stream the whole block tree.
488 * lto-streamer-in.c (input_function): Likewise.
489
490 2016-10-11 Marek Polacek <polacek@redhat.com>
491
492 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
493
494 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
495
496 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
497 (evrp_dom_walker::before_dom_children): Infer and push new value
498 ranges for x in y < x.
499
500 2016-10-10 Joseph Myers <joseph@codesourcery.com>
501
502 PR target/77586
503 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
504 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
505 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
506 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
507 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
508 (IA64_NO_LIBGCC_TFMODE): Likewise.
509
510 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
511
512 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
513 copying.
514
515 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
516
517 * config.gcc: Add aarch64-*-freebsd* support.
518 * config.host: Likewise.
519 * config/aarch64/aarch64-freebsd.h: New file.
520 * config/aarch64/t-aarch64-freebsd: Ditto.
521
522 2016-10-10 Jeff Law <law@redhat.com>
523
524 PR tree-optimization/71947
525 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
526 B with A within a single statement.
527
528 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
529
530 PR tree-optimization/77824
531 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
532 zero cost for copies.
533 (find_candidates_dom_walker::before_dom_children): Replace
534 MODIFY_EXPR with SSA_NAME.
535 (replace_mult_candidate): Likewise.
536 (replace_profitable_candidates): Likewise.
537
538 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
539
540 * config/s390/s390.h: Wrap more macros args in brackets and fix
541
542 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
543
544 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
545
546 2016-10-10 Andreas Schwab <schwab@suse.de>
547
548 PR target/77738
549 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
550 pseudo is not DImode.
551
552 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
553
554 * common/config/arc/arc-common.c (arc_option_optimization_table):
555 Remove compact casesi option.
556 * config/arc/arc.c (arc_override_options): Use compact casesi
557 option only for pre-ARCv2 cores.
558 * doc/invoke.texi (mcompact-casesi): Update text.
559
560 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
561
562 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
563 Add macro to say we can efficiently handle overlapping unaligned
564 loads.
565 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
566 poor code for processors older than p8.
567
568 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
569
570 * gen-pass-instances.awk: Remove GNUism.
571
572 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
573
574 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
575 NULL of (*ipcp_transformations)][node->uid].
576
577 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
578
579 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
580 (MALLOC_ABI_ALIGNMENT): Define.
581
582 2016-10-09 Jakub Jelinek <jakub@redhat.com>
583
584 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
585 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
586 VAR_OR_FUNCTION_DECL_P macros.
587 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
588 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
589 chkp_find_bounds_1): Likewise.
590 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
591 * hsa-gen.c (get_symbol_for_decl): Likewise.
592 * cgraphunit.c (check_global_declaration, analyze_functions,
593 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
594 Likewise.
595 * gimple-fold.c (can_refer_decl_in_current_unit_p,
596 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
597 Likewise.
598 * tree.c (set_decl_section_name, copy_node_stat,
599 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
600 merge_dllimport_decl_attributes, handle_dll_attribute,
601 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
602 verify_type): Likewise.
603 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
604 find_explicit_erroneous_behavior): Likewise.
605 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
606 * ipa.c (process_references): Likewise.
607 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
608 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
609 notice_global_symbol, assemble_variable, mark_decl_referenced,
610 build_constant_desc, output_constant_def_contents, do_assemble_alias,
611 make_decl_one_only, default_section_type_flags,
612 categorize_decl_for_section, default_encode_section_info): Likewise.
613 * trans-mem.c (requires_barrier): Likewise.
614 * gimple-expr.c (mark_addressable): Likewise.
615 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
616 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
617 expand_debug_expr): Likewise.
618 * tree-dump.c (dequeue_and_dump): Likewise.
619 * ubsan.c (instrument_bool_enum_load): Likewise.
620 * tree-pretty-print.c (print_declaration): Likewise.
621 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
622 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
623 * asan.c (asan_protect_global, instrument_derefs): Likewise.
624 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
625 pass_build_ssa::execute): Likewise.
626 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
627 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
628 Likewise.
629 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
630 Likewise.
631 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
632 can_be_nonlocal, remap_decls, copy_debug_stmt,
633 initialize_inlined_parameters, add_local_variables,
634 reset_debug_binding, replace_locals_op): Likewise.
635 * dse.c (can_escape): Likewise.
636 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
637 Likewise.
638 * tree-diagnostic.c (default_tree_printer): Likewise.
639 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
640 unpack_ts_decl_with_vis_value_fields,
641 lto_input_ts_decl_common_tree_pointers): Likewise.
642 * builtins.c (builtin_save_expr, fold_builtin_expect,
643 readonly_data_expr): Likewise.
644 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
645 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
646 Likewise.
647 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
648 * gimplify.c (force_constant_size, gimplify_bind_expr,
649 gimplify_decl_expr, gimplify_var_or_parm_decl,
650 gimplify_compound_lval, gimplify_init_constructor,
651 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
652 gimplify_type_sizes): Likewise.
653 * cgraphbuild.c (record_reference, record_type_list, mark_address,
654 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
655 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
656 remove_unused_locals): Likewise.
657 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
658 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
659 * function.c (instantiate_expr, instantiate_decls_1,
660 setjmp_vars_warning, add_local_decl): Likewise.
661 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
662 Likewise.
663 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
664 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
665 optimize_va_list_gpr_fpr_size): Likewise.
666 * tree-nrv.c (pass_nrv::execute): Likewise.
667 * tsan.c (instrument_expr): Likewise.
668 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
669 * vtable-verify.c (verify_bb_vtables): Likewise.
670 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
671 get_ref_base_and_extent): Likewise.
672 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
673 Likewise.
674 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
675 analyze_all_variable_accesses): Likewise.
676 * tree-nested.c (get_nonlocal_debug_decl,
677 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
678 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
679 get_local_debug_decl, convert_local_omp_clauses,
680 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
681 Likewise.
682 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
683 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
684 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
685 dbxout_symbol, dbxout_common_check): Likewise.
686 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
687 string_constant): Likewise.
688 * hsa.c (hsa_get_declaration_name): Likewise.
689 * passes.c (rest_of_decl_compilation): Likewise.
690 * tree-ssanames.c (make_ssa_name_fn): Likewise.
691 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
692 pack_ts_decl_with_vis_value_fields,
693 write_ts_decl_common_tree_pointers): Likewise.
694 * stor-layout.c (place_field): Likewise.
695 * symtab.c (symtab_node::maybe_create_reference,
696 symtab_node::verify_base, symtab_node::make_decl_local,
697 symtab_node::copy_visibility_from,
698 symtab_node::can_increase_alignment_p): Likewise.
699 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
700 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
701 fortran_common, add_location_or_const_value_attribute,
702 add_scalar_info, add_linkage_name, set_block_abstract_flags,
703 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
704 optimize_one_addr_into_implicit_ptr,
705 optimize_location_into_implicit_ptr): Likewise.
706 * gimple-low.c (record_vars_into): Likewise.
707 * ipa-visibility.c (update_vtable_references): Likewise.
708 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
709 Likewise.
710 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
711 DFS::DFS_write_tree_body, write_symbol): Likewise.
712 * langhooks.c (lhd_warn_unused_global_decl,
713 lhd_set_decl_assembler_name): Likewise.
714 * attribs.c (decl_attributes): Likewise.
715 * except.c (output_ttype): Likewise.
716 * varpool.c (varpool_node::get_create, ctor_for_folding,
717 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
718 * fold-const.c (fold_unary_loc): Likewise.
719 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
720 ipa_find_agg_cst_from_init): Likewise.
721 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
722 expand_omp_target, lower_omp_regimplify_p,
723 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
724 find_link_var_op): Likewise.
725 * tree-chrec.c (chrec_contains_symbols): Likewise.
726 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
727 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
728 execute_fixup_cfg): Likewise.
729
730 PR tree-optimization/77901
731 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
732 if ranges[i].exp is SSA_NAME when looking for >= and only when
733 ranges[i].exp is NULL or SSA_NAME when looking for the other
734 comparison.
735
736 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
737
738 * ipa-cp.c (ipcp_alignment_lattice): Remove.
739 (ipcp_param_lattices): Remove field alignment.
740 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
741 (set_all_contains_variable): Remove call to
742 ipcp_alignment_lattice::set_to_bottom.
743 (initialize_node_lattices): Likewise.
744 (propagate_alignment_accross_jump_function): Remove.
745 (propagate_constants_accross_call): Remove call to
746 propagate_alignment_accross_jump_function.
747 (ipcp_store_alignment_results): Remove.
748 (ipcp_driver): Remove call to ipcp_store_alignment_results.
749 (propagate_bits_accross_jump_function): Handle ancestor jump function.
750 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
751 pretty-printing of alignment jump function.
752 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
753 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
754 alignments and remove computing ipa_alignment jump function.
755 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
756 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
757 (ipa_read_jump_function): Remove reading of ipa_alignment.
758 (write_ipcp_transformation_info): Remove streaming for alignment
759 propagation summary.
760 (read_ipcp_transformation_info): Remove reading of alignment
761 propagation summary.
762 (ipcp_update_alignments): Remove.
763 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
764 type.
765 (ipcp_transform_function): Remove call to ipcp_update_alignments()
766 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
767 * ipa-prop.h (ipa_alignment): Remove.
768 (ipa_jump_func): Remove field alignment.
769 (ipcp_transformation_summary): Remove field alignments.
770 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
771 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
772 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
773
774 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
775
776 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
777
778 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
779 change.
780 (visium_expand_fp_cstore): Likewise.
781
782 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
783
784 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
785 * diagnostic.c (warning_at_rich_loc_n): New function.
786 (diagnostic_n_impl_richloc): Likewise.
787 (diagnostic_n_impl): Move most of the function to
788 diagnostic_n_impl_richloc and call it.
789
790 2016-10-08 Jakub Jelinek <jakub@redhat.com>
791
792 * gen-pass-instances.awk: Rewritten.
793 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
794 $(PASSES_EXTRA) after passes.def to the script.
795 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
796 * config/i386/i386-passes.def: New file.
797 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
798 make_pass_stv): Declare.
799 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
800 false.
801 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
802 or !TARGET_64BIT.
803 (pass_stv::clone, pass_stv::set_pass_param): New methods.
804 (pass_stv::timode_p): New non-static data member.
805 (ix86_option_override): Don't register passes here.
806
807 * doc/invoke.texi: Document accepting Else, fallthrough.
808
809 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
810 style changes.
811
812 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
813 FALLTHRU comment styles.
814
815 2016-10-07 Andrew Pinski <apinski@cavium.com>
816
817 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
818 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
819 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
820 Likewise.
821 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
822 Likewise.
823 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
824 Likewise.
825 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
826 (AARCH64_ARCH): Likewise.
827 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
828 Likewise.
829 (AARCH64_CORE): Likewise.
830 (AARCH64_ARCH): Likewise.
831 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
832 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
833 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
834 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
835 (AARCH64_ARCH): Likewise.
836 (AARCH64_CORE): Likewise.
837 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
838 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
839 (AARCH64_CORE): Likewise.
840 (AARCH64_ARCH): Likewise.
841
842 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
843
844 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
845 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
846 floating point type infrastructre, and -mfloat128 that enables the
847 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
848 if -mfloat128-type. Define __ibm128 to be long double by default.
849 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
850 the IEEE 128-bit floating point type infrastructure should
851 automatically be enabled.
852 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
853 instead of -mfloat128 to enable KFmode.
854 (rs6000_option_override_internal): Split the option -mfloat128
855 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
856 systems, automatically set -mfloat128-type, but don't enable it on
857 other operating systems. Move setting the long double size and
858 IEEE quad support before the IEEE 128-bit floating point changes.
859 (rs6000_init_builtins): Do not create a unique type for __ibm128
860 if long double is IBM extended double, instead rely on __ibm128
861 being defined as 'long double'. If -mfloat128-type and not
862 -mfloat128, create the KFmode type with an undocumented __ieee128
863 keyword.
864 (rs6000_init_libfuncs): Use -mfloat128-type instead of
865 -mfloat128 for tests about the types, but keep tests for
866 -mfloat128 to enable the keyword support.
867 (rs6000_complex_function_value): Likewise.
868 (rs6000_scalar_mode_supported_p): Likewise.
869 (rs6000_floatn_mode): Likewise.
870 (rs6000_c_mode_for_suffix): Likewise.
871 (rs6000_opt_masks): Add -mfloat128-type.
872 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
873 -mfloat128-type being split from -mfloat128. Add
874 -mfloat128-hardware, which was missing.
875 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
876 -mfloat128 and -mfloat128-type:
877 (-mfloat128-type): Likewise.
878 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
879 that 64-bit Linux systems with enable -mfloat128-type by default
880 on VSX systems.
881 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
882 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
883 -mfloat128-type instead of -mfloat128.
884 (FLOAT128_2REG_P): Likewise.
885 (MASK_FLOAT128_TYPE): Likewise.
886 (ALTIVEC_ARG_MAX_RETURN): Likewise.
887 (RS6000_BTM_FLOAT128): Likewise.
888 (TARGET_FLOAT128): Poison old identifiers.
889 (OPTION_MASK_FLOAT128): Likewise.
890 (MASK_FLOAT128): Likewise.
891 * config/rs6000/rs6000.md (FP): Likewise.
892 (FLOAT128): Likewise.
893 (fix_trunc<mode>di2): Likewise.
894 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
895 (floatdi<mode>2): Likewise.
896 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
897 (neg<mode>2, FLOAT128 iterator): Likewise.
898 (abs<mode>2, FLOAT128 iterator): Likewise.
899 (ieee_128bit_negative_zero): Likewise.
900 (ieee_128bit_vsx_neg<mode>2): Likewise.
901 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
902 (ieee_128bit_vsx_abs<mode>2): Likewise.
903 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
904 (ieee_128bit_vsx_nabs<mode>2): Likewise.
905 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
906 (extendiftf2): Likewise.
907 (extendifkf2): Likewise.
908 (extendtfkf2): Likewise.
909 (trunciftf2): Likewise.
910 (truncifkf2): Likewise.
911 (trunckftf2): Likewise.
912 (trunctfif2): Likewise.
913 (extendkftf2): Likewise.
914 (trunctfkf2): Likewise.
915
916 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
917
918 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
919 before merging in bytes to pass down to real_from_target.
920
921 2016-10-07 Richard Biener <rguenther@suse.de>
922
923 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
924 required hack.
925 (substitute_and_fold_dom_walker::before_dom_children):
926 Substitute and fold before pass specific folding to avoid
927 feeding that with SSA names that will be later released.
928 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
929 introduced by folding and visited by evaluate_stmt called during
930 ccp_fold_stmt.
931 (likely_value): Likewise.
932 (evaluate_stmt): Likewise.
933 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
934 (simplify_div_or_mod_using_ranges): Likewise.
935 (simplify_min_or_max_using_ranges): Likewise.
936 (simplify_abs_using_ranges): Likewise.
937 (simplify_conversion_using_ranges): Likewise.
938 (simplify_float_conversion_using_ranges): Likewise.
939 (simplify_stmt_using_ranges): Likewise.
940
941 2016-10-07 Marek Polacek <polacek@redhat.com>
942
943 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
944 FALLTHROUGH_LABEL_P here...
945 (warn_implicit_fallthrough_r): ...not here.
946
947 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
948
949 PR tree-optimization/77880
950 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
951 necessary.
952
953 2016-10-07 Marek Polacek <polacek@redhat.com>
954
955 PR c++/77803
956 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
957
958 2016-10-07 Richard Biener <rguenther@suse.de>
959
960 * bitmap.h: Document constraints on bitmap modification while
961 iterating over it.
962
963 2016-10-07 Richard Biener <rguenther@suse.de>
964
965 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
966 * bitmap.h (bmp_iter_set): When advancing to the next element
967 check that we didn't remove the current one.
968 (bmp_iter_and): Likewise.
969 (bmp_iter_and_compl): Likewise.
970 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
971 we currently iterate on but keep a one-level queue.
972 * sched-deps.c (remove_from_deps): Do not clear current bit
973 but keep a one-level queue.
974
975 2016-10-07 Jakub Jelinek <jakub@redhat.com>
976
977 PR tree-optimization/77664
978 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
979 for the other ranges.
980 (optimize_range_tests_diff): Fix up formatting.
981 (optimize_range_tests_var_bound): New function.
982 (optimize_range_tests): Use it.
983
984 2016-10-07 Martin Liska <mliska@suse.cz>
985
986 * coverage.c (build_gcov_exit_decl): Fix priority what
987 should be really 99.
988
989 2016-10-07 Richard Biener <rguenther@suse.de>
990
991 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
992 vars in gimple_bind_vars but not in BLOCK_VARS.
993
994 2016-10-07 Richard Biener <rguenther@suse.de>
995
996 PR tree-optimization/77879
997 * tree-ssa-structalias.c (handle_const_call): Properly handle
998 NRV return slots.
999 (handle_pure_call): Likewise.
1000
1001 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1002
1003 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
1004 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
1005 possible overflow.
1006
1007 2016-10-06 Andrew Pinski <apinski@cavium.com>
1008
1009 * config/aarch64/aarch64-cores.def: Add a comment before each
1010 set of cores.
1011
1012 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1013
1014 PR tree-optimization/77862
1015 * tree-vrp.c (add_equivalence): Use get_value_range so that
1016 num_vr_values is checked before accessing vr_values.
1017
1018 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1019
1020 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1021 POINTER_TYPE_P.
1022
1023 2016-10-05 Jeff Law <law@redhat.com>
1024
1025 PR tree-optimization/71661
1026 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1027 removal of a forwarder exposes a new natural loop.
1028
1029 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
1030
1031 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1032 Introduce ssesuffix variable.
1033 (<mask_codefor><code><mode>3<mask_name>): Ditto.
1034 (*<code><mode>3): Ditto.
1035
1036 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
1037
1038 * postreload.c (reload_cse_simplify): Skip also USE when detecting
1039 noop move.
1040
1041 2016-10-06 Richard Biener <rguenther@suse.de>
1042
1043 PR tree-optimization/77855
1044 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1045 instead of removing the current item while iterating over the set
1046 which is not safe.
1047
1048 2016-10-06 James Clarke <jrtc27@jrtc27.com>
1049 Eric Botcazou <ebotcazou@adacore.com>
1050
1051 PR target/77759
1052 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1053 (classify_registers): Don't set it
1054 (function_arg_slotno): Don't initialize and test it. Tidy up.
1055
1056 2016-10-06 Richard Biener <rguenther@suse.de>
1057
1058 PR tree-optimization/77839
1059 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1060 lattice transition.
1061
1062 2016-10-06 Martin Liska <mliska@suse.cz>
1063
1064 * gcc.c: Set -fprofile-update=atomic when profiling is
1065 enabled and -pthread is set. Warn when one combines
1066 -pthread and -fprofile-update=single for an app using
1067 profiling code.
1068
1069 2016-10-06 Martin Liska <mliska@suse.cz>
1070
1071 PR bootstrap/77788
1072 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1073 * gimple-ssa-strength-reduction.c (slsr_process_cast):
1074 Initialize a pointer to NULL.
1075 (slsr_process_copy): Likewise.
1076 * input.c (location_get_source_line): Likewise.
1077 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1078
1079 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
1080
1081 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1082 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1083 (ix86_handle_option): Deleted handle of OPT_mpcommit.
1084 * config.gcc: Deleted pcommitintrin.h
1085 * config/i386/pcommitintrin.h: Deleted file.
1086 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1087 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1088 detection.
1089 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1090 __PCOMMIT__.
1091 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1092 (PTA_PCOMMIT): Deleted define.
1093 (ix86_option_override_internal): Deleted handle of option.
1094 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1095 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1096 __builtin_ia32_pcommit): Deleted.
1097 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1098 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1099 (pcommit): Deleted instruction.
1100 * config/i386/i386.opt: Mention -mpcommit deprecation.
1101 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1102
1103 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
1104
1105 PR target/77874
1106 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1107 Remove wrong assert.
1108 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1109 Use <round_constraint> as operand 1 constraint.
1110
1111 2016-10-05 Jakub Jelinek <jakub@redhat.com>
1112
1113 PR sanitizer/66343
1114 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1115 (ubsan_instrument_float_cast): And not here.
1116
1117 PR sanitizer/66343
1118 * ubsan.c (ubsan_ids): New GTY(()) array.
1119 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1120 instead of static local counters.
1121
1122 2016-10-05 Martin Sebor <msebor@redhat.com>
1123
1124 PR bootstrap/77819
1125 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1126 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1127 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1128 (default_printf_pointer_format): Define function.
1129 * targhooks.c (linux_printf_pointer_format): Define new function.
1130 * targhooks.h (linux_printf_pointer_format): Declare.
1131 (gnu_libc_printf_pointer_format): Remove declaration.
1132
1133 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1134
1135 * fold-const.c (native_encode_real): Fix logic for selecting offset
1136 to write to when BYTES_BIG_ENDIAN.
1137
1138 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
1139
1140 * builtins.c (fold_builtin_strchr): Remove function.
1141 (fold_builtin_strrchr): Likewise.
1142 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1143 * gimple-fold.c (target_char_cst_p): New function.
1144 (gimple_fold_builtin_strchr) Add more foldings.
1145 (gimple_fold_builtin): Add index, strrchr, rindex cases.
1146
1147 2016-10-05 Richard Biener <rguenther@suse.de>
1148
1149 PR middle-end/77863
1150 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1151 capture ids in c-exprs.
1152
1153 2016-10-05 Richard Biener <rguenther@suse.de>
1154
1155 PR middle-end/77826
1156 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1157 with types_match for GIMPLE code gen to handle type mismatched
1158 constants properly.
1159 (dt_operand::gen): Adjust.
1160 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1161 and constant A.
1162
1163 2016-10-05 Richard Biener <rguenther@suse.de>
1164
1165 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1166
1167 2016-10-05 Richard Biener <rguenther@suse.de>
1168
1169 PR middle-end/77842
1170 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1171
1172 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
1173
1174 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1175 version check to protect only DW_TAG_imported_module generation.
1176
1177 2016-10-05 Richard Biener <rguenther@suse.de>
1178
1179 PR middle-end/55152
1180 * match.pd (min(a,-a) -> -abs(a)): New pattern.
1181
1182 2016-10-04 Ian Lance Taylor <iant@golang.org>
1183
1184 * explow.c (allocate_dynamic_stack_space): Call
1185 do_pending_stack_adjust before handling flag_split_stack.
1186
1187 2016-10-04 David Malcolm <dmalcolm@redhat.com>
1188
1189 * genattrtab.c (make_internal_attr): Supply dummy column number to
1190 file_location ctor.
1191 (main): Likewise.
1192 * genoutput.c (init_insn_for_nothing): Likewise.
1193 * gensupport.c (add_define_attr): Likewise.
1194 * read-md.c (message_at_1): Print column number.
1195 (fatal_with_file_and_line): Likewise.
1196 (rtx_reader::read_char): Track column numbers.
1197 (rtx_reader::unread_char): Likewise.
1198 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1199 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1200 (rtx_reader::handle_file): Initialize m_read_md_colno.
1201 (rtx_reader::get_current_location): Supply column number to
1202 file_location ctor.
1203 * read-md.h (struct file_location): Add field "colno".
1204 (file_location::file_location): Likewise.
1205 (rtx_reader::get_colno): New accessor.
1206 (rtx_reader::m_read_md_colno): New field.
1207 (rtx_reader::m_last_line_colno): New field.
1208
1209 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1210
1211 * doc/extend.texi (Java Exceptions): Remove.
1212 (java_interface): Remove.
1213
1214 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
1215
1216 PR tree-optimization/77808
1217 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1218 and addr are different before copying points-to information.
1219
1220 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
1221
1222 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1223 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1224 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1225 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1226
1227 2016-10-04 Richard Biener <rguenther@suse.de>
1228
1229 PR tree-optimization/77399
1230 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1231 verify the target can convert.
1232
1233 2016-10-04 Richard Biener <rguenther@suse.de>
1234
1235 PR middle-end/77833
1236 * explow.c (plus_constant): Verify the mode of the constant
1237 pool offset before calling plus_constant.
1238
1239 2016-10-04 Richard Biener <rguenther@suse.de>
1240
1241 PR middle-end/77407
1242 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1243 type support, mark with :C.
1244 (X / -X -> -1): Mark with :C.
1245
1246 2016-10-04 Jakub Jelinek <jakub@redhat.com>
1247
1248 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1249 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1250 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1251 * doc/tm.texi: Regenerated.
1252 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1253 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1254 * config/darwin.h (JCR_SECTION_NAME): Remove.
1255 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1256 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1257 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1258 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1259 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1260 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1261
1262 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1263
1264 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1265 between "because" and "param" in dump message in call to fprintf.
1266
1267 2016-10-03 Jeff Law <law@redhat.com>
1268
1269 PR tree-optimization/71550
1270 PR tree-optimization/71403
1271 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1272 (profitable_jump_thread_path): Also return boolean indicating if
1273 the realized path will create an irreducible loop.
1274 Remove loop depth tests from 71403.
1275 (fsm_find_control_statement_thread_paths): Remove loop depth tests
1276 from 71403. If threading will create an irreducible loop, then
1277 throw away loop iteration and related information.
1278
1279 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
1280
1281 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1282 -Woverloaded-virtual checks for warning options.
1283 * configure: Regenerate.
1284
1285 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1286
1287 PR preprocessor/77699
1288 * input.c (maybe_grow): Don't allocate one byte extra headroom.
1289 (get_next_line): Return false on error.
1290 (read_next_line): Removed, use get_next_line instead.
1291 (read_line_num): Don't copy the line.
1292 (location_get_source_line): Don't use static data.
1293 (selftest::test_reading_source_line): Add more test cases.
1294
1295 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1296
1297 Revert
1298 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1299
1300 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1301 (noce_process_if_block): Use it.
1302
1303 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1304
1305 * doc/invoke.texi: Update -Wint-in-bool-context.
1306
1307 2016-10-02 Jakub Jelinek <jakub@redhat.com>
1308
1309 * dwarf2out.c (output_fde, output_call_frame_info,
1310 dwarf2out_do_cfi_startproc, set_indirect_string,
1311 gen_internal_sym, output_die, output_line_info): Use
1312 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1313 ASM_GENERATE_INTERNAL_LABEL output.
1314
1315 2016-10-01 Richard Biener <rguenther@suse.de>
1316
1317 PR middle-end/77798
1318 * genmatch.c (get_operand_type): Add operand position arg
1319 and handle COND_EXPR comparison operand with fixed boolean_type_node.
1320 (expr::gen_transform): Adjust.
1321 (dt_simplify::gen_1): Likewise.
1322
1323 2016-10-01 Jakub Jelinek <jakub@redhat.com>
1324
1325 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1326 comments. Simplify asserts, remove unnecessary conditions.
1327 Formatting fixes.
1328 (*<code><mode>3): Likewise.
1329
1330 2016-09-30 Jakub Jelinek <jakub@redhat.com>
1331
1332 * doc/invoke.texi (-Wregister): Document.
1333
1334 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
1335
1336 * configure.ac: Split CHECKING_P into CHECKING_P and
1337 ENABLE_EXTRA_CHECKING.
1338 * configure: Regenerated.
1339 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
1340 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1341
1342 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
1343
1344 PR other/31566
1345 * gcc.c (process_command): For @filename handling, output
1346 the correct name if the file does not exist.
1347
1348 2016-09-30 Marek Polacek <polacek@redhat.com>
1349
1350 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1351 * config/alpha/predicates.md: Likewise.
1352
1353 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1354
1355 * ifcvt.c (noce_try_avoid_const_materialization): New function.
1356 (noce_process_if_block): Use it.
1357
1358 2016-09-30 Martin Liska <mliska@suse.cz>
1359
1360 * doc/invoke.texi: Document asan-use-after-return that
1361 it's disabled by default in runtime.
1362
1363 2016-09-30 Richard Biener <rguenther@suse.de>
1364
1365 * tree-vrp.c (intersect_ranges): If we failed to handle
1366 the intersection choose a constant singleton range if available.
1367
1368 2016-09-30 Richard Biener <rguenther@suse.de>
1369
1370 PR tree-optimization/77399
1371 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1372 float <-> int conversions.
1373
1374 2016-09-30 Alan Modra <amodra@gmail.com>
1375
1376 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1377
1378 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1379
1380 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1381 ext_level before calling CPUID with 0x80000008.
1382 Simplify xgetbv checks.
1383
1384 2016-09-29 David Malcolm <dmalcolm@redhat.com>
1385
1386 * Makefile.in (OBJS): Add print-rtl-function.o.
1387 * print-rtl-function.c: New file.
1388 * print-rtl.h (print_rtx_function): New decl.
1389
1390 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
1391
1392 PR target/77756
1393 * config/i386/cpuid.h (__get_cpuid_count): New.
1394 (__get_cpuid): Rename __level to __leaf.
1395
1396 2016-09-29 Marek Polacek <polacek@redhat.com>
1397
1398 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1399
1400 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
1401
1402 * builtins.c (expand_builtin_memcmp): don't swap args unless
1403 result is only being compared with zero.
1404
1405 2016-09-29 Marek Polacek <polacek@redhat.com>
1406
1407 * dwarf2out.c (loc_descriptor): Add fall through comment.
1408 (add_const_value_attribute): Likewise.
1409
1410 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
1411
1412 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1413 with "v6t2". Move "arch" attribute above "pool_range".
1414 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1415 with "v6t2".
1416 (*thumb2_movhi_vfp): Likewise.
1417 (*arm_movhi_fp16): Likewise.
1418 (*thumb2_movhi_fp16): Likewise.
1419 (*arm_movsi_vfp): Remove "arch" attribute.
1420 (*thumb2_movsi_vfp): Likewise.
1421
1422 2016-09-29 Martin Liska <mliska@suse.cz>
1423
1424 * doc/extend.texi: Remove limitation of Objective C for
1425 __attribute__((constructor)) and __attribute__((destructor)).
1426
1427 2016-09-29 Richard Biener <rguenther@suse.de>
1428
1429 PR tree-optimization/77768
1430 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1431 Handle stores to readonly memory when removing redundant stores.
1432
1433 2016-09-29 Richard Biener <rguenther@suse.de>
1434
1435 PR middle-end/77407
1436 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1437 X / -X -> -1 simplifications.
1438
1439 2016-09-29 Richard Biener <rguenther@suse.de>
1440
1441 PR middle-end/55152
1442 * match.pd: Add max(a,-a) -> abs(a) pattern.
1443 * tree-ssa-phiopt.c (minmax_replacement): Disable for
1444 HONOR_SIGNED_ZEROS types.
1445
1446 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
1447
1448 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1449 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1450
1451 2016-09-29 Richard Biener <rguenther@suse.de>
1452
1453 * tree-vrp.c (set_defs_to_varying): New helper avoiding
1454 writing to vr_const_varying.
1455 (vrp_initialize): Call it.
1456 (vrp_visit_stmt): Likewise.
1457 (evrp_dom_walker::before_dom_children): Likewise.
1458
1459 2016-09-29 Richard Biener <rguenther@suse.de>
1460
1461 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1462 constructors with vector elements.
1463
1464 2016-09-29 Richard Biener <rguenther@suse.de>
1465
1466 PR tree-optimization/77768
1467 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1468 with stores to a place we know has a constant value.
1469
1470 2016-09-29 Alan Modra <amodra@gmail.com>
1471
1472 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1473 * doc/invoke.texi: Document it.
1474 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1475 (rs6000_passes_float): Comment.
1476 (rs6000_passes_long_double): New static var.
1477 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1478 (init_cumulative_args): Set up to emit fp .gnu_attribute for
1479 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
1480 to include fp values returned in vectors.
1481 Set rs6000_passes_long_double.
1482 (rs6000_function_arg_advance_1): Likewise for function args.
1483 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1484 and SPE. Emit long double tag value too.
1485 (rs6000_opt_vars): Add gnu-attr.
1486 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1487 * configure: Regenerate.
1488 * config.in: Regenerate.
1489
1490 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1491
1492 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1493 of 0 < x.
1494 (format_floating, format_string, format_directive,
1495 get_destination_size, pass_sprintf_length::handle_gimple_call):
1496 Likewise.
1497
1498 2016-09-28 Jakub Jelinek <jakub@redhat.com>
1499
1500 * gimple-ssa-sprintf.c: Fix comment formatting.
1501 (format_integer): Use is_gimple_assign.
1502 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1503 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
1504 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
1505 (pass_sprintf_length::execute): Use is_gimple_call.
1506
1507 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1508
1509 * gimple-fold.c (gimple_fold_builtin): After failing to fold
1510 strchr, also try the generic folding.
1511
1512 2016-09-28 Martin Sebor <msebor@redhat.com>
1513
1514 PR c/77762
1515 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1516 Fix typos.
1517
1518 2016-09-28 Martin Sebor <msebor@redhat.com>
1519
1520 PR middle-end/77683
1521 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1522 length modifier is not expected.
1523 (format_floating): Ignore l length modifier and fail gracefuly
1524 when it isn't one of the other expected ones.
1525
1526 2016-09-28 Martin Sebor <msebor@redhat.com>
1527
1528 PR bootstrap/77753
1529 * varasm.c (assemble_addr_to_section): Increase local buffer size.
1530
1531 2016-09-27 Richard Biener <rguenther@suse.de>
1532
1533 * dwarf2out.c (cu_die_list): New global.
1534 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
1535 main_comp_unit_die to cu_die_list if we created it.
1536 Move break_out_includes ...
1537 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
1538 the cu_die_list.
1539
1540 2016-09-28 Richard Biener <rguenther@suse.de>
1541
1542 * dwarf2out.c (struct die_struct): Add removed flag.
1543 (lookup_type_die): If the DIE is marked as removed, clear
1544 TYPE_SYMTAB_DIE and return NULL.
1545 (lookup_decl_die): If the DIE is marked as removed, remove it
1546 from the hash and return NULL.
1547 (mark_removed): New helper.
1548 (prune_unused_types_prune): Call it for removed DIEs.
1549 (gen_subprogram_die): Move the premark_used_types call to after
1550 DIEs for the functions scopes are generated.
1551 (process_scope_var): Do not re-create pruned types or type decls.
1552 Make sure to also re-parent type decls.
1553 (dwarf2out_finish): Move unused type pruning and debug_types
1554 handling ...
1555 (dwarf2out_early_finish): ... here.
1556
1557 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1558
1559 * config/arc/arc-c.c: New file.
1560 * config/arc/arc-c.def: Likewise.
1561 * config/arc/t-arc: Likewise.
1562 * config.gcc: Include arc-c.o as c and cpp object.
1563 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1564 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1565 arc_cpu_cpp_builtins.
1566
1567 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
1568
1569 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1570 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1571
1572 2016-09-28 Nathan Sidwell <nathan@acm.org>
1573
1574 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1575 printing.
1576
1577 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
1578
1579 PR tree-optimization/61056
1580 * gimple-fold.c (gimple_fold_builtin_strchr):
1581 New function to optimize strchr (s, 0) to strlen.
1582 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1583
1584 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
1585
1586 PR tree-optimization/77724
1587 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1588 Add tree_fits_shwi_p check.
1589
1590 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1591
1592 * auto-inc-dec.c (try_merge): Remove break after return.
1593 * cselib.c (autoinc_split): Likewise.
1594 * explow.c (promote_mode): Likewise.
1595 * fixed-value.c (fixed_arithmetic): Likewise.
1596 * hsa.c (hsa_internal_fn::get_arity): Likewise.
1597 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
1598 * trans-mem.c (get_attrs_for): Likewise.
1599 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1600 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
1601 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
1602 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
1603 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
1604 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
1605 * config/cris/cris.c (cris_op_str): Likewise.
1606 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
1607 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
1608
1609 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
1610
1611 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
1612 IFN_GOACC_REDUCTION_CODES): New.
1613 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
1614 ifn_goacc_reduction_kind): Use them.
1615 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
1616 of internal functions, when applicable.
1617
1618 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
1619
1620 * config/mips/constraints.md (d): Fix documentation.
1621 * doc/md.texi (Machine Constraints): Update accordingly.
1622
1623 2016-09-27 Richard Biener <rguenther@suse.de>
1624
1625 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
1626 cur_line_info_table initialization ...
1627 (dwarf2out_assembly_start): ... here.
1628
1629 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
1630
1631 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
1632 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
1633 (*thumb2_movhi_vfp): Likewise.
1634 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
1635 template. Expand predicable attribute to mark VMOV.F16 as not
1636 predicable. Add "arch" attribute.
1637 (*thumb2_movhi_fp16): Likewise.
1638 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
1639 (*thumb2_movsi_vfp): Add "arch" attribute.
1640
1641 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
1642
1643 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1644 VAR_DECL string.
1645
1646 2016-09-27 Marek Polacek <polacek@redhat.com>
1647
1648 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
1649 comment.
1650
1651 * config/c6x/c6x.h: Adjust fall through comment.
1652 * config/sh/sh.c (final_prescan_insn): Likewise.
1653 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
1654 (visium_expand_fp_cstore): Likewise.
1655
1656 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1657
1658 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
1659 expected by -Wimplicit-fallthrough.
1660 (thumb1_size_rtx_costs): Likewise.
1661 (thumb2_reorg): Likewise.
1662 (tls_mentioned_p): Add "Fall through" comment.
1663 (thumb2_reorg): Likewise.
1664 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
1665 comment form expected by -Wimplicit-fallthrough.
1666
1667 2016-09-27 Martin Liska <mliska@suse.cz>
1668
1669 PR gcov-profile/46266
1670 * input.h (RESERVED_LOCATION_P): New macro.
1671 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
1672 instread of comparison with UNKNOWN_LOCATION.
1673
1674 2016-09-27 Richard Biener <rguenther@suse.de>
1675
1676 PR tree-optimization/77745
1677 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1678 When removing redundant stores make sure to check compatibility
1679 of the TBAA state for downstream accesses.
1680 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1681 value-numbering virtual operands for store matches.
1682
1683 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
1684
1685 PR target/51244
1686 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
1687 movrt patterns. Match them before anything else in the SET case.
1688
1689 2016-09-27 Martin Liska <mliska@suse.cz>
1690
1691 PR gcov-profile/7970
1692 PR gcov-profile/16855
1693 PR gcov-profile/44779
1694 * coverage.c (build_gcov_exit_decl): New function.
1695 (coverage_obj_init): Call the function and generate __gcov_exit
1696 destructor.
1697 * doc/gcov.texi: Document when __gcov_exit function is called.
1698
1699 2016-09-27 Marek Polacek <polacek@redhat.com>
1700
1701 PR bootstrap/77751
1702 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1703 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
1704 -Wno-error instead of -Wno-implicit-fallthrough.
1705
1706 2016-09-27 Martin Liska <mliska@suse.cz>
1707
1708 PR bootstrap/77749
1709 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
1710
1711 2016-09-27 Jakub Jelinek <jakub@redhat.com>
1712
1713 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
1714 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
1715 comments. Remove break after return.
1716 (ix86_fp_compare_code_to_integer, has_dispatch,
1717 ix86_simd_clone_usable): Remove break after return.
1718
1719 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1720
1721 PR rlt-optimization/77714
1722 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
1723 REG_EQUAL note.
1724
1725 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
1726
1727 PR ipa/77677
1728 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
1729 extract_range_from_unary_expr to convert value_range.
1730 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
1731 (extract_range_from_unary_expr): This.
1732 * tree-vrp.h (extract_range_from_unary_expr): Declare.
1733
1734 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
1735
1736 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
1737
1738 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1739
1740 * config/i386/i386.c (ix86_print_operand)
1741 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
1742 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
1743 (epilogue_renumber): Likewise.
1744
1745 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
1746
1747 PR middle-end/77719
1748 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
1749 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
1750
1751 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
1752
1753 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1754 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
1755 is_mm_seq_cst, is_mm_sync): Move to ...
1756 * memmodel.h: This. New file.
1757 * builtins.c: Include memmodel.h.
1758 * optabs.c: Likewise.
1759 * tsan.c: Likewise.
1760 * config/aarch64/aarch64.c: Likewise.
1761 * config/alpha/alpha.c: Likewise.
1762 * config/arm/arm.c: Likewise.
1763 * config/i386/i386.c: Likewise.
1764 * config/ia64/ia64.c: Likewise.
1765 * config/mips/mips.c: Likewise.
1766 * config/rs6000/rs6000.c: Likewise.
1767 * config/sparc/sparc.c: Likewise.
1768 * genconditions.c: Include memmodel.h in generated file.
1769 * genemit.c: Likewise.
1770 * genoutput.c: Likewise.
1771 * genpeep.c: Likewise.
1772 * genpreds.c: Likewise.
1773 * genrecog.c: Likewise.
1774
1775 2016-09-26 David Malcolm <dmalcolm@redhat.com>
1776
1777 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
1778 "c" instead when parsing characters. Move operand parsing into...
1779 (read_rtx_operand): ...this new function, renaming "i" to "idx",
1780 and tightening the scope of various locals.
1781
1782 2016-09-26 Liu Hao <lh_mouse@126.com>
1783
1784 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
1785
1786 2016-09-26 Marek Polacek <polacek@redhat.com>
1787
1788 * system.h: Use __has_attribute to check whether the fallthrough
1789 attribute is supported.
1790
1791 2016-09-26 Marek Polacek <polacek@redhat.com>
1792
1793 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
1794 gimple_call_internal_p.
1795 * ipa-split.c (find_return_bb): Likewise.
1796 (execute_split_functions): Likewise.
1797 * omp-low.c (dump_oacc_loop_part): Likewise.
1798 (oacc_loop_xform_head_tail): Likewise.
1799 * predict.c (predict_loops): Likewise.
1800 * sanopt.c (pass_sanopt::execute): Likewise.
1801 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
1802 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
1803 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
1804 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
1805 (expand_ifn_va_arg): Likewise.
1806 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1807 (optimize_mask_stores): Likewise.
1808 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
1809 (vect_transform_stmt): Likewise.
1810 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
1811 * tsan.c (instrument_memory_accesses): Likewise.
1812
1813 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1814 Alexander Monakov <amonakov@ispras.ru>
1815
1816 * regrename.c (rename_chains): Check
1817 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
1818 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
1819 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1820
1821 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1822
1823 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
1824 (s390_sched_score): Likewise.
1825
1826 2016-09-26 Martin Liska <mliska@suse.cz>
1827
1828 * doc/gcov.texi: Update program output of gcov tool.
1829
1830 2016-09-26 Martin Liska <mliska@suse.cz>
1831
1832 PR gcov-profile/23332
1833 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
1834 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
1835 * value-prof.c (dump_histogram_value): Do not handle
1836 HIST_TYPE_CONST_DELTA.
1837 (stream_in_histogram_value): Likewise.
1838 (gimple_find_values_to_profile): Likewise.
1839 * value-prof.h (enum hist_type): Likewise.
1840
1841 2016-09-26 Martin Liska <mliska@suse.cz>
1842
1843 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
1844 from default sanitize recover values.
1845 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
1846 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
1847 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
1848 consistent.
1849 * opts.c (finish_options): Do a generic loop over options
1850 that can be recovered.
1851 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
1852 SANITIZE_RETURN.
1853 (common_handle_option): Likewise.
1854 * opts.h: Declare can_recover to sanitizer_opts_s.
1855
1856 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
1857
1858 * target.def(elf_flags_numeric): Change documentation to present tense.
1859 * doc/tm.texi: Regenerate.
1860
1861 2016-09-26 Marek Polacek <polacek@redhat.com>
1862
1863 PR c/7652
1864 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1865 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
1866 -Wno-switch-fallthrough.
1867 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
1868 (expand_builtin): Likewise.
1869 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
1870 * convert.c (convert_to_real_1): Likewise.
1871 (convert_to_integer_1): Likewise.
1872 * final.c (output_alternate_entry_point): Likewise.
1873 * genattrtab.c (make_canonical): Likewise.
1874 (write_test_expr): Likewise.
1875 * genpreds.c (validate_exp): Likewise.
1876 * gimple-ssa-strength-reduction.c
1877 (find_candidates_dom_walker::before_dom_children): Likewise.
1878 * godump.c (go_format_type): Likewise.
1879 * reload1.c (elimination_effects): Likewise.
1880 * resource.c (mark_referenced_resources): Likewise.
1881 (mark_set_resources): Likewise.
1882 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
1883 * varasm.c (output_addressed_constants): Likewise.
1884
1885 2016-09-26 Marek Polacek <polacek@redhat.com>
1886
1887 PR c/7652
1888 * common.opt (Wimplicit-fallthrough): New option.
1889 * doc/extend.texi: Document statement attributes and the fallthrough
1890 attribute.
1891 * doc/invoke.texi: Document -Wimplicit-fallthrough.
1892 * gimple.h (gimple_call_internal_p): New function.
1893 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
1894 (struct label_entry): New struct.
1895 (find_label_entry): New function.
1896 (case_label_p): New function.
1897 (collect_fallthrough_labels): New function.
1898 (last_stmt_in_scope): New function.
1899 (should_warn_for_implicit_fallthrough): New function.
1900 (warn_implicit_fallthrough_r): New function.
1901 (maybe_warn_implicit_fallthrough): New function.
1902 (expand_FALLTHROUGH_r): New function.
1903 (expand_FALLTHROUGH): New function.
1904 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
1905 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
1906 (gimplify_label_expr): New function.
1907 (gimplify_case_label_expr): Set location.
1908 (gimplify_expr): Call gimplify_label_expr.
1909 * internal-fn.c (expand_FALLTHROUGH): New function.
1910 * internal-fn.def (FALLTHROUGH): New internal function.
1911 * langhooks.c (lang_GNU_OBJC): New function.
1912 * langhooks.h (lang_GNU_OBJC): Declare.
1913 * system.h (gcc_fallthrough): Define.
1914 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1915 * tree.h (FALLTHROUGH_LABEL_P): Define.
1916
1917 2016-09-26 Richard Biener <rguenther@suse.de>
1918
1919 * dwarf2out.c (stripattributes): Remove unused function.
1920 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1921 Push dwarf_split_debug_info handling into init_sections_and_labels.
1922 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1923 (DEBUG_MACRO_SECTION_FLAGS): Remove.
1924 (debug_macinfo_section_name): New global.
1925 (output_macinfo): Use debug_macinfo_section_name.
1926 (init_sections_and_labels): Split out section and label generation
1927 from dwarf2out_init. Set debug_macinfo_section_name.
1928 (dwarf2out_init): Move text section label generation and emission
1929 to ...
1930 (dwarf2out_assembly_start): ... here.
1931 (dwarf2out_finish): Call init_sections_and_labels before DWARF
1932 output starts.
1933
1934 2016-09-26 Richard Biener <rguenther@suse.de>
1935
1936 PR debug/77692
1937 * cgraphunit.c (analyze_functions): Before early removing
1938 global vars calls the late_global_decl debug handler mark
1939 the variable as readonly.
1940
1941 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
1942
1943 PR target/51244
1944 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1945 (sh_rtx_costs): Handle SET of movt and movrt patterns.
1946 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1947 declare new overloads.
1948 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1949 operand.
1950
1951 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1952
1953 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1954 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1955
1956 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
1957
1958 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1959 * configure: Regenerate.
1960
1961 2016-09-24 Marek Polacek <polacek@redhat.com>
1962
1963 PR c/77490
1964 * doc/invoke.texi: Document -Wbool-operation.
1965
1966 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1967
1968 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1969 * config/rs6000/rs6000.c (expand_block_compare): New function used by
1970 cmpmemsi pattern to do builtin expansion of memcmp ().
1971 (compute_current_alignment): Add helper function for
1972 expand_block_compare used to compute alignment as the compare proceeds.
1973 (select_block_compare_mode): Used by expand_block_compare to select
1974 the mode used for reading the next chunk of bytes in the compare.
1975 (do_load_for_compare): Used by expand_block_compare to emit the load
1976 insns for the compare.
1977 (rs6000_emit_dot_insn): Moved this function to avoid a forward
1978 reference from expand_block_compare ().
1979 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1980 prototype for this function.
1981 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1982 target option for controlling how much code inline expansion of
1983 memcmp() will be allowed to generate.
1984
1985 2016-09-23 Jakub Jelinek <jakub@redhat.com>
1986
1987 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1988 hook_bool_mode_false, hook_bool_mode_true,
1989 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1990 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1991 hook_bool_const_rtx_insn_const_rtx_insn_true,
1992 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1993 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1994 hook_bool_const_tree_hwi_hwi_const_tree_false,
1995 hook_bool_const_tree_hwi_hwi_const_tree_true,
1996 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1997 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1998 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1999 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
2000 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
2001 hook_bool_const_tree_true, hook_bool_tree_tree_false,
2002 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
2003 hook_bool_rtx_insn_true, hook_bool_rtx_false,
2004 hook_bool_uintp_uintp_false,
2005 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
2006 hook_rtx_tree_int_null, hook_uint_mode_0,
2007 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
2008 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
2009 hook_constcharptr_const_rtx_insn_null,
2010 hook_constcharptr_const_tree_const_tree_null,
2011 hook_constcharptr_int_const_tree_null,
2012 hook_constcharptr_int_const_tree_const_tree_null,
2013 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
2014 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
2015 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
2016
2017 * vec.h (vNULL): Extend comment to say = vNULL initialization
2018 isn't needed for static vars.
2019
2020 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2021 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2022 = vNULL initialization of file scope vec.
2023 * passes.c (pass_tab, enabled_pass_uid_range_tab,
2024 disabled_pass_uid_range_tab): Likewise.
2025 * haifa-sched.c (sched_luids, h_i_d): Likewise.
2026 * tree-chkp-opt.c (check_infos): Likewise.
2027 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2028
2029 * vec.h (vnull::operator vec): Add constexpr keyword for
2030 C++11 and later.
2031
2032 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
2033
2034 PR tree-optimization/77654
2035 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2036 to duplicate_ssa_name_ptr_info.
2037
2038 2016-09-23 David Malcolm <dmalcolm@redhat.com>
2039
2040 PR preprocessor/77672
2041 * input.c (selftest::test_lexer_string_locations_simple): Update
2042 test to expect location information of the terminator character
2043 at the location of the final closing quote.
2044 (selftest::test_lexer_string_locations_hex): Likewise.
2045 (selftest::test_lexer_string_locations_oct): Likewise.
2046 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2047 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2048 (selftest::test_lexer_string_locations_ucn4): Likewise.
2049 (selftest::test_lexer_string_locations_ucn8): Likewise.
2050 (selftest::test_lexer_string_locations_u8): Likewise.
2051 (selftest::test_lexer_string_locations_utf8_source): Likewise.
2052 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2053 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2054 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2055 (selftest::test_lexer_string_locations_macro): Likewise.
2056 (selftest::test_lexer_string_locations_long_line): Likewise.
2057
2058 2016-09-23 Richard Biener <rguenther@suse.de>
2059
2060 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2061 virtual definition to virtual use if the call devirtualizes
2062 to a const or pure function.
2063 (visit_use): Also visit calls we can devirtualize to a
2064 const or pure function.
2065
2066 2016-09-23 Richard Biener <rguenther@suse.de>
2067
2068 PR tree-optimization/77697
2069 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2070 signal error if we have sth ternary or unhandled.
2071
2072 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2073
2074 * config/arm/arm_neon.h (vabd_f16): New.
2075 (vabdq_f16): New.
2076 (vabs_f16): New.
2077 (vabsq_f16): New.
2078 (vadd_f16): New.
2079 (vaddq_f16): New.
2080 (vcage_f16): New.
2081 (vcageq_f16): New.
2082 (vcagt_f16): New.
2083 (vcagtq_f16): New.
2084 (vcale_f16): New.
2085 (vcaleq_f16): New.
2086 (vcalt_f16): New.
2087 (vcaltq_f16): New.
2088 (vceq_f16): New.
2089 (vceqq_f16): New.
2090 (vceqz_f16): New.
2091 (vceqzq_f16): New.
2092 (vcge_f16): New.
2093 (vcgeq_f16): New.
2094 (vcgez_f16): New.
2095 (vcgezq_f16): New.
2096 (vcgt_f16): New.
2097 (vcgtq_f16): New.
2098 (vcgtz_f16): New.
2099 (vcgtzq_f16): New.
2100 (vcle_f16): New.
2101 (vcleq_f16): New.
2102 (vclez_f16): New.
2103 (vclezq_f16): New.
2104 (vclt_f16): New.
2105 (vcltq_f16): New.
2106 (vcltz_f16): New.
2107 (vcltzq_f16): New.
2108 (vcvt_f16_s16): New.
2109 (vcvt_f16_u16): New.
2110 (vcvt_s16_f16): New.
2111 (vcvt_u16_f16): New.
2112 (vcvtq_f16_s16): New.
2113 (vcvtq_f16_u16): New.
2114 (vcvtq_s16_f16): New.
2115 (vcvtq_u16_f16): New.
2116 (vcvta_s16_f16): New.
2117 (vcvta_u16_f16): New.
2118 (vcvtaq_s16_f16): New.
2119 (vcvtaq_u16_f16): New.
2120 (vcvtm_s16_f16): New.
2121 (vcvtm_u16_f16): New.
2122 (vcvtmq_s16_f16): New.
2123 (vcvtmq_u16_f16): New.
2124 (vcvtn_s16_f16): New.
2125 (vcvtn_u16_f16): New.
2126 (vcvtnq_s16_f16): New.
2127 (vcvtnq_u16_f16): New.
2128 (vcvtp_s16_f16): New.
2129 (vcvtp_u16_f16): New.
2130 (vcvtpq_s16_f16): New.
2131 (vcvtpq_u16_f16): New.
2132 (vcvt_n_f16_s16): New.
2133 (vcvt_n_f16_u16): New.
2134 (vcvtq_n_f16_s16): New.
2135 (vcvtq_n_f16_u16): New.
2136 (vcvt_n_s16_f16): New.
2137 (vcvt_n_u16_f16): New.
2138 (vcvtq_n_s16_f16): New.
2139 (vcvtq_n_u16_f16): New.
2140 (vfma_f16): New.
2141 (vfmaq_f16): New.
2142 (vfms_f16): New.
2143 (vfmsq_f16): New.
2144 (vmax_f16): New.
2145 (vmaxq_f16): New.
2146 (vmaxnm_f16): New.
2147 (vmaxnmq_f16): New.
2148 (vmin_f16): New.
2149 (vminq_f16): New.
2150 (vminnm_f16): New.
2151 (vminnmq_f16): New.
2152 (vmul_f16): New.
2153 (vmul_lane_f16): New.
2154 (vmul_n_f16): New.
2155 (vmulq_f16): New.
2156 (vmulq_lane_f16): New.
2157 (vmulq_n_f16): New.
2158 (vneg_f16): New.
2159 (vnegq_f16): New.
2160 (vpadd_f16): New.
2161 (vpmax_f16): New.
2162 (vpmin_f16): New.
2163 (vrecpe_f16): New.
2164 (vrecpeq_f16): New.
2165 (vrnd_f16): New.
2166 (vrndq_f16): New.
2167 (vrnda_f16): New.
2168 (vrndaq_f16): New.
2169 (vrndm_f16): New.
2170 (vrndmq_f16): New.
2171 (vrndn_f16): New.
2172 (vrndnq_f16): New.
2173 (vrndp_f16): New.
2174 (vrndpq_f16): New.
2175 (vrndx_f16): New.
2176 (vrndxq_f16): New.
2177 (vrsqrte_f16): New.
2178 (vrsqrteq_f16): New.
2179 (vrecps_f16): New.
2180 (vrecpsq_f16): New.
2181 (vrsqrts_f16): New.
2182 (vrsqrtsq_f16): New.
2183 (vsub_f16): New.
2184 (vsubq_f16): New.
2185
2186 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2187
2188 * config.gcc (extra_headers): Add arm_fp16.h
2189 * config/arm/arm_fp16.h: New.
2190 * config/arm/arm_neon.h: Include "arm_fp16.h".
2191
2192 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2193
2194 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2195 variants).
2196 (vmulf): New (v8hf, v4hf variants).
2197 (vfma): New (v8hf, v4hf variants).
2198 (vfms): New (v8hf, v4hf variants).
2199 (vsub): New (v8hf, v4hf variants).
2200 (vcage): New (v8hf, v4hf variants).
2201 (vcagt): New (v8hf, v4hf variants).
2202 (vcale): New (v8hf, v4hf variants).
2203 (vcalt): New (v8hf, v4hf variants).
2204 (vceq): New (v8hf, v4hf variants).
2205 (vcgt): New (v8hf, v4hf variants).
2206 (vcge): New (v8hf, v4hf variants).
2207 (vcle): New (v8hf, v4hf variants).
2208 (vclt): New (v8hf, v4hf variants).
2209 (vceqz): New (v8hf, v4hf variants).
2210 (vcgez): New (v8hf, v4hf variants).
2211 (vcgtz): New (v8hf, v4hf variants).
2212 (vcltz): New (v8hf, v4hf variants).
2213 (vclez): New (v8hf, v4hf variants).
2214 (vabd): New (v8hf, v4hf variants).
2215 (vmaxf): New (v8hf, v4hf variants).
2216 (vmaxnm): New (v8hf, v4hf variants).
2217 (vminf): New (v8hf, v4hf variants).
2218 (vminnm): New (v8hf, v4hf variants).
2219 (vpmaxf): New (v4hf variant).
2220 (vpminf): New (v4hf variant).
2221 (vpadd): New (v4hf variant).
2222 (vrecps): New (v8hf, v4hf variants).
2223 (vrsqrts): New (v8hf, v4hf variants).
2224 (vabs): New (v8hf, v4hf variants).
2225 (vneg): New (v8hf, v4hf variants).
2226 (vrecpe): New (v8hf, v4hf variants).
2227 (vrnd): New (v8hf, v4hf variants).
2228 (vrnda): New (v8hf, v4hf variants).
2229 (vrndm): New (v8hf, v4hf variants).
2230 (vrndn): New (v8hf, v4hf variants).
2231 (vrndp): New (v8hf, v4hf variants).
2232 (vrndx): New (v8hf, v4hf variants).
2233 (vrsqrte): New (v8hf, v4hf variants).
2234 (vmul_lane): Add v4hf and v8hf variants.
2235 (vmul_n): Add v4hf and v8hf variants.
2236 (vext): New (v8hf, v4hf variants).
2237 (vcvts): New (v8hi, v4hi variants).
2238 (vcvts): New (v8hf, v4hf variants).
2239 (vcvtu): New (v8hi, v4hi variants).
2240 (vcvtu): New (v8hf, v4hf variants).
2241 (vcvts_n): New (v8hf, v4hf variants).
2242 (vcvtu_n): New (v8hi, v4hi variants).
2243 (vcvts_n): New (v8hi, v4hi variants).
2244 (vcvtu_n): New (v8hf, v4hf variants).
2245 (vbsl): New (v8hf, v4hf variants).
2246 (vcvtas): New (v8hf, v4hf variants).
2247 (vcvtau): New (v8hf, v4hf variants).
2248 (vcvtms): New (v8hf, v4hf variants).
2249 (vcvtmu): New (v8hf, v4hf variants).
2250 (vcvtns): New (v8hf, v4hf variants).
2251 (vcvtnu): New (v8hf, v4hf variants).
2252 (vcvtps): New (v8hf, v4hf variants).
2253 (vcvtpu): New (v8hf, v4hf variants).
2254
2255 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2256
2257 * config/arm/arm-builtins.c (hf_UP): New.
2258 (si_UP): New.
2259 (vfp_builtin_data): New. Update comment.
2260 (enum arm_builtins): Include "arm_vfp_builtins.def".
2261 (ARM_BUILTIN_VFP_PATTERN_START): New.
2262 (arm_init_vfp_builtins): New.
2263 (arm_init_builtins): Add arm_init_vfp_builtins.
2264 (arm_expand_vfp_builtin): New.
2265 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
2266 long line.
2267 * config/arm/arm_vfp_builtins.def: New file.
2268 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2269 (arm-builtins.o): Likewise.
2270
2271 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2272
2273 PR ipa/77677
2274 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2275 from constant while creating value range.
2276
2277 2016-09-23 Renlin Li <renlin.li@arm.com>
2278
2279 * ira.c (ira): Move ira_use_lra_p initialization code to ...
2280 (ira_init_once): Here.
2281
2282 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
2283 Jakub Jelinek <jakub@redhat.com>
2284
2285 * hooks.h (hook_uint_uintp_false): Rename to...
2286 (hook_bool_uint_uintp_false): ... this.
2287 * hooks.c (hook_uint_uintp_false): Rename to...
2288 (hook_bool_uint_uintp_false): ... this.
2289 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2290 instead of hook_uint_uintp_false.
2291
2292 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2293
2294 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2295 (arm_init_builtins): Move body of a loop to the standalone
2296 function arm_init_neon_builtin.
2297 (arm_expand_neon_builtin_1): New. Update comment. Function body
2298 moved from arm_neon_builtin with some white-space fixes.
2299 (arm_expand_neon_builtin): Move code into the standalone function
2300 arm_expand_neon_builtin_1.
2301
2302 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2303
2304 * config/arm/iterators.md (VCVTHI): New.
2305 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
2306 (NEON_VAGLTE): New.
2307 (VFM_LANE_AS): New.
2308 (VH_CVTTO): New.
2309 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
2310 (V_HALF): Add V4HF. Fix white-space.
2311 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
2312 (V_s_elem): Likewise.
2313 (V_sz_elem): Fix white-space.
2314 (V_elem_ch): Likewise.
2315 (VH_elem_ch): New.
2316 (scalar_mul_constraint): Add V8HF and V4HF.
2317 (Is_float_mode): Fix white-space.
2318 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
2319 (q): Add HF. Fix white-space.
2320 (float_sup): New.
2321 (float_SUP): New.
2322 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2323 (neon_vfm_lane_as): New.
2324 * config/arm/neon.md (add<mode>3_fp16): New.
2325 (sub<mode>3_fp16): New.
2326 (mul<mode>3add<mode>_neon): New.
2327 (fma<VH:mode>4_intrinsic): New.
2328 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2329 (fmsub<VH:mode>4_intrinsic): New.
2330 (<absneg_str><mode>2): New.
2331 (neon_v<absneg_str><mode>): New.
2332 (neon_v<fp16_rnd_str><mode>): New.
2333 (neon_vrsqrte<mode>): New.
2334 (neon_vpaddv4hf): New.
2335 (neon_vadd<mode>): New.
2336 (neon_vsub<mode>): New.
2337 (neon_vmulf<mode>): New.
2338 (neon_vfma<VH:mode>): New.
2339 (neon_vfms<VH:mode>): New.
2340 (neon_vc<cmp_op><mode>): New.
2341 (neon_vc<cmp_op><mode>_fp16insn): New
2342 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2343 (neon_vca<cmp_op><mode>): New.
2344 (neon_vca<cmp_op><mode>_fp16insn): New.
2345 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2346 (neon_vc<cmp_op>z<mode>): New.
2347 (neon_vabd<mode>): New.
2348 (neon_v<maxmin>f<mode>): New.
2349 (neon_vp<maxmin>fv4hf: New.
2350 (neon_<fmaxmin_op><mode>): New.
2351 (neon_vrecps<mode>): New.
2352 (neon_vrsqrts<mode>): New.
2353 (neon_vrecpe<mode>): New (VH variant).
2354 (neon_vdup_lane<mode>_internal): New.
2355 (neon_vdup_lane<mode>): New.
2356 (neon_vcvt<sup><mode>): New (VCVTHI variant).
2357 (neon_vcvt<sup><mode>): New (VH variant).
2358 (neon_vcvt<sup>_n<mode>): New (VH variant).
2359 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2360 (neon_vcvt<vcvth_op><sup><mode>): New.
2361 (neon_vmul_lane<mode>): New.
2362 (neon_vmul_n<mode>): New.
2363 * config/arm/unspecs.md (UNSPEC_VCALE): New
2364 (UNSPEC_VCALT): New.
2365 (UNSPEC_VFMA_LANE): New.
2366 (UNSPECS_VFMS_LANE): New.
2367
2368 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2369
2370 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2371 ("*extzv<mode><clobbercc_or_nocc>"):
2372 Correct a typo in a comment.
2373 Merged patterns.
2374 ("*insv<mode>_zEC12", "*insv<mode>_z10")
2375 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2376 ("*insv<mode>_zEC12_appendbitsleft")
2377 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2378 ("*insv<mode>_z10_appendbitsleft"): Ditto.
2379 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2380 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2381 Provide pattern with operands switched.
2382 ("*pre_z10_extv<mode>"):
2383 Use new subst patterns.
2384 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2385 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2386 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2387 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2388 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2389 ("*<risbg_n>_sidi_ior_and_lshiftrt")
2390 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2391 New patterns.
2392 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2393 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2394 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2395 on zEC12.
2396 ("SINT"): New mode_iterator with SI, HI, QI.
2397 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2398 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2399 duplication.
2400
2401 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2402
2403 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2404 new interface of s390_contiguous_bitmask_p.
2405 ("contiguous_bitmask_nowrap_operand"): New predicate.
2406 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2407 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2408 of s390_contiguous_bitmask_p.
2409 ("NxxDw"): Rename NxxDq constraint to NxxDw.
2410 ("NxxSw"): New constraint.
2411 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2412 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2413 interface.
2414 (s390_contiguous_bitmask_nowrap_p): Export.
2415 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2416 former s390_contiguous_bitmask_p.
2417 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2418 detect contiguous bit ranges with wraparound. Change signature to
2419 return START and END position instead of POS and LENGTH.
2420 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2421 ranges with wraparound.
2422 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2423 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2424 Adapt to new signature of s390_contiguous_bitmask_p.
2425
2426 2016-09-23 Bin Cheng <bin.cheng@arm.com>
2427
2428 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2429 (create_intersect_range_checks): New.
2430 (vect_create_cond_for_alias_checks): Call above function.
2431
2432 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2433
2434 * config/arm/iterators.md (Code iterators): Fix some white-space
2435 in the comments.
2436 (GLTE): New.
2437 (ABSNEG): New
2438 (FCVT): Moved from vfp.md.
2439 (VCVT_HF_US_N): New.
2440 (VCVT_SI_US_N): New.
2441 (VCVT_HF_US): New.
2442 (VCVTH_US): New.
2443 (FP16_RND): New.
2444 (absneg_str): New.
2445 (FCVTI32typename): Moved from vfp.md.
2446 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2447 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2448 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2449 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
2450 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2451 (vcvth_op): New.
2452 (fp16_rnd_str): New.
2453 (fp16_rnd_insn): New.
2454 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2455 (UNSPEC_VCVT_HF_U_N): New.
2456 (UNSPEC_VCVT_SI_S_N): New.
2457 (UNSPEC_VCVT_SI_U_N): New.
2458 (UNSPEC_VCVTH_S): New.
2459 (UNSPEC_VCVTH_U): New.
2460 (UNSPEC_VCVTA_S): New.
2461 (UNSPEC_VCVTA_U): New.
2462 (UNSPEC_VCVTM_S): New.
2463 (UNSPEC_VCVTM_U): New.
2464 (UNSPEC_VCVTN_S): New.
2465 (UNSPEC_VCVTN_U): New.
2466 (UNSPEC_VCVTP_S): New.
2467 (UNSPEC_VCVTP_U): New.
2468 (UNSPEC_VCVTP_S): New.
2469 (UNSPEC_VCVTP_U): New.
2470 (UNSPEC_VRND): New.
2471 (UNSPEC_VRNDA): New.
2472 (UNSPEC_VRNDI): New.
2473 (UNSPEC_VRNDM): New.
2474 (UNSPEC_VRNDN): New.
2475 (UNSPEC_VRNDP): New.
2476 (UNSPEC_VRNDX): New.
2477 * config/arm/vfp.md (<absneg_str>hf2): New.
2478 (neon_vabshf): New.
2479 (neon_v<fp16_rnd_str>hf): New.
2480 (neon_vrndihf): New.
2481 (addhf3): New.
2482 (subhf3): New.
2483 (divhf3): New.
2484 (mulhf3): New.
2485 (*mulsf3neghf_vfp): New.
2486 (*negmulhf3_vfp): New.
2487 (*mulsf3addhf_vfp): New.
2488 (*mulhf3subhf_vfp): New.
2489 (*mulhf3neghfaddhf_vfp): New.
2490 (*mulhf3neghfsubhf_vfp): New.
2491 (fmahf4): New.
2492 (neon_vfmahf): New.
2493 (fmsubhf4_fp16): New.
2494 (neon_vfmshf): New.
2495 (*fnmsubhf4): New.
2496 (*fnmaddhf4): New.
2497 (neon_vsqrthf): New.
2498 (neon_vrsqrtshf): New.
2499 (FCVT): Move to iterators.md.
2500 (FCVTI32typename): Likewise.
2501 (neon_vcvth<sup>hf): New.
2502 (neon_vcvth<sup>si): New.
2503 (neon_vcvth<sup>_nhf_unspec): New.
2504 (neon_vcvth<sup>_nhf): New.
2505 (neon_vcvth<sup>_nsi_unspec): New.
2506 (neon_vcvth<sup>_nsi): New.
2507 (neon_vcvt<vcvth_op>h<sup>si): New.
2508 (neon_<fmaxmin_op>hf): New.
2509
2510 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2511
2512 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2513 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2514 ("*insv<mode>_zEC12_appendbitsleft")
2515 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2516 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2517
2518 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2519
2520 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2521 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2522 construct values without normalization.
2523 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2524 static local lhs_ops to vNULL.
2525
2526 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2527 Jiong Wang <jiong.wang@arm.com>
2528
2529 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2530 available when FP16 instructions are available.
2531 (output_move_vfp): Add support for 16-bit data moves.
2532 (arm_validize_comparison): Fix some white-space. Support HFmode
2533 by conversion to SFmode.
2534 * config/arm/arm.md (truncdfhf2): Fix a comment.
2535 (extendhfdf2): Likewise.
2536 (cstorehf4): New.
2537 (movsicc): Fix some white-space.
2538 (movhfcc): New.
2539 (movsfcc): Fix some white-space.
2540 (*cmovhf): New.
2541 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2542 instructions are available.
2543 (*thumb2_movhi_vfp): Likewise.
2544 (*arm_movhi_fp16): New.
2545 (*thumb2_movhi_fp16): New.
2546 (*movhf_vfp_fp16): New.
2547 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2548 (*movhf_vfp): Likewise.
2549 (extendhfsf2): Enable when VFP FP16 instructions are available.
2550 (truncsfhf2): Enable when VFP FP16 instructions are available.
2551
2552 2016-09-23 Martin Liska <mliska@suse.cz>
2553
2554 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2555
2556 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2557
2558 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2559 V4HF modes.
2560 (arm_evpc_neon_vtrn): Likewise.
2561 (arm_evpc_neon_vrev): Likewise.
2562 (arm_evpc_neon_vext): Likewise.
2563 * config/arm/arm_neon.h (vbsl_f16): New.
2564 (vbslq_f16): New.
2565 (vdup_n_f16): New.
2566 (vdupq_n_f16): New.
2567 (vdup_lane_f16): New.
2568 (vdupq_lane_f16): New.
2569 (vext_f16): New.
2570 (vextq_f16): New.
2571 (vmov_n_f16): New.
2572 (vmovq_n_f16): New.
2573 (vrev64_f16): New.
2574 (vrev64q_f16): New.
2575 (vtrn_f16): New.
2576 (vtrnq_f16): New.
2577 (vuzp_f16): New.
2578 (vuzpq_f16): New.
2579 (vzip_f16): New.
2580 (vzipq_f16): New.
2581 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2582 (vdup_lane): New (v8hf, v4hf variants).
2583 (vext): New (v8hf, v4hf variants).
2584 (vbsl): New (v8hf, v4hf variants).
2585 * config/arm/iterators.md (VDQWH): New.
2586 (VH): New.
2587 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
2588 (Scalar_mul_8_16): Fix white-space.
2589 (Is_d_reg): Add V4HF and V8HF.
2590 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2591 (neon_vdup_lane<mode>): New.
2592 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2593 (*neon_vtrn<mode>_insn): Likewise.
2594 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
2595 (*neon_vzip<mode>_insn): Likewise
2596 (neon_vuzp<mode>_internal): Likewise.
2597 (*neon_vuzp<mode>_insn): Likewise
2598 * config/arm/vec-common.md (vec_perm_const<mode>): New.
2599
2600 2016-09-23 Jiong Wang <jiong.wang@arm.com>
2601 Matthew Wahab <matthew.wahab@arm.com>
2602
2603 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
2604 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
2605 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
2606 available. Also fix some white-space.
2607 * config/arm/vfp.md (*arm_movhi_vfp): New.
2608 (*thumb2_movhi_vfp): New.
2609
2610 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2611
2612 * config/arm/arm-c.c (arm_cpu_builtins): Define
2613 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
2614 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
2615
2616 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2617
2618 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
2619 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
2620 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
2621 arm_v8_2a_fp16_neon_hw.
2622 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
2623 arm_v8_2a_neon.
2624
2625 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2626
2627 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
2628 arm_fp16_alternative_ok and arm_fp16_none_ok.
2629
2630 2016-09-23 Martin Liska <mliska@suse.cz>
2631
2632 * ipa-icf.c (sem_variable::merge): Replace adress with address.
2633
2634 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
2635
2636 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
2637 ("armv8.2-a"): New.
2638 ("armv8.2-a+fp16"): New.
2639 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
2640 (FL2_FP16INST): New.
2641 (FL2_FOR_ARCH8_2A): New.
2642 * config/arm/arm-tables.opt: Regenerate.
2643 * config/arm/arm.c (arm_arch8_2): New.
2644 (arm_fp16_inst): New.
2645 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
2646 for incompatible fp16-format settings.
2647 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
2648 (TARGET_NEON_FP16INST): New.
2649 (arm_arch8_2): Declare.
2650 (arm_fp16_inst): Declare.
2651 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
2652 march=armv8.2-a and march=armv8.2-a+fp16.
2653 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
2654 and armv8.2-a+fp16.
2655 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
2656 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
2657
2658 2016-09-23 Martin Liska <mliska@suse.cz>
2659
2660 * doc/extend.texi: Remove fused-madd from i386 target options.
2661
2662 2016-09-23 Martin Liska <mliska@suse.cz>
2663
2664 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2665 Handle movbe.
2666
2667 2016-09-23 Martin Liska <mliska@suse.cz>
2668
2669 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2670 Handle crc32.
2671
2672 2016-09-23 Martin Liska <mliska@suse.cz>
2673
2674 PR target/71652
2675 * config/i386/i386.c (ix86_option_override_internal): Change
2676 signature and return false when there's an error related to
2677 arch string.
2678 (release_options_strings): New function.
2679 (ix86_valid_target_attribute_tree): Call the function.
2680
2681 2016-09-23 Jakub Jelinek <jakub@redhat.com>
2682
2683 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
2684 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
2685 (gen_hsa_ctor_assignment): Likewise.
2686 * print-tree.c (print_node): Likewise.
2687 * tree-dump.c (dequeue_and_dump): Likewise.
2688 * tree-sra.c (sra_modify_constructor_assign): Likewise.
2689 * expr.c (store_constructor): Likewise.
2690 * fold-const.c (operand_equal_p): Likewise.
2691 * tree-pretty-print.c (dump_generic_node): Likewise.
2692 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
2693 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
2694
2695 2016-09-23 Richard Biener <rguenther@suse.de>
2696
2697 * hooks.h (hook_uint_uintp_false): Declare.
2698
2699 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2700
2701 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
2702 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
2703
2704 2016-09-22 Martin Sebor <msebor@redhat.com>
2705
2706 PR target/77676
2707 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
2708 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
2709 (target_int_min): Correct computation.
2710 (format_integer): Use long long as the argument for the ll length
2711 modifier.
2712 (format_floating): Use target_int_max().
2713 (get_string_length): Same.
2714 (format_string): Avoid setting the bounded flag for strings
2715 of unknown length.
2716 (try_substitute_return_value): Avoid setting range info when
2717 the result isn't bounded.
2718 * varasm.c (assemble_name): Increase buffer size.
2719
2720 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
2721 Terry Guo <terry.guo@arm.com>
2722
2723 * target.def (elf_flags_numeric): New target hook.
2724 * targhooks.h (default_asm_elf_flags_numeric): New.
2725 * varasm.c (default_asm_elf_flags_numeric): New.
2726 (default_elf_asm_named_section): Use new target hook.
2727 * config/arm/arm.opt (mpure-code): New.
2728 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
2729 * config/arm/arm.c (arm_asm_init_sections): Add section
2730 attribute to default text section if -mpure-code.
2731 (arm_option_check_internal): Diagnose use of option with
2732 non supported targets and/or options.
2733 (arm_asm_elf_flags_numeric): New.
2734 (arm_function_section): New.
2735 (arm_elf_section_type_flags): New.
2736 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
2737 for -mpure-code.
2738 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
2739 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
2740
2741 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
2742
2743 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
2744
2745 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2746
2747 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
2748 * rtl.h: Adjust prototype.
2749
2750 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2751
2752 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
2753 (prev_active_insn): Likewise.
2754 (active_insn_p): Likewise.
2755 * rtl.h: Adjust prototypes.
2756 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
2757 * config/arc/arc.md: Likewise.
2758 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
2759 (branch_needs_nop_p): Likewise.
2760 (use_skip_p): Likewise.
2761 * config/sh/sh.c (gen_block_redirect): Likewise.
2762 (split_branches): Likewise.
2763 * reorg.c (optimize_skip): Likewise.
2764 (fill_simple_delay_slots): Likewise.
2765 (fill_slots_from_thread): Likewise.
2766 (relax_delay_slots): Likewise.
2767 * resource.c (mark_target_live_regs): Likewise.
2768
2769 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2770
2771 * config/cris/cris.c (cris_asm_output_case_end): Change argument
2772 type to rtx_insn *.
2773 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
2774 (prev_nonnote_nondebug_insn): Likewise.
2775 * config/cris/cris-protos.h: Adjust prototype.
2776 * rtl.h: Likewise.
2777 * jump.c (rtx_renumbered_equal_p): Adjust.
2778
2779 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2780
2781 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
2782 * rtl.h: Adjust prototype.
2783 * config/sh/sh.md: Adjust.
2784 * dwarf2out.c (add_var_loc_to_decl): Likewise.
2785
2786 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2787
2788 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
2789 (prev_nondebug_insn): Likewise.
2790 * loop-doloop.c (doloop_condition_get): Likewise.
2791 * rtl.h: Adjust prototype.
2792 * cfgloop.h: Likewise.
2793
2794 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2795
2796 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
2797 (prev_nonnote_insn): Likewise.
2798 * jump.c (reversed_comparison_code_parts): Likewise.
2799 (reversed_comparison): Likewise.
2800 * rtl.h: Adjust prototypes.
2801 * config/arc/arc.md: Adjust.
2802 * cse.c (find_comparison_args): Likewise.
2803 * reorg.c (redundant_insn): Change return type to rtx_insn *.
2804 (fix_reg_dead_note): Change argument type to rtx_insn *.
2805 (delete_prior_computation): Likewise.
2806 (delete_computation): Likewise.
2807 (fill_slots_from_thread): Adjust.
2808 (relax_delay_slots): Likewise.
2809 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2810 (simplify_relational_operation_1): Likewise.
2811 (simplify_ternary_operation): Likewise.
2812
2813 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2814
2815 * config/arc/arc-protos.h (arc_label_align): Change type of
2816 variables from rtx to rtx_insn *.
2817 * config/arc/arc.c (arc_label_align): Likewise.
2818 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
2819 * config/bfin/bfin.c (workaround_speculation): Likewise.
2820 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
2821 (find_last_same_clock): Likewise.
2822 (reorg_split_calls): Likewise.
2823 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
2824 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
2825 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
2826 (same_cmp_following_p): Likewise.
2827 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
2828 (same_cmp_following_p): Likwise.
2829 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
2830 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
2831 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
2832 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
2833 (rl78_alloc_physical_registers_cmp): Likewise.
2834 (rl78_alloc_physical_registers_umul): Likewise.
2835 (rl78_calculate_death_notes): Likewise.
2836 * config/s390/s390-protos.h (s390_label_align): Likewise.
2837 * config/s390/s390.c (s390_label_align): Likewise.
2838 * config/sh/sh.c (barrier_align): Likewise.
2839 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
2840 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
2841 (emit_cbcond_nop): Likewise.
2842
2843 2016-09-22 Martin Liska <mliska@suse.cz>
2844
2845 PR ipa/77653
2846 * ipa-icf.c (sem_variable::merge): Yield merge operation if
2847 alias address matters, not necessarily address of original.
2848
2849 2016-09-22 Richard Biener <rguenther@suse.de>
2850
2851 PR middle-end/77697
2852 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
2853 fold fails.
2854
2855 2016-09-22 Richard Biener <rguenther@suse.de>
2856
2857 PR middle-end/77677
2858 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
2859 from constant folding results.
2860 (gimple_resimplify2): Likewise.
2861 (gimple_resimplify3): Likewise.
2862
2863 2016-09-22 Richard Biener <rguenther@suse.de>
2864
2865 PR middle-end/77678
2866 * expr.c (expand_expr_real_1): Guard array access against negative
2867 offset.
2868
2869 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2870
2871 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
2872 of MPFR_RNDN.
2873 (format_floating): Likewise.
2874
2875 2016-09-22 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR fortran/77665
2878 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2879 for all IFN_GOMP_SIMD_* internal fns, not just for
2880 IFN_GOMP_SIMD_ORDERED_*.
2881
2882 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2883
2884 PR target/77670
2885 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
2886 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
2887 instructions when you want to invert the test.
2888 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
2889 correct order for XXSEL.
2890 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
2891 for using XSCMP{EQ,GT,GE}DP.
2892
2893 2016-09-21 David Malcolm <dmalcolm@redhat.com>
2894
2895 * genconstants.c (main): Introduce noop_reader and convert call
2896 to read_md_files to a method call.
2897 * genenums.c (main): Likewise.
2898 * genmddeps.c (main): Likewise.
2899 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
2900 rtx_reader_ptr->get_top_level_filename ().
2901 (write_tm_preds_h): Likewise.
2902 (write_insn_preds_c): Likewise.
2903 * gensupport.c (class gen_reader): New subclass of rtx_reader.
2904 (rtx_handle_directive): Convert to...
2905 (gen_reader::handle_unknown_directive): ...this.
2906 (init_rtx_reader_args_cb): Convert return type from bool to
2907 rtx_reader *. Create a gen_reader instance, using it for the
2908 call to read_md_files. Return it if no errors occur.
2909 (init_rtx_reader_args): Convert return type from bool to
2910 rtx_reader *.
2911 * gensupport.h (init_rtx_reader_args_cb): Likewise.
2912 (init_rtx_reader_args_cb): Likewise.
2913 * read-md.c (struct file_name_list): Move to class rtx_reader.
2914 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2915 (read_md_filename): Delete in favor of
2916 rtx_reader::m_read_md_filename.
2917 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2918 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2919 (base_dir): Delete in favor of rtx_reader::m_base_dir.
2920 (first_dir_md_include): Delete in favor of
2921 rtx_reader::m_first_dir_md_include.
2922 (last_dir_md_include_ptr): Delete in favor of
2923 rtx_reader::m_last_dir_md_include_ptr.
2924 (max_include_len): Delete.
2925 (rtx_reader_ptr): New.
2926 (fatal_with_file_and_line): Use get_filename and get_lineno
2927 accessors of rtx_reader_ptr.
2928 (require_char_ws): Likewise.
2929 (rtx_reader::read_char): New method, based on ::read_char.
2930 (rtx_reader::unread_char): New method, based on ::unread_char.
2931 (read_escape): Use get_filename and get_lineno accessors of
2932 rtx_reader_ptr.
2933 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2934 (read_string): Use get_filename and get_lineno accessors of
2935 rtx_reader_ptr.
2936 (rtx_reader::rtx_reader): New ctor.
2937 (rtx_reader::~rtx_reader): New dtor.
2938 (handle_include): Convert from a function to...
2939 (rtx_reader::handle_include): ...this method, converting
2940 handle_directive from a callback to a virtual function.
2941 (handle_file): Likewise, converting to...
2942 (rtx_reader::handle_file): ...this method.
2943 (handle_toplevel_file): Likewise, converting to...
2944 (rtx_reader::handle_toplevel_file): ...this method.
2945 (rtx_reader::get_current_location): New method.
2946 (parse_include): Convert from a function to...
2947 (rtx_reader::add_include_path): ...this method, dropping redundant
2948 update to unused max_include_len.
2949 (read_md_files): Convert from a function to...
2950 (rtx_reader::read_md_files): ...this method, converting
2951 handle_directive from a callback to a virtual function.
2952 (noop_reader::handle_unknown_directive): New method.
2953 * read-md.h (directive_handler_t): Delete this typedef.
2954 (in_fname): Delete.
2955 (read_md_file): Delete.
2956 (read_md_lineno): Delete.
2957 (read_md_filename): Delete.
2958 (class rtx_reader): New class.
2959 (rtx_reader_ptr): New decl.
2960 (class noop_reader): New subclass of rtx_reader.
2961 (read_char): Reimplement in terms of rtx_reader::read_char.
2962 (unread_char): Reimplement in terms of rtx_reader::unread_char.
2963 (read_md_files): Delete.
2964 * read-rtl.c (read_rtx_code): Update for deletion of globals
2965 read_md_filename and read_md_lineno.
2966
2967 2016-09-21 Jason Merrill <jason@redhat.com>
2968
2969 * input.h (from_macro_definition_at): New.
2970
2971 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
2972
2973 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2974
2975 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2976
2977 PR tree-optimization/77550
2978 * tree-vect-stmts.c (create_array_ref): Change parameters.
2979 (get_group_alias_ptr_type): New function.
2980 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2981
2982 2016-09-21 Marek Polacek <polacek@redhat.com>
2983
2984 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2985 Add falls through comment.
2986
2987 2016-09-21 Richard Biener <rguenther@suse.de>
2988
2989 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2990 (replace_child): Likewise.
2991 (remove_child_TAG): Adjust.
2992 (move_marked_base_types): Likewise.
2993 (prune_unused_types_prune): Clear die_sib of removed children.
2994
2995 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
2996
2997 PR target/77326
2998 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2999 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3000
3001 2016-09-21 Richard Biener <rguenther@suse.de>
3002
3003 PR tree-optimization/77648
3004 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3005 with complex RHS.
3006 (make_transitive_closure_constraints): Adjust comment.
3007 (make_any_offset_constraints): New function.
3008 (handle_rhs_call): Make sure to first expand a pointer to all
3009 subfields before transitively closing it.
3010 (handle_const_call): Likewise. Properly expand returned
3011 pointers as well.
3012 (handle_pure_call): Likewise.
3013
3014 2016-09-21 Richard Biener <rguenther@suse.de>
3015 Jakub Jelinek <jakub@redhat.com>
3016
3017 PR tree-optimization/77621
3018 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3019 group at non-vectorizable stmts.
3020
3021 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3022
3023 PR tree-optimization/72835
3024 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3025 (make_new_ssa_for_all_defs): Likewise.
3026 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3027
3028 2016-09-20 Martin Sebor <msebor@redhat.com>
3029
3030 PR middle-end/49905
3031 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3032 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3033 * config/linux.c (gnu_libc_printf_pointer_format): New function.
3034 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3035 * config/sol2.c (solaris_printf_pointer_format): New function.
3036 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3037 options.
3038 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3039 * doc/tm.texi: Regenerate.
3040 * gimple-fold.h (get_range_strlen): New function.
3041 (get_maxval_strlen): Declare existing function.
3042 * gimple-fold.c (get_range_strlen): Add arguments and compute both
3043 maximum and minimum.
3044 (get_range_strlen): Define overload.
3045 (get_maxval_strlen): Adjust.
3046 * gimple-ssa-sprintf.c: New file and pass.
3047 * passes.def (pass_sprintf_length): Add new pass.
3048 * targhooks.h (default_printf_pointer_format): Declare new function.
3049 (gnu_libc_printf_pointer_format): Same.
3050 (solaris_libc_printf_pointer_format): Same.
3051 * targhooks.c (default_printf_pointer_format): Define new function.
3052 * tree-pass.h (make_pass_sprintf_length): Declare new function.
3053 * print-tree.c: Increase buffer size.
3054
3055 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3056
3057 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3058
3059 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3060
3061 * common.opt: New option -fipa-vrp.
3062 * ipa-cp.c (ipa_get_vr_lat): New.
3063 (ipcp_vr_lattice::print): Likewise.
3064 (print_all_lattices): Call ipcp_vr_lattice::print.
3065 (ipcp_vr_lattice::meet_with): New.
3066 (ipcp_vr_lattice::meet_with_1): Likewise.
3067 (ipcp_vr_lattice::top_p): Likewise.
3068 (ipcp_vr_lattice::bottom_p): Likewsie.
3069 (ipcp_vr_lattice::set_to_bottom): Likewise.
3070 (set_all_contains_variable): Call VR set_to_bottom.
3071 (initialize_node_lattices): Init VR lattices.
3072 (propagate_vr_accross_jump_function): New.
3073 (propagate_constants_accross_call): Call
3074 propagate_vr_accross_jump_function.
3075 (ipcp_store_vr_results): New.
3076 (ipcp_driver): Handle VR.
3077 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3078 (ipa_set_jf_unknown): Likewise.
3079 (ipa_compute_jump_functions_for_edge): Likewise.
3080 (ipa_node_params_t::duplicate): Likewise.
3081 (ipa_write_jump_function): Likewise.
3082 (ipa_read_jump_function): Likewise.
3083 (write_ipcp_transformation_info): Likewise.
3084 (read_ipcp_transformation_info): Likewise.
3085 (ipcp_update_vr): New.
3086 (ipcp_transform_function): Handle VR.
3087 * ipa-prop.h (struct ipa_vr): New.
3088 * cgraph.c: Include tree-vrp.h.
3089 * cgraphunit.c: Likewise.
3090 * ipa-utils.c: Likewise.
3091 * ipa.c: Likewise.
3092 * opts.c: Likewise.
3093 * toplev.c: Likewise.
3094 * ipa-devirt.c: Likewise.
3095 * ipa-inline-transform.c: Likewise.
3096 * ipa-inline.c: Likewise.
3097 * ipa-profile.c: Likewise.
3098
3099 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3100
3101 * doc/invoke.texi: Document -fdump-tree-evrp.
3102 * passes.def: Define new pass_early_vrp.
3103 * timevar.def: Define new TV_TREE_EARLY_VRP.
3104 * tree-pass.h (make_pass_early_vrp): New.
3105 * tree-ssa-propagate.c: Make replace_uses_in non static.
3106 * tree-ssa-propagate.h: Export replace_uses_in.
3107 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3108 (extract_range_from_assert): Factor out
3109 extract_range_for_var_from_comparison_expr.
3110 (vrp_initialize_lattice): New.
3111 (vrp_initialize): Factor out vrp_initialize_lattice.
3112 (vrp_valueize): Fix it to reject complex value ranges.
3113 (vrp_free_lattice): New.
3114 (evrp_dom_walker::before_dom_children): Likewise.
3115 (evrp_dom_walker::after_dom_children): Likewise.
3116 (evrp_dom_walker::push_value_range): Likewise.
3117 (evrp_dom_walker::pop_value_range): Likewise.
3118 (execute_early_vrp): Likewise.
3119 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3120 (make_pass_early_vrp): New.
3121
3122 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3123
3124 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3125 instead of exact_log2.
3126
3127 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3128
3129 PR target/77621
3130 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3131 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3132 (ix86_add_stmt_cost): Penalize DFmode vector operations
3133 for !TARGET_VECTORIZE_DOUBLE.
3134
3135 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
3136
3137 * doc/invoke.texi (Warning Options): Simplify language.
3138 (Optimize Options): Complete sentence.
3139
3140 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
3141
3142 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
3143 early_finish hook.
3144
3145 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3146
3147 PR target/71395
3148 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3149 inits on power8 and above, use the VMRGEW instruction instead of a
3150 permute.
3151
3152 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3153 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3154 initialization.
3155
3156 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3157
3158 * config/aarch64/arm_neon.h
3159 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3160 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3161 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3162
3163 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
3164
3165 * config/var/vax.h (ELIMINABLE_REGS): Define.
3166 (INITIAL_ELIMINATION_OFFSET): Define.
3167
3168 2016-09-20 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR middle-end/77624
3171 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3172 cast to void * if the cast is from some other pointer type.
3173
3174 2016-09-20 Richard Biener <rguenther@suse.de>
3175
3176 PR tree-optimization/77646
3177 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3178 a VDEF.
3179
3180 2016-09-20 Tamar Christina <tamar.christina@arm.com>
3181
3182 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3183 attributes to all inlined functions and make them extern.
3184
3185 2016-09-20 Richard Biener <rguenther@suse.de>
3186
3187 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3188 hook.
3189 * debug.c (do_nothing_debug_hooks): Adjust.
3190 * dbxout.c (dbx_debug_hooks): Likewise.
3191 * sdbout.c (sdb_debug_hooks): Likewise.
3192 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3193 (dwarf2out_finish): Move producer, filename and
3194 path annotation ...
3195 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
3196 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3197
3198 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3199
3200 PR c++/77434
3201 * doc/invoke.texi: Document -Wint-in-bool-context.
3202
3203 PR middle-end/77421
3204 * dwarf2out.c (output_loc_operands): Fix an assertion.
3205
3206 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3207
3208 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3209 (CR_DECIMAL_DIG): New macro.
3210
3211 2016-09-19 Joseph Myers <joseph@codesourcery.com>
3212
3213 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3214 element.
3215
3216 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
3217
3218 PR rtl-optimization/77416
3219 * lra-remat.c (operand_to_remat): Process hard coded insn
3220 registers.
3221
3222 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3223
3224 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3225 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3226
3227 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3228
3229 * target.def (lra_p): Wordsmithing.
3230 * doc/tm.texi: Regenerate.
3231
3232 2016-09-19 Jakub Jelinek <jakub@redhat.com>
3233 Jan Hubicka <jh@suse.cz>
3234
3235 PR target/77587
3236 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3237 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3238 Call ultimate_alias_target just once, not up to 4 times.
3239
3240 2016-09-19 Richard Biener <rguenther@suse.de>
3241
3242 * dwarf2out.c (early_dwarf_finished): New global.
3243 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3244 is false.
3245 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3246 if called from LTO exit early.
3247 (dwarf2out_late_global_decl): When being during the early
3248 debug phase do not add locations but only const value attributes.
3249 Adjust the way we generate early DIEs for LTO.
3250
3251 2016-09-19 Richard Biener <rguenther@suse.de>
3252
3253 PR middle-end/77605
3254 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3255 proper niter to bound the loops.
3256
3257 2016-09-19 Richard Biener <rguenther@suse.de>
3258
3259 PR tree-optimization/77514
3260 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3261 search for folded stmt.
3262
3263 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
3264
3265 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3266 * tree-pass.h (make_pass_early_thread_jumps): Declare.
3267 * tree-ssa-threadbackward.c (fsm_find_thread_path,
3268 fsm_find_thread_path, profitable_jump_thread_path,
3269 fsm_find_control_statement_thread_paths,
3270 find_jump_threads_backwards): Add speed_p parameter.
3271 (pass_data_early_thread_jumps): New pass.
3272 (make_pass_early_thread_jumps): New function.
3273
3274 2016-09-17 Andreas Schwab <schwab@suse.de>
3275
3276 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3277 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3278
3279 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
3280
3281 * recog.c (rest_of_handle_split_after_reload): Delete.
3282 (pass_split_after_reload::gate): New method.
3283 (pass_split_after_reload::execute): Call split_all_insns directly.
3284
3285 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
3286
3287 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3288 parameters for functions taking long long arguments.
3289
3290 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3291
3292 PR target/77613
3293 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3294 splat with truncate.
3295
3296 2016-09-16 Jason Merrill <jason@redhat.com>
3297
3298 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3299 New.
3300 * hwint.c (exact_log2): Use pow2p_hwi.
3301 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3302 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3303 * builtins.c (get_object_alignment_2, get_object_alignment)
3304 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3305 least_bit_hwi.
3306 * calls.c (compute_argument_addresses, store_one_arg): Use
3307 least_bit_hwi.
3308 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3309 * combine.c (force_to_mode): Use least_bit_hwi.
3310 (contains_muldiv, find_split_point, combine_simplify_rtx)
3311 (simplify_if_then_else, simplify_set, force_to_mode)
3312 (if_then_else_cond, simplify_and_const_int_1)
3313 (simplify_compare_const): Use pow2p_hwi.
3314 * cse.c (fold_rtx): Use pow2p_hwi.
3315 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3316 Use least_bit_hwi.
3317 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3318 (init_expmed_one_conv): Use pow2p_hwi.
3319 * expr.c (is_aligning_offset): Use pow2p_hwi.
3320 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3321 (fold_binary_loc): Use pow2p_hwi.
3322 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3323 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3324 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3325 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3326 Use least_bit_hwi.
3327 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3328 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3329 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3330 * omp-low.c (oacc_loop_fixed_partitions)
3331 (oacc_loop_auto_partitions): Use least_bit_hwi.
3332 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3333 * stor-layout.c (place_field): Use least_bit_hwi.
3334 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3335 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3336 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3337 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3338 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3339 * tree-vect-data-refs.c (vect_analyze_group_access_1)
3340 (vect_grouped_store_supported, vect_grouped_load_supported)
3341 (vect_permute_load_chain, vect_shift_permute_load_chain)
3342 (vect_transform_grouped_load): Use pow2p_hwi.
3343 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3344 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3345 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3346 least_bit_hwi.
3347 * tsan.c (instrument_expr): Use least_bit_hwi.
3348 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3349
3350 2016-09-16 Andreas Schwab <schwab@suse.de>
3351
3352 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3353 OFFSET, not offset.
3354 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3355
3356 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3357
3358 PR target/77526
3359 * combine.c (rest_of_handle_combine): If any edges have been purged,
3360 free dominators if available.
3361
3362 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3363 Eric Botcazou <ebotcazou@adacore.com>
3364
3365 PR middle-end/77594
3366 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3367 through into expand_addsub_overflow after expand_neg_overflow.
3368
3369 2016-09-15 David Malcolm <dmalcolm@redhat.com>
3370
3371 * diagnostic-show-locus.c
3372 (selftest::test_fixit_insert_containing_newline): New function.
3373 (selftest::test_fixit_replace_containing_newline): New function.
3374 (selftest::diagnostic_show_locus_c_tests): Call the above.
3375
3376 2016-09-15 Bin Cheng <bin.cheng@arm.com>
3377
3378 PR tree-optimization/77503
3379 * tree-vect-loop.c (vectorizable_reduction): Record reduction
3380 code for CONST_COND_REDUCTION at analysis stage and use it at
3381 transform stage.
3382 * tree-vectorizer.h (struct _stmt_vec_info): New field.
3383 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3384 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3385 field.
3386
3387 2016-09-15 Richard Biener <rguenther@suse.de>
3388
3389 PR middle-end/77544
3390 * fold-const.c (split_tree): Do not split constant ~X.
3391
3392 2016-09-15 Jakub Jelinek <jakub@redhat.com>
3393
3394 PR rtl-optimization/77425
3395 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3396 is NULL.
3397
3398 PR middle-end/77475
3399 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3400 use %qs instead of %s where desirable, use argument instead of arg in
3401 the diagnostic wording, add list of supported strategies and
3402 spellcheck hint.
3403 (ix86_option_override_internal): Emit target("m...") instead of
3404 option("m...") in the diagnostic. Use %qs instead of %s in invalid
3405 -march/-mtune option diagnostic. Add list of supported arches/tunings
3406 and spellcheck hint. Remove prefix, suffix and sw variables, use
3407 main_args_p ? "..." : "..." in diagnostics to make translation
3408 possible.
3409
3410 2016-09-15 Richard Biener <rguenther@suse.de>
3411
3412 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3413 extra offset argument.
3414 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3415 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3416 to reflect new offset parameter.
3417 * doc/tm.texi: Regenerate.
3418 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3419 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3420 offset argument.
3421 (darwin_asm_output_dwarf_offset): Likewise.
3422 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3423 argument.
3424 (darwin_asm_output_dwarf_offset): Pass offset argument through.
3425 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3426 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3427
3428 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
3429
3430 PR fortran/72743
3431 * ipa-icf.c (set_alias_uids): New function.
3432 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3433 all the merged variable's referring aliases.
3434
3435 2016-09-15 Richard Biener <rguenther@suse.de>
3436
3437 PR tree-optimization/77514
3438 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3439 only forced_stmts sequence.
3440
3441 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
3442
3443 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3444 * cfgexpand.c (update_alias_info_with_stack_vars): Use
3445 FOR_EACH_SSA_NAME to iterate over SSA variables.
3446 (pass_expand::execute): Likewise.
3447 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3448 * tree-cfg.c (dump_function_to_file): Likewise.
3449 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3450 (update_ssa): Likewise.
3451 * tree-ssa-alias.c (dump_alias_info): Likewise.
3452 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3453 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3454 (create_outofssa_var_map): Likewise.
3455 (coalesce_ssa_name): Likewise.
3456 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3457 * tree-ssa-pre.c (compute_avail): Likewise.
3458 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3459 (scc_vn_restore_ssa_info): Likewise.
3460 (free_scc_vn): Likwise.
3461 (run_scc_vn): Likewise.
3462 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3463 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3464 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3465 * tree-ssa.c (verify_ssa): Likewise.
3466
3467 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
3468
3469 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3470 and mips64r2 as default 32-bit and 64-bit architectures.
3471 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3472 as default 32-bit and 64-bit architectures.
3473
3474 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
3475
3476 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3477 of succ edge.
3478
3479 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3480
3481 * target.def (lra_p): Change commentary (for the manual) for the
3482 new default.
3483 * doc/tm.texi: Regenerate.
3484
3485 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3486
3487 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3488 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3489 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3490 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3491
3492 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3493
3494 * targhooks.c (default_lra_p): Return true instead of false.
3495
3496 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
3497
3498 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3499 hook_bool_void_false.
3500 * config/avr/avr.c: Ditto.
3501 * config/bfin/bfin.c: Ditto.
3502 * config/c6x/c6x.c: Ditto.
3503 * config/cr16/cr16.c: Ditto.
3504 * config/cris/cris.c: Ditto.
3505 * config/epiphany/epiphany.c: Ditto.
3506 * config/fr30/fr30.c: Ditto.
3507 * config/frv/frv.c: Ditto.
3508 * config/h8300/h8300.c: Ditto.
3509 * config/ia64/ia64.c: Ditto.
3510 * config/iq2000/iq2000.c: Ditto.
3511 * config/lm32/lm32.c: Ditto.
3512 * config/m32c/m32c.c: Ditto.
3513 * config/m32r/m32r.c: Ditto.
3514 * config/m68k/m68k.c: Ditto.
3515 * config/mcore/mcore.c: Ditto.
3516 * config/microblaze/microblaze.c: Ditto.
3517 * config/mmix/mmix.c: Ditto.
3518 * config/mn10300/mn10300.c: Ditto.
3519 * config/moxie/moxie.c: Ditto.
3520 * config/msp430/msp430.c: Ditto.
3521 * config/nios2/nios2.c: Ditto.
3522 * config/nvptx/nvptx.c: Ditto.
3523 * config/pa/pa.c: Ditto.
3524 * config/pdp11/pdp11.c: Ditto.
3525 * config/rl78/rl78.c: Ditto.
3526 * config/sparc/sparc.c: Ditto.
3527 * config/spu/spu.c: Ditto.
3528 * config/stormy16/stormy16.c: Ditto.
3529 * config/tilegx/tilegx.c: Ditto.
3530 * config/tilepro/tilepro.c: Ditto.
3531 * config/v850/v850.c: Ditto.
3532 * config/vax/vax.c: Ditto.
3533 * config/visium/visium.c: Ditto.
3534 * config/xtensa/xtensa.c: Ditto.
3535
3536 2016-09-14 Jakub Jelinek <jakub@redhat.com>
3537
3538 PR sanitizer/68260
3539 * tsan.c: Include target.h.
3540 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3541 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3542 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3543 BUILT_IN_ATOMIC_TEST_AND_SET entries.
3544 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3545
3546 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3547 Martin Liska <mliska@suse.cz>
3548
3549 PR middle-end/77574
3550 * predict.c (force_edge_cold): Add braces to a condition.
3551
3552 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3553
3554 PR rtl-optimization/77289
3555 * lra-constraints.c (get_final_hard_regno): Removed.
3556 (get_hard_regno): Add new parameter final_p.
3557 (get_reg_class): Directly call lra_get_elimination_hard_regno.
3558 (operands_match_p): Adjust call to get_hard_regno.
3559 (uses_hard_regs_p): Likewise.
3560 (process_alt_operands): Likewise.
3561
3562 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
3563
3564 PR target/70713
3565 * config/msp430/msp430.c (msp430_start_function): Emit an error
3566 if a function is both weak and specifies an interrupt number.
3567
3568 2016-09-13 Jakub Jelinek <jakub@redhat.com>
3569
3570 PR tree-optimization/77454
3571 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3572 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
3573 Formatting fix.
3574
3575 2016-09-13 Tamar Christina <tamar.christina@arm.com>
3576
3577 * config/aarch64/aarch64-builtins.c
3578 (aarch64_init_simd_builtins): Fix builtin type signature printing.
3579
3580 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
3581
3582 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3583 SFmode and SCmode arguments by reference.
3584
3585 2016-09-13 David Malcolm <dmalcolm@redhat.com>
3586
3587 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3588 Rename to...
3589 (selftest::test_one_liner_fixit_insert_before): ...this, and update
3590 for renaming of add_fixit_insert to add_fixit_insert_before.
3591 (selftest::test_one_liner_fixit_insert_after): New function.
3592 (selftest::test_one_liner_fixit_validation_adhoc_locations):
3593 Update for renaming of add_fixit_insert to add_fixit_insert_before.
3594 (selftest::test_one_liner_many_fixits): Likewise.
3595 (selftest::test_diagnostic_show_locus_one_liner): Update for
3596 renaming, call new test function.
3597 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
3598 renaming of add_fixit_insert to add_fixit_insert_before.
3599 (selftest::test_fixit_consolidation): Likewise.
3600 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
3601 Likewise.
3602 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
3603 (selftest::test_applying_fixits_insert_before): ...this.
3604 (selftest::test_applying_fixits_insert): Update for renaming of
3605 add_fixit_insert to add_fixit_insert_before.
3606 (selftest::test_applying_fixits_insert_after): New function.
3607 (selftest::test_applying_fixits_insert_after_at_line_end): New
3608 function.
3609 (selftest::test_applying_fixits_insert_after_failure): New function.
3610 (selftest::test_applying_fixits_multiple): Update for renaming of
3611 add_fixit_insert to add_fixit_insert_before.
3612 (selftest::change_line): Likewise.
3613 (selftest::test_applying_fixits_unreadable_file): Likewise.
3614 (selftest::test_applying_fixits_line_out_of_range): Likewise.
3615 (selftest::test_applying_fixits_column_validation): Likewise.
3616 (selftest::test_applying_fixits_column_validation): Likewise.
3617 (selftest::edit_context_c_tests): Update for renamed test function;
3618 call new test functions.
3619
3620 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
3621
3622 PR tree-optimization/77536
3623 PR rtl-optimization/68212
3624 * config/rs6000/rs6000.md (div->recip splitter): Remove
3625 optimize_insn_for_speed_p condition.
3626
3627 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
3628
3629 * optabs.c (prepare_cmp_insn): Update documentation comment.
3630
3631 2016-09-13 Jakub Jelinek <jakub@redhat.com>
3632 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3633
3634 PR middle-end/77475
3635 * opts.h (candidates_list_and_hint): Declare.
3636 * opts-common.c (candidates_list_and_hint): New function.
3637 (cmdline_handle_error): Use it.
3638
3639 2016-09-12 David Malcolm <dmalcolm@redhat.com>
3640
3641 * edit-context.c (edited_line::get_len): New accessor.
3642 (edited_file::print_diff): Split out hunk-printing into...
3643 (edited_file::print_diff_hunk): New method.
3644 (edited_file::print_diff_line): New method.
3645
3646 2016-09-12 Andrew Pinski <apinski@cavium.com>
3647
3648 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
3649 New tuning option.
3650 * config/aarch64/aarch64.c (thunderx_tunings): Enable
3651 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
3652 (aarch64_operands_ok_for_ldpstp): Return false if
3653 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
3654 was SImode and the alignment is less than 8 byte.
3655 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3656
3657 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
3658
3659 PR target/77570
3660 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
3661
3662 2016-09-12 Marek Polacek <polacek@redhat.com>
3663
3664 * doc/extend.texi: Use lowercase "boolean".
3665 * doc/invoke.texi: Likewise.
3666 * doc/md.texi: Likewise.
3667 * target.def: Likewise.
3668 * doc/tm.texi: Regenerated.
3669
3670 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3671
3672 PR middle-end/77426
3673 * expmed.c (synth_mult): Delete duplicate mode check.
3674
3675 2016-09-10 Tom de Vries <tom@codesourcery.com>
3676
3677 PR C/71602
3678 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
3679 va_list type only.
3680 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
3681 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
3682
3683 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
3684
3685 PR rtl-optimization/77289
3686 * lra-constraints.c (get_final_hard_regno): Add support for non hard
3687 register numbers. Remove support for subregs.
3688 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
3689 (get_reg_class): Delete removed get_final_hard_regno() argument.
3690 (uses_hard_regs_p): Call get_final_hard_regno().
3691
3692 2016-09-09 Martin Sebor <msebor@redhat.com>
3693
3694 PR c/77520
3695 PR c/77521
3696 * pretty-print.c (pp_quoted_string): New function.
3697 (pp_format): Call it for %c and %s directives.
3698
3699 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
3700
3701 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
3702 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
3703 INITIAL_ELIMINATION_OFFSET) : Update documentation.
3704 * target.def (frame_pointer_required, can_eliminate): Likewise.
3705 * doc/tm.texi: Regenerated.
3706 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
3707 ELIMINABLE_REGS.
3708 * df-scan.c (df_hard_reg_init): Likewise.
3709 * ira.c (ira_setup_eliminable_regset): Likewise.
3710 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
3711 init_elim_table): Likewise.
3712 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
3713 set_initial_elim_offsets, update_eliminables,
3714 init_elim_table): Likewise.
3715 * rtlanal.c (get_initial_register_offset): Likewise.
3716 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3717 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3718 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3719 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3720 * config/fr30/fr30.h: Fix comment.
3721 * config/frv/frv.c: Likewise.
3722 * config/frv/frv.h: Likewise.
3723 * config/ft32/ft32.h: Likewise.
3724 * config/visium/visium.h: Likewise.
3725 * config/pa/pa64-linux.h: Likewise.
3726 * config/v850/v850.h: Likewise.
3727 * config/cris/cris.c: Likewise.
3728 * config/ia64/ia64.h: Likewise.
3729 * config/moxie/moxie.h: Likewise.
3730 * config/m32r/m32r.h: Likewise.
3731
3732 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
3733
3734 PR target/77267
3735 * config.in: Regenerate.
3736 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
3737 New macro.
3738 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
3739 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
3740 static-libmpxwrappers case.
3741 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
3742 MPX_LD_AS_NEEDED_GUARD_POP.
3743 * configure: Regenerate.
3744 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
3745 defined if linker support "--push-state"/"--pop-state".
3746
3747 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3748
3749 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
3750
3751 2016-09-09 Joseph Myers <joseph@codesourcery.com>
3752
3753 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
3754 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
3755 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
3756 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
3757 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
3758 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
3759 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
3760 Document.
3761 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
3762 width macros from TS 18661-1.
3763 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
3764
3765 2016-09-08 Jakub Jelinek <jakub@redhat.com>
3766
3767 PR fortran/77516
3768 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
3769 OMP_CLAUSE_SAFELEN_EXPR.
3770
3771 2016-09-07 David Malcolm <dmalcolm@redhat.com>
3772
3773 * Makefile.in (OBJS): Add substring-locations.o.
3774 * langhooks-def.h (class substring_loc): New forward decl.
3775 (lhd_get_substring_location): New decl.
3776 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
3777 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
3778 * langhooks.c (lhd_get_substring_location): New function.
3779 * langhooks.h (class substring_loc): New forward decl.
3780 (struct lang_hooks): Add field get_substring_location.
3781 * substring-locations.c: New file, taking definition of
3782 format_warning_va and format_warning_at_substring from
3783 c-family/c-format.c, making them non-static.
3784 * substring-locations.h (class substring_loc): Move class here
3785 from c-family/c-common.h. Add and rewrite comments.
3786 (format_warning_va): New decl.
3787 (format_warning_at_substring): New decl.
3788 (get_source_location_for_substring): Add comment.
3789
3790 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
3791
3792 * config/i386/i386.c: Add 'U' suffix to processor feature bits
3793 to avoid -Wnarrowing warning.
3794 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
3795 * opts.c: Likewise for SANITIZER_OPT bitmasks.
3796
3797 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
3798
3799 * config/aarch64/aarch64.c (aarch64_legitimize_address):
3800 Avoid use of base_offset if offset already in range.
3801
3802 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
3803
3804 * config/sh/sh-protos.h (struct sh_atomic_model,
3805 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3806 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3807 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
3808 * config/sh/sh.h (struct sh_atomic_model,
3809 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3810 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3811 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
3812 Guard with __cplusplus.
3813
3814 2016-09-06 Jakub Jelinek <jakub@redhat.com>
3815
3816 PR target/69255
3817 * config/i386/i386.c (ix86_expand_builtin): For builtin with
3818 unsupported or unknown ISA, use expand_call.
3819
3820 2016-09-06 Martin Liska <mliska@suse.cz>
3821
3822 PR gcov-profile/77378
3823 PR gcov-profile/77466
3824 * tree-profile.c (tree_profiling): Detect whether target can use
3825 -fprofile-update=atomic.
3826
3827 2016-09-06 Richard Biener <rguenther@suse.de>
3828
3829 PR tree-optimization/77479
3830 * tree-vrp.c (update_value_range): Extend overflow handling to
3831 VARYING.
3832
3833 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3834
3835 PR target/77476
3836 * config/i386/i386.md (isa): Add x64_avx512bw.
3837 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
3838 (kmov_isa): New mode attr.
3839 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
3840 (*zero_extend<mode>si2): Likewise.
3841 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
3842
3843 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
3844
3845 * doc/invoke.texi (SPU Options): nops -> NOPs.
3846 (x86 Options): Ditto.
3847
3848 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3849
3850 PR middle-end/77475
3851 * toplev.c (process_options): Temporarily set input_location
3852 to UNKNOWN_LOCATION around targetm.target_option.override () call.
3853
3854 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
3855
3856 PR rtl-optimization/77452
3857 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3858 inner-mode reference to a CONST_VECTOR constant in the constant pool.
3859
3860 2016-09-05 Marek Polacek <polacek@redhat.com>
3861
3862 PR c/77423
3863 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
3864
3865 2016-09-05 Jakub Jelinek <jakub@redhat.com>
3866
3867 PR other/77421
3868 * gensupport.c (alter_output_for_subst_insn): Remove redundant
3869 *insn_out == '*' test. Don't copy unnecessary to yet another
3870 memory buffer, and don't leak it.
3871
3872 PR rtl-optimization/77425
3873 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
3874
3875 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
3876
3877 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
3878
3879 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3880
3881 * common.opt (fdiagnostics-generate-patch): New option.
3882 * diagnostic.c: Include "edit-context.h".
3883 (diagnostic_initialize): Initialize context->edit_context_ptr.
3884 (diagnostic_finish): Delete context->edit_context_ptr.
3885 (diagnostic_report_diagnostic): Add fix-it hints from the
3886 diagnostic to context->edit_context_ptr, if any.
3887 * diagnostic.h (class edit_context): Add forward decl.
3888 (struct diagnostic_context): Add field "edit_context_ptr".
3889 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3890 -fdiagnostics-generate-patch.
3891 (-fdiagnostics-generate-patch): New item.
3892 * toplev.c: Include "edit-context.h".
3893 (process_options): Set global_dc->edit_context_ptr to a new
3894 edit_context if the options need one.
3895 (toplev::main): Handle -fdiagnostics-generate-patch by using
3896 global_dc->edit_context_ptr.
3897
3898 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3899
3900 PR c/65467
3901 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
3902 map and firstprivate clauses on target construct for _Atomic
3903 qualified decls.
3904 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
3905 on target construct for _Atomic qualified decls.
3906 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
3907 decls.
3908 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
3909 _Atomic qualified arguments not mentioned in uniform clause.
3910
3911 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3912
3913 * Makefile.in (OBJS-libcommon): Add edit-context.o.
3914 * diagnostic-color.c (color_dict): Add "diff-filename",
3915 "diff-hunk", "diff-delete", and "diff-insert".
3916 (parse_gcc_colors): Update default value of GCC_COLORS in comment
3917 to reflect above changes.
3918 * doc/invoke.texi (-fdiagnostics-color): Update description of
3919 default GCC_COLORS, and of the supported capabilities.
3920 * edit-context.c: New file.
3921 * edit-context.h: New file.
3922 * input.c (struct fcache): Add field "missing_trailing_newline".
3923 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3924 true.
3925 (add_file_to_cache_tab): Likewise.
3926 (fcache::fcache): Likewise.
3927 (get_next_line): Update c->missing_trailing_newline.
3928 (location_missing_trailing_newline): New function.
3929 * input.h (location_missing_trailing_newline): New decl.
3930 * selftest-run-tests.c (selftest::run_tests): Call
3931 edit_context_c_tests.
3932 * selftest.h (edit_context_c_tests): New decl.
3933
3934 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3935 Richard Biener <rguenth@suse.de>
3936
3937 PR tree-optimization/77444
3938 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3939 as steptype, remove redundant initialization.
3940
3941 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3942
3943 PR sanitizer/77396
3944 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3945 (sanopt_optimize_walker): Optimize away
3946 __asan_before_dynamic_init (...) followed by
3947 __asan_after_dynamic_init () without intervening memory loads/stores.
3948 * ipa-pure-const.c (special_builtin_state): Handle
3949 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3950 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3951
3952 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3953
3954 * cfg.c (free_original_copy_tables): Replace second assignment of
3955 bb_copy = NULL by bb_original = NULL.
3956
3957 2016-09-02 Jakub Jelinek <jakub@redhat.com>
3958
3959 PR other/77421
3960 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3961 assignment added in r216794.
3962
3963 2016-09-02 David Malcolm <dmalcolm@redhat.com>
3964
3965 * Makefile.in (OBJS): Add typed-splay-tree.o.
3966 * selftest-run-tests.c (selftest::run_tests): Call
3967 typed_splay_tree_c_tests.
3968 * selftest.h (typed_splay_tree_c_tests): New decl.
3969 * typed-splay-tree.c: New file.
3970 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3971 (typed_splay_tree::max): New method.
3972 (typed_splay_tree::min): New method.
3973 (typed_splay_tree::foreach): New method.
3974 (typed_splay_tree::closure): New struct.
3975 (typed_splay_tree::inner_foreach_fn): New function.
3976
3977 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3978
3979 * ipa-cp.c (ipcp_store_bits_results): Change option name from
3980 -fipa-cp-bit to -fipa-bit-cp.
3981
3982 2016-09-01 Martin Sebor <msebor@redhat.com>
3983
3984 PR tree-optimization/71831
3985 * tree-object-size.h: Return bool instead of the size and add
3986 argument for the size.
3987 * tree-object-size.c (compute_object_offset): Update signature.
3988 (addr_object_size): Same.
3989 (compute_builtin_object_size): Return bool instead of the size
3990 and add argument for the size. Handle POINTER_PLUS_EXPR when
3991 optimization is disabled.
3992 (expr_object_size): Adjust.
3993 (plus_stmt_object_size): Adjust.
3994 (pass_object_sizes::execute): Adjust.
3995 * builtins.c (fold_builtin_object_size): Adjust.
3996 * doc/extend.texi (Object Size Checking): Update.
3997 * ubsan.c (instrument_object_size): Adjust.
3998
3999 2016-09-01 Martin Sebor <msebor@redhat.com>
4000
4001 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
4002 it fits the output of the formatted function regardless of its
4003 arguments.
4004 * gcc/genmodes.c (parser::parse_expr): Same.
4005 * gimplify.c (gimplify_asm_expr): Same.
4006 * passes.c (pass_manager::register_one_dump_file): Same.
4007 * print-tree.c (print_node): Same.
4008
4009 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4010
4011 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
4012
4013 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4014
4015 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
4016
4017 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4018
4019 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4020 * config/rs6000/vector.md: Ditto.
4021 * config/rs6000/vsx.md: Ditto.
4022
4023 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4024
4025 * ipa-inline-analysis.c (param_change_prob): Get to the base object
4026 first in all cases.
4027
4028 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4029
4030 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4031 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4032 *return_and_restore_gpregs_<mode>_r11,
4033 *return_and_restore_gpregs_<mode>_r12,
4034 *return_and_restore_gpregs_<mode>_r1,
4035 *return_and_restore_fpregs_<mode>_r11,
4036 *return_and_restore_fpregs_<mode>_r12,
4037 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4038 directly instead of via the "l" constraint. Renumber operands.
4039 Fix whitespace.
4040
4041 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4042
4043 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4044 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4045 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4046 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4047 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4048 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4049 *call_value_nonlocal_darwin64, reload_macho_picbase,
4050 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4051 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4052 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4053 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4054 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4055 *save_fpregs_<mode>_r1): Ditto.
4056 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4057 *return_and_restore_gpregs_spe): Ditto.
4058
4059 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
4060
4061 * config/rs6000/rs6000.md
4062 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4063 the use of the link register.
4064 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4065
4066 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4067 Michael Meissner <meissner@linux.vnet.ibm.com>
4068
4069 PR target/72827
4070 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4071 reg+reg addressing for TImode.
4072 (rs6000_legitimate_address_p): Only allow register indirect
4073 addressing for TImode, even without TARGET_QUAD_MEMORY.
4074
4075 2016-09-01 Richard Biener <rguenther@suse.de>
4076
4077 PR middle-end/77436
4078 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4079 check whether the result fits the desired result type.
4080
4081 2016-09-01 Nathan Sidwell <nathan@acm.org>
4082
4083 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4084
4085 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
4086
4087 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4088 New function.
4089 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4090
4091 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4092
4093 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4094 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4095 for comparisons of integer ZERO_EXTEND against zero.
4096
4097 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
4098
4099 * config/i386/i386.c (ix86_option_override_internal): Also disable the
4100 STV pass if -mstackrealign is enabled.
4101
4102 2016-08-31 Ilya Verbin <iverbin@gmail.com>
4103
4104 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4105 AVX512IFMA.
4106
4107 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4108
4109 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4110 (layout_range::intersects_line_p): New method.
4111 (test_range_contains_point_for_single_point): Rename to...
4112 (test_layout_range_for_single_point): ...this, and add testing
4113 for layout_range::intersects_line_p.
4114 (test_range_contains_point_for_single_line): Rename to...
4115 (test_layout_range_for_single_line): ...this, and add testing
4116 for layout_range::intersects_line_p.
4117 (test_range_contains_point_for_multiple_lines): Rename to...
4118 (test_layout_range_for_multiple_lines): ...this, and add testing
4119 for layout_range::intersects_line_p.
4120 (layout::layout): Populate m_fixit_hints.
4121 (layout::get_expanded_location): Handle the case of a line-span
4122 for a fix-it hint.
4123 (layout::validate_fixit_hint_p): New method.
4124 (get_line_span_for_fixit_hint): New function.
4125 (layout::calculate_line_spans): Add spans for fixit-hints.
4126 (layout::should_print_annotation_line_p): New method.
4127 (layout::print_any_fixits): Drop param "richloc", instead using
4128 validated fixits in m_fixit_hints. Add "const" to hint pointers.
4129 (diagnostic_show_locus): Avoid printing blank annotation lines.
4130 (selftest::test_diagnostic_context::test_diagnostic_context):
4131 Initialize show_column and start_span.
4132 (selftest::test_diagnostic_context::start_span_cb): New static
4133 function.
4134 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4135 (selftest::diagnostic_show_locus_c_tests): Update for function
4136 renamings. Call test_diagnostic_show_locus_fixit_lines.
4137
4138 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4139
4140 PR tree-optimization/73714
4141 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4142
4143 2016-08-31 David Malcolm <dmalcolm@redhat.com>
4144
4145 * selftest.c: Move "namespace selftest {" to top of file,
4146 removing explicit "selftest::" qualifiers throughout.
4147
4148 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
4149
4150 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4151 New types.
4152 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4153 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4154 Replace builtin with vector extension.
4155 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4156 New types.
4157 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4158 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4159 Replace builtin with vector extension.
4160 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4161 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4162 Replace builtin with vector extension.
4163 * config/i386/xmmintrin.h (__m128_u): New type.
4164 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4165 (_mm_load_ps, _mm_store_ps): Simplify.
4166
4167 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
4168
4169 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4170
4171 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4172
4173 * diagnostic-show-locus.c (colorizer::begin_state): Support more
4174 than 3 ranges per diagnostic by alternating between color 1 and
4175 color 2.
4176 (layout::layout): Replace use of rich_location::MAX_RANGES
4177 with richloc->get_num_locations ().
4178 (layout::calculate_line_spans): Replace use of
4179 rich_location::MAX_RANGES with m_layout_ranges.length ().
4180 (layout::print_annotation_line): Handle arbitrary numbers of
4181 ranges in caret-printing by defaulting to '^'.
4182 (selftest::test_one_liner_many_fixits): New function.
4183 (test_diagnostic_show_locus_one_liner): Call it.
4184 * diagnostic.c (diagnostic_initialize): Update for renaming
4185 of rich_location::MAX_RANGES to
4186 rich_location::STATICALLY_ALLOCATED_RANGES.
4187 * diagnostic.h (struct diagnostic_context): Likewise.
4188
4189 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4190
4191 * selftest.c (selftest::named_temp_file::named_temp_file): New
4192 ctor.
4193 (selftest::temp_source_file::~temp_source_file): Move to...
4194 (selftest::named_temp_file::~named_temp_file): ...here.
4195 (selftest::test_named_temp_file): New function.
4196 (selftest::selftest_c_tests): Call test_named_temp_file.
4197 * selftest.h (class named_temp_file): New class.
4198 (class temp_source_file): Convert to a subclass of named_temp_file.
4199
4200 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
4201
4202 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4203 USEs of LR_REGNO in returns and sibcalls.
4204 (rs6000_output_mi_thunk): Similar.
4205 (rs6000_sibcall_aix): Similar.
4206 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4207 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4208 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4209 Remove the USE of LR_REGNO from the patterns as well. Delete an
4210 obsolete comment.
4211 (return_internal_<mode>): Delete.
4212
4213 2016-08-30 Tamar Christina <tamar.christina@arm.com>
4214
4215 * gcc/config/aarch64/aarch64-simd.md
4216 (aarch64_ld2<mode>_dreg_le): New.
4217 (aarch64_ld2<mode>_dreg_be): New.
4218 (aarch64_ld2<mode>_dreg): Removed.
4219 (aarch64_ld3<mode>_dreg_le): New.
4220 (aarch64_ld3<mode>_dreg_be): New.
4221 (aarch64_ld3<mode>_dreg): Removed.
4222 (aarch64_ld4<mode>_dreg_le): New.
4223 (aarch64_ld4<mode>_dreg_be): New.
4224 (aarch64_ld4<mode>_dreg): Removed.
4225 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4226
4227 2016-08-30 David Malcolm <dmalcolm@redhat.com>
4228
4229 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4230 redundant location param.
4231 (test_one_liner_fixit_remove): Likewise.
4232 (test_one_liner_fixit_replace): Likewise.
4233 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4234 * gcc-rich-location.c
4235 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4236 get_range_from_loc. Drop overload taking a const char *.
4237 * gcc-rich-location.h
4238 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4239 a const char *.
4240
4241 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4242
4243 * config/linux.c (linux_libc_has_function): Return true on musl.
4244
4245 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4246
4247 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4248
4249 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
4250
4251 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4252 used for abnormal egdes.
4253
4254 2016-08-30 Jakub Jelinek <jakub@redhat.com>
4255
4256 PR tree-optimization/72866
4257 * tree-vect-patterns.c (search_type_for_mask): Turn into
4258 a small wrapper, move all code to ...
4259 (search_type_for_mask_1): ... this new function. Add caching
4260 and adjust recursive calls.
4261
4262 PR debug/77363
4263 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4264 instead of lookup_type_die (type_main_variant (type)) even for array
4265 types.
4266
4267 PR middle-end/77377
4268 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4269 constant pool reference return x instead of c.
4270
4271 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
4272
4273 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4274 include MQ.
4275
4276 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4277
4278 * input.c
4279 (selftest::test_make_location_nonpure_range_endpoints): Fix
4280 header comment.
4281
4282 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4283
4284 * diagnostic-show-locus.c
4285 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4286 function.
4287 (selftest::test_diagnostic_show_locus_one_liner): Call it.
4288 * input.c (get_pure_location): Move to libcpp/line-map.c.
4289 * input.h (get_pure_location): Convert decl to an inline function
4290 calling implementation in libcpp.
4291
4292 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
4293
4294 PR target/77403
4295 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4296 template for intel asm dialect.
4297 (vec_set_hi_<mode><mask_name>): Ditto.
4298
4299 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4300
4301 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4302 (selftest::fail_formatted): Likewise.
4303
4304 2016-08-29 David Malcolm <dmalcolm@redhat.com>
4305
4306 * input.c (make_location): Call get_start and get_finish
4307 on the endpoints to avoid storing packed ranges or ad-hoc
4308 ranges in them.
4309 (selftest::test_make_location_nonpure_range_endpoints): New function.
4310 (selftest::input_c_tests): Call it.
4311 * input.h (get_start): New inline function.
4312
4313 2016-08-29 Tom de Vries <tom@codesourcery.com>
4314
4315 PR c/77398
4316 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4317 with assert.
4318
4319 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
4320
4321 * Makefile.in (gcov-iov.h): Add dummy recipe.
4322
4323 2016-08-29 Nathan Sidwell <nathan@acm.org>
4324
4325 * config/nvptx/nvptx.c: #include tree-vrp.h.
4326
4327 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
4328
4329 PR target/77324
4330 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4331 HIGH+LO construct during reload.
4332
4333 2016-08-28 Tom de Vries <tom@codesourcery.com>
4334
4335 PR lto/70955
4336 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4337 'sysv_abi va_list' attribute.
4338 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4339 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4340 attributes.
4341
4342 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4343
4344 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4345 * emit-rtl.c (unshare_all_rtl_1): Adjust.
4346 (unshare_all_rtl_again): Likewise.
4347 * function.c (assign_stack_local_1): Likewise.
4348 (assign_stack_temp_for_type): Likewise.
4349
4350 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4351
4352 * cfgbuild.c (make_edges): Adjust.
4353 * cfgrtl.c (can_delete_label_p): Likewise.
4354 * dwarf2cfi.c (create_trace_edges): Likewise.
4355 * except.c (sjlj_emit_dispatch_table): Likewise.
4356 * function.h (struct expr_status): make x_forced_labels a vector.
4357 * jump.c (rebuild_jump_labels_1): Adjust.
4358 * reload1.c (set_initial_label_offsets): Likewise.
4359 * stmt.c (force_label_rtx): Likewise.
4360 (expand_label): Likewise.
4361
4362 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4363
4364 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4365
4366 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
4367
4368 PR tree-optimization/71077
4369 PR tree-optimization/68542
4370 * fold-const.c (fold_relational_const): Fix folding of
4371 VECTOR_CST comparisons that have a scalar boolean result type.
4372 (selftest::test_vector_folding): New static function.
4373 (selftest::fold_const_c_tests): Call it.
4374
4375 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
4376
4377 * doc/extend.texi (SPU Built-in Functions): Remove stale
4378 references to material formerly at IBM and Sony.
4379
4380 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
4381
4382 PR target/77349
4383 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4384
4385 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4386
4387 * diagnostic-show-locus.c
4388 (selftest::test_fixit_consolidation): New function.
4389 (selftest::diagnostic_show_locus_c_tests): Call it.
4390 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4391 constructor based on source_range.
4392
4393 2016-08-26 David Malcolm <dmalcolm@redhat.com>
4394
4395 * diagnostic-color.c (color_dict): Add "fixit-insert" and
4396 "fixit-delete".
4397 (parse_gcc_colors): Update description of default GCC_COLORS.
4398 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4399 (colorizer::set_fixit_insert): New method.
4400 (colorizer::set_fixit_delete): New method.
4401 (colorizer::get_color_by_name): New method.
4402 (colorizer::STATE_FIXIT_INSERT): New constant.
4403 (colorizer::STATE_FIXIT_DELETE): New constant.
4404 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
4405 fields in favor of new field "m_stop_color". Add fields
4406 "m_fixit_insert" and "m_fixit_delete".
4407 (colorizer::colorizer): Update for above changes. Replace
4408 colorize_start calls with calls to get_color_by_name.
4409 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4410 STATE_FIXIT_DELETE. Update for field renamings.
4411 (colorizer::finish_state): Simplify by using m_stop_color,
4412 rather than multiple identical "*_ce" fields.
4413 (colorizer::get_color_by_name): New method.
4414 (layout::print_any_fixits): Print insertions and replacements
4415 using the "fixit-insert" color, and deletions using the
4416 "fixit-delete" color.
4417 * doc/invoke.texi (-fdiagnostics-color): Update description of
4418 default GCC_COLORS, and of the supported capabilities.
4419
4420 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
4421
4422 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4423 current_function_static_stack_size variable with the static
4424 stack frame size of the current function when
4425 flag_stack_usage_info is enabled.
4426
4427 2016-08-26 Nathan Sidwell <nathan@acm.org>
4428
4429 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4430 assignment inside if condition.
4431
4432 2016-08-26 Richard Biener <rguenther@suse.de>
4433
4434 PR tree-optimization/69047
4435 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4436 extracts similar to what FRE does.
4437 (non_rewritable_mem_ref_base): Likewise.
4438
4439 2016-08-26 Joseph Myers <joseph@codesourcery.com>
4440
4441 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4442 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4443 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4444 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4445 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4446 Likewise.
4447 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4448 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4449 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4450 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4451 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4452
4453 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4454
4455 PR target/70473
4456 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4457 reservation duration to 15 cycles.
4458 (cortex_a8_vfp_macs): Likewise.
4459 (cortex_a8_vfp_macd): Likewise.
4460 (cortex_a8_vfp_divs): Likewise.
4461 (cortex_a8_vfp_divd): Likewise.
4462
4463 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4464
4465 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4466 (aarch_macro_fusion_pair_p): Use above to avoid early return.
4467
4468 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4469 Martin Jambhor <mjambor@suse.cz>
4470
4471 * common.opt: New option -fipa-bit-cp.
4472 * doc/invoke.texi: Document -fipa-bit-cp.
4473 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4474 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4475 * tree-ssa-ccp.h: New header file.
4476 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4477 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4478 Replace all occurences of tree parameter by two new params: signop, int.
4479 (bit_value_unop_1): Change to bit_value_unop and export it.
4480 Replace all occurences of tree parameter by two new params: signop,
4481 int.
4482 (bit_value_binop): Change call from bit_value_binop_1 to
4483 bit_value_binop.
4484 (bit_value_assume_aligned): Likewise.
4485 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4486 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4487 to ccp_finalize.
4488 (ccp_finalize): Skip processing if val->mask == 0.
4489 * ipa-cp.c: Include tree-ssa-ccp.h
4490 (ipcp_bits_lattice): New class.
4491 (ipcp_param_lattice (bits_lattice): New member.
4492 (print_all_lattices): Call ipcp_bits_lattice::print.
4493 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4494 (initialize_node_lattices): Likewise.
4495 (propagate_bits_accross_jump_function): New function.
4496 (propagate_constants_accross_call): Call
4497 propagate_bits_accross_jump_function.
4498 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4499 (ipcp_store_bits_results): New function.
4500 (ipcp_driver): Call ipcp_store_bits_results.
4501 * ipa-prop.h (ipa_bits): New struct.
4502 (ipa_jump_func): Add new member bits of type ipa_bits.
4503 (ipa_param_descriptor): Change decl to decl_or_type.
4504 (ipa_get_param): Change decl to decl_or_type and assert on
4505 PARM_DECL.
4506 (ipa_get_type): New function.
4507 (ipcp_transformation_summary): New member bits.
4508 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4509 (ipa_populate_param_decls): Likewise.
4510 (ipa_dump_param): Likewise.
4511 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4512 function.
4513 (ipa_set_jf_unknown): Set ipa_bits::known to false.
4514 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4515 propagation.
4516 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4517 (ipa_write_jump_function): Add streaming for ipa_bits.
4518 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4519 (write_ipcp_transformation_info): Add streaming for ipa_bits
4520 summary for ltrans.
4521 (read_ipcp_transfomration_info): Add support for reading streamed
4522 ipa_bits.
4523 (ipcp_update_bits): New function.
4524 (ipcp_transform_function): Call ipcp_update_bits.
4525
4526 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
4527
4528 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4529 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4530
4531 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
4532
4533 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4534
4535 2016-08-25 Richard Biener <rguenther@suse.de>
4536
4537 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4538 Only add locations in late dwarf.
4539 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4540 (dwarf2out_early_finish): But do it here.
4541
4542 2016-08-24 Michael Collison <michael.collison@linaro.org>
4543 Michael Collison <michael.collison@arm.com>
4544
4545 * config/arm/arm-modes.def: Add new condition code mode CC_V
4546 to represent the overflow bit.
4547 * config/arm/arm.c (maybe_get_arm_condition_code):
4548 Add support for CC_Vmode.
4549 (arm_gen_unlikely_cbranch): New function to generate common
4550 rtl conditional branches for overflow patterns.
4551 * config/arm/arm-protos.h: Add prototype for
4552 arm_gen_unlikely_cbranch.
4553 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4554 addsi3_compareV_upper): New patterns to support signed
4555 builtin overflow add operations.
4556 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4557 New patterns to support unsigned builtin add overflow operations.
4558 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4559 builtin overflow subtract operations,
4560 (usubv<mode>4): New patterns to support unsigned builtin subtract
4561 overflow operations.
4562 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4563 to support builtin overflow negate operations.
4564
4565 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4566
4567 Revert
4568 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4569
4570 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4571 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4572 needed.
4573
4574 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4575
4576 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4577 MULTILIB_OPTIONS should be used. Small wording fixes.
4578 * genmultilib: Memorize set of all option combinations in
4579 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
4580 found in MULTILIB_OPTIONS by checking if option set is listed in
4581 combination_space. Output new and existing error message to stderr.
4582
4583 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4584
4585 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4586 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4587 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4588 (MULTILIB_REUSE): Remove reuse rules for option set including
4589 -mfpu=fp-armv8 and -mfpu=vfpv4
4590
4591 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
4592
4593 * config/arm/t-rtems: Add vfp multilib.
4594
4595 2016-08-23 Ian Lance Taylor <iant@golang.org>
4596
4597 * config/s390/s390.c (s390_asm_file_start): Call
4598 default_file_start.
4599
4600 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4601
4602 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
4603 initialization of all 0's to the 0 constant, instead of directly
4604 generating XOR. Add support for V4SImode vector initialization on
4605 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
4606 initialization. Change variables used in V4SFmode vector
4607 intialization. For V4SFmode vector splat on ISA 3.0, make sure
4608 any memory addresses are in index form. Add support for using
4609 VSPLTH/VSPLTB to initialize vector short and vector char vectors
4610 with all of the same element.
4611 (regno_or_subregno): New helper function to return a register
4612 number for either REG or SUBREG.
4613 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
4614 Use regno_or_subregno where possible.
4615 (rs6000_split_v4si_init_di_reg): New helper function to build up a
4616 DImode value from two SImode values in order to generate V4SImode
4617 vector initialization on 64-bit systems with direct move.
4618 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
4619 initialization.
4620 (rtx_is_swappable_p): V4SImode vector initialization insn is not
4621 swappable.
4622 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
4623 declaration.
4624 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
4625 attributes to initialize V8HImode and V16QImode vectors with the
4626 same element.
4627 (VSX_SPLAT_COUNT): Likewise.
4628 (VSX_SPLAT_SUFFIX): Likewise.
4629 (UNSPEC_VSX_VEC_INIT): New unspec.
4630 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
4631 Allow SFmode values to come from Altivec registers.
4632 (vsx_init_v4si): New insn/split for V4SImode vector initialization
4633 on 64-bit systems with direct move.
4634 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
4635 vector initializations, to allow V4SImode vector initializations
4636 on 64-bit systems with direct move.
4637 (vsx_splat_v4si): Likewise.
4638 (vsx_splat_v4si_di): Likewise.
4639 (vsx_splat_v4sf): Likewise.
4640 (vsx_splat_v4sf_internal): Likewise.
4641 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
4642 register classes.
4643 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
4644 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
4645 initializing V8HImode and V16QImode vectors with the same
4646 element.
4647 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
4648 optimization if -maltivec=be.
4649
4650 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
4651
4652 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
4653 attribute for alternatives 3 and 4.
4654
4655 2016-08-23 David Malcolm <dmalcolm@redhat.com>
4656
4657 * selftest.c (selftest::assert_str_contains): New function.
4658 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
4659 * selftest.h (selftest::assert_str_contains): New decl.
4660 (ASSERT_STR_CONTAINS): New macro.
4661
4662 2016-08-23 Richard Biener <rguenther@suse.de>
4663
4664 PR tree-optimization/77286
4665 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
4666 the CFG here.
4667 (vect_transform_loop): Split exit edges of loop and scalar
4668 loop if required and at the appropriate time.
4669
4670 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4671
4672 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4673 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4674 needed.
4675 Correct a typo in a comment.
4676
4677 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4678
4679 * config/s390/s390.md ("*andc_split"): New splitter for and with
4680 complement.
4681
4682 2016-08-23 Richard Biener <rguenther@suse.de>
4683
4684 PR tree-optimization/27336
4685 * tree-vrp.c (infer_value_range): Handle stmts that can throw
4686 by looking for a non-EH edge.
4687 (process_assert_insertions_for): Likewise.
4688
4689 2016-08-23 Richard Biener <rguenther@suse.de>
4690
4691 PR middle-end/77305
4692 * statistics.c (statistics_counter_event): Robustify against
4693 NULL current_pass.
4694
4695 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4696
4697 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
4698 for targets amdfam10 and barcelona.
4699
4700 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
4701
4702 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
4703 (zero_extend<mode>di2): Ditto.
4704 (*zero_extend<mode>si2): Ditto.
4705 (*zero_extendqihi2): Ditto.
4706
4707 2016-08-22 Joseph Myers <joseph@codesourcery.com>
4708
4709 PR middle-end/77269
4710 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
4711 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
4712
4713 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
4714
4715 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
4716 identical consecutive elements.
4717 [SSA_NAME]: Print the name's def stmt on its own line. When printing
4718 the node's def stmt, avoid printing an unwanted trailing newline by
4719 replacing the call to print_gimple_stmt() with its inlined body and
4720 adjusting it to not set pp_needs_newline and to call pp_flush()
4721 instead of pp_newline_and_flush().
4722
4723 2016-08-22 Joseph Myers <joseph@codesourcery.com>
4724
4725 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
4726 (float32_type_node, float64_type_node, float32x_type_node)
4727 (float128x_type_node): New macros.
4728 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
4729 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
4730 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
4731 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
4732 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
4733 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
4734 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
4735 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
4736 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
4737 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
4738 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
4739 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
4740 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
4741 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
4742 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
4743 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
4744 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
4745 (copysign, fabs, huge_val, inf, nan, nans): Use it.
4746 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
4747 and copysign.
4748 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
4749 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
4750 * doc/extend.texi (Other Builtins): Document these built-in
4751 functions.
4752 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
4753 for nan and nans.
4754
4755 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
4756
4757 * doc/install.texi (Binaries): www.opencsw.org now uses https.
4758
4759 2016-08-22 Richard Biener <rguenther@suse.de>
4760
4761 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
4762
4763 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
4764
4765 PR target/77270
4766 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
4767 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
4768 non-SSE2 athlons only, otherwise prefer SSE prefetches.
4769
4770 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4771
4772 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
4773 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
4774 (vrp_visit_switch_stmt): Likewise.
4775 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
4776 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
4777 (vrp_visit_stmt): Use extract_range_from_stmt.
4778 (vrp_visit_phi_node): Use extract_range_from_phi_node.
4779
4780 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4781
4782 * Makefile.in: Add tree-vrp.h to GTFILES.
4783 * gengtype.c (open_base_files): Add tree-vrp.h.
4784 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
4785 * builtins.c: Likewise.
4786 * fold-const.c: Likewise.
4787 * gimple-builder.c: Likewise.
4788 * gimple-laddress.c: Likewise.
4789 * hsa-gen.c: Likewise.
4790 * internal-fn.c: Likewise.
4791 * ssa.h: Likewise.
4792 * targhooks.c: Liewise,
4793 * tree-ssa-address.c: Likewise.
4794 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
4795 * tree-vrp.c (struct value_range): Move to tree-vrp.h
4796 * tree-vrp.h: New file.
4797
4798 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4799
4800 PR tree-optimization/61839
4801 * tree-vrp.c (two_valued_val_range_p): New.
4802 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
4803 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
4804 Also Convert VAR BINOP CST where VAR is two-valued to
4805 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
4806
4807 2016-08-19 David Malcolm <dmalcolm@redhat.com>
4808
4809 * diagnostic-show-locus.c
4810 (layout::annotation_line_showed_range_p): New method.
4811 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
4812 Reimplement case fixit_hint::REPLACE to cover removals, and
4813 replacements where the range of the replacement isn't one
4814 of the ranges in the rich_location.
4815 (test_one_liner_fixit_replace): Likewise.
4816 (selftest::test_one_liner_fixit_replace_non_equal_range): New
4817 function.
4818 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
4819 New function.
4820 (selftest::test_diagnostic_show_locus_one_liner): Call the new
4821 functions.
4822 * diagnostic.c (print_parseable_fixits): Remove case
4823 fixit_hint::REMOVE.
4824
4825 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
4826
4827 PR target/77270
4828 * config/i386/i386.c (ix86_option_override_internal): Remove
4829 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
4830 Enable SSE prefetch also for TARGET_PREFETCHWT1.
4831 Do not try to enable TARGET_PRFCHW ISA flag here.
4832 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
4833 Rewrite expander function body.
4834 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
4835
4836 2016-08-19 Joseph Myers <joseph@codesourcery.com>
4837
4838 PR c/32187
4839 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
4840 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
4841 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
4842 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
4843 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
4844 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
4845 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
4846 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
4847 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
4848 tree_index values.
4849 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
4850 macros.
4851 (struct floatn_type_info): New structure type.
4852 (floatn_nx_types): New variable declaration.
4853 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
4854 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
4855 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
4856 * tree.c (floatn_nx_types): New variable.
4857 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
4858 corresponding complex types.
4859 * target.def (floatn_mode): New hook.
4860 * targhooks.c: Include "real.h".
4861 (default_floatn_mode): New function.
4862 * targhooks.h (default_floatn_mode): New prototype.
4863 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
4864 types.
4865 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
4866 effective-target and dg-add-options keywords.
4867 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
4868 Document new effective-target keywords.
4869 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
4870 * doc/tm.texi: Regenerate.
4871 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
4872 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
4873 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
4874 18661-3.
4875 * real.h (struct real_format): Add field ieee_bits.
4876 * real.c (ieee_single_format, mips_single_format)
4877 (motorola_single_format, spu_single_format, ieee_double_format)
4878 (mips_double_format, motorola_double_format)
4879 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
4880 (ieee_extended_intel_128_format)
4881 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
4882 (mips_extended_format, ieee_quad_format, mips_quad_format)
4883 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
4884 (decimal_double_format, decimal_quad_format, ieee_half_format)
4885 (arm_half_format, real_internal_format: Initialize ieee_bits
4886 field.
4887 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
4888 float128_type_node. Set float80_type_node to float64x_type_node
4889 if appropriate and long_double_type_node not appropriate.
4890 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
4891 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
4892 Initialize ieee_bits field.
4893 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
4894 (rs6000_init_builtins): Set ieee128_float_type_node to
4895 float128_type_node.
4896 (rs6000_floatn_mode): New function.
4897
4898 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4899
4900 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4901 _rdseed64_step): Uglify argument names and/or local variable names
4902 in inline functions.
4903 * config/i386/rtmintrin.h (_xabort): Likewise.
4904 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
4905 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
4906 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
4907 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
4908 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
4909 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
4910 _mm_maskz_ternarylogic_epi32): Likewise.
4911 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
4912 __lwpins32, __lwpins64): Likewise.
4913 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
4914 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4915 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4916 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4917 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4918 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4919 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4920 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4921 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4922 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4923 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4924 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4925 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4926 _mm256_mask_i64gather_epi32): Likewise.
4927 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4928 * config/i386/ia32intrin.h (__writeeflags): Likewise.
4929 * config/i386/pkuintrin.h (_wrpkru): Likewise.
4930 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4931 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4932 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4933 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4934 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4935 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4936 _mm512_mask_prefetch_i64scatter_ps): Likewise.
4937 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4938 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4939 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4940 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4941 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4942 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4943 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4944 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4945
4946 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4947 returning void.
4948 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4949 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4950 Likewise.
4951 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4952 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
4953 function name.
4954 (_rdpkru_u32): Add space after function name.
4955
4956 * config/i386/t-i386 (i386-c.o): Don't depend on
4957 i386-builtin-types.inc.
4958 (i386.o): Depend on i386-builtin-types.inc.
4959
4960 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
4961
4962 PR target/77281
4963 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4964 Use const_vec_duplicate to check for duplicated elements.
4965
4966 2016-08-19 Richard Biener <rguenther@suse.de>
4967
4968 PR tree-optimization/77290
4969 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4970 Fix flag_tree_parallelize_loops check.
4971
4972 2016-08-19 Richard Biener <rguenther@suse.de>
4973
4974 * match.pd (x | 0 -> x): Add.
4975
4976 2016-08-19 Richard Biener <rguenther@suse.de>
4977
4978 PR tree-optimization/77286
4979 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4980 Deal with virtual PHIs being out-of-order.
4981
4982 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4983
4984 * doc/invoke.texi (fverbose-asm): Note that source code lines
4985 are emitted, and provide an example.
4986 * final.c (asm_show_source): New function.
4987 (final_scan_insn): Call asm_show_source.
4988
4989 2016-08-18 David Malcolm <dmalcolm@redhat.com>
4990
4991 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4992 param with diagnostic_kind.
4993 (class colorizer): Similarly replace field m_diagnostic with
4994 m_diagnostic_kind.
4995 (colorizer::colorizer): Replace diagnostic
4996 param with diagnostic_kind.
4997 (colorizer::begin_state): Update for above field change.
4998 (layout::layout): Replace diagnostic param with rich_location *
4999 and diagnostic_kind.
5000 (diagnostic_show_locus): Replace diagnostic param with richloc
5001 and diagnostic_kind.
5002 (class selftest::test_diagnostic_context): New class.
5003 (selftest::test_diagnostic_show_locus_unknown_location): New
5004 function.
5005 (selftest::test_one_liner_simple_caret): New function.
5006 (selftest::test_one_liner_caret_and_range): New function.
5007 (selftest::test_one_liner_multiple_carets_and_ranges): New
5008 function.
5009 (selftest::test_one_liner_fixit_remove): New function.
5010 (selftest::test_one_liner_fixit_replace): New function.
5011 (selftest::test_diagnostic_show_locus_one_liner): New function.
5012 (selftest::diagnostic_show_locus_c_tests): Call the new test
5013 functions.
5014 * diagnostic.c (diagnostic_initialize): Initialize
5015 colorize_source_p, show_ruler_p and parseable_fixits_p.
5016 (default_diagnostic_finalizer): Update for change to
5017 diagnostic_show_locus.
5018 (diagnostic_append_note): Likewise.
5019 * diagnostic.h (diagnostic_show_locus): Replace
5020 const diagnostic_info * param with location * and diagnostic_t.
5021
5022 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5023
5024 * input.c (saved_line_table): New global.
5025 (class selftest::temp_line_table): Rename to line_table_test and
5026 move declaration to selftest.h, and drop field m_old_line_table.
5027 (selftest::temp_line_table::temp_line_table): Rename ctor to...
5028 (selftest::line_table_test::line_table_test): ...this. Add a
5029 default ctor. Store current value of line_table within
5030 saved_line_table.
5031 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5032 (selftest::line_table_test::~line_table_test): ...this, and
5033 restore line_table from the saved_line_table, rather than
5034 m_old_line_table.
5035 (selftest::test_accessing_ordinary_linemaps): Update for above
5036 renaming.
5037 (selftest::test_lexer): Likewise.
5038 (struct selftest::lexer_test): Likewise.
5039 (selftest::lexer_test::lexer_test): Likewise.
5040 (selftest::input_c_tests): Move the looping over test cases from
5041 here into...
5042 (selftest::for_each_line_table_case): New function.
5043 * input.h (saved_line_table): New decl.
5044 * selftest.h (struct selftest::line_table_case): New forward decl.
5045 (class selftest::line_table_test): New class, moved here from
5046 selftest::temp_line_table in input.c, and renamed.
5047 (selftest::for_each_line_table_case): New decl.
5048
5049 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
5050
5051 PR target/72839
5052 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5053
5054 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5055
5056 PR middle-end/70895
5057 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5058 enclosing parallel construct for reduction variables on OpenACC loop
5059 directives.
5060
5061 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
5062
5063 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5064 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5065 -gdwarf-3.
5066 (function_to_dwarf_procedure): Update comment.
5067
5068 2016-08-18 David Malcolm <dmalcolm@redhat.com>
5069
5070 * input.c (diagnostics_file_cache_forcibly_evict_file): New
5071 function.
5072 * input.h (diagnostics_file_cache_forcibly_evict_file): New
5073 declaration.
5074 * selftest.c (selftest::temp_source_file::~temp_source_file):
5075 Evict m_filename from the diagnostic file cache.
5076
5077 2016-08-18 Richard Biener <rguenther@suse.de>
5078
5079 * tree-pass.h (make_pass_materialize_all_clones): Declare.
5080 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5081 make_pass_materialize_all_clones): New simple IPA pass encapsulating
5082 clone materialization.
5083 * passes.def (all_late_ipa_passes): Start with
5084 pass_materialize_all_clones.
5085 * cgraphunit.c (symbol_table::compile): Remove call to
5086 materialize_all_clones.
5087 * tree-into-ssa.c: Include statistics.h.
5088 (update_ssa): Count number of times we do incremental/rewrite
5089 SSA update.
5090
5091 2016-08-18 Richard Biener <rguenther@suse.de>
5092
5093 PR tree-optimization/77282
5094 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5095 When doing auto-parallelizing also prevent use of PHIs that
5096 carry dependences across loop backedges.
5097
5098 2016-08-18 Tamar Christina <tamar.christina@arm.com>
5099 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5100
5101 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5102
5103 2016-08-18 Richard Biener <rguenther@suse.de>
5104
5105 * ssa-iterators.h (ssa_vuse_operand): New inline.
5106 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5107 (predicate_all_scalar_phis): Use remove_phi_node to remove
5108 phi nodes predicated. Delay removing virtual PHIs.
5109 (predicate_mem_writes): Update virtual operands.
5110 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
5111 (tree_if_conversion): Do not rewrite virtual SSA form.
5112 * tree-phinodes.c (release_phi_node): Make static.
5113 * tree-phinodes.h (release_phi_node): Remove.
5114
5115 2016-08-18 Jakub Jelinek <jakub@redhat.com>
5116
5117 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5118 codes that appear in bdesc_* arrays, instead include i386-builtin.def
5119 twice to define those.
5120 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5121 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5122 bdesc_multi_arg): Define by including i386-builtin.def the third time.
5123 * config/i386/i386-builtin.def: New file.
5124
5125 2016-08-17 David Malcolm <dmalcolm@redhat.com>
5126
5127 * input.c (get_source_range_for_char): Rename to...
5128 (selftest::get_source_range_for_char): ...this, and move within
5129 the #if CHECKING_P guard.
5130 (get_num_source_ranges_for_substring): Rename to...
5131 (selftest::get_num_source_ranges_for_substring): ...this, move
5132 within the #if CHECKING_P guard, and make static.
5133 (selftest::assert_num_substring_ranges): Initialize
5134 actual_num_ranges.
5135
5136 2016-08-18 Alan Modra <amodra@gmail.com>
5137
5138 PR rtl-optimization/72771
5139 * reload.c (find_reloads): Don't assume that a subreg mem is OK
5140 when find_reloads_toplev returns address_reloaded==-1.
5141 (alternative_allows_const_pool_ref): Update comment.
5142
5143 2015-08-17 Alan Hayward <alan.hayward@arm.com>
5144
5145 PR tree-optimization/71752
5146 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5147 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5148
5149 2016-08-17 Jakub Jelinek <jakub@redhat.com>
5150
5151 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5152 instead of testing ECF_NORETURN bit in gimple_call_flags.
5153 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5154 * predict.c (tree_bb_level_predictions): Likewise.
5155 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5156
5157 PR middle-end/77259
5158 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5159 turning a call into __builtin_unreachable-like noreturn call, adjust
5160 gimple_call_set_fntype.
5161 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5162 gimple_call_fntype has void return type.
5163
5164 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
5165
5166 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5167 maybe_lookup_decl, to handle nested acc loop directives.
5168
5169 2016-08-17 Richard Biener <rguenther@suse.de>
5170
5171 PR tree-optimization/76490
5172 * tree-vrp.c (update_value_range): Preserve overflow infinities
5173 when intersecting with ranges from get_range_info.
5174 (operand_less_p): Handle overflow infinities correctly.
5175 (value_range_constant_singleton): Use vrp_operand_equal_p
5176 to handle overflow max/min correctly.
5177 (vrp_valueize): Likewise.
5178 (union_ranges): Likewise.
5179 (intersect_ranges): Likewise.
5180 (vrp_visit_phi_node): Improve iteration limitation to only
5181 apply when we'll possibly re-visit the PHI via a changed argument
5182 on the backedge.
5183
5184 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5185
5186 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5187 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5188 rather than those that should not be built.
5189
5190 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
5191
5192 PR target/66488
5193 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5194
5195 2016-08-17 Richard Biener <rguenther@suse.de>
5196
5197 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5198 (verify_vssa): New function verifying virtual SSA form.
5199 (verify_ssa): Call it.
5200 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5201 Do not apply loop-closed SSA handling to virtuals.
5202 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5203 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5204 when rewriting their symbol.
5205 (prepare_def_site_for): Likewise.
5206 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5207 operands of moved stmts.
5208
5209 2016-08-17 Richard Biener <rguenther@suse.de>
5210
5211 PR tree-optimization/23855
5212 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5213 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5214 find guards to hoist. Do not update SSA form but rewrite virtuals
5215 into loop closed SSA.
5216 (find_loop_guard): Adjust to skip already hoisted guards. Do
5217 not mark virtuals for renaming or update SSA form.
5218
5219 2016-08-17 Martin Liska <mliska@suse.cz>
5220
5221 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5222 a LONG_LONG_TYPE_SIZE comparison.
5223 * gcov-io.h: Remove macro definitions.
5224 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5225 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5226 comparison.
5227
5228 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5229
5230 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5231 that builtins not mentioned in bdesc_* arrays come first, then
5232 the ones mentioned in bdesc_* arrays in the order they appear in
5233 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5234 IX86_BUILTIN__BDESC_*_LAST enumerator.
5235 (bdesc_mpx): Fix up a comment typo.
5236 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5237 __builtin_ia32_vpcomneu[bwdq] builtins.
5238 (BDESC_VERIFY, BDESC_VERIFYS): Define.
5239 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5240 enum ix86_builtins ordering.
5241 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5242 for direct bdesc_* array member access instead of searching all the
5243 arrays until an fcode match is found.
5244
5245 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
5246
5247 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5248 pattern as define_insn_and_split. Split insn before reload to
5249 ashl<mode>3_1.
5250 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
5251 <shift_insn><mode>3_1.
5252 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
5253 <rotate_insn><mode>3_1.
5254
5255 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5256
5257 PR c/72857
5258 * input.c (get_source_range_for_substring): Rename to...
5259 (get_source_location_for_substring): ...this, adding param
5260 "caret_idx", and converting output param from source_range * to
5261 location_t *.
5262 (get_source_range_for_char): New function.
5263 (get_num_source_ranges_for_substring): Update comment to reflect
5264 above renaming.
5265 (assert_char_at_range): Update to use get_source_range_for_char
5266 rather than get_source_range_for_substring.
5267 (test_lexer_string_locations_concatenation_2): Likewise.
5268 * substring-locations.h (get_source_range_for_substring): Rename
5269 to...
5270 (get_source_location_for_substring): ...this, and adding param
5271 "caret_idx", and converting output param from source_range * to
5272 location_t *.
5273
5274 2016-08-16 David Malcolm <dmalcolm@redhat.com>
5275
5276 * input.c (class selftest::temp_source_file): Move to
5277 selftest.h.
5278 (selftest::temp_source_file::temp_source_file): Move to
5279 selftest.c.
5280 (selftest::temp_source_file::~temp_source_file): Likewise.
5281 * selftest.c (selftest::temp_source_file::temp_source_file): Move
5282 here from input.c.
5283 (selftest::temp_source_file::~temp_source_file): Likewise.
5284 * selftest.h (class selftest::temp_source_file): Move here from
5285 input.c
5286
5287 2016-08-16 Jakub Jelinek <jakub@redhat.com>
5288
5289 PR target/71910
5290 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
5291 inlining, add cgraph edge for the added __builtin_unreachable call.
5292
5293 PR middle-end/67485
5294 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5295 only cast it to SHWI for the final comparison.
5296
5297 2016-08-16 Martin Liska <mliska@suse.cz>
5298
5299 PR gcov-profile/36412
5300 * doc/gcov.texi: Document --hash-filenames(-x).
5301 * gcov.c (print_usage): Add the option.
5302 (process_args): Process the option, sort options alphabetically.
5303 (md5sum_to_hex): New function.
5304 (make_gcov_file_name): Do the md5sum and append it to a
5305 filename.
5306
5307 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5308
5309 PR tree-optimization/69848
5310 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5311 and swtich operands to avoid additional NOT instruction.
5312 (vcond<v_cmp_mixed><mode>): Ditto.
5313 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5314
5315 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
5316
5317 * doc/install.texi (*-*-solaris2*): Adjust latest change.
5318
5319 2016-08-16 Richard Biener <rguenther@suse.de>
5320
5321 PR tree-optimization/76783
5322 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
5323 BB visited flags at start.
5324
5325 2016-08-16 Bin Cheng <bin.cheng@arm.com>
5326
5327 PR tree-optimization/72817
5328 PR tree-optimization/73450
5329 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5330 multiple_of_p for adjusted IV.base.
5331
5332 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
5333
5334 PR target/72867
5335 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5336 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5337 for !flag_finite_math_only or flag_signed_zeros.
5338 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5339 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
5340 depend on flag_finite_math_only.
5341 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5342 New insn pattern.
5343 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5344 (*ieee_smin<mode>3): Ditto.
5345 (*ieee_smax<mode>3): Ditto.
5346 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5347 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5348 flag_signed_zeros.
5349 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
5350 depend on flag_finite_math_only.
5351 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5352 (*mmx_<code>v2sf3): Remove.
5353 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5354 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5355 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5356
5357 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
5358
5359 PR rtl-optimization/73650
5360 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5361 it is not a simple move.
5362
5363 2016-08-15 Martin Liska <mliska@suse.cz>
5364
5365 PR driver/72765
5366 * gcc.c (do_spec_1): Call save_string with the right size.
5367 (save_string): Do an assert about string we copy.
5368
5369 2016-08-15 Richard Biener <rguenther@suse.de>
5370
5371 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5372 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5373 TV_MACH_DEP.
5374 (pass_data_stv): Likewise.
5375
5376 2016-08-15 Richard Biener <rguenther@suse.de>
5377
5378 PR tree-optimization/73434
5379 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5380 TBAA info on the base when forwarding a non-invariant address.
5381
5382 2016-08-15 Jakub Jelinek <jakub@redhat.com>
5383
5384 * dwarf2out.c (struct checksum_attributes): Add
5385 at_string_length_bit_size and at_string_length_byte_size fields.
5386 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5387 and DW_AT_string_length_byte_size.
5388 (die_checksum_ordered): Handle at_string_length_bit_size and
5389 at_string_length_byte_size.
5390 (gen_array_type_die): For dwarf_version >= 5 emit
5391 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5392 (adjust_string_types): For dwarf_version >= 5 remove
5393 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5394 (resolve_addr): Likewise.
5395
5396 PR debug/71906
5397 * dwarf2out.c (string_types): New variable.
5398 (gen_array_type_die): Change early_dwarf handling of
5399 DW_AT_string_length, create DW_OP_call4 referencing the
5400 length var temporarily. Handle parameters that are pointers
5401 to string length.
5402 (adjust_string_types): New function.
5403 (gen_subprogram_die): Temporarily set string_types to local var,
5404 call adjust_string_types if needed.
5405 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5406 New functions.
5407 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5408
5409 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
5410
5411 * doc/install.texi (*-*-solaris2*): Fix version number and document
5412 requirement on GNU make for building libjava with the Solaris linker.
5413
5414 2016-08-15 Martin Liska <mliska@suse.cz>
5415 Jakub Jelinek <jakub@redhat.com>
5416
5417 PR tree-optimization/72824
5418 * tree-loop-distribution.c (const_with_all_bytes_same)
5419 <case VECTOR_CST>: Fix a typo.
5420
5421 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
5422
5423 PR target/76342
5424 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5425 Renamed from _mm512_undefined_si512.
5426 (_mm_undefined_si512): New definition.
5427
5428 2016-08-13 Richard Biener <rguenther@suse.de>
5429
5430 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5431 into PHIs and update the lattice for its def.
5432
5433 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5434
5435 PR c/71512
5436 * ubsan.c (instrument_si_overflow): Pass true instead of false
5437 to gsi_replace.
5438 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5439 of bbs. Return TODO_cleanup_cfg if any returned true.
5440
5441 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5442
5443 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5444 ISA 3.0 MTVSRDD instruction.
5445 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5446 vecperm.
5447
5448 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5449
5450 PR tree-optimization/71083
5451 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5452 bitfield access when possible.
5453
5454 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
5455
5456 PR middle-end/71654
5457 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5458 sign-changing cast from a shorter unsigned type to a wider
5459 signed type.
5460
5461 2016-08-12 Jakub Jelinek <jakub@redhat.com>
5462
5463 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5464 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5465 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5466
5467 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5468
5469 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5470 Correct costs for vec_construct.
5471
5472 2016-08-12 Bin Cheng <bin.cheng@arm.com>
5473
5474 PR tree-optimization/69848
5475 * tree-vectorizer.h (enum vect_def_type): New condition reduction
5476 type CONST_COND_REDUCTION.
5477 * tree-vect-loop.c (vectorizable_reduction): Support new condition
5478 reudction type CONST_COND_REDUCTION.
5479
5480 2016-08-12 Richard Biener <rguenther@suse.de>
5481
5482 PR tree-optimization/57326
5483 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5484 returning an SSA name.
5485 (phi_translate_1): When fully_constant_expression returns a NAME
5486 make sure we have a leader for it.
5487
5488 2016-08-12 Martin Liska <mliska@suse.cz>
5489 Adam Fineman <afineman@afineman.com>
5490
5491 * gcov.c (process_file): Create .gcov file when .gcda
5492 file is missing.
5493
5494 2016-08-12 Marek Polacek <polacek@redhat.com>
5495
5496 PR c/7652
5497 * alias.c (find_base_value): Adjust fall through comment.
5498 * cfgexpand.c (expand_debug_expr): Likewise.
5499 * combine.c (find_split_point): Likewise.
5500 (expand_compound_operation): Likewise. Add FALLTHRU.
5501 (make_compound_operation): Adjust fall through comment.
5502 (canon_reg_for_combine): Add FALLTHRU.
5503 (force_to_mode): Adjust fall through comment.
5504 (simplify_shift_const_1): Likewise.
5505 (simplify_comparison): Likewise.
5506 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5507 FALLTHRU.
5508 * config/aarch64/predicates.md: Likewise.
5509 * config/i386/i386.c (function_arg_advance_32): Likewise.
5510 (ix86_gimplify_va_arg): Likewise.
5511 (print_reg): Likewise.
5512 (ix86_print_operand): Likewise.
5513 (ix86_build_const_vector): Likewise.
5514 (ix86_expand_branch): Likewise.
5515 (ix86_sched_init_global): Adjust fall through comment.
5516 (ix86_expand_args_builtin): Add FALLTHRU.
5517 (ix86_expand_builtin): Likewise.
5518 (ix86_expand_vector_init_one_var): Likewise.
5519 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5520 (rs6000_adjust_cost): Likewise.
5521 (insn_must_be_first_in_group): Likewise.
5522 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
5523 * dbxout.c (dbxout_symbol): Adjust fall through comment.
5524 * df-scan.c (df_uses_record): Likewise.
5525 * dojump.c (do_jump): Add FALLTHRU.
5526 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
5527 comment.
5528 (resolve_args_picking_1): Adjust fall through comment.
5529 (loc_list_from_tree_1): Likewise.
5530 * expmed.c (make_tree): Likewise.
5531 * expr.c (expand_expr_real_2): Add FALLTHRU.
5532 (expand_expr_real_1): Likewise. Adjust fall through comment.
5533 * fold-const.c (const_binop): Adjust fall through comment.
5534 (fold_truth_not_expr): Likewise.
5535 (fold_cond_expr_with_comparison): Add FALLTHRU.
5536 (fold_binary_loc): Likewise.
5537 (contains_label_1): Adjust fall through comment.
5538 (multiple_of_p): Likewise.
5539 * gcov-tool.c (process_args): Add FALLTHRU.
5540 * genattrtab.c (check_attr_test): Likewise.
5541 (write_test_expr): Likewise.
5542 * genconfig.c (walk_insn_part): Likewise.
5543 * genpreds.c (validate_exp): Adjust fall through comment.
5544 (needs_variable): Likewise.
5545 * gensupport.c (get_alternatives_number): Add FALLTHRU.
5546 (subst_dup): Likewise.
5547 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5548 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5549 (gimplify_scan_omp_clauses): Add FALLTHRU.
5550 (goa_stabilize_expr): Likewise.
5551 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5552 through comment.
5553 * hsa-gen.c (get_address_from_value): Likewise.
5554 * ipa-icf.c (sem_function::hash_stmt): Likewise.
5555 * ira.c (ira_setup_alts): Add FALLTHRU.
5556 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5557 comment.
5558 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5559 * opts.c (common_handle_option): Likewise.
5560 * read-rtl.c (read_rtx_code): Likewise.
5561 * real.c (round_for_format): Likewise.
5562 * recog.c (asm_operand_ok): Likewise.
5563 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5564 * reload1.c (set_label_offsets): Likewise.
5565 (eliminate_regs_1): Likewise.
5566 (reload_reg_reaches_end_p): Likewise.
5567 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5568 (rtx_cost): Likewise.
5569 * sched-rgn.c (is_exception_free): Likewise.
5570 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5571 * stor-layout.c (int_mode_for_mode): Likewise.
5572 * toplev.c (print_to_asm_out_file): Likewise.
5573 (print_to_stderr): Likewise.
5574 * tree-cfg.c (gimple_verify_flow_info): Likewise.
5575 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5576 (chrec_fold_multiply): Likewise.
5577 (evolution_function_is_invariant_rec_p): Likewise.
5578 (for_each_scev_op): Likewise.
5579 * tree-data-ref.c (siv_subscript_p): Likewise.
5580 (get_references_in_stmt): Likewise.
5581 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5582 (substitute_in_expr): Likewise.
5583 (type_cache_hasher::equal): Likewise.
5584 (walk_type_fields): Likewise.
5585 * var-tracking.c (adjust_mems): Add FALLTHRU.
5586 (set_dv_changed): Adjust fall through comment.
5587 * varasm.c (default_function_section): Add FALLTHRU.
5588
5589 2016-08-12 Marek Polacek <polacek@redhat.com>
5590
5591 PR c/7652
5592 * tree-complex.c (expand_complex_division): Add missing break.
5593
5594 2016-08-12 Richard Biener <rguenther@suse.de>
5595
5596 * passes.c (execute_todo): Do not push/pop TV_TODO.
5597 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
5598 (execute_one_pass): Likewise.
5599 * common.opt (ftime-report-details): New switch.
5600 * doc/invoke.texi (ftime-report-details): Document.
5601 * timevar.h (timer::print_row): Adjust signature.
5602 (timer::all_zero): New static helper.
5603 (timer::child_map_t): New typedef.
5604 (timer::time_var_def): Add children field.
5605 * timevar.c (timer::named_items::print): Adjust.
5606 (timer::~timer): Free timevar recorded children.
5607 (timer::pop_internal): When -ftime-report-details record
5608 time spent in sub-timevars.
5609 (timer::print_row): Adjust.
5610 (timer::print): Print sub-timevar stats, use all_zero.
5611 * timevar.def (TV_TODO): Remove.
5612
5613 2016-08-12 Richard Biener <rguenther@suse.de>
5614
5615 PR tree-optimization/72851
5616 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
5617 worklists to use bitmaps indexed in execution order.
5618 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
5619 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
5620 (cfg_blocks): Make a bitmap.
5621 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
5622 New globals.
5623 (cfg_blocks_empty_p): Adjust.
5624 (cfg_blocks_add): Likewise.
5625 (cfg_blocks_get): Likewise.
5626 (add_ssa_edge): Likewise.
5627 (add_control_edge): Likewise.
5628 (simulate_stmt): Likewise.
5629 (process_ssa_edge_worklist): Likewise.
5630 (simulate_block): Likewise.
5631 (ssa_prop_init): Compute PRE order and stmt UIDs.
5632 (ssa_prop_fini): Adjust.
5633 (ssa_propagate): Adjust.
5634
5635 2016-08-12 Richard Biener <rguenther@suse.de>
5636
5637 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
5638 the currently executable edges have fixed ranges. Always
5639 go through update_value_range.
5640
5641 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
5642
5643 PR debug/63240
5644 * langhooks-def.h
5645 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
5646 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
5647 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
5648 (LANG_HOOKS_DECLS): Add it.
5649 * langhooks.h (struct lang_hooks_for_decls): Add
5650 function_decl_defaulted. Const_tree-ify
5651 function_decl_explicit_p and function_decl_deleted_p.
5652 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
5653 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
5654 also at strict DWARF v5.
5655
5656 PR debug/55641
5657 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
5658 TYPE_QUAL_CONST in reference-typed decls.
5659
5660 PR debug/49366
5661 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
5662 in DW_OP_pieces, just enough to handle pointers to member
5663 functions.
5664 (gen_remaining_tmpl_value_param_die_attribute): Use a location
5665 expression on DWARFv5 if a constant value doesn't work.
5666
5667 2016-08-11 David Malcolm <dmalcolm@redhat.com>
5668
5669 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
5670 * selftest.c (selftest::test_assertions): New function.
5671 (selftest::selftest_c_tests): New function.
5672 * selftest.h (selftest::selftest_c_tests): New declaration.
5673
5674 2016-08-11 Richard Biener <rguenther@suse.de>
5675 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5676
5677 PR rtl-optimization/72855
5678 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
5679
5680 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5681
5682 PR target/72863
5683 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
5684 (vsx_store_<mode>): Likewise.
5685
5686 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
5687
5688 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
5689 TImode CONST_WIDE_INT store.
5690 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
5691
5692 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
5693
5694 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
5695 mode if unaligned SSE load and store are optimal.
5696
5697 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
5698
5699 PR tree-optimization/71083
5700 * tree-predcom.c (ref_at_iteration): Correctly align the
5701 reference type.
5702
5703 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5704
5705 * config/s390/s390-builtin-types.def: Add INT128 types.
5706 * config/s390/s390-builtins.def: Add INT128 variants for the add
5707 sub low-level builtins dealing with TImode.
5708 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
5709 via subreg when expanding a builtin.
5710 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
5711 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
5712 Fix comment.
5713 * config/s390/vecintrin.h: Adjust builtin names accordingly.
5714 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
5715 ("vec_addc<mode>", "vec_addc_u128"): Merge to
5716 "vacc<bhfgq>_<mode>".
5717 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
5718 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
5719 ("vec_subc<mode>", "vec_subc_u128"): Merge to
5720 "vscbi<bhfgq>_<mode>".
5721 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
5722 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
5723
5724 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5725
5726 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
5727
5728 2016-08-11 Bin Cheng <bin.cheng@arm.com>
5729
5730 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
5731 unused declaration.
5732 (vcond<v_cmp_mixed><mode>): Ditto.
5733 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5734
5735 2016-08-11 Bin Cheng <bin.cheng@arm.com>
5736
5737 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
5738 variable explicitly, also assert on it before use.
5739
5740 2016-08-11 Richard Biener <rguenther@suse.de>
5741
5742 PR tree-optimization/72772
5743 * cfgloopmanip.c (create_preheader): Use split_edge if there
5744 is a single loop entry, avoiding degenerate PHIs.
5745
5746 2016-08-11 Richard Biener <rguenther@suse.de>
5747
5748 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
5749 unconditional TODO_cleanup_cfg.
5750 (pass_thread_jumps::execute): Initialize loops, perform a CFG
5751 cleanup only if we threaded a jump.
5752
5753 2016-08-11 Alan Modra <amodra@gmail.com>
5754
5755 PR target/71680
5756 * lra-constraints.c (simplify_operand_subreg): Allow subreg
5757 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
5758 slow. Emit two reloads for slow mem case, first loading in
5759 fast innermode, then converting to required mode.
5760
5761 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
5762
5763 * config/rs6000/altivec.h (vec_extract_exp): New macro.
5764 (vec_extract_sig): New macro.
5765 (vec_insert_exp): New macro.
5766 (vec_test_data_class): New macro.
5767 (scalar_extract_exp): New macro.
5768 (scalar_extract_sig): New macro.
5769 (scalar_insert_exp): New macro.
5770 (scalar_test_data_class): New macro.
5771 (scalar_test_neg): New macro.
5772 (scalar_cmp_exp_gt): New macro.
5773 (scalar_cmp_exp_lt): New macro.
5774 (scalar_cmp_exp_eq): New macro.
5775 (scalar_cmp_exp_unordered): New macro.
5776 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
5777 to enforce constraint that operand is a 7-bit unsigned literal.
5778 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
5779 for power9 built-ins.
5780 (BU_P9V_VSX_2): Likewise.
5781 (BU_P9V_64BIT_VSX_2): Likewise.
5782 (VSEEDP): Add scalar extract exponent support.
5783 (VSEESP): Add scalar extract signature support.
5784 (VSTDCNDP): Add scalar test negative support.
5785 (VSTDCNSP): Likewise.
5786 (VSIEDP): Add scalar insert exponent support.
5787 (VSCEDPGT): Add scalar compare exponent greater than support.
5788 (VSCEDPLT): Add scalar compare exponent less than support.
5789 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
5790 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
5791 (VSTDCDP): Add scalar test data class support.
5792 (VSTDCSP): Likewise.
5793 (VSEEDP): Add overload support for scalar extract exponent
5794 operation.
5795 (VSESDP): Add overload support for scalar extract signature
5796 operation.
5797 (VSTDCN): Add overload support for scalar test negative
5798 operation.
5799 (VSTDCNDP): Add overload support for scalar test negative
5800 operation.
5801 (VSTDCNSP): Add overload support for scalar test negative
5802 operation.
5803 (VSIEDP): Add overload support for scalar insert exponent
5804 operation.
5805 (VSTDC): Add overload support for scalar test data class
5806 operation.
5807 (VSTDCDP): Add overload support for scalar test data class
5808 operation.
5809 (VSTDCSP): Add overload support for scalar test data class
5810 opreation.
5811 (VSCEDPGT): Add overload support for scalar compare exponent
5812 greater than operation.
5813 (VSCEDPLT): Add overload support for scalar compare exponent
5814 less than operation.
5815 (VSCEDPEQ): Add overload support for scalar compare exponent
5816 test-for-equality operation.
5817 (VSCEDPUO): Add overload support for scalar compare exponent
5818 test-for-unordered operation.
5819 (VEEDP): Add vector extract exponent support.
5820 (VEESP): Likewise.
5821 (VESDP): Add vector extract significand support.
5822 (VESSP): Likewise.
5823 (VIEDP): Add vector insert exponent support.
5824 (VIESP): Likewise.
5825 (VTDCDP): Add vector test data class support.
5826 (VTDCSP): Likewise.
5827 (VES): Add overload support for vector extract significand operation.
5828 (VESDP): Likewise.
5829 (VESSP): Likewise
5830 (VEE): Add overload support for vector extract exponent operation.
5831 (VEEDP): Likewise.
5832 (VEESP): Likewise.
5833 (VTDC): Add overload support for vector test data class operation.
5834 (VTDCDP): Likewise.
5835 (VTDCSP): Likewise.
5836 (VIE): Add overload support for vector insert exponent operation.
5837 (VIEDP): Likewise.
5838 (VIESP): Likewise.
5839 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5840 overloaded binary floating point functions.
5841 (altivec_resolve_overloaded_builtin): Improve error messages to
5842 distinguish between functions not supported in the current
5843 compiler configuration and functions that were invoked with an
5844 invalid parameter combination, and include the built-in function
5845 name in both error messages.
5846 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
5847 New prototype.
5848 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
5849 function.
5850 (rs6000_expand_binop_builtin): Add check to enforce that argument
5851 2 of the test data class operations is a 7-bit unsigned literal.
5852 (rs6000_invalid_builtin): Add code to issue an error message if a
5853 built-in function that requires the power9_vector and -m32
5854 command-line options is compiled without these options.
5855 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
5856 (UNSPEC_VSX_SXSIGDP): New value.
5857 (UNSPEC_VSX_SXSIGPDP): New value.
5858 (UNSPEC_VSX_SIEXPDP): New value.
5859 (UNSPEC_VSX_SCMPEXPDP): New value.
5860 (UNSPEC_VSX_STSTDC): New value.
5861 (UNSPEC_VSX_VXEXP): New value.
5862 (UNSPEC_VSX_VXSIG): New value.
5863 (UNSPEC_VSX_VIEXP): New value.
5864 (UNSPEC_VSX_VTSTDC): New value.
5865 (xsxexpdp): New insn for scalar extract exponent.
5866 (xsxsigdp): New insn for scalar extract significand.
5867 (xsiexpdp): New insn for scalar insert exponent.
5868 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
5869 (*xscmpexpdp): New insn for scalar compare exponents.
5870 (xststdc<Fvsx): New expansion for both single- and
5871 double-precision scalar test data class operations.
5872 (xststdcneg<Fvsx>): New expansion for both single- and
5873 double-precision scalar test for negative value operations.
5874 (*xststdc<Fvsx>): New insn for scalar test data class
5875 operation.
5876 (xvxexp<VSs>): New insn for single- and double-precision
5877 vector extract exponent operation.
5878 (xvxsig<VSs>): New insn for single- and double-precision
5879 vector extract significand operation.
5880 (xviexp<VSs>): New insn for single- and double-precision
5881 vector insert exponent operation.
5882 (xvtstdc<VSs>): New insn for single- and double-precision
5883 vector test data class operation.
5884 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5885 built-in functions to represent the Power9 binary floating-point
5886 support instructions.
5887
5888 2016-08-10 bin cheng <bin.cheng@arm.com>
5889
5890 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
5891
5892 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
5893 Renlin Li <renlin.li@arm.com>
5894 Bin Cheng <bin.cheng@arm.com>
5895
5896 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
5897 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
5898 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
5899 (aarch64_vcond_internal<mode><mode>): Delete pattern.
5900 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
5901 (vcond<v_cmp_result><mode>): Ditto.
5902 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
5903 (vcondu<mode><mode>): Ditto.
5904 (vcond<v_cmp_mixed><mode>): New pattern.
5905 (vcondu<mode><v_cmp_mixed>): New pattern.
5906 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
5907 of aarch64_vcond_internal.
5908
5909 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
5910 Renlin Li <renlin.li@arm.com>
5911 Bin Cheng <bin.cheng@arm.com>
5912
5913 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
5914 (vec_cmp<mode><v_cmp_result>): New pattern.
5915 (vec_cmpu<mode><mode>): New pattern.
5916 (vcond_mask_<mode><v_cmp_result>): New pattern.
5917
5918 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5919
5920 PR tree-optimization/71734
5921 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5922 REF_LOOP, invoke ref_indep_loop_p_1.
5923 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5924 to ref_indep_loop_p.
5925 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5926 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5927 is inside LOOP, do not cache dpendence value for loops with
5928 non-zero SAFELEN.
5929 (ref_indep_loop_p_2): Delete function.
5930 (can_sm_ref_p): Pass LOOP as additional argument to
5931 ref_indep_loop_p.
5932
5933 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5934
5935 PR target/72853
5936 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5937 being an offsettable address.
5938
5939 2016-08-10 Martin Liska <mliska@suse.cz>
5940
5941 PR gcov-profile/58306
5942 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5943 atomic variants of profile update functions.
5944
5945 2016-08-10 Martin Liska <mliska@suse.cz>
5946
5947 Cherry picked (and modified) from google-4_7 branch
5948 2012-12-26 Rong Xu <xur@google.com>
5949 * common.opt (fprofile-update): Add new flag.
5950 * coretypes.h: Define enum profile_update.
5951 * doc/invoke.texi: Document -fprofile-update.
5952 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5953 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5954 * tree-profile.c (gimple_init_edge_profiler): Generate
5955 also atomic profiler update.
5956 (gimple_gen_edge_profiler): Likewise.
5957
5958 2016-08-10 David Malcolm <dmalcolm@redhat.com>
5959
5960 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5961 stack_usage_file to NULL after fclose calls.
5962
5963 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5964
5965 PR target/71873
5966 * reload.c (push_reload): Compute subreg_in_class for
5967 subregs of constants and plus expressions. Remove special
5968 handling of SYMBOL_REFs.
5969
5970 2016-08-10 Alan Modra <amodra@gmail.com>
5971
5972 PR target/71680
5973 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5974 SImode for TARGET_E500_DOUBLE when given SImode.
5975
5976 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
5977
5978 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5979 unused variable __O.
5980
5981 2016-08-09 Martin Liska <mliska@suse.cz>
5982
5983 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5984 _gcov_reset to __gcov_reset.
5985 * doc/gcov-tool.texi: Fix typo.
5986
5987 2016-08-09 Martin Liska <mliska@suse.cz>
5988
5989 * value-prof.c (gimple_divmod_values_to_profile): Do not
5990 instrument MOD histogram if a value is not a SSA name.
5991
5992 2016-08-09 Martin Liska <mliska@suse.cz>
5993
5994 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5995 values.
5996
5997 2016-08-09 Renlin Li <renlin.li@arm.com>
5998
5999 PR middle-end/64971
6000 * calls.c (prepare_call_address): Convert funexp to Pmode when
6001 necessary.
6002 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
6003 (sibcall_value): Likewise.
6004
6005 2016-08-09 Marek Polacek <polacek@redhat.com>
6006
6007 PR c/7652
6008 * cselib.c (cselib_expand_value_rtx_1): Add return.
6009 * gengtype.c (dbgprint_count_type_at): Likewise.
6010 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
6011 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
6012
6013 2016-08-09 Martin Jambor <mjambor@suse.cz>
6014
6015 PR ipa/71981
6016 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
6017 if instance is a MEM_REF.
6018
6019 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
6020
6021 PR target/72843
6022 * config/i386/i386.md (*movtf_internal): Use
6023 lra_in_progress || reload_completed instead of !can_create_pseudo_p
6024 in the insn constraint.
6025 (*movxf_internal): Ditto.
6026 (*movdf_internal): Ditto.
6027 (*movsf_internal): Ditto.
6028
6029 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6030
6031 PR tree-optimization/72772
6032 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6033 for expanded base.
6034
6035 2016-08-09 Bin Cheng <bin.cheng@arm.com>
6036
6037 PR tree-optimization/72772
6038 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6039 parameter STOP.
6040 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6041 parameter STOP and update calls. Move expand_simple_operations
6042 function call from here...
6043 (simplify_using_initial_conditions): ...to here. Delete parameter
6044 STOP.
6045 (tree_simplify_using_condition): Delete parameter STOP.
6046 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6047 simplify_using_initial_conditions.
6048
6049 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
6050
6051 PR c/65345
6052 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6053 Use create_tmp_var_raw instead of create_tmp_var.
6054
6055 2016-08-09 Richard Biener <rguenther@suse.de>
6056
6057 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6058 Treat same SSA names related.
6059
6060 2016-08-09 Jakub Jelinek <jakub@redhat.com>
6061
6062 PR tree-optimization/72824
6063 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6064 real_zerop is not negative.
6065
6066 2016-08-09 Richard Biener <rguenther@suse.de>
6067
6068 PR tree-optimization/71802
6069 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6070 all merge opportunities with the predecessor.
6071
6072 2016-08-09 Richard Biener <rguenther@suse.de>
6073
6074 PR ipa/68273
6075 * ipa-prop.c (ipa_modify_formal_parameters): Build
6076 parameter types with natural alignment also for the
6077 over-aligned case.
6078
6079 2016-08-08 Andi Kleen <ak@linux.intel.com>
6080
6081 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6082
6083 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6084
6085 PR c/64955
6086 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6087 do-nothing langhook.
6088 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6089 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6090 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6091 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6092
6093 2016-08-08 David Malcolm <dmalcolm@redhat.com>
6094
6095 PR bootstrap/72844
6096 * input.c: Ensure that HAVE_ICONV is defined.
6097
6098 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6099
6100 PR middle-end/72781
6101 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6102 private vars for lastprivate and for linear iterator.
6103
6104 PR middle-end/68762
6105 * omp-simd-clone.c: Include varasm.h.
6106 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6107 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6108 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
6109 update function name.
6110
6111 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6112
6113 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6114 (avr_diagnose_devicespecs_error): Remove.
6115 (avr_devicespecs_file): Remove composing absolute path for specfile
6116 and its verbose info. Remove conditions to check specs-file,
6117
6118 2016-08-08 Jakub Jelinek <jakub@redhat.com>
6119
6120 PR rtl-optimization/72821
6121 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6122 just return false for them.
6123
6124 2016-08-08 Alan Modra <amodra@gmail.com>
6125
6126 PR target/72771
6127 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6128 toc refs created during reload. Update function comment.
6129
6130 2016-08-08 Alan Modra <amodra@gmail.com>
6131
6132 PR target/72802
6133 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6134 alternatives. Put loads first, then stores, and reg/reg moves
6135 within same class later. Delete attr length.
6136
6137 2016-08-08 Alan Modra <amodra@gmail.com>
6138
6139 PR target/72802
6140 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6141 (mem_operand_ds_form): New predicate.
6142 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6143 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6144 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6145 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6146 (extendsfdf2_fpr): Replace o constraint with wY.
6147
6148 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
6149
6150 * tree-ssa-threadbackward.c: Include tree-inline.h
6151 (profitable_jump_thread_path): Use estimate_num_insns to estimate
6152 size of copied block; for cold paths reduce duplication.
6153 (find_jump_threads_backwards): Remove redundant tests.
6154 (pass_thread_jumps::gate): Enable for -Os.
6155
6156 2016-08-07 Jakub Jelinek <jakub@redhat.com>
6157
6158 PR c/72816
6159 * stor-layout.c (layout_decl): Fix up formatting.
6160 (relayout_decl): Allow DECL to be FIELD_DECL.
6161
6162 2016-08-07 Alan Modra <amodra@gmail.com>
6163
6164 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6165
6166 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6167
6168 * data-streamer-in.c (streamer_read_wide_int): New.
6169 (streamer_read_widest_int): Renamed function.
6170 * data-streamer-out.c (streamer_write_wide_int): New
6171 (streamer_write_widest_int): Renamed function.
6172 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6173 data-stream-in.c.
6174 (input_cfg): Call renamed function.
6175 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6176 data-stream-out.c.
6177 (output_cfg): Call renamed function.
6178 * data-streamer.h: Add declarations.
6179
6180 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6181
6182 * tree-ssa-ccp.c (extend_mask): New param sgn.
6183 Remove ORing with wi::mask.
6184 (get_default_value): Adjust call to extend_mask to pass sign.
6185 (evaluate_stmt): Likewise.
6186
6187 2016-08-06 Jakub Jelinek <jakub@redhat.com>
6188
6189 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6190 INT64_MAX.
6191
6192 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6193
6194 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6195 transform if operand's type is pointer to function or method.
6196
6197 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6198
6199 PR tree-optimization/18046
6200 * tree-ssa-threadedge.c: Include cfganal.h.
6201 (simplify_control_statement_condition): If simplifying a
6202 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6203 with the dominating ASSERT_EXPR before handing it off to VRP.
6204 Mention that a CASE_LABEL_EXPR may be returned.
6205 (thread_around_empty_blocks): Adjust to handle
6206 simplify_control_statement_condition() returning a
6207 CASE_LABEL_EXPR.
6208 (thread_through_normal_block): Likewise.
6209 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6210 a switch statement by trying to determine which case label
6211 will be taken.
6212
6213 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
6214
6215 PR rtl-optimization/69847
6216 * lra-constraints.c (process_invariant_for_inheritance): Save
6217 pattern instead of src.
6218 (remove_inheritance_pseudos): Use the pattern. Add assert.
6219
6220 2016-08-05 David Malcolm <dmalcolm@redhat.com>
6221
6222 * input.c (string_concat::string_concat): New constructor.
6223 (string_concat_db::string_concat_db): New constructor.
6224 (string_concat_db::record_string_concatenation): New method.
6225 (string_concat_db::get_string_concatenation): New method.
6226 (string_concat_db::get_key_loc): New method.
6227 (class auto_cpp_string_vec): New class.
6228 (get_substring_ranges_for_loc): New function.
6229 (get_source_range_for_substring): New function.
6230 (get_num_source_ranges_for_substring): New function.
6231 (class selftest::lexer_test_options): New class.
6232 (struct selftest::lexer_test): New struct.
6233 (class selftest::ebcdic_execution_charset): New class.
6234 (selftest::ebcdic_execution_charset::s_singleton): New variable.
6235 (selftest::lexer_test::lexer_test): New constructor.
6236 (selftest::lexer_test::~lexer_test): New destructor.
6237 (selftest::lexer_test::get_token): New method.
6238 (selftest::assert_char_at_range): New function.
6239 (ASSERT_CHAR_AT_RANGE): New macro.
6240 (selftest::assert_num_substring_ranges): New function.
6241 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6242 (selftest::assert_has_no_substring_ranges): New function.
6243 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6244 (selftest::test_lexer_string_locations_simple): New function.
6245 (selftest::test_lexer_string_locations_ebcdic): New function.
6246 (selftest::test_lexer_string_locations_hex): New function.
6247 (selftest::test_lexer_string_locations_oct): New function.
6248 (selftest::test_lexer_string_locations_letter_escape_1): New function.
6249 (selftest::test_lexer_string_locations_letter_escape_2): New function.
6250 (selftest::test_lexer_string_locations_ucn4): New function.
6251 (selftest::test_lexer_string_locations_ucn8): New function.
6252 (selftest::uint32_from_big_endian): New function.
6253 (selftest::test_lexer_string_locations_wide_string): New function.
6254 (selftest::uint16_from_big_endian): New function.
6255 (selftest::test_lexer_string_locations_string16): New function.
6256 (selftest::test_lexer_string_locations_string32): New function.
6257 (selftest::test_lexer_string_locations_u8): New function.
6258 (selftest::test_lexer_string_locations_utf8_source): New function.
6259 (selftest::test_lexer_string_locations_concatenation_1): New
6260 function.
6261 (selftest::test_lexer_string_locations_concatenation_2): New
6262 function.
6263 (selftest::test_lexer_string_locations_concatenation_3): New
6264 function.
6265 (selftest::test_lexer_string_locations_macro): New function.
6266 (selftest::test_lexer_string_locations_stringified_macro_argument):
6267 New function.
6268 (selftest::test_lexer_string_locations_non_string): New function.
6269 (selftest::test_lexer_string_locations_long_line): New function.
6270 (selftest::test_lexer_char_constants): New function.
6271 (selftest::input_c_tests): Call the new test functions once per
6272 case within the line_table test matrix.
6273 * input.h (struct string_concat): New struct.
6274 (struct location_hash): New struct.
6275 (class string_concat_db): New class.
6276 * substring-locations.h: New header.
6277
6278 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
6279
6280 PR tree-optimization/72810
6281 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6282 the type of the case labels when truncating.
6283
6284 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6285
6286 PR Target/72819
6287 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6288 (aarch64_fp16_ptr_type_node): Likewise.
6289 * config/aarch64/aarch64-simd-builtins.c
6290 (aarch64_fp16_ptr_type_node): Define.
6291 (aarch64_init_fp16_types): New, refactored out of...
6292 (aarch64_init_builtins): ...here, update to call
6293 aarch64_init_fp16_types.
6294 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6295 HFmode.
6296 (aapcs_vfp_sub_candidate): Likewise.
6297
6298 2016-08-05 Martin Liska <mliska@suse.cz>
6299 Joshua Cranmer <Pidgeot18@gmail.com>
6300
6301 * gcov.c (line_t::has_block): New function.
6302 (enum loop_type): New enum.
6303 (handle_cycle): New function.
6304 (unblock): Likewise.
6305 (circuit): Likewise.
6306 (get_cycles_count): Likewise.
6307 (accumulate_line_counts): Use new loop detection algorithm.
6308
6309 2016-08-05 Martin Liska <mliska@suse.cz>
6310
6311 * gcov.c (output_intermediate_file): Rename
6312 function_info::line_next to next_file_fn.
6313 (process_file): Likewise.
6314 (read_graph_file): Likewise.
6315 (accumulate_line_counts): Likewise.
6316 (output_lines): Likewise.
6317
6318 2016-08-05 Richard Biener <rguenther@suse.de>
6319
6320 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6321 restriction on threading to a loop header.
6322
6323 2016-08-05 Richard Biener <rguenther@suse.de>
6324
6325 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6326 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6327 adjust loop info accordingly.
6328
6329 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
6330
6331 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6332 before folding call to __builtin_constant_p with parameters to false.
6333
6334 2016-08-05 Alan Modra <amodra@gmail.com>
6335
6336 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6337 code accidentally committed 2016-05-02 providing class when given
6338 NO_REGS.
6339
6340 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6341
6342 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6343 the case label ranges that partially overlap with OP's value
6344 range.
6345
6346 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
6347
6348 PR target/72805
6349 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6350 Cast builtin function result to __mmask16 instead of __mmask8.
6351 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6352 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6353 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6354
6355 2016-08-04 David Malcolm <dmalcolm@redhat.com>
6356
6357 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6358 (ASSERT_TRUE_AT): New macro.
6359 (ASSERT_FALSE): Reimplement in terms of...
6360 (ASSERT_FALSE_AT): New macro.
6361 (ASSERT_STREQ_AT): Fix typo in comment.
6362
6363 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
6364
6365 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6366 labels are exhaustive, designate the label with the widest
6367 range to be the default label.
6368
6369 2016-08-04 Andrew Pinski <apinski@cavium.com>
6370
6371 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6372 (thunderx_tunings): Use thunderx_vector_cost instead of
6373 generic_vector_cost.
6374
6375 2016-08-04 Martin Liska <mliska@suse.cz>
6376
6377 * gcov.c (main): Fix GNU coding style.
6378 (output_intermediate_file): Likewise.
6379 (process_file): Likewise.
6380 (generate_results): Likewise.
6381 (release_structures): Likewise.
6382 (create_file_names): Likewise.
6383 (find_source): Likewise.
6384 (read_graph_file): Likewise.
6385 (find_exception_blocks): Likewise.
6386 (canonicalize_name): Likewise.
6387 (make_gcov_file_name): Likewise.
6388 (mangle_name): Likewise.
6389 (accumulate_line_counts): Likewise.
6390 (output_branch_count): Likewise.
6391 (read_line): Likewise.
6392
6393 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6394
6395 PR rtl-optimization/71779
6396 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6397 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6398 or if it was truncated.
6399
6400 PR rtl-optimization/70903
6401 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6402
6403 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6404
6405 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6406 accessing SSA_NAME_PTR_INFO.
6407
6408 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6409
6410 PR 70677
6411 * common/config/avr/avr-common.c (avr_option_optimization_table)
6412 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6413
6414 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
6415
6416 PR 55181
6417 * config/avr/avr.md: New pattern to work around do_store_flag
6418 generating shift instructions for bit extractions.
6419
6420 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
6421
6422 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6423 BITMAP_ALLOC.
6424 (add_equivalence): Likewise.
6425 (get_value_range): Allocate value range with vrp_value_range_pool.
6426 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6427 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6428
6429 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
6430
6431 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6432 the default for the rs6000 port.
6433
6434 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6435
6436 PR middle-end/71876
6437 * calls.c (special_function_p): Remove special handling of
6438 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6439 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
6440 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6441
6442 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
6443
6444 PR middle-end/72778
6445 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6446 Don't stop on regular insns.
6447
6448 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
6449
6450 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6451 size to DImode boundary.
6452 (nvptx_propagate): Likewise.
6453
6454 2016-08-03 Alan Modra <amodra@gmail.com>
6455
6456 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6457 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6458 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6459 from -mefficient-unaligned-vector. Note that this affects fp too.
6460
6461 2016-08-03 Alan Modra <amodra@gmail.com>
6462
6463 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6464 cost more.
6465
6466 2016-08-03 Alan Modra <amodra@gmail.com>
6467
6468 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6469 to a reg. Localize vars.
6470
6471 2016-08-03 Alan Modra <amodra@gmail.com>
6472
6473 * config/rs6000/rs6000.opt: Remove negatives from help strings
6474 and comments.
6475
6476 2016-08-03 Alan Modra <amodra@gmail.com>
6477
6478 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6479 Delete duplicated code.
6480
6481 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6482
6483 PR middle-end/72778
6484 * lra-spills.c (regno_in_use_p): New.
6485 (lra_final_code_change): Use it.
6486
6487 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
6488
6489 PR rtl-optimization/69847
6490 * lra-int.h (struct lra-reg): Use restore_rtx instead of
6491 restore_regno.
6492 (lra_rtx_hash): New.
6493 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6494 of restore_regno.
6495 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6496 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6497 * lra-spills.c (lra_final_code_change): Don't delete insn when the
6498 next insn is USE with the same reg as the current insn source.
6499 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6500 of restore_regno.
6501 (lra_constraints_init): Call initiate_invariants.
6502 (lra_constraints_finish): Call finish_invariants.
6503 (struct invariant, invariant_t, invariant_ptr_t): New.
6504 (const_invariant_ptr_t, invariants, invariants_pool): New.
6505 (invariant_table, invariant_hash, invariant_eq_p): New.
6506 (insert_invariant, initiate_invariants, finish_invariants): New.
6507 (clear_invariants, invalid_invariant_regs): New.
6508 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6509 instead of restore_regno.
6510 (invariant_p, process_invariant_for_inheritance): New.
6511 (inherit_in_ebb): Implement invariant inheritance.
6512 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6513 (remove_inheritance_pseudos): Implement undoing invariant
6514 inheritance.
6515 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6516 instead of restore_regno.
6517 * lra-assigns.c (regno_live_length): New.
6518 (reload_pseudo_compare_func): Use regno_live_length.
6519 (assign_by_spills): Use restore_rtx instead of restore_regno.
6520 (lra_assign): Ditto. Initiate regno_live_length.
6521
6522 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
6523
6524 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6525 __builtin_aarch64_fmindf.
6526
6527 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6528
6529 PR tree-optimization/34114
6530 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6531 information for more control IVs.
6532
6533 2016-08-02 Bin Cheng <bin.cheng@arm.com>
6534
6535 PR tree-optimization/34114
6536 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6537 PLUS_EXPR case. Handle SSA_NAME case.
6538
6539 2016-08-02 Tamar Christina <tamar.christina@arm.com>
6540
6541 * config/aarch64/aarch64-simd-builtins.def
6542 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6543 (__builtin_aarch64_fmaxdf): Likewise.
6544 (__builtin_aarch64_smin_nandf): Likewise.
6545 (__builtin_aarch64_smax_nandf): Likewise.
6546 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6547 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6548 (<fmaxmin><mode>3): ...this.
6549 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6550 (vminnm_f64): Likewise.
6551 (vmin_f64): Likewise.
6552 (vmax_f64): Likewise.
6553 * config/aarch64/iterators.md (FMAXMIN): Merge with...
6554 (FMAXMIN_UNS): ...this.
6555 (fmaxmin): Merged with
6556 (fmaxmin_op): ...this...
6557 (maxmin_uns_op): ...in to this.
6558
6559 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6560
6561 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6562 Add support for vec_extract on vector float, vector int, vector
6563 short, and vector char vector types.
6564 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6565 vector float, vector int, vector short, and vector char
6566 optimizations on 64-bit ISA 2.07 systems for both constant and
6567 variable element numbers.
6568 (rs6000_split_vec_extract_var): Likewise.
6569 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6570 Altivec registers on ISA 2.07 and above.
6571 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6572 which never was matched due to the split occuring before register
6573 allocation (and the code would not have worked on little endian
6574 systems if it did match). Allow extracts to go to the Altivec
6575 registers if ISA 2.07 (power8). Change from using "" around the
6576 C++ code to using {}'s.
6577 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6578 vec_extracts when the vector is in memory.
6579 (vsx_extract_v4sf_var): New insn to optimize vector float
6580 vec_extracts when the element number is variable on 64-bit ISA
6581 2.07 systems.
6582 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6583 for 64-bit ISA 2.07 as well as ISA 3.0.
6584 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6585 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6586 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6587 optimize vector int, vector short, and vector char vec_extracts
6588 when the vector is in memory.
6589 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6590 optimize vector int, vector short, and vector char vec_extracts
6591 when the element number is variable.
6592
6593 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6594
6595 PR target/71948
6596 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
6597 does not overlap with other symbol flags.
6598
6599 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
6600
6601 * config/aarch64/aarch64.h (aarch64_frame):
6602 Remove padding0 and hardfp_offset. Add locals_offset,
6603 initial_adjust, callee_adjust, callee_offset and final_adjust.
6604 * config/aarch64/aarch64.c (aarch64_layout_frame):
6605 Remove unused padding0 and hardfp_offset initializations.
6606 Choose frame layout and set frame variables accordingly.
6607 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
6608 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
6609 (aarch64_pop_regs): Likewise.
6610 (aarch64_expand_prologue): Remove all decision code, just emit
6611 prolog according to frame variables.
6612 (aarch64_expand_epilogue): Remove all decision code, just emit
6613 epilog according to frame variables.
6614 (aarch64_initial_elimination_offset): Use offset to local/arg area.
6615
6616 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
6617
6618 PR target/72748
6619 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
6620 fix_debug_reg_uses after changing source register mode to
6621 V1TImode if source register is undefined.
6622
6623 2015-08-01 Alan Hayward <alan.hayward@arm.com>
6624
6625 PR tree-optimization/71818
6626 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
6627 with non invariant evolutions
6628
6629 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6630
6631 PR target/72767
6632 * config/avr/avr.md (length) [branch]: Correct insn length
6633 attribute for forward branches.
6634
6635 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
6636
6637 * doc/extend.texi (AVR Built-in Functions): Document
6638 __builtin_avr_nops.
6639 * config/avr/builtins.def (NOPS): New.
6640 * config/avr/avr.c (avr_expand_nops): New static function.
6641 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
6642
6643 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6644
6645 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
6646 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
6647 addresses.
6648
6649 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
6650
6651 * config/aarch64/aarch64.c (vulcan_tunings): Update
6652 vulcan L1 cache_line_size.
6653
6654 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
6655
6656 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
6657 function that takes a vector memory address, a hard register, an
6658 element number and a temporary base register, and recreates an
6659 address that points to the appropriate element within the vector.
6660 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
6661 (rs6000_split_vec_extract_var): Add support for the target of a
6662 vec_extract with variable element number being a scalar memory
6663 location.
6664 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
6665 swappable.
6666 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
6667 vsx_extract_<mode>_load insn with a new insn that optimizes
6668 storing either element to a memory location, using scratch
6669 registers to pick apart the vector and reconstruct the address.
6670 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
6671 (vsx_extract_<mode>_store): Rework alternatives to more correctly
6672 support Altivec registers. Add support for ISA 3.0 Altivec d-form
6673 store instruction.
6674 (vsx_extract_<mode>_var): Add support for extracting a variable
6675 element number from memory.
6676
6677 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
6678
6679 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
6680 when testing for compares against constants of the form 0xabab.
6681
6682 2016-07-29 Bin Cheng <bin.cheng@arm.com>
6683
6684 PR tree-optimization/57558
6685 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
6686 function.
6687 (vect_loop_versioning): Support versioning with niter assumptions.
6688 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
6689 (vect_get_loop_niters): New parameter. Reimplement to support
6690 assumptions in loop niter info.
6691 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
6692 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
6693 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
6694 Support loop versioning for niters.
6695 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
6696 (vect_free_loop_info_assumptions): New function.
6697 (vectorize_loops): Free loop niter info for loops with flag
6698 LOOP_F_ASSUMPTIONS set if vectorization failed.
6699 * tree-vectorizer.h (struct _loop_vec_info): New field
6700 num_iters_assumptions.
6701 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
6702 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
6703 (LOOP_REQUIRES_VERSIONING): New macro.
6704 (vect_free_loop_info_assumptions): New decl.
6705
6706 2016-07-29 Bin Cheng <bin.cheng@arm.com>
6707
6708 * cfgloop.h (struct loop): New field constraints.
6709 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
6710 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
6711 functions.
6712 * cfgloop.c (alloc_loop): Initialize new field.
6713 * cfgloopmanip.c (copy_loop_info): Copy constraints.
6714 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
6715 Adjust niter analysis wrto loop constraints.
6716 * doc/loop.texi (@node Number of iterations): Add description for loop
6717 constraints.
6718
6719 2016-07-29 Marek Polacek <polacek@redhat.com>
6720
6721 PR c/7652
6722 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
6723 (ix86_expand_round_builtin): Likewise.
6724
6725 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
6726 Georg-Johann Lay <avr@gjlay.de>
6727
6728 PR rtl-optimization/71976
6729 * combine.c (get_last_value): Return 0 if the argument for which
6730 the function is called has a wider mode than the recorded value.
6731
6732 2016-07-29 Marek Polacek <polacek@redhat.com>
6733
6734 PR c/7652
6735 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
6736 (altivec_expand_st_builtin): Likewise.
6737
6738 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
6739
6740 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
6741 introduced in r238381.
6742
6743 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6744
6745 PR middle-end/68217
6746 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
6747 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
6748
6749 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
6750
6751 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
6752 New declaration.
6753 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6754 Add support for vec_extract of vector double or vector long having
6755 a variable element number on 64-bit ISA 2.07 systems or newer.
6756 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
6757 Likewise.
6758 (rs6000_split_vec_extract_var): New function to split a
6759 vec_extract built-in function with variable element number.
6760 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
6761 swappable.
6762 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
6763 (UNSPEC_VSX_EXTRACT): Likewise.
6764 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
6765 direct move instructions to be generated on 64-bit ISA 2.07
6766 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
6767 instruction.
6768 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
6769 arguments for vec_extract variable element.
6770 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
6771 vec_extract with variable element on V2DFmode and V2DImode
6772 vectors.
6773 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
6774 -mupper-regs-df requirement, since it isn't needed.
6775 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
6776 do direct moves on 64-bit systems, which allows optimization of
6777 vec_extract on 64-bit ISA 2.07 systems and newer.
6778
6779 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
6780 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
6781
6782 * config/aarch64/aarch64.md
6783 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
6784 statement and type.
6785 (<optab>qihi2_aarch64): Likewise, and split into two.
6786 (extendqihi2_aarch64): New.
6787 (zero_extendqihi2_aarch64): New.
6788 * config/aarch64/iterators.md (ldrxt): Remove.
6789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
6790 uxtb/uxth.
6791
6792 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
6793
6794 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
6795
6796 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
6797
6798 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
6799 (aarch64_push_reg): New function to push 1 or 2 registers.
6800 (aarch64_pop_reg): New function to pop 1 or 2 registers.
6801 (aarch64_expand_prologue): Use aarch64_push_regs.
6802 (aarch64_expand_epilogue): Use aarch64_pop_regs.
6803
6804 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
6805
6806 PR tree-optimization/71734
6807 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
6808 attribute instead of REF_LOOP and use it.
6809 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
6810 set it for Loops having non-zero safelen attribute.
6811 (ref_indep_loop_p): Pass zero as initial value for safelen.
6812
6813 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
6814
6815 PR middle-end/72657
6816 PR target/72683
6817 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
6818 call using chkp_gimple_call_builtin_p.
6819 (chkp_copy_bounds_for_assign): Likewise.
6820
6821 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6822
6823 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
6824 * config/arm/arm-protos.h (struct tune_params): Likewise.
6825 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6826 (cortex_a9_sched_adjust_cost): Likewise.
6827 (fa726te_sched_adjust_cost): Likewise.
6828 (arm_adjust_cost): Likewise.
6829 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
6830 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
6831 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
6832 * config/i386/i386.c (ix86_adjust_cost): Likewise.
6833 * config/ia64/ia64.c: Likewise.
6834 * config/m68k/m68k.c: Likewise.
6835 * config/mep/mep.c (mep_adjust_cost): Likewise.
6836 * config/microblaze/microblaze.c (microblaze_adjust_cost):
6837 * Likewise.
6838 * config/mips/mips.c (mips_adjust_cost): Likewise.
6839 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
6840 * Likewise.
6841 * config/pa/pa.c (pa_adjust_cost): Likewise.
6842 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
6843 (rs6000_debug_adjust_cost): Likewise.
6844 * config/sh/sh.c (sh_adjust_cost): Likewise.
6845 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
6846 (hypersparc_adjust_cost): Likewise.
6847 (sparc_adjust_cost): Likewise.
6848 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
6849 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
6850 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
6851 * Likewise.
6852 * config/visium/visium.c (visium_adjust_cost): Likewise.
6853 * doc/tm.texi: Regenerate.
6854 * haifa-sched.c (dep_cost_1): Adjust.
6855 * target.def: Merge adjust_cost and adjust_cost_2.
6856
6857 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6858
6859 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
6860
6861 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6862
6863 * store-motion.c (struct st_expr): Make pattern_regs a vector.
6864 (extract_mentioned_regs): Append to a vector instead of
6865 returning a rtx_expr_list.
6866 (st_expr_entry): Adjust.
6867 (free_st_expr_entry): Likewise.
6868 (store_ops_ok): Likewise.
6869 (store_killed_in_insn): Likewise.
6870 (find_moveable_store): Likewise.
6871
6872 2016-07-28 Martin Liska <mliska@suse.cz>
6873
6874 PR gcov-profile/68025
6875 * tree-profile.c (tree_profiling): Respect
6876 no_profile_instrument_function attribute.
6877 * doc/extend.texi: Document no_profile_instrument_function
6878 attribute.
6879
6880 2016-07-28 Martin Liska <mliska@suse.cz>
6881
6882 PR rtl-optimization/70944
6883 * combine.c (make_compound_operation):
6884 Do not allow make_compound_operation for vector mode
6885
6886 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
6887
6888 PR middle-end/71994
6889 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
6890 before calling get_ops.
6891
6892 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6893
6894 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
6895 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
6896 (BITS_PER_UNIT_LOG): Remove.
6897 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
6898 * expr.c (expand_assignment): Likewise.
6899 * stor-layout.c (initialize_sizetypes): Likewise.
6900
6901 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6902
6903 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
6904 signature of rs6000_expand_vector_extract so that the element
6905 number is a RTX instead of a constant integer.
6906 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
6907 Likewise.
6908 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
6909 (altivec_expand_vec_ext_builtin): Likewise.
6910 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
6911 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
6912 MFVSRLD instruction.
6913
6914 2016-07-27 David Malcolm <dmalcolm@redhat.com>
6915
6916 * input.c (get_pure_location): Move here from tree.c.
6917 (make_location): Likewise. Add header comment.
6918 (selftest::test_accessing_ordinary_linemaps): Verify
6919 pure_location_p, make_location, get_location_from_adhoc_loc and
6920 get_range_from_loc.
6921 * input.h (get_pure_location): Move declaration here from tree.h.
6922 (get_finish): Likewise for inline function.
6923 (make_location): Likewise for declaration.
6924 * tree.c (get_pure_location): Move to input.c.
6925 (make_location): Likewise.
6926 * tree.h (get_pure_location): Move declaration to tree.h.
6927 (get_finish): Likewise for inline function.
6928 (make_location): Likewise for declaration.
6929
6930 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6931
6932 PR middle-end/71078
6933 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6934
6935 2016-07-27 David Malcolm <dmalcolm@redhat.com>
6936
6937 * system.h (STATIC_ASSERT): Use static_assert if building
6938 with C++11 onwards.
6939
6940 2016-07-27 Richard Biener <rguenther@suse.de>
6941
6942 PR tree-optimization/72517
6943 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6944 Revert change to not compute read-read dependences.
6945
6946 2016-07-27 Richard Biener <rguenther@suse.de>
6947
6948 * predict.c (set_even_probabilities): Make nedges unsigned.
6949
6950 2016-07-27 Martin Liska <mliska@suse.cz>
6951
6952 * predict.c (set_even_probabilities): Handle unlikely edges.
6953 (combine_predictions_for_bb): Likewise.
6954
6955 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6956
6957 PR target/71869
6958 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6959 __float128 support when we don't have hardware support, so that
6960 the IEEE built-in functions like isgreater, first call __unordkf3
6961 to make sure neither operand is a NaN, and if both operands are
6962 ordered, do the normal comparison.
6963
6964 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
6965
6966 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6967 name.
6968 (extract_code_and_val_from_cond_with_ops): Verify that name is
6969 either cond_op0 or cond_op1.
6970
6971 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
6972
6973 PR tree-optimization/18046
6974 * genmodes.c (emit_mode_size_inline): Emit an assert that
6975 verifies that mode is a valid array index.
6976 (emit_mode_nuinits_inline): Likewise.
6977 (emit_mode_inner_inline): Likewise.
6978 (emit_mode_unit_size_inline): Likewise.
6979 (emit_mode_unit_precision_inline): Likewise.
6980 * tree-vrp.c: Include params.h.
6981 (find_switch_asserts): Register edge assertions for the default
6982 label which correspond to the anti-ranges of each case label.
6983 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6984 * doc/invoke.texi: Document it.
6985
6986 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6987
6988 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6989 and unnecessary call to gimple_bb.
6990
6991 2016-07-26 Richard Biener <rguenther@suse.de>
6992
6993 PR rtl-optimization/71984
6994 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6995 for VOIDmode.
6996
6997 2016-07-26 Richard Biener <rguenther@suse.de>
6998
6999 PR middle-end/72517
7000 * expmed.c (extract_bit_field_1): Constrain the vector mode
7001 with element size matching the extraction mode size when
7002 choosing a better vector mode to do the extraction from.
7003
7004 2016-07-26 Richard Biener <rguenther@suse.de>
7005 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7006
7007 PR middle-end/70920
7008 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
7009 pattern.
7010
7011 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7012
7013 * tree-ssa-structalias.c (struct scc_info): Change types of
7014 members to auto_sbitmap and auto_vec.
7015 (scc_info::scc_info): New constructor.
7016 (scc_info::~scc_info): New destructor.
7017 (init_scc_info): Remove.
7018 (free_scc_info): Remove.
7019 (find_indirect_cycles): Adjust.
7020 (perform_var_substitution): Likewise.
7021 (free_var_substitution_info): Likewise.
7022
7023 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7024
7025 * tree-outof-ssa.c (struct elim_graph): Change type of members
7026 to auto_vec and auto_sbitmap.
7027 (elim_graph::elim_graph): New constructor.
7028 (delete_elim_graph): Remove.
7029 (expand_phi_nodes): Adjust.
7030
7031 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7032
7033 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7034 (new_elim_graph): Adjust.
7035 (clear_elim_graph): Likewise.
7036 (delete_elim_graph): Likewise.
7037 (elim_graph_size): Likewise.
7038 (elim_graph_add_node): Likewise.
7039 (elim_graph_add_edge): Likewise.
7040 (elim_graph_remove_succ_edge): Likewise.
7041 (eliminate_name): Likewise.
7042 (eliminate_build): Likewise.
7043 (elim_forward): Likewise.
7044 (elim_unvisited_predecessor): Likewise.
7045 (elim_backward): Likewise.
7046 (elim_create): Likewise.
7047 (eliminate_phi): Likewise.
7048 (expand_phi_nodes): Likewise.
7049
7050 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7051
7052 * bt-load.c (compute_out): Use auto_sbitmap class.
7053 (link_btr_uses): Likewise.
7054 * cfganal.c (mark_dfs_back_edges): Likewise.
7055 (post_order_compute): Likewise.
7056 (inverted_post_order_compute): Likewise.
7057 (pre_and_rev_post_order_compute_fn): Likewise.
7058 (single_pred_before_succ_order): Likewise.
7059 * cfgexpand.c (pass_expand::execute): Likewise.
7060 * cfgloop.c (verify_loop_structure): Likewise.
7061 * cfgloopmanip.c (fix_bb_placements): Likewise.
7062 (remove_path): Likewise.
7063 (update_dominators_in_loop): Likewise.
7064 * cfgrtl.c (break_superblocks): Likewise.
7065 * ddg.c (check_sccs): Likewise.
7066 (create_ddg_all_sccs): Likewise.
7067 * df-core.c (df_worklist_dataflow): Likewise.
7068 * dse.c (dse_step3): Likewise.
7069 * except.c (eh_region_outermost): Likewise.
7070 * function.c (thread_prologue_and_epilogue_insns): Likewise.
7071 * gcse.c (prune_expressions): Likewise.
7072 (prune_insertions_deletions): Likewise.
7073 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7074 * graph.c (draw_cfg_nodes_no_loops): Likewise.
7075 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7076 * lcm.c (compute_earliest): Likewise.
7077 (compute_farthest): Likewise.
7078 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7079 (unroll_loop_runtime_iterations): Likewise.
7080 (unroll_loop_stupid): Likewise.
7081 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7082 * lra-lives.c: Likewise.
7083 * lra.c (lra): Likewise.
7084 * modulo-sched.c (schedule_reg_moves): Likewise.
7085 (optimize_sc): Likewise.
7086 (get_sched_window): Likewise.
7087 (sms_schedule_by_order): Likewise.
7088 (check_nodes_order): Likewise.
7089 (order_nodes_of_sccs): Likewise.
7090 (order_nodes_in_scc): Likewise.
7091 * recog.c (split_all_insns): Likewise.
7092 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7093 * reload1.c (reload): Likewise.
7094 * sched-rgn.c (haifa_find_rgns): Likewise.
7095 (split_edges): Likewise.
7096 (compute_trg_info): Likewise.
7097 * sel-sched.c (init_seqno): Likewise.
7098 * store-motion.c (remove_reachable_equiv_notes): Likewise.
7099 * tree-into-ssa.c (update_ssa): Likewise.
7100 * tree-ssa-live.c (live_worklist): Likewise.
7101 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7102 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7103 * Likewise.
7104 (try_peel_loop): Likewise.
7105 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7106 * Likewise.
7107 * tree-ssa-pre.c (compute_antic): Likewise.
7108 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7109 * tree-stdarg.c (reachable_at_most_once): Likewise.
7110 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7111 * var-tracking.c (vt_find_locations): Likewise.
7112
7113 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7114
7115 * sbitmap.h (auto_sbitmap): New class.
7116
7117 2016-07-26 Alan Modra <amodra@gmail.com>
7118
7119 PR target/72103
7120 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7121 sri->t_icode.
7122
7123 2016-07-25 David Malcolm <dmalcolm@redhat.com>
7124
7125 * input.c (selftest::temp_source_file::temp_source_file): Fix
7126 missing "%s" in fprintf.
7127
7128 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
7129
7130 PR middle-end/71732
7131 * cselib.c (cselib_process_insn): Invalidate argument slots for
7132 const/pure calls.
7133
7134 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7135
7136 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7137 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7138 vmulxh_lane_f16, vmulxh_laneq_f16): New.
7139
7140 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7141
7142 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7143 * config/aarch64/aarch64.md (fma, fnma): Support HF.
7144 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7145
7146 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7147
7148 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7149 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7150 New.
7151 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7152 (add<mode>3): Likewise.
7153 (sub<mode>3): Likewise.
7154 (mul<mode>3): Likewise.
7155 (div<mode>3): Likewise.
7156 (*div<mode>3): Likewise.
7157 (<fmaxmin><mode>3): Extend to HF.
7158 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7159 (fabd<mode>3): Likewise.
7160 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7161 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7162 (aarch64_fmulx<mode>): Likewise.
7163 (aarch64_fac<optab><mode>): Likewise.
7164 (aarch64_frecps<mode>): Likewise.
7165 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7166 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7167 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7168 (VSDQ_HSDI): Support HI.
7169 (fcvt_target, FCVT_TARGET): Likewise.
7170 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7171 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7172 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7173 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7174 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7175 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7176 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7177 vrsqrtsh_f16): New.
7178
7179 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7180
7181 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7182 * config/aarch64/aarch64-builtins.c (hi_UP): New.
7183 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7184 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7185 mode.
7186 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7187 (aarch64_cm<optab><mode>): Likewise.
7188 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7189 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7190 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7191 (sqrt<mode>2): Likewise.
7192 (*sqrt<mode>2): Likewise.
7193 (abs<mode>2): Likewise.
7194 (<optab><mode>hf2): New pattern for HF mode.
7195 (<optab>hihf2): Likewise.
7196 * config/aarch64/arm_neon.h: Include arm_fp16.h.
7197 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7198 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7199 Support HF mode.
7200 * config/aarch64/arm_fp16.h: New file.
7201 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7202 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7203 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7204 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7205 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7206 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7207 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7208 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7209 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7210 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7211 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7212 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7213 vsqrth_f16): New.
7214
7215 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7216
7217 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7218 reduc_smin_scal_): Use VDQIF_F16.
7219 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7220 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7221 Use VHSDF.
7222 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7223 * config/aarch64/iterators.md (VDQIF_F16): New.
7224 (vp): Support HF modes.
7225 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7226 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7227
7228 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7229
7230 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7231 "*aarch64_mulx_elt_from_dup<mode>".
7232 (*aarch64_mul3_elt<mode>): Update schedule type.
7233 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7234 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7235 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7236 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7237 (f, fp): Support HF modes.
7238 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7239 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7240 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7241 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7242 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7243 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7244
7245 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7246
7247 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7248 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7249 modes.
7250 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7251 vfmsq_f16): New.
7252
7253 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7254
7255 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7256 * config/aarch64/aarch64-simd.md
7257 (aarch64_rsqrts<mode>): Extend to HF modes.
7258 (fabd<mode>3): Likewise.
7259 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7260 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7261 (aarch64_<maxmin_uns>p<mode>): Likewise.
7262 (<su><maxmin><mode>3): Likewise.
7263 (<maxmin_uns><mode>3): Likewise.
7264 (<fmaxmin><mode>3): Likewise.
7265 (aarch64_faddp<mode>): Likewise.
7266 (aarch64_fmulx<mode>): Likewise.
7267 (aarch64_frecps<mode>): Likewise.
7268 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7269 (add<mode>3): Extend to HF modes.
7270 (sub<mode>3): Likewise.
7271 (mul<mode>3): Likewise.
7272 (div<mode>3): Likewise.
7273 (*div<mode>3): Likewise.
7274 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7275 HF, V4HF and V8HF.
7276 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7277 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7278 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7279 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7280 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7281 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7282 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7283 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7284 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7285 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7286 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7287 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7288 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7289 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7290
7291 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7292
7293 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7294 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7295 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7296 (neg<mode>2): Likewise.
7297 (abs<mode>2): Likewise.
7298 (<frint_pattern><mode>2): Likewise.
7299 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7300 (<optab><VDQF:mode><fcvt_target>2): Likewise.
7301 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7302 (ftrunc<VDQF:mode>2): Likewise.
7303 (<optab><fcvt_target><VDQF:mode>2): Likewise.
7304 (sqrt<mode>2): Likewise.
7305 (*sqrt<mode>2): Likewise.
7306 (aarch64_frecpe<mode>): Likewise.
7307 (aarch64_cm<optab><mode>): Likewise.
7308 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7309 HF, V4HF and V8HF.
7310 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7311 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7312 (stype): New.
7313 * config/aarch64/arm_neon.h (vdup_n_f16): New.
7314 (vdupq_n_f16): Likewise.
7315 (vld1_dup_f16): Use vdup_n_f16.
7316 (vld1q_dup_f16): Use vdupq_n_f16.
7317 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7318 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7319 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7320 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7321 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7322 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7323 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7324 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7325 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7326 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7327 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7328 vsqrt_f16, vsqrtq_f16): New.
7329
7330 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7331
7332 * config/aarch64/aarch64-simd.md
7333 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7334 (aarch64_ext<mode>): Likewise.
7335 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7336 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7337 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7338 and V8HFmode.
7339 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7340 float16x8_t.
7341 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7342 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7343 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7344 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7345 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7346 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7347 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7348 New.
7349 (vmov_n_f16): Reimplement using vdup_n_f16.
7350 (vmovq_n_f16): Reimplement using vdupq_n_f16..
7351
7352 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7353
7354 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7355 "frame_related_p". Generate CFA annotation when it's necessary.
7356 (aarch64_expand_prologue): Use aarch64_add_constant.
7357 (aarch64_expand_epilogue): Likewise.
7358 (aarch64_output_mi_thunk): Pass "false" when calling
7359 aarch64_add_constant.
7360
7361 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7362
7363 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7364 sequences.
7365
7366 2016-07-25 Jiong Wang <jiong.wang@arm.com>
7367
7368 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7369 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7370 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7371 (aarch64_build_constant): Delete.
7372
7373 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
7374
7375 Revert
7376 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7377
7378 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7379 flag_toplevel_reorder.
7380
7381 2016-07-25 Richard Biener <rguenther@suse.de>
7382
7383 * cgraph.c (cgraph_node::verify_node): Compare against builtin
7384 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7385 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7386 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7387 (streamer_get_builtin_tree): Likewise.
7388 (streamer_write_builtin): Likewise.
7389 * lto-streamer.h (LTO_builtin_decl): Remove.
7390 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7391 (lto_input_scc): Remove LTO_builtin_decl handling.
7392 (lto_input_tree_1): Liekwise.
7393 * lto-streamer-out.c (lto_output_tree_1): Remove special
7394 handling of builtins.
7395 (DFS::DFS): Likewise.
7396 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7397 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7398 assert.
7399 (streamer_write_builtin): Remove.
7400
7401 2016-07-25 Martin Liska <mliska@suse.cz>
7402
7403 * lto-cgraph.c (input_symtab): Don't call get_working_sets
7404 if flag_auto_profile is set to true.
7405
7406 2016-07-25 Martin Liska <mliska@suse.cz>
7407
7408 PR gcov-profile/71868
7409 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7410 have a function with multiple latches, count them all.
7411
7412 2016-07-25 Martin Liska <mliska@suse.cz>
7413
7414 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7415
7416 2016-07-25 Martin Liska <mliska@suse.cz>
7417
7418 PR tree-optimization/71987
7419 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7420 just for SSA_NAMEs. Fix GNU coding style.
7421
7422 2016-07-25 Martin Liska <mliska@suse.cz>
7423
7424 PR gcov-profile/64874
7425 * gcov-io.h: Update command about file format.
7426 * gcov-iov.c (main): Adapt the numbering scheme.
7427
7428 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
7429
7430 PR middle-end/66726
7431 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7432 whose result is used in PHI.
7433 (final_range_test_p): Likewise.
7434 (maybe_optimize_range_tests): Likewise.
7435
7436 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7437
7438 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7439 Reformat two multi-line strings.
7440
7441 2016-07-22 Martin Sebor <msebor@redhat.com>
7442
7443 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7444
7445 2016-07-22 Martin Sebor <msebor@redhat.com>
7446
7447 PR c/71560
7448 * doc/extend.texi (Compound Literals): Correct and clarify.
7449 (Cast to Union): Same.
7450
7451 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
7452
7453 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7454 comments to explain why certain error messages make mention of
7455 undocumented options.
7456 (rs6000_invalid_builtin): Change error messages to replace mention
7457 of undocumented options with mention of the -mcpu=power9 option
7458 that enables those undocumented options.
7459 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7460 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7461 definition of this macro to correct an existing error.
7462 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7463 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7464 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7465 descriptions of built-in functions so that they depend on
7466 -mcpu=power9 instead of on the corresponding undocumented flags.
7467 * doc/invoke.texi (Option Summary): Remove all mention of newly
7468 undocumented flags.
7469 (IBM RS/6000 and PowerPC Options): Likewise.
7470 * doc/md.texi (Constraints for Particuliar Machines): Remove all
7471 mention of newly undocumented flags.
7472
7473 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
7474
7475 * ipa-cp.c (determine_versionability): Do not create constprop clones,
7476 when target_clones attribute is set.
7477
7478 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7479
7480 * common.opt (funsafe-loop-optimizations): Mark ignore.
7481 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7482 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7483 related code.
7484 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7485 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7486
7487 2016-07-22 Bin Cheng <bin.cheng@arm.com>
7488
7489 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7490 Parameter.
7491 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7492 Parameter.
7493 (number_of_iterations_exit): Warn missed loop optimization for
7494 possible infinite loops.
7495
7496 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
7497
7498 PR target/71216
7499 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7500 when to emit a ".machine" pseudo-op.
7501
7502 2016-07-22 Martin Liska <mliska@suse.cz>
7503
7504 PR gcov-profile/69028
7505 PR gcov-profile/62047
7506 * coverage.c (coverage_compute_lineno_checksum): Do not
7507 calculate checksum for fns w/o xloc.file.
7508 (coverage_compute_profile_id): Likewise.
7509
7510 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
7511
7512 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7513 (avr_secondary_reload): ...and implementation.
7514 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7515 * config/avr/avr.md (reload_in<mode>): Remove insns.
7516 (adjust_len) [lpm]: Remove insn attribute value.
7517 * config/avr/predicates.md (flash_operand): Remove insn predicate.
7518
7519 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7520
7521 PR middle-end/71876
7522 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7523 attribute.
7524 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7525 * calls.c (special_function_p): Remove the special handling of the
7526 "__builtin_" prefix.
7527
7528 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7529
7530 PR middle-end/71876
7531 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
7532 if STMT may be an alloca call.
7533 (gimple_alloca_call_p, alloca_call_p): Return only true for the
7534 builtin alloca call.
7535 * calls.h (gimple_maybe_alloca_call_p): New function.
7536 * tree-inline.c (inline_forbidden_p_stmt): Use
7537 gimple_maybe_alloca_call_p here.
7538
7539 2016-07-21 David Malcolm <dmalcolm@redhat.com>
7540
7541 * spellcheck-tree.c (best_macro_match::best_macro_match):
7542 Explictly specify the template arguments when invoking the base
7543 class constructor, to help older C++ compilers.
7544
7545 2016-07-21 Jakub Jelinek <jakub@redhat.com>
7546
7547 PR sanitizer/71953
7548 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7549 before builtin_decl_implicit.
7550
7551 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7552
7553 * optabs.c (emit_condiitonal_move): Short circuit for identical
7554 sources.
7555
7556 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7557
7558 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7559 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
7560 (noce_conversion_profitable_p): New.
7561 (noce_try_store_flag_constants): Use it.
7562 (noce_try_addcc): Likewise.
7563 (noce_try_store_flag_mask): Likewise.
7564 (noce_try_cmove): Likewise.
7565 (noce_try_cmove_arith): Likewise.
7566 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7567 overwriting it.
7568 (noce_convert_multiple_sets): Move cost model to here, from...
7569 (bb_ok_for_noce_convert_multiple_sets) ...here.
7570 (noce_process_if_block): Update calls for above changes.
7571 (noce_find_if_block): Record new noce_if_info parameters.
7572
7573 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
7574
7575 * target.def (max_noce_ifcvt_seq_cost): New.
7576 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7577 * doc/tm.texi: Regenerate.
7578 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7579 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7580 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7581 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7582 * doc/invoke.texi: Document new params.
7583
7584 2016-07-21 Richard Biener <rguenther@suse.de>
7585
7586 PR tree-optimization/71947
7587 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7588 ranges have useful limit_vr information.
7589
7590 2016-07-21 Richard Biener <rguenther@suse.de>
7591
7592 * function-tests.c (build_trivial_generic_function): Set
7593 BLOCK_SUPERCONTEXT of DECL_INITIAL.
7594 * omp-low.c (create_omp_child_function): Likewise.
7595 (grid_expand_target_grid_body): Likewise.
7596 * cgraphunit.c (init_lowered_empty_function): Likewise.
7597 (cgraph_node::expand_thunk): Likewise.
7598 * tree-parloops.c (create_loop_fn): Likewise.
7599 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
7600
7601 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7602
7603 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
7604 in comment.
7605
7606 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
7607
7608 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
7609 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
7610 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
7611 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
7612 values for insn attribute.
7613 * config/avr/avr.c (avr_out_insert_notbit): New function.
7614 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
7615 ADJUST_LEN_INSV_NOTBIT_0/_7.
7616 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
7617
7618 2016-07-21 Bin Cheng <bin.cheng@arm.com>
7619
7620 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
7621 (chrec_convert_1, chrec_convert): Ditto.
7622 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
7623 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
7624 * tree-vrp.c (adjust_range_with_scev): Ditto.
7625 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
7626 (scev_var_range_cant_overflow): New function.
7627 (scev_probably_wraps_p): New parameter. Call above function.
7628 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
7629
7630 2016-07-21 Bin Cheng <bin.cheng@arm.com>
7631
7632 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
7633 by removing computation of may_be_zero.
7634
7635 2016-07-21 Jakub Jelinek <jakub@redhat.com>
7636
7637 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
7638
7639 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
7640
7641 Improving concepts performance and diagnostics.
7642 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
7643 for constraint satisfaction and subsumption.
7644 * timevar.h (auto_timevar): New constructor that matches the push/pop
7645 pattern of usage in pt.c.
7646
7647 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
7648
7649 * hwint.h (HOST_WIDE_INT_0): New define.
7650 (HOST_WIDE_INT_0U): Ditto.
7651 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
7652 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
7653 * simplify-rtx.c: Ditto.
7654 * tree-object-size.c: Ditto.
7655
7656 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7657
7658 * config/s390/s390.c (s390_encode_section_info): Remove mode size
7659 check.
7660
7661 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
7662
7663 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
7664 * combine.c: Use HOST_WIDE_INT_M1U instead of
7665 ~(unsigned HOST_WIDE_INT) 0.
7666 * double-int.h: Ditto.
7667 * dse.c: Ditto.
7668 * dwarf2asm.c:Ditto.
7669 * expmed.c: Ditto.
7670 * genmodes.c: Ditto.
7671 * match.pd: Ditto.
7672 * read-rtl.c: Ditto.
7673 * tree-ssa-loop-ivopts.c: Ditto.
7674 * tree-ssa-loop-prefetch.c: Ditto.
7675 * tree-vect-generic.c: Ditto.
7676 * tree-vect-patterns.c: Ditto.
7677 * tree.c: Ditto.
7678
7679 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7680
7681 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
7682 constant addresses outside [0,0xc0] into a register.
7683 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
7684 cases where the base address register is unused after.
7685 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
7686 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
7687 (avr_out_store_psi_reg_disp_tiny): Same.
7688
7689 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7690
7691 Implement attribute progmem on reduced Tiny cores by adding
7692 flash offset 0x4000 to respective symbols.
7693
7694 PR target/71948
7695 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
7696 documentation how it works on reduced Tiny cores.
7697 (AVR Named Address Spaces): No support for reduced Tiny.
7698 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
7699 (avr_address_tiny_pm_p): New static function.
7700 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
7701 if the address is in progmem.
7702 (avr_assemble_integer): Same.
7703 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
7704 for symbol_ref in progmem.
7705 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
7706 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
7707 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
7708
7709 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
7710
7711 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
7712 * configure: Regenerate.
7713 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
7714 (USE_THIN_ARCHIVES): New variable.
7715 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
7716 this archive as a thin archive.
7717
7718 2016-07-20 David Malcolm <dmalcolm@redhat.com>
7719
7720 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
7721 same location as last time, don't skip if we have fix-it hints.
7722 Clarify the skipping logic by converting it from one "if" clause
7723 to repeated "if" clauses.
7724 * spellcheck-tree.c: Include "cpplib.h".
7725 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
7726 (best_macro_match::best_macro_match): New constructor.
7727 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
7728 Move here from c/c-decl.c.
7729 (class best_macro_match): Move here from c/c-decl.c, converting
7730 from a typedef to a subclass, gaining a ctor.
7731
7732 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7733
7734 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
7735 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
7736 define...
7737 (avr_addr_space_diagnose_usage): ...and implementation.
7738 (avr_addr_space_supported_p): New function.
7739 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
7740 report bad address space usage if that space is supported.
7741 (avr_insert_attributes): Same. No more complain about unsupported
7742 address spaces.
7743 * config/avr/avr-c.c (tm_p.h): Include it.
7744 (avr_cpu_cpp_builtins): Only define addr-space related built-in
7745 macro if avr_addr_space_supported_p.
7746
7747 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
7748
7749 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7750 flag_toplevel_reorder.
7751
7752 2016-07-20 David Malcolm <dmalcolm@redhat.com>
7753
7754 * gcc-rich-location.c
7755 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
7756 a const char *.
7757 * gcc-rich-location.h
7758 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
7759
7760 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
7761
7762 * target.def (addr_space): Add new diagnose_usage to hook vector.
7763 * targhooks.c (default_addr_space_diagnose_usage): Add default
7764 implementation and...
7765 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
7766 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
7767 is some address space, call targetm.addr_space.diagnose_usage.
7768 * doc/tm.texi.in (Named Address Spaces): Add anchor for
7769 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
7770 * doc/tm.texi: Regenerate.
7771
7772 2016-07-20 Martin Liska <mliska@suse.cz>
7773
7774 PR middle-end/71898
7775 * graphite-isl-ast-to-gimple.c (later_of_the_two):
7776 Properly handly PHI stmts.
7777
7778 2016-07-20 Bin Cheng <bin.cheng@arm.com>
7779
7780 PR tree-optimization/71503
7781 PR tree-optimization/71683
7782 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
7783 and break.
7784
7785 2016-07-20 Martin Liska <mliska@suse.cz>
7786
7787 * doc/invoke.texi (-fipa-ra): Document when the option is
7788 disabled. Fix a typo.
7789
7790 2016-07-20 Martin Liska <mliska@suse.cz>
7791
7792 * Makefile.in: Include fibonacci_heap.c
7793 * fibonacci_heap.c: New file.
7794 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
7795 (fibonacci_heap::union_with): Fix deletion of the second heap.
7796 * selftest-run-tests.c (selftest::run_tests): Incorporate
7797 fibonacci heap tests.
7798 * selftest.h: Declare fibonacci_heap_c_tests.
7799
7800 2016-07-20 Martin Liska <mliska@suse.cz>
7801
7802 * selftest-run-tests.c (selftest::run_tests): New function.
7803 * selftest.h (sreal_c_tests): Declare.
7804 * sreal.c (sreal_verify_basics): New function.
7805 (verify_aritmetics): Likewise.
7806 (sreal_verify_arithmetics): Likewise.
7807 (verify_shifting): Likewise.
7808 (sreal_verify_shifting): Likewise.
7809 (void sreal_c_tests): Likewise.
7810
7811 2016-07-19 Jakub Jelinek <jakub@redhat.com>
7812
7813 PR rtl-optimization/71916
7814 * cfgrtl.c (contains_no_active_insn_p): Return false also for
7815 bb which have a single succ fake edge.
7816
7817 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
7818
7819 PR debug/71855
7820 * dwarf2out.c (gen_subprogram_die): Only call
7821 gen_unspecified_parameters_die while dumping early dwarf.
7822
7823 2016-07-19 Jakub Jelinek <jakub@redhat.com>
7824
7825 PR middle-end/71874
7826 * gimple-fold.c (fold_builtin_memory_op): Use
7827 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7828
7829 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
7830
7831 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
7832 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
7833 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
7834 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
7835 * combine.c: Ditto.
7836 * cse.c: Ditto.
7837 * dojump.c: Ditto.
7838 * double-int.c: Ditto.
7839 * dse.c: Ditto.
7840 * dwarf2out.c: Ditto.
7841 * expmed.c: Ditto.
7842 * expr.c: Ditto.
7843 * fold-const.c: Ditto.
7844 * function.c: Ditto.
7845 * fwprop.c: Ditto.
7846 * genmodes.c: Ditto.
7847 * hwint.c: Ditto.
7848 * hwint.h: Ditto.
7849 * ifcvt.c: Ditto.
7850 * loop-doloop.c: Ditto.
7851 * loop-invariant.c: Ditto.
7852 * loop-iv.c: Ditto.
7853 * match.pd: Ditto.
7854 * optabs.c: Ditto.
7855 * real.c: Ditto.
7856 * reload.c: Ditto.
7857 * rtlanal.c: Ditto.
7858 * simplify-rtx.c: Ditto.
7859 * stor-layout.c: Ditto.
7860 * toplev.c: Ditto.
7861 * tree-ssa-loop-ivopts.c: Ditto.
7862 * tree-vect-generic.c: Ditto.
7863 * tree-vect-patterns.c: Ditto.
7864 * tree.c: Ditto.
7865 * tree.h: Ditto.
7866 * ubsan.c: Ditto.
7867 * varasm.c: Ditto.
7868 * wide-int-print.cc: Ditto.
7869 * wide-int.cc: Ditto.
7870 * wide-int.h: Ditto.
7871
7872 2016-07-19 David Malcolm <dmalcolm@redhat.com>
7873
7874 * selftest.c (selftest::assert_streq): Handle NULL values of
7875 val_actual and val_expected.
7876
7877 2016-07-19 Martin Jambor <mjambor@suse.cz>
7878
7879 PR fortran/71688
7880 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
7881 rather than cgraph_create_node to get a call graph node.
7882
7883 2016-07-19 Richard Biener <rguenther@suse.de>
7884
7885 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
7886 handle all tcc_constant bases and valueize SSA names.
7887 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
7888 tcc_constant bases.
7889
7890 2016-07-19 David Malcolm <dmalcolm@redhat.com>
7891
7892 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
7893 the flags of the exit block and bb2, not just the entry block.
7894
7895 2016-07-19 Richard Biener <rguenther@suse.de>
7896
7897 PR tree-optimization/71901
7898 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7899 align member, group stuff with the bitfield.
7900 (vn_ref_op_align_unit): New inline.
7901 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
7902 record element alignment and operand 3 unchanged.
7903 (ao_ref_init_from_vn_reference): Adjust.
7904 (valueize_refs_1): Likewise.
7905 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7906
7907 2016-07-19 Richard Biener <rguenther@suse.de>
7908
7909 PR tree-optimization/71908
7910 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
7911 symbolic constants in a more reliable way.
7912
7913 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
7914
7915 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7916 comment.
7917 (vect_update_inits_of_drs): Likewise.
7918 (vect_create_cond_for_alias_checks): Likewise.
7919 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7920
7921 2016-07-19 Richard Biener <rguenther@suse.de>
7922
7923 PR lto/71907
7924 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7925 with an abstract origin that is not an inlined function outer
7926 scope add a self-reference as abstract origin.
7927 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7928
7929 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
7930
7931 PR target/71493
7932 * config/rs6000/rs6000.c (rs6000_function_value): Fix
7933 unintentional System V.4 structure return breakage for structures
7934 with a single floating point element.
7935
7936 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7937
7938 PR tree-optimization/71734
7939 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7940 contains REF, use it to check safelen, assume that safelen value
7941 must be greater 1, fix style.
7942 (ref_indep_loop_p_2): Add REF_LOOP argument.
7943 (ref_indep_loop_p): Pass LOOP as additional argument to
7944 ref_indep_loop_p_2.
7945
7946 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
7947
7948 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7949 allocation in the prologue.
7950 * explow.c (get_dynamic_stack_base): New function to return an address
7951 expression for the dynamic stack base.
7952 (get_dynamic_stack_size): New function to do the required dynamic stack
7953 space size calculations.
7954 (allocate_dynamic_stack_space): Use new functions.
7955 (align_dynamic_address): Move some code from
7956 allocate_dynamic_stack_space to new function.
7957 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7958
7959 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7960
7961 * config/s390/s390.c (s390_encode_section_info): Always set
7962 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7963 found.
7964
7965 2016-07-18 Richard Biener <rguenther@suse.de>
7966
7967 PR tree-optimization/71893
7968 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7969 for sizetype cast added by array_ref_element_size.
7970 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7971
7972 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
7973
7974 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7975 register parameters. Remove code to initialize argument pointer
7976 on TARGET_64BIT. Optimize call to _mcount when it can be reached
7977 using a pc-relative branch. Cleanup conditional code.
7978 * config/pa/pa.md (call_mcount): New expander.
7979 (call_mcount_nonpic): New insn.
7980 (call_mcount_pic): New insn and split.
7981 (call_mcount_pic_post_reload): New insn.
7982 (call_mcount_64bit): New insn and split.
7983 (call_mcount_64bit_post_reload): New insn.
7984
7985 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
7986
7987 * config/avr/predicates.md (const_m255_to_m1_operand): New.
7988 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7989 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7990 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7991 (*usum_widenqihi3, *udiff_widenqihi3)
7992 (*addhi3_zero_extend.const): New combiner insns.
7993 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7994 just 1 bit is affected.
7995 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7996 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7997
7998 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
7999
8000 * omp-low.c (lower_omp_target): Mark data clauses with
8001 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
8002 zero-length subarrays.
8003
8004 2016-07-15 Richard Biener <rguenther@suse.de>
8005
8006 PR tree-optimization/71881
8007 * tree-loop-distribution.c (destroy_loop): Remove blocks in
8008 reverse DOM order to make debug temp generation happy.
8009
8010 2016-07-15 Richard Biener <rguenther@suse.de>
8011
8012 PR tree-optimization/71887
8013 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
8014 verify it is not zero for division / modulo handling.
8015 (value_replacement): Adjust.
8016
8017 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
8018 Julian Brown <julian@codesourcery.com>
8019
8020 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8021 * config/aarch64/aarch64-cost-tables.h
8022 (vulcan_extra_costs): New variable.
8023 * config/aarch64/aarch64.c
8024 (vulcan_addrcost_table): Likewise.
8025 (vulcan_regmove_cost): Likewise.
8026 (vulcan_vector_cost): Likewise.
8027 (vulcan_branch_cost): Likewise.
8028 (vulcan_tunings): Likewise.
8029
8030 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
8031
8032 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8033 (output_in_order): Loop over undefined variables too. Output them
8034 via assemble_undefined_decl. Skip variables that correspond to hard
8035 registers or have value-exprs.
8036 * varpool.c (symbol_table::output_variables): Handle undefined
8037 variables together with defined ones.
8038
8039 2016-07-15 Richard Biener <rguenther@suse.de>
8040
8041 * tree-ssa-pre.c (get_representative_for): Make sure to return
8042 the value number of SSA names.
8043 (phi_translate_1): get_representative_for cannot return NULL.
8044 (do_pre_regular_insertion): Remove redundant call to
8045 fully_constant_expression.
8046 (do_pre_partial_partial_insertion): Likewise.
8047
8048 2016-07-15 Bin Cheng <bin.cheng@arm.com>
8049
8050 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8051 (derive_simple_iv_with_niters): New function.
8052 (simple_iv): Rewrite using simple_iv_with_niters.
8053 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8054 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8055 function.
8056 (number_of_iterations_exit): Rewrite using above function.
8057 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8058 Decl.
8059
8060 2016-07-15 Richard Biener <rguenther@suse.de>
8061
8062 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8063 vec_construct cost.
8064
8065 2016-07-14 Jakub Jelinek <jakub@redhat.com>
8066
8067 PR tree-optimization/71872
8068 * tree-data-ref.c (get_references_in_stmt): Ignore references
8069 with is_gimple_constant get_base_address.
8070
8071 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8072
8073 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8074 (TARGET_HAVE_LDACQD): New macro.
8075 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8076 than TARGET_HAVE_LDACQ.
8077 (arm_load_acquire_exclusivedi): Likewise.
8078 (arm_store_release_exclusivedi): Likewise.
8079
8080 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
8081
8082 PR rtl-optimization/71878
8083 * lra-constraints.c (match_reload): Pass information about other
8084 output operands. Create new unique register value if matching input
8085 operand shares same register value as output operand being considered.
8086 (curr_insn_transform): Record output operands already processed.
8087
8088 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8089
8090 PR target/65951
8091 PR tree-optimization/70923
8092 * tree-vect-patterns.c: Include mult-synthesis.h.
8093 (target_supports_mult_synth_alg): New function.
8094 (synth_lshift_by_additions): Likewise.
8095 (apply_binop_and_append_stmt): Likewise.
8096 (vect_synth_mult_by_constant): Likewise.
8097 (target_has_vecop_for_code): Likewise.
8098 (vect_recog_mult_pattern): Use above functions to synthesize vector
8099 multiplication by integer constants.
8100
8101 2016-07-14 Alan Modra <amodra@gmail.com>
8102
8103 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8104 gpr alternatives. Correct '*' placement on Y,r alternative.
8105 Add '*' on operand 1 of r,r alternative.
8106
8107 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8108
8109 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8110 * expmed.h: ... Here.
8111
8112 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
8113
8114 * gimple.h (stmt_can_terminate_bb_p): New function.
8115 * tree-cfg.c (need_fake_edge_p): Rename to ...
8116 (stmt_can_terminate_bb_p): ... this; return true if stmt can
8117 throw external; handle const and pure calls.
8118 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8119
8120 2016-07-14 Richard Biener <rguenther@suse.de>
8121
8122 PR tree-optimization/71866
8123 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8124 (do_hoist_insertion): Avoid endless recursion when we
8125 didn't insert anything because we managed to simplify
8126 things down to a constant or SSA name.
8127 (fully_constant_expression): Re-write in terms of ...
8128 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
8129 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8130 vn_nary_build_or_lookup_1.
8131 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8132 (vn_nary_build_or_lookup): ... this which now wraps it.
8133
8134 2016-07-14 Alan Modra <amodra@gmail.com>
8135
8136 PR target/71733
8137 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8138 with p9_vector override before power9-dform override.
8139
8140 2016-07-13 Andi Kleen <ak@linux.intel.com>
8141
8142 * value-prof.c (gimple_value_profile_transformations): Don't run
8143 when auto_profile is on.
8144
8145 2016-07-13 Andi Kleen <ak@linux.intel.com>
8146
8147 * auto-profile.c (update_inlined_ind_target,
8148 afdo_indirect_call): Print information to dump file.
8149
8150 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
8151
8152 * genrecog.c (special_predicate_operand_p): New function.
8153 (predicate_name): Move function.
8154 (validate_pattern): Don't warn about missing mode for all
8155 define_special_predicate predicates.
8156
8157 2016-07-13 Bin Cheng <bin.cheng@arm.com>
8158
8159 * tree-vect-data-refs.c (vect_no_alias_p): New function.
8160 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8161 resolve alias checks which are known at compilation time.
8162 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8163 alias checks are resolved. Move dump info for too many runtime
8164 alias checks to here...
8165 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8166
8167 2016-07-13 Richard Biener <rguenther@suse.de>
8168
8169 PR tree-optimization/24574
8170 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8171 position and add shift, rotate, divison and modulo support
8172 for left zero.
8173 (value_replacement): Pass in argument position to absorbing_element_p.
8174
8175 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
8176
8177 PR ipa/71633
8178 * ipa-inline-transform.c (inline_call): Support
8179 instrumented thunks.
8180
8181 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8182
8183 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8184 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8185 divide feature.
8186 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8187 Baseline. Make initial alternative TARGET_32BIT only.
8188 (udivsi3): Likewise.
8189 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8190 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8191 target.
8192
8193 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8194
8195 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8196 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8197 availability with TARGET_HAVE_MOVT.
8198 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8199 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8200 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8201 UINTVAL.
8202 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8203 extra instruction if MOVW is available. Use a cost variable
8204 incremented by COSTS_N_INSNS (1) when the condition match rather than
8205 returning an arithmetic expression based on COSTS_N_INSNS. Make
8206 constant with bottom half word zero cost 2 instruction if MOVW is
8207 available.
8208 * config/arm/arm.md (define_attr "arch"): Add v8mb.
8209 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8210 target is ARMv8-M Baseline.
8211 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8212 (arm_movtas_ze): Likewise.
8213 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8214 alternative for constants satisfying j constraint.
8215 (thumb1_movsi_insn): Likewise.
8216 (movsi splitter for K alternative): Tighten condition to not trigger
8217 if movt is available and j constraint is satisfied.
8218 (Pe immediate splitter): Likewise.
8219 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8220 constant fitting in an halfword to use MOVW.
8221 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8222 effective target.
8223
8224 2016-07-13 Richard Biener <rguenther@suse.de>
8225
8226 PR middle-end/71104
8227 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8228 gimplifying the LHS. Make sure to gimplify a returning twice
8229 call LHS without using SSA names.
8230
8231 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8232
8233 * tree-data-ref.c (find_data_references_in_stmt): Remove
8234 unnecessary call to vec::release.
8235 (graphite_find_data_references_in_stmt): Likewise.
8236 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8237 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8238
8239 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8240
8241 * cfgexpand.c (expand_used_vars): Make the type of a local
8242 variable auto_vec.
8243 * genmatch.c (lower_for): Likewise.
8244 * haifa-sched.c (haifa_sched_init): Likewise.
8245 (add_to_speculative_block): Likewise.
8246 (create_check_block_twin): Likewise.
8247 * predict.c (handle_missing_profiles): Likewise.
8248 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8249 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8250 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8251 Likewise.
8252 (maybe_lower_iteration_bound): Likewise.
8253 * tree-ssa-sccvn.c (DFS): Likewise.
8254 * tree-stdarg.c (reachable_at_most_once): Likewise.
8255 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8256 (vectorizable_store): Likewise.
8257
8258 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8259
8260 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8261 (sccvn_dom_walker): make cond_stack an auto_vec.
8262
8263 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8264
8265 * ree.c (struct ext_state): Make type of members auto_vec.
8266 (find_and_remove_re): Adjust.
8267
8268 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8269
8270 * cfgexpand.c (struct stack_vars_data): Make type of fields
8271 auto_vec.
8272 (expand_used_vars): Adjust.
8273
8274 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8275
8276 * ipa.c (record_cdtor_fn): Adjust.
8277 (build_cdtor_fns): Likewise.
8278 (ipa_cdtor_merge): Make static_ctors and static_dtors local
8279 variables.
8280
8281 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8282
8283 * genextract.c (struct accum_extract): Add constructor and make
8284 members auto_vec.
8285 (gen_insn): Adjust.
8286
8287 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8288
8289 * tree.c (struct free_lang_data_d): Add constructor and change
8290 types of members to ones that automatically manage resources.
8291 (fld_worklist_push): Adjust.
8292 (find_decls_types): Likewise.
8293 (find_decls_types_in_eh_region): Likewise.
8294 (free_lang_data_in_cgraph): Stop manually creating and
8295 destroying members of free_lang_data_d.
8296
8297 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
8298
8299 PR rtl-optimization/68961
8300 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8301 peephole variant. Use sse_reg_operand predicates.
8302
8303 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
8304
8305 * config/i386/predicates.md (x86_64_immediate_operand)
8306 <case CONST_INT>: Remove unneeded truncation to DImode.
8307 <case CONST>: Ditto.
8308 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8309
8310 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8311
8312 PR target/71805
8313 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8314 The xxperm and xxpermr instructions require that the 2nd input
8315 operand overlap with the output operand, and not the 1st.
8316 (altivec_vperm_v8hiv16qi): Likewise.
8317 (altivec_vperm_<mode>_uns_internal): Likewise.
8318 (altivec_vpermr_<mode>_internal): Likewise.
8319 (vperm_v8hiv4si): Likewise.
8320 (vperm_v16qiv8hi): Likewise.
8321
8322 2016-07-12 Nathan Sidwell <nathan@acm.org>
8323
8324 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8325 when -mno-pic-data-is-text-relative is in effect, by default.
8326 * doc/invoke.texi (mpic-data-is-text-relative): Document new
8327 behavior and clarify.
8328
8329 2016-07-12 Martin Liska <mliska@suse.cz>
8330
8331 * params.def: Add avg-loop niter.
8332 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8333 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8334 * doc/invoke.texi: Document the new parameter.
8335
8336 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8337
8338 PR middle-end/71700
8339 * expr.c (store_constructor): Mask sign-extended bits when widening
8340 sub-word constructor element at the start of a word.
8341
8342 2016-07-12 Martin Liska <mliska@suse.cz>
8343
8344 * Makefile.in: Append rule for params-options.h.
8345 * params-options.h: New file.
8346
8347 2016-07-12 Martin Liska <mliska@suse.cz>
8348
8349 * ira-build.c (mark_loops_for_removal): Properly iterate
8350 loops.
8351
8352 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
8353 Richard Biener <rguenther@suse.de>
8354
8355 PR tree-optimization/23286
8356 PR tree-optimization/70159
8357 * doc/invoke.texi: Document -fcode-hoisting.
8358 * common.opt (fcode-hoisting): New flag.
8359 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8360 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8361 (do_regular_insertion): Rename to ...
8362 (do_pre_regular_insertion): ... this and amend general comments
8363 on insertion strathegy.
8364 (do_partial_partial_insertion): Rename to ...
8365 (do_pre_partial_partial_insertion): ... this.
8366 (do_hoist_insertion): New function.
8367 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8368 and call do_hoist_insertion properly.
8369 (insert): Adjust.
8370 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8371 (pass_pre::execute): Register hoist_insert stats.
8372
8373 2016-07-12 Jakub Jelinek <jakub@redhat.com>
8374
8375 PR middle-end/71716
8376 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8377 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8378 is different from mode's bitsize. Small cleanup.
8379
8380 2016-07-12 Richard Biener <rguenther@suse.de>
8381
8382 PR rtl-optimization/68961
8383 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8384 to simplify to a non-constant.
8385
8386 2016-07-11 Jakub Jelinek <jakub@redhat.com>
8387
8388 PR middle-end/71758
8389 * omp-low.c (expand_omp_target): Gimplify device.
8390
8391 PR tree-optimization/71823
8392 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8393 to get vec_oprnds2 from op2.
8394
8395 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
8396
8397 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8398 Hoist common subexpressions.
8399 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8400
8401 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
8402
8403 PR target/71800
8404 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8405 prevent generation of 'stxsiwx' on pre Power8 hardware.
8406
8407 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8408
8409 * input.c: Include cpplib.h.
8410 (selftest::temp_source_file): New class.
8411 (selftest::temp_source_file::temp_source_file): New ctor.
8412 (selftest::temp_source_file::~temp_source_file): New dtor.
8413 (selftest::should_have_column_data_p): New function.
8414 (selftest::test_should_have_column_data_p): New function.
8415 (selftest::temp_line_table): New class.
8416 (selftest::temp_line_table::temp_line_table): New ctor.
8417 (selftest::temp_line_table::~temp_line_table): New dtor.
8418 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8419 it to create a temp_line_table.
8420 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8421 locations that are known to have column data.
8422 (selftest::line_table_case): New struct.
8423 (selftest::test_reading_source_line): Move tempfile handling
8424 to class temp_source_file.
8425 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8426 (selftest::assert_token_loc_eq): New function.
8427 (ASSERT_TOKEN_LOC_EQ): New macro.
8428 (selftest::test_lexer): New function.
8429 (selftest::boundary_locations): New array.
8430 (selftest::input_c_tests): Call test_should_have_column_data_p.
8431 Loop over a test matrix of interesting values of location and
8432 default_range_bits, calling test_lexer on each case in the matrix.
8433 Move call to test_accessing_ordinary_linemaps into the matrix.
8434 * selftest.h (ASSERT_EQ): Reimplement in terms of...
8435 (ASSERT_EQ_AT): New macro.
8436
8437 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
8438
8439 PR target/71801
8440 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8441 Don't convert TImode in debug insn.
8442
8443 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8444
8445 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8446 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8447 (tree_type_common::lang_flag_7): New.
8448 (tree_type_common::spare): Reduce size.
8449 * tree.h (TYPE_ALIGN_OK): Remove.
8450 (TYPE_LANG_FLAG_7): New.
8451 (get_inner_reference): Adjust header.
8452 * print-tree.c (print_node): Adjust.
8453 * expr.c (get_inner_reference): Remove parameter keep_aligning.
8454 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8455 calls to get_inner_reference.
8456 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
8457 handling of TYPE_ALIGN_OK.
8458 * builtins.c (get_object_alignment_2): Adjust call to
8459 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
8460 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8461 TYPE_ALIGN_OK.
8462 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8463 * cfgexpand.c (expand_debug_expr): Likewise.
8464 * dbxout.c (dbxout_expand_expr): Likewise.
8465 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8466 loc_list_from_tree, fortran_common): Likewise.
8467 * fold-const.c (optimize_bit_field_compare,
8468 decode_field_reference, fold_unary_loc, fold_comparison,
8469 split_address_to_core_and_offset): Likewise.
8470 * gimple-laddress.c (execute): Likewise.
8471 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8472 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8473 * hsa-gen.c (gen_hsa_addr): Likewise.
8474 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8475 * tsan.c (instrument_expr): Likewise.
8476 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8477 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8478 * tree-affine.c (tree_to_aff_combination,
8479 get_inner_reference_aff): Adjust calls to get_inner_reference.
8480 * tree-data-ref.c (split_constant_offset_1,
8481 dr_analyze_innermost): Likewise.
8482 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8483 * tree-sra.c (ipa_sra_check_caller): Likewise.
8484 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8485 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8486 bswap_replace): Likewise.
8487 * tree-vect-data-refs.c (vect_check_gather,
8488 vect_analyze_data_refs): Likewise.
8489 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8490 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8491 TYPE_ALIGN_OK.
8492
8493 2016-07-11 David Malcolm <dmalcolm@redhat.com>
8494
8495 * Makefile.in (selftest-valgrind): New phony target.
8496 * function-tests.c (selftest::build_cfg): Delete pass instances
8497 created by the test.
8498 (selftest::convert_to_ssa): Likewise.
8499 (selftest::test_expansion_to_rtl): Likewise.
8500 * tree-cfg.c (selftest::test_linear_chain): Release dominator
8501 vectors.
8502 (selftest::test_diamond): Likewise.
8503
8504 2016-07-11 Richard Biener <rguenther@suse.de>
8505
8506 PR tree-optimization/71816
8507 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8508 than replacing all of its operands.
8509
8510 2016-07-11 Alan Modra <amodra@gmail.com>
8511
8512 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8513 (ctr<mode>): Add unspec.
8514 (ctr<mode>_internal*): Likewise.
8515
8516 2016-07-08 James Bowman <james.bowman@ftdichip.com>
8517
8518 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8519 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8520
8521 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
8522
8523 PR rtl-optimization/71621
8524 * lra-constraints.c (process_alt_operands): Check combination of
8525 reg class and mode.
8526
8527 2016-07-08 Jason Merrill <jason@redhat.com>
8528 Richard Biener <rguenther@suse.de>
8529
8530 P0145: Refining Expression Order for C++.
8531 * gimplify.c (initial_rhs_predicate_for): New.
8532 (gimplfy_modify_expr): Gimplify RHS before LHS.
8533
8534 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8535
8536 PR target/71297
8537 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8538 Allow standard error handling to take over when a wrong number
8539 of arguments is presented to __builtin_vec_ld () or
8540 __builtin_vec_st ().
8541
8542 2016-07-08 Jiong Wang <jiong.wang@arm.com>
8543
8544 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8545 variants.
8546 (smin): Likewise.
8547 (fmax): New entry.
8548 (fmin): Likewise.
8549 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8550 __builtin_aarch64_fmaxv2sf.
8551 (vmaxnmq_f32): Likewise.
8552 (vmaxnmq_f64): Likewise.
8553 (vminnm_f32): Likewise.
8554 (vminnmq_f32): Likewise.
8555 (vminnmq_f64): Likewise.
8556
8557 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8558
8559 PR target/71806
8560 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8561 enable -mfloat128-hardware by default.
8562 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8563 that IEEE 128-bit hardware support needs.
8564 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8565 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8566 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8567 floating point requires.
8568 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8569 -mfloat128 and -mfloat128-hardware changes.
8570
8571 2016-07-08 Alan Hayward <alan.hayward@arm.com>
8572
8573 PR tree-optimization/71667
8574 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8575
8576 2016-07-08 Martin Liska <mliska@suse.cz>
8577
8578 PR middle-end/71606
8579 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8580 folding produces SAVE_EXPRs, thus return false for the type.
8581
8582 2016-07-07 Martin Liska <mliska@suse.cz>
8583
8584 * file-find.c (remove_prefix): New function.
8585 * file-find.h (remove_prefix): Declare the function.
8586 * gcc-ar.c (main): Skip a folder of the wrapper if
8587 a wrapped binary would point to the same file.
8588
8589 2016-07-07 Jan Hubicka <jh@suse.cz>
8590
8591 * tree-scalar-evolution.c (iv_can_overflow_p): export.
8592 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8593 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
8594
8595 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
8596
8597 PR ipa/71624
8598 * ipa-inline-analysis.c (compute_inline_parameters): Set
8599 local.can_change_signature to false for intrumentation
8600 thunk callees.
8601
8602 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8603
8604 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
8605 with TARGET_HAVE_MOVT.
8606 (TARGET_HAVE_MOVT): Define.
8607 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
8608 availability with TARGET_HAVE_MOVT.
8609 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
8610 availability.
8611 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
8612 TARGET_THUMB2.
8613 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
8614 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
8615 * config/arm/constraints.md (define_constraint "j"): Use
8616 TARGET_HAVE_MOVT to check MOVT availability.
8617
8618 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8619
8620 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
8621
8622 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8623
8624 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
8625 (armv8-m.main): Likewise.
8626 (armv8-m.main+dsp): Likewise.
8627 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
8628 (FL_FOR_ARCH8M_MAIN): Likewise.
8629 * config/arm/arm-tables.opt: Regenerate.
8630 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
8631 armv8-m.main+dsp to BE8_LINK_SPEC.
8632 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
8633 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
8634 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
8635 Baseline and Mainline.
8636 (arm_option_override_internal): Also disable arm_restrict_it when
8637 !arm_arch_notm. Update comment for -munaligned-access to also cover
8638 ARMv8-M Baseline.
8639 (arm_file_start): Increase buffer size for printing architecture name.
8640 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
8641 and armv8-m.main+dsp.
8642 (mno-unaligned-access): Clarify that this is disabled by default for
8643 ARMv8-M Baseline architectures as well.
8644
8645 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
8646
8647 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
8648 decide whether to prevent some libgcc routines being included for some
8649 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
8650 link between this condition and the one in
8651 libgcc/config/arm/lib1func.S.
8652
8653 2016-07-07 Richard Biener <rguenther@suse.de>
8654
8655 * tree-ssa-pre.c: Include alias.h.
8656 (compute_avail): If we have multiple VN_REFERENCEs with the
8657 same hashtable entry adjust that to make it a valid replacement
8658 for all of them with respect to alignment and aliasing
8659 when doing insertion.
8660 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
8661 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
8662
8663 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
8664
8665 PR target/70098
8666 PR target/71763
8667 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8668 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
8669 constraint.
8670
8671 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8672
8673 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
8674 (adjust_mems): Adjust.
8675 (adjust_insn): Likewise.
8676 (prepare_call_arguments): Likewise.
8677
8678 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8679
8680 * gcse.c (struct ls_expr): Make stores field a vector.
8681 (ldst_entry): Adjust.
8682 (free_ldst_entry): Likewise.
8683 (print_ldst_list): Likewise.
8684 (compute_ld_motion_mems): Likewise.
8685 (update_ld_motion_stores): Likewise.
8686
8687 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8688
8689 * gcse.c (struct ls_expr): Remove loads field.
8690 (ldst_entry): Adjust.
8691 (free_ldst_entry): Likewise.
8692 (print_ldst_list): Likewise.
8693 (compute_ld_motion_mems): Likewise.
8694
8695 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8696
8697 * store-motion.c (struct st_expr): Make antic_stores a vector.
8698 (st_expr_entry): Adjust.
8699 (free_st_expr_entry): Likewise.
8700 (print_store_motion_mems): Likewise.
8701 (find_moveable_store): Likewise.
8702 (compute_store_table): Likewise.
8703 (remove_reachable_equiv_notes): Likewise.
8704 (replace_store_insn): Likewise.
8705 (build_store_vectors): Likewise.
8706
8707 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8708
8709 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
8710 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
8711
8712 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8713
8714 PR tree-optimization/71518
8715 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
8716 misalign also for outer loops with negative step.
8717
8718 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
8719
8720 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
8721 (cortex_a53_shift): Add mov_shift.
8722 (cortex_a53_shift_reg): Add new reservation for register shifts.
8723 (cortex_a53_alu): Remove bfm.
8724 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
8725 (cortex_a53_alu_extr): Add new reservation for EXTR.
8726 (bypasses): Improve bypass modelling.
8727
8728 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8729
8730 PR target/50739
8731 * config/avr/avr.c (avr_asm_select_section): Strip off
8732 SECTION_DECLARED from flags when calling get_section.
8733
8734 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8735
8736 * tree-vectorizer.h (vect_memory_access_type): Add
8737 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
8738 * tree-vect-stmts.c (compare_step_with_zero): New function.
8739 (perm_mask_for_reverse): Move further up file.
8740 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
8741 step is negative.
8742 (get_negative_load_store_type): New function.
8743 (get_load_store_type): Call it. Add an ncopies argument.
8744 (vectorizable_mask_load_store): Update call accordingly and
8745 remove tests for negative steps.
8746 (vectorizable_store, vectorizable_load): Likewise. Handle new
8747 memory_access_types.
8748
8749 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8750
8751 * tree-vectorizer.h (vect_memory_access_type): New enum.
8752 (_stmt_vec_info): Add a memory_access_type field.
8753 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
8754 (vect_model_store_cost): Take an access type instead of a boolean.
8755 (vect_model_load_cost): Likewise.
8756 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
8757 vect_model_store_cost and vect_model_load_cost.
8758 * tree-vect-stmts.c (vec_load_store_type): New enum.
8759 (vect_model_store_cost): Take an access type instead of a
8760 store_lanes_p boolean. Simplify tests.
8761 (vect_model_load_cost): Likewise, but for load_lanes_p.
8762 (get_group_load_store_type, get_load_store_type): New functions.
8763 (vectorizable_store): Use get_load_store_type. Record the access
8764 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
8765 (vectorizable_load): Likewise.
8766 (vectorizable_mask_load_store): Likewise. Replace is_store
8767 variable with vls_type.
8768
8769 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8770
8771 * tree-vectorizer.h (vect_grouped_load_supported): Add a
8772 single_element_p parameter.
8773 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8774 Check the PR65518 case here rather than in vectorizable_load.
8775 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
8776 * tree-vect-stmts.c (vectorizable_load): Likewise.
8777
8778 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8779
8780 * tree-vectorizer.h (gather_scatter_info): New structure.
8781 (vect_check_gather_scatter): Return a bool rather than a decl.
8782 Replace return-by-pointer arguments with a single
8783 gather_scatter_info *.
8784 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
8785 (vect_analyze_data_refs): Update call accordingly.
8786 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8787 (vectorizable_mask_load_store): Likewise. Also record the
8788 offset dt and vectype in the gather_scatter_info.
8789 (vectorizable_store): Likewise.
8790 (vectorizable_load): Likewise.
8791
8792 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
8795 strided groups, use the cost of N scalar accesses instead
8796 of ncopies vector accesses.
8797 (vect_model_load_cost): Likewise.
8798
8799 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8800
8801 * tree-vect-stmts.c (vect_cost_group_size): Delete.
8802 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
8803 variable to indicate when once-per-group costs are being used.
8804 (vect_model_load_cost): Likewise. Fix comment and misindented code.
8805
8806 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
8807
8808 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
8809 peeling-for-gaps condition.
8810
8811 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8812
8813 * config/s390/s390.c (s390_expand_vec_init): Force initializer
8814 element to register if it doesn't match general_operand.
8815
8816 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8817 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8818
8819 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
8820 prototype.
8821 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
8822 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
8823 (SIGNBIT): New mode iterator.
8824 (Fsignbit): New mode attribute.
8825 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
8826 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
8827 when direct moves are available.
8828 (signbit<mode>2_dm): New define_insn_and_split).
8829 (signbit<mode>2_dm2): New define_insn.
8830
8831 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8832
8833 PR rtl-optimization/71594
8834 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
8835 into subregs of appropriate mode before trying to emit a conditional
8836 move.
8837
8838 2016-07-05 Jan Hubicka <jh@suse.cz>
8839
8840 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
8841 (simple_iv): Use it.
8842
8843 2016-07-05 Jan Hubicka <jh@suse.cz>
8844
8845 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
8846
8847 2016-07-05 Jiong Wang <jiong.wang@arm.com>
8848
8849 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
8850 "offmemok".
8851
8852 2016-07-05 Jan Hubicka <jh@suse.cz>
8853
8854 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
8855 IV can overflow.
8856
8857 2016-07-05 Richard Biener <rguenther@suse.de>
8858
8859 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
8860 Handle empty else block.
8861 (is_feasible_trace): Likewise.
8862 (split_paths): Likewise.
8863
8864 2016-07-05 Richard Biener <rguenther@suse.de>
8865
8866 * tree-loop-distribution.c (distribute_loop): Fix issue with
8867 the cost model loop.
8868
8869 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
8870
8871 * config/arm/neon-testgen.ml: Delete.
8872 * config/arm/neon.ml: Delete.
8873
8874 2016-07-04 Jakub Jelinek <jakub@redhat.com>
8875
8876 PR c++/71739
8877 * tree.c (attribute_value_equal): Use get_attribute_name instead of
8878 directly using TREE_PURPOSE.
8879
8880 2016-07-04 Jiong Wang <jiong.wang@arm.com>
8881
8882 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
8883 * config/aarch64/aarch64_neon.h: Likewise.
8884 * config/aarch64/arm_neon.h: Likewise.
8885 * config/aarch64/atomics.md: Likewise.
8886 * config/aarch64/aarch64-simd-builtins.def: Likewise.
8887 * doc/invoke.texi: Likewise.
8888
8889 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
8890
8891 * config/s390/s390.md: Add "z13" cpu_facility.
8892 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
8893 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
8894 condition" type instructions.
8895
8896 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
8897 Jeff Law <law@redhat.com>
8898
8899 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
8900 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
8901
8902 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
8903
8904 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
8905 permutation for TARGET_AVX512F.
8906 (ix86_expand_vec_one_operand_perm_avx512): New function.
8907 (expand_vec_perm_1): Invoke introduced function.
8908 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8909 it may be not valid after vectorization.
8910
8911 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8912
8913 PR target/63874
8914 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8915 typo in comment. Only force to memory if it is a weak
8916 external reference.
8917
8918 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
8919 Jiong Wang <jiong.wang@arm.com>
8920
8921 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8922 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8923 (AARCH64_FL_F16): New.
8924 (AARCH64_FL_FOR_ARCH8_2): New.
8925 (AARCH64_ISA_8_2): New.
8926 (AARCH64_ISA_F16): New.
8927 (TARGET_FP_F16INST): New.
8928 (TARGET_SIMD_F16INST): New.
8929 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8930 ("fp"): Disabling "fp" also disables "fp16".
8931 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8932 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8933 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8934 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8935
8936 2016-07-04 Jan Beulich <jbeulich@suse.com>
8937
8938 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8939
8940 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8941
8942 PR target/71720
8943 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8944 the insns, use an insn form that does not adjust the offset on
8945 little endian systems.
8946
8947 2016-07-01 Jan Beulich <jbeulich@suse.com>
8948
8949 * varasm.c (get_variable_section): Validate initializer in
8950 named .bss-like sections.
8951
8952 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
8953
8954 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8955 Exchange the order of the second and third operands in the vpermr
8956 instruction tmeplate.
8957
8958 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
8959
8960 PR target/71698
8961 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8962 Disallow TDmode values.
8963
8964 2016-07-01 Alan Modra <amodra@gmail.com>
8965
8966 PR rtl-optimization/71709
8967 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8968 being set, not referenced.
8969
8970 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8971
8972 PR tree-optimization/70729
8973 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8974 of loop since it can be not valid after transformation.
8975
8976 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8977
8978 * config/arm/arm.c (thumb_reload_in_hi): Delete.
8979 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8980
8981 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
8982
8983 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8984 for NULL decl.
8985
8986 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8987
8988 PR target/71677
8989 * config/rs6000/constraints.md (wY constraint): New constraint to
8990 match the requirements for the LXSD and STXSD instructions.
8991 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8992 predicate to match the requirements for the LXSD and STXSD
8993 instructions.
8994 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8995 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8996 to make sure that the bottom 2 bits of offset are 0, the address
8997 form is offsettable, and no updating is done in the address mode.
8998 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8999 (movdi_internal32): Likewise
9000 (movdi_internal64): Likewise.
9001
9002 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9003
9004 PR tree-optimization/71707
9005 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
9006 strinfo even for ADDR_EXPR ptr.
9007
9008 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
9009
9010 * config/rs6000/altivec.md (darn_32): Change the condition to
9011 TARGET_P9_MISC instead of TARGET_MODULO.
9012 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
9013 condition expression.
9014 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
9015 condition expression.
9016 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
9017 (DFP_TEST): New code iterator.
9018 (dfptstsfi_<code>_mode>): New define_expand.
9019 (*dfp_sgnfcnc_<mode>): New define_insn.
9020 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9021 definition next to BU_P9_MISC_1 definition and change the MASK
9022 value to RS6000_BTM_P9_MISC.
9023 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9024 (BU_P9_64BIT_MISC_0): Likewise.
9025 (BU_P9_DFP_MISC_0): New macro definition.
9026 (BU_P9_DFP_MISC_1): New macro definition.
9027 (BU_P9_DFP_MISC_2): New macro definition.
9028 (BU_P9_DFP_OVERLOAD_1): New macro definition.
9029 (BU_P9_DFP_OVERLOAD_2): New macro definition.
9030 (BU_P9_DFP_OVERLOAD_3): New macro definition.
9031 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9032 (TSTSFI_LT_TD): Likewise.
9033 (TSTSFI_EQ_DD): Likewise.
9034 (TSTSFI_EQ_TD): Likewise.
9035 (TSTSFI_GT_DD): Likewise.
9036 (TSTSFI_GT_TD): Likewise.
9037 (TSTSFI_OV_DD): Likewise.
9038 (TSTSFI_OV_TD): Likewise.
9039 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9040 (TSTSFI_LT_DD): Likewise.
9041 (TSTSFI_LT_TD): Likewise.
9042 (TSTSFI_EQ): Likewise.
9043 (TSTSFI_EQ_DD): Likewise.
9044 (TSTSFI_EQ_TD): Likewise.
9045 (TSTSFI_GT): Likewise.
9046 (TSTSFI_GT_DD): Likewise.
9047 (TSTSFI_GT_TD): Likewise.
9048 (TSTSFI_OV): Likewise.
9049 (TSTSFI_OV_DD): Likewise.
9050 (TSTSFI_OV_TD): Likewise.
9051 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9052 overloaded test significance functions.
9053 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9054 OPTION_MASK_P9_MISC into the representation of this mask.
9055 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9056 of this mask.
9057 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9058 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9059 non-zero.
9060 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9061 argument is a 6-bit unsigned literal value if the icode argument
9062 represents a DFP test significance built-in call.
9063 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9064 flag used independently and in combination with the
9065 RS6000_BTM_64BIT flag.
9066 (rs6000_opt_masks): Add entry for power9-misc command-line option.
9067 (rs6000_builtin_mask_names): Add entry for power9-misc
9068 command-line option.
9069 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9070 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
9071 RS6000_BTM_P9_MISC macros.
9072 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9073 option and change the description of the -mpower9-vector option to
9074 enable only vector instructions, removing its erroneously claimed
9075 support for scalar instructions.
9076 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9077 the ISA 3.0 digital floating point test significance built-in
9078 functions.
9079
9080 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
9081
9082 * config/aarch64/aarch64.c (cortexa35_tunings):
9083 Enable AES fusion. Use cortexa57_branch_cost.
9084 (cortexa53_tunings): Use cortexa57_branch_cost.
9085 (cortexa72_tunings): Use cortexa57_branch_cost.
9086 Use AUTOPREFETCHER_WEAK.
9087 (cortexa73_tunings): Use cortexa57_branch_cost.
9088
9089 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9090 James Greenhalgh <james.greenhalgh@arm.com>
9091
9092 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9093 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9094 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9095 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9096 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9097 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9098 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9099 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9100 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9101 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9102 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9103 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9104 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9105 New intrinsics.
9106
9107 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
9108 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9109
9110 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9111 New define_insn.
9112 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9113
9114 2016-06-30 David Malcolm <dmalcolm@redhat.com>
9115
9116 PR driver/71651
9117 * gcc.c (driver::build_option_suggestions): Pass "option" to
9118 add_misspelling_candidates.
9119 * opts-common.c (add_misspelling_candidates): Add "option" param;
9120 use it to avoid adding negated forms for options marked with
9121 RejectNegative.
9122 * opts.h (add_misspelling_candidates): Add "option" param.
9123
9124 2016-06-30 Jakub Jelinek <jakub@redhat.com>
9125
9126 PR middle-end/71693
9127 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9128 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9129 first when permuting bitwise operation with rotate. Cast
9130 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9131
9132 2016-06-29 David Malcolm <dmalcolm@redhat.com>
9133
9134 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9135 for misspelled param names.
9136 * params.c: Include spellcheck.h.
9137 (find_param_fuzzy): New function.
9138 * params.h (find_param_fuzzy): New prototype.
9139 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9140 * spellcheck.h (struct edit_distance_traits<const char *>):
9141 ...here.
9142
9143 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9144
9145 * config/rs6000/predicates.md (const_0_to_7_operand): New
9146 predicate, recognize 0..7.
9147 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9148 support for doing extracts from V16QImode, V8HImode, V4SImode
9149 under ISA 3.0.
9150 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9151 vector extract support.
9152 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9153 for ISA 3.0 vector extract.
9154 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9155 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9156 extracts of a constant element number from small integer vectors
9157 on 64-bit ISA 3.0 systems.
9158 (vsx_extract_<mode>_di): Likewise.
9159 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9160 say when we can do ISA 3.0 vector extracts.
9161 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9162 registers, using the stxsiwx instruction.
9163
9164 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
9165
9166 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9167 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9168 qdf24xx_regmove_cost, qdf24xx_tunings): New.
9169 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9170 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9171 * config/arm/arm.c (arm_qdf24xx_tune): New.
9172
9173 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
9174
9175 * config/aarch64/aarch64.c (cortexa53_tunings):
9176 Increase loop alignment to 8. Set function alignment to 16.
9177 (cortexa35_tunings): Likewise.
9178 (cortexa57_tunings): Increase loop alignment to 8.
9179 (cortexa72_tunings): Likewise.
9180 (cortexa73_tunings): Likewise.
9181
9182 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
9183
9184 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9185 for arm_fp16_ok and arm_fp16_hw.
9186 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9187 arm_fp16_alternative.
9188
9189 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
9190
9191 PR tree-optimization/71655
9192 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9193 types when swapping operands.
9194
9195 2016-06-29 Martin Liska <mliska@suse.cz>
9196
9197 PR middle-end/71585
9198 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9199 * ipa-inline-transform.c (inline_call): Remove unnecessary call
9200 of build_optimization_node.
9201
9202 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9203
9204 PR tree-optimization/70729
9205 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9206 independent in loops having positive safelen value.
9207 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9208 it may be not valid after vectorization.
9209
9210 2016-06-29 Jakub Jelinek <jakub@redhat.com>
9211
9212 PR tree-optimization/71625
9213 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
9214 is sorted by ascending list->offset. If PTR is non-NULL and there is
9215 previous strinfo, call get_stridx_plus_constant.
9216 (get_stridx): Pass exp as second argument to get_addr_stridx.
9217 (addr_stridxptr): Add missing list = list->next, so that there can be
9218 more than one entries in the list. Bump limit from 16 to 32. Ensure
9219 the list is sorted by ascending list->offset.
9220 (get_stridx_plus_constant): Adjust so that it can be also called with
9221 ADDR_EXPR instead of SSA_NAME as PTR.
9222 (handle_char_store): Pass NULL_TREE as second argument to
9223 get_addr_stridx.
9224
9225 2016-06-29 Richard Biener <rguenther@suse.de>
9226
9227 PR rtl-optimization/68961
9228 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9229
9230 2016-06-29 Richard Biener <rguenther@suse.de>
9231
9232 PR middle-end/71002
9233 * alias.c (component_uses_parent_alias_set_from): Handle
9234 type punning through union accesses by using the union alias set.
9235 * gimple.c (gimple_get_alias_set): Remove union type punning case.
9236
9237 2016-07-29 Richard Biener <rguenther@suse.de>
9238
9239 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9240 precision not matching mode precision.
9241
9242 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
9243
9244 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9245 pa_output_arg_descriptor.
9246 (call_val_symref_64bit_post_reload): Likewise.
9247 (call_val_powf_64bit_post_reload): Likewise.
9248 (sibcall_internal_symref_64bit): Likewise.
9249 (sibcall_value_internal_symref_64bit): Likewise.
9250
9251 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9252
9253 PR middle-end/71626
9254 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9255 a constant, force its SUBREG_REG into memory or register instead
9256 of whole op1.
9257
9258 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9259
9260 PR target/58655
9261 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9262 * doc/invoke.texi (AVR Options): Document it.
9263
9264 2016-06-28 Walter Lee <walt@tilera.com>
9265
9266 * config/tilegx/linux.h: Do not include arch/icache.h
9267 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9268 * config/tilepro/linux.h: Do not include arch/icache.h
9269 (CLEAR_INSN_CACHE): Provide inlined definition directly.
9270
9271 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
9272
9273 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9274 for big-endian BIT_FIELD_REF.
9275
9276 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
9277
9278 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9279 ('size' attribute): Add '128'.
9280 Include power9.md.
9281 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9282 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9283 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9284 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9285 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9286 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9287 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9288 *trunc<mode>df2_odd): Set size attribute to '128'.
9289 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9290 * config/rs6000/power6.md (power6-fp): Include dfp type.
9291 * config/rs6000/power7.md (power7-fp): Likewise.
9292 * config/rs6000/power8.md (power8-fp): Likewise.
9293 * config/rs6000/power9.md: New file.
9294 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9295 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9296 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9297 htmsimple.
9298 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9299 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9300 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9301 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9302 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9303 dfp_dscri_<mode>): Change type attribute to dfp.
9304 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9305 attribute to vecsimple.
9306 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9307 and prefetch streams.
9308 (rs6000_option_override_internal): Remove temporary code setting
9309 tuning to power8. Don't set rs6000_sched_groups for power9.
9310 (last_scheduled_insn): Change to rtx_insn *.
9311 (divide_cnt, vec_load_pendulum): New variables.
9312 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9313 (rs6000_issue_rate): Set issue rate for Power9.
9314 (is_power9_pairable_vec_type): New.
9315 (power9_sched_reorder2): New.
9316 (rs6000_sched_reorder2): Call new function for Power9 specific
9317 reordering.
9318 (insn_must_be_first_in_group): Remove Power9.
9319 (insn_must_be_last_in_group): Likewise.
9320 (force_new_group): Likewise.
9321 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9322 Initialize divide_cnt/vec_load_pendulum.
9323 (_rs6000_sched_context, rs6000_init_sched_context,
9324 rs6000_set_sched_context): Handle context save/restore of new
9325 variables.
9326
9327 2016-06-28 Richard Biener <rguenther@suse.de>
9328
9329 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9330 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9331 COMPONENT_REF operand.
9332 (nonoverlapping_component_refs_p): Likewise.
9333 * stor-layout.c (start_bitfield_representative): Mark
9334 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9335
9336 2016-06-28 Jakub Jelinek <jakub@redhat.com>
9337
9338 * Makefile.in: Don't cat ../stage_current if it does not exist.
9339
9340 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9341 last argument is a bit-field.
9342
9343 PR rtl-optimization/71673
9344 * internal-fn.c (expand_arith_overflow_result_store): Use
9345 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9346 expand_simple_binop.
9347
9348 PR middle-end/66867
9349 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9350 expand_ifn_atomic_compare_exchange): New functions.
9351 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9352 * tree.h (build_call_expr_internal_loc): Rename to ...
9353 (build_call_expr_internal_loc_array): ... this. Fix up type of
9354 last argument.
9355 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9356 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9357 ATOMIC_COMPARE_EXCHANGE result.
9358 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9359 * gimple-fold.h (optimize_atomic_compare_exchange_p,
9360 fold_builtin_atomic_compare_exchange): New prototypes.
9361 * gimple-fold.c (optimize_atomic_compare_exchange_p,
9362 fold_builtin_atomic_compare_exchange): New functions..
9363 * tree-ssa.c (execute_update_addresses_taken): If
9364 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9365 of call when finding addressable vars, and if such var becomes
9366 non-addressable, call fold_builtin_atomic_compare_exchange.
9367
9368 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
9369
9370 PR target/71670
9371 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9372 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9373
9374 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
9375
9376 * config/rs6000/rs6000.md ('type' attribute): Add
9377 veclogical,veccmpfx,vecexts,vecmove insn types.
9378 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9379 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9380 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9381 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9382 *nabs<mode>2_hw): Change type to vecmove.
9383 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9384 *boolcc<mode>3_internal, *eqv<mode>3_internal,
9385 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9386 *ieee_128bit_vsx_abs<mode>2_internal,
9387 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9388 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9389 *ieee128_mtvsrd_32bit): Change type to veclogical.
9390 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9391 *movdi_internal32, *movdi_internal64): Update insn types.
9392 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9393 vsx_extract_<mode>): Change type to veclogical.
9394 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9395 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9396 *vsx_sign_extend_si_v2di): Change type to vecexts.
9397 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9398 type to veclogical.
9399 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9400 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9401 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9402 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9403 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9404 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9405 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9406 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9407 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9408 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9409 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9410 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9411 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9412 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9413 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9414 (ppc7450-vecsimple): Add veclogical, vecmove.
9415 (ppc7450-veccmp): Add veccmpfx.
9416 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9417 vecmove.
9418 (ppc8540_vector_compare): Add veccmpfx.
9419 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9420 * config/rs6000/cell.md (cell-fp): Add fpsimple.
9421 (cell-vecsimple): Add veclogical, vecmove.
9422 (cell-veccmp): Add veccmpfx.
9423 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9424 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9425 veccmpfx.
9426 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9427 * config/rs6000/power4.md (power4-fp): Add fpsimple.
9428 (power4-vecsimple): Add veclogical, vecmove.
9429 (power4-veccmp): Add veccmpfx.
9430 * config/rs6000/power5.md (power5-fp): Add fpsimple.
9431 * config/rs6000/power6.md (power6-fp): Add fpsimple.
9432 (power6-vecsimple): Add veclogical, vecmove.
9433 (power6-veccmp): Add veccmpfx.
9434 * config/rs6000/power7.md (power7-fp): Add fpsimple.
9435 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9436 * config/rs6000/power8.md (power8-fp): Add fpsimple.
9437 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9438 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9439 * config/rs6000/titan.md (titan_fp): Add fpsimple.
9440 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9441 fpsimple.
9442 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9443
9444 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
9445
9446 PR target/71656
9447 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9448 OPTION_MASK_P9_DFORM_VECTOR.
9449 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9450 disable -mpower9-dform-vector when using reload.
9451 (quad_address_p): Remove 'gpr_p' argument and all associated code.
9452 New 'strict' argument. Update all callers. Add strict addressing
9453 support.
9454 (rs6000_legitimate_offset_address_p): Remove call to
9455 virtual_stack_registers_memory_p.
9456 (rs6000_legitimize_reload_address): Add quad address support.
9457 (rs6000_legitimate_address_p): Move call to quad_address_p above
9458 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
9459 to account for new strict usage.
9460 (rs6000_output_move_128bit): Adjust quad_address_p args to account
9461 for new strict usage.
9462 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9463
9464 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
9465
9466 PR target/70902
9467 PR target/71453
9468 PR target/71555
9469 PR target/71596
9470 PR target/71657
9471 * config/i386/i386.c (ix86_spill_class): Disable condition to
9472 always return NO_REGS.
9473
9474 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
9475
9476 * predict.c: Include gimple-pretty-print.h
9477 (predicted_by_loop_heuristics_p): Check also
9478 PRED_LOOP_EXIT_WITH_RECURSION
9479 (predict_loops): Find self recursive calls and use special purpose
9480 predictors for them; dump log about decisions.
9481 (pass_profile::execute): Dump info about #of iterations.
9482 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9483 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9484
9485 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
9486
9487 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9488 output_asm_insn calls and shorten long lines. Output .CALL
9489 argument descriptor using pa_output_arg_descriptor. Add various
9490 inline $$dyncall and other optimizations.
9491 (pa_attr_length_indirect_call): Adjust ordering and lengths.
9492
9493 2016-06-25 Jakub Jelinek <jakub@redhat.com>
9494
9495 PR tree-optimization/71643
9496 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9497 EH preds.
9498
9499 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9500 leak a bitmap if dep_bb is NULL.
9501
9502 PR tree-optimization/71631
9503 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9504 to rewrite_expr_tree even if negate_result, move new_lhs var
9505 declaration and initialization earlier, for powi_result set afterwards
9506 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
9507 if new_lhs != lhs, and don't shadow gsi var.
9508
9509 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9510
9511 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9512 Add in_loop parameter.
9513 (predict_loops): Add loop guard heuristics.
9514 * predict.def (PRED_LOOP_GUARD): New heuristics.
9515
9516 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
9517
9518 * predict.c: Include ipa-utils.h
9519 (tree_bb_level_prediction): Predict recursive calls.
9520 (tree_estimate_probability_bb): Skip inexpensive calls for call
9521 predictor.
9522 * predict.def (PRED_RECURSIVE_CALL): New.
9523
9524 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9525
9526 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9527 (BU_FLOAT128_1): Likewise.
9528 (FABSQ): Likewise.
9529 (COPYSIGNQ): Likewise.
9530 (RS6000_BUILTIN_NANQ): Likewise.
9531 (RS6000_BUILTIN_NANSQ): Likewise.
9532 (RS6000_BUILTIN_INFQ): Likewise.
9533 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9534 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9535 (TARGET_FOLD_BUILTIN): New #define.
9536 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9537 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9538 (rs6000_fold_builtin): New target hook implementation, handling
9539 folding of 128-bit NaNs and infinities.
9540 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9541 entries are filled in to avoid problems during bootstrap
9542 self-test; define builtins for 128-bit NaNs and infinities.
9543 (rs6000_opt_mask): Add entry for float128.
9544 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9545 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9546 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9547 (const_str_type_node): New #define.
9548 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9549 to a define_expand that dispatches to either copysign<mode>3_soft
9550 or copysign<mode>3_hard.
9551 (copysign<mode>3_hard): Rename from copysign<mode>3.
9552 (copysign<mode>3_soft): New define_insn.
9553 * doc/extend.texi: Document new builtins.
9554
9555 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9556
9557 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9558 PRIu64 instead of lu.
9559
9560 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
9561
9562 PR debug/71642
9563 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9564 copy the type name.
9565
9566 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9567
9568 PR tree-optimization/71647
9569 * omp-low.c (lower_rec_input_clauses): Convert
9570 omp_clause_aligned_alignment (c) to size_type_node for the
9571 last argument of __builtin_assume_aligned.
9572
9573 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 * configure.ac (calling ___tls_get_addr via GOT): New
9576 assembler/linker check.
9577 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
9578 assembler and linker supports calling ___tls_get_addr via GOT.
9579 Otherise, defined to 0.
9580 * config.in: Regenerated.
9581 * configure: Likewise.
9582 * config/i386/constraints.md (Yb): New constraint.
9583 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9584 (REG_CLASS_NAMES): Likewise.
9585 (REG_CLASS_CONTENTS): Likewise.
9586 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9587 the b constraint with the Yb constraint. Call ___tls_get_addr
9588 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9589 is 1.
9590 (*tls_local_dynamic_base_32_gnu): Likewise.
9591 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9592 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9593 (*tls_local_dynamic_base_64_<mode>): Likewise.
9594
9595 2016-06-24 Martin Liska <mliska@suse.cz>
9596
9597 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
9598 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
9599 few functions.
9600 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
9601 argument to true if the expected number of iterations is
9602 loop-based.
9603
9604 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
9605
9606 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
9607 assemble for 32bit target.
9608 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
9609 and $ld_ix86_gld_32_opt to link for 32bit target.
9610 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
9611 * configure: Regenerate.
9612
9613 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9614
9615 * config/arm/arm.c (int_log2): Delete definition and prototype.
9616 (shift_op): Use exact_log2 instead of int_log2.
9617 (vfp3_const_double_for_fract_bits): Likewise.
9618
9619 2016-06-24 Jakub Jelinek <jakub@redhat.com>
9620
9621 * internal-fn.c (expand_arith_set_overflow): New function.
9622 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
9623 Use it.
9624 (expand_arith_overflow_result_store): Likewise. Handle precision
9625 smaller than mode precision.
9626 * tree-vrp.c (extract_range_basic): For imag part, handle
9627 properly signed 1-bit precision result.
9628 * doc/extend.texi (__builtin_add_overflow): Document that last
9629 argument can't be pointer to enumerated or boolean type.
9630 (__builtin_add_overflow_p): Document that last argument can't
9631 have enumerated or boolean type.
9632
9633 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9634 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9635
9636 * config/rs6000/predicates.md (splat_input_operand): Rework.
9637 Don't allow constants, since the insns that use this predicate
9638 don't support constants. Constants are handled by other insns
9639 that are created via combine. During and after register
9640 allocation, only allow indexed or indirect addresses, and not
9641 general addresses. Only allow modes supported by the hardware.
9642 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
9643 comment. Move check for using VSPLTIS<x> to a common location,
9644 instead of doing it in two different places.
9645
9646 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
9647
9648 * config/i386/driver-i386.c (host_detect_local_cpu): Set
9649 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
9650 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
9651 signature_CENTAUR_ebx.
9652
9653 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
9654
9655 PR target/66232
9656 PR target/67400
9657 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
9658 (as_ix86_gas_32_opt): This.
9659 (ld_ix86_tls_ldm_opt): Renamed to ...
9660 (ld_ix86_gld_32_opt): This.
9661 (R_386_TLS_LDM reloc): Updated.
9662 (R_386_GOT32X reloc): New assembler/linker check.
9663 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
9664 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
9665 defined to 0.
9666 * config.in: Regenerated.
9667 * configure: Likewise.
9668 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
9669 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
9670 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
9671 if ix86_force_load_from_GOT_p returns true.
9672 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
9673 ix86_force_load_from_GOT_p returns true.
9674 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
9675 the external function address via the GOT slot.
9676 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
9677 HAVE_AS_IX86_GOT32X before returning false.
9678 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
9679 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
9680
9681 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
9682
9683 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
9684
9685 2016-06-23 Andi Kleen <ak@linux.intel.com>
9686
9687 * Makefile.in: Regenerate.
9688 * doc/install.texi: Document autoprofiledbootstrap.
9689
9690 2016-06-23 Andi Kleen <ak@linux.intel.com>
9691
9692 * config/i386/gcc-auto-profile: New file.
9693
9694 2016-06-23 Martin Liska <mliska@suse.cz>
9695
9696 PR middle-end/71619
9697 * predict.c (predict_loops): Revert the hunk that was removed
9698 in r237103.
9699
9700 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
9701
9702 * config.gcc: Add support for arm*-*-phoenix* targets.
9703 * config/arm/t-phoenix: New.
9704 * config/phoenix.h: New.
9705
9706 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
9707 H.J. Lu <hongjiu.lu@intel.com>
9708
9709 PR target/67400
9710 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
9711 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
9712 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
9713 ix86_force_load_from_GOT_p returns true.
9714 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
9715 ix86_force_load_from_GOT_p returns true.
9716 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
9717 ix86_force_load_from_GOT_p returns true.
9718 (ix86_expand_move): Load the external function address via the
9719 GOT slot if ix86_force_load_from_GOT_p returns true.
9720 * config/i386/predicates.md (x86_64_immediate_operand): Return
9721 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
9722 (x86_64_zext_immediate_operand): Ditto.
9723
9724 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
9725
9726 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
9727
9728 2016-06-22 David Malcolm <dmalcolm@redhat.com>
9729
9730 PR c/70339
9731 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
9732 * diagnostic.c (pedwarn_at_rich_loc): New function.
9733 * spellcheck.h (best_match::best_match): Add a
9734 "best_distance_so_far" optional parameter.
9735 (best_match::set_best_so_far): New method.
9736 (best_match::get_best_distance): New accessor.
9737 (best_match::get_best_candidate_length): New accessor.
9738
9739 2016-06-22 Nick Clifton <nickc@redhat.com>
9740
9741 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
9742 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
9743 modes are accepted as well.
9744 (ucompare_loc_descriptor): Likewise.
9745 (minmax_loc_descriptor): Likewise.
9746 (clz_loc_descriptor): Likewise.
9747 (popcount_loc_descriptor): Likewise.
9748 (bswap_loc_descriptor): Likewise.
9749 (rotate_loc_descriptor): Likewise.
9750 (mem_loc_descriptor): Likewise.
9751 (loc_descriptor): Likewise.
9752
9753 2016-06-22 David Malcolm <dmalcolm@redhat.com>
9754
9755 * common.opt (fdiagnostics-parseable-fixits): New option.
9756 * diagnostic.c: Include "selftest.h".
9757 (print_escaped_string): New function.
9758 (print_parseable_fixits): New function.
9759 (diagnostic_report_diagnostic): Call print_parseable_fixits.
9760 (selftest::assert_print_escaped_string): New function.
9761 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
9762 (selftest::test_print_escaped_string): New function.
9763 (selftest::test_print_parseable_fixits_none): New function.
9764 (selftest::test_print_parseable_fixits_insert): New function.
9765 (selftest::test_print_parseable_fixits_remove): New function.
9766 (selftest::test_print_parseable_fixits_replace): New function.
9767 (selftest::diagnostic_c_tests): New function.
9768 * diagnostic.h (struct diagnostic_context): Add field
9769 "parseable_fixits_p".
9770 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9771 -fdiagnostics-parseable-fixits.
9772 (-fdiagnostics-parseable-fixits): New option.
9773 * opts.c (common_handle_option): Handle
9774 -fdiagnostics-parseable-fixits.
9775 * selftest-run-tests.c (selftest::run_tests): Call
9776 selftest::diagnostic_c_tests.
9777 * selftest.h (selftest::diagnostic_c_tests): New prototype.
9778
9779 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
9780
9781 PR tree-optimization/71488
9782 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
9783 comparison of boolean vectors.
9784 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
9785 of boolean vectors using bitwise operations.
9786
9787 2016-06-22 Andreas Schwab <schwab@suse.de>
9788
9789 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
9790 Remove declaration.
9791
9792 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
9793
9794 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
9795
9796 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
9797
9798 * config/i386/i386.c (print_reg): Emit an error message on attempt to
9799 print FLAGS_REG.
9800
9801 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9802
9803 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
9804 * config/arm/arm-cores.def (cortex-a73): New entry.
9805 (cortex-a73.cortex-a35): Likewise.
9806 (cortex-a73.cortex-a53): Likewise.
9807 * config/arm/arm-tables.opt: Regenerate.
9808 * config/arm/arm-tune.md: Likewise.
9809 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
9810 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9811 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
9812 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9813 * doc/invoke.texi (ARM Options): Document cortex-a73,
9814 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
9815
9816 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9817
9818 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
9819 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
9820 (cortex-a73.cortex-a35): Likewise.
9821 (cortex-a73.cortex-a53): Likewise.
9822 * config/aarch64/aarch64-tune.md: Regenerate.
9823 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
9824 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
9825 -mcpu and -mtune.
9826
9827 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9828
9829 * configure.ac (gcc_cv_as_compress_debug): Remove
9830 --compress-debug-sections as extra as switch.
9831 Handle gas --compress-debug-sections=type.
9832 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
9833 Handle gld --compress-debug-sections=type.
9834 * configure: Regenerate.
9835
9836 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
9839
9840 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
9841
9842 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
9843 (do_rewrite): likewise.
9844
9845 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9846
9847 * common/config/mep/mep-common.c: Remove.
9848 * config.gcc: Remove mep-* support.
9849 * config/mep/constraints.md: Remove.
9850 * config/mep/default.h: Remove.
9851 * config/mep/intrinsics.h: Remove.
9852 * config/mep/intrinsics.md: Remove.
9853 * config/mep/ivc2-template.h: Remove.
9854 * config/mep/mep-c5.cpu: Remove.
9855 * config/mep/mep-core.cpu: Remove.
9856 * config/mep/mep-default.cpu: Remove.
9857 * config/mep/mep-ext-cop.cpu: Remove.
9858 * config/mep/mep-intrin.h: Remove.
9859 * config/mep/mep-ivc2.cpu: Remove.
9860 * config/mep/mep-pragma.c: Remove.
9861 * config/mep/mep-protos.h: Remove.
9862 * config/mep/mep.c: Remove.
9863 * config/mep/mep.cpu: Remove.
9864 * config/mep/mep.h: Remove.
9865 * config/mep/mep.md: Remove.
9866 * config/mep/mep.opt: Remove.
9867 * config/mep/predicates.md: Remove.
9868 * config/mep/t-mep: Remove.
9869 * doc/install.texi: Remove mep-* documentation.
9870 * doc/md.texi: Likewise.
9871
9872 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9873
9874 * config.gcc: Remove support for avr-rtems.
9875 * config/avr/gen-avr-mmcu-specs.c: Likewise.
9876 * config/avr/rtems.h: Remove.
9877 * config/avr/t-rtems: Remove.
9878
9879 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9880
9881 * config.gcc: Remove m32r-rtems support.
9882 * config/m32r/rtems.h: Remove.
9883
9884 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9885
9886 * config.gcc: Remove h8300-rtems support.
9887 * config/h8300/rtems.h: Remove.
9888 * config/h8300/t-rtems: Remove.
9889
9890 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9891
9892 * config.gcc: Remove support for knetbsd.
9893 * configure.ac: Likewise.
9894 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
9895 * config/knetbsd-gnu.h: Remove.
9896 * configure: Regenerate.
9897
9898 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9899
9900 * config.gcc: Remove support for openbsd 2 and 3.
9901 * config/openbsd-oldgas.h: Remove.
9902
9903 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9904
9905 * config.gcc: Remove interix support.
9906 * config/i386/i386-interix.h: Remove.
9907 * config/i386/interix.opt: Remove.
9908 * config/i386/t-interix: Remove.
9909 * configure: Regenerate.
9910 * configure.ac: Remove interix support.
9911 * doc/install.texi: Remove interix documentation.
9912
9913 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
9914
9915 * config/rs6000/rs6000.h: Add conditional preprocessing directives
9916 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9917 not defined.
9918
9919 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
9920
9921 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9922 they are both PLACEHOLDER_EXPRs.
9923
9924 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9925
9926 * stor-layout.c (layout_type): Move setting complex MODE to
9927 layout_type, instead of setting it ahead of time by the caller.
9928 * tree.c (build_complex_type): Likewise.
9929
9930 2016-06-21 Martin Liska <mliska@suse.cz>
9931
9932 * predict.c (force_edge_cold): Replace imposisble with
9933 impossible.
9934
9935 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
9936
9937 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9938 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9939
9940 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
9941
9942 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9943
9944 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
9945 Ilya Enkovich <ilya.enkovich@intel.com>
9946
9947 PR target/71549
9948 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9949 New member function to convert V1TImode register to SUBREG
9950 TImode in debug insn.
9951 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9952 after changing register mode to V1TImode.
9953
9954 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
9955
9956 * config/aarch64/aarch64-cores.def (vulcan): New core.
9957 * config/aarch64/aarch64-tune.md: Regenerate.
9958 * doc/invoke.texi: Document vulcan as an available option.
9959
9960 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
9961
9962 * cse.c (canon_asm_operands): New function extracted from...
9963 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
9964 either standalone or member of a PARALLEL.
9965
9966 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
9967
9968 PR target/30417
9969 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9970 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9971 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9972
9973 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
9974
9975 PR target/71103
9976 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9977 constant addresses if can_create_pseudo_p.
9978
9979 2016-06-21 Jakub Jelinek <jakub@redhat.com>
9980
9981 PR tree-optimization/71588
9982 * tree-ssa-strlen.c (valid_builtin_call): New function.
9983 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9984 it.
9985
9986 2016-06-20 Jakub Jelinek <jakub@redhat.com>
9987
9988 PR middle-end/71581
9989 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9990 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9991 for conversion of scalar user var to complex type and use the
9992 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
9993 punt.
9994
9995 PR rtl-optimization/71591
9996 * toplev.c (toplev::run_self_tests): If no_backend, complain and
9997 don't run any tests.
9998
9999 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
10000
10001 PR target/71571
10002 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
10003 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
10004 space for PIC with non-v32 and the common non-PIC "jump".
10005
10006 2016-06-20 Jakub Jelinek <jakub@redhat.com>
10007
10008 PR target/71559
10009 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
10010 returned values and add UN*/LTGT/*ORDERED cases with values matching
10011 D operand modifier on vcmp for AVX.
10012
10013 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10014
10015 * config/aarch64/aarch64.opt
10016 (mpc-relative-literal-loads): Rename internal option name.
10017 * config/aarch64/aarch64.c
10018 (aarch64_nopcrelative_literal_loads): Rename to
10019 aarch64_pcrelative_literal_loads.
10020 (aarch64_expand_mov_immediate): Likewise.
10021 (aarch64_secondary_reload): Likewise.
10022 (aarch64_can_use_per_function_literal_pools_p): Likewise.
10023 (aarch64_override_options_after_change_1): Rename and simplify logic.
10024 (aarch64_classify_symbol): Merge large model checks into switch,
10025 remove pc-relative load check.
10026
10027 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10028
10029 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10030 costs relative to the cost of a register move.
10031
10032 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10033
10034 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10035 (vcvt_n_f64_u64): Likewise.
10036 (vcvt_n_s64_f64): Likewise.
10037 (vcvt_n_u64_f64): Likewise.
10038 (vcvt_f64_s64): Likewise.
10039 (vrecpe_f64): Likewise.
10040 (vcvt_f64_u64): Likewise.
10041 (vrecps_f64): Likewise.
10042
10043 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10044
10045 * config/aarch64/aarch64.md
10046 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10047 iterators.
10048 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
10049 attributes.
10050 * config/aarch64/aarch64-builtins.c
10051 (aarch64_types_binop_uss_qualifiers): Delete.
10052 (TYPES_BINOP_USS): Likewise.
10053 (aarch64_types_binop_sus_qualifiers): Likewise.
10054 (TYPES_BINOP_SUS): Likewise.
10055 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10056 (TYPES_FCVTIMM_SUS): Likewise.
10057 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10058 rather than BINOP.
10059 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10060 (fcvtzs): Use SHIFTIMM rather than BINOP.
10061 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10062
10063 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
10064
10065 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10066 costs relative to the cost of a register move.
10067
10068 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10069
10070 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10071 Allow scalar/single vector modes to be tieable.
10072
10073 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
10074
10075 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10076
10077 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10078
10079 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10080 "alignement".
10081 * tree.h (TYPE_ALIGN): Likewise.
10082
10083 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10084
10085 PR target/71103
10086 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10087
10088 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
10089
10090 * config/avr/avr.c (avr_print_operand): Fix "format not a string
10091 literal" build warnings.
10092 (avr_print_operand_address): Dito.
10093
10094 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
10095
10096 PR target/71375
10097 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10098 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10099
10100 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
10101
10102 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10103
10104 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
10105
10106 PR bootstrap/71435
10107 * reload1.c (reload): Pass 0 to finish_spills when called because
10108 update_eliminables_and_spill returns true and remove did_spill.
10109 (finish_spills): Adjust comment and document GLOBAL parameter.
10110
10111 2016-06-17 DJ Delorie <dj@redhat.com>
10112
10113 PR target/71338
10114 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10115 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10116 (umulqihi3_virt): Likewise.
10117 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10118 (umulqihi3_real): Likewise.
10119
10120 2016-06-17 Martin Liska <mliska@suse.cz>
10121
10122 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10123
10124 2016-06-17 Martin Liska <mliska@suse.cz>
10125
10126 * predict.def: PRED_LOOP_EXIT from 92 to 85.
10127
10128 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
10129
10130 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10131 __FAST_MATH__.
10132 (vaddq_f32): Likewise.
10133 (vmul_f32): Likewise.
10134 (vmulq_f32): Likewise.
10135 (vsub_f32): Likewise.
10136 (vsubq_f32): Likewise.
10137
10138 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10139
10140 PR tree-optimization/71347
10141 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10142 cost for all uses in group.
10143
10144 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10145
10146 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10147 insert gimple seq if it's not empty.
10148
10149 2016-06-17 Bin Cheng <bin.cheng@arm.com>
10150
10151 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10152 member OFFSET.
10153 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10154 rather than OFFSET.
10155 (comp_dr_with_seg_len_pair): Ditto.
10156 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
10157 struct dr_with_seg_len_pair against DR_OFFSET.
10158 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10159 DR_OFFSET directly.
10160
10161 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
10162
10163 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10164
10165 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
10166
10167 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10168 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10169 (pa_output_millicode_call): Likewise.
10170 (pa_output_call): Likewise.
10171 (pa_output_indirect_call): Likewise.
10172 (pa_asm_output_mi_thunk): Likewise.
10173
10174 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10175
10176 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10177
10178 2016-06-16 Martin Liska <mliska@suse.cz>
10179
10180 * predict.c (combine_predictions_for_insn): When we find a first
10181 match predictor, we should consider just predictors with
10182 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
10183 DS theory predictor.
10184 (combine_predictions_for_bb): Likewise.
10185
10186 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10187
10188 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10189 with base of reference to struct.
10190
10191 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10192
10193 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10194
10195 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10196
10197 PR target/71151
10198 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10199 progmem_swtable_section.
10200 (progmem_swtable_section): Remove.
10201 (avr_asm_function_rodata_section): Remove.
10202 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10203 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10204
10205 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
10206
10207 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10208 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10209 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10210 signature_CENTAUR_ebx.
10211 * config/i386/i386.c (ix86_option_override_internal): Add
10212 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10213 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10214 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10215
10216 2016-06-16 Martin Liska <mliska@suse.cz>
10217
10218 * predict.def: Add fortran loop preheader predictor.
10219 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10220 fold IFN_BUILTIN_EXPECT with a known constant argument.
10221
10222 2016-06-16 Martin Liska <mliska@suse.cz>
10223
10224 * predict.def: Add 'Fortran' to display text of all
10225 PRED_FORTRAN_* predictors.
10226
10227 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
10228
10229 PR target/71242
10230 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10231 [IA64_BUILTIN_NANSQ]: Ditto.
10232 (ia64_fold_builtin): New function.
10233 (TARGET_FOLD_BUILTIN): New define.
10234 (ia64_init_builtins) Declare const_string_type node.
10235 Add __builtin_nanq and __builtin_nansq builtin functions.
10236 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10237
10238 2016-06-16 Nick Clifton <nickc@redhat.com>
10239
10240 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10241 MSP430_HWMULT_ prefix to enum values.
10242 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10243 * config/msp430/msp430.c: Update use of enum values.
10244 * config/msp430/msp430.md: Likewise.
10245 * config/msp430/msp430.opt: Likewise.
10246
10247 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
10248
10249 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10250 of comparsions in the last iteration.
10251
10252 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10253 Joern Rennecke <joern.rennecke@embecosm.com>
10254
10255 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10256 addresses.
10257 (arc_needs_pcl_p): Add GOTOFFPC.
10258 (arc_legitimate_pic_addr_p): Likewise.
10259 (arc_output_pic_addr_const): Likewise.
10260 (arc_legitimize_pic_address): Generate a pc-relative address using
10261 GOTOFFPC.
10262 (arc_output_libcall): Use @pcl syntax.
10263 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10264 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10265 (*movsi_insn): Use @pcl syntax.
10266 (doloop_begin_i): Likewise.
10267
10268 2016-06-16 Martin Liska <mliska@suse.cz>
10269
10270 * predict.def: Define a new predictor.
10271
10272 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
10273
10274 * config/arc/arc.opt (mtp-regno): Update text.
10275
10276 2016-06-16 Renlin Li <renlin.li@arm.com>
10277
10278 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10279
10280 2016-06-16 Jakub Jelinek <jakub@redhat.com>
10281
10282 PR target/71554
10283 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10284 (setcc + and peephole2): Likewise.
10285
10286 PR rtl-optimization/71532
10287 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10288 memory slots.
10289
10290 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10291
10292 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10293 DImode constants with XXSPLTIB in vector registers.
10294 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10295 vsx_extract_<mode>_internal{1,2} into a single insn that handles
10296 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10297 extraction of the element at the top of the register as a scalar
10298 value.
10299 (vsx_extract_<mode>_internal1): Likewise.
10300 (vsx_extract_<mode>_internal2): Likewise.
10301 * config/rs6000/constraints.md (wi constraint): Remove a comment
10302 about DImode not being allowed in Altivec registers.
10303 (wB constraint): New constraint for constants that can be
10304 generated in Altivec registers with VSPLTISW/VUPKHSW.
10305 * config/rs6000/predicates.md (xxspltib_constant_split): Update
10306 comments.
10307 (xxspltib_constant_nosplit): Likewise.
10308 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10309 support for -mupper-regs-di to enable DImode to go into Altivec
10310 registers.
10311 (POWERPC_MASKS): Likewise.
10312 (power7 cpu): Likewise.
10313 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10314 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10315 for DImode being allowed in Altivec registers. Update wi/wj
10316 constraints. Set scalar_in_vmx_p flag.
10317 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10318 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
10319 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10320 (rs6000_opt_masks): Add -mupper-regs-di.
10321 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10322 direct move to use wi and not wj.
10323 (lfiwzx): Likewise.
10324 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10325 alternative.
10326 (floatunssi<mode>2_lfiwzx_mem): Likewise.
10327 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10328 any VSX register, instead of just Altivec registers, to allow
10329 either operand to be an Altivec register or both.
10330 (fixuns_trunc<mode>di2_fctiduz): Likewise.
10331 (movdi_internal32): Add support for -mupper-regs-di. Add support
10332 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
10333 the alternatives and attributes to be lined up to be easier to
10334 read.
10335 (movdi_internal64): Likewise.
10336 (64-bit DImode splitters): Change predicates to only split loading
10337 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
10338 load constants in ISA 3.0 or ISA 2.07 respectively.
10339 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10340 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
10341 mention -mcpu=power9 sets these options.
10342 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10343 wB constraint.
10344
10345 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10346
10347 PR target/67353
10348 * config/avr/avr.c (avr_set_current_function): Warn misspelled
10349 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10350 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10351 by default to warn misspelled interrupt/ signal handler.
10352 * doc/invoke.texi (AVR Options): Document it. Update description
10353 for -nodevicelib option.
10354
10355 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10356
10357 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10358 up parentheses. Use GET_MODE_UNIT_BITSIZE.
10359 (aarch64_<sur>shll2_n<mode>): Likewise.
10360
10361 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
10362
10363 PR middle-end/71529
10364 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10365 DECL_CONTEXT for copied arguments.
10366
10367 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10368
10369 PR tree-optimization/71483
10370 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10371 for slp
10372
10373 2016-06-15 Martin Liska <mliska@suse.cz>
10374
10375 * predict.c (tree_predict_by_opcode): Call predict_edge_def
10376 instead of predict_edge w/o a probability.
10377
10378 2016-06-15 Alan Hayward <alan.hayward@arm.com>
10379
10380 PR tree-optimization/71439
10381 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10382 live PHIs.
10383
10384 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10385
10386 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10387 register subregs in SET_SRC.
10388
10389 2016-06-15 Richard Biener <rguenther@suse.de>
10390
10391 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10392 store restrictions.
10393
10394 2016-06-15 Richard Biener <rguenther@suse.de>
10395
10396 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10397 not consider dependences between accesses that belong to the
10398 same group.
10399 (vect_analyze_data_ref_dependences): Do not analyze read-read
10400 or self-dependences.
10401
10402 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10403
10404 * spellcheck-tree.c: Include spellcheck-tree.h rather than
10405 spellcheck.h.
10406 (find_closest_identifier): Reimplement in terms of
10407 best_match<tree,tree>.
10408 * spellcheck-tree.h: New file.
10409 * spellcheck.c (struct edit_distance_traits<const char *>): New
10410 struct.
10411 (find_closest_string): Reimplement in terms of
10412 best_match<const char *, const char *>.
10413 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10414 overload to spellcheck-tree.h.
10415 (find_closest_identifier): Likewise.
10416 (struct edit_distance_traits<T>): New template.
10417 (class best_match): New class.
10418
10419 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10420
10421 * selftest-run-tests.c (selftest::run_tests): Call
10422 selftest::spellcheck_tree_c_tests.
10423 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10424 * spellcheck-tree.c: Include selftest.h and stringpool.h.
10425 (selftest::test_find_closest_identifier): New function.
10426 (selftest::spellcheck_tree_c_tests): New function.
10427 * spellcheck.c (selftest::test_find_closest_string): Verify that
10428 the order of the vec does not affect the results for this case.
10429 (selftest::test_data): New array.
10430 (selftest::test_metric_conditions): New function.
10431 (selftest::spellcheck_c_tests): Add a test of case-comparison.
10432 Call selftest::test_metric_conditions.
10433
10434 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10435
10436 * config/rs6000/rs6000-builtin.def (commentary): Typo.
10437 (BU_P9_MISC_1): Likewise.
10438 (BU_P9_64BIT_MISC_0): Likewise.
10439 (BU_P9_MISC_0): Likewise.
10440
10441 2016-06-14 David Malcolm <dmalcolm@redhat.com>
10442
10443 * gcc-rich-location.c
10444 (gcc_rich_location::add_fixit_misspelled_id): New method.
10445 * gcc-rich-location.h
10446 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10447
10448 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
10449
10450 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10451 FreeBSD 11 and above.
10452
10453 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
10454
10455 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10456
10457 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10458
10459 * expmed.h: Close parenthesis in "at your option" in copyright
10460 boilerplate.
10461 * lower-subreg.h: Likewise.
10462
10463 2016-06-14 Richard Biener <rguenther@suse.de>
10464
10465 PR middle-end/71526
10466 * genmatch.c (expr::gen_transform): Use in_type for comparisons
10467 if available.
10468
10469 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10470
10471 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10472 New function.
10473 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
10474 mask+shift version.
10475 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10476 New prototype.
10477 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10478 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10479
10480 2016-06-14 Richard Biener <rguenther@suse.de>
10481
10482 PR tree-optimization/71522
10483 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10484 copying into float copying.
10485
10486 2016-06-14 Jakub Jelinek <jakub@redhat.com>
10487
10488 PR tree-optimization/71520
10489 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10490 (replace_block_by): Move user labels from bb1 to bb2.
10491
10492 2016-06-14 Richard Biener <rguenther@suse.de>
10493
10494 PR middle-end/71310
10495 PR bootstrap/71510
10496 * expr.h (get_bit_range): Declare.
10497 * expr.c (get_bit_range): Export.
10498 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10499 word_mode again to constrain the bitfield access.
10500
10501 2016-06-14 Richard Biener <rguenther@suse.de>
10502
10503 PR tree-optimization/71521
10504 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10505 division int_const_binop against zero divisor.
10506
10507 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10508
10509 * config/i386/i386.md (signbittf2): New expander.
10510 * config/i386/sse.md (ptesttf2): New insn pattern.
10511
10512 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10513
10514 PR bootstrap/71481
10515 * input.c (selftest::test_reading_source_line): Avoid reading from
10516 __FILE__ by creating a tempfile with known content and reading
10517 from that instead.
10518
10519 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10520
10521 * pretty-print.c (assert_pp_format_colored): Skip the test if
10522 GCC_COLORS is set.
10523 (test_pp_format): Remove comment about GCC_COLORS.
10524
10525 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10526
10527 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10528 * pretty-print.c (assert_pp_format_va): Add location param and use
10529 it with ASSERT_STREQ_AT.
10530 (assert_pp_format): Add location param and pass it to
10531 assert_pp_format_va.
10532 (assert_pp_format_colored): Likewise.
10533 (ASSERT_PP_FORMAT_1): New.
10534 (ASSERT_PP_FORMAT_2): New.
10535 (ASSERT_PP_FORMAT_3): New.
10536 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10537 explicitly, or implicitly via the above macros.
10538 * selftest.c (selftest::pass): Use a selftest::location rather
10539 than file and line.
10540 (selftest::fail): Likewise. Print the function name.
10541 (selftest::fail_formatted): Likewise.
10542 (selftest::assert_streq): Use a selftest::location rather than
10543 file and line.
10544 * selftest.h (selftest::location): New struct.
10545 (SELFTEST_LOCATION): New macro.
10546 (selftest::pass): Accept a const location & rather than file
10547 and line.
10548 (selftest::fail): Likewise.
10549 (selftest::fail_formatted): Likewise.
10550 (selftest::assert_streq): Likewise.
10551 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10552 (ASSERT_FALSE): Likewise.
10553 (ASSERT_EQ): Likewise.
10554 (ASSERT_NE): Likewise.
10555 (ASSERT_STREQ): Likewise.
10556 (ASSERT_PRED1): Likewise.
10557 (ASSERT_STREQ_AT): New macro.
10558
10559 2016-06-13 David Malcolm <dmalcolm@redhat.com>
10560
10561 * selftest.c (selftest::fail_formatted): New function.
10562 (selftest::assert_streq): New function.
10563 * selftest.h (selftests::fail_formatted): New decl.
10564 (selftest::assert_streq): New decl.
10565 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10566
10567 2016-06-13 Jeff Law <law@redhat.com>
10568
10569 PR tree-optimization/71403
10570 * tree-ssa-threadbackward.c
10571 (convert_and_register_jump_thread_path): No longer accept reference
10572 to path. Do not pop items off the path anymore.
10573 (fsm_find_control_statement_thread_paths): Do not allow threading
10574 to a deeper loop nest. Pop the last item off the path here rather
10575 than in convert_and_register_jump_thread_path.
10576
10577 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10578 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
10579
10580 [AArch64] Emit division using the Newton series
10581
10582 * config/aarch64/aarch64-protos.h
10583 (cpu_approx_modes): Add new member "division".
10584 (aarch64_emit_approx_div): Declare new function.
10585 * config/aarch64/aarch64.c
10586 (generic_approx_modes): New member "division".
10587 (exynosm1_approx_modes): Likewise.
10588 (xgene1_approx_modes): Likewise.
10589 (aarch64_emit_approx_div): Define new function.
10590 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10591 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10592 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10593 * doc/invoke.texi (-mlow-precision-div): Describe new option.
10594
10595 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10596 Wilco Dijkstra <wilco.dijkstra@arm.com>
10597
10598 [AArch64] Emit square root using the Newton series
10599
10600 * config/aarch64/aarch64-protos.h
10601 (aarch64_emit_approx_rsqrt): Replace with new function
10602 "aarch64_emit_approx_sqrt".
10603 (cpu_approx_modes): New member "sqrt".
10604 * config/aarch64/aarch64.c
10605 (generic_approx_modes): New member "sqrt".
10606 (exynosm1_approx_modes): Likewise.
10607 (xgene1_approx_modes): Likewise.
10608 (aarch64_emit_approx_rsqrt): Replace with new function
10609 "aarch64_emit_approx_sqrt".
10610 (aarch64_override_options_after_change_1): Handle new option.
10611 * config/aarch64/aarch64-simd.md
10612 (rsqrt<mode>2): Use new function instead.
10613 (sqrt<mode>2): New expansion and insn definitions.
10614 * config/aarch64/aarch64.md: Likewise.
10615 * config/aarch64/aarch64.opt
10616 (mlow-precision-sqrt): Add new option description.
10617 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
10618
10619 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
10620
10621 [AArch64] Add more choices for the reciprocal square root approximation
10622
10623 Allow a target to prefer such operation depending on the operation mode.
10624
10625 * config/aarch64/aarch64-protos.h
10626 (AARCH64_APPROX_MODE): New macro.
10627 (AARCH64_APPROX_{NONE,ALL}): Likewise.
10628 (cpu_approx_modes): New structure.
10629 (tune_params): New member "approx_modes".
10630 * config/aarch64/aarch64-tuning-flags.def
10631 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
10632 * config/aarch64/aarch64.c
10633 (generic_approx_modes): New core "cpu_approx_modes" structure.
10634 (exynosm1_approx_modes): Likewise.
10635 (xgene1_approx_modes): Likewise.
10636 (generic_tunings): New member "approx_modes".
10637 (cortexa35_tunings): Likewise.
10638 (cortexa53_tunings): Likewise.
10639 (cortexa57_tunings): Likewise.
10640 (cortexa72_tunings): Likewise.
10641 (exynosm1_tunings): Likewise.
10642 (thunderx_tunings): Likewise.
10643 (xgene1_tunings): Likewise.
10644 (use_rsqrt_p): New argument for the mode and use new member from
10645 "tune_params".
10646 (aarch64_builtin_reciprocal): Devise mode from builtin.
10647 (aarch64_optab_supported_p): New argument for the mode.
10648 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
10649
10650 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
10651
10652 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
10653 RS6000_BTM_MODULO flag into the set of flags that are considered
10654 to be part of the common configuration.
10655
10656 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
10657
10658 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
10659 difference unsigned.
10660 (vec_absdb): New macro for vector absolute difference unsigned
10661 byte.
10662 (vec_absdh): New macro for vector absolute difference unsigned
10663 half-word.
10664 (vec_absdw): New macro for vector absolute difference unsigned word.
10665 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
10666 (vadu<mode>3): New insn.
10667 (*p9_vadu<mode>3): New insn.
10668 * config/rs6000/rs6000-builtin.def (vadub): New built-in
10669 definition.
10670 (vaduh): New built-in definition.
10671 (vaduw): New built-in definition.
10672 (vadu): New overloaded built-in definition.
10673 (vadub): New overloaded built-in definition.
10674 (vaduh): New overloaded built-in definition.
10675 (vaduw): New overloaded built-in definition.
10676 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10677 overloaded vector absolute difference unsigned functions.
10678 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10679 the ISA 3.0 vector absolute difference unsigned built-in functions.
10680
10681 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
10682
10683 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
10684 update shared_lookup_references only once after changing operands.
10685
10686 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
10687
10688 PR middle-end/71373
10689 * tree-nested.c (convert_nonlocal_omp_clauses)
10690 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
10691
10692 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
10693 * tree.def (CASE_LABEL_EXPR): Likewise.
10694
10695 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10696
10697 PR bootstrap/71481
10698 * input.c (test_builtins): Fix an assertion.
10699
10700 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10701
10702 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
10703 (paritysi2): Ditto.
10704 (isinfxf2): Ditto.
10705 (isinf<mode>2): Ditto.
10706
10707 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
10708
10709 * ggc-tests.c (test_finalization): Only test need_finalization_p
10710 for GCC_VERSION >= 4003.
10711
10712 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10713
10714 * config/s390/vecintrin.h: Fix file description in comment.
10715
10716 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10717
10718 * config/s390/s390-builtin-types.def: Change builtin type naming
10719 scheme to match builtin-types.def.
10720
10721 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
10722
10723 * fold-const.c (optimize_minmax_comparison): Remove.
10724 (fold_comparison): Remove call to the above.
10725 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
10726 New transformations.
10727
10728 2016-06-13 Alan Hayward <alan.hayward@arm.com>
10729
10730 PR tree-optimization/71416
10731 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
10732 multiple entries
10733
10734 2016-06-13 Martin Liska <mliska@suse.cz>
10735
10736 * predict.c (enum predictor_reason): Prefix enum with REASON_.
10737 (combine_predictions_for_insn): Likewise.
10738 (prune_predictions_for_bb): Likewise.
10739 (combine_predictions_for_bb): Likewise.
10740
10741 2016-06-13 Richard Biener <rguenther@suse.de>
10742
10743 PR tree-optimization/71505
10744 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
10745 assert match comment.
10746
10747 2016-06-13 Marek Polacek <polacek@redhat.com>
10748
10749 PR middle-end/71476
10750 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
10751 gimplify_switch_expr.
10752 (warn_switch_unreachable_r): New function.
10753
10754 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10755
10756 PR target/71379
10757 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
10758 one.
10759
10760 2016-06-13 Richard Biener <rguenther@suse.de>
10761
10762 PR middle-end/64516
10763 * fold-const.c (fold_unary_loc): Preserve alignment when
10764 folding a VIEW_CONVERT_EXPR into a MEM_REF.
10765
10766 2016-06-13 Martin Liska <mliska@suse.cz>
10767
10768 PR sanitizer/71458
10769 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
10770 w/ -fsanitize=bounds.
10771
10772 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
10773
10774 * config/i386/i386.c (ix86_init_builtins): Calculate
10775 FLOAT128_FTYPE_CONST_STRING function type only once.
10776 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
10777 built-in functions are available for x86-32 and x86-64 targets.
10778
10779 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
10780
10781 PR target/71241
10782 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
10783 New primitive type.
10784 (FLOAT128_FTYPE_CONST_STRING): New function type.
10785 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
10786 [IX86_BUILTIN_NANSQ]: Ditto.
10787 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10788 (ix86_init_builtin_types): Declare const_string_type_node.
10789 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
10790 builtin functions.
10791 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10792 * doc/extend.texi (x86 Built-in Functions): Document
10793 __builtin_nanq and __builtin_nansq.
10794
10795 2016-06-11 Jiong Wang <jiong.wang@arm.com>
10796
10797 PR target/71061
10798 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
10799 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
10800 length for pop patterns.
10801 (arm_attr_length_push_multi): Update comments.
10802 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
10803 attribute.
10804 (*pop_multiple_with_writeback_and_return): Likewise.
10805 (*pop_multiple_with_return): Likewise.
10806
10807 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
10808
10809 PR middle-end/71310
10810 * fold-const.c (optimize_bit_field_compare): Don't try to use
10811 word_mode unconditionally for reading the bit field, look at
10812 DECL_BIT_FIELD_REPRESENTATIVE instead.
10813
10814 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10815
10816 PR middle-end/71478
10817 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
10818 vector integer type.
10819
10820 2016-06-10 Jakub Jelinek <jakub@redhat.com>
10821
10822 PR middle-end/71494
10823 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
10824 without LABEL_DECL, set *handled_ops_p to false instead of true.
10825
10826 2016-06-10 Martin Sebor <msebor@redhat.com>
10827
10828 PR c/71392
10829 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
10830 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
10831 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
10832 them.
10833 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
10834 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
10835 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
10836 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
10837 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
10838 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
10839 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
10840 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
10841
10842 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10843
10844 * config/arm/arm.h (pool_vector_label,
10845 return_used_this_function): Remove.
10846
10847 2016-06-10 Jeff Law <law@redhat.com>
10848
10849 PR tree-optimization/71335
10850 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
10851 zero length paths here.
10852 (convert_and_register_jump_thread_path): Remove hacks related to
10853 duplicated blocks in the jump thread path.
10854 (fsm_find_control_statement_thread_paths): Avoid putting the same
10855 block on the thread path twice, but ensure the thread path is
10856 unchanged from the caller's point of view.
10857
10858 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
10859
10860 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
10861 * predict.def (PRED_LOOP_BRANCH): Remove.
10862
10863 2016-06-10 David Malcolm <dmalcolm@redhat.com>
10864
10865 * Makefile.in (OBJS): Add ggc-tests.o.
10866 (GTFILES): Add ggc-tests.c.
10867 * ggc-tests.c: New file.
10868 * selftest-run-tests.c (selftest::run_tests): Call
10869 selftest::ggc_tests_c_tests.
10870 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
10871
10872 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
10873
10874 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
10875
10876 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
10877
10878 PR sanitizer/71480
10879 * varasm.c (place_block_symbol): Adjust alignment for asan protected
10880 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
10881
10882 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
10883
10884 * profile.c: Include cfgloop.h.
10885 (branch_prob): Compute estimated number of iterations.
10886 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
10887 recompute estimate number of iterations from profile.
10888
10889 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
10890
10891 PR inline-asm/68843
10892 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
10893 must be grouped on top of stack. Don't force early clobber
10894 on ordinary reg outputs.
10895
10896 2016-06-10 Richard Biener <rguenther@suse.de>
10897
10898 * targhooks.c (default_builtin_vectorization_cost): Adjust
10899 vec_construct cost.
10900
10901 2016-06-10 Richard Biener <rguenther@suse.de>
10902
10903 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
10904 to fold the RHS to a constant if possible.
10905
10906 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
10907
10908 PR middle-end/71373
10909 * tree-nested.c (convert_nonlocal_omp_clauses)
10910 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
10911 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10912 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
10913
10914 * gimplify.c (gimplify_adjust_omp_clauses): Discard
10915 OMP_CLAUSE_TILE.
10916 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10917
10918 * omp-low.c (scan_sharing_clauses): Don't expect
10919 OMP_CLAUSE__CACHE_.
10920
10921 2016-06-10 Alan Hayward <alan.hayward@arm.com>
10922
10923 PR tree-optimization/71407
10924 PR tree-optimization/71416
10925 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10926 BIT_FIELD_REF type.
10927
10928 2016-06-10 Richard Biener <rguenther@suse.de>
10929
10930 PR middle-end/71477
10931 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10932
10933 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
10934
10935 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10936
10937 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
10938 Jiong Wang <jiong.wang@arm.com>
10939
10940 PR rtl-optimization/70751
10941 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10942 spilled into memory.
10943
10944 2016-06-09 Jonathan Yong <10walls@gmail.com>
10945
10946 Revert:
10947 2015-09-21 Jonathan Yong <10walls@gmail.com>
10948
10949 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10950 sysroot/usr/lib/32api for additional win32 libraries,
10951 fixes failing Cygwin bootstrapping.
10952
10953 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
10954
10955 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10956 Delete.
10957
10958 2016-06-09 David Malcolm <dmalcolm@redhat.com>
10959
10960 PR bootstrap/71471
10961 * pretty-print.c (pp_indent): Specify that %p is printed in a
10962 host-dependent manner.
10963 (test_pp_format): Remove the test for %p.
10964
10965 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
10966
10967 * config/mips/mips.c (mips_output_jump): Fix formatting.
10968
10969 2016-06-09 Richard Biener <rguenther@suse.de>
10970
10971 PR tree-optimization/71462
10972 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10973 removed blocks.
10974
10975 2016-06-09 Martin Liska <mliska@suse.cz>
10976
10977 * predict.c (dump_prediction): Add new argument.
10978 (enum predictor_reason): New enum.
10979 (struct predictor_hash): New struct.
10980 (predictor_hash::hash): New function.
10981 (predictor_hash::equal): Likewise.
10982 (not_removed_prediction_p): New function.
10983 (prune_predictions_for_bb): Likewise.
10984 (combine_predictions_for_bb): Prune predictions.
10985
10986 2016-06-09 Martin Liska <mliska@suse.cz>
10987
10988 * predict.c (filter_predictions): New function.
10989 (remove_predictions_associated_with_edge): Use the filter
10990 function.
10991 (equal_edge_p): New function.
10992
10993 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
10994
10995 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10996 Correct usage of @samp vs @option, add @samp where appropriate.
10997 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10998 Add armv6s-m and document it, as it is no official ARM name.
10999
11000 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11001
11002 * ifcvt.c (struct noce_if_info): Add transform_name field.
11003 (noce_try_move): Set if_info->transform_name to the function name.
11004 (noce_try_ifelse_collapse): Likewise.
11005 (noce_try_store_flag): Likewise.
11006 (noce_try_inverse_constants): Likewise.
11007 (noce_try_store_flag_constants): Likewise.
11008 (noce_try_addcc): Likewise.
11009 (noce_try_store_flag_mask): Likewise.
11010 (noce_try_cmove): Likewise.
11011 (noce_try_cmove_arith): Likewise.
11012 (noce_try_minmax): Likewise.
11013 (noce_try_abs): Likewise.
11014 (noce_try_sign_mask): Likewise.
11015 (noce_try_bitop): Likewise.
11016 (noce_convert_multiple_sets): Likewise.
11017 (noce_process_if_block): Print if_info->transform_name to
11018 dump_file if transformation succeeded.
11019
11020 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11021
11022 * config/arm/cortex-a57.md (cortex_a57_alu):
11023 Handle csel type.
11024
11025 2016-06-08 Martin Sebor <msebor@redhat.com>
11026 Jakub Jelinek <jakub@redhat.com>
11027
11028 PR c++/70507
11029 PR c/68120
11030 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11031 BUILT_IN_MUL_OVERFLOW_P): New builtins.
11032 * builtins.c: Include gimple-fold.h.
11033 (fold_builtin_arith_overflow): Handle
11034 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11035 (fold_builtin_3): Likewise.
11036 * doc/extend.texi (Integer Overflow Builtins): Document
11037 __builtin_{add,sub,mul}_overflow_p.
11038
11039 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
11040
11041 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11042 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11043
11044 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
11045
11046 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11047 Rewrite, looking one level down for records and arrays.
11048
11049 2016-06-08 David Malcolm <dmalcolm@redhat.com>
11050
11051 * pretty-print.c: Include "selftest.h".
11052 (pp_format): Fix comment.
11053 (identifier_to_locale): Likewise.
11054 (selftest::test_basic_printing): New function.
11055 (selftest::assert_pp_format): New function.
11056 (selftest::test_pp_format): New function.
11057 (selftest::pretty_print_c_tests): New function.
11058 * selftest-run-tests.c (selftest::run_tests): Call
11059 selftest::pretty_print_c_tests.
11060 * selftest.h (pretty_print_c_tests): New declaration.
11061
11062 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11063
11064 * invoke.texi (max-loop-headers-insns): Document.
11065 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11066 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11067 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11068
11069 2016-06-08 Richard Biener <rguenther@suse.de>
11070
11071 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11072 on strided SLP loads and fall back to scalar loads in case
11073 we can't chunk them.
11074
11075 2016-06-08 Richard Biener <rguenther@suse.de>
11076
11077 PR tree-optimization/71452
11078 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11079 type used for the SSA rewrite has enough precision to cover
11080 the dynamic type of the location.
11081
11082 2016-06-08 Jakub Jelinek <jakub@redhat.com>
11083 Richard Biener <rguenther@suse.de>
11084
11085 PR c++/71448
11086 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11087 the same as DECL_P (base0) for indirect_base0. Use equality_code
11088 in one further place.
11089
11090 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
11091
11092 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11093 to one word if the field is known to overlap other words.
11094 (extract_bit_field_1): Likewise.
11095 (store_split_bit_field): Remove compensating code.
11096 (extract_split_bit_field): Likewise.
11097
11098 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
11099
11100 PR debug/71432
11101 PR ada/71413
11102 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11103
11104 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11105
11106 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11107 VDQF.
11108 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11109 (arch64_addpv4sf): Delete.
11110 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11111 "gen_aarch64_addpv4sf".
11112 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
11113 builtin.
11114 (vpadds_f32): Likewise.
11115 (vpaddq_f32): Likewise.
11116 (vpaddq_f64): Likewise.
11117
11118 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11119
11120 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11121 VALLF.
11122 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11123 to VALLF. Rename to "fabd<mode>3".
11124 "*fabd_scalar<mode>3): Delete.
11125 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11126 Use builtin.
11127 (vabdd_f64): Likewise.
11128 (vabd_f32): Likewise.
11129 (vabd_f64): Likewise.
11130 (vabdq_f32): Likewise.
11131 (vabdq_f64): Likewise.
11132
11133 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11134
11135 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11136 VALLF.
11137 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11138 "aarch64_rsqrts<mode>".
11139 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11140 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
11141 builtin.
11142 (vrsqrtsd_f64): Likewise.
11143 (vrsqrts_f32): Likewise.
11144 (vrsqrts_f64): Likewise.
11145 (vrsqrtsq_f32): Likewise.
11146 (vrsqrtsq_f64): Likewise.
11147
11148 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11149
11150 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11151 VALLF.
11152 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11153 "aarch64_rsqrte<mode>".
11154 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11155 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
11156 builtin.
11157 (vrsqrted_f64): Likewise.
11158 (vrsqrte_f32): Likewise.
11159 (vrsqrte_f64): Likewise.
11160 (vrsqrteq_f32): Likewise.
11161 (vrsqrteq_f64): Likewise.
11162
11163 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11164
11165 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11166 (ucvtf): Likewise.
11167 (fcvtzs): Likewise.
11168 (fcvtzu): Likewise.
11169 * config/aarch64/aarch64-simd.md
11170 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11171 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11172 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11173 Use builtin.
11174 (vcvt_n_f32_u32): Likewise.
11175 (vcvt_n_s32_f32): Likewise.
11176 (vcvt_n_u32_f32): Likewise.
11177 (vcvtq_n_f32_s32): Likewise.
11178 (vcvtq_n_f32_u32): Likewise.
11179 (vcvtq_n_f64_s64): Likewise.
11180 (vcvtq_n_f64_u64): Likewise.
11181 (vcvtq_n_s32_f32): Likewise.
11182 (vcvtq_n_s64_f64): Likewise.
11183 (vcvtq_n_u32_f32): Likewise.
11184 (vcvtq_n_u64_f64): Likewise.
11185 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11186 (VSDQ_SDI): Likewise.
11187 (fcvt_target): Support V4DI, V4SI and V2SI.
11188 (FCVT_TARGET): Likewise.
11189
11190 2016-06-08 Jiong Wang <jiong.wang@arm.com>
11191
11192 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11193 (TYPES_BINOP_SUS): Likewise.
11194 (aarch64_simd_builtin_data): Update include file name.
11195 (aarch64_builtins): Likewise.
11196 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11197 for conversion between scalar float-point and fixed-point.
11198 (ucvtf): Likewise.
11199 (fcvtzs): Likewise.
11200 (fcvtzu): Likewise.
11201 * config/aarch64/aarch64.md
11202 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11203 pattern for conversion between scalar float to fixed-pointer.
11204 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11205 (UNSPEC_FCVTZS): New UNSPEC enumeration.
11206 (UNSPEC_FCVTZU): Likewise.
11207 (UNSPEC_SCVTF): Likewise.
11208 (UNSPEC_UCVTF): Likewise.
11209 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11210 Use builtin.
11211 (vcvtd_n_f64_u64): Likewise.
11212 (vcvtd_n_s64_f64): Likewise.
11213 (vcvtd_n_u64_f64): Likewise.
11214 (vcvtd_n_f32_s32): Likewise.
11215 (vcvts_n_f32_u32): Likewise.
11216 (vcvtd_n_s32_f32): Likewise.
11217 (vcvts_n_u32_f32): Likewise.
11218 * config/aarch64/iterators.md (fcvt_target): Support integer to float
11219 mapping.
11220 (FCVT_TARGET): Likewise.
11221 (FCVT_FIXED2F): New iterator.
11222 (FCVT_F2FIXED): Likewise.
11223 (fcvt_fixed_insn): New define_int_attr.
11224
11225 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11226
11227 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11228 some statements was removed.
11229
11230 2016-06-08 Alan Hayward <alan.hayward@arm.com>
11231
11232 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11233 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11234 (vect_can_advance_ivs_p): likewise.
11235 (vect_update_ivs_after_vectorizer): likewise.
11236 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11237 (vect_analyze_scalar_cycles_1): likewise.
11238 (vect_analyze_loop_operations): likewise.
11239 (report_vect_op): likewise.
11240 (vect_is_slp_reduction): likewise.
11241 (vect_is_simple_reduction): likewise.
11242 (get_initial_def_for_induction): likewise.
11243 (vect_transform_loop): likewise.
11244 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11245 (vect_recog_sad_pattern): likewise.
11246 (vect_recog_widen_sum_pattern): likewise.
11247 (vect_recog_widening_pattern): likewise.
11248 (vect_recog_divmod_pattern): likewise.
11249 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11250 (vect_analyze_slp_instance): likewise.
11251 (vect_transform_slp_perm_load): likewise.
11252 (vect_schedule_slp_instance): likewise.
11253
11254 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11255
11256 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11257 (return_prediction): PRED_CONST_RETURN predict return as not taken.
11258 * predict.def (PRED_CONTINUE): Change hitrate 50->67
11259 (PRED_LOOP_BRANCH): Document predictor as broken.
11260 (PRED_LOOP_EXIT): Change hitrate 91->92.
11261 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11262 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11263 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11264 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11265 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11266 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11267 (PRED_CALL): Chane hitrate 71->67.
11268 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11269 (PRED_GOTO): Document as unused right now.
11270 (PRED_CONST_RETURN): Change hitrate 67->69
11271 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11272 (PRED_NULL_RETURN): Change hitrate 91->90.
11273 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11274 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11275 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11276
11277 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
11278
11279 * config/rs6000/altivec.h: Add __builtin_vec_mul.
11280 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11281 special case Altivec builtin.
11282 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11283 VSX_BUILTIN_VEC_MUL (replaced with special case code).
11284 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11285 code for ALTIVEC_BUILTIN_VEC_MUL.
11286 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11287 for __builtin_vec_mul.
11288
11289 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
11290
11291 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11292 -mno-htm.
11293
11294 2016-06-07 David Malcolm <dmalcolm@redhat.com>
11295
11296 * spellcheck.c (selftest::test_find_closest_string): New function.
11297 (spellcheck_c_tests): Call the above.
11298
11299 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11300
11301 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11302
11303 2016-06-07 Jakub Jelinek <jakub@redhat.com>
11304
11305 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11306 Yv=Yv,C alternatives.
11307
11308 2016-06-07 Richard Biener <rguenther@suse.de>
11309
11310 PR c/61564
11311 * common.opt (ffast-math): Make Optimization.
11312
11313 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
11314 Prachi Godbole <prachi.godbole@imgtec.com>
11315
11316 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11317 `fabs' and `fneg' type attributes.
11318 (p5600_fpu_fabs): Add `fmove' to the comment.
11319
11320 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
11321
11322 * gimple.c: Include builtins.h
11323 (gimple_inexpensive_call_p): New function.
11324 * gimple.h (gimple_inexpensive_call_p): Declare.
11325 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11326 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11327 fix formatting.
11328
11329 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
11330
11331 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11332 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11333 warning_at_rich_loc, warning_n, pedwarn, permerror,
11334 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11335 sorry, fatal_error, internal_error, internal_error_no_backtrace):
11336 Use the above.
11337
11338 2016-06-07 Richard Biener <rguenther@suse.de>
11339
11340 PR tree-optimization/71428
11341 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11342 BIT_FIELD_REF op vs. load.
11343
11344 2016-06-07 Richard Biener <rguenther@suse.de>
11345
11346 PR middle-end/71423
11347 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11348 for signed ops.
11349
11350 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11351
11352 * config/pa/pa.md (call): Generate indirect long calls to non-local
11353 functions on TARGET_64BIT.
11354 (call_value): Likewise.
11355
11356 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
11357
11358 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11359 pattern and subsequent splitters.
11360 (call_val_reg_64bit_post_reload): Likewise.
11361
11362 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11363
11364 PR middle-end/71408
11365 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11366 propagate_op_to_single_use.
11367
11368 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11369
11370 PR middle-end/71281
11371 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11372
11373 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
11374
11375 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11376 (enum x86_dirflag_state): New enum.
11377 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11378 (machine_function): Remove needs_cld.
11379 (ix86_current_function_needs_cld): Remove.
11380 * config/i386/i386.c (ix86_set_func_type): Set
11381 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11382 (ix86_expand_prologue): Do not emit CLD here.
11383 (ix86_dirflag_mode_needed): New function.
11384 (ix86_dirflag_mode_entry): Ditto.
11385 (ix86_mode_needed): Handle X86_DIRFLAG entity.
11386 (ix86_mode_after): Ditto.
11387 (ix86_mode_entry): Ditto.
11388 (ix86_mode_exit): Ditto.
11389 (ix86_emit_mode_set): Ditto.
11390 * config/i386/i386.md (strmov_singleop): Set
11391 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11392 Do not set ix86_current_function_needs_cld.
11393 (rep_mov): Ditto.
11394 (strset_singleop): Ditto.
11395 (rep_stos): Ditto.
11396 (cmpstrnqi_nz_1): Ditto.
11397 (cmpstrnqi_1): Ditto.
11398 (strlenqi_1): Ditto.
11399
11400 2016-06-06 Jakub Jelinek <jakub@redhat.com>
11401
11402 PR tree-optimization/71259
11403 * tree-vect-slp.c (vect_get_constant_vectors): For
11404 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11405 one for constant op, and use COND_EXPR for non-constant.
11406
11407 2016-06-06 David Malcolm <dmalcolm@redhat.com>
11408
11409 * Makefile.in (OBJS): Add function-tests.o,
11410 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11411 selftest-run-tests.o.
11412 (OBJS-libcommon): Add selftest.o.
11413 (OBJS-libcommon-target): Add selftest.o.
11414 (all.internal): Add "selftest".
11415 (all.cross): Likewise.
11416 (selftest): New phony target.
11417 (s-selftest): New target.
11418 (selftest-gdb): New phony target.
11419 (COLLECT2_OBJS): Add selftest.o.
11420 * bitmap.c: Include "selftest.h".
11421 (selftest::test_gc_alloc): New function.
11422 (selftest::test_set_range): New function.
11423 (selftest::test_clear_bit_in_middle): New function.
11424 (selftest::test_copying): New function.
11425 (selftest::test_bitmap_single_bit_set_p): New function.
11426 (selftest::bitmap_c_tests): New function.
11427 * common.opt (fself-test): New.
11428 * diagnostic-show-locus.c: Include "selftest.h".
11429 (make_range): New function.
11430 (test_range_contains_point_for_single_point): New function.
11431 (test_range_contains_point_for_single_line): New function.
11432 (test_range_contains_point_for_multiple_lines): New function.
11433 (assert_eq): New function.
11434 (test_get_line_width_without_trailing_whitespace): New function.
11435 (selftest::diagnostic_show_locus_c_tests): New function.
11436 * et-forest.c: Include "selftest.h".
11437 (selftest::test_single_node): New function.
11438 (selftest::test_simple_tree): New function.
11439 (selftest::test_disconnected_nodes): New function.
11440 (selftest::et_forest_c_tests): New function.
11441 * fold-const.c: Include "selftest.h".
11442 (selftest::assert_binop_folds_to_const): New function.
11443 (selftest::assert_binop_folds_to_nonlvalue): New function.
11444 (selftest::test_arithmetic_folding): New function.
11445 (selftest::fold_const_c_tests): New function.
11446 * function-tests.c: New file.
11447 * gimple.c: Include "selftest.h".
11448 Include "gimple-pretty-print.h".
11449 (selftest::verify_gimple_pp): New function.
11450 (selftest::test_assign_single): New function.
11451 (selftest::test_assign_binop): New function.
11452 (selftest::test_nop_stmt): New function.
11453 (selftest::test_return_stmt): New function.
11454 (selftest::test_return_without_value): New function.
11455 (selftest::gimple_c_tests): New function.
11456 * hash-map-tests.c: New file.
11457 * hash-set-tests.c: New file.
11458 * input.c: Include "selftest.h".
11459 (selftest::assert_loceq): New function.
11460 (selftest::test_accessing_ordinary_linemaps): New function.
11461 (selftest::test_unknown_location): New function.
11462 (selftest::test_builtins): New function.
11463 (selftest::test_reading_source_line): New function.
11464 (selftest::input_c_tests): New function.
11465 * rtl-tests.c: New file.
11466 * selftest-run-tests.c: New file.
11467 * selftest.c: New file.
11468 * selftest.h: New file.
11469 * spellcheck.c: Include "selftest.h".
11470 (selftest::levenshtein_distance_unit_test_oneway): New function,
11471 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11472 (selftest::levenshtein_distance_unit_test): Likewise.
11473 (selftest::spellcheck_c_tests): Likewise.
11474 * toplev.c: Include selftest.h.
11475 (toplev::run_self_tests): New.
11476 (toplev::main): Handle -fself-test.
11477 * toplev.h (toplev::run_self_tests): New.
11478 * tree.c: Include "selftest.h".
11479 (selftest::test_integer_constants): New function.
11480 (selftest::test_identifiers): New function.
11481 (selftest::test_labels): New function.
11482 (selftest::tree_c_tests): New function.
11483 * tree-cfg.c: Include "selftest.h".
11484 (selftest::push_fndecl): New function.
11485 (selftest::test_linear_chain): New function.
11486 (selftest::test_diamond): New function.
11487 (selftest::test_fully_connected): New function.
11488 (selftest::tree_cfg_c_tests): New function.
11489 * vec.c: Include "selftest.h".
11490 (selftest::safe_push_range): New function.
11491 (selftest::test_quick_push): New function.
11492 (selftest::test_safe_push): New function.
11493 (selftest::test_truncate): New function.
11494 (selftest::test_safe_grow_cleared): New function.
11495 (selftest::test_pop): New function.
11496 (selftest::test_safe_insert): New function.
11497 (selftest::test_ordered_remove): New function.
11498 (selftest::test_unordered_remove): New function.
11499 (selftest::test_block_remove): New function.
11500 (selftest::reverse_cmp): New function.
11501 (selftest::test_qsort): New function.
11502 (selftest::vec_c_tests): New function.c.
11503 * wide-int.cc: Include selftest.h and wide-int-print.h.
11504 (selftest::from_int <wide_int>): New function.
11505 (selftest::from_int <offset_int>): New function.
11506 (selftest::from_int <widest_int>): New function.
11507 (selftest::assert_deceq): New function.
11508 (selftest::assert_hexeq): New function.
11509 (selftest::test_printing <VALUE_TYPE>): New function template.
11510 (selftest::test_ops <VALUE_TYPE>): New function template.
11511 (selftest::test_comparisons <VALUE_TYPE>): New function template.
11512 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11513 template.
11514 (selftest::wide_int_cc_tests): New function.
11515
11516 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11517
11518 PR middle-end/37780
11519 * ifcvt.c (noce_try_ifelse_collapse): New function.
11520 Declare prototype.
11521 (noce_process_if_block): Call noce_try_ifelse_collapse.
11522 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11523 (simplify_ternary_operation): Use the above to simplify
11524 conditional CLZ/CTZ expressions.
11525
11526 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11527
11528 PR middle-end/37780
11529 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11530 define_insn_and_split.
11531
11532 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11533
11534 PR middle-end/37780
11535 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11536
11537 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11538
11539 PR c/24414
11540 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11541 Implicitly clobber memory for basic asm with non-empty assembler
11542 string. Use targetm.md_asm_adjust also here.
11543 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11544 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11545 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11546 non-empty assembler string.
11547 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11548 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11549 (decode_asm_operands): Handle basic asm in PARALLEL block.
11550 (extract_insn): Handle basic asm in PARALLEL block.
11551 * doc/extend.texi: Mention new behavior of basic asm.
11552 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11553 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11554 branch_needs_nop_p): Use asm_noperands.
11555
11556 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
11557
11558 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11559 Include the M7 SPARC DFA scheduler.
11560 New attribute v3pipe.
11561 Annotate insns with v3pipe where appropriate.
11562 Define cpu_feature vis4.
11563 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11564 Add (V8QI "8") to vbits.
11565 Add insns {add,sub}v8qi3
11566 Add insns ss{add,sub}v8qi3
11567 Add insns us{add,sub}{v8qi,v4hi}3
11568 Add insns {min,max}{v8qi,v4hi,v2si}3
11569 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11570 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11571 * config/sparc/niagara4.md: Add a comment explaining the
11572 discrepancy between the documented latenty numbers and the
11573 implemented ones.
11574 * config/sparc/niagara7.md: New file.
11575 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11576 supports SPARC5 and VIS 4.0 instructions.
11577 * configure: Regenerate.
11578 * config.in: Likewise.
11579 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11580 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11581 TARGET_CPU_niagara7.
11582 (ASM_CPU64_DEFAULT_SPEC): Likewise.
11583 (CPP_CPU_SPEC): Handle niagara7.
11584 (ASM_CPU_SPEC): Likewise.
11585 * config/sparc/sparc-opts.h (processor_type): Add
11586 PROCESSOR_NIAGARA7.
11587 (mvis4): New option.
11588 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11589 (AS_NIAGARA7_FLAG): Define.
11590 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11591 (CPP_CPU64_DEFAULT_SPEC): Likewise.
11592 (CPP_CPU_SPEC): Handle niagara7.
11593 (ASM_CPU_SPEC): Likewise.
11594 * config/sparc/sparc.c (niagara7_costs): Define.
11595 (sparc_option_override): Handle niagara7 and adjust cache-related
11596 parameters with better values for niagara cpus. Also support VIS4.
11597 (sparc32_initialize_trampoline): Likewise.
11598 (sparc_use_sched_lookahead): Likewise.
11599 (sparc_issue_rate): Likewise.
11600 (sparc_register_move_cost): Likewise.
11601 (dump_target_flag_bits): Support VIS4.
11602 (sparc_vis_init_builtins): Likewise.
11603 (sparc_builtins): Likewise.
11604 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
11605 VIS4 4.0.
11606 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
11607 UltraSparc M7.
11608 * config/sparc/sparc.opt (sparc_processor_type): New value
11609 niagara7.
11610 * config/sparc/visintrin.h (__attribute__): Prototypes for the
11611 VIS4 builtins.
11612 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
11613 -mvis4.
11614 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
11615 VIS4 builtins.
11616
11617 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
11618
11619 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
11620
11621 2016-06-06 Richard Biener <rguenther@suse.de>
11622
11623 PR tree-optimization/71398
11624 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
11625 remove edges.
11626
11627 2016-06-05 James Bowman <james.bowman@ftdichip.com>
11628
11629 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
11630 ft32_expand_prolog, ft32_expand_epilogue):
11631 Handle pretend_args.
11632 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
11633 * config/ft32/ft32.md: Add pretend_returner.
11634
11635 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
11636
11637 PR target/71389
11638 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11639 Copy op1 RTX to avoid invalid sharing.
11640 (ix86_expand_vector_move_misalign): Ditto.
11641
11642 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
11643
11644 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
11645 ATTRIBUTE_UNUSED.
11646
11647 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
11648
11649 * predict.c (predicted_by_loop_heuristics_p): New function.
11650 (predict_iv_comparison): Use it.
11651 (predict_loops): Walk from innermost loops; do not predict edges
11652 leaving multiple loops multiple times; implement
11653 PRED_LOOP_ITERATIONS_MAX heuristics.
11654 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
11655
11656 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
11657
11658 * cfg.c (check_bb_profile): Do not report mismatched profiles when
11659 only edges out of BB are EH edges.
11660
11661 2016-06-04 Martin Sebor <msebor@redhat.com>
11662 Marcin Baczyński <marbacz@gmail.com>
11663
11664 PR c/48116
11665 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
11666 a void expression in a void function.
11667
11668 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
11669
11670 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
11671 aux; dump reasons of decisions.
11672 (should_duplicate_loop_header_p): Likewise.
11673 (do_while_loop_p): Likewise.
11674 (ch_base::copy_headers): Dump asi num insns duplicated.
11675
11676 2016-06-04 Jakub Jelinek <jakub@redhat.com>
11677
11678 PR tree-optimization/71405
11679 * tree-ssa.c (execute_update_addresses_taken): For clobber with
11680 incompatible type, build a new clobber with the right type instead
11681 of building a VIEW_CONVERT_EXPR around it.
11682
11683 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
11684
11685 PR tree-optimization/52171
11686 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
11687 by_pieces_ninsns instead of move_by_pieces_ninsns.
11688
11689 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
11690
11691 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
11692 for reg+reg addressing mode.
11693
11694 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11695
11696 * rs6000-c.c (c/c-tree.h): Add #include.
11697 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
11698 in C++ when found in the base position of vec_ld or vec_st.
11699
11700 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
11701
11702 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
11703 use of profile unless profile status is PROFILE_READ.
11704 * profile.c (compute_branch_probabilities): Set profile status
11705 only after reporting predictor hitrates.
11706
11707 2016-06-03 Joseph Myers <joseph@codesourcery.com>
11708
11709 PR target/71276
11710 PR target/71277
11711 * common.opt (ffp-int-builtin-inexact): New option.
11712 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
11713 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
11714 (ceil@var{m}2): Document dependence on this option.
11715 * ipa-inline-transform.c (inline_call): Handle
11716 flag_fp_int_builtin_inexact.
11717 * ipa-inline.c (can_inline_edge_p): Likewise.
11718 * config/i386/i386.md (rintxf2): Do not test
11719 flag_unsafe_math_optimizations.
11720 (rint<mode>2_frndint): New define_insn.
11721 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
11722 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
11723 for 387 instead of extending and truncating.
11724 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
11725 !flag_trapping_math instead of flag_unsafe_math_optimizations.
11726 Change to frndint<mode>2_<rounding>.
11727 (frndintxf2_<rounding>_i387): Likewise. Change to
11728 frndint<mode>2_<rounding>_i387.
11729 (<rounding_insn>xf2): Likewise.
11730 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
11731 !flag_trapping_math instead of flag_unsafe_math_optimizations for
11732 x87. Test TARGET_ROUND || !flag_trapping_math ||
11733 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
11734 SSE. Use ROUND_NO_EXC in constant operand of
11735 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
11736 for 387 instead of extending and truncating.
11737
11738 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
11739 Julia Koval <julia.koval@intel.com>
11740
11741 PR target/66960
11742 PR target/67630
11743 PR target/67634
11744 PR target/67841
11745 PR target/68037
11746 PR target/68618
11747 PR target/68661
11748 PR target/69575
11749 PR target/69596
11750 PR target/69734
11751 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
11752 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
11753 all registers, except for function return registers if there are
11754 no caller-saved registers.
11755 (ix86_set_func_type): New function.
11756 (ix86_set_current_function): Call ix86_set_func_type to set
11757 no_caller_saved_registers and func_type. Call reinit_regs if
11758 caller-saved registers are changed. Don't allow MPX, SSE, MMX
11759 nor x87 instructions in interrupt handler nor function with
11760 no_caller_saved_registers attribute.
11761 (ix86_function_ok_for_sibcall): Return false if there are no
11762 caller-saved registers.
11763 (type_natural_mode): Don't warn ABI change for MMX in interrupt
11764 handler.
11765 (ix86_function_arg_advance): Skip for callee in interrupt handler.
11766 (ix86_function_arg): Return special arguments in interrupt handler.
11767 (ix86_promote_function_mode): Promote pointer to word_mode only
11768 for normal functions.
11769 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
11770 interrupt handler.
11771 (ix86_epilogue_uses): New function.
11772 (ix86_hard_regno_scratch_ok): Likewise.
11773 (ix86_save_reg): Preserve all registers in interrupt handler
11774 after reload. Preserve all registers, except for function return
11775 registers, if there are no caller-saved registers after reload.
11776 (find_drap_reg): Always use callee-saved register if there are
11777 no caller-saved registers.
11778 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
11779 for interrupt handler.
11780 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
11781 Emit cld instruction if stringops are used in interrupt handler
11782 or interrupt handler isn't a leaf function.
11783 (ix86_expand_epilogue): Generate interrupt return for interrupt
11784 handler and pop the 'ERROR_CODE' off the stack before interrupt
11785 return in exception handler.
11786 (ix86_expand_call): Disallow calling interrupt handler directly.
11787 If there are no caller-saved registers, mark all registers that
11788 are clobbered by the call which returns as clobbered.
11789 (ix86_handle_no_caller_saved_registers_attribute): New function.
11790 (ix86_handle_interrupt_attribute): Likewise.
11791 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
11792 attributes.
11793 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
11794 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
11795 accumulation in interrupt function if stack may be realigned to
11796 avoid DRAP.
11797 (EPILOGUE_USES): New.
11798 (function_type): New enum.
11799 (machine_function): Add func_type and no_caller_saved_registers.
11800 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
11801 (interrupt_return): New pattern.
11802 * doc/extend.texi: Document x86 interrupt and
11803 no_caller_saved_registers attributes.
11804
11805 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
11806
11807 PR tree-optimization/52171
11808 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
11809 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
11810 Look for constant strings. Move some code to emit_block_cmp_hints
11811 and use it.
11812 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
11813 * defaults.h (COMPARE_MAX_PIECES): New macro.
11814 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
11815 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
11816 (clear_by_pieces_1): Don't declare. Move definition before use.
11817 (can_do_by_pieces): New static function.
11818 (can_move_by_pieces): Use it. Return bool.
11819 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
11820 OP. All callers changed. Handle COMPARE_BY_PIECES.
11821 (class pieces_addr); New.
11822 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
11823 pieces_addr::adjust, pieces_addr::increment_address,
11824 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
11825 functions for it.
11826 (class op_by_pieces_d): New.
11827 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
11828 functions for it.
11829 (class move_by_pieces_d, class compare_by_pieces_d,
11830 class store_by_pieces_d): New subclasses of op_by_pieces_d.
11831 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
11832 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
11833 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
11834 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
11835 compare_by_pieces_d::finish_mode): New member functions.
11836 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
11837 functions.
11838 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
11839 (emit_block_cmp_hints): New function.
11840 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
11841 use the newly defined classes.
11842 * expr.h (by_pieces_constfn): New typedef.
11843 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
11844 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
11845 (move_by_pieces_ninsns): Don't declare.
11846 (can_move_by_pieces): Change return value to bool.
11847 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
11848 (compare_by_pieces_branch_ratio): New hook.
11849 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
11850 (by_pieces_ninsns): Declare.
11851 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
11852 COMPARE_BY_PIECES.
11853 (default_compare_by_pieces_branch_ratio): New function.
11854 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
11855 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
11856 * doc/tm.texi: Regenerate.
11857 * tree-ssa-strlen.c: Include "builtins.h".
11858 (handle_builtin_memcmp): New static function.
11859 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
11860 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
11861
11862 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11863
11864 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
11865 relevant stmts which are simple and invariant.
11866 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
11867 instead of simple and invariant
11868
11869 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11870
11871 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
11872 (vectorizable_reduction): Check for new relevant state.
11873 (vectorizable_live_operation): vectorize live stmts using
11874 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
11875 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
11876 (vect_stmt_relevant_p): Check for stmts which are only used live.
11877 (process_use): Use of a stmt does not inherit it's live value.
11878 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
11879 (vect_analyze_stmt): Check for new relevant state.
11880 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
11881 outside the loop, but not inside it.
11882
11883 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11884
11885 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
11886 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
11887 (vect_get_vec_def_for_operand): Split out code.
11888
11889 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
11890
11891 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
11892
11893 2016-06-03 Alan Hayward <alan.hayward@arm.com>
11894
11895 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
11896
11897 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11898
11899 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
11900
11901 2016-06-03 Jakub Jelinek <jakub@redhat.com>
11902
11903 PR middle-end/71387
11904 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
11905 to noreturn e->callee->decl that has void return type and void
11906 arguments, adjust gimple_call_fntype and remove lhs even if it had
11907 previously addressable type.
11908
11909 2016-06-02 Jeff Law <law@redhat.com>
11910
11911 PR tree-optimization/71328
11912 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
11913 error when checking for a jump back onto the copied path.
11914
11915 2016-06-02 David Malcolm <dmalcolm@redhat.com>
11916
11917 * config/microblaze/microblaze.c (get_branch_target): Add return
11918 NULL_RTX for the non-CALL_P case.
11919 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11920 (insert_wic): Remove unused local "j".
11921
11922 2016-06-02 Martin Liska <mliska@suse.cz>
11923
11924 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11925
11926 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
11927 Julia Koval <julia.koval@intel.com>
11928
11929 * function.c (assign_parm_setup_stack): Force source into a
11930 register if needed.
11931 * target.def (function_incoming_arg): Update documentation to
11932 allow arbitrary address computation based on hard register.
11933 * doc/tm.texi: Regenerated.
11934
11935 2016-06-02 Martin Liska <mliska@suse.cz>
11936
11937 * predict.c (combine_predictions_for_bb): Fix first match in
11938 cases where a first predictor contains more than one occurence
11939 in list of predictors. Take the best value in such case.
11940
11941 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11942
11943 PR rtl-optimization/71295
11944 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11945 offset would go over the size of the inner mode reject it.
11946
11947 2016-06-02 Jakub Jelinek <jakub@redhat.com>
11948
11949 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11950 x=x,x and v=v,m instead of x=x,m.
11951
11952 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11953 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
11954 alternative to v=rm,C.
11955
11956 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11957 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
11958 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
11959 instead of vex for the last two above mentioned alternatives.
11960
11961 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11962
11963 PR target/70830
11964 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11965
11966 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
11967
11968 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11969
11970 2016-06-01 David Malcolm <dmalcolm@redhat.com>
11971
11972 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11973 from int to unsigned.
11974
11975 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11976
11977 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11978 alternatives, eliminating preferred register class. Add support
11979 for the MTVSRDD instruction in ISA 3.0.
11980 (vsx_splat_v4si_internal): Use splat_input_operand instead of
11981 reg_or_indexed_operand.
11982 (vsx_splat_v4sf_internal): Likewise.
11983
11984 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11985
11986 PR target/71186
11987 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11988 for loading up all 0's or all 1's.
11989
11990 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
11991
11992 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11993
11994 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
11995
11996 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11997 extension.
11998 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11999 * gcc.c (set_source_date_epoch_envvar): New function, sets
12000 the SOURCE_DATE_EPOCH environment variable to the current time.
12001
12002 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12003
12004 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
12005 the factor for live Phi nodes.
12006
12007 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12008
12009 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
12010 * tree-parloops.c (parallelize_loops): likewise.
12011 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
12012 tree_unswitch_outer_loop): likewise.
12013
12014 2016-06-01 Jakub Jelinek <jakub@redhat.com>
12015
12016 PR middle-end/71371
12017 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
12018 around creation of the temporary.
12019
12020 2016-06-01 Richard Biener <rguenther@suse.de>
12021
12022 PR tree-optimization/71366
12023 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12024 (unloop_loops): Move removing edges here ...
12025 (try_unroll_loop_completely): ... from here.
12026 (try_peel_loop): ... and here.
12027 (tree_unroll_loops_completely_1): Track parent loops via
12028 bitmap of header BBs.
12029 (tree_unroll_loops_completely): Adjust for that.
12030
12031 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12032
12033 * config/rs6000/altivec.h (vec_slv): New macro.
12034 (vec_srv): New macro.
12035 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12036 (UNSPEC_VSRV): New value.
12037 (vslv): New insn.
12038 (vsrv): New insn.
12039 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12040 (vsrv): New builtin definition.
12041 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12042 define argument types for new builtin.
12043 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12044 new builtin.
12045 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12046 functions.
12047
12048 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
12049 Jocelyn Mayer <l_indien@magic.fr>
12050
12051 PR target/67310
12052 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12053 detect processor family for signature_CENTAUR_ebx.
12054 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12055 signature_CENTAUR_ebx.
12056 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12057 <default>: Pass x86-64 for has_longmode.
12058
12059 2016-06-01 Nathan Sidwell <nathan@acm.org>
12060
12061 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12062 undefined weak.
12063
12064 2016-06-01 Richard Biener <rguenther@suse.de>
12065
12066 PR tree-optimization/71261
12067 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12068 of stmts successfully put in the bool pattern. Remove
12069 single-use restriction.
12070 (adjust_bool_pattern_cast): Add cast at the use site via the
12071 pattern def sequence.
12072 (adjust_bool_pattern): Remove recursion, maintain a hash-map
12073 of patterned defs. Use the pattern def seqence instead of
12074 multiple independent patterns.
12075 (sort_after_uid): New qsort compare function.
12076 (adjust_bool_stmts): New function to process stmts in the bool
12077 pattern in IL order.
12078 (vect_recog_bool_pattern): Adjust.
12079 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12080 (ifcvt_walk_pattern_tree): Likewise.
12081 (stmt_is_root_of_bool_pattern): Likewise.
12082 (ifcvt_repair_bool_pattern): Likewise.
12083 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12084
12085 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
12086
12087 * loop-unroll.c (decide_unroll_constant_iterations,
12088 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12089 likely upper bounds.
12090 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12091
12092 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
12093
12094 * tree-core.h (enum omp_clause_code): Remove
12095 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
12096
12097 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12098
12099 * config/arm/sync.md (arm_store_exclusive<mode>):
12100 Use 'H' output modifier on operands[2] rather than creating a new
12101 entry in out-of-bounds memory of the operands array.
12102 (arm_store_release_exclusivedi): Likewise.
12103
12104 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12105
12106 * config/arm/arm.c (arm_fusion_enabled_p): New function.
12107 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12108 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12109 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12110
12111 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
12112
12113 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12114 into account live statements for mask producers.
12115
12116 2016-06-01 Richard Biener <rguenther@suse.de>
12117
12118 PR tree-optimization/71311
12119 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12120 restrict to non-INTEGER_CST @0.
12121
12122 2016-06-01 Richard Biener <rguenther@suse.de>
12123
12124 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12125 (relational patterns): Use :c to avoid pattern duplications.
12126
12127 2016-06-01 Richard Biener <rguenther@suse.de>
12128
12129 * genmatch.c (comparison_code_p): New predicate.
12130 (swap_tree_comparison): New function.
12131 (commutate): Add for_vec parameter to append new for entries.
12132 Support commutating relational operators by swapping it alongside
12133 operands.
12134 (lower_commutative): Adjust.
12135 (dt_simplify::gen): Do not pass artificial operators to gen
12136 functions.
12137 (decision_tree::gen): Do not add artificial operators as parameters.
12138 (parser::parse_expr): Verify operator commutativity when :c is
12139 applied. Allow :C to override this.
12140 * match.pd: Adjust patterns to use :C instead of :c where required.
12141
12142 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
12143
12144 PR tree-optimization/71077
12145 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12146 the combining step, use boolean_false_node and boolean_true_node
12147 as the designated false/true return values.
12148
12149 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12150
12151 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12152 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12153 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12154 PRED_LOOP_EXIT.
12155
12156 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12157
12158 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12159 of flags impliying the register renaming.
12160 * toplev.c (process_options): Do not imply flag_rename_registers with
12161 loop peeling.
12162
12163 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12164
12165 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12166 default implementation.
12167
12168 2016-05-31 Nathan Sidwell <nathan@acm.org>
12169
12170 * dwarf2out.c (cur_line_info_table): Add GTY marker.
12171
12172 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12173
12174 * config/sh/constraints.md (b): Remove constraint.
12175 * config/sh/predicates.md (arith_reg_operand): Remove
12176 TARGET_REGISTER_P.
12177 * config/sh/sh-modes.def (PDI): Remove.
12178 * config/sh/sh.c (sh_target_reg_class,
12179 sh_optimize_target_register_callee_saved): Remove functions.
12180 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12181 (sh_expand_epilogue): Update comment.
12182 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12183 sh_secondary_reload): Remove TARGET_REGS related code.
12184 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12185 TARGET_REGISTER_P): Remove macros.
12186 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12187 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12188 TR1_REG, TR2_REG): Remove constants.
12189 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12190
12191 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12192
12193 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12194 define_expand patterns.
12195 (adddi3_compact): Rename to adddi3.
12196 (subdi3_compact): Rename to subdi3.
12197 (*negdi2): Rename to negdi2.
12198 (*abs<mode>2): Rename to abs<mode>2.
12199
12200 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
12201
12202 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12203 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12204 (atomic_sub_fetchsi): ... this new pattern.
12205 (mvtc): Add CC_REG clobber.
12206
12207 2016-05-31 Marek Polacek <polacek@redhat.com>
12208
12209 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12210
12211 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12212
12213 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12214 aarch64_fusion_enabled_p to check for fusion capabilities.
12215
12216 2016-05-31 Richard Biener <rguenther@suse.de>
12217
12218 PR tree-optimization/71352
12219 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12220 minus one and a negate.
12221
12222 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12223
12224 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12225 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12226 Delete prototype.
12227 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12228 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12229 Remove use of aarch64_simd_attr_length_move, set length attribute
12230 directly.
12231 (*aarch64_be_movoi): Likewise.
12232 (*aarch64_be_movci): Likewise.
12233 (*aarch64_be_movxi): Likewise.
12234
12235 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
12236
12237 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12238 It no longer does that.
12239 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12240
12241 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
12242
12243 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12244 attribute __unused__.
12245
12246 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
12247
12248 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12249 * config/arm/arm.c (arm_arch_thumb1): Define.
12250 (arm_option_override): Initialize arm_arch_thumb1.
12251 * config/arm/arm.h (arm_arch_thumb1): Declare.
12252 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12253 support Thumb-1 ISA.
12254
12255 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
12256
12257 PR target/71346
12258 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12259 `Yv' for scalar operand.
12260
12261 2016-05-31 Tom de Vries <tom@codesourcery.com>
12262
12263 PR tree-optimization/69068
12264 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12265 phis with more than two args.
12266
12267 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
12268
12269 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12270 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12271 target.
12272
12273 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
12274
12275 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12276 tune_64.
12277 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12278 support on SPARC.
12279 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12280 cpu_32, cpu_64, tune_32 and tune_64.
12281 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12282
12283 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
12284
12285 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12286
12287 2016-05-30 Andi Kleen <ak@linux.intel.com>
12288
12289 * auto-profile.c (read_profile): Replace asserts with errors
12290 when file does not exist.
12291 * gcov-io.c (gcov_read_words): Dito.
12292
12293 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12294
12295 * tree-cfg.c (print_loop): Print likely upper bounds.
12296
12297 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12298
12299 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12300 * opts.c (default_options): Enable peel loops at -O3.
12301 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12302 (try_peel_loop): Do not re-peel already peeled loops;
12303 use likely upper bounds; fix profile updating.
12304 (pass_complete_unroll::execute): Initialize peeled_loops.
12305
12306 2016-05-30 Martin Liska <mliska@suse.cz>
12307
12308 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12309 computed costs by frequency of BB they belong to.
12310 (get_scaled_computation_cost_at): New function.
12311
12312 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
12313 Marc Glisse <marc.glisse@inria.fr>
12314
12315 PR tree-optimization/71289
12316 * match.pd (-1 / B < A, A > -1 / B): New transformations.
12317
12318 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12319
12320 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12321
12322 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12323
12324 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12325 for peeled copies; avoid underflow when updating estimates; correctly
12326 scale loop profile.
12327
12328 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12329
12330 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12331 r236875. Corrected oe3 to oe2 as obvious.
12332
12333 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12334
12335 PR middle-end/71269
12336 PR middle-end/71252
12337 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12338 that inserted stmt will not dominate stmts that defines its operand.
12339 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12340 (rewrite_expr_tree_parallel): Likewise.
12341
12342 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
12343
12344 PR middle-end/71252
12345 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12346 all fields including stmt_to_insert are swapped.
12347
12348 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12349
12350 * predict.h (force_edge_cold): Declare.
12351 * predict.c (force_edge_cold): New function.
12352 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12353 updating.
12354 (canonicalize_loop_induction_variables): Fix formating.
12355
12356 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
12357
12358 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12359 (visium_expand_copysign): Use gen_int_mode directly.
12360 (visium_compute_frame_size): Minor tweaks.
12361
12362 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
12363
12364 * tree-vect-loop.c (vect_analyze_loop_2): Use
12365 likely_max_stmt_executions_int.
12366
12367 2016-05-30 Tom de Vries <tom@codesourcery.com>
12368
12369 PR tree-optimization/69067
12370 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12371
12372 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
12373
12374 PR target/71245
12375 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12376 New peepholes to remove unneeded fild/fistp pairs.
12377 (define_peephole2 atomic_loaddi_fpu): Ditto.
12378
12379 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12380
12381 * predict.c (maybe_hot_frequency_p): Avoid division.
12382
12383 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
12384
12385 * doc/install.texi: Use https for shop.fsf.org.
12386
12387 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12388
12389 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12390 likely_max_stmt_executions_int.
12391
12392 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12393
12394 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12395 likely_max_stmt_executions_int.
12396
12397 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12398
12399 * profile.c (compute_branch_probabilities): Do not report hitrates
12400 here.
12401 (branch_prob): Report hitrates here.
12402 * predict.c (gimple_predict_edge): Do not assert profile status;
12403 fix formatting issues.
12404
12405 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12406
12407 * predict.c (edge_predicted_by_p): New function.
12408 (predict_paths_for_bb): Do not put multiple predictions of the same type
12409 on one edge.
12410
12411 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12412
12413 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12414 commit.
12415
12416 2016-05-28 Alan Modra <amodra@gmail.com>
12417
12418 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12419
12420 2016-05-28 Alan Modra <amodra@gmail.com>
12421
12422 PR rtl-optimization/71275
12423 * ira.c (ira): Free dominance info.
12424
12425 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
12426
12427 * doc/sourcebuild.texi: New address for upstream Go repository.
12428
12429 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
12430
12431 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12432 (TARGET_ARM_V7M): Likewise.
12433
12434 2016-05-26 Jeff Law <law@redhat.com>
12435
12436 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12437 (thread_across_edge): Remove calls to find_jump_threads_backwards.
12438 * passes.def: Add jump threading passes before DOM/VRP.
12439 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12440 argument to a basic block from an edge. Remove tests which are
12441 handled elsewhere.
12442 (pass_data_thread_jumps, class pass_thread_jumps): New.
12443 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12444 (make_pass_thread_jumps): Likewise.
12445 * tree-pass.h (make_pass_thread_jumps): Declare.
12446
12447 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
12448
12449 * config/visium/visium-protos.h (split_double_move): Rename into...
12450 (visium_split_double_move): ...this.
12451 (visium_split_double_add): Declare.
12452 * config/visium/visium.c (split_double_move): Rename into...
12453 (visium_split_double_move): ...this.
12454 (visium_split_double_add): New function.
12455 (visium_expand_copysign): Renumber operands for consistency.
12456 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12457 (DFmode move splitter): Likewise.
12458 (*addi3_insn): Split by means of visium_split_double_add.
12459 (*adddi3_insn_flags): Delete.
12460 (*plus_plus_sltu<subst_arith>): New insn.
12461 (*subdi3_insn): Split by means of visium_split_double_add.
12462 (subdi3_insn_flags): Delete.
12463 (*minus_minus_sltu<subst_arith>): New insn.
12464 (*negdi2_insn): Split by means of visium_split_double_add.
12465 (*negdi2_insn_flags): Delete.
12466
12467 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
12468
12469 * configure.ac: Treat a --with-headers option without argument
12470 the same as the default (i.e. consult sys-include directory).
12471 * configure: Regenerate.
12472
12473 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12474
12475 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12476 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12477 prototype.
12478 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12479 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
12480
12481 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12482
12483 PR target/63596
12484 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12485 tree-stdarg analysis results.
12486 (aarch64_setup_incoming_varargs): Likewise.
12487
12488 2016-05-27 Jiong Wang <jiong.wang@arm.com>
12489
12490 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12491 va_list_gpr_counter_field and va_list_fpr_counter_field.
12492
12493 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
12494
12495 PR67609
12496 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12497 * config/aarch64/aarch64.c
12498 (aarch64_cannot_change_mode_class): Remove function.
12499 * config/aarch64/aarch64-protos.h
12500 (aarch64_cannot_change_mode_class): Remove.
12501
12502 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
12503
12504 * cfgloop.c (record_niter_bound): Record likely upper bounds.
12505 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12506 get_likely_max_loop_iterations_int): New.
12507 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12508 any_likely_upper_bound.
12509 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12510 Declare.
12511 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12512 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12513 upper bound.
12514 (unroll_loop_constant_iterations): Likewise.
12515 (unroll_loop_runtime_iterations): Likewise.
12516 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12517 * lto-streamer-out.c (output_cfg): Likewise.
12518 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12519 bounds.
12520 (canonicalize_loop_induction_variables): Dump likely upper bounds.
12521 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12522 (likely_max_loop_iterations): New.
12523 (likely_max_loop_iterations_int): New.
12524 (likely_max_stmt_executions): New.
12525 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12526 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12527 likely_max_stmt_executions): Declare.
12528
12529 2016-05-27 Marek Polacek <polacek@redhat.com>
12530
12531 PR middle-end/71308
12532 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12533
12534 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12535
12536 * config/s390/s390.md (2x risbg splitters): Use
12537 reg_overlap_mentioned_p instead of rtx_equal_p.
12538
12539 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12540
12541 * combine.c (make_compound_operation): Take known zero bits into
12542 account when checking for possible zero_extend.
12543
12544 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12545
12546 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12547 Use const_int_operand for operand 2 predicate. Simplify expand code
12548 as a result.
12549
12550 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
12551
12552 PR middle-end/71279
12553 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12554 into comparison.
12555
12556 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12557
12558 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12559 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12560 that returns CC_SESWPmode and CC_ZESWPmode.
12561 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12562 and CC_SESWPmode.
12563 (aarch64_rtx_costs): Likewise.
12564
12565 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12566
12567 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12568 for ISA 3.0 min/max support.
12569 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12570 conditional move support.
12571 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12572 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12573 available.
12574 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12575 conditional moves where the comparison type is different from move
12576 type.
12577 (fp_minmax): New code iterator for smin/smax.
12578 (minmax): New code attributes for min/max.
12579 (SMINMAX): Likewise.
12580 (smax<mode>3): Combine min, max insns into one insn using the
12581 fp_minmax code iterator. Add support for ISA 3.0 min/max
12582 instructions that don't need -ffast-math.
12583 (s<minmax><mode>3): Likewise.
12584 (smax<mode>3_vsx): Likewise.
12585 (smin<mode>3): Likewise.
12586 (s<minmax><mode>3_vsx): Likewise.
12587 (smin<mode>3_vsx): Likewise.
12588 (pre-VSX min/max splitters): Likewise.
12589 (s<minmax><mode>3_fpr): Likewise.
12590 (movsfcc): Rewrite floating point conditional moves to combine
12591 SFmode/DFmode into a single insn.
12592 (mov<mode>cc): Likewise.
12593 (movdfcc): Likewise.
12594 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
12595 SFDF2 iterators to handle all combinations.
12596 (fseldfsf4): Likewise.
12597 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
12598 (fseldfdf4): Likewise.
12599 (fselsfdf4): Likewise.
12600 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
12601 comparison instructions that set a 0/-1 mask, and use it for
12602 floating point conditional move via XXSEL.
12603 (fpmask<mode>): Likewise.
12604 (xxsel<mode>): Likewise.
12605 * config/rs6000/predicates.md (min_max_operator): Delete, no
12606 longer used.
12607 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
12608 instructions that generate a 0/-1 mask for use with XXSEL.
12609 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
12610 say whether floating point min/max is available, either through
12611 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
12612 (TARGET_MINMAX_DF): Likewise.
12613
12614 2016-05-27 Alan Modra <amodra@gmail.com>
12615
12616 PR rtl-optimization/71275
12617 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
12618 for update_equiv_regs and combine_and_move_insns.
12619
12620 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
12621
12622 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
12623 if_then_else or cond RTXes to calculate attribute value.
12624 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
12625 <attr "length_immediate>: Ditto.
12626 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
12627 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
12628 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
12629 <attr "type">: Ditto.
12630 <attr "prefix_data16">: Ditto.
12631 <attr "prefix_extra">: Ditto.
12632 <attr "length_immediate">: Ditto.
12633 <attr "prefix">: Ditto.
12634 (vec_set<mode>_0) <attr "isa">: Ditto.
12635 <attr "prefix_extra">: Ditto.
12636 <attr "length_immediate">: Ditto.
12637 <attr "prefix">: Ditto.
12638 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
12639 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
12640 (sse2_storelpd) <attr "prefix_data16">: Ditto.
12641 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
12642 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
12643 <attr "length_immediate">: Ditto.
12644 <attr "prefix">: Ditto.
12645 (sse2_movsd) <attr "length_immediate">: Ditto.
12646 <attr "prefix">: Ditto.
12647 (vec_concatv2df) <attr "isa">: Ditto.
12648 <attr "prefix">: Ditto.
12649 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
12650 (*vec_extractv2di_1) <attr "isa">: Ditto.
12651 <attr "type">: Ditto.
12652 <attr "length_immediate">: Ditto.
12653 <attr "prefix_rex">: Ditto.
12654 <attr "prefix_extra">: Ditto.
12655 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
12656 <attr "prefix_extra">: Ditto.
12657 <attr "length_immediate">: Ditto.
12658 (vec_concatv2di) <attr "isa">: Ditto.
12659 <attr "prefix_extra">: Ditto.
12660 <attr "length_immediate">: Ditto.
12661 <attr "prefix">: Ditto.
12662
12663 2016-05-26 Martin Liska <mliska@suse.cz>
12664
12665 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
12666 function.
12667 (operator+): Likewise.
12668 (operator-): Likewise.
12669 (comp_cost::operator+=): Likewise.
12670 (comp_cost::operator-=): Likewise.
12671 (comp_cost::operator/=): Likewise.
12672 (comp_cost::operator*=): Likewise.
12673 (operator<): Likewise.
12674 (operator==): Likewise.
12675 (operator<=): Likewise.
12676 (new_cost): Remove.
12677 (infinite_cost_p): Likewise.
12678 (add_costs): Likewise.
12679 (sub_costs): Likewise.
12680 (compare_costs): Likewise.
12681 (set_group_iv_cost): Use the newly introduced functions.
12682 (get_address_cost): Likewise.
12683 (get_shiftadd_cost): Likewise.
12684 (force_expr_to_var_cost): Likewise.
12685 (split_address_cost): Likewise.
12686 (ptr_difference_cost): Likewise.
12687 (difference_cost): Likewise.
12688 (get_computation_cost_at): Likewise.
12689 (determine_group_iv_cost_generic): Likewise.
12690 (determine_group_iv_cost_address): Likewise.
12691 (determine_group_iv_cost_cond): Likewise.
12692 (autoinc_possible_for_pair): Likewise.
12693 (determine_group_iv_costs): Likewise.
12694 (cheaper_cost_pair): Likewise.
12695 (iv_ca_recount_cost): Likewise.
12696 (iv_ca_set_no_cp): Likewise.
12697 (iv_ca_set_cp): Likewise.
12698 (iv_ca_cost): Likewise.
12699 (iv_ca_new): Likewise.
12700 (iv_ca_dump): Likewise.
12701 (iv_ca_narrow): Likewise.
12702 (iv_ca_prune): Likewise.
12703 (iv_ca_replace): Likewise.
12704 (try_add_cand_for): Likewise.
12705 (try_improve_iv_set): Likewise.
12706 (find_optimal_iv_set): Likewise.
12707
12708 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
12709
12710 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
12711 that internal functions will clobber all caller-saved registers.
12712
12713 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
12714
12715 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
12716 Return a better case_values_threshold when optimizing.
12717
12718 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
12719
12720 * config/aarch64/aarch64-simd.md (aarch64_combinez):
12721 Add ? to integer variant.
12722 (aarch64_combinez_be): Likewise.
12723
12724 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12725
12726 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
12727 instead of x constraint.
12728 (vcvtps2ph256<mask_name>): Likewise.
12729
12730 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
12731 alternative. Formatting fix.
12732
12733 * config/i386/sse.md
12734 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
12735 to ...
12736 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
12737 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
12738 maybe_evex prefix instead of vex.
12739 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
12740 EXT_REX_SSE_REG_P (op0) case in the splitter.
12741
12742 2016-05-25 Jeff Law <law@redhat.com>
12743
12744 PR tree-optimization/71272
12745 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
12746 Update comments. Add test for empty path.
12747
12748 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12749
12750 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
12751 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
12752 special case builtin.
12753 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12754 code for ALTIVEC_BUILTIN_VEC_CMPNE.
12755 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12756 for __builtin_vec_cmpne.
12757
12758 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
12759
12760 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
12761 redundant test and bail out if the type of the new operand is not
12762 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
12763
12764 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
12765
12766 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
12767 (x_ix86_target_flags_explicit): Remove.
12768 * config/i386/i386.c (ix86_function_specific_save): Do not copy
12769 x_ix86_target_flags_explicit.
12770 (ix86_function_specific_restore): Ditto.
12771
12772 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
12773 H.J. Lu <hongjiu.lu@intel.com>
12774
12775 PR target/70738
12776 * common/config/i386/i386-common.c
12777 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
12778 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
12779 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
12780 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
12781 (-mgeneral-regs-only): Add new option.
12782 * config/i386/i386.c (ix86_option_override_internal): Don't enable
12783 x87 instructions if only general registers are allowed.
12784 (ix86_target_string): Add ix86_flags argument. Handle additional
12785 flags options through ix86_flags argument. Update all callers.
12786 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
12787
12788 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12789
12790 PR rtl-optimization/66940
12791 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
12792 decrementing desired_val will not overflow before performing these
12793 operations.
12794
12795 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
12796
12797 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
12798 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
12799 * config/i386/i386.c (enum ix86_builtins): Add
12800 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
12801 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
12802 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
12803 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
12804 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
12805 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
12806 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
12807 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
12808 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
12809 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
12810 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
12811 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
12812 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
12813 __builtin_ia32_cvtps2dq512_mask.
12814 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
12815 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
12816 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
12817 * config/i386/sse.md
12818 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
12819 Rename to ...
12820 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
12821 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
12822 to ...
12823 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
12824 (avx512f_vec_pack_sfix_v8df): New define_expand.
12825 (avx512f_roundpd512): Rename to ...
12826 (avx512f_round<castmode>512): ... this. Change iterator.
12827 (avx512f_roundps512_sfix): New define_expand.
12828 (round<mode>2_sfix): Change iterator.
12829
12830 2016-05-25 Nick Clifton <nickc@redhat.com>
12831
12832 * config/msp430/msp430.c (msp430_attr): Produce an error if a
12833 static interrupt handler is detected.
12834 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
12835 default linker script.
12836 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
12837 the low part of a symbolic pointer.
12838
12839 2016-05-25 Richard Biener <rguenther@suse.de>
12840
12841 PR tree-optimization/71261
12842 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
12843 interesting stmt instead of immediate uses when looking
12844 for the use operand to replace.
12845
12846 2016-05-25 Martin Liska <mliska@suse.cz>
12847
12848 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
12849
12850 2016-05-25 Richard Biener <rguenther@suse.de>
12851
12852 PR tree-optimization/71264
12853 * tree-vect-stmts.c (vect_init_vector): Properly deal with
12854 vector type val.
12855
12856 2016-05-25 Martin Liska <mliska@suse.cz>
12857
12858 PR tree-optimization/71239
12859 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
12860 if DECL_SIZE is NULL.
12861
12862 2016-05-25 Richard Biener <rguenther@suse.de>
12863
12864 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
12865 * tree-if-conv.c (pass_data_if_conversion): Use it.
12866
12867 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12868
12869 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
12870 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
12871 * varpool.c (varpool_node::get_availability): Likewise.
12872
12873 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12874
12875 * config/rs6000/altivec.md (VNEG iterator): New iterator for
12876 VNEGW/VNEGD instructions.
12877 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
12878 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
12879 support for ISA 3.0 VNEGW/VNEGD instructions.
12880
12881 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12882
12883 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
12884 pointers inside OACC_DATA regions.
12885 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
12886 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
12887 (gimplify_adjust_omp_clauses): Fix typo in comment.
12888
12889 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12890
12891 * config/rs6000/altivec.md (VParity): New mode iterator for vector
12892 parity built-in functions.
12893 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
12894 zeros.
12895 (p9v_parity<mode>2): Likewise.
12896 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
12897 parity.
12898 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
12899 (parity<mode>2): ISA 3.0 expander for vector parity.
12900 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
12901 power9 built-ins.
12902 (BU_P9_64BIT_MISC_0): Likewise.
12903 (BU_P9_MISC_0): Likewise.
12904 (BU_P9V_AV_1): Likewise.
12905 (BU_P9V_AV_2): Likewise.
12906 (BU_P9V_AV_3): Likewise.
12907 (BU_P9V_AV_P): Likewise.
12908 (BU_P9V_VSX_1): Likewise.
12909 (BU_P9V_OVERLOAD_1): Likewise.
12910 (BU_P9V_OVERLOAD_2): Likewise.
12911 (BU_P9V_OVERLOAD_3): Likewise.
12912 (VCTZB): Add vector count trailing zeros support.
12913 (VCTZH): Likewise.
12914 (VCTZW): Likewise.
12915 (VCTZD): Likewise.
12916 (VPRTYBD): Add vector parity support.
12917 (VPRTYBQ): Likewise.
12918 (VPRTYBW): Likewise.
12919 (VCTZ): Add overloaded vector count trailing zeros support.
12920 (VPRTYB): Add overloaded vector parity support.
12921 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12922 overloaded vector count trailing zeros and parity instructions.
12923 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12924 vector parity support.
12925 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12926 trailing zeros support.
12927 (vec_cntlz): Likewise.
12928 (vec_vctzb): Likewise.
12929 (vec_vctzd): Likewise.
12930 (vec_vctzh): Likewise.
12931 (vec_vctzw): Likewise.
12932 (vec_vprtyb): Add ISA 3.0 vector parity support.
12933 (vec_vprtybd): Likewise.
12934 (vec_vprtybw): Likewise.
12935 (vec_vprtybq): Likewise.
12936 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12937 the ISA 3.0 vector count trailing zeros and vector parity built-in
12938 functions.
12939
12940 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
12941
12942 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12943 when there is stmt_to_insert.
12944
12945 2016-05-24 Martin Sebor <msebor@redhat.com>
12946
12947 PR c++/71147
12948 * tree.h (complete_or_array_type_p): New inline function.
12949
12950 2016-05-24 Jakub Jelinek <jakub@redhat.com>
12951
12952 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12953 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12954 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12955
12956 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12957 Limit 1st alternative to noavx isa, split 2nd alternative into one
12958 noavx and one avx alternative, use *x and Bm in the former and
12959 x and m in the latter.
12960
12961 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12962 of sse4 for the first alternative, drop %v from the template
12963 and d operand modifier. Split second alternative into one sse4_noavx
12964 and one avx alternative, use *x instead of *v in the former and v
12965 instead of *v in the latter.
12966 (*sse4_1_extractps): Use noavx isa instead of * for the first
12967 alternative, drop %v from the template. Split second alternative into
12968 one noavx and one avx alternative, use *x instead of *v in the
12969 former and v instead of *v in the latter.
12970 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12971 with noavx and the last one with avx.
12972 (sse4_1_phminposuw): Guard first alternative with noavx isa,
12973 split the second one into one noavx and one avx alternative,
12974 use *x and Bm in the former and x and m in the latter one.
12975 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12976 alternatives.
12977
12978 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12979 first two alternatives to noavx, use *x instead of *v in the second
12980 one, add avx alternative without *.
12981 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12982 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12983 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12984
12985 2016-05-24 Jeff Law <law@redhat.com>
12986
12987 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12988 New function, extracted from...
12989 (fsm_find_control_statement_thread_paths): Here. Use the new function.
12990 Allow simple copies and constant initializations in the SSA chain.
12991
12992 2016-05-24 Marek Polacek <polacek@redhat.com>
12993
12994 PR c/71249
12995 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12996 scope.
12997
12998 2016-05-24 Jakub Jelinek <jakub@redhat.com>
12999
13000 PR c++/71257
13001 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
13002 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
13003 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
13004 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
13005 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
13006
13007 2016-05-24 Richard Biener <rguenther@suse.de>
13008
13009 PR tree-optimization/71240
13010 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
13011 has integral type.
13012
13013 2016-05-24 Richard Biener <rguenther@suse.de>
13014
13015 PR tree-optimization/71230
13016 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
13017
13018 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13019
13020 * tree-vectorizer.h (vectorizable_comparison): Delete.
13021 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13022 PURE_SLP_STMT check.
13023 * tree-vect-stmts.c (vectorizable_call): Likewise.
13024 (vectorizable_simd_clone_call): Likewise.
13025 (vectorizable_conversion): Likewise.
13026 (vectorizable_assignment): Likewise.
13027 (vectorizable_shift): Likewise.
13028 (vectorizable_operation): Likewise.
13029 (vectorizable_load): Likewise.
13030 (vectorizable_condition): Likewise.
13031 (vectorizable_store): Likewise. Assert that we don't have
13032 hybrid SLP.
13033 (vectorizable_comparison): Make static. Remove redundant
13034 PURE_SLP_STMT check.
13035 (vect_transform_stmt): Assert that we always have an slp_node
13036 if PURE_SLP_STMT.
13037
13038 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13039
13040 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
13041 operands[2] against 1 with comparison against CONST1_RTX.
13042 (<shift>di3_neon): Likewise.
13043 * config/arm/predicates.md (const0_operand): Replace with comparison
13044 against CONST0_RTX.
13045
13046 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13047
13048 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13049 operands[2] against 1 with comparison against CONST1_RTX.
13050 (ashrdi3): Likewise.
13051 (lshrdi3): Likewise.
13052 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13053 UINTVAL.
13054 (ashrsi3): Likewise.
13055 (lshrsi3): Likewise.
13056 (rotrsi3): Likewise.
13057 (define_split above *compareqi_eq0): Likewise.
13058 (define_split above "prologue"): Likewise.
13059 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13060 * config/arm/predicates.md (shift_operator): Likewise.
13061 (shift_nomul_operator): Likewise.
13062 (sat_shift_operator): Likewise.
13063 (thumb1_cmp_operand): Likewise.
13064 (const_neon_scalar_shift_amount_operand): Replace manual range
13065 check with IN_RANGE.
13066 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13067 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13068
13069 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13070
13071 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13072 with HOST_WIDE_INT_1.
13073 (insv): Likewise.
13074 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13075 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13076 (arm_canonicalize_comparison): Likewise.
13077 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13078 HOST_WIDE_INT_1.
13079 (thumb1_size_rtx_costs): Likewise.
13080 (vfp_const_double_index): Replace cast of 1 to unsigned
13081 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13082 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13083 HOST_WIDE_INT_1.
13084 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13085 HOST_WIDE_INT with HOST_WIDE_INT_1U.
13086 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13087 HOST_WIDE_INT with HOST_WIDE_INT_1.
13088
13089 2016-05-24 Marek Polacek <polacek@redhat.com>
13090
13091 * tree-cfg.h (should_remove_lhs_p): New predicate.
13092 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13093 * gimplify.c (gimplify_modify_expr): Likewise.
13094 * tree-cfg.c (verify_gimple_call): Likewise.
13095 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13096 * gimple-fold.c: Include "tree-cfg.h".
13097 (gimple_fold_call): Use should_remove_lhs_p.
13098
13099 2016-05-24 Richard Biener <rguenther@suse.de>
13100
13101 PR tree-optimization/71253
13102 * cfganal.h (control_dependences): Make robust against edge
13103 and BB removal.
13104 (control_dependences::control_dependences): Remove edge_list argument.
13105 (control_dependences::get_edge): Remove.
13106 (control_dependences::get_edge_src): Add.
13107 (control_dependences::get_edge_dest): Likewise.
13108 (control_dependences::m_el): Make a vector of edge src/dest index.
13109 * cfganal.c (control_dependences::find_control_dependence): Adjust.
13110 (control_dependences::control_dependences): Likewise.
13111 (control_dependences::~control_dependence): Likewise.
13112 (control_dependences::get_edge): Remove.
13113 (control_dependences::get_edge_src): Add.
13114 (control_dependences::get_edge_dest): Likewise.
13115 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13116 get_edge_src.
13117 (perform_tree_ssa_dce): Adjust.
13118 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13119 get_edge_src.
13120 (pass_loop_distribution::execute): Adjust. Do loop destroying
13121 conditional on changed.
13122
13123 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13124
13125 PR target/69857
13126 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13127 return. Reindent transformation comment and mention the ARM state
13128 behavior.
13129
13130 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13131
13132 PR middle-end/71252
13133 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13134 after build_and_add_sum creates new use stmt.
13135
13136 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13137
13138 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13139 load_lanes/grouped_load classification comes first. Don't check
13140 whether the vectorization factor is a multiple of the group size
13141 for load_lanes.
13142
13143 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
13144
13145 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13146 GROUP_GAP for single-element interleaving.
13147 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13148 variable.
13149
13150 2016-05-24 Richard Biener <rguenther@suse.de>
13151
13152 PR middle-end/70434
13153 PR c/69504
13154 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13155 bases which are accessed with non-invariant indices.
13156 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13157 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13158
13159 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13160
13161 PR middle-end/71170
13162 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13163 (add_to_ops_vec): Add stmt_to_insert.
13164 (add_repeat_to_ops_vec): Init stmt_to_insert.
13165 (insert_stmt_before_use): New.
13166 (transform_add_to_multiply): Remove mult_stmt insertion and add it
13167 to ops vector.
13168 (get_ops): Init stmt_to_insert.
13169 (maybe_optimize_range_tests): Likewise.
13170 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13171 (rewrite_expr_tree_parallel): Likewise.
13172 (reassociate_bb): Likewise.
13173
13174 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13175
13176 PR target/71201
13177 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13178 ISA 3.0 xxperm fusion alternative.
13179 (altivec_vperm_v8hiv16qi): Likewise.
13180 (altivec_vperm_<mode>_uns_internal): Likewise.
13181 (vperm_v8hiv4si): Likewise.
13182 (vperm_v16qiv8hi): Likewise.
13183
13184 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13185 Kelvin Nilsen <kelvin@gcc.gnu.org>
13186
13187 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13188 vpermr/xxpermr on ISA 3.0.
13189 (altivec_expand_vec_perm_le): Likewise.
13190 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13191 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13192 ISA 3.0.
13193
13194 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
13195
13196 * config/i386/i386.h (IS_STACK_MODE): Enable for
13197 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
13198 SSE_FLOAT_MODE_P macros.
13199 * config/i386/i386.c (ix86_preferred_reload_class): Use
13200 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13201 Cleanup regclass processing for CONST_DOUBLE_P.
13202 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13203 (ix86_rtx_costs): Remove redundant TARGET_80387 check
13204 with IS_STACK_MODE macro.
13205 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13206 with TARGET_SSE2.
13207 (*movdf_internal): Use IS_STACK_MODE macro.
13208 (*movsf_internal): Ditto.
13209
13210 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
13211
13212 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13213 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13214
13215 2016-05-23 Jeff Law <law@redhat.com>
13216
13217 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13218 extracted from ...
13219 (fsm_find_control_statement_thread_paths): Call it.
13220
13221 2016-05-23 Martin Jambor <mjambor@suse.cz>
13222
13223 PR ipa/71234
13224 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13225 from_global_constant if t is not NULL.
13226
13227 2016-05-23 Marek Polacek <polacek@redhat.com>
13228
13229 PR c/49859
13230 * common.opt (Wswitch-unreachable): New option.
13231 * doc/invoke.texi: Document -Wswitch-unreachable.
13232 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13233 warning.
13234
13235 2016-05-23 Bin Cheng <bin.cheng@arm.com>
13236
13237 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13238 TMR_INDEX is non-NULL.
13239
13240 2016-05-23 Richard Biener <rguenther@suse.de>
13241
13242 PR tree-optimization/71230
13243 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13244 (try_special_add_to_ops): ... here. Always test for single-use.
13245
13246 2016-05-23 Martin Jambor <mjambor@suse.cz>
13247
13248 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13249 default block if a PHI node in the original one would be resized.
13250
13251 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13252
13253 PR tree-optimization/58135
13254 * tree-vect-slp.c: When group size is not multiple
13255 of vector size, allow splitting of store group at
13256 vector boundary.
13257
13258 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
13259
13260 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13261
13262 2016-05-22 Jakub Jelinek <jakub@redhat.com>
13263
13264 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13265 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13266 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
13267 of 64x2.
13268
13269 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13270 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13271 v constraint instead of x and vinserti32x4 insn.
13272
13273 * config/i386/sse.md (i128vldq): New mode iterator.
13274 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13275 avx512dq and avx512vl alternatives.
13276
13277 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13278 constraint, use maybe_evex prefix instead of vex.
13279 (vec_dupv4sf): Use v constraint instead of x for output
13280 operand except for noavx alternative, use Yv constraint
13281 instead of x for input. Use maybe_evex prefix instead of vex.
13282 (*vec_dupv4si): Likewise.
13283 (*vec_dupv2di): Likewise.
13284
13285 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13286
13287 PR middle-end/40921
13288 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13289 (linearize_expr_tree): Call try_special_add_to_ops.
13290 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13291
13292 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13293
13294 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13295 to computed stack_usage.
13296
13297 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13298
13299 PR target/71103
13300 * config/avr/avr.md (define_expand "mov<mode>"): If the source
13301 operand is subreg (symbol_ref) then move the symbol ref to register.
13302
13303 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
13304
13305 * tree.c (array_at_struct_end_p): Look through MEM_REF.
13306
13307 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
13308
13309 PR middle-end/71179
13310 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13311 VECTOR type.
13312
13313 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13314
13315 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13316 ranges by calling get_single_symbol and tidy up. Look more closely
13317 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13318
13319 2016-05-20 Jeff Law <law@redhat.com>
13320
13321 * bitmap.c (bitmap_find_bit): Remove useless test.
13322
13323 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
13324
13325 * function.c (thread_prologue_and_epilogue_insns): Commit the
13326 insertion of the epilogue.
13327
13328 2016-05-20 Martin Jambor <mjambor@suse.cz>
13329
13330 PR tree-optimization/70884
13331 * tree-sra.c (initialize_constant_pool_replacements): Do not check
13332 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13333 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13334 of constant pool data as a reason for scalarization.
13335
13336 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
13337
13338 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13339 for naked functions.
13340 (thumb1_expand_prologue): Likewise.
13341
13342 2016-05-20 Nathan Sidwell <nathan@acm.org>
13343
13344 * config/nvptx/nptx.c (nvptx_option_override): Only set
13345 flag_toplevel_reorder, if not explicitly specified. Set
13346 flag_no_common, unless explicitly specified.
13347
13348 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13349
13350 * calls.c (can_implement_as_sibling_call_p): Mark param
13351 reg_parm_stack_space with ATTRIBUTE_UNUSED.
13352
13353 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
13354
13355 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13356 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13357 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13358 constants.
13359 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13360 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13361 and CASE_CONST_ANY.
13362
13363 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
13364
13365 * config/nvptx/nvptx.md (sincossf3): New pattern.
13366
13367 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13368
13369 * calls.c (maybe_complain_about_tail_call): New function.
13370 (initialize_argument_information): Call
13371 maybe_complain_about_tail_call when clearing *may_tailcall.
13372 (can_implement_as_sibling_call_p): Call
13373 maybe_complain_about_tail_call when returning false.
13374 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13375 ensure try_tail_call is set. Call maybe_complain_about_tail_call
13376 if tail-call optimization fails.
13377 * cfgexpand.c (expand_call_stmt): Initialize
13378 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13379 * gimple-pretty-print.c (dump_gimple_call): Dump
13380 gimple_call_must_tail_p.
13381 * gimple.c (gimple_build_call_from_tree): Call
13382 gimple_call_set_must_tail with the value of
13383 CALL_EXPR_MUST_TAIL_CALL.
13384 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13385 (gimple_call_set_must_tail): New function.
13386 (gimple_call_must_tail_p): New function.
13387 * print-tree.c (print_node): Update printing of TREE_STATIC
13388 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13389 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13390 trailing comment listing applicable flags.
13391 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13392
13393 2016-05-20 David Malcolm <dmalcolm@redhat.com>
13394
13395 * calls.c (expand_call): Move "Rest of purposes for tail call
13396 optimizations to fail" to...
13397 (can_implement_as_sibling_call_p): ...this new function, and
13398 split into multiple "if" statements.
13399
13400 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13401
13402 * cfgloop.h (expected_loop_iterations_unbounded,
13403 expected_loop_iterations): Unconstify.
13404 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13405 profile with known upper bound; return 3 when profile is absent.
13406 (expected_loop_iterations): Update.
13407
13408 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13409
13410 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13411 and get_max_loop_iterations_int.
13412
13413 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
13414
13415 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13416 realistic upper bounds here.
13417
13418 2016-05-20 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR c++/71210
13421 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13422 calls if the LHS is variable length or has addressable type.
13423 If targets[0]->decl is a noreturn call with void return type and
13424 zero arguments, adjust fntype and remove lhs in that case.
13425
13426 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
13427
13428 PR tree-optimization/71079
13429 PR tree-optimization/71206
13430 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13431
13432 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13433
13434 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13435 (get_vec_alignment_for_array_decl): Likewise.
13436 (get_vec_alignment_for_record_decl): Likewise.
13437 (increase_alignment::execute): Move code to find alignment to
13438 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13439 (type_align_map): New hash_map.
13440
13441 2016-05-20 Richard Guenther <rguenther@suse.de>
13442
13443 PR tree-optimization/29756
13444 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13445 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13446 * fold-const.c (operand_equal_p): Likewise.
13447 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13448 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13449 * tree-inline.c (estimate_operator_cost): Likewise.
13450 * tree-pretty-print.c (dump_generic_node): Likewise.
13451 * tree-ssa-operands.c (get_expr_operands): Likewise.
13452 * cfgexpand.c (expand_debug_expr): Likewise.
13453 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13454 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13455 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13456 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13457 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13458 (execute_update_addresses_taken): Do it.
13459
13460 2016-05-20 Richard Biener <rguenther@suse.de>
13461
13462 PR tree-optimization/71185
13463 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13464 register operations.
13465
13466 2016-05-20 Richard Biener <rguenther@suse.de>
13467
13468 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13469 gimple_seq_add_seq_without_update.
13470 (release_bb_predicate): Assert we have no operands to free.
13471 (if_convertible_loop_p_1): Calculate post dominators later.
13472 Do not free BB predicates here.
13473 (combine_blocks): Do not recompute BB predicates.
13474 (version_loop_for_if_conversion): Save BB predicates around
13475 loop versioning.
13476
13477 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13478
13479 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13480 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
13481 code. Ignore sibcalls on EDGE_IGNORE edges.
13482 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
13483 on edges for sibcalls that run without prologue. The rest of the
13484 function is combined from...
13485 (fix_fake_fallthrough_edge): ... this, and ...
13486 (try_shrink_wrapping): ... a part of this. Remove the bb_with
13487 function argument, make it a local variable.
13488
13489 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
13490
13491 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13492 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13493 for 32-bit mode and SEH for 64-bit.
13494 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13495 TARGET_64BIT_DEFAULT.
13496
13497 2016-05-19 Ryan Burn <contact@rnburn.com>
13498
13499 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13500 * gengtype.c (open_base_files): Add cilk.h to ifiles.
13501
13502 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
13503
13504 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13505 force pending loads from memory.
13506
13507 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
13508
13509 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13510 (UNSPEC_DARN_32): New unspec constant.
13511 (UNSPEC_DARN_RAW): New unspec constant.
13512 (darn_32): New instruction.
13513 (darn_raw): New instruction.
13514 (darn): New instruction.
13515 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13516 support and documentation for this macro.
13517 (BU_P9_MISC_1): New macro definition.
13518 (BU_P9_64BIT_MISC_0): New macro definition.
13519 (BU_P9_MISC_0): New macro definition.
13520 (darn_32): New builtin definition.
13521 (darn_raw): New builtin definition.
13522 (darn): New builtin definition.
13523 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13524 RS6000_BUILTIN_0 directives to surround each occurrence of
13525 #include "rs6000-builtin.def".
13526 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13527 RS6000_BTM_64BIT flags to the returned mask, depending on
13528 configuration.
13529 (def_builtin): Correct an error in the assignments made to the
13530 debugging variable attr_string.
13531 (rs6000_expand_builtin): Add support for no-operand built-in
13532 functions.
13533 (builtin_function_type): Remove fatal_error assertion that is no
13534 longer valid.
13535 (rs6000_common_init_builtins): Add support for no-operand built-in
13536 functions.
13537 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13538 definition.
13539 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13540 definition.
13541 (RS6000_BTM_64BIT): New macro definition.
13542 * doc/extend.texi: Document __builtin_darn (void),
13543 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13544 functions.
13545
13546 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
13547
13548 * tree-vect-loop.c (vect_analyze_loop_2): Use also
13549 max_loop_iterations_int.
13550
13551 2016-05-19 Marek Polacek <polacek@redhat.com>
13552
13553 PR tree-optimization/71031
13554 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13555 condition and adjust the code a bit.
13556
13557 2016-05-19 Martin Liska <mliska@suse.cz>
13558
13559 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13560 auto_vec instead of vec.
13561
13562 2016-05-19 Martin Liska <mliska@suse.cz>
13563
13564 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13565
13566 2016-05-19 Martin Liska <mliska@suse.cz>
13567
13568 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13569
13570 2016-05-19 Martin Liska <mliska@suse.cz>
13571
13572 * ipa-pure-const.c (set_function_state): Remove an existing
13573 funct_state.
13574 (remove_node_data): Do not free it as it's released
13575 in set_function_state.
13576
13577 2016-05-19 Martin Liska <mliska@suse.cz>
13578
13579 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13580 bitmap.
13581
13582 2016-05-19 Martin Liska <mliska@suse.cz>
13583
13584 * omp-simd-clone.c (simd_clone_adjust): Release vector.
13585
13586 2016-05-19 Martin Liska <mliska@suse.cz>
13587
13588 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13589 an auto_vec instead of re-creating it.
13590
13591 2016-05-19 Martin Liska <mliska@suse.cz>
13592
13593 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
13594 auto_vec instead of vec.
13595
13596 2016-05-19 Martin Liska <mliska@suse.cz>
13597
13598 * lto-section-in.c (lto_get_section_data): Call
13599 lto_check_version with additional argument.
13600 * lto-streamer.c (lto_check_version): Add new argument.
13601 * lto-streamer.h (lto_check_version): Likewise.
13602
13603 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13604
13605 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
13606 Don't add cost of inner memory when handling sign-extended loads.
13607
13608 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
13609
13610 PR rtl-optimization/71148
13611 * cse.c (cse_main): Free dominance info.
13612 (rest_of_handle_cse): Don't free dominance info.
13613 (rest_of_handle_cse2): Likewise.
13614 (rest_of_handle_cse_after_global_opts): Likewise.
13615
13616 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13617
13618 PR target/71056
13619 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
13620 NULL_TREE early if NEON is not available. Remove now redundant check
13621 in ARM_CHECK_BUILTIN_MODE.
13622
13623 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
13624
13625 PR sanitizer/64354
13626 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
13627 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
13628 * doc/cpp.texi: Document new macros.
13629
13630 2016-05-19 Bin Cheng <bin.cheng@arm.com>
13631
13632 PR tree-optimization/69848
13633 * tree-vect-loop.c (vectorizable_reduction): Don't factor
13634 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
13635
13636 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
13637
13638 * function.c (thread_prologue_and_epilogue_insn): Move the
13639 "goto epilogue_done" one block later.
13640
13641 2016-05-19 Richard Biener <rguenther@suse.de>
13642
13643 PR tree-optimization/70729
13644 * passes.def: Move LIM pass before PRE. Remove no longer
13645 required copyprop and move first DCE out of the loop pipeline.
13646
13647 2016-05-18 David Malcolm <dmalcolm@redhat.com>
13648
13649 PR driver/69265
13650 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
13651 (OBJS-libcommon-target): ...here.
13652 * opts-common.c: Include spellcheck.h.
13653 (cmdline_handle_error): Build a vec of valid options and use it
13654 to suggest provide hints for misspelled arguments.
13655
13656 2016-05-18 Jakub Jelinek <jakub@redhat.com>
13657
13658 PR c++/71100
13659 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
13660 lhs if it has TREE_ADDRESSABLE type.
13661
13662 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
13663
13664 PR target/71145
13665 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
13666 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
13667
13668 2016-05-18 Martin Jambor <mjambor@suse.cz>
13669
13670 PR ipa/69708
13671 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
13672 input for NOP_EXPR pass-through functions.
13673 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
13674 aggregate global constant VAR_DECLs in constant jump functions.
13675
13676 2016-05-18 Martin Jambor <mjambor@suse.cz>
13677
13678 PR ipa/69708
13679 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
13680 from TREE_READONLY parameters.
13681
13682 2016-05-18 Martin Jambor <mjambor@suse.cz>
13683
13684 PR ipa/69708
13685 * cgraph.h (cgraph_indirect_call_info): New field
13686 guaranteed_unmodified.
13687 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
13688 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13689 appropriate.
13690 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
13691 pass the parameter value to ipa_find_agg_cst_for_param.
13692 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
13693 guaranteed_unmodified, store AA results there instead of bailing out
13694 if present.
13695 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
13696 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
13697 (find_constructor_constant_at_offset): New function.
13698 (ipa_find_agg_cst_from_init): Likewise.
13699 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
13700 static initializers of contants, report back through a new paameter
13701 from_global_constant if that was the case.
13702 (try_make_edge_direct_simple_call): Also pass parameter value to
13703 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13704 appropriate.
13705 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
13706 (ipa_read_indirect_edge_info): Likewise.
13707 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
13708 (ipa_load_from_parm_agg): Likewise.
13709
13710 2016-05-18 Jiong Wang <jiong.wang@arm.com>
13711
13712 PR rtl-optimization/71150
13713 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
13714 check.
13715
13716 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13717
13718 PR target/70915
13719 * config/rs6000/constraints.md (wE constraint): New constraint
13720 for a vector constant that can be loaded with XXSPLTIB.
13721 (wM constraint): New constraint for a vector constant of a 1's.
13722 (wS constraint): New constraint for a vector constant that can be
13723 loaded with XXSPLTIB and a vector sign extend instruction.
13724 * config/rs6000/predicates.md (xxspltib_constant_split): New
13725 predicates for wE/wS constraints.
13726 (xxspltib_constant_nosplit): Likewise.
13727 (easy_vector_constant): Add support for constants that can be
13728 loaded via XXSPLTIB.
13729 (all_ones_constant): New predicate for vector constant with all
13730 1's set.
13731 (splat_input_operand): Add support for ISA 3.0 word splat operations.
13732 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
13733 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
13734 instruction and possibly with a sign extension.
13735 (output_vec_const_move): Add support for XXSPLTIB. If we are
13736 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
13737 instead of XXLXOR/XXLORC.
13738 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
13739 operations.
13740 (rs6000_legitimize_reload_address): Likewise.
13741 (rs6000_output_move_128bit): Use output_vec_const_move to emit
13742 constants.
13743 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
13744 combine VSX_M and VSX_M2 into one iterator.
13745 (VSX_M2): Likewise.
13746 (VSINT_84): New iterators for loading constants with XXSPLTIB.
13747 (VSINT_842): Likewise.
13748 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
13749 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
13750 XXSPLTIB instruction.
13751 (xxspltib_<mode>_nosplit): Likewise.
13752 (xxspltib_<mode>_split): New insn to load up constants with
13753 XXSPLTIB and a sign extend instruction.
13754 (vsx_mov<mode>): Replace single move that handled all vector types
13755 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
13756 moves (when -mvsx-timode is in effect) into the main vector
13757 moves. Eliminate separate moves for <VSr> <VSa>, where the
13758 preferred register class (<VSr>) is listed first, and the
13759 secondary register class (<VSa>) is listed second with a '?' to
13760 discourage use. Prefer loading 0/-1 in any VSX register for ISA
13761 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
13762 that if the register was involved in a slow operation, the
13763 clear/set operation does not wait for the slow operation to
13764 finish. Adjust the length attributes for 32-bit mode. Use
13765 rs6000_output_move_128bit and drop the use of the string
13766 instructions for 32-bit movti when -mvsx-timode is in effect. Use
13767 spacing so that the alternatives and attributes don't generate
13768 long lines, and put things in columns, so that it is easier to
13769 match up the operands and attributes with the insn alternatives.
13770 (vsx_mov<mode>_64bit): Likewise.
13771 (vsx_mov<mode>_32bit): Likewise.
13772 (vsx_movti_64bit): Fold movti into normal vector moves.
13773 (vsx_movti_32bit): Likewise.
13774 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
13775 splat instructions.
13776 (vsx_splat_v4si_internal): Likewise.
13777 (vsx_splat_v4sf_internal): Likewise.
13778 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
13779 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
13780 extend vector elements.
13781 (vsx_sign_extend_hi_<mode>): Likewise.
13782 (vsx_sign_extend_si_v2di): Likewise.
13783 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
13784 declaration.
13785 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
13786 constraints. Add trailing period to wL documentation.
13787
13788 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
13789
13790 PR middle-end/71020
13791 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
13792 * tree-dfa.c (replace_abnormal_ssa_names): New function.
13793 * tree-call-cdce.c: Include tree-dfa.h.
13794 (can_guard_call_p): New function, extracted from...
13795 (can_use_internal_fn): ...here.
13796 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
13797 and return void.
13798 (shrink_wrap_one_built_in_call): Likewise.
13799 (use_internal_fn): Likewise.
13800 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
13801 and return void. Call replace_abnormal_ssa_names.
13802 (pass_call_cdce::execute): Check can_guard_call_p during the
13803 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
13804 will always change something.
13805
13806 2016-05-18 Martin Jambor <mjambor@suse.cz>
13807
13808 PR ipa/70646
13809 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
13810 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
13811
13812 2016-05-18 Martin Jambor <mjambor@suse.cz>
13813
13814 PR ipa/70646
13815 * ipa-inline.h (condition): New field size.
13816 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
13817 for comaprison and store it into the new condition.
13818 (evaluate_conditions_for_known_args): Use condition size to check
13819 access sizes for all but CHANGED conditions.
13820 (unmodified_parm_1): New parameter size_p, store access size into it.
13821 (unmodified_parm): Likewise.
13822 (unmodified_parm_or_parm_agg_item): Likewise.
13823 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
13824 (set_cond_stmt_execution_predicate): Extract access sizes and store
13825 them to conditions.
13826 (set_switch_stmt_execution_predicate): Likewise.
13827 (will_be_nonconstant_expr_predicate): Likewise.
13828 (will_be_nonconstant_predicate): Likewise.
13829 (inline_read_section): Stream condition size.
13830 (inline_write_summary): Likewise.
13831
13832 2016-05-18 Richard Biener <rguenther@suse.de>
13833
13834 * tree-ssa-loop-im.c (determine_max_movement): Properly add
13835 condition cost to PHI cost instead of total_cost.
13836
13837 2016-05-18 Martin Liska <mliska@suse.cz>
13838
13839 PR fortran/70856
13840 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
13841 merged variables.
13842
13843 2016-05-18 Richard Biener <rguenther@suse.de>
13844
13845 * lto-streamer.h (LTO_major_version): Bump to 6.
13846
13847 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
13848
13849 * function.c (make_split_prologue_seq, make_prologue_seq,
13850 make_epilogue_seq): New functions, factored out from...
13851 (thread_prologue_and_epilogue_insns): Here.
13852
13853 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
13854
13855 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13856 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
13857 of before. Add a comment.
13858
13859 2016-05-18 Bin Cheng <bin.cheng@arm.com>
13860
13861 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
13862 expression pointer, not pointer to the pointer.
13863
13864 2016-05-18 Jakub Jelinek <jakub@redhat.com>
13865
13866 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
13867 (avx2_pbroadcast<mode>): Add another alternative with v instead
13868 of x constraints in it, using <pbroadcast_evex_isa> isa.
13869 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
13870
13871 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
13872 constraint x instead of v in second alternative, add avx512bw
13873 alternative.
13874
13875 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
13876 constraint x instead of v in second alternative, add avx512bw
13877 alternative.
13878
13879 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
13880 constraint x instead of v in second alternative, add avx512bw
13881 alternative.
13882
13883 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
13884 avx512bw alternative.
13885
13886 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
13887
13888 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
13889 array to 128 chars.
13890 (define_insn "*andnottf3"): Ditto.
13891 (define_insn "*<code><mode>3"/any_logic): Ditto.
13892 (define_insn "*<code>tf3"/any_logic): Ditto.
13893 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
13894 operand to block AVX-512VL insn variant emit when it is not enabled.
13895
13896 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
13897
13898 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
13899 constraint fot SF mode.
13900
13901 2016-05-18 Petr Murzin <petr.murzin@intel.com>
13902 Kirill Yukhin <kirill.yukhin@intel.com>
13903
13904 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
13905 modifiers.
13906 (define_insn "rsqrt14<mode>"): Ditto.
13907 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
13908 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13909 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
13910 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13911 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
13912 Ditto.
13913 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
13914 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13915 * config/i386/i386.c (ix86_print_operand): Expand check for size
13916 override codes for Intel syntax.
13917
13918 2016-05-18 Richard Biener <rguenther@suse.de>
13919
13920 PR tree-optimization/71168
13921 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13922 initialization earlier.
13923
13924 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
13925
13926 * config/aarch64/aarch64-simd.md
13927 (aarch64_reduc_plus_internal<mode>): Rename to...
13928 (reduc_plus_scal): ...This, and remove previous implementation.
13929
13930 2016-05-18 Richard Biener <rguenther@suse.de>
13931
13932 * passes.def: Put late dse and cd_dce in canonical order.
13933
13934 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
13935
13936 * ipa-inline-transform.c (preserve_function_body_p): Look for
13937 first non-thunk clone.
13938 (save_function_body): Save into first non-thunk.
13939 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13940 up call stmt id.
13941 (lto_output_node): Inline thunks don't need body in every
13942 partition.
13943 * lto-streamer-in.c: Do not fixup thunk clones.
13944 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13945 thunks.
13946 * tree-inline.c (copy_bb): Be prepared for target node to be new after
13947 folding suceeds.
13948
13949 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13950
13951 PR middle-end/63586
13952 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13953 (reassociate_bb): Call transform_add_to_multiply.
13954
13955 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
13956
13957 * config/aarch64/aarch64.c (all_extensions): Removed unused
13958 static variable.
13959
13960 2016-05-17 Nathan Sidwell <nathan@acm.org>
13961
13962 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13963 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13964
13965 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
13966
13967 PR tree-optimization/54579
13968 PR middle-end/55299
13969 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13970
13971 2016-05-17 Marek Polacek <polacek@redhat.com>
13972
13973 PR ipa/71146
13974 * tree-inline.c (expand_call_inline): Call
13975 maybe_remove_unused_call_args.
13976
13977 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
13978
13979 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13980 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13981 * doc/md.texi (fmin@var{m}3): Likewise.
13982
13983 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13984
13985 * match.pd (X & C): New transformation.
13986
13987 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13988
13989 * match.pd (~X & Y): New transformation.
13990
13991 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
13992
13993 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13994 information for new SSA_NAME.
13995 (simplify_conversion_using_ranges): Get range through get_range_info
13996 instead of get_value_range.
13997
13998 2016-05-17 Jiong Wang <jiong.wang@arm.com>
13999
14000 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
14001 Remove inline assembly.
14002 (vmvn_s16): Likewise.
14003 (vmvn_s32): Likewise.
14004 (vmvn_u8): Likewise.
14005 (vmvn_u16): Likewise.
14006 (vmvn_u32): Likewise.
14007 (vmvnq_s8): Likewise.
14008 (vmvnq_s16): Likewise.
14009 (vmvnq_s32): Likewise.
14010 (vmvnq_u8): Likewise.
14011 (vmvnq_u16): Likewise.
14012 (vmvnq_u32): Likewise.
14013 (vmvn_p8): Likewise.
14014 (vmvnq_p16): Likewise.
14015
14016 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14017
14018 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14019 Use builtin.
14020 (vmul_n_s16): Likewise.
14021 (vmul_n_s32): Likewise.
14022 (vmul_n_u16): Likewise.
14023 (vmul_n_u32): Likewise.
14024 (vmulq_n_f32): Likewise.
14025 (vmulq_n_f64): Likewise.
14026 (vmulq_n_s16): Likewise.
14027 (vmulq_n_s32): Likewise.
14028 (vmulq_n_u16): Likewise.
14029 (vmulq_n_u32): Likewise.
14030
14031 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14032
14033 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14034 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
14035
14036 2016-05-17 Jiong Wang <jiong.wang@arm.com>
14037
14038 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14039 to *aarch64_fma4_elt_from_dup<mode>.
14040 (*aarch64_fnma4_elt_to_128df): Rename to
14041 *aarch64_fnma4_elt_from_dup<mode>.
14042 * config/aarch64/arm_neon.h (vfma_n_f64): New.
14043 (vfms_n_f32): Likewise.
14044 (vfms_n_f64): Likewise.
14045 (vfmsq_n_f32): Likewise.
14046 (vfmsq_n_f64): Likewise.
14047
14048 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
14049
14050 * wide-int.h: Change fixed_wide_int_storage from class to struct.
14051
14052 2016-05-17 Richard Biener <rguenther@suse.de>
14053
14054 PR tree-optimization/71132
14055 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14056 Only add control dependences for blocks in the loop.
14057 (build_rdg): Adjust.
14058 (generate_code_for_partition): Return whether loop should
14059 be destroyed and delay that.
14060 (distribute_loop): Likewise.
14061 (pass_loop_distribution::execute): Record loops to be destroyed
14062 and perform delayed destroying of loops.
14063
14064 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14065
14066 PR target/70809
14067 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14068
14069 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14070
14071 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14072
14073 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
14074
14075 PR target/71114
14076 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14077 insertion point for instructions generated by validize_mem.
14078
14079 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14080
14081 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14082 in brackets.
14083
14084 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
14085
14086 * config/aarch64/aarch64.c
14087 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14088 rather than a macro.
14089
14090 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14091
14092 * doc/invoke.texi (AArch64 Options): Various updates.
14093
14094 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14095
14096 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14097 into instrumentation thunks.
14098 * cif-code.def (CIF_CHKP): New.
14099
14100 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
14101
14102 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14103
14104 2016-05-16 Martin Jambor <mjambor@suse.cz>
14105
14106 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14107 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14108
14109 2016-05-16 Marek Polacek <polacek@redhat.com>
14110
14111 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14112 commentary.
14113
14114 2016-05-16 Martin Jambor <mjambor@suse.cz>
14115
14116 PR hsa/70857
14117 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14118 the outlined kernel function.
14119
14120 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
14121
14122 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14123 (ISA_HAS_DLSA): Ditto.
14124
14125 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14126
14127 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14128
14129 2016-05-16 Nathan Sidwell <nathan@acm.org>
14130
14131 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14132 (nvptx_name_replacement): Restore. Add comment.
14133 (write_fn_proto, write_fn_proto_from_insn,
14134 nvptx_output_call_insn): Restore
14135 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14136
14137 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14138
14139 * config/aarch64/aarch64.md
14140 (add<mode>3_compareC_cconly_imm): Remove use of %w.
14141 (add<mode>3_compareC_imm): Likewise.
14142 (<optab>si3_uxtw): Split into register and immediate variants.
14143 (andsi3_compare0_uxtw): Likewise.
14144 (and<mode>3_compare0): Likewise.
14145 (and<mode>3nr_compare0): Likewise.
14146 (stack_protect_test_<mode>): Don't use %x for memory operands.
14147
14148 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
14149
14150 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14151
14152 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
14153
14154 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14155 Split integer shifts into shift_reg and bfm.
14156 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14157 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14158 (ror<mode>3_insn): Likewise.
14159 (<optab>si3_insn_uxtw): Likewise.
14160 (<optab><mode>3_insn): Change to rotate_imm.
14161 (extr<mode>5_insn_alt): Likewise.
14162 (extrsi5_insn_uxtw): Likewise.
14163 (extrsi5_insn_uxtw_alt): Likewise.
14164
14165 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14166
14167 * doc/tm.texi: Regenerate.
14168 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14169 (TARGET_INVALID_RETURN_TYPE): Remove.
14170 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14171 TARGET_INVALID_RETURN_TYPE.
14172 * target.def (invalid_parameter_type): Remove.
14173 (invalid_return_type): Remove.
14174
14175 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14176
14177 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14178 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14179 calls from thunk.
14180 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14181 gimple body.
14182 (preserve_function_body_p): No need to preserve function body
14183 * cif-codes.def (CIF_THUNK): Remove.
14184 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14185
14186 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14187
14188 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14189
14190 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14191
14192 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14193 for thunks.
14194
14195 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14196
14197 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14198 (inline_small_functions): Do not look for function symbol when
14199 resetting caches.
14200
14201 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
14202
14203 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14204 of inline thunks
14205
14206 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14207 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14208 Jiong Wang <jiong.wang@arm.com>
14209
14210 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14211 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14212 Define __ARM_FP16_ARGS when appropriate.
14213 * config/arm/arm.c (arm_invalid_parameter_type): Remove
14214 declaration.
14215 (arm_invalid_return_type): Likewise.
14216 (TARGET_INVALID_PARAMETER_TYPE): Remove.
14217 (TARGET_INVALID_RETURN_TYPE): Remove.
14218 (aapcs_vfp_sub_candidate): Allow HFmode.
14219 (aapcs_vfp_allocate): Add comment. Support HFmode.
14220 (aapcs_vfp_allocate_return_reg): Likewise.
14221 (struct aapcs_cp_arg_layout): Slightly reword comments for
14222 is_return_candidate and allocate_return_reg.
14223 (output_mov_vfp): Update assert.
14224 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14225 condition.
14226 (arm_invalid_parameter_type): Remove.
14227 (amr_invalid_return_type): Remove.
14228 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14229 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14230 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14231
14232 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
14233
14234 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14235 * config/aarch64/arch64-protos.h
14236 (aarch64_legitimize_reload_address): Remove.
14237 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14238 Remove.
14239
14240 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
14241
14242 * configure.ac: Add ACX_NONCANONICAL_HOST.
14243 * configure: Regenerate.
14244 * Makefile.in: Set host_noncanonical.
14245
14246 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
14247
14248 PR target/71097
14249 * config/i386/i386.md (*movtf_internal): Before register allocation,
14250 do not allow FP constants for CM_MEDIUM memory model, allow only
14251 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14252 (*movxf_internal): Ditto.
14253 (*movdf_internal): Ditto.
14254 (*movsf_internal): Ditto.
14255
14256 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
14257
14258 PR rtl-optimization/67483
14259 * combine.c (make_compound_operation): Don't call extract_left_shift
14260 with negative shift amounts.
14261
14262 2016-05-13 Jakub Jelinek <jakub@redhat.com>
14263
14264 PR bootstrap/71071
14265 * fold-const.c (fold_checksum_tree): Allow modification
14266 of TYPE_ALIAS_SET during folding.
14267
14268 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14269 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14270 (ix86_split_to_parts): Likewise. Fix up formatting.
14271
14272 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
14273
14274 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14275 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14276 printf format.
14277
14278 2016-05-13 Nathan Sidwell <nathan@acm.org>
14279
14280 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14281 (nvptx_name_replacement): Delete.
14282 (write_fn_proto, write_fn_proto_from_insn,
14283 nvptx_output_call_insn): Remove nvptx_name_replacement call.
14284 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14285 * langhooks.c (add_builtin_funcction_common): Call
14286 targetm.mangle_decl_assembler_name.
14287
14288 * config/nvptx/nvptx.c (write_fn_proto): Handle
14289 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14290
14291 2016-05-13 Martin Liska <mliska@suse.cz>
14292
14293 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14294 and PRIu64 in printf format.
14295
14296 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14297
14298 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14299 comment.
14300
14301 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14302
14303 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14304 Change --param max-completely-peeled-times to
14305 --param max-completely-peel-times in dump file printing.
14306
14307 2016-05-13 Richard Biener <rguenther@suse.de>
14308
14309 PR tree-optimization/42587
14310 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14311 (find_bswap_or_nop_1): Likewise.
14312 (bswap_replace): Likewise.
14313
14314 2016-05-13 Martin Liska <mliska@suse.cz>
14315
14316 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14317 Initialize a variable with default value.
14318
14319 2016-05-13 Martin Liska <mliska@suse.cz>
14320
14321 * doc/invoke.texi: Enhance explanation of error recovery
14322 of sanitizers.
14323
14324 2016-05-13 Martin Liska <mliska@suse.cz>
14325
14326 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14327 (struct cost_pair): Change inv_expr_id (int) to inv_expr
14328 (iv_inv_expr_ent *).
14329 (struct iv_inv_expr_ent): Comment struct fields.
14330 (sort_iv_inv_expr_ent): New function.
14331 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14332 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14333 a hash_map between iv_inv_expr_ent and number of usages.
14334 (niter_for_exit): Fix coding style.
14335 (tree_ssa_iv_optimize_init): Use renamed variable.
14336 (determine_base_object): Fix coding style.
14337 (alloc_iv): Likewise.
14338 (find_interesting_uses_outside): Likewise.
14339 (add_candidate_1): Likewise.
14340 (add_standard_iv_candidates): Likewise.
14341 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14342 (prepare_decl_rtl): Fix coding style.
14343 (get_address_cost): Likewise.
14344 (get_shiftadd_cost): Likewise.
14345 (force_expr_to_var_cost): Likewise.
14346 (compare_aff_trees): Likewise.
14347 (get_expr_id): Restructure the function.
14348 (get_loop_invariant_expr_id): Renamed to
14349 get_loop_invariant_expr.
14350 (get_computation_cost_at): Replace usage of inv_expr_id with
14351 inv_expr.
14352 (get_computation_cost): Likewise.
14353 (determine_group_iv_cost_generic): Likewise.
14354 (determine_group_iv_cost_address): Likewise.
14355 (iv_period): Fix coding style.
14356 (iv_elimination_compare_lt): Likewise.
14357 (may_eliminate_iv): Likewise.
14358 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
14359 inv_expr.
14360 (determine_group_iv_costs): Dump invariant expressions.
14361 (iv_ca_recount_cost): Use the newly added hash_map.
14362 (iv_ca_set_remove_invariants): Fix coding style.
14363 (iv_ca_set_add_invariants): Fix coding style.
14364 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14365 invariants.
14366 (iv_ca_set_cp): Likewise.
14367 (iv_ca_new): Initialize the newly added hash_map and remove
14368 initialization of fields.
14369 (iv_ca_free): Delete the hash_map.
14370 (iv_ca_dump): Dump invariant expressions.
14371 (iv_ca_extend): Fix coding style.
14372 (try_add_cand_for): Likewise.
14373 (create_new_ivs): Dump information about # of avg iterations and
14374 # of used invariant expressions.
14375 (rewrite_use_compare): Fix coding style.
14376 (free_loop_data): Set default value for max_inv_expr_id.
14377
14378 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
14379
14380 * cse.c (rest_of_handle_cse): Use cleanup_cfg
14381 returned value cse_cfg_altered computation.
14382 (rest_of_handle_cse2): Likewise.
14383 (rest_of_handle_cse_after_global_opts): Likewise.
14384
14385 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14386
14387 PR target/53440
14388 * config/arm/arm.c (arm32_output_mi_thunk): New.
14389 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14390 to split Thumb1 vs TARGET_32BIT functionality.
14391 (arm_thumb1_mi_thunk): New.
14392
14393 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14394
14395 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14396 to true.
14397
14398 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14399
14400 PR target/71080
14401 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14402
14403 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
14404
14405 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14406 (expand_builtin_trap): Emit a regular call.
14407 (set_builtin_user_assembler_name): Remove obsolete cases.
14408 * dse.c (scan_insn): Adjust.
14409 * except.c: Include calls.h.
14410 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14411 emit a regular call to setjmp.
14412 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14413 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14414 (emit_block_move_via_libcall): Delete.
14415 (block_move_fn): Delete.
14416 (init_block_move_fn): Likewise.
14417 (emit_block_move_libcall_fn): Likewise.
14418 (emit_block_op_via_libcall): New function.
14419 (set_storage_via_libcall): Tidy up and use memset builtin.
14420 (block_clear_fn): Delete.
14421 (init_block_clear_fn): Likewise.
14422 (clear_storage_libcall_fn): Likewise.
14423 (expand_assignment): Call emit_block_move_via_libcall.
14424 Do not include gt-expr.h.
14425 * expr.h (emit_block_op_via_libcall): Declare.
14426 (emit_block_copy_via_libcall): New inline function.
14427 (emit_block_move_via_libcall): Likewise.
14428 (emit_block_comp_via_libcall): Likewise.
14429 (block_clear_fn): Delete.
14430 (init_block_move_fn): Likewise.
14431 (init_block_clear_fn): Likewise.
14432 (emit_block_move_via_libcall): Likewise.
14433 (set_storage_via_libcall): Add default parameter value.
14434 * libfuncs.h (enum libfunc_index): Remove obsolete values.
14435 (abort_libfunc): Delete.
14436 (memcpy_libfunc): Likewise.
14437 (memmove_libfunc): Likewise.
14438 (memcmp_libfunc): Likewise.
14439 (memset_libfunc): Likewise.
14440 (setbits_libfunc): Likewise.
14441 (setjmp_libfunc): Likewise.
14442 (longjmp_libfunc): Likewise.
14443 (profile_function_entry_libfunc): Likewise.
14444 (profile_function_exit_libfunc): Likewise.
14445 (gcov_flush_libfunc): Likewise.
14446 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14447 and DECL_VISIBILITY on the declaration.
14448 (init_optabs): Do not initialize obsolete libfuncs.
14449 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14450 * tree-core.h (ECF_RET1): Define.
14451 (ECF_TM_PURE): Adjust.
14452 (ECF_TM_BUILTIN): Likewise.
14453 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14454 (build_common_builtin_nodes): Initialize abort builtin.
14455 Add ECF_RET1 on memcpy, memmove and memset builtins.
14456 Pass final flags for alloca and alloca_with_align builtins.
14457 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14458 obsolete builtins.
14459 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14460 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14461 set_storage_via_libcall and call emit_block_copy_via_libcall.
14462
14463 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
14464
14465 * config/i386/i386.md (*call_got_x32): Change operand 0 to
14466 DImode before it is passed to ix86_output_call_operand.
14467 (*call_value_got_x32): Ditto for operand 1.
14468
14469 2016-05-12 Jiong Wang <jiong.wang@arm.com>
14470
14471 PR rtl-optimization/70904
14472 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14473 reload for wide mode.
14474
14475 2016-05-12 Marek Polacek <polacek@redhat.com>
14476
14477 PR c/70756
14478 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14479 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14480 * langhooks.h (incomplete_type_error): Likewise.
14481 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
14482 parameter, pass it down to incomplete_type_error.
14483 * tree.h (size_in_bytes): New inline overload.
14484 (size_in_bytes_loc): Renamed from size_in_bytes.
14485
14486 2016-05-12 Richard Biener <rguenther@suse.de>
14487
14488 PR tree-optimization/71059
14489 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14490 nary before looking up or entering the expression into the VN
14491 hashes.
14492 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14493 Make sure to re-use NARYs without result as inserted by
14494 phi-translation.
14495
14496 2016-05-12 Richard Biener <rguenther@suse.de>
14497
14498 PR tree-optimization/71062
14499 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14500 field.
14501 * tree-ssa-structalias.c (set_uids_in_ptset): Set
14502 vars_contains_restrict if the var is a restrict tag.
14503 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14504 do not disambiguate pointers against it.
14505 (dump_points_to_solution): Re-structure and adjust for new
14506 vars_contains_restrict flag.
14507 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14508
14509 2016-05-12 Martin Liska <mliska@suse.cz>
14510
14511 * doc/invoke.texi: Explain connection between
14512 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14513
14514 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
14515
14516 PR tree-optimization/71006
14517 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14518 consider COND_EXPR as a mask producer.
14519
14520 2016-05-12 Marek Polacek <polacek@redhat.com>
14521
14522 PR driver/71063
14523 * opts.c (common_handle_option): Detect missing argument for --help^.
14524
14525 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14526
14527 PR target/70830
14528 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14529 when popping the PC and within an interrupt handler routine.
14530 Add missing tab to output of "ldmfd".
14531 (output_return_instruction): Output LDMFD with SP update rather
14532 than POP when returning from interrupt handler.
14533
14534 2016-05-12 Jakub Jelinek <jakub@redhat.com>
14535
14536 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14537 TARGET_64BIT && TARGET_AVX512DQ.
14538 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14539 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14540 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14541 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14542 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14543 (*vec_extractv4si_zext): Add avx512dq alternative.
14544 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14545 use v instead of x constraint in other alternatives where possible.
14546
14547 * config/i386/sse.md (sse2_loadld): Use v instead of x
14548 constraint in alternatives 0,1,4.
14549
14550 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14551 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14552 v constraints instead of x and <pinsr_evex_isa> isa attribute.
14553
14554 PR target/71019
14555 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14556 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14557 is not emitted unless TARGET_AVX512BW.
14558 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14559 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14560 for the result operand.
14561
14562 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14563 constraint instead of x in avx alternatives. Use maybe_evex instead
14564 of vex prefix.
14565
14566 * config/i386/constraints.md (Yv): New constraint.
14567 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14568 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14569 * config/i386/i386.md (avx512fvecmode): New mode attr.
14570 (*pushtf): Use v constraint instead of x.
14571 (*movtf_internal): Likewise. For TARGET_AVX512VL and
14572 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14573 (*absneg<mode>2): Use Yv constraint instead of x constraint.
14574 (*absnegtf2_sse): Likewise.
14575 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14576 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14577 avx512f alternatives.
14578 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14579
14580 2016-05-12 Richard Biener <rguenther@suse.de>
14581
14582 PR tree-optimization/71060
14583 * tree-data-ref.c (initialize_data_dependence_relation): Do not
14584 require exact match of DR_BASE_OBJECT but only matching address and
14585 type.
14586
14587 2016-05-12 Richard Biener <rguenther@suse.de>
14588
14589 PR tree-optimization/70986
14590 * cfganal.c: Include cfgloop.h.
14591 (dfs_find_deadend): Prefer to take edges exiting loops.
14592
14593 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14594
14595 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
14596 compile and run time.
14597
14598 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
14599
14600 PR c/43651
14601 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
14602
14603 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
14604
14605 * config/i386/i386.c (legitimize_pic_address): Use
14606 copy_to_suggested_reg instead of gen_movsi.
14607
14608 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14609
14610 * config/rs6000/predicates.md (quad_memory_operand): Move most of
14611 the code into quad_address_p and call it to share code with
14612 vsx_quad_dform_memory_operand.
14613 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
14614 d-form support.
14615 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
14616 bit instead of being a separate word. Split -mpower9-dform into
14617 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14618 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
14619 for the register class supporting 128-bit quad word memory offsets.
14620 (mode_supports_vsx_dform_quad): Helper function to return if the
14621 register class uses quad word memory offsets.
14622 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
14623 (rs6000_debug_reg_global): Always print if we are using LRA or not.
14624 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
14625 instructions are enabled, set up the appropriate addr_masks for
14626 128-bit types.
14627 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
14628 -mpower9-dform-scalar, instead of -mpower9-dform.
14629 (rs6000_option_override_internal): Split -mpower9-dform into two
14630 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
14631 -mpower9-dform switch sets or clears both. If we are not using
14632 the LRA register allocator, do not enable -mpower9-dform-vector by
14633 default. If we are using LRA, enable -mpower9-dform-vector and
14634 -mvsx-timode if it is appropriate. Issue a warning if either
14635 -mpower9-dform-vector or -mvsx-timode are explicitly used without
14636 enabling LRA.
14637 (quad_address_offset_p): New helper function to return if the
14638 offset is legal for quad word memory instructions.
14639 (quad_address_p): New function to determin if GPR or vector
14640 register quad word memory addresses are legal.
14641 (mem_operand_gpr): Validate quad word address offsets.
14642 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
14643 d-form (register + offset) instructions.
14644 (offsettable_ok_by_alignment): Likewise.
14645 (rs6000_legitimate_offset_address_p): Likewise.
14646 (legitimate_lo_sum_address_p): Likewise.
14647 (rs6000_legitimize_address): Likewise.
14648 (rs6000_legitimize_reload_address): Add more debug statements for
14649 -mdebug=addr.
14650 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
14651 d-form instructions.
14652 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
14653 d-form instructions. Distinguish different cases in debug
14654 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
14655 d-form instructions.
14656 (rs6000_preferred_reload_class): Likewise.
14657 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
14658 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
14659 of the ISA 2.06 indexed memory instructions.
14660 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
14661 use them to save/restore the saved vector registers instead of
14662 using Altivec instructions.
14663 (rs6000_emit_epilogue): Likewise.
14664 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
14665 (rs6000_opt_masks): Split -mpower9-dform into
14666 -mpower9-dform-scalar and -mpower9-dform-vector.
14667 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
14668 was not selected.
14669 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
14670 ISA 3.0 vector indexed memory instructions, and fold the code into
14671 the normal mov<mode> patterns.
14672 (p9_vecstore_<mode>): Likewise.
14673 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
14674 instructions.
14675 (vsx_movti_64bit): Likewise.
14676 (vsx_movti_32bit): Likewise.
14677 * config/rs6000/constraints.md (wO constraint): New constraint for
14678 ISA 3.0 vector d-form support.
14679 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
14680 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
14681 include -mpower9-dform-vector until we switch over to LRA.
14682 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
14683 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14684 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
14685 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
14686 for -mpower9-dform and -mlra.
14687 * doc/md.texi (wO constraint): Document wO constraint.
14688
14689 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
14690
14691 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
14692 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
14693 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
14694 Move handling of non-insn arguments inline into the sole user:
14695 (output_trans_func): ...here.
14696 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
14697 in emitted function prototype.
14698 (output_internal_insn_latency_func): Ditto. Simplify.
14699 (output_internal_maximal_insn_latency_func): Ditto. Delete
14700 always-unused argument.
14701 (output_insn_latency_func): Ditto.
14702 (output_maximal_insn_latency_func): Ditto.
14703
14704 2016-05-11 Richard Biener <rguenther@suse.de>
14705
14706 PR tree-optimization/71055
14707 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
14708 sth with precision not equal to access size verify we don't chop
14709 off bits.
14710
14711 2016-05-11 Richard Biener <rguenther@suse.de>
14712
14713 PR debug/71057
14714 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
14715 (dwarf2out_finish): Move retry_incomplete_types call ...
14716 (dwarf2out_early_finish): ... here.
14717
14718 2016-05-11 Richard Biener <rguenther@suse.de>
14719
14720 PR middle-end/71002
14721 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
14722 if the langhook insists on it.
14723 * fold-const.c (make_bit_field_ref): Add arg for the original
14724 reference and preserve its alias-set.
14725 (decode_field_reference): Take exp by reference and adjust it
14726 to the original memory reference.
14727 (optimize_bit_field_compare): Adjust callers.
14728 (fold_truth_andor_1): Likewise.
14729 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
14730
14731 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
14732
14733 PR middle-end/70807
14734 * cfgrtl.h (delete_insn_and_edges): Now return bool.
14735 * cfgrtl.c (delete_insn_and_edges): Likewise.
14736 * config/i386/i386.c (convert_scalars_to_vector): Remove
14737 redundant code.
14738 * cse.c (cse_insn): Compute cse_cfg_altered.
14739 (delete_trivially_dead_insns): Likewise.
14740 (cse_cc_succs): Likewise.
14741 (rest_of_handle_cse): Free dominance info if required.
14742 (rest_of_handle_cse2): Likewise.
14743 (rest_of_handle_cse_after_global_opts): Likewise.
14744
14745 2016-05-11 Alan Modra <amodra@gmail.com>
14746
14747 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
14748 abi_v4_pass_in_fpr): New functions.
14749 (rs6000_function_arg_boundary): Exclude complex IBM long double
14750 from 64-bit alignment when ABI_V4.
14751 (rs6000_function_arg, rs6000_function_arg_advance_1,
14752 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
14753
14754 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
14755
14756 PR rtl-optimization/71028
14757 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
14758 jump with just a return in the fallthrough block if the branch
14759 block contains just a return as well.
14760
14761 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
14762
14763 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
14764 * match.pd ((X & Y) ^ Y): ... this.
14765 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
14766 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
14767
14768 2016-05-10 David Malcolm <dmalcolm@redhat.com>
14769
14770 * read-md.c (require_char_ws): New function.
14771 (read_string): Simplify using require_char_ws.
14772 (handle_constants): Likewise.
14773 (handle_enum): Likewise.
14774 (handle_file): Likewise.
14775 * read-md.h (require_char_ws): New declaration.
14776 * read-rtl.c (read_conditions): Simplify using require_char_ws.
14777 (read_mapping): Likewise.
14778 (read_rtx_code): Likewise.
14779 (read_nested_rtx): Likewise.
14780
14781 2016-05-10 James Norris <jnorris@codesourcery.com>
14782
14783 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
14784 if offloading is enabled and -fopenacc or -fopenmp is specified.
14785 (CRTOFFLOADEND): Likewise.
14786 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
14787 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
14788
14789 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
14790
14791 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
14792 gotoff_operand code paths. Use copy_to_suggested_regs and
14793 expand_simple_binop where appropriate. Cleanup.
14794
14795 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14796
14797 PR target/70799
14798 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
14799 integer constants.
14800 (dimode_scalar_chain::vector_const_cost): New.
14801 (dimode_scalar_chain::compute_convert_gain): Handle constants.
14802 (dimode_scalar_chain::convert_op): Likewise.
14803 (dimode_scalar_chain::convert_insn): Likewise.
14804
14805 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
14806
14807 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
14808 unary operation, not a binary one.
14809
14810 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14811
14812 PR middle-end/70877
14813 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
14814 calls with type casted fndecl.
14815
14816 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
14817
14818 PR tree-optimization/70786
14819 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
14820 * calls.c (initialize_argument_information): Bind bounds
14821 with corresponding args passed by reference.
14822
14823 2016-05-10 Jakub Jelinek <jakub@redhat.com>
14824
14825 PR target/70927
14826 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
14827 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
14828 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
14829 accordingly.
14830
14831 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14832
14833 PR target/70963
14834 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
14835 code for a zero scale factor.
14836 (vsx_xvcvdpuxds_scale): Likewise.
14837
14838 2016-05-10 David Malcolm <dmalcolm@redhat.com>
14839
14840 * diagnostic-show-locus.c (layout::layout): Call show_ruler
14841 if show_ruler_p was set on the context.
14842 (layout::show_ruler): New method.
14843 * diagnostic.h (struct diagnostic_context): Add field
14844 "show_ruler_p".
14845
14846 2016-05-10 Richard Biener <rguenther@suse.de>
14847
14848 PR tree-optimization/71039
14849 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
14850 (chk_uses): New function.
14851 (propagate_with_phi): Verify we can safely replicate the lhs of an
14852 aggregate assignment on all incoming edges.
14853
14854 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
14855
14856 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
14857 Forward declare.
14858 (rx_atomic_sequence): New class.
14859 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
14860 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
14861 non-inline.
14862 (rx_atomic_sequence::rx_atomic_sequence,
14863 rx_atomic_sequence::~rx_atomic_sequence): New functions.
14864 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
14865 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
14866 CTRLREG_INTB): New constants.
14867 (FETCHOP): New code iterator.
14868 (fethcop_name, fetchop_name2): New iterator code attributes.
14869 (QIHI): New mode iterator.
14870 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
14871 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
14872 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
14873
14874 2016-05-10 Martin Liska <mliska@suse.cz>
14875
14876 * tree-inline.c (remap_dependence_clique): Do not remap
14877 debugging statements.
14878
14879 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14880
14881 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
14882 ("*fixuns_truncdfdi2_z13")
14883 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
14884 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
14885 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
14886
14887 2016-05-10 Richard Biener <rguenther@suse.de>
14888
14889 PR tree-optimization/70497
14890 PR tree-optimization/28367
14891 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
14892 split out from ...
14893 (visit_reference_op_load): ... here.
14894 (vn_reference_lookup_3): Use it to handle subreg-like accesses
14895 with simplified BIT_FIELD_REFs.
14896 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
14897 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
14898 correctly.
14899
14900 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
14901
14902 * dwarf2out.c (add_abstract_origin_attribute): Adjust
14903 documentation comment. For BLOCK nodes, add a
14904 DW_AT_abstract_origin attribute that points to the DIE generated
14905 for the origin BLOCK.
14906 (gen_lexical_block_die): Call add_abstract_origin_attribute for
14907 blocks from inlined functions.
14908
14909 2016-05-10 Alan Modra <amodra@gmail.com>
14910
14911 PR target/70947
14912 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
14913 regrename modifying insns saving lr before __morestack call.
14914 * config/rs6000/rs6000.md (split_stack_return): Similarly for
14915 insns restoring lr after __morestack call.
14916
14917 2016-05-09 Jakub Jelinek <jakub@redhat.com>
14918
14919 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14920 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14921 expanders.
14922 * config/i386/sse.md (vec_interleave_high<mode>,
14923 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14924 <avx512>_vpermt2var<mode>3_maskz): Likewise.
14925
14926 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14927
14928 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14929 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14930 parallel reassociation for power8 and forward.
14931
14932 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
14933
14934 * config/i386/i386.md (absneg splitters with general regs): Use
14935 general_reg_operand predicate.
14936 (btsq peephole2): Use x86_64_immediate_operand to check if new
14937 value is suitable for immediate operand. Generate emitted insn
14938 using RTL expressions.
14939 (btcq peephole2): Ditto.
14940 (btrq peephole2): Ditto. Generate correct immediate operand
14941 for AND masking.
14942
14943 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
14944
14945 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14946 bitpos.
14947
14948 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
14949
14950 * tree-affine.c (wide_int_constant_multiple_p): Add missing
14951 pointer dereference.
14952
14953 2016-05-09 Richard Biener <rguenther@suse.de>
14954
14955 PR tree-optimization/70985
14956 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14957 op0 isn't a gimple register.
14958
14959 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
14960
14961 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14962 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14963 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14964 (i6400_fpu_mult): New cpu units.
14965 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14966 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14967 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14968 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14969 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14970 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14971 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14972 (i6400_msa_long_float4, i6400_msa_long_float5)
14973 (i6400_msa_long_float8, i6400_msa_fdiv_df)
14974 (i6400_msa_fdiv_sf): New reservations.
14975 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14976 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14977 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14978 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14979 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14980 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14981 (msa_short_cmp, msa_short_float2, msa_short_logic3)
14982 (msa_short_store4, msa_long_load, msa_short_store)
14983 (msa_long_logic, msa_long_float2, msa_long_float4)
14984 (msa_long_float5, msa_long_float8, msa_long_mult)
14985 (msa_long_fdiv, msa_long_div): New reservations.
14986
14987 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
14988 Sameera Deshpande <sameera.deshpande@imgtec.com>
14989 Matthew Fortune <matthew.fortune@imgtec.com>
14990 Graham Stott <graham.stott@imgtec.com>
14991 Chao-ying Fu <chao-ying.fu@imgtec.com>
14992
14993 * config.gcc: Add MSA header file for mips*-*-* target.
14994 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14995 (Ubv8i, Urv8): New constraints.
14996 * config/mips/mips-ftypes.def: Add function types for MSA
14997 builtins.
14998 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14999 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
15000 * config/mips/mips-msa.md: New file.
15001 * config/mips/mips-protos.h
15002 (mips_split_128bit_const_insns): New prototype.
15003 (mips_msa_idiv_insns): Likewise.
15004 (mips_split_128bit_move): Likewise.
15005 (mips_split_128bit_move_p): Likewise.
15006 (mips_split_msa_copy_d): Likewise.
15007 (mips_split_msa_insert_d): Likewise.
15008 (mips_split_msa_fill_d): Likewise.
15009 (mips_expand_msa_branch): Likewise.
15010 (mips_const_vector_same_val_p): Likewise.
15011 (mips_const_vector_same_bytes_p): Likewise.
15012 (mips_const_vector_same_int_p): Likewise.
15013 (mips_const_vector_shuffle_set_p): Likewise.
15014 (mips_const_vector_bitimm_set_p): Likewise.
15015 (mips_const_vector_bitimm_clr_p): Likewise.
15016 (mips_msa_vec_parallel_const_half): Likewise.
15017 (mips_msa_output_division): Likewise.
15018 (mips_ldst_scaled_shift): Likewise.
15019 (mips_expand_vec_cond_expr): Likewise.
15020 * config/mips/mips.c (enum mips_builtin_type): Add
15021 MIPS_BUILTIN_MSA_TEST_BRANCH.
15022 (mips_gen_const_int_vector_shuffle): New prototype.
15023 (mips_const_vector_bitimm_set_p): New function.
15024 (mips_const_vector_bitimm_clr_p): Likewise.
15025 (mips_const_vector_same_val_p): Likewise.
15026 (mips_const_vector_same_bytes_p): Likewise.
15027 (mips_const_vector_same_int_p): Likewise.
15028 (mips_const_vector_shuffle_set_p): Likewise.
15029 (mips_symbol_insns): Forbid loading symbols via immediate for
15030 MSA.
15031 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15032 stores.
15033 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15034 MSA.
15035 (mips_lx_address_p): Add support load indexed address for MSA.
15036 (mips_address_insns): Add calculation of instructions needed for
15037 stores and loads for MSA.
15038 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
15039 CONST_VECTOR for MSA and let it fall through.
15040 (mips_ldst_scaled_shift): New function.
15041 (mips_subword_at_byte): Likewise.
15042 (mips_msa_idiv_insns): Likewise.
15043 (mips_legitimize_move): Validate MSA moves.
15044 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
15045 calculation of costs for MSA division.
15046 (mips_split_move_p): Check if MSA moves need splitting.
15047 (mips_split_move): Split MSA moves if necessary.
15048 (mips_split_128bit_move_p): New function.
15049 (mips_split_128bit_move): Likewise.
15050 (mips_split_msa_copy_d): Likewise.
15051 (mips_split_msa_insert_d): Likewise.
15052 (mips_split_msa_fill_d): Likewise.
15053 (mips_output_move): Handle MSA moves.
15054 (mips_expand_msa_branch): New function.
15055 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15056 Reinstate 'y' modifier.
15057 (mips_file_start): Add MSA .gnu_attribute.
15058 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15059 FPRs.
15060 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15061 (mips_class_max_nregs): Add register size for MSA supported mode.
15062 (mips_cannot_change_mode_class): Allow conversion between MSA
15063 vector modes and TImode.
15064 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15065 instruction.
15066 (mips_secondary_reload_class): Force MSA loads/stores via memory.
15067 (mips_preferred_simd_mode): Add preffered modes for MSA.
15068 (mips_vector_mode_supported_p): Add MSA supported modes.
15069 (mips_autovectorize_vector_sizes): New function.
15070 (mips_msa_output_division): Likewise.
15071 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15072 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15073 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15074 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15075 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15076 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15077 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15078 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15079 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15080 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15081 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15082 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15083 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15084 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15085 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15086 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15087 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15088 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15089 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15090 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15091 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15092 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15093 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15094 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15095 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15096 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15097 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15098 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15099 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15100 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15101 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15102 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15103 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15104 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15105 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15106 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15107 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15108 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15109 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15110 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15111 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15112 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15113 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15114 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15115 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15116 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15117 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15118 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15119 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15120 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15121 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15122 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15123 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15124 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15125 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15126 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15127 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15128 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15129 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15130 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15131 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15132 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15133 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15134 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15135 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15136 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15137 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15138 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15139 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15140 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15141 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15142 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15143 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15144 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15145 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15146 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15147 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15148 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15149 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15150 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15151 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15152 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15153 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15154 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15155 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15156 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15157 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15158 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15159 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15160 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15161 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15162 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15163 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15164 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15165 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15166 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15167 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15168 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15169 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15170 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15171 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15172 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15173 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15174 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15175 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15176 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15177 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15178 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15179 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15180 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15181 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15182 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15183 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15184 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15185 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15186 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15187 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15188 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15189 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15190 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15191 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15192 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15193 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15194 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15195 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15196 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15197 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15198 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15199 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15200 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15201 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15202 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15203 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15204 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15205 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15206 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15207 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15208 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15209 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15210 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15211 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15212 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15213 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15214 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15215 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15216 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15217 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15218 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15219 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15220 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15221 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15222 move_v builtins.
15223 (mips_get_builtin_decl_index): New array.
15224 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15225 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15226 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15227 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15228 (mips_init_builtins): Initialize mips_get_builtin_decl_index
15229 array.
15230 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15231 hook.
15232 (mips_expand_builtin_insn): Prepare operands for
15233 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15234 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15235 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15236 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15237 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15238 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15239 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15240 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15241 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15242 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15243 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15244 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15245 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15246 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15247 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15248 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15249 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15250 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15251 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15252 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15253 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15254 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15255 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15256 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15257 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15258 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15259 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15260 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15261 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15262 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15263 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15264 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15265 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15266 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15267 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15268 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15269 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15270 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15271 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15272 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15273 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15274 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15275 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15276 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15277 These are set implicitly and an error is reported if overridden.
15278 (mips_expand_builtin_msa_test_branch): New function.
15279 (mips_expand_msa_shuffle): Likewise.
15280 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15281 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15282 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15283 (mips_expand_vec_unpack): Add support for MSA.
15284 (mips_expand_vector_init): Likewise.
15285 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15286 instead of const0_rtx.
15287 (mips_msa_vec_parallel_const_half): New function.
15288 (mips_gen_const_int_vector): Likewise.
15289 (mips_gen_const_int_vector_shuffle): Likewise.
15290 (mips_expand_msa_cmp): Likewise.
15291 (mips_expand_vec_cond_expr): Likewise.
15292 * config/mips/mips.h
15293 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15294 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15295 specified.
15296 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15297 (ISA_HAS_MSA): New macro.
15298 (UNITS_PER_MSA_REG): Likewise.
15299 (BITS_PER_MSA_REG): Likewise.
15300 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15301 (MSA_REG_FIRST): New macro.
15302 (MSA_REG_LAST): Likewise.
15303 (MSA_REG_NUM): Likewise.
15304 (MSA_REG_P): Likewise.
15305 (MSA_REG_RTX_P): Likewise.
15306 (MSA_SUPPORTED_MODE_P): Likewise.
15307 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15308 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15309 * config/mips/mips.md: Include mips-msa.md.
15310 (alu_type): Add simd_add.
15311 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15312 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15313 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15314 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15315 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15316 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15317 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15318 simd_move, simd_load, simd_store. Choose "multi" for moves
15319 for "qword_mode".
15320 (qword_mode): New attribute.
15321 (insn_count): Add instruction count for quad moves.
15322 Increase the count for MIPS SIMD division.
15323 (UNITMODE): Add UNITMODEs for vector types.
15324 (addsub): New code iterator.
15325 * config/mips/mips.opt (mmsa): New option.
15326 * config/mips/msa.h: New file.
15327 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15328 specified.
15329 * config/mips/mti-linux.h: Likewise.
15330 * config/mips/predicates.md
15331 (const_msa_branch_operand): New constraint.
15332 (const_uimm3_operand): Likewise.
15333 (const_uimm4_operand): Likewise.
15334 (const_uimm5_operand): Likewise.
15335 (const_uimm8_operand): Likewise.
15336 (const_imm5_operand): Likewise.
15337 (aq10b_operand): Likewise.
15338 (aq10h_operand): Likewise.
15339 (aq10w_operand): Likewise.
15340 (aq10d_operand): Likewise.
15341 (const_m1_operand): Likewise.
15342 (reg_or_m1_operand): Likewise.
15343 (const_exp_2_operand): Likewise.
15344 (const_exp_4_operand): Likewise.
15345 (const_exp_8_operand): Likewise.
15346 (const_exp_16_operand): Likewise.
15347 (const_vector_same_val_operand): Likewise.
15348 (const_vector_same_simm5_operand): Likewise.
15349 (const_vector_same_uimm5_operand): Likewise.
15350 (const_vector_same_uimm6_operand): Likewise.
15351 (const_vector_same_uimm8_operand): Likewise.
15352 (par_const_vector_shf_set_operand): Likewise.
15353 (reg_or_vector_same_val_operand): Likewise.
15354 (reg_or_vector_same_simm5_operand): Likewise.
15355 (reg_or_vector_same_uimm6_operand): Likewise.
15356 * doc/extend.texi (MIPS SIMD Architecture Functions): New
15357 section.
15358 * doc/invoke.texi (-mmsa): Document new option.
15359
15360 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15361
15362 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15363 * configure: Regenerate.
15364 * config.in: Regenerate.
15365 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15366 on -fvtable-verify.
15367 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15368 (ENDFILE_VTV_SPEC): Define.
15369
15370 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
15371
15372 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15373 registers in all interrupt handlers if necessary.
15374 (rl78_option_override): Add warning.
15375 (MUST_SAVE_MDUC_REGISTERS): New macro.
15376 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15377 * config/rl78/rl78.c (check_mduc_usage): New function.
15378 (mduc_regs): New structure to hold MDUC register data.
15379 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15380 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15381 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15382 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15383 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15384 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15385
15386 2016-05-09 Bin Cheng <bin.cheng@arm.com>
15387
15388 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15389 (tree-ssa-loop-niter.h): Ditto.
15390 (idx_within_array_bound, ref_within_array_bound): New functions.
15391 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15392 Factor out check on writable base object to ...
15393 (base_object_writable): ... here.
15394
15395 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15396
15397 * config/arm/arm.md (probe_stack): Add modes to set source
15398 and destination.
15399
15400 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
15401
15402 * regrename.c (base_reg_class_for_rename): New static function.
15403 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15404
15405 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
15406
15407 * cgraph.c (thunk_adjust): Export.
15408 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15409 * cgraphunit.c (thunk_adjust): Export.
15410 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15411 thunks.
15412 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15413 inlinable.
15414 * tree-inline.c (expand_call_inline): Expand thunks inline.
15415
15416 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
15417
15418 PR target/70998
15419 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15420 (*sse2_vd_cvtss2sd): Ditto.
15421 * config/i386/i386.md
15422 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15423 Generate *sse2_vd_cvtsd2ss pattern.
15424 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15425 Generate *sse2_vd_cvtss2sd pattern.
15426
15427 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15428
15429 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15430 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
15431 users.
15432
15433 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
15434
15435 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15436 * config/sh/sh.c: Define and declare variables on first use throughout
15437 the file.
15438 (current_function_interrupt): Change to bool type.
15439 (frame_insn): Rename to emit_frame_insn and update users.
15440 (push_regs): Use bool for 'interrupt_handler' argument.
15441 (save_schedule_s): Remove.
15442 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15443 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15444 targetm.asm_out.unaligned_op.di.
15445 (gen_far_branch): Remove redundant forward declaration.
15446 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15447 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15448 (sh_set_return_address, sh_function_ok_for_sibcall,
15449 scavenge_reg): Update comments.
15450 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15451 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15452 (sh_attr_renesas_p): Remove unnecessary parentheses.
15453 (branch_dest): Simplify.
15454 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15455 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15456 (CUMULATIVE_ARGS): Change macro to typedef.
15457 (current_function_interrupt): Change to bool type.
15458 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15459 Surround with __cplusplus ifdef.
15460 (sh_compare_op0, sh_compare_op1): Remove.
15461 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15462
15463 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
15464
15465 * config/arm/arm.md: (arch): Add neon.
15466 (arch_enabled): Return yes for arch neon when TARGET_NEON.
15467 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
15468 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
15469 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
15470 attributes for alt renumbering. Mark alt 3 as non-predicable.
15471 (thumb2_movdf_vfp): Likewise.
15472
15473 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
15474
15475 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15476 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15477 (*andqi_1): Add preferred_for_speed attribute to disparage
15478 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15479 (*<code>qi_1): Ditto.
15480 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15481 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15482 (*ashlqi3_1): Ditto.
15483 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15484 Add preferred_for_size attribute to disparage alternative 0 and
15485 preferred_for_speed attribute to disparage alternative 1 for
15486 TARGET_PARTIAL_REG_STALL targets.
15487
15488 2016-05-07 Tom de Vries <tom@codesourcery.com>
15489
15490 PR tree-optimization/70956
15491 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15492 def.
15493
15494 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
15495
15496 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15497 * config/sh/sh.c (sh_cbranch_distance): Implement it.
15498 * config/sh/sh.md (branch_zero): Remove define_attr.
15499 (define_delay): Disable delay slot if branch distance is one insn.
15500
15501 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15502
15503 * config/i386/i386.md (LEAMODE): New mode attribute.
15504 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15505 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15506 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
15507 operand 2 predicate.
15508 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15509 (*lea<mode>_general_3): Ditto.
15510 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15511
15512 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15513
15514 * genmddump.c (main): Convert argv from char ** to const char **.
15515
15516 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15517
15518 * coretypes.h (OVERRIDE): New macro.
15519 (FINAL): New macro.
15520
15521 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
15522
15523 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15524 allow coalescing if the types are compatible.
15525
15526 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15527
15528 * pass_manager.h (pass_manager::register_pass_name): New method.
15529 (pass_manager::get_pass_by_name): New method.
15530 (pass_manager::create_pass_tab): New method.
15531 (pass_manager::m_name_to_pass_map): New field.
15532 * passes.c (name_to_pass_map): Delete global in favor of field
15533 "m_name_to_pass_map" of pass_manager.
15534 (register_pass_name): Rename from a function to...
15535 (pass_manager::register_pass_name): ...this method, updating
15536 for renaming of global "name_to_pass_map" to field
15537 "m_name_to_pass_map".
15538 (create_pass_tab): Rename from a function to...
15539 (pass_manager::create_pass_tab): ...this method, updating
15540 for renaming of global "name_to_pass_map" to field.
15541 (get_pass_by_name): Rename from a function to...
15542 (pass_manager::get_pass_by_name): ...this method.
15543 (enable_disable_pass): Convert use of get_pass_by_name to
15544 a method call, locating the pass_manager singleton.
15545
15546 2016-05-06 David Malcolm <dmalcolm@redhat.com>
15547
15548 * genattr-common.c (main): Convert argv from char ** to const char **.
15549 * genattr.c (main): Likewise.
15550 * genattrtab.c (main): Likewise.
15551 * genautomata.c (initiate_automaton_gen): Likewise.
15552 (main): Likewise.
15553 * gencodes.c (main): Likewise.
15554 * genconditions.c (main): Likewise.
15555 * genconfig.c (main): Likewise.
15556 * genconstants.c (main): Likewise.
15557 * genemit.c (main): Likewise.
15558 * genenums.c (main): Likewise.
15559 * genextract.c (main): Likewise.
15560 * genflags.c (main): Likewise.
15561 * genmddeps.c (main): Likewise.
15562 * genopinit.c (main): Likewise.
15563 * genoutput.c (main): Likewise.
15564 * genpeep.c (main): Likewise.
15565 * genpreds.c (main): Likewise.
15566 * genrecog.c (main): Likewise.
15567 * gensupport.c (init_rtx_reader_args_cb): Likewise.
15568 (init_rtx_reader_args): Likewise.
15569 * gensupport.h (init_rtx_reader_args_cb): Likewise.
15570 (init_rtx_reader_args): Likewise.
15571 * gentarget-def.c (main): Likewise.
15572 * read-md.c (read_md_files): Likewise.
15573 * read-md.h (read_md_files): Likewise.
15574
15575 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15576
15577 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15578 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15579 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15580 Remove unused predicate.
15581 (register_and_not_fp_reg_operand): Ditto.
15582
15583 2016-05-06 Martin Liska <mliska@suse.cz>
15584
15585 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15586 instead of vec as the vector is local to the function.
15587
15588 2016-05-06 Jakub Jelinek <jakub@redhat.com>
15589
15590 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15591 avx512bw alternative.
15592
15593 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
15594 before the ashr<mode>3 pattern.
15595
15596 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
15597 v instead of x in vex or maybe_vex alternatives, use
15598 maybe_evex instead of vex in prefix.
15599
15600 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
15601 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
15602 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
15603 in vex or maybe_vex alternatives, use maybe_evex instead of vex
15604 in prefix.
15605
15606 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
15607 v instead of x in vex or maybe_vex alternatives, use
15608 maybe_evex instead of vex in prefix.
15609
15610 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
15611 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
15612 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
15613 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
15614 alternatives, use maybe_evex instead of vex in prefix.
15615
15616 * config/i386/sse.md (vec_interleave_lowv4sf,
15617 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
15618 v instead of x in vex or maybe_vex alternatives, use
15619 maybe_evex instead of vex in prefix.
15620
15621 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
15622 v instead of x in vex or maybe_vex alternatives, use
15623 maybe_evex instead of vex in prefix.
15624
15625 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
15626 v constraint instead of x.
15627
15628 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
15629
15630 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
15631 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
15632 equality first.
15633
15634 2016-05-06 Richard Biener <rguenther@suse.de>
15635
15636 PR tree-optimization/70948
15637 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15638 Properly clobber all fields of va_list for __builtin_va_start.
15639
15640 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
15641
15642 PR debug/70935
15643 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
15644 loop latch destination.
15645
15646 2016-05-06 Martin Liska <mliska@suse.cz>
15647
15648 * tree-ssa-uninit.c: Apply manual changes
15649 to the GNU coding style.
15650 (prune_uninit_phi_opnds): Rename from
15651 prune_uninit_phi_opnds_in_unrealizable_paths.
15652
15653 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15654
15655 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
15656 mspace): Remove deprecated options.
15657 * doc/invoke.texi (SH options): Remove -mspace.
15658
15659 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15660
15661 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
15662
15663 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15664
15665 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
15666 corresponding combine split pattern.
15667
15668 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15669
15670 PR target/58219
15671 * config/sh/predicates.md (long_displacement_mem_operand): New.
15672 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
15673 Add movi20, movi20s alternatives. Adjust length attribute for
15674 alternatives.
15675 (movsi_ie): Allow for any FPU. Adjust length attribute for
15676 alternatives.
15677 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
15678 attribute for alternatives.
15679 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
15680 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
15681 length attribute for alternatives.
15682
15683 2016-05-06 Richard Biener <rguenther@suse.de>
15684
15685 PR tree-optimization/70960
15686 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
15687
15688 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15689
15690 PR target/52933
15691 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
15692 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
15693
15694 2016-05-06 Marek Polacek <polacek@redhat.com>
15695
15696 PR sanitizer/70875
15697 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
15698
15699 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15700
15701 PR target/54089
15702 * config/sh/sh.md (*rotcr): Add another variant.
15703
15704 2016-05-06 Richard Biener <rguenther@suse.de>
15705
15706 PR middle-end/70931
15707 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
15708
15709 2016-05-06 Richard Biener <rguenther@suse.de>
15710
15711 PR middle-end/70941
15712 * fold-const.c (split_tree): Always convert to the original type
15713 before negating.
15714
15715 2016-05-06 Richard Biener <rguenther@suse.de>
15716
15717 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
15718 (fwprop_addr): Likewise.
15719
15720 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
15721
15722 PR target/70873
15723 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
15724 New prototype.
15725 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
15726 * config/i386/i386.md (push mem splitter): Use find_constant_src in
15727 the splitter condition.
15728 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
15729 the splitter condition.
15730 (FP float_extend load splitter): Ditto.
15731
15732 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
15733
15734 * config/i386/i386.md (peehole2 patterns): Change true_regnum
15735 to REGNO in all peephole2 patterns.
15736 (post-reload splitters): Change true_regnum to REGNO in
15737 post-reload splitters.
15738 (zero_extend splitters): Use general_reg_operand and
15739 nonimmediate_gr_operand predicates.
15740
15741 2016-05-05 Jakub Jelinek <jakub@redhat.com>
15742
15743 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
15744 v constraint instead of x.
15745
15746 2016-05-05 Alan Modra <amodra@gmail.com>
15747
15748 PR target/68662
15749 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15750 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
15751 TARGET_NO_FP_IN_TOC for -mrelocatable.
15752 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
15753 TARGET_RELOCATABLE test.
15754 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15755 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15756 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15757 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15758 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15759 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15760 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15761 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15762 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
15763 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15764 Likewise.
15765 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
15766 (rs6000_stack_info): Likewise.
15767 (rs6000_elf_asm_out_constructor): Likewise.
15768 (rs6000_elf_asm_out_destructor): Likewise.
15769 (rs6000_elf_declare_function_name): Likewise.
15770 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
15771 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
15772 Don't define.
15773
15774 2016-05-05 Alan Modra <amodra@gmail.com>
15775
15776 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
15777
15778 2016-05-05 Alan Modra <amodra@gmail.com>
15779
15780 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
15781 out-of-line gpr restore for one or two regs if that would add
15782 a save of lr.
15783
15784 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
15785
15786 PR target/70873
15787 * config/i386/i386.md
15788 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
15789 Change to post-epilogue_completed late splitter. Use sse_reg_operand
15790 as operand 0 predicate.
15791 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
15792 Ditto.
15793 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
15794 Ditto. Emit the pattern using RTX.
15795
15796 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
15797 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
15798 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
15799 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
15800 Ditto.
15801 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
15802 sse_reg_operand as operand 0 predicate.
15803
15804 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
15805 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
15806 instead of gen_rtx_REG.
15807 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
15808 Ditto.
15809
15810 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15811
15812 * function.c (emit_use_return_register_into_block): Delete.
15813 (gen_return_pattern): Delete.
15814 (emit_return_into_block): Delete.
15815 (active_insn_between): Delete.
15816 (convert_jumps_to_returns): Delete.
15817 (emit_return_for_exit): Delete.
15818 (thread_prologue_and_epilogue_insns): Delete all code dealing with
15819 simple_return for shrink-wrapped blocks.
15820 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
15821 end of blocks that need one.
15822 (get_unconverted_simple_return): Delete.
15823 (convert_to_simple_return): Delete.
15824 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
15825 (convert_to_simple_return): Ditto.
15826
15827 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15828
15829 * cfgcleanup.c (bb_is_just_return): New function.
15830 (try_optimize_cfg): Simplify jumps to return, branches to return,
15831 and branches around return.
15832
15833 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15834
15835 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
15836 branch to a return.
15837
15838 2016-05-04 Jakub Jelinek <jakub@redhat.com>
15839
15840 PR c++/70906
15841 PR c++/70933
15842 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
15843 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
15844 assert flags & OEP_HASH_CHECK, instead of asserting it
15845 never happens. Handle TARGET_EXPR.
15846 * fold-const.c (operand_equal_p): For hash verification,
15847 or in OEP_HASH_CHECK into flags.
15848
15849 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
15850
15851 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
15852 comment.
15853 (compute_samebase_partition_bases): Fix typo.
15854
15855 2016-05-04 Jakub Jelinek <jakub@redhat.com>
15856
15857 * config/i386/sse.md (vec_interleave_highv8sf,
15858 vec_interleave_lowv8sf, vec_interleave_highv4df,
15859 vec_interleave_lowv4df): Remove constraints from expanders.
15860
15861 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
15862
15863 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
15864
15865 * tree-inline.c (expand_call_inline): Fix path dealing with
15866 making lhs of call statement undefined.
15867
15868 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
15869
15870 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15871 Check availability on NODE, too.
15872 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
15873 (cgraph_node::call_for_symbol_and_aliases): Likewise.
15874 (varpool_node::call_for_symbol_and_aliase): Likewise.
15875 * ipa-pure-const.c (add_new_function): Analyze all bodies.
15876 (propagate_pure_const): Propagate across interposable functions, too.
15877 (skip_function_for_local_pure_const): Do not skip interposable bodies
15878 with aliases.
15879 (pass_local_pure_const::execute): Update.
15880
15881 2016-05-04 Marek Polacek <polacek@redhat.com>
15882
15883 * doc/invoke.texi: Document -Wdangling-else.
15884
15885 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15886
15887 * config.gcc: Error out when conflicting multilib is detected. Do not
15888 loop over multilibs since no combination is legal.
15889
15890 2016-05-04 Alan Modra <amodra@gmail.com>
15891
15892 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
15893 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
15894 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15895 Align .toc.
15896
15897 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
15898
15899 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
15900 Clean up p5600 comments.
15901
15902 2016-05-04 Richard Biener <rguenther@suse.de>
15903
15904 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
15905 constructor simplifications.
15906 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
15907
15908 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
15909
15910 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
15911 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
15912 result.set_rtx is null instead of aborting.
15913 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
15914 Always enable.
15915 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15916 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15917 *mov<mode>_store_postinc): New patterns.
15918
15919 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
15920
15921 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
15922 as commutative. Check both conversions are NOP.
15923 ((A & B) OP (C & B)): Remove.
15924
15925 2016-05-04 Alan Modra <amodra@gmail.com>
15926
15927 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15928
15929 2016-05-04 Alan Modra <amodra@gmail.com>
15930
15931 PR target/70866
15932 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15933 when cr2,3,4 are all fixed regs.
15934
15935 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
15936
15937 PR rtl-optimization/57193
15938 * opts.c (default_options_table): Revert OPT_frename_registers change.
15939 * doc/invoke.texi (-frename-registers, -O2): Likewise.
15940
15941 2016-05-03 Martin Sebor <msebor@redhat.com>
15942
15943 PR c++/66561
15944 * builtins.c (fold_builtin_FILE): New function.
15945 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15946 (fold_builtin_0): Call them.
15947 * gimplify.c (gimplify_call_expr): Remove the handling of
15948 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15949
15950 PR c++/66561
15951 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15952 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15953 constants.
15954
15955 PR c++/66639
15956 * doc/extend.texi (Function Names as Strings): Update __func__,
15957 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15958 constants.
15959
15960 2016-05-03 Jakub Jelinek <jakub@redhat.com>
15961 Richard Biener <rguenther@suse.de>
15962
15963 PR tree-optimization/70916
15964 * tree-if-conv.c: Include cfganal.h.
15965 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15966 and remove_fake_exit_edges around the optimization pass.
15967
15968 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
15969
15970 * cgraph.c (symbol_table::create_edge): Set inline_failed.
15971 (cgraph_edge::make_direct): Likewise.
15972 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15973 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15974 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15975 (CIF_THUNK): New code.
15976 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15977 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15978 (compute_inline_parameters): Set inline_failed for thunks.
15979 (inline_analyze_function): Cleanup.
15980 * ipa-inline.c (can_inline_edge_p): Do not deal with
15981 call_stmt_cannot_inline_p.
15982 (can_early_inline_edge_p): Likewise.
15983 (early_inliner): Initialize inline_failed.
15984 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15985
15986 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
15987
15988 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15989 from nonimm_ssenomem_operand.
15990 (nonimm_ssenomem_operand): New predicate.
15991 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15992 as operand 0 predicate.
15993 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15994 Disable unsupported alternatives using "enabled" attribute.
15995 Use register_ssemem_operand as operand 0 predicate.
15996 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15997
15998 2016-05-03 Marek Polacek <polacek@redhat.com>
15999
16000 PR c/70859
16001 * input.c (expansion_point_location): New function.
16002 * input.h (expansion_point_location): Declare.
16003
16004 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
16005
16006 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
16007 occurence with frame_offset_ ones.
16008
16009 2016-05-03 Alan Modra <amodra@gmail.com>
16010
16011 PR rtl-optimization/70890
16012 * ira.c (combine_and_move_insns): When moving def_insn, remove
16013 equivs on use_insn.
16014
16015 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
16016
16017 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
16018 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16019 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16020 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16021
16022 2016-05-03 Alan Modra <amodra@gmail.com>
16023
16024 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16025 for SAVE_MULTIPLE/STORE_MULTIPLE.
16026
16027 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16028
16029 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16030 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16031
16032 2016-05-03 Richard Biener <rguenther@suse.de>
16033
16034 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16035 default true.
16036 (gimplify_arg): Likewise.
16037 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16038 re-writing the result to a decl if required.
16039 (internal_get_tmp_var): Add allow_ssa parameter
16040 and override into_ssa with it.
16041 (get_formal_tmp_var): Adjust.
16042 (get_initialized_tmp_var): Add allow_ssa parameter.
16043 (gimplify_arg): Add allow_ssa parameter and avoid generating
16044 SSA names for the result false.
16045 (gimplify_call_expr): If the call may return twice do not
16046 gimplify parameters into SSA.
16047 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16048 (gimplify_modify_expr): Adjust assert. For noreturn calls
16049 with a SSA name LHS adjust its def.
16050 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16051 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16052 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16053 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16054 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
16055 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
16056 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16057 (optimize_target_teams): Do not allow SSA names for clause operands.
16058 (gimplify_expr): Likewise for where we mark the result addressable.
16059 * passes.def (pass_init_datastructures): Remove.
16060 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16061 (rewrite_stmt): Likewise.
16062 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16063 (replace_locals_op): Replace SSA names.
16064 (copy_gimple_seq_and_replace_locals): Init src_cfun.
16065 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16066 * cgraph.c (release_function_body): Free CFG annotations only
16067 when we have a CFG. Simplify.
16068 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16069 force_gimple_operand instead of get_initialized_tmp_var.
16070 * tree-pass.h (make_pass_init_datastructures): Remove.
16071 * tree-ssa.c (execute_init_datastructures): Remove.
16072 (pass_data_init_datastructures): Likewise.
16073 (class pass_init_datastructures): Likewise.
16074 (make_pass_init_datastructures): Likewise.
16075 * omp-low.c (create_omp_child_function): Init SSA data structures.
16076 (grid_expand_target_grid_body): Likewise.
16077 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16078 name before adding it to names_to_release.
16079 (remove_bb): Always release SSA defs.
16080 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16081 before dereferencing it.
16082 * cgraphunit.c (init_lowered_empty_function): Always
16083 int SSA data structures.
16084 * tree-ssanames.c (release_defs): Remove assert that we are in
16085 SSA form.
16086 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16087
16088 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16089 Uros Bizjak <ubizjak@gmail.com>
16090
16091 PR rtl-optimization/70467
16092 * config/i386/predicates.md (x86_64_hilo_int_operand,
16093 x86_64_hilo_general_operand): New predicates.
16094 * config/i386/constraints.md (Wd): New constraint.
16095 * config/i386/i386.md (mode attr di): Use Wd instead of e.
16096 (general_hilo_operand): New mode attr.
16097 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16098 instead of <general_operand>.
16099 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16100 x86_64_hilo_general_operand instead of <general_operand>.
16101
16102 2016-05-03 Jakub Jelinek <jakub@redhat.com>
16103
16104 PR tree-optimization/70916
16105 * tree-if-conv.c (constant_or_ssa_name): Removed.
16106 (fold_build_cond_expr): Use is_gimple_val instead of
16107 constant_or_ssa_name.
16108
16109 PR tree-optimization/70916
16110 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16111 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16112
16113 PR target/49244
16114 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16115 (optimize_atomic_bit_test_and): New function.
16116 (pass_fold_builtins::execute): Use it.
16117 * optabs.def (atomic_bit_test_and_set_optab,
16118 atomic_bit_test_and_complement_optab,
16119 atomic_bit_test_and_reset_optab): New optabs.
16120 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16121 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16122 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16123 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16124 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16125 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16126 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16127 * doc/md.texi (atomic_bit_test_and_set@var{mode},
16128 atomic_bit_test_and_complement@var{mode},
16129 atomic_bit_test_and_reset@var{mode}): Document.
16130 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16131 atomic_bit_test_and_complement<mode>,
16132 atomic_bit_test_and_reset<mode>): New expanders.
16133 (atomic_bit_test_and_set<mode>_1,
16134 atomic_bit_test_and_complement<mode>_1,
16135 atomic_bit_test_and_reset<mode>_1): New insns.
16136
16137 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
16138
16139 PR rtl-optimization/70687
16140 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
16141 instead of unsigned HOST_WIDE_INT.
16142
16143 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
16144
16145 PR rtl-optimization/44281
16146 * hard-reg-set.h (struct target_hard_regs): New field
16147 x_fixed_nonglobal_reg_set.
16148 (fixed_nonglobal_reg_set): New macro.
16149 * reginfo.c (init_reg_sets_1): Initialize it.
16150 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16151 of fixed_reg_set.
16152 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16153
16154 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16155
16156 PR tree-optimization/56541
16157 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16158 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16159 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16160 (any_complicated_phi): new static variable.
16161 (aggressive_if_conv): delete.
16162 (if_convertible_phi_p): support phis with more than two arguments.
16163 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16164 critical pred edges.
16165 (ifcvt_split_critical_edges): support phis with more than two
16166 arguments by checking new parameter. only split critical edges
16167 if needed.
16168 (tree_if_conversion): handle simd pragma marked loop using new
16169 local variable aggressive_if_conv. check any_complicated_phi.
16170
16171 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16172
16173 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16174 before using it.
16175
16176 2016-05-03 Bin Cheng <bin.cheng@arm.com>
16177
16178 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16179 cbase.
16180
16181 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16182
16183 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16184 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16185 define_insn_and_split.
16186 (mulsi3_i): New define_insn_and_split.
16187 (mulsi3_call): Convert to define_insn.
16188 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16189 Remove constraints.
16190
16191 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16192
16193 * machmode.h (mode_complex): Add support to give the complex mode
16194 for a given mode.
16195 (GET_MODE_COMPLEX_MODE): Likewise.
16196 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16197 stored by build_complex_type and gfc_build_complex_type instead of
16198 trying to figure out the appropriate mode based on the size. Raise
16199 an assertion error, if the type was not set.
16200 * genmodes.c (struct mode_data): Add field for the complex type of
16201 the given type.
16202 (blank_mode): Likewise.
16203 (make_complex_modes): Remember the complex mode created in the
16204 base type.
16205 (emit_mode_complex): Write out the mode_complex array to map a
16206 type mode to the complex version.
16207 (emit_insn_modes_c): Likewise.
16208 * tree.c (build_complex_type): Set the complex type to use before
16209 calling layout_type.
16210 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16211 support for __float128 complex datatypes.
16212 (rs6000_hard_regno_mode_ok): Likewise.
16213 (rs6000_setup_reg_addr_masks): Likewise.
16214 (rs6000_complex_function_value): Likewise.
16215 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16216 __float128 and __ibm128 complex.
16217 (FLOAT128_IBM_P): Likewise.
16218 (ALTIVEC_ARG_MAX_RETURN): Likewise.
16219 * doc/extend.texi (Additional Floating Types): Document that
16220 -mfloat128 must be used to enable __float128. Document complex
16221 __float128 and __ibm128 support.
16222
16223 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16224
16225 PR target/49244
16226 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16227 char/short arguments promoted to int because of promote_prototypes.
16228
16229 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16230
16231 * config/i386/predicates.md (register_ssemem_operand): New predicate.
16232 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16233 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16234 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
16235 alternatives using "enabled" attribute. Use register_ssemem_operand
16236 as operand 1 predicate.
16237 (*cmpi<unord>xf_i387): Split XFmode pattern from
16238 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16239 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16240 *absneg<mode>2_i387. Disable unsupported alternatives using
16241 "enabled" attribute.
16242 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16243
16244 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16245
16246 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16247 marker.
16248 (oacc_loop_process): Check mask for loop termination.
16249
16250 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16251
16252 * cif-code.def (CIF_THUNK): Add.
16253 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16254 accidental change.
16255
16256 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
16257
16258 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16259 (dump_inline_summary): Dump it.
16260 (fp_expression_p): New predicate.
16261 (estimate_function_body_sizes): Use it.
16262 (inline_merge_summary): Merge fp_expressions.
16263 (inline_read_section): Read fp_expressions.
16264 (inline_write_summary): Write fp_expressions.
16265 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16266 codegen boundary if either caller or callee is !fp_expressions.
16267 * ipa-inline.h (inline_summary): Add fp_expressions.
16268 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16269 to fp_expressions be sure the fp generation flags are updated.
16270
16271 2016-05-02 Jakub Jelinek <jakub@redhat.com>
16272
16273 PR rtl-optimization/70467
16274 * cse.c (cse_insn): Handle no-op MEM moves after folding.
16275
16276 PR rtl-optimization/70467
16277 * ipa-pure-const.c (check_call): Handle internal calls even in
16278 ipa mode like in local mode.
16279
16280 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16281
16282 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16283
16284 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16285
16286 * match.pd (X u< X, X u> X): New transformations.
16287
16288 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16289
16290 * flag-types.h (enum warn_strict_overflow_code): Move ...
16291 * coretypes.h: ... here.
16292 * fold-const.h (fold_overflow_warning): Declare.
16293 * fold-const.c (fold_overflow_warning): Make non-static.
16294 (fold_comparison): Move the transformation of X +- C1 CMP C2
16295 into X CMP C2 -+ C1 ...
16296 * match.pd: ... here.
16297 * gimple-fold.c (fold_stmt_1): Protect with
16298 fold_defer_overflow_warnings.
16299
16300 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
16301
16302 * omp-low.c (struct oacc_loop): Add 'inner' field.
16303 (new_oacc_loop_raw): Initialize it to zero.
16304 (oacc_loop_fixed_partitions): Initialize it.
16305 (oacc_loop_auto_partitions): Partition outermost loop to outermost
16306 available partitioning.
16307
16308 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16309
16310 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16311 register_operand.
16312 (umulsidi3): Likewise.
16313 (indirect_jump): Fix jump instruction assembly patterns.
16314
16315 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
16316
16317 PR target/70860
16318 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16319 (nvptx_function_value): Assert non-NULL cfun.
16320
16321 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
16322
16323 PR rtl-optimization/70886
16324 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16325
16326 * cselib.h (rtx_equal_for_cselib_1): Declare.
16327 (rtx_equal_for_cselib_p: New inline function.
16328 * cselib.c (rtx_equal_for_cselib_p): Delete.
16329 (rtx_equal_for_cselib_1): Make public.
16330
16331 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
16332
16333 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16334 (register_mixssei387nonimm_operand): Remove predicate.
16335 * config/i386/i386.md (*fop_<mode>_comm): Merge from
16336 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
16337 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
16338 for TARGET_MIX_SSE_I387 alternatives.
16339 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16340 Disable unsupported alternatives using "enabled" attribute. Use
16341 nonimm_ssenomem_operand as operand 1 predicate. Also check
16342 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16343
16344 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16345
16346 * tree.c (cst_and_fits_in_hwi): Simplify.
16347
16348 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16349
16350 * tree.h (wi::to_wide): New function.
16351 * expr.c (expand_expr_real_1): Use wi::to_wide.
16352 * fold-const.c (int_const_binop_1): Likewise.
16353 (extract_muldiv_1): Likewise.
16354
16355 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16356
16357 * wide-int.h: Update offset_int and widest_int documentation.
16358 (WI_SIGNED_SHIFT_RESULT): New macro.
16359 (wi::binary_shift): Define signed_shift_result_type for
16360 shifts on offset_int- and widest_int-like types.
16361 (generic_wide_int): Support <<= and >>= if << and >> are supported.
16362 * tree.h (int_bit_position): Use shift operators instead of wi::
16363 shifts.
16364 * alias.c (adjust_offset_for_component_ref): Likewise.
16365 * expr.c (get_inner_reference): Likewise.
16366 * fold-const.c (fold_comparison): Likewise.
16367 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16368 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16369 * tree-dfa.c (get_ref_base_and_extent): Likewise.
16370 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16371 (stmt_kills_ref_p): Likewise.
16372 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16373 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16374 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16375 (ao_ref_init_from_vn_reference): Likewise.
16376
16377 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * wide-int.h: Update offset_int and widest_int documentation.
16380 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16381 (wi::binary_traits): Allow ordered comparisons between offset_int and
16382 offset_int, between widest_int and widest_int, and between either
16383 of these types and basic C types.
16384 (operator <, <=, >, >=): Define for the same combinations.
16385 * tree.h (tree_int_cst_lt): Use comparison operators instead
16386 of wi:: comparisons.
16387 (tree_int_cst_le): Likewise.
16388 * gimple-fold.c (fold_array_ctor_reference): Likewise.
16389 (fold_nonarray_ctor_reference): Likewise.
16390 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16391 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16392 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16393 * tree-sra.c (completely_scalarize): Likewise.
16394 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16395 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16396 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16397 (check_for_binary_op_overflow): Likewise.
16398 (search_for_addr_array): Likewise.
16399 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16400
16401 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16402
16403 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16404 (arc_save_restore): Likewise.
16405 (arc_dwarf_register_span): Likewise.
16406 (arc_output_pic_addr_const): Initialize suffix variable.
16407
16408 2016-05-02 Martin Liska <mliska@suse.cz>
16409
16410 * symbol-summary.h (function_summary::function_summary):
16411 Remove checking assert for all cgraph nodes.
16412 (function_summary::get): Check summary_uid.
16413 (symtab_insertion): Check summary_uid.
16414
16415 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
16416
16417 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16418 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16419 bmaskn instruction.
16420 (arc_dwarf_register_span): Remove enum keyword.
16421 (compact_memory_operand_p): New function.
16422 * config/arc/arc.h (reg_class): Add code density register classes.
16423 (REG_CLASS_NAMES): Likewise.
16424 (REG_CLASS_CONTENTS): Likewise.
16425 * config/arc/arc.md (*movqi_insn): Add code density instructions.
16426 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16427 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16428 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16429 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16430 constraints.
16431 (h, Rcd, Rsd, Rzd): New register constraints.
16432 (T): Use compact_memory_operand_p function.
16433 * config/arc/predicates.md (compact_load_memory_operand): Remove.
16434
16435 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16436
16437 * config/sh/sh.md (*negnegt, *movtt): Remove.
16438
16439 2016-05-02 Marek Polacek <polacek@redhat.com>
16440 Tom de Vries <tom@codesourcery.com>
16441
16442 PR tree-optimization/70700
16443 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16444 bigger than FIRST_REF_NODE.
16445
16446 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
16447
16448 PR target/52898
16449 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16450 TARGET_CMPEQDI_T.
16451 (prepare_cbranch_operands): Don't use scratch register. Assume that
16452 function is used when pseudos can be created.
16453 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
16454 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16455 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16456 define_expand. Allow it only when pseudos can be created.
16457 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16458
16459 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
16460
16461 * config/i386/constraints.md (BC): Only allow -1 operands.
16462 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16463 Add "enabled" attribute. Update XI mode attribute calculation.
16464 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16465 (*movoi_internal_avx): Update XI mode attribute calculation.
16466 (*movti_internal): Ditto.
16467
16468 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16469
16470 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16471 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16472
16473 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
16474
16475 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16476 statement on instruction code. Remove trailing spaces.
16477 (altivec_expand_stv_builtin): Likewise.
16478
16479 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16480
16481 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16482 (TARGET_FPU_DOUBLE): Simplify.
16483 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16484 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16485 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16486 with 'TARGET_FPU_DOUBLE'.
16487 * config/sh/sh.md: Likewise.
16488
16489 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
16490
16491 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16492 SH_DIV_STR_FOR_SIZE): Remove.
16493 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16494 SH_DIV_STR_FOR_SIZE): Remove.
16495
16496 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
16497
16498 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16499 logical_reg_operand): Delete.
16500 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16501 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16502 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16503 match_operand and match_test.
16504 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
16505 variables on their first use. Return bool values.
16506 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16507 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16508 arith_reg_operand for input operand. Remove empty constraints.
16509 (xorsi3): Delete.
16510 (*xorsi3_compact): Rename to xorsi3.
16511 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16512 (*zero_extend<mode>si2_disp_mem): Update comment.
16513 (mov_nop): Delete.
16514
16515 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16516
16517 * config/sh/t-sh: Remove SH5 support.
16518 * config.gcc: Likewise.
16519 * configure: Likewise.
16520
16521 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16522
16523 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16524
16525 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
16526
16527 * config/sh/sh.c (register_sh_passes, sh_option_override,
16528 sh_print_operand, prepare_move_operands,
16529 sh_can_follow_jump): Remove TARGET_SH1 checks.
16530 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16531 PROMOTE_MODE): Likewise.
16532 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16533 movdi): Likewise.
16534
16535 2016-04-30 Alan Modra <amodra@gmail.com>
16536
16537 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16538 restoring when fixed_reg_p, but allow out-of-line or stmw save.
16539 Check for user regs later to avoid unnecessary looping over regs.
16540 Merge user reg check with non-saved reg check. Don't force
16541 inline VR restore when static chain used.
16542 (rs6000_frame_related): Omit eh_frame info for user regs when
16543 saving.
16544 (fixed_regs_p): Delete.
16545
16546 2016-04-30 Alan Modra <amodra@gmail.com>
16547
16548 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16549 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
16550 Update all uses.
16551
16552 2016-04-30 Alan Modra <amodra@gmail.com>
16553
16554 PR target/69645
16555 * config/rs6000/rs6000.c (fixed_reg_p): New function.
16556 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
16557 Update all uses.
16558
16559 2016-04-30 Alan Modra <amodra@gmail.com>
16560
16561 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16562 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
16563 flag_pic test for Darwin.
16564
16565 2016-04-30 Alan Modra <amodra@gmail.com>
16566
16567 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16568 throw_calls_crossed.
16569 (REG_FREQ_CALLS_CROSSED): Delete.
16570 (REG_N_THROWING_CALLS_CROSSED): Delete.
16571 * regstat.c (regstat_bb_compute_ri): Don't calculate
16572 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16573 (dump_reg_info): Don't print call cross frequency.
16574 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16575 and REG_N_THROWING_CALLS_CROSSED.
16576
16577 2016-04-30 Alan Modra <amodra@gmail.com>
16578
16579 * regs.h (struct reg_info_t): Delete live_length.
16580 (REG_LIVE_LENGTH): Delete macro.
16581 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16582 local_live, local_processed and local_live_last_luid params.
16583 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
16584 Formatting fixes.
16585 (regstat_compute_ri): Adjust for above. Don't set
16586 REG_LIVE_LENGTH.
16587 (dump_reg_info): Don't print live length.
16588 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16589 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
16590 Localize loop_depth var.
16591
16592 2016-04-30 Alan Modra <amodra@gmail.com>
16593
16594 * ira.c (enum valid_equiv): New.
16595 (validate_equiv_mem): Return enum.
16596 (update_equiv_mem): Create replacement in more cases.
16597 (add_store_equivs): Update validate_equiv_mem call.
16598
16599 2016-04-30 Alan Modra <amodra@gmail.com>
16600
16601 * ira.c (combine_and_move_insns): Rather than scanning insns,
16602 use DF infrastucture to find use and def insns.
16603
16604 2016-04-30 Alan Modra <amodra@gmail.com>
16605
16606 ira.c (combine_and_move_insns): Move invariant conditions..
16607 (ira.c): ..to here. Call combine_and_move_insns before
16608 add_store_equivs. Call grow_reg_equivs later. Allocate
16609 req_equiv later using max_reg_num() rather than global max_regno.
16610 (contains_replace_regs): Delete.
16611 (add_store_equivs): Remove contains_replace_regs test.
16612
16613 2016-04-30 Alan Modra <amodra@gmail.com>
16614
16615 * ira.c (struct equiv_mem_data): New.
16616 (equiv_mem, equiv_mem_modified): Delete static vars.
16617 (validate_equiv_mem_from_store): Use "data" param to communicate..
16618 (validate_equiv_mem): ..from here.
16619
16620 2016-04-30 Alan Modra <amodra@gmail.com>
16621
16622 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
16623 split out from..
16624 (update_reg_equivs): ..here. Move allocation and freeing of
16625 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
16626 end_alias_analysis to..
16627 (ira): ..here.
16628
16629 2016-04-30 Alan Modra <amodra@gmail.com>
16630
16631 * ira.c (pdx_subregs): Delete.
16632 (struct equivalence): Add pdx_subregs field.
16633 (set_paradoxical_subreg): Remove pdx_subregs param. Update
16634 pdx_subregs access.
16635 (update_equiv_regs): Don't create or free pdx_subregs. Update
16636 pdx_subregs access.
16637
16638 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16639
16640 * config/rs6000/altivec.h: Change definitions of vec_xl and
16641 vec_xst.
16642 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
16643 (LD_ELEMREV_V2DI): New.
16644 (LD_ELEMREV_V4SF): New.
16645 (LD_ELEMREV_V4SI): New.
16646 (LD_ELEMREV_V8HI): New.
16647 (LD_ELEMREV_V16QI): New.
16648 (ST_ELEMREV_V2DF): New.
16649 (ST_ELEMREV_V2DI): New.
16650 (ST_ELEMREV_V4SF): New.
16651 (ST_ELEMREV_V4SI): New.
16652 (ST_ELEMREV_V8HI): New.
16653 (ST_ELEMREV_V16QI): New.
16654 (XL): New.
16655 (XST): New.
16656 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16657 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
16658 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
16659 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
16660 (altivec_expand_builtin): Add handling for
16661 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
16662 (rs6000_invalid_builtin): Add error-checking for
16663 RS6000_BTM_P9_VECTOR.
16664 (altivec_init_builtins): Define builtins used to implement vec_xl
16665 and vec_xst.
16666 (rs6000_builtin_mask_names): Define power9-vector.
16667 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
16668 (RS6000_BTM_P9_VECTOR): Define.
16669 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
16670 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
16671 (vsx_ld_elemrev_v2df): Likewise.
16672 (vsx_ld_elemrev_v4sf): Likewise.
16673 (vsx_ld_elemrev_v4si): Likewise.
16674 (vsx_ld_elemrev_v8hi): Likewise.
16675 (vsx_ld_elemrev_v16qi): Likewise.
16676 (vsx_st_elemrev_v2df): Likewise.
16677 (vsx_st_elemrev_v2di): Likewise.
16678 (vsx_st_elemrev_v4sf): Likewise.
16679 (vsx_st_elemrev_v4si): Likewise.
16680 (vsx_st_elemrev_v8hi): Likewise.
16681 (vsx_st_elemrev_v16qi): Likewise.
16682 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
16683 grammar.
16684
16685 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
16686
16687 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
16688 out into ...
16689 (simplify_control_stmt_condition_1): ... here. Recurse into
16690 BIT_AND_EXPRs and BIT_IOR_EXPRs.
16691
16692 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
16693
16694 PR target/69810
16695 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
16696 (zero_extendqi<mode>2_dot): Revert earlier conversion from
16697 define_insn_and_split to define_insn.
16698 (zero_extendqi<mode>2_dot2): Same.
16699 (extendqi<mode>2_dot): Same.
16700 (extendqi<mode>2_dot2): Same.
16701
16702 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16703
16704 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
16705 (probe_stack): New expander.
16706 (probe_stack_<mode>): New insn pattern.
16707
16708 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16709
16710 * config/i386/i386.md
16711 (operations with memory inputs setting flags peephole2):
16712 Remove uneeded REG_P checks. Cleanup pattern generation.
16713
16714 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
16715
16716 * tree-vect-loop.c (vect_transform_loop): Fix
16717 nb_iterations_upper_bound computation for vectorized loop.
16718
16719 2016-04-29 Marek Polacek <polacek@redhat.com>
16720 Jakub Jelinek <jakub@redhat.com>
16721
16722 PR sanitizer/70342
16723 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
16724 TARGET_EXPR_SLOT as a base.
16725
16726 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
16727
16728 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
16729 with 'rCm2' constraints to limit possible immediate size.
16730 (*load_zeroextendqisi_update): Likewise.
16731 (*load_signextendqisi_update): Likewise.
16732 (*loadhi_update): Likewise.
16733 (*load_zeroextendhisi_update): Likewise.
16734 (*load_signextendhisi_update): Likewise.
16735 (*loadsi_update): Likewise.
16736 (*loadsf_update): Likewise.
16737
16738 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16739
16740 * config/i386/predicates.md (constm1_operand): Fix comparison.
16741
16742 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
16743
16744 * testsuite/gcc.target/arc/ieee_eq.c: New test.
16745
16746 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
16747
16748 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
16749 remaining SH5 related settings.
16750 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
16751 shmedia_prepare_call_address): Delete.
16752 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
16753 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
16754 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
16755 UNSUPPORTED_SH2A): Remove m5 checks.
16756 (sh_divide_strategy_e): Remove SH5 division strategies.
16757 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
16758 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
16759
16760 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16761
16762 * config/s390/s390.c (s390_rtx_costs): Update documentation.
16763
16764 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16765
16766 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
16767 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
16768 Change lder to ldr.
16769 * config/s390/vector.md ("mov<mode>"): Likewise.
16770
16771 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
16772
16773 * config/s390/constraints.md ("U", "W"): Invoke
16774 s390_mem_constraint with "ZR" and "ZT".
16775 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
16776 addresses when using LRA. Accept also short displacements for S
16777 and T constraints. Do not check for long displacement target for
16778 S and T constraints.
16779 (s390_mem_constraint): Remove handling of U and W constraints.
16780 * config/s390/s390.md (various patterns): Remove the short
16781 displacement constraints (Q and R) if a long displacement
16782 constraint is present. Add longdisp as required CPU capability.
16783 * config/s390/vector.md: Likewise.
16784 * config/s390/vx-builtins.md: Likewise.
16785
16786 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16787
16788 PR target/60040
16789 * reload1.c (reload): Call finish_spills before
16790 restarting reload loop. Skip select_reload_regs
16791 if update_eliminables_and_spill returns true.
16792
16793 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
16794
16795 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
16796 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
16797 (umulhisi3_imm): Update predicates and constraint letters.
16798 (umulhisi3_reg): Declare instruction as commutative.
16799 * config/arc/constraints.md (J12, J16): New constraints.
16800 * config/arc/predicates.md (short_unsigned_const_operand): New
16801 predicate.
16802 (arc_short_operand): Likewise.
16803 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
16804
16805 2016-04-29 Richard Biener <rguenther@suse.de>
16806
16807 PR tree-optimization/13962
16808 PR tree-optimization/65686
16809 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
16810 * tree-ssa-alias.c (ptrs_compare_unequal): New function
16811 using PTA to compare pointers.
16812 * match.pd: Add pattern for pointer equality compare simplification
16813 using ptrs_compare_unequal.
16814
16815 2016-04-29 Richard Biener <rguenther@suse.de>
16816
16817 * stor-layout.c (layout_type): Do not build a pointer-to-element
16818 type for arrays.
16819
16820 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
16821
16822 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
16823 Use SWI mode iterator. Use general_reg_operand predicate.
16824 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
16825 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
16826 predicates.
16827
16828 2016-04-29 Jakub Jelinek <jakub@redhat.com>
16829
16830 PR middle-end/70843
16831 * fold-const.c (operand_equal_p): Don't verify hash value equality
16832 if arg0 == arg1.
16833 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
16834 and OMP_CLAUSE.
16835
16836 2016-04-28 Jakub Jelinek <jakub@redhat.com>
16837
16838 PR target/70858
16839 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
16840 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
16841 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
16842 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
16843 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
16844
16845 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16846
16847 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
16848 to info. Don't initialize separate fields to 0. Clean up
16849 formatting a bit.
16850
16851 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
16852
16853 * config/i386/i386.md (peephole2s for operations with memory inputs):
16854 Use SWI mode iterator.
16855 (peephole2s for operations with memory outputs): Ditto.
16856 Do not check for stack checking probe.
16857
16858 (probe_stack): Remove expander.
16859
16860 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16861 Andrew Burgess <andrew.burgess@embecosm.com>
16862
16863 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
16864 operands as 32-bits.
16865
16866 2016-04-28 Jason Merrill <jason@redhat.com>
16867
16868 * gdbinit.in: Skip line-map.h.
16869
16870 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16871 Andrew Burgess <andrew.burgess@embecosm.com>
16872
16873 * config/arc/arc.c (arc_conditional_register_usage): Take
16874 TARGET_RRQ_CLASS into account.
16875 (arc_print_operand): Support printing 'p' and 's' operands.
16876 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
16877 as 0.
16878 (TARGET_RRQ_CLASS): Define.
16879 (IS_POWEROF2_OR_0_P): Define.
16880 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
16881 alternatives.
16882 (*tst_movb): New define_insn.
16883 (*tst): Avoid recognition if it could prevent '*tst_movb'
16884 combination; replace c/CnL with c/Chs alternative.
16885 (*tst_bitfield_tst): New define_insn.
16886 (*tst_bitfield_asr): New define_insn.
16887 (*tst_bitfield): New define_insn.
16888 (andsi3_i): Add Rrq variant.
16889 (extzv): New define_expand.
16890 (insv): New define_expand.
16891 (*insv_i): New define_insn.
16892 (*movb): New define_insn.
16893 (*movb_signed): New define_insn.
16894 (*movb_high): New define_insn.
16895 (*movb_high_signed): New define_insn.
16896 (*movb_high_signed + 1): New define_split pattern.
16897 (*mrgb): New define_insn.
16898 (*mrgb + 1): New define_peephole2 pattern.
16899 (*mrgb + 2): New define_peephole2 pattern.
16900 * config/arc/arc.opt (mbitops): New option for nps400, uses
16901 TARGET_NPS_BITOPS_DEFAULT.
16902 * config/arc/constraints.md (q): Make register class conditional.
16903 (Rrq): New register constraint.
16904 (Chs): New constraint.
16905 (Clo): New constraint.
16906 (Chi): New constraint.
16907 (Cbf): New constraint.
16908 (Cbn): New constraint.
16909 (C18): New constraint.
16910 (Cbi): New constraint.
16911
16912 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16913
16914 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16915 dst->popcount.
16916 (bitmap_intersection_of_preds): Ditto.
16917 (bitmap_union_of_succs): Ditto.
16918 (bitmap_union_of_preds): Ditto.
16919 * sbitmap.c (do_popcount): Delete.
16920 (BITMAP_DEBUGGING): Delete.
16921 (sbitmap_verify_popcount): Delete.
16922 (sbitmap_alloc): Don't initialize the popcount field.
16923 (sbitmap_alloc_with_popcount): Delete.
16924 (sbitmap_resize): Don't resize the popcount array.
16925 (sbitmap_vector_alloc): Don't initialize the popcount field.
16926 (bitmap_copy): Don't copy the popcount array.
16927 (bitmap_clear): Don't clear the popcount array.
16928 (bitmap_clear): Delete the popcount array handling.
16929 (bitmap_ior_and_compl): Delete the popcount assert.
16930 (bitmap_not): Ditto.
16931 (bitmap_and_compl): Ditto.
16932 (bitmap_and): Delete the popcount array handling.
16933 (bitmap_xor): Ditto.
16934 (bitmap_ior): Ditto.
16935 (bitmap_or_and): Delete the popcount assert.
16936 (bitmap_and_or): Ditto.
16937 (popcount_table): Delete.
16938 (sbitmap_elt_popcount): Delete.
16939 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16940 (bitmap_set_bit): Delete the popcount assert.
16941 (bitmap_clear_bit): Ditto.
16942 (sbitmap_free): Don't free the popcount array.
16943 (sbitmap_alloc_with_popcount): Delete declaration.
16944 (sbitmap_popcount): Ditto.
16945
16946 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16947 Andrew Burgess <andrew.burgess@embecosm.com>
16948
16949 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16950 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16951 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16952 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16953 * config/arc/arc.opt (mcmem): New option.
16954 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16955 supply length for r/m alternative.
16956 (*extendqisi2_ac): Likewise.
16957 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16958 r/Uex alternative.
16959 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16960 (movhi_insn): Likewise.
16961 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16962 (*zero_extendqihi2_i): Add r/Ucm alternative.
16963 (*zero_extendqisi2_ac): Likewise.
16964 (*zero_extendhisi2_i): Likewise.
16965 * config/arc/constraints.md (Uex): New memory constraint.
16966 (Ucm): New define_constraint.
16967 * config/arc/predicates.md (long_immediate_loadstore_operand):
16968 Return 0 for MEM with cmem_address address.
16969 (cmem_address_0): New predicates.
16970 (cmem_address_1): Likewise.
16971 (cmem_address_2): Likewise.
16972 (cmem_address): Likewise.
16973
16974 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
16975
16976 * config/rs6000/rs6000.c (machine_function): Rename
16977 insn_chain_scanned_p to spe_insn_chain_scanned_p.
16978 (rs6000_stack_info): Adjust.
16979
16980 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
16981 Andrew Burgess <andrew.burgess@embecosm.com>
16982
16983 * config/arc/constraints.md (Usd): Convert to define_constraint.
16984 (Us<): Likewise.
16985 (Us>): Likewise.
16986
16987 2016-04-28 Jakub Jelinek <jakub@redhat.com>
16988
16989 PR target/70821
16990 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16991 Add new peephole2 where the first insn is *mov<mode>_or instead of
16992 *mov<mode>_internal.
16993
16994 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
16995
16996 * tracer.c (bb_seen): Make static.
16997
16998 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
16999
17000 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
17001 support, setup defaults.
17002 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
17003 * config/arc/arc.c (arc_init): Add NPS400 support.
17004 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
17005 (TARGET_ARC700): NPS400 is also an ARC700.
17006 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
17007
17008 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17009
17010 PR target/70668
17011 * config/nds32/nds32.md (casesi): Don't access the operands array
17012 out of bounds.
17013
17014 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17015
17016 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
17017 (or $-1,reg peephole2): Ditto.
17018 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17019
17020 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
17021
17022 * doc/extend.texi (Common Function Attributes) [optimize]:
17023 Discourage use of the optimize attribute.
17024
17025 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
17026
17027 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17028 special case builtin.
17029 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17030 ALTIVEC_BUILTIN_VEC_ADDE.
17031 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17032 support for ALTIVEC_BUILTIN_VEC_ADDE.
17033 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17034 for __builtin_vec_adde.
17035
17036 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17037
17038 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17039 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17040
17041 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17042
17043 PR testsuite/70595
17044 * doc/sourcebuild.texi (Effective-Target Keywords, Other
17045 attributes): Document cilkplus_runtime.
17046
17047 2016-04-28 Martin Jambor <mjambor@suse.cz>
17048
17049 * tree-cfg.c (verify_expr): Verify that local declarations belong to
17050 this function. Call verify_expr on MEM_REFs and bases of other
17051 handled_components.
17052
17053 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17054
17055 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17056 for WORD_REGISTER_OPERATIONS to runtime check.
17057
17058 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17059
17060 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17061
17062 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17063
17064 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17065 big-endian compilation.
17066 * config/arc/arc.md (addf3): Likewise.
17067 (subdf3): Likewise.
17068 (muldf3): Likewise.
17069
17070 2016-04-28 Richard Biener <rguenther@suse.de>
17071
17072 PR tree-optimization/70840
17073 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17074 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17075 Mark x * pow(x,c) -> pow(x,c+1) commutative.
17076 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17077
17078 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17079
17080 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17081 and explain why in a comment.
17082
17083 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17084
17085 * config/arc/arc.md (cpu_facility): Add fpx variant.
17086 (subdf3): Prohibit use reverse sub when assist operations option
17087 is enabled.
17088 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17089 instructions only when FPX is enabled.
17090 * testsuite/gcc.target/arc/trsub.c: New test.
17091
17092 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17093
17094 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17095 mult_operator when calculating "type" attribute.
17096 (*fop_<mode>_1_i387): Ditto.
17097 (*fop_xf_1_i387): Ditto.
17098 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17099 Use std::swap to swap operands. Use RTL expressions to generate
17100 converted pattern.
17101
17102 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17103 Joern Rennecke <joern.rennecke@embecosm.com>
17104
17105 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17106 declaration.
17107 (emit_pic_move): Remove.
17108 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17109 * config/arc/arc.c (emit_pic_move): Removed.
17110 (TARGET_HAVE_TLS): Define.
17111 (arc_conditional_register_usage): Test for arc_tp_regno.
17112 (arc_print_operand, arc_print_operand_address): Handle TLS
17113 unspecs.
17114 (arc_needs_pcl_p): New function.
17115 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17116 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17117 (arc_raw_symbolic_reference_mentioned_p): Likewise.
17118 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17119 (arc_legitimize_tls_address): Likewise.
17120 (DTPOFF_ZERO_SYM): Define.
17121 (arc_legitimize_pic_address): Make it static, handle TLS cases.
17122 (arc_output_pic_addr_const): Print TLS unspecs.
17123 (prepare_pic_move): New function, replaces emit_pic_move.
17124 (arc_legitimate_constant_p): Handle TLS unspecs.
17125 (arc_legitimate_address_p): Likewise.
17126 (arc_rewrite_small_data_p): Use assert for TLS constants.
17127 (prepare_move_operands): Use prepare_pic_move.
17128 (arc_legitimize_address): Legitimize tls addresses.
17129 (arc_epilogue_uses): Check for arc_tp_regno.
17130 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17131 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17132 Define.
17133 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17134 Likewise.
17135 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17136 %(arc_tls_extra_start_spec).
17137 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17138 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17139 (EH_USES): Define.
17140 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17141 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17142 (UNSPEC_TLS_OFF): Add.
17143 (R10_REG): Define.
17144 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17145 (get_thread_pointersi): New patterns.
17146 * config/arc/arc.opt (mtp-regno): New option.
17147 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17148 (move_dest_operand): Likewise.
17149 * configure: Regenerate.
17150 * configure.ac: Add arc*-*-* case to test for tls.
17151 * doc/invoke.texi (ARC options): Document mtp-regno.
17152
17153 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
17154
17155 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17156 the new ARC HS SIMD instructions.
17157 (arc_preferred_simd_mode): New function.
17158 (arc_autovectorize_vector_sizes): Likewise.
17159 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17160 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17161 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17162 (arc_init_builtins): Add new SIMD builtin types.
17163 (arc_split_move): Handle 64 bit vector moves.
17164 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17165 (TARGET_PLUS_QMACW): Define.
17166 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17167 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17168 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17169 (VSUBADD4H): New builtins.
17170 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17171 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17172
17173 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
17174 Matthias Klose <doko@debian.org>
17175
17176 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17177
17178 2016-04-28 Richard Biener <rguenther@suse.de>
17179
17180 PR middle-end/70777
17181 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17182 canonicalization.
17183
17184 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
17185
17186 * common/config/sh/sh-common.c: Remove SH5 support.
17187 * config/sh/constraints.md: Likewise.
17188 * config/sh/config/sh/elf.h: Likewise.
17189 * config/sh/linux.h: Likewise.
17190 * config/sh/netbsd-elf.h: Likewise.
17191 * config/sh/predicates.md: Likewise.
17192 * config/sh/sh-c.c: Likewise.
17193 * config/sh/sh-protos.h: Likewise.
17194 * config/sh/sh.c: Likewise.
17195 * config/sh/sh.h: Likewise.
17196 * config/sh/sh.md: Likewise.
17197 * config/sh/sh.opt: Likewise.
17198 * config/sh/sync.md: Likewise.
17199 * config/sh/sh64.h: Delete.
17200 * config/sh/shmedia.h: Likewise.
17201 * config/sh/shmedia.md: Likewise.
17202 * config/sh/sshmedia.h: Likewise.
17203 * config/sh/t-netbsd-sh5-64: Likewise.
17204 * config/sh/t-sh64: Likewise.
17205 * config/sh/ushmedia.h: Likewise.
17206
17207 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17208
17209 * config/i386/i386.md (sign_extend to memory peephole2s): Use
17210 general_reg_operand instead of register_operand predicate.
17211
17212 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17213
17214 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17215
17216 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
17217
17218 * match.pd (A - B > A, A + B < A): New transformations.
17219
17220 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
17221
17222 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17223 which defaults to true. Emit an outer pair of parentheses only if
17224 EMIT_PARENS. When continuing a chain of && or || (or & or |),
17225 don't emit parentheses for the right-hand operand.
17226
17227 2016-04-27 Jeff Law <law@redhat.com>
17228
17229 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17230
17231 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17232
17233 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17234 (altivec_lvx_<mode>_internal): Document.
17235 (altivec_lvx_<mode>_2op): New define_insn.
17236 (altivec_lvx_<mode>_1op): Likewise.
17237 (altivec_lvx_<mode>_2op_si): Likewise.
17238 (altivec_lvx_<mode>_1op_si): Likewise.
17239 (altivec_stvx_<mode>): Remove.
17240 (altivec_stvx_<mode>_internal): Document.
17241 (altivec_stvx_<mode>_2op): New define_insn.
17242 (altivec_stvx_<mode>_1op): Likewise.
17243 (altivec_stvx_<mode>_2op_si): Likewise.
17244 (altivec_stvx_<mode>_1op_si): Likewise.
17245 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17246 Expand vec_ld and vec_st during parsing.
17247 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17248 changes.
17249 (altivec_expand_stvx_be): Likewise.
17250 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17251 address-masking behavior in RTL.
17252 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17253 address-masking behavior in RTL.
17254 (altivec_expand_builtin): Change builtin code arguments for calls
17255 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17256 (insn_is_swappable_p): Avoid incorrect swap optimization in the
17257 presence of lvx/stvx patterns.
17258 (alignment_with_canonical_addr): New function.
17259 (alignment_mask): Likewise.
17260 (find_alignment_op): Likewise.
17261 (recombine_lvx_pattern): Likewise.
17262 (recombine_stvx_pattern): Likewise.
17263 (recombine_lvx_stvx_patterns): Likewise.
17264 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17265 stvx patterns from expand.
17266 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17267 expansions.
17268 (vector_altivec_store_<mode>): Likewise.
17269
17270 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
17271
17272 * config/aarch64/aarch64.md
17273 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17274 remove the "fp" attributes.
17275 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17276 add the "simd" attributes.
17277 (*movdf_aarch64): Likewise.
17278 (*movtf_aarch64): Remove the "fp" attributes.
17279 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17280 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17281
17282 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17283
17284 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17285 rtx to rtx_code_label *.
17286 * rtl.h (maybe_set_first_label_num): Likewise.
17287
17288 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17289
17290 * df-core.c (df_add_problem): Make the problem param be const.
17291 (df_remove_problem): Make local "problem" be const.
17292 * df-problems.c (problem_RD): Make const.
17293 (problem_LR): Likewise.
17294 (problem_LIVE): Likewise.
17295 (problem_MIR): Likewise.
17296 (problem_CHAIN): Likewise.
17297 (problem_WORD_LR): Likewise.
17298 (problem_NOTE): Likewise.
17299 (problem_MD): Likewise.
17300 * df-scan.c (problem_SCAN): Likewise.
17301 * df.h (struct df_problem): Make field "dependent_problem" be
17302 const.
17303 (struct dataflow): Likewise for field "problem".
17304 (df_add_problem): Make param const.
17305
17306 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17307
17308 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17309 inter-unit moves to/from vector registers are enabled. Do not disable
17310 for TARGET_MMX.
17311
17312 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17313
17314 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17315 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17316 #define to...
17317 (enum df_problem_id): ...this new enum.
17318 (struct df_problem): Convert field "id" from "int" to
17319 enum df_problem_id.
17320
17321 2016-04-27 David Malcolm <dmalcolm@redhat.com>
17322
17323 * rtl.def: Update comment for "things in the instruction chain" to
17324 reflect the removal of the leading "i" field for INSN_UID in
17325 r210360. Fix bogus apostrophe.
17326
17327 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
17328
17329 * config/i386/i386.md
17330 (lea arith with mem operand + setcc peephole2): Set operator mode.
17331
17332 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
17333
17334 PR target/70155
17335 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17336 (dimode_scalar_to_vector_candidate_p): This.
17337 (timode_scalar_to_vector_candidate_p): New function.
17338 (scalar_to_vector_candidate_p): Likewise.
17339 (timode_check_non_convertible_regs): Likewise.
17340 (timode_remove_non_convertible_regs): Likewise.
17341 (remove_non_convertible_regs): Likewise.
17342 (remove_non_convertible_regs): Renamed to ...
17343 (dimode_remove_non_convertible_regs): This.
17344 (scalar_chain::~scalar_chain): Make it virtual.
17345 (scalar_chain::compute_convert_gain): Make it pure virtual.
17346 (scalar_chain::mark_dual_mode_def): Likewise.
17347 (scalar_chain::convert_insn): Likewise.
17348 (scalar_chain::convert_registers): Likewise.
17349 (scalar_chain::add_to_queue): Make it protected.
17350 (scalar_chain::emit_conversion_insns): Likewise.
17351 (scalar_chain::replace_with_subreg): Likewise.
17352 (scalar_chain::replace_with_subreg_in_insn): Likewise.
17353 (scalar_chain::convert_op): Likewise.
17354 (scalar_chain::convert_reg): Likewise.
17355 (scalar_chain::make_vector_copies): Likewise.
17356 (scalar_chain::convert_registers): New pure virtual function.
17357 (class dimode_scalar_chain): New class.
17358 (class timode_scalar_chain): Likewise.
17359 (scalar_chain::mark_dual_mode_def): Renamed to ...
17360 (dimode_scalar_chain::mark_dual_mode_def): This.
17361 (timode_scalar_chain::mark_dual_mode_def): New function.
17362 (timode_scalar_chain::convert_insn): Likewise.
17363 (dimode_scalar_chain::convert_registers): Likewise.
17364 (scalar_chain::compute_convert_gain): Renamed to ...
17365 (dimode_scalar_chain::compute_convert_gain): This.
17366 (scalar_chain::replace_with_subreg): Renamed to ...
17367 (dimode_scalar_chain::replace_with_subreg): This.
17368 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17369 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17370 (scalar_chain::make_vector_copies): Renamed to ...
17371 (dimode_scalar_chain::make_vector_copies): This.
17372 (scalar_chain::convert_reg): Renamed to ...
17373 (dimode_scalar_chain::convert_reg ): This.
17374 (scalar_chain::convert_op): Renamed to ...
17375 (dimode_scalar_chain::convert_op): This.
17376 (scalar_chain::convert_insn): Renamed to ...
17377 (dimode_scalar_chain::convert_insn): This.
17378 (scalar_chain::convert): Call convert_registers.
17379 (convert_scalars_to_vector): Change to scalar_chain pointer to
17380 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17381 in 32-bit mode. Delete scalar_chain pointer. Call
17382 free_dominance_info in 64-bit mode.
17383 (pass_stv::gate): Remove TARGET_64BIT check.
17384 (ix86_option_override): Put the 64-bit STV pass before the CSE
17385 pass.
17386
17387 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
17388
17389 * dwarf2out.h (struct dw_loc_descr_node): Remove the
17390 dw_loc_frame_offset field.
17391 * dwarf2out.c (new_loc_descr): Likewise.
17392 (resolve_args_picking_1): Turn the VISITED hash set into a
17393 FRAME_OFFSET hash map. Use it to associate a frame offset to
17394 visited nodes. Remove uses of the CHECKING_P macro.
17395 (resolve_args_picking): Update call to resolve_args_picking_1.
17396
17397 2016-04-27 Martin Liska <mliska@suse.cz>
17398
17399 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17400 (free_loop_data): Release vuses of groups.
17401
17402 2016-04-27 Bin Cheng <bin.cheng@arm.com>
17403
17404 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17405 instead of redundant use_id and boolean have_use_for.
17406 (struct iv_use): Change sub_id into group_id. Remove field next.
17407 Move fields: related_cands, n_map_members, cost_map and selected
17408 to ...
17409 (struct iv_group): ... here. New structure.
17410 (struct iv_common_cand): Use structure declaration directly.
17411 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17412 (MAX_CONSIDERED_USES): Rename macro to ...
17413 (MAX_CONSIDERED_GROUPS): ... here.
17414 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17415 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17416 (dump_uses): Rename to ...
17417 (dump_groups): ... here. Update all uses.
17418 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17419 (find_induction_variables): Refactor format of dump information.
17420 (record_sub_use): Delete.
17421 (record_use): Update all uses.
17422 (record_group): New function.
17423 (record_group_use, find_interesting_uses_op): Call above functions.
17424 Update all uses.
17425 (find_interesting_uses_cond): Ditto.
17426 (group_compare_offset): New function.
17427 (split_all_small_groups): Rename to ...
17428 (split_small_address_groups_p): ... here. Update all uses.
17429 (split_address_groups): Update all uses.
17430 (find_interesting_uses): Refactor format of dump information.
17431 (add_candidate_1): Update all uses. Remove redundant check on iv,
17432 base and step.
17433 (add_candidate, record_common_cand): Remove redundant assert.
17434 (add_iv_candidate_for_biv): Update use.
17435 (add_iv_candidate_derived_from_uses): Update all uses.
17436 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17437 (alloc_use_cost_map): Ditto.
17438 (set_use_iv_cost, get_use_iv_cost): Rename to ...
17439 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
17440 (determine_use_iv_cost_generic): Ditto.
17441 (determine_group_iv_cost_generic): Ditto.
17442 (determine_use_iv_cost_address): Ditto.
17443 (determine_group_iv_cost_address): Ditto.
17444 (determine_use_iv_cost_condition): Ditto.
17445 (determine_group_iv_cost_cond): Ditto.
17446 (determine_use_iv_cost): Ditto.
17447 (determine_group_iv_cost): Ditto.
17448 (set_autoinc_for_original_candidates): Update all uses.
17449 (find_iv_candidates): Update all uses. Refactor dump information.
17450 (determine_use_iv_costs): Ditto.
17451 (determine_iv_costs): Ditto.
17452 (iv_ca_cand_for_use): Rename to ...
17453 (iv_ca_cand_for_group): ... here. Update all uses.
17454 (iv_ca_add_use, iv_ca_add_group): Ditto.
17455 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17456 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17457 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17458 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17459 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17460 (create_new_iv, adjust_iv_update_pos): Ditto.
17461 (rewrite_use_address): Delete.
17462 (rewrite_use_address_1): Rename to ...
17463 (rewrite_use_address): ... here.
17464 (rewrite_use_compare): Update all uses.
17465 (rewrite_use): Delete.
17466 (rewrite_uses): Rename to ...
17467 (rewrite_groups): ... here. Update all uses.
17468 (remove_unused_ivs, free_loop_data): Update all uses.
17469 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17470
17471 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17472
17473 * rtlanal.c (nonzero_bits1): Convert preprocessor check
17474 for WORD_REGISTER_OPERATIONS to runtime check.
17475
17476 2016-04-27 Richard Biener <rguenther@suse.de>
17477
17478 PR ipa/70760
17479 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17480 aggregate_value_p to determine if a function result is
17481 returned by reference.
17482 (ipa_pta_execute): Functions having their address taken are
17483 not automatically nonlocal.
17484
17485 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17486
17487 PR sanitizer/70683
17488 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17489 * fold-const.c (operand_equal_p): If flag_checking and
17490 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17491 and if it returns non-zero, assert iterative_hash_expr on both
17492 args is the same.
17493
17494 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17495
17496 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17497
17498 2016-04-27 Nick Clifton <nickc@redhat.com>
17499
17500 PR middle-end/49889
17501 * varasm.c (merge_weak): Generate an error if an attempt is made
17502 to convert a non-weak static function into a weak, public function.
17503
17504 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17505
17506 * params.def (MAX_PARTITION_SIZE): New param.
17507 * doc/invoke.texi: Document lto-max-partition.
17508
17509 2016-04-27 Richard Biener <rguenther@suse.de>
17510
17511 PR ipa/70785
17512 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17513 function cummulating used_from_other_partition, externally_visible
17514 and force_output from aliases.
17515 (refered_from_nonlocal_var): Likewise.
17516 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17517 node flags properly.
17518
17519 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
17520
17521 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17522 (-Wmemset-elt-size): New item.
17523
17524 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
17525
17526 PR ada/70759
17527 * stor-layout.h (internal_reference_types): Delete.
17528 * stor-layout.c (reference_types_internal): Likewise.
17529 (internal_reference_types): Likewise.
17530 (layout_type) <REFERENCE_TYPE>: Adjust.
17531
17532 2016-04-27 Jakub Jelinek <jakub@redhat.com>
17533
17534 PR sanitizer/70683
17535 * tree.h (inchash::add_expr): Add FLAGS argument.
17536 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
17537 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
17538 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17539 Formatting fix. Adjust recursive calls. For tcc_comparison,
17540 if swap_tree_comparison (code) is smaller than code, hash that
17541 and arguments in the other order. Hash CONVERT_EXPR the same
17542 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17543 of ADDR_EXPR of decl as the decl itself. Add or remove
17544 OEP_ADDRESS_OF from recursive flags as needed. For
17545 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17546 operands commutatively and only the third one normally.
17547 For internal CALL_EXPR hash in CALL_EXPR_IFN.
17548
17549 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
17550
17551 * config/rtems.h (LIB_SPEC): Add -latomic.
17552
17553 2016-04-27 Joel Sherrill <joel@rtems.org>
17554
17555 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17556 xilink.ld and flags not relevant to RTEMS.
17557
17558 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17559
17560 * toplev.c (backend_init_target): Avoid calling init_reload when using
17561 LRA.
17562
17563 2016-04-26 Jakub Jelinek <jakub@redhat.com>
17564
17565 * reorg.c (try_merge_delay_insns): Declare i and j inside the
17566 for loops rather than one for the whole function.
17567
17568 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17569
17570 * match.pd (X + CST CMP X): New transformation.
17571
17572 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
17573
17574 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17575 * fold-const.c (fold_binary_loc): Remove 2 transformations
17576 superseded by match.pd.
17577 * match.pd (x+x -> x*2): Generalize to integers.
17578
17579 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
17580
17581 * config/i386/i386.md (operation on memory peephole): Duplicate an
17582 existing peephole and adapt it to match lea rather than an operation
17583 that clobbers CC.
17584
17585 PR rtl-optimization/57193
17586 * opts.c (default_options_table): Add OPT_frename_registers at -O2
17587 and above.
17588 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17589
17590 2016-04-26 Bin Cheng <bin.cheng@arm.com>
17591
17592 * tree-if-conv.c (any_pred_load_store): New static variable.
17593 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
17594 any_pred_load_store instead of and_mask_load_store.
17595 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
17596 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
17597 (combine_blocks, tree_if_conversion): Ditto.
17598
17599 2016-04-26 Bin Cheng <bin.cheng@arm.com>
17600
17601 PR tree-optimization/70771
17602 PR tree-optimization/70775
17603 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
17604 virtual PHI nodes. Delete parameter.
17605 (if_convertible_loop_p_1): Delete argument to above function.
17606 (predicate_all_scalar_phis): Delete code handling single-argument
17607 PHIs.
17608 (tree_if_conversion): Mark and update virtual SSA.
17609
17610 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17611
17612 PR target/61821
17613 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
17614 (x86_elf_aligned_common): Rename to ...
17615 (x86_elf_aligned_decl_common): ... this.
17616 Add decl arg. Switch to .lbss for largecomm object. Use
17617 LARGECOMM_SECTION_ASM_OP.
17618 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
17619 renaming.
17620 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
17621 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
17622 Pass new decl arg.
17623 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17624 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
17625
17626 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17627
17628 PR target/59407
17629 * config/i386/i386.c (SECTION_LARGE): Define.
17630 (x86_64_elf_select_section): Set it for large data/bss sections.
17631 Only clear SECTION_WRITE for .lrodata.
17632 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
17633 data/bss sections.
17634 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
17635 * varasm.c (default_elf_asm_named_section): Grow flagchars.
17636 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
17637 SECTION_MACH_DEP.
17638 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
17639 * doc/tm.texi: Regenerate.
17640
17641 2016-04-26 Jakub Jelinek <jakub@redhat.com>
17642
17643 PR bootstrap/70704
17644 * configure.ac (--enable-checking): Document extra flag, for
17645 non-release builds default to --enable-checking=yes,extra.
17646 If misc checking and extra checking, define CHECKING_P to 2 instead
17647 of 1.
17648 * common.opt (fchecking=): Add.
17649 * doc/invoke.texi (-fchecking=): Document.
17650 * doc/install.texi: Document --enable-checking changes.
17651 * configure: Regenerated.
17652 * config.in: Regenerated.
17653
17654 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17655
17656 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
17657 attribute instead of which_alternative.
17658 * config/i386/sse.md (*mov<mode>_internal): Ditto.
17659 Use EXT_REX_SSE_REG_P where appropriate.
17660
17661 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17662
17663 * config/i386/predicates.md (const0_operand): Do not match
17664 const_wide_int code.
17665 (const1_operand): Ditto.
17666
17667 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17668
17669 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
17670 for SSE constm1 operands and TARGET_AVX512VL.
17671 (*movti_internal): Ditto.
17672 (*mov<mode>_or): Use constm1_operand predicate.
17673 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
17674 for SSE vector_all_ones operands and TARGET_AVX512VL.
17675 * config/i386/predicates.md (constm1_operand): New predicate.
17676 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
17677 emission of constant -1 load.
17678
17679 2016-04-25 Jason Merrill <jason@redhat.com>
17680
17681 * gdbinit.in: Skip is-a.h.
17682
17683 * attribs.c (register_scoped_attributes): Fix logic.
17684 * attribs.h: Declare register_scoped_attributes.
17685
17686 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17687
17688 * config/rs6000/rs6000-builtin.def: Correct pasto error for
17689 stxvd2x and stxvw4x built-in functions.
17690
17691 2016-04-25 DJ Delorie <dj@redhat.com>
17692
17693 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
17694 (ashrhi3): Likewise.
17695 (lshrhi3): Likewise.
17696
17697 2016-04-25 Richard Biener <rguenther@suse.de>
17698
17699 PR tree-optimization/70780
17700 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
17701 wasn't visited yet.
17702 (compute_antic): Mark blocks with abnormal preds as visited as
17703 they have a final empty antic-in solution already.
17704
17705 2016-04-25 Michael Collison <michael.collison@linaro.org>
17706
17707 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
17708
17709 2016-04-25 Michael Collison <michael.collison@linaro.org>
17710
17711 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
17712 mode is VQI to improve mixed mode vectorization.
17713 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
17714 define_insn to match low half of signed vaddw.
17715 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
17716 define_insn to match high half of signed vaddw.
17717 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
17718 define_insn to match low half of unsigned vaddw.
17719 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
17720 define_insn to match high half of unsigned vaddw.
17721 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
17722 (arm_simd_check_vect_par_cnst_half_p): Likewise.
17723 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
17724 for new function.
17725 (arm_simd_check_vect_par_cnst_half_p): Likewise.
17726 * config/arm/predicates.md (vect_par_constant_high): Support
17727 big endian and simplify by calling
17728 arm_simd_check_vect_par_cnst_half
17729 (vect_par_constant_low): Likewise.
17730
17731 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
17732
17733 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
17734 predicate for operand 2.
17735
17736 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
17737 H.J. Lu <hongjiu.lu@intel.com>
17738
17739 * config/i386/i386-protos.h (standard_sse_constant_p): Add
17740 machine_mode argument.
17741 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
17742 constm1_rtx operands. For VOIDmode constants, get mode from
17743 pred_mode. Check mode size if the mode is supported by ABI.
17744 (standard_sse_constant_opcode): Do not use standard_constant_p.
17745 Strictly check ABI support for all-ones operands.
17746 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
17747 immediates. Update calls to standard_sse_constant_p.
17748 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
17749 (ix86_rtx_costs): Ditto.
17750 * config/i386/i386.md (*movxi_internal_avx512f): Use
17751 nonimmediate_or_sse_const_operand instead of vector_move_operand.
17752 Use (v,BC) alternative instead of (v,C). Use register_operand
17753 checks instead of MEM_P.
17754 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
17755 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
17756 isa attribute. Use register_operand checks instead of MEM_P.
17757 (*movti_internal): Use nonimmediate_or_sse_const_operand for
17758 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
17759 alternative and corresponding sse2 isa attribute.
17760 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
17761 to standard_sse_constant_p.
17762 (FP constant splitters): Ditto.
17763 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
17764 (C): Ditto.
17765 * config/i386/predicates.md (constm1_operand): Remove.
17766 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
17767 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
17768 vector_all_ones_operand instead of constm1_operand.
17769
17770 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17771
17772 * print-rtl.c (print_rtx_insn_vec): New function.
17773 * print-rtl.h: New prototype.
17774 * store-motion.c (struct st_expr): Make avail_stores a vector.
17775 (st_expr_entry): Adjust.
17776 (free_st_expr_entry): Likewise.
17777 (print_store_motion_mems): Likewise.
17778 (find_moveable_store): Likewise.
17779 (compute_store_table): Likewise.
17780 (delete_store): Likewise.
17781 (build_store_vectors): Likewise.
17782
17783 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17784
17785 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
17786
17787 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17788
17789 * vec.h (vec_safe_contains): New function.
17790 (vec::contains): Likewise.
17791 (vec::begin): Likewise.
17792 (vec::end): Likewise.
17793
17794 2016-04-23 Jakub Jelinek <jakub@redhat.com>
17795
17796 PR sanitizer/70712
17797 * cfgexpand.c (expand_stack_vars): Fix typo.
17798
17799 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
17800
17801 * system.h (list, map, set, vector): Include conditionally.
17802 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
17803 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
17804 * ipa-icf.c (INCLUDE_LIST): Define.
17805 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
17806 * config/sh/sh.c (INCLUDE_VECTOR): Define.
17807 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
17808 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
17809 * cp/logic.cc (INCLUDE_LIST): Define.
17810 * fortran/trans-common.c (INCLUDE_MAP): Define.
17811
17812 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
17813
17814 * auto-profile.c: Remove <string.h> include.
17815 * ipa-icf-gimple.c: Remove <list> include.
17816 * diagnostic.c: Remove <new> include.
17817 * genmatch.c: Likewise.
17818 * pretty-print.c: Likewise.
17819 * toplev.c: Likewise
17820 * c/c-objc-common.c: Likewise.
17821 * cp/error.c: Likewise.
17822 * fortran/error.c: Likewise.
17823
17824 2016-04-22 Richard Biener <rguenther@suse.de>
17825
17826 * lto-streamer-in.c (input_ssa_names): Do not allocate
17827 GIMPLE_NOP for all SSA names.
17828 * lto-streamer-out.c (output_ssa_names): Do not output
17829 SSA names that should have been released.
17830
17831 2016-04-22 Richard Biener <rguenther@suse.de>
17832
17833 PR tree-optimization/70740
17834 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
17835 VDEF.
17836
17837 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
17838
17839 PR target/70750
17840 * config/i386/predicates.md (call_insn_operand): Replace
17841 sibcall_memory_operand with memory_operand.
17842
17843 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
17844
17845 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
17846 has_single_use() tests.
17847 (register_edge_assert_for_1): Likewise.
17848 (find_assert_locations_1): Check the liveness bitmap instead of
17849 checking has_single_use().
17850
17851 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
17852
17853 PR target/70728
17854 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
17855 Extract AVX-512BW constraint from AVX.
17856
17857 2016-04-21 Richard Biener <rguenther@suse.de>
17858
17859 PR tree-optimization/70725
17860 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
17861 for phi_convertible_by_degenerating_args.
17862 (predicate_all_scalar_phis): Handle single-argument PHIs.
17863
17864 2016-04-21 Richard Biener <rguenther@suse.de>
17865
17866 PR middle-end/70747
17867 * fold-const.c (fold_comparison): Return properly typed
17868 constant boolean.
17869
17870 2016-04-21 Bin Cheng <bin.cheng@arm.com>
17871
17872 PR tree-optimization/70715
17873 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
17874 after expanding BASE using expand_simple_operations.
17875
17876 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
17877
17878 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
17879 New transformations.
17880
17881 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
17882
17883 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
17884
17885 2016-04-20 Jan Hubicka <jh@suse.cz>
17886
17887 * ipa-inline.c (can_inline_edge_p): Pass caller info to
17888 ultiimate_alias_target.
17889 (update_callee_keys): Likewise.
17890 (lookup_recursive_calls): Likewise.
17891 (speculation_useful_p): Likewise.
17892
17893 2016-04-20 Jan Hubicka <jh@suse.cz>
17894
17895 PR ipa/70018
17896 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
17897 (set_nothrow_flag_1): ... this; handle interposition correctly;
17898 recurse on aliases and thunks.
17899 (cgraph_node::set_nothrow_flag): New.
17900 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
17901 functions compiled with non-call exceptions that binds to current
17902 def.
17903 (propagate_nothrow): Be safe WRT interposition.
17904 * cgraph.h (set_nothrow_flag): Update prototype.
17905
17906 2016-04-18 Jan Hubicka <jh@suse.cz>
17907
17908 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17909 max_loop_iterations_int.
17910 (tree_unswitch_outer_loop): Likewise.
17911
17912 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17913
17914 PR tree-optimization/69489
17915 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17916 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17917 Revise dump message.
17918 (if_convertible_bb_p): Remove check on edge count of basic block's
17919 predecessors.
17920
17921 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17922
17923 PR tree-optimization/56625
17924 PR tree-optimization/69489
17925 * tree-data-ref.h (DR_INNERMOST): New macro.
17926 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17927 hashing struct innermost_loop_behavior.
17928 (ref_DR_map): Remove.
17929 (innermost_DR_map): New map.
17930 (baseref_DR_map): Revise comment.
17931 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17932 to innermost_DR_map accroding to its innermost loop behavior.
17933 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17934 to its innermost loop behavior.
17935 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17936 Add initialization for innermost_DR_map. Record memory reference
17937 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17938 have innermost loop behavior.
17939 (if_convertible_loop_p): Remove release for ref_DR_map. Release
17940 innermost_DR_map.
17941
17942 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
17943
17944 * config/i386/i386.md (*lea<mode>_general_1): Rename from
17945 *lea_general_1. Use explicit SWI12 mode interator.
17946 (*lea<mode>_general_2): Rename from *lea_general_2.
17947 Use explicit SWI12 mode interator.
17948 (*lea<mode>_general_3): Rename from *lea_general_3.
17949 Use explicit SWI12 mode interator.
17950 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17951 Use explicit SWI12 mode interator.
17952 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17953 Use explicit SWI48 mode interator.
17954
17955 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
17956
17957 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17958 Short-cut unaligned load and store cases. Handle all integer
17959 vector modes.
17960 (ix86_expand_vector_move_misalign): Short-cut unaligned load
17961 and store cases. Call ix86_avx256_split_vector_move_misalign
17962 directly without checking mode class.
17963
17964 2016-04-20 Andrew Pinski <apinski@cavium.com>
17965 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17966
17967 PR target/64971
17968 * config/aarch64/aarch64.md (sibcall): Force call
17969 address to be DImode for ILP32.
17970 (sibcall_value): Likewise.
17971
17972 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
17973
17974 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17975
17976 2016-04-20 Richard Biener <rguenther@suse.de>
17977
17978 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17979 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17980 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17981 (maybe_push_res_to_seq): Adjust.
17982 * gimple-fold.c (maybe_build_generic_op): Likewise.
17983
17984 2016-04-20 Marek Polacek <polacek@redhat.com>
17985
17986 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17987 rather than true.
17988
17989 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
17990
17991 * config/i386/sse.md (vec_unpacks_lo_hi): Always
17992 use kmovw to support AVX512F target.
17993
17994 2016-04-20 Bin Cheng <bin.cheng@arm.com>
17995
17996 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17997
17998 2016-04-20 Marek Polacek <polacek@redhat.com>
17999
18000 PR tree-optimization/70725
18001 * tree-if-conv.c (is_false_predicate): New function.
18002 (predicate_mem_writes): Use it.
18003
18004 2016-04-20 Richard Biener <rguenther@suse.de>
18005
18006 PR tree-optimization/70726
18007 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
18008 shift amounts from a pattern stmt operand.
18009
18010 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18011
18012 PR target/70674
18013 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
18014 stack_restore_from_fpr pattern when restoring r15.
18015 (s390_optimize_prologue): Strip away the memory barrier in the
18016 parallel when trying to get rid of restore insns.
18017 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
18018 definition for loading the stack pointer from an FPR. Compared to
18019 the normal move insn this pattern includes a full memory barrier.
18020
18021 2016-04-19 Jakub Jelinek <jakub@redhat.com>
18022
18023 PR middle-end/70680
18024 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18025 implicitly linear or lastprivate iterator on the outer context.
18026
18027 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18028
18029 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18030 alignment check.
18031 * config/i386/i386.md (ssememalign): Removed.
18032 * config/i386/sse.md: Remove ssememalign attribute from patterns.
18033
18034 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
18035
18036 PR target/69201
18037 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18038 const short * to __builtin_ia32_loaddquhi512_mask.
18039 (_mm512_maskz_loadu_epi16): Likewise.
18040 (_mm512_mask_storeu_epi16): Pass short * to
18041 __builtin_ia32_storedquhi512_mask.
18042 (_mm512_mask_loadu_epi8): Pass const char * to
18043 __builtin_ia32_loaddquqi512_mask.
18044 (_mm512_maskz_loadu_epi8): Likewise.
18045 (_mm512_mask_storeu_epi8): Pass char * to
18046 __builtin_ia32_storedquqi512_mask.
18047 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18048 const double * to __builtin_ia32_loadupd512_mask.
18049 (_mm512_mask_loadu_pd): Likewise.
18050 (_mm512_maskz_loadu_pd): Likewise.
18051 (_mm512_storeu_pd): Pass double * to
18052 __builtin_ia32_storeupd512_mask.
18053 (_mm512_mask_storeu_pd): Likewise.
18054 (_mm512_loadu_ps): Pass const float * to
18055 __builtin_ia32_loadups512_mask.
18056 (_mm512_mask_loadu_ps): Likewise.
18057 (_mm512_maskz_loadu_ps): Likewise.
18058 (_mm512_storeu_ps): Pass float * to
18059 __builtin_ia32_storeups512_mask.
18060 (_mm512_mask_storeu_ps): Likewise.
18061 (_mm512_mask_loadu_epi64): Pass const long long * to
18062 __builtin_ia32_loaddqudi512_mask.
18063 (_mm512_maskz_loadu_epi64): Likewise.
18064 (_mm512_mask_storeu_epi64): Pass long long *
18065 to __builtin_ia32_storedqudi512_mask.
18066 (_mm512_loadu_si512): Pass const int * to
18067 __builtin_ia32_loaddqusi512_mask.
18068 (_mm512_mask_loadu_epi32): Likewise.
18069 (_mm512_maskz_loadu_epi32): Likewise.
18070 (_mm512_storeu_si512): Pass int * to
18071 __builtin_ia32_storedqusi512_mask.
18072 (_mm512_mask_storeu_epi32): Likewise.
18073 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18074 char * to __builtin_ia32_storedquqi256_mask.
18075 (_mm_mask_storeu_epi8): Likewise.
18076 (_mm256_mask_loadu_epi16): Pass const short * to
18077 __builtin_ia32_loaddquhi256_mask.
18078 (_mm256_maskz_loadu_epi16): Likewise.
18079 (_mm_mask_loadu_epi16): Pass const short * to
18080 __builtin_ia32_loaddquhi128_mask.
18081 (_mm_maskz_loadu_epi16): Likewise.
18082 (_mm256_mask_loadu_epi8): Pass const char * to
18083 __builtin_ia32_loaddquqi256_mask.
18084 (_mm256_maskz_loadu_epi8): Likewise.
18085 (_mm_mask_loadu_epi8): Pass const char * to
18086 __builtin_ia32_loaddquqi128_mask.
18087 (_mm_maskz_loadu_epi8): Likewise.
18088 (_mm256_mask_storeu_epi16): Pass short * to.
18089 __builtin_ia32_storedquhi256_mask.
18090 (_mm_mask_storeu_epi16): Pass short * to.
18091 __builtin_ia32_storedquhi128_mask.
18092 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18093 const double * to __builtin_ia32_loadupd256_mask.
18094 (_mm256_maskz_loadu_pd): Likewise.
18095 (_mm_mask_loadu_pd): Pass onst double * to
18096 __builtin_ia32_loadupd128_mask.
18097 (_mm_maskz_loadu_pd): Likewise.
18098 (_mm256_mask_storeu_pd): Pass double * to
18099 __builtin_ia32_storeupd256_mask.
18100 (_mm_mask_storeu_pd): Pass double * to
18101 __builtin_ia32_storeupd128_mask.
18102 (_mm256_mask_loadu_ps): Pass const float * to
18103 __builtin_ia32_loadups256_mask.
18104 (_mm256_maskz_loadu_ps): Likewise.
18105 (_mm_mask_loadu_ps): Pass const float * to
18106 __builtin_ia32_loadups128_mask.
18107 (_mm_maskz_loadu_ps): Likewise.
18108 (_mm256_mask_storeu_ps): Pass float * to
18109 __builtin_ia32_storeups256_mask.
18110 (_mm_mask_storeu_ps): ass float * to
18111 __builtin_ia32_storeups128_mask.
18112 (_mm256_mask_loadu_epi64): Pass const long long * to
18113 __builtin_ia32_loaddqudi256_mask.
18114 (_mm256_maskz_loadu_epi64): Likewise.
18115 (_mm_mask_loadu_epi64): Pass const long long * to
18116 __builtin_ia32_loaddqudi128_mask.
18117 (_mm_maskz_loadu_epi64): Likewise.
18118 (_mm256_mask_storeu_epi64): Pass long long * to
18119 __builtin_ia32_storedqudi256_mask.
18120 (_mm_mask_storeu_epi64): Pass long long * to
18121 __builtin_ia32_storedqudi128_mask.
18122 (_mm256_mask_loadu_epi32): Pass const int * to
18123 __builtin_ia32_loaddqusi256_mask.
18124 (_mm256_maskz_loadu_epi32): Likewise.
18125 (_mm_mask_loadu_epi32): Pass const int * to
18126 __builtin_ia32_loaddqusi128_mask.
18127 (_mm_maskz_loadu_epi32): Likewise.
18128 (_mm256_mask_storeu_epi32): Pass int * to
18129 __builtin_ia32_storedqusi256_mask.
18130 (_mm_mask_storeu_epi32): Pass int * to
18131 __builtin_ia32_storedqusi128_mask.
18132 * config/i386/i386-builtin-types.def (PCSHORT): New.
18133 (PINT64): Likewise.
18134 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18135 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18136 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18137 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18138 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18139 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18140 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18141 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18142 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18143 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18144 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18145 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18146 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18147 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18148 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18149 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18150 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18151 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18152 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18153 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18154 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18155 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18156 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18157 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18158 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18159 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18160 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18161 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18162 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18163 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18164 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18165 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18166 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18167 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18168 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18169 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18170 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18171 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18172 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18173 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18174 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18175 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18176 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18177 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18178 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18179 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18180 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18181 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18182 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18183 use UNSPEC_STOREU.
18184 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18185 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18186 load nor store.
18187 (ix86_expand_vector_move_misalign): Likewise.
18188 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18189 to scalar function prototype for unaligned load/store builtins.
18190 (ix86_expand_special_args_builtin): Updated.
18191 * config/i386/sse.md (UNSPEC_LOADU): Removed.
18192 (UNSPEC_STOREU): Likewise.
18193 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18194 (VI_ULOADSTORE_F_AVX512VL): Likewise.
18195 (ssescalarsize): Handle V4TI, V2TI and V1TI.
18196 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18197 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18198 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18199 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18200 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18201 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18202 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18203 (<avx512>_storedqu<mode>_mask): Likewise.
18204 (*sse4_2_pcmpestr_unaligned): Likewise.
18205 (*sse4_2_pcmpistr_unaligned): Likewise.
18206 (*mov<mode>_internal): Renamed to ...
18207 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
18208 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18209 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18210 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18211
18212 2016-04-19 Richard Biener <rguenther@suse.de>
18213
18214 PR tree-optimization/70171
18215 * tree-ssa-phiprop.c: Include stor-layout.h.
18216 (phiprop_insert_phi): Handle the aggregate copy case.
18217 (propagate_with_phi): Likewise.
18218
18219 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
18220
18221 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18222 instead of simplify_gen_subreg (... , 0).
18223 (ix86_delegitimize_address): Ditto.
18224 (ix86_split_divmod): Ditto.
18225 (ix86_split_copysign_const): Ditto.
18226 (ix86_split_copysign_var): Ditto.
18227 (ix86_expand_args_builtin): Ditto.
18228 (ix86_expand_round_builtin): Ditto.
18229 (ix86_expand_special_args_builtin): Ditto.
18230 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18231 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18232 (udivmodqi4): Ditto.
18233 (absneg splitters): Ditto.
18234 (*jcc_bt<mode>_1): Ditto.
18235
18236 2016-04-19 Richard Biener <rguenther@suse.de>
18237
18238 PR tree-optimization/70724
18239 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18240 restoring out from ...
18241 (free_scc_vn): ... here.
18242 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18243 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18244 tail merging.
18245 (pass_fre::execute): Restore SSA info.
18246
18247 2016-04-19 Richard Biener <rguenther@suse.de>
18248
18249 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18250 * gimple-walk.c (walk_gimple_op): Initialize it.
18251 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18252 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18253 remapping SSA names of defs.
18254 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18255 adjustment.
18256
18257 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
18258
18259 PR middle-end/70689
18260 * lra-constraints.c (equiv_substition_p): New.
18261 (process_alt_operands): Use it.
18262 (swap_operands): Swap it.
18263 (curr_insn_transform): Update it.
18264
18265 2016-04-18 Michael Matz <matz@suse.de>
18266
18267 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18268 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18269 * tree-core.h (tree_type_common.align): Use bit-field.
18270 (tree_type_common.spare): New.
18271 (tree_decl_common.off_align): Make smaller.
18272 (tree_decl_common.align): Use bit-field.
18273
18274 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18275 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18276 (scan_sharing_clauses): Ditto.
18277 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18278 (omp_finish_file): Ditto.
18279 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18280 (layout_decl): Ditto.
18281 (relayout_decl): Ditto.
18282 (finalize_record_size): Use SET_TYPE_ALIGN.
18283 (finalize_type_size): Ditto.
18284 (finish_builtin_struct): Ditto.
18285 (layout_type): Ditto.
18286 (initialize_sizetypes): Ditto.
18287 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18288 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18289 (lookup_field_for_decl): Use SET_DECL_ALIGN.
18290 (get_chain_field): Ditto.
18291 (get_trampoline_type): Ditto.
18292 (get_nl_goto_field): Ditto.
18293 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18294 SET_DECL_ALIGN.
18295 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18296 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18297 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18298 (build_qualified_type): Use SET_TYPE_ALIGN.
18299 (build_aligned_type, build_range_type_1): Ditto.
18300 (build_atomic_base): Ditto.
18301 (build_common_tree_nodes): Ditto.
18302 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18303 (expand_one_stack_var_at): Ditto.
18304 * coverage.c (build_var): Use SET_DECL_ALIGN.
18305 * except.c (init_eh): Ditto.
18306 * function.c (assign_parm_setup_block): Ditto.
18307 * symtab.c (increase_alignment_1): Ditto.
18308 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18309 * tree-vect-stmts.c (ensure_base_align): Ditto.
18310 * varasm.c (align_variable): Ditto.
18311 (assemble_variable): Ditto.
18312 (build_constant_desc): Ditto.
18313 (output_constant_def_contents): Ditto.
18314
18315 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18316 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18317 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18318 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18319 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18320
18321 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
18322
18323 PR target/70708
18324 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18325 replace %vmovsd with "%vmovq".
18326 (vec_concatv2df): Likewise.
18327
18328 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
18329
18330 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18331 (*vec_extractv2si_0): Ditto.
18332 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18333 (zero_extended_scalar_load_operand splitters): Ditto.
18334 (vec_extract splitters): Ditto.
18335 (*vec_extractv4si_0_zext): Ditto.
18336 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18337 and lowpart_subreg.
18338 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18339 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18340 (*sse4_1_extractps): Use lowpart_subreg.
18341 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18342
18343 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18344
18345 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18346 gld requirements.
18347 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18348 Mention Solaris 11 packaging changes.
18349 Update gas and gld requirements.
18350 Remove reference to pre-Solaris 10 bug.
18351 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18352 systems and bugs.
18353 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18354 with cc.
18355
18356 2016-04-17 Jan Hubicka <jh@suse.cz>
18357
18358 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18359 max_loop_iterations_int.
18360
18361 2016-04-18 Richard Biener <rguenther@suse.de>
18362
18363 PR tree-optimization/43434
18364 * tree-ssa-structalias.c (struct vls_data): New.
18365 (visit_loadstore): Handle all pointer-based accesses.
18366 (compute_dependence_clique): Compute a bitmap of restrict tags
18367 assigned bases and pass it to visit_loadstore.
18368
18369 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
18370
18371 PR target/70711
18372 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18373 armv8.1-a and armv8.1-a+crc.
18374
18375 2016-04-18 Richard Biener <rguenther@suse.de>
18376
18377 PR tree-optimization/70701
18378 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18379 references after translating through a memcpy.
18380
18381 2016-04-18 Richard Biener <rguenther@suse.de>
18382
18383 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18384 (compute_antic): ... here. For partial antic use regular
18385 postorder and scrap iteration.
18386 (compute_partial_antic_aux): Remove unused return value.
18387 (init_pre): Do not allocate postorder.
18388 (fini_pre): Do not free postorder.
18389
18390 2016-04-18 Richard Biener <rguenther@suse.de>
18391
18392 PR middle-end/37870
18393 * expmed.c (extract_bit_field_1): Remove broken case
18394 using a wider MODE_INT mode.
18395
18396 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
18397
18398 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18399 unless compiling with at least GCC-4.8.
18400
18401 2016-04-17 Jan Hubicka <jh@suse.cz>
18402
18403 PR bootstrap/70706
18404 * graphite.c (graphite_finalize): Update call to
18405 tree_estimate_probability.
18406 * predict.h (tree_estimate_probability): Update prototype.
18407
18408 2016-04-17 Jan Hubicka <jh@suse.cz>
18409
18410 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18411 (tree_estimate_probability): Likewise.
18412 (pass_profile::execute): Update.
18413 (report_predictor_hitrates): New function.
18414 * profile.c (compute_branch_probabilities): Use it.
18415 * predict.h (report_predictor_hitrates): Declare.
18416
18417 2016-04-17 Jan Hubicka <jh@suse.cz>
18418
18419 PR ipa/70018
18420 * cgraph.h (cgraph_node::set_const_flag,
18421 cgraph_node::set_pure_flag): Update prototype to return bool;
18422 update comment.
18423 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18424 of interposable symbol are interposable, too.
18425 (cgraph_set_const_flag_1): Rename to ...
18426 (set_const_flag_1): ... this one; change to self recursive function
18427 instead of call_for_symbol_thunks_and_aliases. Handle correctly
18428 clearnig the flag in all variants and also virtual thunks of const
18429 functions are pure; track if any change was done.
18430 (cgraph_node::set_const_flag): Update.
18431 (struct set_pure_flag_info): New struct.
18432 (cgraph_set_pure_flag_1): Rename to ...
18433 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18434 rather than pointer encoded flags; track if any changes was done;
18435 handle correctly clearning flag and setting flag of aliases already
18436 declared const.
18437 (cgraph_node::set_pure_flag): Update.
18438 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18439
18440 2016-04-17 Tom de Vries <tom@codesourcery.com>
18441
18442 PR other/70433
18443 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18444 backslash in label.
18445
18446 2016-04-17 Tom de Vries <tom@codesourcery.com>
18447
18448 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18449 '{}<> ' as escape-for-record.
18450
18451 2016-04-17 Tom de Vries <tom@codesourcery.com>
18452
18453 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18454 structure.
18455
18456 2016-04-17 Tom de Vries <tom@codesourcery.com>
18457
18458 PR other/70185
18459 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18460 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18461 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18462 * passes.c (finish_optimization_passes): Only call
18463 finish_graph_dump_file if dfi->graph_dump_initialized.
18464 (execute_function_dump, pass_init_dump_file): Use
18465 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18466
18467 2016-04-17 Tom de Vries <tom@codesourcery.com>
18468
18469 PR tree-optimization/70256
18470 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18471 (debug_varmap): New function.
18472
18473 2016-04-17 Tom de Vries <tom@codesourcery.com>
18474
18475 PR other/70183
18476 * passes.c (pass_manager::register_pass): Propagate pflags.
18477
18478 2016-04-17 Tom de Vries <tom@codesourcery.com>
18479
18480 PR other/68875
18481 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18482 * passes.c (pass_manager::pass_manager): Declare and init p_start in
18483 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
18484 check if it's equal to p_start.
18485 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18486
18487 2016-04-15 Jan Hubicka <jh@suse.cz>
18488
18489 PR ipa/70018
18490 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18491 function does not bind to current def.
18492 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18493 handle conservatively calls to functions that does not need to bind
18494 to current def.
18495 (check_call): Update call of worse_state.
18496 (ignore_edge_for_nothrow): Update.
18497 (ignore_edge_for_pure_const): Likewise.
18498 (propagate_pure_const): Update calls to worse_state.
18499 (skip_function_for_local_pure_const): Reformat comments.
18500
18501 2016-04-15 Jan Hubicka <jh@suse.cz>
18502
18503 PR ipa/70018
18504 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18505 (cgraph_node::function_symbol): Likewise.
18506 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18507 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18508 (symtab_node::ultimate_alias_target): Add REF parameter.
18509 (symtab_node::binds_to_current_def_p): Declare.
18510 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18511 (cgraph_node::function_symbol): Likewise.
18512 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18513 (cgraph_node::get_availability): Likewise.
18514 (cgraph_edge::binds_to_current_def_p): New inline function.
18515 (varpool_node::get_availability): Add REF parameter.
18516 (varpool_node::ultimate_alias_target): Likewise.
18517 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18518 (symtab_node::binds_to_current_def_p): Likewise.
18519 * varpool.c (varpool_node::get_availability): Likewise.
18520
18521 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18522
18523 PR target/70662
18524 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18525 Fix mode size check.
18526
18527 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18528
18529 * BASE-VER: Set to 7.0.0.
18530
18531 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
18532
18533 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18534
18535 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18536
18537 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18538 architecture revisions.
18539
18540 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
18541
18542 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18543 * config/i386/i386.c (ix86_using_red_zone): No longer static.
18544 * config/i386/i386.md (stack decrement to push peepholes): Guard
18545 with !x86_using_red_zone ().
18546
18547 2016-04-15 Jakub Jelinek <jakub@redhat.com>
18548
18549 PR c++/70675
18550 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18551 to dump_generic_node.
18552 (NIY): Pass also flags to do_niy.
18553
18554 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
18555
18556 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18557 (simd_clone_vector_of_formal_parm_types)
18558 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18559 (simd_clone_mangle, simd_clone_create)
18560 (simd_clone_adjust_return_type, create_tmp_simd_array)
18561 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18562 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18563 (ipa_simd_modify_function_body, simd_clone_linear_addend)
18564 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18565 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18566 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18567 * omp-simd-clone.c: ... this new file.
18568 (simd_clone_vector_of_formal_parm_types): Make it static.
18569 * Makefile.in (OBJS): Add omp-simd-clone.o.
18570
18571 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
18572
18573 PR target/70662
18574 * config/i386/sse.md: Use proper memory operand modifiers.
18575
18576
18577 2016-04-15 Richard Biener <rguenther@suse.de>
18578 Alan Modra <amodra@gmail.com>
18579
18580 PR tree-optimization/70130
18581 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18582 when alignment stays not the same and no not use the realign
18583 scheme then.
18584
18585 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18586
18587 PR target/70669
18588 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18589 direct move handlers for KFmode. Change TFmode handlers test from
18590 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18591
18592 2016-04-14 Jakub Jelinek <jakub@redhat.com>
18593
18594 PR c++/70594
18595 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
18596 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
18597 (inlined_polymorphic_ctor_dtor_block_p): Use it.
18598 * tree-ssa-live.c (remove_unused_scope_block_p): When
18599 in_ctor_dtor_block, avoid discarding not just BLOCKs with
18600 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
18601 block_ultimate_origin is FUNCTION_DECL.
18602 (remove_unused_locals): If current_function_decl is
18603 polymorphic_ctor_dtor_p, pass initial true to
18604 remove_unused_scope_block_p' is_ctor_dtor_block.
18605
18606 2016-04-14 Martin Sebor <msebor@redhat.com>
18607
18608 PR c++/69517
18609 PR c++/70019
18610 PR c++/70588
18611 * doc/extend.texi (Variable Length): Revert.
18612
18613 2016-04-14 Marek Polacek <polacek@redhat.com>
18614 Jan Hubicka <hubicka@ucw.cz>
18615
18616 PR c++/70029
18617 * tree.c (verify_type): Disable the canonical type of main variant
18618 check.
18619
18620 2016-04-14 Jason Merrill <jason@redhat.com>
18621
18622 * cfgexpand.c, expr.c: Revert previous change.
18623
18624 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
18625
18626 PR middle-end/70643
18627 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
18628 when building a mem ref for the incoming reduction variable.
18629
18630 2016-04-14 Richard Biener <rguenther@suse.de>
18631
18632 PR tree-optimization/70614
18633 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
18634 loop if the evolution dropped to chrec_dont_know.
18635 (interpret_condition_phi): Likewise.
18636
18637 2016-04-14 Richard Biener <rguenther@suse.de>
18638
18639 PR tree-optimization/70623
18640 * tree-ssa-pre.c (changed_blocks): Make global ...
18641 (compute_antic): ... local here. Move and fix worklist
18642 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
18643 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
18644 worklist handling, dump when ANTIC_IN changed.
18645 (compute_partial_antic_aux): Remove worklist handling.
18646 (init_pre): Do not compute post dominators. Add a comment about
18647 the CFG order chosen.
18648 (fini_pre): Do not free post dominators.
18649
18650 2016-04-13 Martin Sebor <msebor@redhat.com>
18651
18652 PR c++/69517
18653 PR c++/70019
18654 PR c++/70588
18655 * doc/extend.texi (Variable Length): Document C++ specifics.
18656
18657 2016-04-13 Jakub Jelinek <jakub@redhat.com>
18658
18659 PR c++/70641
18660 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
18661 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
18662 eh edges have been purged.
18663
18664 PR c++/70594
18665 * tree-sra.c (create_access_replacement,
18666 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
18667 gets fancy name.
18668 * tree-pretty-print.c (dump_fancy_name): New function.
18669 (dump_decl_name, dump_generic_node): Use it.
18670
18671 2016-04-13 Jason Merrill <jason@redhat.com>
18672
18673 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
18674 * expr.c (expand_expr_real_1): Likewise.
18675
18676 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
18677
18678 * config/i386/i386.md (kunpckhi): Swap operands.
18679 (kunpcksi): Likewise.
18680 (kunpckdi): Likewise.
18681 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
18682 (vec_pack_trunc_<mode>): Likewise.
18683
18684 2016-04-13 Jakub Jelinek <jakub@redhat.com>
18685
18686 PR debug/70628
18687 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
18688
18689 PR middle-end/70633
18690 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
18691 gimplification turns some element into non-constant.
18692
18693 PR debug/70628
18694 * rtl.h (convert_memory_address_addr_space_1): New prototype.
18695 * explow.c (convert_memory_address_addr_space_1): No longer static,
18696 add NO_EMIT argument and don't call convert_modes if true, pass
18697 it down recursively, remove break after return.
18698 (convert_memory_address_addr_space): Adjust caller.
18699 * simplify-rtx.c (simplify_unary_operation_1): Call
18700 convert_memory_address_addr_space_1 instead of convert_memory_address,
18701 if it returns NULL, don't simplify.
18702
18703 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
18704
18705 PR target/70630
18706 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
18707
18708 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18709
18710 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18711 Bump the upper SIMDLEN limits, so that if the return type or
18712 characteristic type if the return type is void can be passed in
18713 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
18714 allowed.
18715
18716 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18717
18718 PR target/70640
18719 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
18720 Do not use "=" constraint on an input constraint.
18721 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18722 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18723 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
18724 generates (neg (abs ...)) instead of (abs ...).
18725
18726 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18727
18728 PR rtl-optimization/70596
18729 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
18730 just invalidate LRA data and reset them. Adjust dump wording.
18731
18732 2016-04-12 Martin Liska <mliska@suse.cz>
18733
18734 Revert
18735 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
18736
18737 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18738 estimates here.
18739 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18740 max_loop_iterations_int.
18741 (tree_unswitch_outer_loop): Likewise.
18742 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18743 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18744
18745 2016-04-12 Tom de Vries <tom@codesourcery.com>
18746
18747 PR tree-optimization/68756
18748 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
18749 instead of new_name.
18750
18751 2016-04-12 Jakub Jelinek <jakub@redhat.com>
18752
18753 PR tree-optimization/70602
18754 * tree-sra.c (generate_subtree_copies): Don't write anything into
18755 constant pool decls.
18756
18757 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
18758 regardless whether there are depend clauses or not.
18759
18760 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18761
18762 PR target/70381
18763 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
18764 target attribute and pragma from changing the -mfloat128
18765 and -mfloat128-hardware options.
18766
18767 * doc/extend.texi (Additional Floating Types): Document PowerPC
18768 __float128 restrictions.
18769
18770 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18771
18772 PR target/70133
18773 * config/aarch64/driver-aarch64.c
18774 (aarch64_get_extension_string_for_isa_flags): New.
18775 (arch_extension): Rename to...
18776 (aarch64_arch_extension): ...This.
18777 (ext_to_feat_string): Rename to...
18778 (aarch64_extensions): ...This.
18779 (aarch64_core_data): Keep track of architecture extension flags.
18780 (cpu_data): Rename to...
18781 (aarch64_cpu_data): ...This.
18782 (aarch64_arch_driver_info): Keep track of architecture extension
18783 flags.
18784 (get_arch_name_from_id): Rename to...
18785 (get_arch_from_id): ...This, change return type.
18786 (host_detect_local_cpu): Update and reformat for renames, handle
18787 extensions through common infrastructure.
18788
18789 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18790
18791 PR target/70133
18792 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
18793 track of a canonical flag name.
18794 (all_extensions): Likewise.
18795 (arch_to_arch_name): Also track extension flags enabled by the arch.
18796 (all_architectures): Likewise.
18797 (aarch64_parse_extension): Move to here.
18798 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
18799 rework.
18800 (aarch64_rewrite_selected_cpu): Update for above change.
18801 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
18802 are handled, such that the single explicit value enabled by an
18803 extension is kept seperate from the implicit values it also enables.
18804 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
18805 to here.
18806 (aarch64_parse_extension): New.
18807 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
18808 here to config/aarch64/aarch64-protos.h.
18809 (aarch64_parse_extension): Move from here to
18810 common/config/aarch64/aarch64-common.c.
18811 (aarch64_option_print): Update.
18812 (aarch64_declare_function_name): Likewise.
18813 (aarch64_start_file): Likewise.
18814 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
18815 the canonical flag for extensions.
18816 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
18817 flags.
18818
18819 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
18820
18821 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
18822 AARCH64_FL_CRC.
18823
18824 2016-04-09 Tom de Vries <tom@codesourcery.com>
18825
18826 PR tree-optimization/68953
18827 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
18828 first to last subscript.
18829
18830 2016-04-09 Jakub Jelinek <jakub@redhat.com>
18831
18832 PR tree-optimization/70586
18833 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
18834 for any calls.
18835
18836 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
18837
18838 PR lto/70289
18839 PR ipa/70348
18840 PR tree-optimization/70373
18841 PR middle-end/70533
18842 PR middle-end/70534
18843 PR middle-end/70535
18844 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
18845 clauses for acc parallel reductions as necessary. Error on those
18846 that are private.
18847 * omp-low.c (scan_sharing_clauses): Don't install variables which
18848 are used in acc parallel reductions.
18849 (lower_rec_input_clauses): Remove dead code.
18850 (lower_oacc_reductions): Add support for reference reductions.
18851 (lower_reduction_clauses): Remove dead code.
18852 (lower_omp_target): Don't remap variables appearing in acc parallel
18853 reductions.
18854 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
18855
18856 2016-04-08 Jakub Jelinek <jakub@redhat.com>
18857
18858 PR middle-end/70593
18859 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
18860 with multiple SSA_NAME defs, force the outputs other than first
18861 to be live before calling live_track_process_def on each output.
18862
18863 PR rtl-optimization/70574
18864 * fwprop.c (forward_propagate_and_simplify): Don't add
18865 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
18866 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
18867 paradoxical subregs within *loc.
18868
18869 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
18870
18871 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
18872 -ftree-parallelize-loops={0,1}.
18873 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18874 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18875 * config/ia64/hpux.h (LIB_SPEC): Likewise.
18876 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18877 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18878
18879 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
18880
18881 PR sanitizer/70541
18882 * asan.c (instrument_derefs): If we get unknown location, extract it
18883 with EXPR_LOCATION.
18884 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
18885
18886 2016-04-08 Tom de Vries <tom@codesourcery.com>
18887
18888 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
18889 implicit firstprivate clause.
18890
18891 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18892
18893 PR target/70566
18894 * config/arm/thumb2.md (tst + branch-> lsls + branch
18895 peephole below *orsi_not_shiftsi_si): Require that condition
18896 register is dead after the peephole.
18897 (second peephole after the above): Likewise.
18898
18899 2016-04-08 Alan Modra <amodra@gmail.com>
18900
18901 PR target/70117
18902 * builtins.c (fold_builtin_classify): For IBM extended precision,
18903 look at just the high-order double to test for NaN.
18904 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
18905 test just the high double for Inf but both doubles for subnormal
18906 limit.
18907
18908 2016-04-07 Jakub Jelinek <jakub@redhat.com>
18909
18910 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
18911 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
18912 node->simdclone->mask_mode != VOIDmode masks.
18913 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
18914 earlier, use it instead of node->simdclone.
18915 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18916 Set clonei->mask_mode.
18917
18918 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
18919
18920 PR c/70436
18921 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18922 Pass it through to cp_parser_already_scoped_statement.
18923 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
18924 it through to cp_parser_statement.
18925 (cp_parser_statement): Pass IF_P through to
18926 cp_parser_iteration_statement.
18927 (cp_parser_pragma): Adjust call to
18928 cp_parser_iteration_statement.
18929
18930 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
18931
18932 PR c/70436
18933 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18934 resolve a future -Wparentheses warning.
18935 * omp-low.c (scan_sharing_clauses): Likewise.
18936 * tree-parloops.c (eliminate_local_variables): Likewise.
18937
18938 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
18939
18940 PR rtl-optimization/70398
18941 * lra-constraints.c (process_address_1): Check zero scale and code
18942 for reloading with zero scale.
18943
18944 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
18945
18946 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18947 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18948
18949 2016-04-06 Jakub Jelinek <jakub@redhat.com>
18950
18951 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18952 Add support for AVX512F clones, include them by default for
18953 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
18954 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18955 up to 128.
18956
18957 PR middle-end/70550
18958 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18959 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18960 firstprivate clauses.
18961 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18962 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18963 (lower_omp_target): Set TREE_NO_WARNING for
18964 non-addressable possibly uninitialized vars which are copied into
18965 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18966
18967 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
18968
18969 * config/pa/predicates.md (integer_store_memory_operand): Accept
18970 REG+D operands with a large offset when reload_in_progress is true.
18971 (floating_point_store_memory_operand): Likewise.
18972
18973 2016-04-05 Jakub Jelinek <jakub@redhat.com>
18974
18975 PR c++/70336
18976 * match.pd (nested int casts): Limit to GIMPLE.
18977
18978 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
18979
18980 PR ipa/66223
18981 * ipa-devirt.c (maybe_record_node): Fix comment; use
18982 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18983
18984 2016-04-05 Jakub Jelinek <jakub@redhat.com>
18985
18986 PR rtl-optimization/70542
18987 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18988 if there are any uses other than insn or debug insns.
18989
18990 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
18991 Jakub Jelinek <jakub@redhat.com>
18992
18993 PR tree-optimization/70509
18994 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18995 Shift HOST_WIDE_INT_1U instead of 1.
18996
18997 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
18998
18999 PR tree-optimization/70509
19000 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
19001 of the vector base type for index.
19002
19003 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
19004
19005 PR target/70510
19006 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
19007
19008 2016-04-05 Richard Biener <rguenther@suse.de>
19009
19010 PR tree-optimization/70526
19011 * tree-sra.c (build_ref_for_offset): Use prev_base to
19012 extract the alias pointer type.
19013
19014 2016-04-05 Richard Biener <rguenther@suse.de>
19015
19016 * dse.c (struct store_info): Remove alias_set member.
19017 (struct read_info_type): Likewise.
19018 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19019 spill_deleted, clear_alias_set_lookup): Remove.
19020 (get_group_info): Remove dead base == NULL_RTX case.
19021 (dse_step0): Remove initialization of removed variables.
19022 (delete_dead_store_insn): Reomve alias set dumping.
19023 (free_read_records): Remove alias_set handling.
19024 (canon_address): Remove alias_set_out parameter.
19025 (record_store): Remove spill_alias_set, it's always zero.
19026 (check_mem_read_rtx): Likewise.
19027 (dse_step2): Rename from ...
19028 (dse_step2_nospill): ... this. Adjust.
19029 (scan_stores): Rename from ...
19030 (scan_stores_nospill): ... this.
19031 (scan_reads): Rename from ...
19032 (scan_reads_nospill): ... this.
19033 (scan_stores_spill, scan_reads_spill): Remove.
19034 (dse_step3_scan): Remove for_spills argument which is always false.
19035 (dse_step3): Likewise.
19036 (dse_step5): Rename from ...
19037 (dse_step5_nospill): ... this. Remove alias_set handling.
19038 (rest_of_handle_dse): Adjust.
19039
19040 2016-04-05 Jakub Jelinek <jakub@redhat.com>
19041
19042 PR target/70525
19043 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19044 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19045 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19046 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19047
19048 2016-04-05 Richard Biener <rguenther@suse.de>
19049
19050 PR middle-end/70499
19051 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19052 non-register type temporaries into SSA.
19053
19054 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
19055
19056 PR ipa/66223
19057 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19058 calls when sanitizing.
19059 (possible_polymorphic_call_target_p): Fix formatting.
19060
19061 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19062 Jakub Jelinek <jakub@redhat.com>
19063
19064 PR middle-end/70457
19065 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19066 to ensure a call statement is compatible with a built-in's
19067 prototype.
19068 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19069 Likewise.
19070
19071 2016-04-04 Richard Biener <rguenther@suse.de>
19072
19073 PR rtl-optimization/70484
19074 * rtl.h (canon_output_dependence): Declare.
19075 * alias.c (canon_output_dependence): New function.
19076 * dse.c (record_store): Use canon_output_dependence rather
19077 than canon_true_dependence.
19078
19079 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19080
19081 PR ipa/68881
19082 * cgraph.h (symtab_node::copy_visibility_from): New function.
19083 * symtab.c (symtab_node::copy_visibility_from): New function.
19084 * ipa-visibility.c (optimize_weakref): New function.
19085 (function_and_variable_visibility): Use it.
19086
19087 2016-04-04 Martin Liska <mliska@suse.cz>
19088
19089 PR hsa/70402
19090 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19091 value that is really in range handled by SBR instruction.
19092 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19093 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19094 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19095
19096 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
19097
19098 PR target/70416
19099 PR target/67391
19100 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19101 set, but not for SP_REG operands.
19102
19103 2016-04-02 Martin Sebor <msebor@redhat.com>
19104
19105 PR c++/67376
19106 * fold-const.c (maybe_nonzero_address): New function.
19107 (fold_comparison): Call it. Fold equality and relational
19108 expressions involving null pointers.
19109 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19110
19111 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
19112
19113 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19114 the "Y" constraint (scalar FP 0.0 immediate).
19115
19116 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19117 Add the "const_double" to the list of operand constraints.
19118
19119 2016-04-01 Jakub Jelinek <jakub@redhat.com>
19120
19121 PR rtl-optimization/70467
19122 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19123 If low word of the last operand is 0, just emit addition/subtraction
19124 for the high word.
19125
19126 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19127
19128 PR target/70404
19129 * config/s390/s390.c (s390_expand_insv): Check for everything
19130 constant instead of just VOIDmode stuff.
19131
19132 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19133
19134 PR target/70496
19135 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19136
19137 2016-04-01 Nathan Sidwell <nathan@acm.org>
19138
19139 * tree.def (TRY_CATCH_EXPR): Correct documentation.
19140
19141 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
19142
19143 PR rtl-optimization/70461
19144 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19145 is necessary.
19146
19147 2016-03-31 Martin Liska <mliska@suse.cz>
19148
19149 PR hsa/70399
19150 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19151 a tree value or an immediate integer value to a buffer
19152 that is eventually copied to a BRIG section.
19153 (emit_immediate_operand): Call the function here.
19154 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19155 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19156 of class' fields that are removed.
19157 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19158 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19159 m_brig_repr_size fields.
19160
19161 2016-03-31 Martin Liska <mliska@suse.cz>
19162
19163 PR hsa/70391
19164 * hsa-gen.c (hsa_function_representation::update_dominance): New
19165 function.
19166 (convert_addr_to_flat_segment): Likewise.
19167 (gen_hsa_memory_set): New alignment argument.
19168 (gen_hsa_ctor_assignment): Likewise.
19169 (gen_hsa_insns_for_single_assignment): Provide alignment
19170 to gen_hsa_ctor_assignment.
19171 (gen_hsa_insns_for_direct_call): Add new argument.
19172 (expand_lhs_of_string_op): New function.
19173 (expand_string_operation_builtin): Likewise.
19174 (expand_memory_copy): New function.
19175 (expand_memory_set): New function.
19176 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19177 (convert_switch_statements): Change signature.
19178 (generate_hsa): Use a return value of the function.
19179 (pass_gen_hsail::execute): Do not call
19180 convert_switch_statements here.
19181 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19182 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19183 (hsa_function_representation::update_dominance): New function.
19184
19185 2016-03-31 Martin Liska <mliska@suse.cz>
19186
19187 PR hsa/70391
19188 * hsa-brig.c (emit_directive_variable): Emit alignment
19189 according to hsa_symbol::m_align.
19190 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19191 (dump_hsa_symbol): Dump alignment of HSA symbols.
19192 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19193 (gen_hsa_addr_with_align): New function.
19194 (hsa_bitmemref_alignment): Use newly added function.
19195 (gen_hsa_insns_for_load): Likewise.
19196 (gen_hsa_insns_for_store): Likewise.
19197 (gen_hsa_memory_copy): New argument added.
19198 (gen_hsa_insns_for_single_assignment): Respect
19199 alignment for assignments processed via gen_hsa_memory_copy.
19200 (gen_hsa_insns_for_direct_call): Likewise.
19201 (gen_hsa_insns_for_return): Likewise.
19202 (gen_function_def_parameters): Set default alignment.
19203 * hsa.c (hsa_object_alignment): New function.
19204 (hsa_byte_alignment): Pasted function.
19205 * hsa.h (hsa_symbol::m_align): New field.
19206
19207 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19208
19209 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19210 scratch field for goto case.
19211
19212 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
19213
19214 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19215
19216 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
19217
19218 PR target/70442
19219 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19220 (scalar_chain::convert_insn): Call convert_op for reg
19221 moves to handle undefined registers.
19222
19223 2016-03-31 Nathan Sidwell <nathan@acm.org>
19224
19225 PR c++/70393
19226 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19227 Assert we don't want to move backwards.
19228
19229 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
19230
19231 PR target/70453
19232 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19233
19234 2016-03-31 Jakub Jelinek <jakub@redhat.com>
19235
19236 PR rtl-optimization/70460
19237 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19238 with operand from REG_LABEL_OPERAND, instead substitute
19239 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19240 Don't do anything for REG_NON_LOCAL_GOTO jumps.
19241
19242 2016-03-31 Martin Liska <mliska@suse.cz>
19243
19244 * passes.c (execute_one_pass): Do not call
19245 todo_after for a discarded function.
19246
19247 2016-03-31 Bin Cheng <bin.cheng@arm.com>
19248
19249 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19250 (no_cost, infinite_cost): Initialize the new field.
19251 (get_computation_cost_at): Record setup cost.
19252 (determine_use_iv_cost_address): Skip cost computation for sub
19253 uses if we can estimate it without losing accuracy.
19254
19255 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19256
19257 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19258 estimates here.
19259 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19260 max_loop_iterations_int.
19261 (tree_unswitch_outer_loop): Likewise.
19262 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19263 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19264
19265 2016-03-30 Richard Biener <rguenther@suse.de>
19266
19267 PR middle-end/70450
19268 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19269
19270 2016-03-30 Jakub Jelinek <jakub@redhat.com>
19271
19272 PR target/70421
19273 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19274 in gen_blendm expander.
19275
19276 2016-03-30 Nick Clifton <nickc@redhat.com>
19277
19278 PR target/62254
19279 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19280 case where we are already provided with an SImode SUBREG.
19281
19282 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
19283
19284 PR target/70439
19285 * config/i386/i386.c (ix86_expand_epilogue): Properly check
19286 conflict between DRAP register and __builtin_eh_return.
19287
19288 2016-03-30 Michael Matz <matz@suse.de>
19289 Richard Biener <rguenther@suse.de>
19290
19291 PR ipa/12392
19292 * ipa-polymorphic-call.c (struct type_change_info): Change
19293 speculative to an unsigned allowing to limit the work we do.
19294 (csftc_abort_walking_p): New inline function..
19295 (check_stmt_for_type_change): Limit the number of may-defs
19296 skipped for speculative devirtualization to
19297 max-speculative-devirt-maydefs.
19298 * params.def (max-speculative-devirt-maydefs): New param.
19299 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19300
19301 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
19302
19303 PR target/63890
19304 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19305 and TARGET_MACHO.
19306
19307 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
19308
19309 PR tree-optimization/59124
19310 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19311 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19312
19313 2016-03-29 Jeff Law <law@redhat.com>
19314
19315 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19316
19317 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19318
19319 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19320 to HOST_WIDE_INT.
19321
19322 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
19323
19324 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19325 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19326 gcrt0.o if linking dynamically.
19327
19328 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
19329
19330 PR ipa/70283
19331 * ipa-devirt.c (methods_equal_p): New function.
19332 (compare_virtual_tables): Use it.
19333 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19334 * cgraphclones.c (clone_function_name_1): Use
19335 symbol_table::symbol_suffix_separator.
19336 * coverage.c (build_var): Likewise.
19337 * symtab.c (symbol_table::symbol_suffix_separator): New.
19338
19339 2016-03-29 Jakub Jelinek <jakub@redhat.com>
19340
19341 PR rtl-optimization/70429
19342 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19343 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19344 mode != result_mode.
19345
19346 PR c++/70353
19347 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19348
19349 PR tree-optimization/70405
19350 * ssa-iterators.h (num_imm_uses): Add missing braces.
19351
19352 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
19353
19354 PR rtl-optimization/68695
19355 * ira-color.c (allocno_copy_cost_saving): New.
19356 (improve_allocation): Use it.
19357
19358 2016-03-29 Richard Henderson <rth@redhat.com>
19359
19360 PR middle-end/70355
19361 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19362
19363 2016-03-29 Richard Biener <rguenther@suse.de>
19364
19365 PR middle-end/70424
19366 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19367 use alignment returned by get_pointer_alignment_1 if it is
19368 bigger than BITS_PER_UNIT.
19369 * builtins.c (get_pointer_alignment_1): Do not return true
19370 for alignment extracted from SSA info.
19371
19372 2016-03-28 James Bowman <james.bowman@ftdichip.com>
19373
19374 * config/ft32/ft32.opt (mnodiv): New.
19375 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19376 * doc/invoke.texi (FT32 Options -mnodiv): New.
19377
19378 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
19379
19380 PR target/70406
19381 * config/i386/i386.md (define_split, andn): Fix modes.
19382
19383 2016-03-26 Richard Biener <rguenther@suse.de>
19384 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19385
19386 PR ipa/70366
19387 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19388 instead of
19389 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19390 as 2nd argument to cl_optimization_restore().
19391
19392 2016-03-25 Richard Henderson <rth@redhat.com>
19393
19394 PR target/70120
19395 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19396 * config/aarch64/aarch64-protos.h: Declare it.
19397 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19398
19399 2016-03-25 Alan Modra <amodra@gmail.com>
19400
19401 PR target/70052
19402 * config/rs6000/constraints.md (j): Simplify.
19403 * config/rs6000/predicates.md (easy_fp_constant): Exclude
19404 decimal float 0.D.
19405 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19406 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19407 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19408 in all constraint alternatives.
19409 (movtd_64bit_nodm): Delete "j" constraint alternative.
19410
19411 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19412
19413 * tree-ssa-propagate.c: Enhance docs for
19414 SSA_PROP_NOT_INTERESTING.
19415
19416 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
19417
19418 * doc/extend.texi: Fix typo in documentation to pure attribute.
19419
19420 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
19421
19422 PR target/70319
19423 * config/pa/pa.md (bswapdi2): Use a scratch register.
19424
19425 2016-03-24 Richard Henderson <rth@redhat.com>
19426
19427 PR middle-end/69845
19428 * fold-const.c (extract_muldiv_1): Correct test for multiplication
19429 overflow.
19430
19431 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
19432
19433 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19434 using ix86_expand_binary_operator instead of gen_andsi3.
19435
19436 2016-03-24 Richard Biener <rguenther@suse.de>
19437
19438 PR tree-optimization/70396
19439 * tree-vect-stmts.c (vectorizable_comparison): Use
19440 get_vectype_for_scalar_type.
19441
19442 2016-03-24 Richard Biener <rguenther@suse.de>
19443
19444 PR middle-end/70370
19445 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19446 with register bases.
19447
19448 2016-03-24 Richard Biener <rguenther@suse.de>
19449
19450 PR tree-optimization/70372
19451 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19452 build_all_ones_cst to also handle vector types correctly.
19453
19454 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19455
19456 PR target/70381
19457 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19458 -mfloat128 here.
19459
19460 2016-03-23 Marek Polacek <polacek@redhat.com>
19461
19462 PR c++/69884
19463 * doc/invoke.texi: Document -Wignored-attributes.
19464
19465 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19466
19467 PR tree-optimization/69042
19468 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19469 parameter from 30 to 40.
19470
19471 2016-03-23 Bin Cheng <bin.cheng@arm.com>
19472
19473 PR tree-optimization/69042
19474 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19475 for use with constant offset stripped in base.
19476
19477 2016-03-23 Richard Biener <rguenther@suse.de>
19478
19479 PR middle-end/70251
19480 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19481 mode compatibility check.
19482 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19483
19484 2016-03-23 Jeff Law <law@redhat.com>
19485
19486 PR tree-optimization/64058
19487 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19488 CONFLICT_COUNT.
19489 (struct ssa_conflicts): Move up earlier in the file.
19490 (conflicts_, var_map_): New static variables.
19491 (initialize_conflict_count): New function to initialize the
19492 CONFLICT_COUNT field for each conflict pair.
19493 (compare_pairs): Lazily initialize the conflict count and use it
19494 as the first tie-breaker.
19495 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
19496 and wipe conflicts_ and map_ around the call to qsort. Remove
19497 special case for 2 coalesce pairs.
19498 * bitmap.c (bitmap_count_unique_bits): New function.
19499 (bitmap_count_bits_in_word): New function, extracted from
19500 bitmap_count_bits.
19501 (bitmap_count_bits): Use bitmap_count_bits_in_word.
19502 * bitmap.h (bitmap_count_unique_bits): Declare it.
19503
19504 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
19505
19506 PR target/69917
19507 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19508 transparent alias chain for decl assembler name.
19509 * config/sol2.c (solaris_assemble_visibility): Likewise.
19510
19511 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19512
19513 * config/arm/arm1020e.md (1020call_op): Reduce reservation
19514 duration.
19515 (v10_fdivs): Likewise.
19516 (v10_fdivd): Likewise.
19517
19518 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19519
19520 PR driver/70132
19521 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19522 to not call fclose twice on file.
19523
19524 2016-03-23 Jakub Jelinek <jakub@redhat.com>
19525
19526 PR tree-optimization/70354
19527 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19528 oprnd0 is wider than oprnd1 and there is a cast from the wider
19529 type to oprnd1, mask it with the mask of the narrower type.
19530
19531 PR target/70321
19532 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19533 Optimize TARGET_STV splitters, if high or low word of last argument
19534 is 0 or -1.
19535
19536 2016-03-22 Jeff Law <law@redhat.com>
19537
19538 PR target/70232
19539 tree-ssa-threadbackward.c
19540 (fsm_find_control_statement_thread_paths): Correctly distinguish
19541 between old style jump threads vs FSM jump threads.
19542
19543 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19544
19545 PR target/70302
19546 * config/i386/i386.c (scalar_chain::convert_op): Support
19547 uninitialized register usage case.
19548
19549 2016-03-22 Richard Biener <rguenther@suse.de>
19550
19551 PR middle-end/70251
19552 * genmatch.c (gen_transform): Adjust last parameter to a three-state
19553 int...
19554 (capture::gen_transform): ... to change behavior when substituting
19555 a condition into cond or not-cond expr context.
19556 (dt_simplify::gen_1): Adjust.
19557 * gimple-match-head.c: Include gimplify.h for unshare_expr.
19558 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19559 last change and instead change to
19560 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19561 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19562
19563 2016-03-22 Anthony Green <green@moxielogic.com>
19564
19565 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
19566 issue for moxiebox targets.
19567 (CC1PLUS_SPEC): Ditto.
19568
19569 2016-03-22 Richard Biener <rguenther@suse.de>
19570
19571 PR middle-end/70333
19572 * fold-const.c (extract_muldiv_1): Properly perform multiplication
19573 in the wide type.
19574
19575 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19576
19577 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19578
19579 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
19580
19581 PR target/70325
19582 * config/i386/i386.c (def_builtin): Handle
19583 OPTION_MASK_ISA_AVX512VL to be and-ed with other
19584 bits.
19585 (const struct builtin_description bdesc_special_args[]):
19586 Remove duplicate ISA bits.
19587
19588 2016-03-22 Jakub Jelinek <jakub@redhat.com>
19589
19590 PR target/70329
19591 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19592 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
19593 in a way that works also for AVX512BW.
19594
19595 PR target/70300
19596 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
19597 instead of source if operands[1] is xmm16 and above and
19598 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
19599 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
19600
19601 PR c++/70295
19602 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
19603 on assign if (*from_p) is a comparison, set it to
19604 TREE_NO_WARNING (*from_p).
19605
19606 2016-03-21 Jakub Jelinek <jakub@redhat.com>
19607
19608 PR middle-end/70326
19609 * lra.c (restore_scratches): Ignore deleted insns.
19610
19611 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
19612 Jakub Jelinek <jakub@redhat.com>
19613
19614 PR tree-optimization/70317
19615 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
19616 to HONOR_NANS.
19617
19618 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
19619
19620 PR target/70327
19621 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
19622 of ix86_expand_move.
19623 (movoi): Ditto.
19624 (movti): Use general_operand for operand 1 predicate.
19625
19626 2016-03-21 Martin Liska <mliska@suse.cz>
19627
19628 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
19629 insns.
19630 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
19631
19632 2016-03-21 Martin Liska <mliska@suse.cz>
19633
19634 PR ipa/70306
19635 * ipa-icf.c (sem_function::parse): Skip static
19636 constructors and destructors.
19637
19638 2016-03-21 Jakub Jelinek <jakub@redhat.com>
19639
19640 PR target/70296
19641 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
19642 function-like macro, peek following token(s) if it is followed
19643 by CPP_OPEN_PAREN token with optional padding in between, and
19644 if not, don't treat it like a macro.
19645
19646 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
19647 Alexander Monakov <amonakov@ispras.ru>
19648
19649 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
19650 for the stabs debug format.
19651
19652 2016-03-21 Richard Biener <rguenther@suse.de>
19653
19654 PR tree-optimization/70310
19655 * tree-vect-generic.c (expand_vector_condition): Fold the built
19656 condition.
19657
19658 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
19659
19660 PR target/70293
19661 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
19662 Block third alternative for AVX-512VL target,
19663
19664 2016-03-21 Martin Liska <mliska@suse.cz>
19665
19666 PR hsa/70234
19667 * hsa-brig.c (emit_function_directives): Mark unemitted
19668 global variables for emission.
19669 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
19670 (get_symbol_for_decl): Likewise.
19671 * hsa.h (struct hsa_symbol): New flag.
19672
19673 2016-03-21 Richard Biener <rguenther@suse.de>
19674
19675 PR tree-optimization/70288
19676 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
19677 we do not estimate unsimplified all-constant conditionals or
19678 switches as optimized away.
19679
19680 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
19681
19682 PR rtl-optimization/69102
19683 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
19684 when we have a readonly dependency context.
19685
19686 2016-03-18 Jeff Law <law@redhat.com>
19687
19688 PR rtl-optimization/70263
19689 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
19690 (update_equiv_regs): When trying to move a store to after the insn
19691 that sets the source of the store, make sure the store occurs after
19692 the insn that sets the source of the store. When successful note
19693 the REG_EQUIV note created in the dump file.
19694
19695 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
19696 Bernd Schmidt <bschmidt@redhat.com>
19697
19698 * doc/extend.texi: Document more potential problems with basic asms.
19699
19700 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
19701
19702 PR rtl-optimization/70278
19703 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
19704 VOIDmode.
19705
19706 2016-03-18 Jason Merrill <jason@redhat.com>
19707
19708 * calls.c (load_register_parameters): Fix zero size sibcall logic.
19709
19710 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
19711
19712 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
19713 values to 128b regs.
19714
19715 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
19716
19717 PR tree-optimization/70252
19718 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
19719 boolean vector has a proper number of elements.
19720 (supportable_narrowing_operation): Likewise.
19721
19722 2016-03-18 Tom de Vries <tom@codesourcery.com>
19723
19724 PR ipa/70269
19725 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
19726
19727 2016-03-18 Jakub Jelinek <jakub@redhat.com>
19728
19729 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
19730 instead of replace_rtx for DEBUG_INSNs.
19731
19732 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19733
19734 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
19735 load type reservations.
19736
19737 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
19738
19739 PR target/70188
19740 * config/pa/constraints.md: Revert 2015-02-13 change. Use
19741 define_constraint for "Q" and "T" constraints.
19742
19743 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
19744
19745 Tweak the pipeline model for Exynos M1
19746
19747 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
19748 model.
19749
19750 2016-03-17 David Malcolm <dmalcolm@redhat.com>
19751
19752 PR c/70264
19753 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
19754 where one or both locations aren't within a line_map.
19755
19756 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
19757
19758 PR driver/70192
19759 * opts.c (finish_options): Don't set flag_pie to the default if
19760 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
19761 if it is -1.
19762
19763 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
19764
19765 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
19766 true as ALL_REGS argument to replace_rtx.
19767
19768 2016-03-17 Richard Biener <rguenther@suse.de>
19769
19770 PR debug/70271
19771 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
19772 last.
19773
19774 2016-03-17 Jakub Jelinek <jakub@redhat.com>
19775
19776 PR target/70245
19777 * rtl.h (replace_rtx): Add ALL_REGS argument.
19778 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
19779 equality and assert mode is the same, instead of just rtx pointer
19780 equality.
19781 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
19782 true as ALL_REGS argument to replace_rtx.
19783
19784 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
19785
19786 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
19787 for boolean vector with vector mode only.
19788 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19789
19790 2016-03-17 Nick Clifton <nickc@redhat.com>
19791
19792 PR target/70162
19793 * config/rx/rx.c (rx_print_integer): Print negative constants in
19794 decimal.
19795
19796 2016-03-17 Jakub Jelinek <jakub@redhat.com>
19797
19798 PR target/70261
19799 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
19800
19801 2016-03-16 Richard Henderson <rth@redhat.com>
19802 Richard Biener <rguenth@suse.de>
19803
19804 PR middle-end/70240
19805 PR middle-end/68215
19806 PR tree-opt/68714
19807 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
19808 first operand as is_gimple_condexpr.
19809
19810 PR middle-end/70240
19811 PR middle-end/68215
19812 Revert r231575
19813 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
19814 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
19815 Do not gimplify the result.
19816 (do_unop): Adjust call to tree_vec_extract.
19817 (do_binop): Likewise.
19818 (do_compare): Likewise.
19819 (do_plus_minus): Likewise.
19820 (do_negate): Likewise.
19821 (expand_vector_condition): Likewise.
19822 (do_cond): Likewise.
19823
19824 2016-03-16 Richard Henderson <rth@redhat.com>
19825
19826 PR target/70048
19827 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
19828 (aarch64_classify_address): Use it.
19829 (aarch64_legitimize_address): Force all subexpressions of PLUS
19830 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
19831
19832 2016-03-16 Jakub Jelinek <jakub@redhat.com>
19833 Richard Biener <rguenth@suse.de>
19834
19835 PR target/70245
19836 * rtlanal.c (replace_rtx): For REG, if from is a REG,
19837 return to even if only REGNO is equal, and assert
19838 mode is the same.
19839
19840 2016-03-11 Jeff Law <law@redhat.com>
19841
19842 PR rtl-optimization/70224
19843 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
19844
19845 2016-03-16 Richard Henderson <rth@redhat.com>
19846
19847 PR middle-end/70199
19848 * function.h (struct function): Add has_forced_label_in_static.
19849 * gimplify.c (force_labels_r): Set it.
19850 * lto-streamer-in.c (input_struct_function_base): Read it.
19851 * lto-streamer-out.c (output_struct_function_base): Write it.
19852 * tree-inline.c (has_label_address_in_static_1): Remove.
19853 (copy_forbidden): Remove fndecl parameter; test
19854 has_forced_label_in_static.
19855 (inline_forbidden_p): Update call to copy_forbidden.
19856 (tree_versionable_function_p): Likewise.
19857 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
19858 (chkp_versioning): Likewise.
19859 * tree-inline.h (copy_forbidden): Update decl.
19860
19861 2016-03-16 Marek Polacek <polacek@redhat.com>
19862
19863 PR c/70093
19864 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
19865 function being thunked if the result type doesn't have fixed size.
19866 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
19867 doesn't have fixed size.
19868
19869 2016-03-16 Bin Cheng <bin.cheng@arm.com>
19870
19871 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
19872 reporting malformed loop nest.
19873
19874 2016-03-16 Tom de Vries <tom@codesourcery.com>
19875
19876 PR lto/70187
19877 * ipa-devirt.c (possible_polymorphic_call_targets): Move
19878 nodes.length () == 1 test to before first nodes[0] access.
19879
19880 2016-03-16 Tom de Vries <tom@codesourcery.com>
19881
19882 PR tree-optimization/68715
19883 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
19884 single_pred_p test.
19885
19886 2016-03-16 Tom de Vries <tom@codesourcery.com>
19887
19888 PR tree-optimization/68809
19889 * graphite-scop-detection.c (same_close_phi_node): Test if result types
19890 are the same.
19891
19892 2016-03-16 Carlos O'Donell <carlos@redhat.com>
19893 Sandra Loosemore <sandra@codesourcery.com>
19894
19895 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
19896 on leaf attribute. Mention ELF interposition problems.
19897
19898 2016-03-16 Alan Modra <amodra@gmail.com>
19899
19900 PR rtl-optimization/69195
19901 PR rtl-optimization/47992
19902 * ira.c (indirect_jump_optimize): Ignore artificial defs.
19903 Add comments.
19904
19905 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
19906
19907 PR bootstrap/69513
19908 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
19909
19910 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19911
19912 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
19913
19914 2016-03-15 Jakub Jelinek <jakub@redhat.com>
19915
19916 PR rtl-optimization/70222
19917 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19918 optimization if mode is different from result_mode, queue up masking
19919 of the result in outer_op. Formatting fix.
19920
19921 PR middle-end/70239
19922 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19923 of safe_grow.
19924
19925 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19926
19927 PR rtl-optimization/69032
19928 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19929 looping backwards over basic block insns.
19930
19931 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19932
19933 PR target/66660
19934 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19935 to non-speculative when propagating trap bits.
19936
19937 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19938
19939 PR rtl-optimization/63384
19940 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19941 DEBUG_INSN_P insns.
19942
19943 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
19944
19945 PR target/64411
19946 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19947 factored out from ...
19948 (sched_analyze_insn): ... here.
19949 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19950 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19951 get_implicit_reg_pending_clobbers in it.
19952 (setup_id_reg_sets): Use setup_id_implicit_regs.
19953 (deps_init_id): Ditto.
19954
19955 2016-03-15 Tom de Vries <tom@codesourcery.com>
19956
19957 PR ipa/70161
19958 * cgraph.c (cgraph_node::get_body): Save, reset and restore
19959 dump_file_name.
19960 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19961 execute_function_dump.
19962 (execute_one_pass): Don't dump function if it will be dumped after ipa
19963 transform.
19964
19965 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
19966
19967 * genrecog.c (match_pattern_2): If pred is NULL don't call
19968 safe_predicate_mode on it.
19969
19970 2016-03-14 Jakub Jelinek <jakub@redhat.com>
19971
19972 PR middle-end/70219
19973 * lra-constraints.c (delete_move_and_clobber): Change assertion
19974 to also allow dregno == 0.
19975
19976 2016-03-14 Richard Henderson <rth@redhat.com>
19977
19978 PR tree-opt/68714
19979 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19980 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19981 (reassociate_bb): Use optimize_vec_cond_expr; avoid
19982 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19983 on vectors.
19984
19985 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
19986
19987 PR target/70083
19988 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19989 regs.
19990 (lra_create_live_ranges_1): initialize hard register biggest_mode to
19991 VOIDmode.
19992 * lra-constraints.c (split_reg): For hard regs, try to find the
19993 biggest single-register mode used in the function.
19994
19995 2016-03-14 Richard Biener <rguenther@suse.de>
19996
19997 PR tree-optimization/56365
19998 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19999 constants to compare against.
20000
20001 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
20002
20003 PR target/70098
20004 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
20005 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
20006 (define_split for the GPR case): Use int_reg_operand instead of
20007 gpc_reg_operand for the output.
20008
20009 2016-03-14 Tom de Vries <tom@codesourcery.com>
20010
20011 PR tree-optimization/70045
20012 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
20013 create_empty_if_region_on_edge argument.
20014
20015 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
20016
20017 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
20018 (STACK_CHECK_PROTECT): Likewise.
20019 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20020 (STACK_CHECK_PROTECT): Likewise.
20021 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20022 (STACK_CHECK_PROTECT): Likewise.
20023 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20024 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20025 (STACK_CHECK_PROTECT): Likewise.
20026
20027 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
20028
20029 PR rtl-optimization/69307
20030 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20031 registers in modes that span more than one register.
20032
20033 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
20034
20035 PR target/69614
20036 * lra-constraints.c (delete_move_and_clobber): New.
20037 (remove_inheritance_pseudos): Use it.
20038
20039 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
20040
20041 PR ada/70017
20042 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20043 the libcall is LCT_THROW.
20044 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20045 for the checking routine.
20046
20047 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20048
20049 PR target/70131
20050 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20051 optimization if we have direct move.
20052 (roundu32<mode>2_fprs): Likewise.
20053
20054 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
20055
20056 PR target/70123
20057 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20058 be rematerialized.
20059 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20060 Arguments swapped. All callers changed. Take reg_renumber into
20061 account, and Calculate and compare register ranges for hard regs.
20062
20063 2016-03-11 Jeff Law <law@redhat.com>
20064
20065 PR tree-optimization/70190
20066 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20067 Handle cases where we can not extract the taken edge, even though we
20068 found a constant value.
20069
20070 PR tree-optimization/64058
20071 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20072 (num_coalesce_pairs): Move up earlier in file.
20073 (find_coalesce_pair): Initialize the INDEX field for each pair
20074 discovered.
20075 (compare_pairs): No longer sort on the elements in each pair.
20076 Instead break ties with the index of the coalesce pair.
20077
20078 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20079
20080 PR target/70002
20081 * config/aarch64/aarch64-protos.h
20082 (aarch64_save_restore_target_globals): New prototype.
20083 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20084 Call the above when popping pragma.
20085 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20086 New function.
20087 (aarch64_set_current_function): Rewrite using the above.
20088
20089 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20090
20091 PR tree-optimization/70177
20092 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20093 (extract_ops_from_tree): ... this. In the 2 argument
20094 overload remove _1 suffix.
20095 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20096 (extract_ops_from_tree): ... this.
20097 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20098 Adjust callers.
20099 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20100 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20101 extract_ops_from_tree instead of 2 operand one.
20102
20103 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
20104
20105 PR tree-optimization/70013
20106 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20107 for constant-pool entries.
20108
20109 2016-03-11 Jakub Jelinek <jakub@redhat.com>
20110
20111 PR rtl-optimization/70174
20112 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20113 followed by gen_lowpart on force_reg instead of just gen_lowpart.
20114
20115 PR tree-optimization/70169
20116 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20117 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
20118 for unknown codes.
20119
20120 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
20121 Jakub Jelinek <jakub@redhat.com>
20122
20123 PR target/70160
20124 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20125 of uninitialized values.
20126
20127 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20128
20129 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20130 define_expand.
20131 ("*trunctddd2"): New pattern definition.
20132 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20133 TD->DD truncation.
20134
20135 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20136
20137 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20138 definitions for BFP and DFP rounding modes.
20139 ("fixuns_truncdddi2", "fixuns_trunctddi2")
20140 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20141 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20142 ("fix_trunctf<mode>2"): Use the new constants instead of magic
20143 numbers.
20144
20145 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20146
20147 * config/s390/constraints.md: Adjust comment.
20148 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
20149 s390_decompose_addrstyle_without_index.
20150 * config/s390/predicates.md (shift_count_or_setmem_operand):
20151 Rename to setmem_operand.
20152 * config/s390/s390-protos.h
20153 (s390_decompose_shift_count): Rename to
20154 s390_decompose_addrstyle_without_index.
20155 * config/s390/s390.c (s390_decompose_shift_count)
20156 (s390_mem_constraint, print_shift_count_operand)
20157 (print_operand_address, print_operand): Rename
20158 s390_decompose_shift_count to
20159 s390_decompose_addrstyle_without_index and rename
20160 print_shift_count_operand to print_addrstyle_operand troughout the
20161 file.
20162 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20163 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20164 Rename shift_count_or_setmem_operand to setmem_operand.
20165 * config/s390/vx-builtins.md ("vec_insert<mode>")
20166 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20167 nonmemory_operand.
20168
20169 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20170
20171 PR target/70168
20172 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20173 Handle overlapping retval and newval.
20174
20175 2016-03-10 Nick Clifton <nickc@redhat.com>
20176
20177 PR target/7044
20178 * config/aarch64/aarch64.c
20179 (aarch64_override_options_after_change_1): When forcing
20180 flag_omit_frame_pointer to be true, use a special value that can
20181 be detected if this function is called again, thus preventing
20182 flag_omit_leaf_frame_pointer from being forced to be false.
20183
20184 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20185
20186 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20187 Set x_flag_omit_leaf_frame_pointer when handling
20188 -momit-leaf-frame-pointer.
20189
20190 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20191
20192 PR lto/69589
20193 * cgraph.c (cgraph_node::dump): Dump split_part and
20194 indirect_call_target.
20195 * cgraph.h (cgraph_node): Add indirect_call_target flag.
20196 * ipa.c (has_addr_references_p): Cleanup.
20197 (is_indirect_call_target_p): New.
20198 (walk_polymorphic_call_targets): Do not mark virtuals that may be
20199 called indirectly as local.
20200 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20201
20202 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20203
20204 PR ipa/69630
20205 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20206 on cxa_pure_virtual.
20207
20208 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20209
20210 PR lto/69589
20211 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20212
20213 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20214
20215 PR lto/69589
20216 * tree.c (need_assembler_name_p): Only record main variant type names.
20217
20218 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20219
20220 PR target/70113.
20221 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20222 Always define to 0 or 1.
20223 (TARGET_FIX_ERR_A53_843419): New macro.
20224 * config/aarch64/aarch64-elf-raw.h
20225 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20226 * config/aarch64/aarch64-linux.h: Likewise.
20227 * config/aarch64/aarch64.c
20228 (aarch64_override_options_after_change_1): Do not default
20229 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20230 843419 is on.
20231 (aarch64_attributes): Handle fix-cortex-a53-843419.
20232 (aarch64_can_inline_p): Likewise.
20233 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20234
20235 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
20236 Jakub Jelinek <jakub@redhat.com>
20237
20238 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20239 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20240 DECL_COMMONS if flag_unconstrained_commons is set.
20241 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20242 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20243 (funconstrained-commons): Document.
20244
20245 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
20246
20247 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20248 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20249
20250 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
20251
20252 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20253 has a proper number of elements.
20254
20255 2016-03-10 Alan Modra <amodra@gmail.com>
20256
20257 PR rtl-optimization/69195
20258 PR rtl-optimization/47992
20259 * ira.c (recorded_label_ref): Delete.
20260 (update_equiv_regs): Return void.
20261 (indirect_jump_optimize): New function.
20262 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20263 before regstat_compute_ri. Don't rebuild_jump_labels here.
20264 Delete update_regstat.
20265
20266 2016-03-10 Richard Biener <rguenther@suse.de>
20267
20268 PR tree-optimization/70128
20269 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20270 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20271
20272 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20273
20274 PR tree-optimization/70152
20275 * tree-sra.c (replace_removed_params_ssa_names): Copy over
20276 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20277
20278 PR target/70086
20279 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20280 instead of gen_sse2_loadlpd.
20281 * config/i386/sse.md (*vec_concatv2df): Rename to...
20282 (vec_concatv2df): ... this.
20283
20284 PR tree-optimization/70127
20285 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20286
20287 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20288
20289 PR c/68473
20290 PR c++/70105
20291 * diagnostic-show-locus.c (compatible_locations_p): New function.
20292 (layout::layout): Sanitize ranges using compatible_locations_p.
20293
20294 2016-03-09 David Malcolm <dmalcolm@redhat.com>
20295
20296 PR c/68473
20297 PR c++/70105
20298 * diagnostic-show-locus.c (layout_range::layout_range): Replace
20299 location_range param with three const expanded_locations * and a
20300 bool.
20301 (layout::layout): Replace call to
20302 rich_location::lazily_expand_location with get_expanded_location.
20303 Extract the range and perform location expansion here, passing
20304 the results to the layout_range ctor.
20305 * diagnostic.c (source_range::debug): Delete.
20306 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20307 of rich_location::get_expanded_location.
20308 * gcc-rich-location.c (get_range_for_expr): Delete.
20309 (gcc_rich_location::add_expr): Reimplement to avoid the
20310 rich_location::add_range overload that took a location_range,
20311 passing a location_t instead.
20312
20313 2016-03-09 Richard Biener <rguenther@suse.de>
20314 Jakub Jelinek <jakub@redhat.com>
20315
20316 PR tree-optimization/70138
20317 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20318 Also skip vect_double_reduction_def.
20319
20320 2016-03-09 Jakub Jelinek <jakub@redhat.com>
20321
20322 PR target/70049
20323 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20324 if the operand is "m".
20325
20326 2016-03-09 Nathan Sidwell <nathan@acm.org>
20327
20328 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20329
20330 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20331
20332 * config/i386/i386.c (processor_target_table): Fix cost table
20333 intialization order for znver1.
20334
20335 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20336
20337 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20338 - becuase -> because.
20339 * ipa-reference.c (ignore_module_statics): Likewise.
20340 * cgraph.c (cgraph_node::get_body): Likewise.
20341 * ipa-inline.c (early_inliner): Likewise.
20342 * ipa-devirt.c (types_same_for_odr): Likewise.
20343 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20344 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20345
20346 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20347
20348 * tree-ssa-math-opts.c: Fix typo in comment.
20349
20350 2016-03-08 Jakub Jelinek <jakub@redhat.com>
20351
20352 PR target/70110
20353 * config/i386/i386.c (scalar_chain::make_vector_copies,
20354 scalar_chain::convert_reg): Call end_sequence in between
20355 get_insns and emit_conversion_insns rather than after both
20356 calls.
20357
20358 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
20359
20360 PR target/70064
20361 * config/i386/i386.h (machine_function): Add
20362 pc_thunk_call_expanded flag.
20363 (ix86_pc_thunk_call_expanded): New define.
20364 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20365 (*set_got): Rename insn pattern from set_got.
20366 (*set_got_labelled): Rename inst pattern from set_got_labelled.
20367 * config/i386/i386.c (ix86_compute_frame_layout): Use
20368 ix86_pc_thunk_call_expanded to prevent red-zone.
20369
20370 2016-03-07 Martin Jambor <mjambor@suse.cz>
20371
20372 * hsa.h (hsa_get_ctor_statements): Declare.
20373 (hsa_get_dtor_statements): Likewise.
20374 (hsa_get_kernel_dispatch_type): Likewise.
20375 * hsa.c (hsa_get_ctor_statements): New function.
20376 (hsa_get_dtor_statements): Likewise.
20377 (hsa_get_kernel_dispatch_type): Likewise.
20378 * hsa-brig.c (hsa_cdtor_statements): Removed.
20379 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20380 hsa_get_dtor_statements.
20381 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20382 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20383
20384 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20385
20386 * config/arm/arm-cores.def (cortex-r8): New.
20387 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20388 * config/arm/arm-tune.md: Likewise.
20389 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20390
20391 2016-03-07 Martin Sebor <msebor@redhat.com>
20392
20393 PR rtl-optimization/19705
20394 * doc/invoke.texi (Options That Control Optimization): Clarify
20395 -fno-branch-count-reg.
20396
20397 2016-02-26 Richard Biener <rguenther@suse.de>
20398 Jeff Law <law@redhat.com>
20399
20400 PR tree-optimization/69740
20401 * cfghooks.c (remove_edge): Request loop fixups if we delete
20402 an edge that might turn an irreducible loop into a natural
20403 loop.
20404 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20405 Move after definition of loops_state_clear.
20406
20407 2016-03-07 Bin Cheng <bin.cheng@arm.com>
20408
20409 PR rtl-optimization/69052
20410 * rtlanal.c (commutative_operand_precedence): Set higher precedence
20411 to CONST_WIDE_INT.
20412
20413 2016-03-07 Tom de Vries <tom@codesourcery.com>
20414
20415 PR tree-optimization/70116
20416 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20417 is_tm_ending stmts and ubsan/asan internal functions.
20418 (find_duplicate): Use it. Don't test is_tm_ending here.
20419
20420 2016-03-07 Richard Biener <rguenther@suse.de>
20421
20422 PR tree-optimization/70115
20423 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20424 (propagate_constants_for_unrolling): Use replace_uses_by.
20425
20426 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
20427
20428 PR middle-end/69916
20429 * omp-low.c (struct oacc_loop): Add ifns.
20430 (new_oacc_loop_raw): Initialize it.
20431 (finish_oacc_loop): Clear mask & flags if no ifns.
20432 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20433 (oacc_loop_xform_loop): Add ifns arg & adjust.
20434 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20435
20436 2016-03-07 Richard Henderson <rth@redhat.com>
20437
20438 PR rtl-opt/70061
20439 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20440 (insert_value_copy_on_edge): Likewise.
20441
20442 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20443
20444 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20445
20446 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20447
20448 PR target/62281
20449 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20450
20451 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20452
20453 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20454
20455 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
20456
20457 Fix sseimul type attribute.
20458 * config/i386/znver1.md
20459 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20460 znver1_sseimul_avx256_load) : Fix the type attribute.
20461 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20462 pipe usage and latency.
20463
20464 2016-03-05 Jakub Jelinek <jakub@redhat.com>
20465
20466 PR c++/70084
20467 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20468 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20469 to the right type.
20470
20471 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20472
20473 PR c/69973
20474 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20475
20476 PR rtl-optimization/69941
20477 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20478 the reg share its mode.
20479
20480 2016-03-04 Jeff Law <law@redhat.com>
20481
20482 PR tree-optimization/69196
20483 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20484 If the both SSA_NAMEs are anonymous, then consider them unassociated
20485 and include the PHI in the statement count.
20486
20487 2016-03-05 Tom de Vries <tom@codesourcery.com>
20488
20489 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20490 construct in oacc routine. Check for oacc region in oacc routine.
20491
20492 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20493
20494 PR target/70062
20495 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
20496 2016-02-22 changes, instead don't recurse if RECUR is already true.
20497 Don't change *dynamic_check if RECUR. Adjust recursive caller
20498 to pass true to the new argument.
20499 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20500
20501 PR target/70059
20502 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20503 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20504 fixes.
20505 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
20506
20507 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
20508
20509 PR rtl-optimization/57676
20510 * lra-assigns.c (lra_assign): Guard test for maximum iterations
20511 with flag_checking.
20512
20513 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
20514
20515 * tree-vect-patterns.c (search_type_for_mask): Handle
20516 comparison of booleans.
20517
20518 2016-03-04 Jakub Jelinek <jakub@redhat.com>
20519
20520 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20521 Fix @xref usage.
20522
20523 PR debug/69947
20524 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20525 all other ops that have dw_val_class_die_ref operands,
20526 and DW_OP_GNU_entry_value.
20527
20528 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20529
20530 PR rtl-optimization/69904
20531 * config/arm/arm.c (arm_cannot_copy_insn_p):
20532 Return true for load-exclusive instructions.
20533
20534 2016-03-03 Jakub Jelinek <jakub@redhat.com>
20535
20536 PR target/70021
20537 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20538 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20539 the pattern no matter if it is used just by non-pattern, pattern
20540 or mix thereof.
20541 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20542 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20543 oprnd1 def_stmt is in pattern, don't look through it.
20544
20545 2016-03-03 Marek Polacek <polacek@redhat.com>
20546
20547 PR middle-end/70050
20548 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20549
20550 2016-03-03 Martin Liska <mliska@suse.cz>
20551
20552 PR tree-optimization/70043
20553 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20554 previous statement if we see a debug statement.
20555
20556 2016-03-03 Richard Biener <rguenther@suse.de>
20557
20558 PR tree-optimization/55936
20559 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20560 parameter and guard unsafe equivalence use.
20561 (vrp_evaluate_conditional_warnv_with_ops): Always use
20562 safe equivalences but not via the quadratic compare_names
20563 helper.
20564
20565 2016-03-03 Michael Collison <michael.collison@linaro.org>
20566
20567 PR target/70014
20568 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20569 for operand 1 to s_register_operand. Change predicate for operand
20570 2 to arm_not_immediate_operand.
20571
20572 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
20573
20574 * doc/tm.texi: Regenerated.
20575
20576 2016-03-02 Richard Henderson <rth@redhat.com>
20577
20578 PR rtl-opt/67145
20579 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20580 simplification when all args are positive non-fixed registers.
20581
20582 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20583
20584 * target.def (lra_p): Specify that new ports should use LRA.
20585
20586 2016-03-02 Jakub Jelinek <jakub@redhat.com>
20587
20588 PR libgomp/69555
20589 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20590 gimplify_type_sizes the type they refer to.
20591 (omp_notice_variable): Handle reference vars to VLAs.
20592 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20593 reference to VLA decls in the second pass instead of first pass.
20594
20595 2016-03-02 Tom de Vries <tom@codesourcery.com>
20596
20597 PR tree-optimization/68659
20598 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
20599 new_expr == NULL_TREE.
20600 (get_new_name): Handle ADDR_EXPR.
20601
20602 2016-03-02 Bin Cheng <bin.cheng@arm.com>
20603
20604 PR rtl-optimization/69052
20605 * loop-invariant.c (canonicalize_address): New function.
20606 (inv_can_prop_to_addr_use): Check validity of address expression
20607 which is canonicalized by above function.
20608
20609 2016-03-02 Alan Modra <amodra@gmail.com>
20610
20611 PR ipa/69990
20612 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
20613 larger alignment.
20614
20615 2016-03-02 Jakub Jelinek <jakub@redhat.com>
20616
20617 PR target/70028
20618 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
20619 (*movhi_internal): Put mask moves from and to memory separately
20620 from moves from/to GPRs.
20621
20622 2016-03-02 Richard Biener <rguenther@suse.de>
20623
20624 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
20625 GENERIC expressions in GIMPLE.
20626
20627 2016-03-02 Richard Biener <rguenther@suse.de>
20628
20629 * config/i386/i386.c (type_natural_mode): Fix typo.
20630
20631 2016-03-02 Nick Clifton <nickc@redhat.com>
20632
20633 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
20634
20635 2016-03-02 Richard Biener <rguenther@suse.de>
20636 Uros Bizjak <ubizjak@gmail.com>
20637
20638 PR target/67278
20639 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
20640
20641 2016-03-02 Richard Biener <rguenther@suse.de>
20642
20643 PR middle-end/67278
20644 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
20645
20646 2016-03-02 Marek Polacek <polacek@redhat.com>
20647
20648 PR c/67854
20649 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
20650 "is promoted to" warning.
20651
20652 2016-03-01 DJ Delorie <dj@redhat.com>
20653
20654 * config.gcc: Deprecate mep-*.
20655
20656 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
20657
20658 PR middle-end/70025
20659 * lra-constraints.c (regno_val_use_in): New.
20660 (match_reload): Use it instead of regno_use_in.
20661
20662 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
20663
20664 PR rtl-optimization/70007
20665 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
20666 references present in REG_EQUAL notes attached to non-SET patterns.
20667
20668 2016-03-01 Jeff Law <law@redhat.com>
20669
20670 PR tree-optimization/69196
20671 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20672 Appropriately clamp the number of statements to copy when the
20673 thread path does not traverse a loop backedge.
20674
20675 PR tree-optimization/69196
20676 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20677 Do count some PHIs in the thread path against the insn count. Decrease
20678 final statement count by one as the control statement in the last
20679 block will get removed. Remove special cased code for handling PHIs
20680 in the last block.
20681
20682 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
20683
20684 PR target/70027
20685 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
20686 asm dialect alternatives to explicit GOTPCREL calls.
20687
20688 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
20689
20690 PR ada/70017
20691 * ira.c (do_reload): Issue warning for generic stack checking here...
20692 * reload1.c (reload): ...instead of here and streamline it.
20693
20694 2016-03-01 Nick Clifton <nickc@redhat.com>
20695
20696 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
20697
20698 2016-03-01 Richard Biener <rguenther@suse.de>
20699
20700 PR tree-optimization/69983
20701 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
20702 types and fall back to operand_equal_p.
20703
20704 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20705
20706 Revert
20707 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20708
20709 * config/s390/constraints.md ("jm8"): New constraint.
20710 * config/s390/predicates.md ("const_int_8bitset_operand"): New
20711 predicate.
20712 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
20713 into ...
20714 ("*setmem_long<setmem_and>"): New pattern.
20715 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
20716 into ...
20717 ("*setmem_long_31z<setmem_and>"): New pattern.
20718 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
20719 New substitution rules with the required attributes.
20720
20721
20722 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20723
20724 Revert
20725 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20726
20727 * gensupport.c (process_substs_on_one_elem): Split loop to
20728 complete mark_operands_used_in_match_dup on all expressions in the
20729 vector first.
20730 (adjust_operands_numbers): Inline into process_substs_on_one_elem
20731 and remove function.
20732
20733 2016-03-01 Richard Biener <rguenther@suse.de>
20734
20735 PR middle-end/70022
20736 * fold-const.c (fold_indirect_ref_1): Fix range checking for
20737 vector BIT_FIELD_REF extract.
20738
20739 2016-03-01 Richard Biener <rguenther@suse.de>
20740
20741 PR tree-optimization/69994
20742 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
20743
20744 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
20745
20746 PR tree-optimization/69956
20747 * tree-vect-stmts.c (supportable_widening_operation): Support
20748 multi-step conversion of boolean vectors.
20749 (supportable_narrowing_operation): Likewise.
20750
20751 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20752
20753 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
20754 anymore.
20755
20756 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20757
20758 * config/s390/subst.md (DSI_VI): New mode iterator.
20759 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
20760 * config/s390/vector.md ("vec_set<mode>"): Move expander before
20761 the insn definition.
20762 ("*vec_set<mode>"): Change predicate and add alternative to
20763 support only either register or const_int operands as element
20764 selector.
20765 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
20766 operands.
20767 ("vec_extract<mode>"): New expander.
20768 ("*vec_extract<mode>"): New insn definition supporting reg and
20769 const_int element selectors.
20770 ("*vec_extract<mode>_plus"): New insn definition supporting
20771 reg+const_int element selectors.
20772 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
20773 following expander+insn definition.
20774 ("<vec_shifts_name><mode>3"): New expander.
20775 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
20776
20777 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20778
20779 * config/s390/s390.md ("*tabort_1"): Change predicate to
20780 nonmemory_operand. Add a second alternative to cover
20781 register as well as const int operands.
20782 ("*tabort_1_plus"): New pattern definition.
20783
20784 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20785
20786 * config/s390/s390.md ("*ashrdi3_cc_31")
20787 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
20788 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
20789 Merge insn definitions into ...
20790 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20791 New pattern definition.
20792 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
20793 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
20794 ("*ashr<mode>3_and"): Merge insn definitions into ...
20795 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20796 New pattern definition.
20797 * config/s390/subst.md ("addr_style_op_cc_subst")
20798 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
20799 substitutions patterns plus attributes.
20800 Add ashiftrt to SUBST iterator.
20801
20802 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20803
20804 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
20805 op2 to nonmemory_operand.
20806 ("*<shift>di3_31", "*<shift>di3_31_and"):
20807 Merge into single pattern definition ...
20808 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
20809 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
20810 pattern definition ...
20811 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
20812 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
20813 iterator.
20814
20815 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20816
20817 * config/s390/predicates.md (const_int_6bitset_operand): New
20818 predicate.
20819 * config/s390/s390.md: Include subst.md.
20820 ("rotl<mode>3"): New expander.
20821 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
20822 ...
20823 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
20824 * config/s390/subst.md: New file.
20825
20826 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20827
20828 * config/s390/s390.md ("op_type", "atype", "length" attributes):
20829 Remove RRR type. It doesn't really exist.
20830 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
20831 attributes.
20832 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
20833 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20834 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
20835 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
20836 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
20837 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
20838 `enabled' attribute.
20839
20840 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20841
20842 * gensupport.c (process_substs_on_one_elem): Split loop to
20843 complete mark_operands_used_in_match_dup on all expressions in the
20844 vector first.
20845 (adjust_operands_numbers): Inline into process_substs_on_one_elem
20846 and remove function.
20847
20848 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
20849
20850 PR target/69706
20851 * config/sparc/sparc.c (NWORDS_UP): Rename to...
20852 (CEIL_NWORDS): ...this. Use CEIL macro.
20853 (compute_fp_layout): Adjust to above renaming.
20854 (function_arg_union_value): Likewise.
20855 (sparc_arg_partial_bytes): Likewise.
20856 (sparc_function_arg_advance): Likewise.
20857
20858 2016-02-29 Jeff Law <law@redhat.com>
20859
20860 PR tree-optimization/70005
20861 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
20862 where an object with a boolean range is compared against a value
20863 outside [0..1].
20864
20865 PR tree-optimization/69999
20866 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
20867 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
20868 loop cleanups.
20869
20870 2016-02-29 Richard Biener <rguenther@suse.de>
20871
20872 PR tree-optimization/69994
20873 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
20874 (get_unary_op): Look through nop conversions.
20875 (ops_equal_values_p): New function, look for equality diregarding
20876 nop conversions.
20877 (eliminate_plus_minus_pair): Use ops_equal_values_p
20878 (repropagate_negates): Do not use get_unary_op here.
20879
20880 2016-02-29 Martin Liska <mliska@suse.cz>
20881
20882 * system.h: Poison ENABLE_CHECKING macro.
20883
20884 2016-02-29 Martin Liska <mliska@suse.cz>
20885
20886 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
20887 is presented in dump flags.
20888 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20889 (hsa_regalloc): Likewise.
20890
20891 2016-02-19 Richard Biener <rguenther@suse.de>
20892
20893 PR tree-optimization/69980
20894 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
20895 permutation of those we need to keep.
20896
20897 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
20898
20899 PR target/69706
20900 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
20901 (NWORDS_UP): ...this
20902 (init_cumulative_args): Minor tweaks.
20903 (sparc_promote_function_mode): Likewise.
20904 (scan_record_type): Delete.
20905 (traverse_record_type): New function template.
20906 (classify_data_t): New structure type.
20907 (classify_registers): New inline function.
20908 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
20909 exhausted. Instantiate traverse_record_type on classify_registers and
20910 deal with the case of a structure passed in slot #15 with no FP field
20911 in the first word.
20912 (assign_data_t): New structure type.
20913 (compute_int_layout): New static function.
20914 (compute_fp_layout): Likewise.
20915 (count_registers): New inline function.
20916 (assign_int_registers): New static function.
20917 (assign_fp_registers): Likewise.
20918 (assign_registers): New inline function.
20919 (function_arg_record_value_1): Delete.
20920 (function_arg_record_value_2): Likewise.
20921 (function_arg_record_value_3): Likewise.
20922 (function_arg_record_value): Adjust to above changes. Instantiate
20923 traverse_record_type on count_registers to first count the number of
20924 registers to be used and then on assign_registers to assign them.
20925 (function_arg_union_value): Adjust to above renaming.
20926 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
20927 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
20928 case of a structure passed in slot #15
20929 (sparc_function_arg_advance): Likewise.
20930 (function_arg_padding): Minor tweak.
20931
20932 2016-02-29 Richard Biener <rguenther@suse.de>
20933
20934 PR tree-optimization/69720
20935 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20936 the adjustment_def path for possibly vectorized defs.
20937 (vect_create_epilog_for_reduction): Handle vectorized initial
20938 defs properly.
20939
20940 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
20941
20942 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20943
20944 2016-02-27 Jeff Law <law@redhat.com>
20945
20946 Revert
20947 2016-02-26 Richard Biener <rguenther@suse.de>
20948 Jeff Law <law@redhat.com>
20949
20950 PR tree-optimization/69740
20951 * cfghooks.c (remove_edge): Request loop fixups if we delete
20952 an edge that might turn an irreducible loop into a natural
20953 loop.
20954
20955 2016-02-27 Jakub Jelinek <jakub@redhat.com>
20956
20957 PR rtl-optimization/69896
20958 * tree-vect-generic.c (get_compute_type): Avoid single element
20959 vector types.
20960
20961 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
20962
20963 Rename the AArch64 tuning option and related functions to enable the
20964 Newton series for the reciprocal square root to reflect its
20965 approximative characteristic.
20966
20967 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20968 function to "aarch64_emit_approx_rsqrt".
20969 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20970 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20971 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20972 (xgene1_tunings): Likewise.
20973 (use_rsqrt_p): Likewise.
20974 (aarch64_emit_swrsqrt): Use new function name.
20975 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20976 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20977 text explaining this option.
20978 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20979
20980 2016-02-26 Jakub Jelinek <jakub@redhat.com>
20981
20982 PR target/69969
20983 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20984 complain about -mallow-movmisalign without -mvsx if
20985 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20986
20987 2016-02-26 Joel Sherrill <joel@rtems.org>
20988
20989 * config.gcc: Add x86_64-*-rtems*.
20990 * config/i386/rtems-64.h: New file.
20991
20992 2016-02-26 Joel Sherrill <joel@rtems.org>
20993
20994 * config.gcc: Add aarch64-*-rtems*.
20995 * config/aarch64/rtems.h: New file.
20996
20997 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
20998
20999 PR target/69946
21000 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
21001 shift amount using %h. Add comment.
21002
21003 2016-02-26 Richard Biener <rguenther@suse.de>
21004 Jeff Law <law@redhat.com>
21005
21006 PR tree-optimization/69740
21007 * cfghooks.c (remove_edge): Request loop fixups if we delete
21008 an edge that might turn an irreducible loop into a natural
21009 loop.
21010
21011 2016-02-26 Martin Jambor <mjambor@suse.cz>
21012
21013 PR middle-end/69920
21014 * tree-sra.c (sra_modify_assign): Do not remove loads of
21015 uninitialized aggregates to SSA_NAMEs.
21016
21017 2016-02-26 Richard Henderson <rth@redhat.com>
21018
21019 PR target/69709
21020 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21021 pseudo in case the target rtx matches the source of the left
21022 shift.
21023
21024 2016-02-26 Martin Jambor <mjambor@suse.cz>
21025
21026 PR hsa/69568
21027 * hsa.h (hsa_type_packed_p): Declare.
21028 * hsa.c (hsa_type_packed_p): New function.
21029 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21030 loads.
21031 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21032 * hsa-brig.c (emit_basic_insn): Likewise.
21033
21034 2016-02-26 Martin Jambor <mjambor@suse.cz>
21035
21036 pr hsa/69674
21037 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21038 pointers.
21039 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21040
21041 2016-02-26 Martin Jambor <mjambor@suse.cz>
21042
21043 * hsa.h (is_a_helper): New overload for hsa_op_immed for
21044 hsa_op_with_type operands.
21045 (hsa_unsigned_type_for_type): Declare.
21046 * hsa.c (hsa_unsigned_type_for_type): New function.
21047 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21048 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21049 the finalizer. Do not emit extra move.
21050
21051 2016-02-26 Martin Jambor <mjambor@suse.cz>
21052
21053 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21054 atomic operations in private segment.
21055
21056 2016-02-26 Martin Jambor <mjambor@suse.cz>
21057
21058 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21059 statements to wi->info. Also disallow omp simd constructs.
21060 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21061 for not gridifying. Dump special string for omp_for.
21062
21063 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21064
21065 PR target/69245
21066 * config/aarch64/aarch64.c (aarch64_set_current_function):
21067 Save/restore target globals when switching to
21068 target_option_default_node.
21069
21070 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21071
21072 PR target/69613
21073 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21074 Return 0 if !SHIFT_COUNT_TRUNCATED.
21075
21076 2016-02-26 Jakub Jelinek <jakub@redhat.com>
21077 Eric Botcazou <ebotcazou@adacore.com>
21078
21079 PR rtl-optimization/69891
21080 * dse.c (scan_insn): If we can't figure out memset arguments
21081 or they are non-constant, call clear_rhs_from_active_local_stores.
21082
21083 2016-02-26 Martin Liska <mliska@suse.cz>
21084
21085 * doc/extend.texi: Mention clog10, clog10f an clog10l
21086 in Builtins section.
21087
21088 2016-02-26 Martin Liska <mliska@suse.cz>
21089
21090 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21091 CHECKING_P.
21092 (resolve_args_picking_1): Likewise.
21093 * dwarf2out.h (struct GTY): Likewise.
21094
21095 2016-02-26 Martin Liska <mliska@suse.cz>
21096
21097 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21098 with flag_checking.
21099 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21100
21101 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
21102 Martin Liska <mliska@suse.cz>
21103
21104 * doc/install.texi: Mention --enable-valgrind-annotations.
21105
21106 2016-02-26 Richard Biener <rguenther@suse.de>
21107
21108 PR tree-optimization/69551
21109 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21110 looking through aliases adjust DECL_PT_UID to refer to the
21111 ultimate alias target.
21112
21113 2016-02-25 Martin Liska <mliska@suse.cz>
21114
21115 PR middle-end/69919
21116 * alloc-pool.c (after_memory_report): New variable.
21117 * alloc-pool.h (base_pool_allocator ::release): Do not use
21118 the infrastructure if after_memory_report.
21119 * toplev.c (toplev::main): Mark after memory report.
21120
21121 2016-02-25 Richard Biener <rguenther@suse.de>
21122
21123 PR tree-optimization/48795
21124 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21125
21126 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
21127
21128 PR driver/68463
21129 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
21130 offloading is enabled and -fopenacc or -fopenmp is specified.
21131 (CRTOFFLOADEND): Likewise.
21132 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21133 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21134 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21135 (offload_objects_file_name): New static var.
21136 (tool_cleanup): Remove offload_objects_file_name file.
21137 (find_offloadbeginend): Replace with ...
21138 (find_crtoffloadtable): ... this.
21139 (run_gcc): Remove offload_argc and offload_argv.
21140 Get offload_objects_file_name from -foffload-objects=... option.
21141 Read names of object files with offload from this file, pass them to
21142 compile_images_for_offload_targets. Don't call find_offloadbeginend and
21143 don't pass offloadbegin and offloadend to the linker. Don't pass
21144 offload non-LTO files to the linker, because now they're not claimed.
21145
21146 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
21147
21148 PR ipa/69630
21149 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21150 on builtin_unreachable.
21151
21152 2016-02-25 Jakub Jelinek <jakub@redhat.com>
21153
21154 PR rtl-optimization/69896
21155 * regcprop.c: Include cfgrtl.h.
21156 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21157 than remembered mode, either delete it (if noop_move_p), or
21158 treat like copy_p but not noop_p instruction.
21159
21160 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21161
21162 PR debug/69705
21163 * dwarf2out.c (gen_variable_die): Work around buggy LTO
21164 - allow NULL decl for Fortran DW_TAG_common_block variables.
21165
21166 2016-02-24 Jason Merrill <jason@redhat.com>
21167
21168 * common.opt (flifetime-dse): Add -flifetime-dse=1.
21169
21170 2016-02-24 Richard Biener <rguenther@suse.de>
21171 Jakub Jelinek <jakub@redhat.com>
21172
21173 PR middle-end/69760
21174 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21175 conditionally executed ops to well-defined overflow behavior.
21176
21177 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21178
21179 PR middle-end/69915
21180 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21181 elements.
21182
21183 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21184
21185 PR rtl-optimization/69886
21186 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21187 argument. Use it when checking validity of set instructions.
21188 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21189 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21190 callsite.
21191 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21192 * store-motion.c (find_moveable_store): Update
21193 can_assign_to_reg_without_clobbers_p callsite.
21194
21195 2016-02-24 Richard Biener <rguenther@suse.de>
21196
21197 PR middle-end/68963
21198 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21199 bogus check.
21200 (record_nonwrapping_iv): Do not fall back to the low/high bound
21201 for non-constant IV bases if the stmt is not always executed.
21202
21203 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21204
21205 * config/arm/arm-cores.def (cortex-a32): New entry.
21206 * config/arm/arm-tables.opt: Regenerate.
21207 * config/arm/arm-tune.md: Regenerate.
21208 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21209 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21210 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21211 for -mcpu and -mtune.
21212
21213 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21214
21215 PR target/69875
21216 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21217 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21218 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21219 (atomic_loaddi_1): Delete.
21220 (atomic_loaddi): Rewrite expander using the above changes.
21221
21222 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21223
21224 PR c/69918
21225 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21226 2 to 3.
21227
21228 2016-02-24 Jakub Jelinek <jakub@redhat.com>
21229 Richard Biener <rguenth@suse.de>
21230
21231 PR middle-end/69909
21232 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21233 set_mem_attributes if tem is SSA_NAME which got expanded
21234 as a MEM.
21235
21236 2016-02-24 Richard Biener <rguenther@suse.de>
21237
21238 PR tree-optimization/69907
21239 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21240 end of permutations for BB vectorization.
21241
21242 2016-02-24 Christian Bruel <christian.bruel@st.com>
21243
21244 * config/arm/arm-c.c (arm_option_override): Initialize
21245 target_option_current_node.
21246 * config/arm/arm.c (arm_pragma_target_parse): Replace
21247 build_target_option_node call by target_option_current_node.
21248 Set target_option_current_node.
21249 Fix comments.
21250
21251 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
21252
21253 PR target/69810
21254 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21255 define_insn_and_split to define_insn.
21256 (zero_extendqi<mode>2_dot2): Same.
21257 (extendqi<mode>2_dot): Same.
21258 (extendqi<mode>2_dot2): Same.
21259
21260 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21261
21262 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21263 and add bypass for AES{D,E} and AESMC pairs.
21264 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21265 and AESMC pairs.
21266
21267 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
21268
21269 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21270 series for reciprocal square root in Exynos M1.
21271
21272 2016-02-23 Martin Sebor <msebor@redhat.com>
21273
21274 PR c/69759
21275 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21276 __builtin_alloca_with_align.
21277
21278 2016-02-23 Richard Henderson <rth@redhat.com>
21279
21280 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21281 (ix86_register_pragmas): Remove __seg_tls.
21282 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21283 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21284 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21285 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21286 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21287 * doc/extend.texi (__seg_tls): Remove item.
21288
21289 2016-02-23 Richard Biener <rguenther@suse.de>
21290
21291 * alloc-pool.h (struct allocation_object): Make id member
21292 conditional on CHECKING_P again.
21293 (get_instance): Adjust.
21294 (base_pool_allocator): Likewise.
21295
21296 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
21297
21298 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21299 (parallelize_loops): In OpenACC kernels mode, set n_threads to
21300 zero.
21301 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21302 flag_openacc.
21303 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21304
21305 2016-02-23 Richard Biener <rguenther@suse.de>
21306
21307 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21308 * bitmap.h (struct bitmap_usage): Likewise.
21309 (bitmap_move): Declare.
21310 * bitmap.c (register_overhead): Take size_t argument.
21311 (bitmap_move): New function.
21312 * df-problems.c (df_rd_transfer_function): Use bitmap_move
21313 to properly account overhead.
21314 * tree.c (free_node): Use tree_size.
21315
21316 2016-02-23 Jakub Jelinek <jakub@redhat.com>
21317
21318 PR c++/69902
21319 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21320 when inverting comparison.
21321
21322 PR c/69900
21323 * common.opt (Wunreachable-code): Add Warning flag.
21324
21325 2016-02-23 Mark Wielaard <mjw@redhat.com>
21326 Jakub Jelinek <jakub@redhat.com>
21327
21328 PR c/69911
21329 * cgraphunit.c (check_global_declaration): Check main_input_filename
21330 and DECL_SOURCE_FILE are not NULL.
21331
21332 2016-02-23 Martin Jambor <mjambor@suse.cz>
21333
21334 PR tree-optimization/69666
21335 * tree-sra.c (sra_modify_assign): Do not attempt to create
21336 default_def replacements for unscalarizable regions.
21337
21338 2016-02-20 Mark Wielaard <mjw@redhat.com>
21339
21340 PR c/28901
21341 * cgraphunit.c (check_global_declaration): Check level of
21342 warn_unused_const_variable and main_input_filename.
21343 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21344 (-Wunused-variable): For C implies -Wunused-const-variable=1.
21345 (-Wunused-const-variable): Explain levels 1 and 2.
21346
21347 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21348
21349 PR target/69888
21350 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21351 identical arguments. Formatting and spelling fixes.
21352
21353 PR target/69885
21354 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21355 be specified.
21356
21357 PR target/69894
21358 PR target/69895
21359 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21360 and m68k-devices.def.
21361 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21362 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21363
21364 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
21365
21366 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21367 and HImode registers.
21368
21369 2016-02-22 Richard Biener <rguenther@suse.de>
21370
21371 PR tree-optimization/69882
21372 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21373 preserve permutations present because of gaps.
21374 (vect_supported_load_permutation_p): Always continue checking
21375 permutations after vect_attempt_slp_rearrange_stmts.
21376
21377 2016-02-22 Bin Cheng <bin.cheng@arm.com>
21378
21379 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21380 min_profitable_estimate, rather than min_profitable_iters.
21381
21382 2016-02-22 Jakub Jelinek <jakub@redhat.com>
21383
21384 PR target/69885
21385 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21386 SImode for last match_operand.
21387
21388 2016-02-22 Martin Liska <mliska@suse.cz>
21389
21390 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21391 return bitsize - 1 as the return value.
21392
21393 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
21394
21395 PR target/69806
21396 PR target/54089
21397 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21398 Handle negative shift counts.
21399 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21400 force_reg on the shift constant.
21401 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
21402 (lshrsi3_d): Handle negative shift counts.
21403
21404 2016-02-22 Richard Biener <rguenther@suse.de>
21405 Tom de Vries <tom@codesourcery.com>
21406
21407 * graph.c: Include dumpfile.h.
21408 (print_graph_cfg): Split into three overloads.
21409 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21410
21411 2016-02-22 Tom de Vries <tom@codesourcery.com>
21412
21413 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21414 dump-fn.
21415
21416 2016-02-22 Richard Biener <rguenther@suse.de>
21417
21418 PR ipa/37448
21419 * ipa-inline-transform.c (inline_call): When not updating
21420 overall summaries adjust self size by the growth estimate.
21421 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21422 hash-set, do not update overall summaries here. Renamed from ...
21423 (inline_to_all_callers): ... this which is now wrapping the
21424 above and performing delayed overall summary update.
21425 (early_inline_small_functions): Delay updating of the overall
21426 summary.
21427
21428 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
21429
21430 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21431 variable.
21432
21433 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21434
21435 PR driver/69805
21436 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21437 :%* in %:gt() argument.
21438 (greater_than_spec_func): Adjust for expecting only numbers,
21439 if there are more than two numbers, compare the last two.
21440
21441 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
21442
21443 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21444 -Wnarrowing with -std.
21445
21446 2016-02-19 Jakub Jelinek <jakub@redhat.com>
21447
21448 PR c++/69851
21449 * expr.c (store_field): Don't use bit-field path if exp is
21450 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21451 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21452 and the assignment can be performed by bitwise copy. Formatting
21453 fix.
21454
21455 PR middle-end/69838
21456 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21457 call copy_reg_eh_region_note_forward on before and/or after sequences
21458 and remove note from insn if it no longer can throw.
21459
21460 PR target/69820
21461 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21462 if TARGET_AVX512BW.
21463
21464 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21465
21466 * config/s390/vector.md: Add missing commutative operand markers
21467 to the patterns which qualify for one.
21468 * config/s390/vx-builtins.md: Likewise.
21469
21470 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21471
21472 * config/s390/vector.md (VI, VI_QHS): Add single element vector
21473 types to mode iterators.
21474 (vec_double): ... and mode attribute.
21475 * config/s390/vx-builtins.md (non_vec_int): Likewise.
21476
21477 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21478
21479 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21480 Change the predicate of op2 from nonimmediate to general and let
21481 reload fix it if necessary.
21482
21483 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21484
21485 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21486
21487 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21488
21489 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21490 mode.
21491
21492 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21493
21494 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21495 * config/s390/s390.c (s390_expand_vec_movstr): New function.
21496 * config/s390/s390.md ("movstr<P:mode>"): Call
21497 s390_expand_vec_movstr.
21498
21499 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21500
21501 * config/s390/s390.md: Add missing output modifier for operand 1
21502 to print it as address properly.
21503
21504 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21505
21506 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21507 * config/s390/2964.md: New file.
21508 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21509 of insn grouping attributes depending on the CPU level.
21510 (s390_get_unit_mask): New function.
21511 (s390_sched_score): Remove the OOO from the scheduling macros.
21512 Add loop to calculate a score for the instruction mix.
21513 (s390_sched_reorder): Likewise plus improve debug output.
21514 (s390_sched_variable_issue): Rename macros as above. Calculate
21515 the unit distances after actually scheduling an insn. Improve
21516 debug output.
21517 (s390_sched_init): Clear last_scheduled_unit_distance array.
21518 * config/s390/s390.md: Include 2964.md.
21519
21520 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21521
21522 PR target/69671
21523 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21524 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21525 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21526 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21527 *avx512f_<code>v8div16qi2_mask_1): New insns.
21528
21529 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
21530
21531 PR target/68404
21532 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21533 2016-02-09 change.
21534
21535 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21536 earlyclobber from target. Use wF constraint for fused memory
21537 address.
21538 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21539
21540 2016-02-18 Jakub Jelinek <jakub@redhat.com>
21541 Martin Liska <mliska@suse.cz>
21542
21543 PR sanitizer/69863
21544 * cfgexpand.c (asan_sanitize_stack_p): New function.
21545 (partition_stack_vars): Use the function.
21546 (expand_stack_vars): Likewise.
21547 (defer_stack_allocation): Likewise.
21548 (expand_used_vars): Likewise.
21549
21550 2016-02-18 Richard Biener <rguenther@suse.de>
21551
21552 PR middle-end/69553
21553 * fold-const.c (operand_equal_p): Properly compare offsets for
21554 IMAGPART_EXPR and ARRAY_REF.
21555
21556 2016-02-18 Nick Clifton <nickc@redhat.com>
21557
21558 PR target/62254
21559 PR target/69610
21560 * config/arm/arm.c (arm_option_override_internal): Disable
21561 interworking if the target does not support thumb instructions.
21562 (arm_reload_in_hi): Handle the case where a register to register
21563 move needs reloading because there is no simple pattern to handle
21564 it.
21565 (arm_reload_out_hi): Likewise.
21566
21567 2016-02-18 Richard Biener <rguenther@suse.de>
21568
21569 PR middle-end/69854
21570 * match.pd: Don't use fold_binary or fold_unary for folding
21571 constants.
21572
21573 2016-02-17 Jakub Jelinek <jakub@redhat.com>
21574
21575 PR c++/69850
21576 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21577 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21578 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21579 warn on gimple_no_warning_p statements.
21580
21581 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
21582
21583 * doc/extend.texi (C++ Attributes): Correct description of
21584 warn_unused type attribute.
21585
21586 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21587
21588 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21589 correct instruction.
21590
21591 2016-02-17 Richard Biener <rguenther@suse.de>
21592
21593 PR rtl-optimization/69609
21594 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
21595 (find_traces_1_round): When ending a trace update cached priority
21596 of successors.
21597 (bb_to_key): Use cached priority when available.
21598 (copy_bb): Initialize cached priority.
21599 (reorder_basic_blocks_software_trace_cache): Likewise.
21600
21601 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21602
21603 PR target/69161
21604 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
21605 New predicate.
21606 (aarch64_comparison_operator): Break overly long line into two.
21607 (aarch64_comparison_operation): Likewise.
21608 * config/aarch64/aarch64.md (cstorecc4): Use
21609 aarch64_comparison_operator_mode instead of
21610 aarch64_comparison_operator.
21611 (cstore<mode>4): Likewise.
21612 (aarch64_cstore<mode>): Likewise.
21613 (*cstoresi_insn_uxtw): Likewise.
21614 (cstore<mode>_neg): Likewise.
21615 (*cstoresi_neg_uxtw): Likewise.
21616
21617 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21618
21619 PR target/69161
21620 * config/arm/predicates.md (arm_comparison_operator_mode):
21621 New predicate.
21622 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
21623 instead of arm_comparison_operator.
21624 (*mov_negscc): Likewise.
21625 (*mov_notscc): Likewise.
21626 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
21627 (*thumb2_mov_negscc): Likewise.
21628 (*thumb2_mov_negscc_strict_it): Likewise.
21629 (*thumb2_mov_notscc): Likewise.
21630 (*thumb2_mov_notscc_strict_it): Likewise.
21631
21632 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
21633
21634 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
21635 Add missing return.
21636
21637 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
21638
21639 * config/visium/visium.c (machine_libfunc_index): New enum.
21640 (machine_libfuncs): New structure.
21641 (visium_libfuncs): New static variable.
21642 (TARGET_INIT_LIBFUNCS): Define to...
21643 (visium_init_libfuncs): ...this. New function.
21644 (expand_block_move_4): Use the appropriate libfunc.
21645 (expand_block_move_2): Likewise.
21646 (expand_block_move_1): Likewise.
21647 (expand_block_set_4): Likewise.
21648 (expand_block_set_2): Likewise.
21649 (expand_block_set_1): Likewise.
21650 (visium_trampoline_init): Likewise.
21651
21652 2016-02-17 Nick Clifton <nickc@redhat.com>
21653
21654 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
21655 TI's devices.csv file as of March 2016.
21656
21657 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
21658
21659 PR Target/48344
21660 * opts-global.c (handle_common_deferred_options): Introduce and
21661 initialize two global variables to remember command-line options
21662 specifying a stack-limiting register.
21663 * opts.h: Add extern declarations of the two new global variables.
21664 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
21665 variable based on the values of the two new global variables.
21666
21667 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21668
21669 PR c/69835
21670 * common.opt (Wnonnull-compare): New warning.
21671 * doc/invoke.texi (-Wnonnull): Remove text about comparison
21672 of arguments against NULL.
21673 (-Wnonnull-compare): Document.
21674 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
21675 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
21676 * passes.def (pass_warn_nonnull_compare): Add.
21677 * gimple-ssa-nonnull-compare.c: New file.
21678
21679 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21680
21681 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
21682 AARCH64_EXTRA_TUNE_RECIP_SQRT.
21683
21684 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21685
21686 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
21687 reciprocal sqrt for -mlow-precision-recip-sqrt.
21688
21689 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21690 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21691
21692 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
21693 always use lane loads to construct non-constant vectors.
21694
21695 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
21696
21697 * config/aarch64/aarch64.md
21698 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
21699 constraints for operand 3.
21700 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
21701
21702 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21703 Richard Biener <rguenther@suse.de>
21704
21705 PR tree-optimization/69820
21706 * tree-vect-patterns.c (type_conversion_p): Return false if
21707 *orig_type is unsigned single precision or boolean.
21708 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
21709 Formatting fix.
21710
21711 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21712
21713 PR rtl-optimization/69764
21714 PR rtl-optimization/69771
21715 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
21716 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
21717
21718 2016-02-16 Richard Biener <rguenther@suse.de>
21719
21720 PR tree-optimization/69776
21721 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
21722 sets from caller.
21723 (indirect_refs_may_alias_p): Likewise.
21724 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
21725 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
21726 according to tbaa_p.
21727 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
21728 (optimize_stmt): For redundant store discovery do not allow tbaa.
21729
21730 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
21731
21732 PR tree-optimization/69714
21733 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
21734 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
21735
21736 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
21737
21738 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
21739 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
21740 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
21741 * config/arc/arc.c (arc_init): Check FPU options.
21742 (get_arc_condition_code): Handle new CC_FPU* modes.
21743 (arc_select_cc_mode): Likewise.
21744 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
21745 register pair only. Allow access for ARCv2 accumulator.
21746 (gen_compare_reg): Whenever we have FPU support use FPU compare
21747 instructions.
21748 (arc_reorg): Don't generate brcc insns when FPU compare
21749 instructions are involved.
21750 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
21751 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
21752 floating point emulation.
21753 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
21754 (REVERSE_CONDITION): Add new CC_FPU* modes.
21755 (TARGET_FP_SP_BASE): Define.
21756 (TARGET_FP_DP_BASE): Likewise.
21757 (TARGET_FP_SP_FUSED): Likewise.
21758 (TARGET_FP_DP_FUSED): Likewise.
21759 (TARGET_FP_SP_CONV): Likewise.
21760 (TARGET_FP_DP_CONV): Likewise.
21761 (TARGET_FP_SP_SQRT): Likewise.
21762 (TARGET_FP_DP_SQRT): Likewise.
21763 (TARGET_FP_DP_AX): Likewise.
21764 * config/arc/arc.md (ARCV2_ACC): New constant.
21765 (type): New fpu type attribute.
21766 (SDF): Conditional iterator.
21767 (cstore<mode>, cbranch<mode>): Change expand condition.
21768 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
21769 handles FPU/FPX cases as well.
21770 * config/arc/arc.opt (mfpu): New option.
21771 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
21772 Renamed.
21773 (adddf3, muldf3, subdf3): Removed.
21774 * config/arc/predicates.md (proper_comparison_operator): Recognize
21775 CC_FPU* modes.
21776 * config/arc/fpu.md: New file.
21777 * doc/invoke.texi (ARC Options): Document mfpu option.
21778
21779 2016-02-16 Richard Biener <rguenther@suse.de>
21780
21781 PR rtl-optimization/69291
21782 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
21783 noce_operand_ok check.
21784
21785 2016-02-16 Tom de Vries <tom@codesourcery.com>
21786
21787 PR lto/67709
21788 * omp-low.c (simd_clone_create): Remove call to
21789 symtab->call_cgraph_insertion_hooks.
21790
21791 2016-02-16 Jakub Jelinek <jakub@redhat.com>
21792
21793 PR tree-optimization/69802
21794 * tree-ssa-reassoc.c (update_range_test): If op is
21795 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
21796 op == 1 test of precision 1 integral op, otherwise handle
21797 that case as op itself. Fix up formatting.
21798 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
21799 up formatting.
21800
21801 2016-02-16 Richard Biener <rguenther@suse.de>
21802
21803 PR tree-optimization/69586
21804 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
21805 types for conversion sources.
21806
21807 2016-02-16 Richard Biener <rguenther@suse.de>
21808
21809 PR middle-end/69801
21810 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
21811 mask OEP_ADDRESS_OF.
21812
21813 2016-02-16 Alan Modra <amodra@gmail.com>
21814
21815 PR target/68973
21816 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
21817 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
21818 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
21819 (p8_mtvsrwz): New.
21820 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
21821 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
21822 (p8_fmrgow_<mode>): Likewise.
21823 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
21824 changes.
21825 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
21826 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
21827 to use movdi_internal64. Remove op0_di.
21828 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
21829
21830 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
21831
21832 Add support for the FCCMP insn types
21833
21834 * config/aarch64/aarch64.md (fccmp): Change insn type.
21835 (fccmpe): Likewise.
21836 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
21837 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
21838 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
21839 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
21840 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
21841 * config/arm/types.md (fccmps): Add new insn type.
21842 (fccmpd): Likewise.
21843
21844 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
21845
21846 * alias.c (get_alias_set): Fix a typo in comment.
21847
21848 2016-02-15 Richard Biener <rguenther@suse.de>
21849
21850 PR tree-optimization/69595
21851 * match.pd: Complete range test simplification to true.
21852
21853 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
21854
21855 PR rtl-optimization/69648
21856 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
21857 pic_offset_table_rtx.
21858
21859 PR rtl-optimization/69752
21860 * ira.c (update_equiv_regs): When looking for more than a single SET,
21861 also take other side effects into account.
21862
21863 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
21864
21865 * config/s390/s390.c (s390_function_profiler): Add a new sequence
21866 for z900+ CPUs in 31-bit mode.
21867
21868 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
21869
21870 * common/config/s390/s390-common.c (s390_supports_split_stack):
21871 New function.
21872 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
21873 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
21874 * config/s390/s390.c (struct machine_function): New field
21875 split_stack_varargs_pointer.
21876 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
21877 in s390_emit_prologue.
21878 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
21879 vararg pointer.
21880 (morestack_ref): New global.
21881 (SPLIT_STACK_AVAILABLE): New macro.
21882 (s390_expand_split_stack_prologue): New function.
21883 (s390_live_on_entry): New function.
21884 (s390_va_start): Use split-stack vararg pointer if appropriate.
21885 (s390_asm_file_end): Emit the split-stack note sections.
21886 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
21887 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
21888 (UNSPECV_SPLIT_STACK_CALL): New unspec.
21889 (UNSPECV_SPLIT_STACK_DATA): New unspec.
21890 (split_stack_prologue): New expand.
21891 (split_stack_space_check): New expand.
21892 (split_stack_data): New insn.
21893 (split_stack_call): New expand.
21894 (split_stack_call_*): New insn.
21895 (split_stack_cond_call): New expand.
21896 (split_stack_cond_call_*): New insn.
21897
21898 2016-02-15 Richard Biener <rguenther@suse.de>
21899
21900 PR tree-optimization/69783
21901 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21902 Add trivially correct cases.
21903
21904 2016-02-15 Tom de Vries <tom@codesourcery.com>
21905
21906 PR lto/69655
21907 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
21908 do_force_output.
21909 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
21910
21911 2016-02-15 Richard Biener <rguenther@suse.de>
21912
21913 PR tree-optimization/69776
21914 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21915 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21916 indicate whether we can use TBAA to disambiguate against stores.
21917 Use alias-set zero if not.
21918 (visit_reference_op_store): Do not use TBAA when looking up
21919 redundant stores.
21920 * tree-ssa-pre.c (compute_avail): Use TBAA here.
21921 (eliminate_dom_walker::before_dom_children): But not when looking
21922 up redundant stores.
21923
21924 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
21925
21926 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21927
21928 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21929
21930 * config/i386/znver1.md
21931 (znver1_pop, znver1_pop_mem,
21932 znver1_load_imov_double_store,
21933 znver1_load_imov_direct_store,
21934 znver1_load_imov_direct_load,
21935 znver1_load_imov_double_load): Add new.
21936 (znver1_insn, znver1_insn_load): Add icmov type.
21937 (znver1_sseavx_fma,
21938 znver1_sseavx_fma_load,
21939 znver1_avx256_fma,
21940 znver1_avx256_fma_load): Fix pipe usage.
21941
21942 2016-02-14 Alan Modra <amodra@gmail.com>
21943
21944 PR target/68973
21945 * reload.c (find_reloads_address_1): For pre/post-inc/dec
21946 with an invalid hard reg, reload just the reg not the entire
21947 pre/post-inc/dec address expression.
21948
21949 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
21950
21951 PR target/67260
21952 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21953 fixed R1_REG scratch reg.
21954 (sibcall_value_pcrel_fdpic): Likewise.
21955
21956 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
21957
21958 PR target/67636
21959 PR target/64345
21960 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21961
21962 2016-02-12 Walter Lee <walt@tilera.com>
21963
21964 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21965 * config/tilegx/t-tilegx: Likewise.
21966
21967 2016-02-12 David Malcolm <dmalcolm@redhat.com>
21968
21969 PR other/69554
21970 * diagnostic-show-locus.c (struct line_span): New struct.
21971 (layout::get_first_line): Delete.
21972 (layout::get_last_line): Delete.
21973 (layout::get_num_line_spans): New member function.
21974 (layout::get_line_span): Likewise.
21975 (layout::print_heading_for_line_span_index_p): Likewise.
21976 (layout::get_expanded_location): Likewise.
21977 (layout::calculate_line_spans): Likewise.
21978 (layout::m_first_line): Delete.
21979 (layout::m_last_line): Delete.
21980 (layout::m_line_spans): New field.
21981 (layout::layout): Update comment. Replace m_first_line and
21982 m_last_line with m_line_spans, replacing their initialization
21983 with a call to calculate_line_spans.
21984 (diagnostic_show_locus): When printing source lines and
21985 annotations, rather than looping over a single span
21986 of lines, instead loop over each line_span within
21987 the layout, with an inner loop over the lines within them.
21988 Call the context's start_span callback when changing line spans.
21989 * diagnostic.c (diagnostic_initialize): Initialize start_span.
21990 (diagnostic_build_prefix): Break out the building of the location
21991 part of the string into...
21992 (diagnostic_get_location_text): ...this new function, rewriting
21993 it from nested ternary expressions to a sequence of "if"
21994 statements.
21995 (default_diagnostic_start_span_fn): New function.
21996 * diagnostic.h (diagnostic_start_span_fn): New typedef.
21997 (diagnostic_context::start_span): New field.
21998 (default_diagnostic_start_span_fn): New prototype.
21999
22000 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22001
22002 PR driver/69779
22003 * gcc.c (driver::finalize): Fix cleanup of "specs".
22004
22005 2016-02-12 David Malcolm <dmalcolm@redhat.com>
22006
22007 PR driver/69265
22008 PR driver/69453
22009 * gcc.c (driver::driver): Initialize m_option_suggestions.
22010 (driver::~driver): Clean up m_option_suggestions.
22011 (suggest_option): Convert to...
22012 (driver::suggest_option): ...this, and split out into
22013 driver::build_option_suggestions and find_closest_string.
22014 (driver::build_option_suggestions): New function, from
22015 first half of suggest_option. Special-case
22016 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
22017 the sanitizer_opts array. For options of enum types, add the
22018 various enum values to the candidate strings.
22019 (driver::handle_unrecognized_options): Remove "const".
22020 * gcc.h (driver::handle_unrecognized_options): Likewise.
22021 (driver::build_option_suggestions): New decl.
22022 (driver::suggest_option): New decl.
22023 (driver::m_option_suggestions): New field.
22024 * opts-common.c (add_misspelling_candidates): New function.
22025 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22026 and make non-static.
22027 * opts.h (sanitizer_opts): New array decl.
22028 (add_misspelling_candidates): New function decl.
22029 * spellcheck.c (find_closest_string): New function.
22030 * spellcheck.h (find_closest_string): New function decl.
22031
22032 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22033
22034 PR rtl-optimization/69764
22035 PR rtl-optimization/69771
22036 * optabs.c (expand_binop_directly): For shift_optab_p, force
22037 convert_modes with VOIDmode if xop1 has VOIDmode.
22038
22039 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
22040
22041 PR target/69729
22042 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22043 to correctly determine instrumentation thunks.
22044
22045 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22046
22047 PR ipa/69241
22048 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22049 type by reference, force lhs on the call.
22050
22051 PR ipa/68672
22052 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22053 Compute retval and retbnd early in all cases if split_part_return_p
22054 and return_bb is not EXIT. Remove all clobber stmts and reset
22055 all debug stmts that refer to SSA_NAMEs defined in split part,
22056 except if it is retval, in that case replace the old retval with the
22057 lhs of the call to the split part.
22058
22059 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22060
22061 revert:
22062 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22063
22064 PR middle-end/66726
22065 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22066 whose result is used in PHI.
22067 (maybe_optimize_range_tests): Likewise.
22068 (final_range_test_p): Likweise.
22069
22070 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22071
22072 PR middle-end/66726
22073 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22074 whose result is used in PHI.
22075 (maybe_optimize_range_tests): Likewise.
22076 (final_range_test_p): Likweise.
22077
22078 2016-02-12 Jakub Jelinek <jakub@redhat.com>
22079
22080 * cgraph.c: Spelling fixes - behaviour -> behavior and
22081 neighbour -> neighbor.
22082 * target.def: Likewise.
22083 * sel-sched.c: Likewise.
22084 * config/mips/mips.c: Likewise.
22085 * config/arc/arc.md: Likewise.
22086 * config/arm/cortex-a57.md: Likewise.
22087 * config/arm/arm.c: Likewise.
22088 * config/arm/neon.md: Likewise.
22089 * config/arm/arm-c.c: Likewise.
22090 * config/vms/vms-c.c: Likewise.
22091 * config/s390/s390.c: Likewise.
22092 * config/i386/znver1.md: Likewise.
22093 * config/i386/i386.c: Likewise.
22094 * config/ia64/hpux-unix2003.h: Likewise.
22095 * config/msp430/msp430.md: Likewise.
22096 * config/rx/rx.c: Likewise.
22097 * config/rx/rx.md: Likewise.
22098 * config/aarch64/aarch64-simd.md: Likewise.
22099 * config/aarch64/aarch64.c: Likewise.
22100 * config/nvptx/nvptx.c: Likewise.
22101 * config/bfin/bfin.c: Likewise.
22102 * config/cris/cris.opt: Likewise.
22103 * config/rs6000/rs6000.c: Likewise.
22104 * target.h: Likewise.
22105 * spellcheck.c: Likewise.
22106 * ira-build.c: Likewise.
22107 * tree-inline.c: Likewise.
22108 * builtins.c: Likewise.
22109 * lra-constraints.c: Likewise.
22110 * explow.c: Likewise.
22111 * hwint.h: Likewise.
22112 * targhooks.c: Likewise.
22113 * tree-vect-data-refs.c: Likewise.
22114 * expr.c: Likewise.
22115 * doc/tm.texi: Likewise.
22116 * doc/extend.texi: Likewise.
22117 * doc/install.texi: Likewise.
22118 * doc/md.texi: Likewise.
22119 * tree-ssa-tail-merge.c: Likewise.
22120 * sched-int.h: Likewise.
22121 * match.pd: Likewise.
22122 * sched-ebb.c: Likewise.
22123 * target.def (omit_struct_return_reg): Likewise.
22124 * gimple-ssa-isolate-paths.c: Likewise.
22125 (find_implicit_erroneous_behaviour): Renamed to...
22126 (find_implicit_erroneous_behavior): ... this.
22127 (find_explicit_erroneous_behaviour): Renamed to...
22128 (find_explicit_erroneous_behavior): ... this.
22129 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22130
22131 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
22132
22133 PR rtl-optimization/64682
22134 PR rtl-optimization/69567
22135 PR rtl-optimization/69737
22136 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22137 in I2 as well, just lose it.
22138
22139 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22140
22141 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22142 New variable.
22143 (aarch64_last_printed_tune_string): Likewise.
22144 (aarch64_declare_function_name): Only output .arch assembler
22145 directive if it will be different from the previously output
22146 directive. Same for .tune comment but only if -dA is set.
22147 (aarch64_start_file): New function.
22148 (TARGET_ASM_FILE_START): Define.
22149
22150 2016-02-11 David Malcolm <dmalcolm@redhat.com>
22151
22152 PR plugins/69758
22153 * Makefile.in (PLUGIN_HEADERS): Add params.list.
22154
22155 2016-02-11 Jakub Jelinek <jakub@redhat.com>
22156
22157 PR target/65313
22158 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22159 -Wmaybe-uninitialized warning.
22160
22161 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
22162
22163 PR target/69713
22164 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22165
22166 2016-02-11 Richard Biener <rguenther@suse.de>
22167
22168 PR rtl-optimization/69291
22169 * ifcvt.c (noce_try_store_flag_constants): Do not allow
22170 subexpressions affected by changing the result.
22171
22172 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
22173
22174 PR target/69148
22175 * lra-constraints.c (curr_insn_transform): Find in/out operands
22176 for secondary memory moves. Update dups.
22177
22178 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
22179
22180 PR tree-optimization/69652
22181 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22182 to nested loop, did source re-formatting, skip debug statements,
22183 add check on statement with volatile operand, remove dead scalar
22184 statements.
22185
22186 2016-02-10 Jakub Jelinek <jakub@redhat.com>
22187 Patrick Palka <ppalka@gcc.gnu.org>
22188
22189 PR ipa/69241
22190 PR c++/69649
22191 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22192 calls if the return type is TREE_ADDRESSABLE.
22193 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22194 * ipa-split.c (split_function): Fix doubled "we" in comment.
22195 Use void return type for the split part even if
22196 !split_point->split_part_set_retval.
22197
22198 2016-02-10 Bin Cheng <bin.cheng@arm.com>
22199
22200 PR tree-optimization/68021
22201 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22202 when computing the value of biv cand by itself.
22203
22204 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22205
22206 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22207 (cortexa57_tunings): Likewise.
22208 (cortexa72_tunings): Likewise.
22209 (arch_macro_fusion_pair_p): Add support for AES fusion.
22210 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22211 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22212 Allow virtual registers before reload so early scheduling works.
22213 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22214 correct latency and pipeline.
22215 (cortex_a57_crypto_complex): Likewise.
22216 (cortex_a57_crypto_xor): Likewise.
22217 (define_bypass): Add AES bypass.
22218
22219 2016-02-10 Richard Biener <rguenther@suse.de>
22220
22221 PR tree-optimization/69726
22222 * passes.def: Add DCE pass before late uninit.
22223 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22224 really fixup if-conversions job.
22225
22226 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22227
22228 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22229 (arm_cortex_a57_tune): Likewise.
22230 (aarch_macro_fusion_pair_p): Add support for AES fusion.
22231 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22232
22233 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
22234
22235 * timevar.def (TV_PHASE_DBGINFO): Delete.
22236 (TV_PHASE_CHECK_DBGINFO): Likewise.
22237 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22238
22239 2016-02-10 Richard Biener <rguenther@suse.de>
22240
22241 PR tree-optimization/69719
22242 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22243 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22244
22245 2016-02-09 Andrew Pinski <apinski@cavium.com>
22246
22247 PR tree-opt/69282
22248 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22249 get_vcond_mask_icode returns false.
22250
22251 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22252
22253 PR target/68404
22254 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22255 an ADDIS that adds a pointer to a large constant that sets the
22256 upper16 bits with a load operation.
22257
22258 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22259
22260 PR target/68532
22261 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22262 order.
22263 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22264 endian.
22265 (vzipq_s16): Likewise.
22266 (vzipq_s32): Likewise.
22267 (vzipq_f32): Likewise.
22268 (vzipq_u8): Likewise.
22269 (vzipq_u16): Likewise.
22270 (vzipq_u32): Likewise.
22271 (vzipq_p8): Likewise.
22272 (vzipq_p16): Likewise.
22273
22274 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
22275
22276 PR target/68532
22277 * config/arm/arm.c (neon_endian_lane_map): New function.
22278 (neon_vector_pair_endian_lane_map): New function.
22279 (arm_evpc_neon_vuzp): Allow for big endian lane order.
22280 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22281 endian.
22282 (vuzpq_s16): Likewise.
22283 (vuzpq_s32): Likewise.
22284 (vuzpq_f32): Likewise.
22285 (vuzpq_u8): Likewise.
22286 (vuzpq_u16): Likewise.
22287 (vuzpq_u32): Likewise.
22288 (vuzpq_p8): Likewise.
22289 (vuzpq_p16): Likewise.
22290
22291 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
22292
22293 PR target/69634
22294 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22295 debug insns.
22296
22297 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
22298
22299 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22300 truncate const_int operand 1 to QImode.
22301
22302 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
22303
22304 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22305 corresponding to an abnormal edge.
22306
22307 2016-02-09 Tom de Vries <tom@codesourcery.com>
22308
22309 PR tree-optimization/69599
22310 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22311 function.
22312 (find_func_aliases_for_builtin_call, find_func_clobbers)
22313 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
22314 partition.
22315
22316 2016-02-09 Richard Biener <rguenther@suse.de>
22317
22318 PR tree-optimization/69715
22319 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22320 LHS on calls as non-rewritable.
22321
22322 2016-02-09 Tom de Vries <tom@codesourcery.com>
22323
22324 PR lto/69707
22325 * lto-wrapper.c (append_diag_options): New function.
22326 (compile_offload_image): Call append_diag_options.
22327
22328 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
22329
22330 PR other/69722
22331 * doc/extend.texi (Flag Output Operands): Correct sectioning.
22332 Minor copy-edit to fix verb tenses.
22333
22334 2016-02-08 Jakub Jelinek <jakub@redhat.com>
22335
22336 PR tree-optimization/69209
22337 * ipa-split.c (split_function): If split part is not
22338 returning retval, retval has gimple type but is not
22339 gimple value, force it into a SSA_NAME first.
22340
22341 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
22342
22343 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22344 outdated section.
22345
22346 2016-02-08 Jason Merrill <jason@redhat.com>
22347
22348 PR c++/69631
22349 * convert.c (convert_to_integer_1): Check dofold on truncation
22350 distribution.
22351 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22352 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22353 Rename from *_nofold.
22354 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22355 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22356
22357 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
22358
22359 PR target/60410
22360 * tree.c (build_common_tree_nodes): Remove short_double argument.
22361 All callers changed.
22362 * tree.h (build_common_tree_nodes): Adjust declaration.
22363 * doc/invoke.texi (-fshort-double): Remove documentation.
22364 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22365 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22366 * lto-wrapper.c (merge_and_complain, append_compiler_options)
22367 (append_linker_options): Don't handle OPT_fshort_double.
22368
22369 PR rtl-optimization/68730
22370 * lra-remat.c (insn_to_cand_activation): New static variable.
22371 (lra_remat): Allocate and free it.
22372 (create_cand): New arg activation. Initialize a field in
22373 insn_to_cand_activation if it is nonnull.
22374 (create_cands): Pass the activation insn to create_cand when making
22375 a candidate involving an output reload. Reorganize code a little.
22376 (do_remat): Keep track of active status of candidates in a separate
22377 bitmap.
22378
22379 2016-02-08 Richard Biener <rguenther@suse.de>
22380
22381 PR tree-optimization/69719
22382 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22383 Properly use absolute of the difference of the two offsets to
22384 compare or adjust the segment length.
22385
22386 2016-02-08 Richard Biener <rguenther@suse.de>
22387 Jeff Law <law@redhat.com>
22388
22389 PR target/68273
22390 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22391 types for anonymous SSA names.
22392
22393 2016-02-08 Richard Biener <rguenther@suse.de>
22394
22395 PR rtl-optimization/69274
22396 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22397
22398 2016-02-08 Jeff Law <law@redhat.com>
22399
22400 PR tree-optimization/65917
22401 * tree-ssa-dom.c (record_temporary_equivalences): Record both
22402 equivalences from if (x == y) style conditionals.
22403 (loop_depth_of_name): Remove.
22404 (record_equality): Remove loop depth check.
22405 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22406 (const_and_copies::record_const_or_copy_raw): New member function.
22407 * tree-ssa-scopedtables.c
22408 (const_and_copies::record_const_or_copy_raw): New, factored out of
22409 (const_and_copies::record_const_or_copy): Call new member function.
22410
22411 2016-02-05 Jeff Law <law@redhat.com>
22412
22413 PR tree-optimization/68541
22414 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22415 (count_stmts_in_block): New function.
22416 (poor_ifcvt_candidate_code): Likewise.
22417 (is_feasible_trace): Add some heuristics to determine when path
22418 splitting is profitable.
22419 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22420 is a diamond with a single exit.
22421
22422 2016-02-05 Martin Sebor <msebor@redhat.com>
22423
22424 PR c++/69662
22425 * doc/invoke.texi: Update -Wplacement-new to take an optional
22426 argument.
22427
22428 2016-02-06 Richard Henderson <rth@redhat.com>
22429
22430 PR c/69643
22431 * tree.c (tree_nop_conversion_p): Do not strip casts into or
22432 out of non-standard address spaces.
22433
22434 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22435
22436 PR rtl-optimization/69691
22437 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22438
22439 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
22440
22441 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22442 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22443 (*ieee128_mfvsrd_64bit): Likewise.
22444 (*ieee128_mfvsrd_32bit): Likewise.
22445
22446 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
22447
22448 PR target/69369
22449 Revert r232560:
22450 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22451
22452 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22453 instrumented_version.
22454
22455 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
22456
22457 * doc/invoke.texi (Optimize Options): In table of --param options
22458 rename second occurrence of tracer-min-branch-ratio to
22459 tracer-min-branch-probability, rename
22460 tracer-min-branch-ratio-feedback to
22461 tracer-min-branch-probability-feedback and clarify description,
22462 rename sched-spec-state-edge-prob-cutoff to
22463 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22464 to selsched-insns-to-rename, rename lto-minpartition to
22465 lto-min-partition, delete reorder-blocks-duplicate and
22466 reorder-blocks-duplicate-feedback.
22467
22468 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22469
22470 * config/s390/s390.c (s390_register_info_set_ranges): Remove
22471 superfluous loops.
22472
22473 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
22474
22475 * doc/extend.texi: S/390: Correct some typos.
22476
22477 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22478
22479 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22480
22481 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22482
22483 PR target/69625
22484 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22485 (s390_register_info_gprtofpr): Use new macros above.
22486 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22487 its name.
22488 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22489 its name. Adjust restore and save gpr ranges.
22490 (s390_register_info_set_ranges): New function.
22491 (s390_register_info): Use new macros above. Call
22492 s390_register_info_set_ranges.
22493 (s390_optimize_register_info): Likewise.
22494 (s390_hard_regno_rename_ok): Use new macros.
22495 (s390_hard_regno_scratch_ok): Likewise.
22496 (s390_emit_epilogue): Likewise.
22497 (s390_can_use_return_insn): Likewise.
22498 (s390_optimize_prologue): Likewise.
22499 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22500
22501 2016-02-05 Jakub Jelinek <jakub@redhat.com>
22502
22503 PR bootstrap/69677
22504 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22505 alignment fixes.
22506 (ix86_option_override_internal): Disable TARGET_STV even for
22507 -m{incoming,preferred}-stack-boundary=3.
22508
22509 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22510
22511 * config.gcc: Mark deprecated rtems targets as obsolete.
22512
22513 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
22514
22515 PR rtl-optimization/64682
22516 PR rtl-optimization/69567
22517 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22518 before I2 only if the register is both used and set in I2.
22519
22520 2016-02-04 DJ Delorie <dj@redhat.com>
22521
22522 * config/msp430/msp430.c (msp430_start_function): Add function type.
22523
22524 2016-02-04 Jakub Jelinek <jakub@redhat.com>
22525
22526 PR fortran/69368
22527 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22528
22529 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
22530
22531 PR rtl-optimization/69577
22532 Revert:
22533 2015-10-29 Richard Henderson <rth@redhat.com>
22534
22535 PR target/68124
22536 PR rtl-opt/67609
22537 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22538 sse check to the exact conditions of PR 67609.
22539
22540 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
22541
22542 PR target/69667
22543 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22544 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22545 not allowed into the traditional Altivec registers.
22546 (movtd_64bit_nodm): Likewise.
22547 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22548
22549 2016-02-04 David Malcolm <dmalcolm@redhat.com>
22550
22551 * config/aarch64/cortex-a57-fma-steering.c
22552 (aarch64_register_fma_steering): Remove "static" from arguments
22553 to register_pass.
22554
22555 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
22556
22557 PR target/69619
22558 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22559 twice when complex.
22560
22561 2016-02-04 Mike Frysinger <vapier@gentoo.org>
22562
22563 * doc/invoke.texi: Delete -mno-fma4.
22564
22565 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
22566
22567 PR rtl-optimization/69577
22568 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22569 (find_subregs_of_mode): Update accordingly. Iterate over partial
22570 definitions.
22571
22572 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
22573
22574 * config/arm/arm-protos.h (neon_reinterpret): Remove.
22575 * config/arm/arm.c (neon_reinterpret): Remove.
22576 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22577 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22578 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22579 vreinterpretti): Remove.
22580 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22581 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22582 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22583 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22584 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22585 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22586 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22587 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22588 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22589 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22590 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22591 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22592 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22593 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
22594 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
22595 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
22596 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
22597 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
22598 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
22599 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
22600 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
22601 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
22602 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
22603 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
22604 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
22605 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
22606 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
22607 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
22608 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
22609 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
22610 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
22611 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
22612 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
22613 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
22614 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
22615 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
22616 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
22617 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
22618 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
22619 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
22620 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
22621 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
22622 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
22623 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
22624 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
22625 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
22626 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
22627 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
22628 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
22629 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
22630 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
22631 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
22632 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
22633 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
22634 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
22635 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
22636 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
22637 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
22638 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
22639 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
22640 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
22641 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
22642 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
22643 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
22644 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
22645 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
22646 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
22647 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
22648 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
22649 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
22650 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
22651 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
22652 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
22653 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
22654 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
22655 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
22656 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
22657 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
22658 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
22659 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
22660 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
22661 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
22662 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
22663 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
22664 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
22665 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
22666 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
22667 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
22668 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
22669 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
22670 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
22671 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
22672 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
22673 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
22674 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
22675 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
22676 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
22677 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
22678 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
22679 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
22680 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
22681 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
22682 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
22683
22684 2016-02-04 Martin Liska <mliska@suse.cz>
22685
22686 PR sanitizer/69276
22687 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
22688 that are gimple_store_p.
22689 (maybe_instrument_call): Likewise.
22690
22691 2016-02-04 Bin Cheng <bin.cheng@arm.com>
22692
22693 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
22694 register scaling out of memory reference and comment why.
22695
22696 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22697
22698 PR target/65932
22699 PR target/67714
22700 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
22701 folding the source of a SET.
22702
22703 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22704
22705 PR target/65932
22706 PR target/67714
22707 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
22708 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
22709
22710 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
22711
22712 PR target/65932
22713 PR target/67714
22714 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
22715 HImode.
22716
22717 2016-02-04 Christian Bruel <christian.bruel@st.com>
22718
22719 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
22720 * config/arm/arm.c (arm_set_current_function): Likewise.
22721
22722 2016-02-04 Jakub Jelinek <jakub@redhat.com>
22723 Ilya Enkovich <enkovich.gnu@gmail.com>
22724 H.J. Lu <hongjiu.lu@intel.com>
22725
22726 PR target/69454
22727 * config/i386/i386.c (convert_scalars_to_vector): Remove
22728 stack alignment fixes.
22729 (ix86_option_override_internal): Disable TARGET_STV if stack
22730 might not be aligned enough.
22731 (ix86_minimum_alignment): Assert that TARGET_STV is false.
22732
22733 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
22734
22735 * config/i386/x86-tune.def: Disable default prefetching
22736 for -march=znver1.
22737
22738 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22739 Vladimir Makarov <vmakarov@redhat.com>
22740
22741 PR target/69461
22742 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
22743 in validating fused toc addresses.
22744
22745 2016-02-03 Jakub Jelinek <jakub@redhat.com>
22746
22747 PR c/69627
22748 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
22749 range->m_caret fields if range->m_show_caret_p is false.
22750
22751 PR target/69644
22752 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22753 Force oldval into register if it does not satisfy reg_or_short_operand
22754 predicate. Fix up formatting.
22755
22756 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
22757 Alexandre Oliva <aoliva@redhat.com>
22758
22759 PR target/69461
22760 * lra-constraints.c (simplify_operand_subreg): Check additionally
22761 address validity after potential reloading.
22762 (process_address_1): Check insns validity. In case of failure do
22763 nothing.
22764
22765 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
22766
22767 PR target/69118
22768 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
22769 Fix target.
22770
22771 2016-02-02 Jakub Jelinek <jakub@redhat.com>
22772
22773 * wide-int.cc (canonize_uhwi): New function.
22774 (wi::divmod_internal): Use it.
22775
22776 2016-02-02 James Norris <jnorris@codesourcery.com>
22777
22778 * gimplify.c (omp_notice_variable): Add usage check.
22779
22780 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
22781
22782 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
22783 like LE, GE, LT, GT when emitting relational operator.
22784
22785 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
22786
22787 * ira-costs.c (find_costs_and_classes): Add extra argument.
22788 * target.def (ira_change_pseudo_allocno_class): Add parameter.
22789 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
22790 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
22791 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
22792 Add best_class parameter, and return it if not ALL_REGS.
22793 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
22794 Add parameter.
22795 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
22796 Update target hook.
22797
22798 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
22799
22800 * config/aarch64/aarch64.c
22801 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
22802 (aarch64_ira_change_pseudo_allocno_class): New function.
22803
22804 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
22805
22806 PR target/67032
22807 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
22808
22809 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22810
22811 * config/avr/avr.c (avr_option_override): Set
22812 PARAM_ALLOW_STORE_DATA_RACES to 1.
22813
22814 2016-02-02 Richard Biener <rguenther@suse.de>
22815
22816 PR tree-optimization/69595
22817 * match.pd: Add range test simplifications to true/false.
22818
22819 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
22820
22821 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
22822 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
22823 instead.
22824
22825 2016-02-02 Richard Biener <rguenther@suse.de>
22826
22827 PR tree-optimization/69606
22828 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
22829 info on the result before moving a stmt.
22830
22831 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
22832
22833 PR middle-end/68542
22834 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
22835 branch with vector comparison.
22836 * config/i386/sse.md (VI48_AVX): New mode iterator.
22837 (define_expand "cbranch<mode>4): Add support for conditional branch
22838 with vector comparison.
22839 * tree-vect-loop.c (optimize_mask_stores): New function.
22840 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
22841 has_mask_store field of vect_info.
22842 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
22843 vectorized loops having masked stores after vec_info destroy.
22844 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
22845 correspondent macros.
22846 (optimize_mask_stores): Add prototype.
22847
22848 2016-02-02 Alan Modra <amodra@gmail.com>
22849
22850 PR target/69548
22851 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
22852 allow subregs.
22853
22854 2016-02-02 Alan Modra <amodra@gmail.com>
22855
22856 PR target/68662
22857 * config/rs6000/rs6000.c (need_toc_init): New var, set it
22858 whenever toc_label_name used.
22859 (rs6000_file_start): Don't set up toc section here,
22860 (rs6000_output_function_epilogue): do so here instead,
22861 (rs6000_xcoff_file_start): and here.
22862 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
22863 (load_toc_aix_di): Likewise.
22864
22865 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22866
22867 PR rtl-optimization/69592
22868 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
22869 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
22870 (num_sign_bit_copies_binary_arith_p): New inline function.
22871 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
22872
22873 2016-02-01 Jeff Law <law@redhat.com>
22874
22875 PR tree-optimization/69580
22876 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
22877 * tree-ssa-threadbackward.c
22878 (fsm_find_control_statement_thread_paths): Do not try to walk
22879 through large PHI nodes.
22880
22881 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22882
22883 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
22884 when count is incremented above limit, don't analyze further
22885 insns afterwards.
22886
22887 * omp-low.c (oacc_parse_default_dims): Avoid
22888 -Wsign-compare warning, make sure value fits into int
22889 rather than just unsigned int.
22890
22891 2016-02-01 Bin Cheng <bin.cheng@arm.com>
22892
22893 PR tree-optimization/67921
22894 * fold-const.c (split_tree): New parameters. Convert pointer
22895 type variable part to proper type before negating.
22896 (fold_binary_loc): Pass new arguments to split_tree.
22897
22898 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
22899
22900 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
22901 (nvptx_goacc_validate_dims): Extend to handle global defaults.
22902 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
22903 * doc/tm.texti: Rebuilt.
22904 * doc/invoke.texi (fopenacc-dim): Document.
22905 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
22906 (append_compiler_options): Likewise.
22907 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
22908 (oacc_parse_default_dims): New.
22909 (oacc_validate_dims): Add USED arg. Select non-unity default when
22910 possible.
22911 (oacc_loop_fixed_partitions): Return mask of used partitions.
22912 (oacc_loop_auto_partitions): Emit dump info.
22913 (oacc_loop_partition): Return mask of used partitions.
22914 (execute_oacc_device_lower): Parse default dimension arg. Adjust
22915 loop partitioning and validation calls.
22916
22917 2016-02-01 Richard Biener <rguenther@suse.de>
22918
22919 PR middle-end/69556
22920 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22921
22922 2016-02-01 Richard Biener <rguenther@suse.de>
22923
22924 PR tree-optimization/69574
22925 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22926 of asserting return chrec_dont_know.
22927
22928 2016-02-01 Martin Liska <mliska@suse.cz>
22929
22930 * mem-stats-traits.h: Add copyright header.
22931 * mem-stats.h: Likewise.
22932
22933 2016-02-01 Richard Biener <rguenther@suse.de>
22934
22935 PR tree-optimization/69579
22936 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22937 Do not propagate through abnormal PHI results.
22938
22939 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
22940
22941 * postreload.c (reload_cse_simplify): Remove dead code.
22942
22943 2016-02-01 Jakub Jelinek <jakub@redhat.com>
22944
22945 PR rtl-optimization/69570
22946 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22947 if there is more than one set, not if there is a single set.
22948
22949 2016-02-01 Richard Henderson <rth@redhat.com>
22950
22951 PR rtl-opt/69535
22952 * combine.c (make_compound_operation): When looking through a
22953 subreg, make sure to re-extend to the width of the outer mode.
22954
22955 2016-01-30 Jakub Jelinek <jakub@redhat.com>
22956
22957 PR tree-optimization/69546
22958 * wide-int.cc (wi::divmod_internal): For unsigned division
22959 where both operands fit into uhwi, if o1 is 1 and o0 has
22960 msb set, if divident_prec is larger than bits per hwi,
22961 clear another quotient word and return 2 instead of 1.
22962 Similarly for remainder with msb in HWI set, if dividend_prec
22963 is larger than bits per hwi.
22964
22965 2016-01-29 Martin Jambor <mjambor@suse.cz>
22966
22967 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22968 Use short lowercase names.
22969 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
22970 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22971 acq_rel one. Protect warning agains segfaults if
22972 get_memory_order_name returns NULL.
22973 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22974 with release semantics. Do not warn if get_memory_order already did.
22975 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22976 semantics. Fix check for relaxed or acquire semantics. Do not warn
22977 if get_memory_order already did.
22978
22979 2016-01-29 Sebastian Pop <s.pop@samsung.com>
22980
22981 * doc/install.texi: Document that isl-0.16 is supported.
22982
22983 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
22984
22985 PR target/69299
22986 * config/i386/constraints.md (Bm): Describe as special memory
22987 constraint.
22988 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22989 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22990 * genpreds.c (struct constraint_data): Add is_special_memory.
22991 (have_special_memory_constraints, special_memory_start): New
22992 static vars.
22993 (special_memory_end): Ditto.
22994 (add_constraint): Add new arg is_special_memory. Add code to
22995 process its true value. Update have_special_memory_constraints.
22996 (process_define_constraint): Pass the new arg.
22997 (process_define_register_constraint): Ditto.
22998 (choose_enum_order): Process special memory.
22999 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
23000 function insn_extra_special_memory_constraint.
23001 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23002 * gensupport.c (process_rtx): Process
23003 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23004 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
23005 * ira-lives.c (single_reg_class): Use
23006 insn_extra_special_memory_constraint.
23007 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
23008 * lra-constraints.c (process_alt_operands): Ditto.
23009 (curr_insn_transform): Use insn_extra_special_memory_constraint.
23010 * recog.c (asm_operand_ok, preprocess_constraints): Process
23011 CT_SPECIAL_MEMORY.
23012 * reload.c (find_reloads): Ditto.
23013 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
23014 * stmt.c (parse_input_constraint): Use
23015 insn_extra_special_memory_constraint.
23016
23017 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23018
23019 PR target/69530
23020 * lra-splill.c (lra_final_code_change): Revert r229087 by
23021 removing all sub-registers.
23022
23023 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
23024
23025 PR target/65604
23026 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23027
23028 2016-01-29 Jakub Jelinek <jakub@redhat.com>
23029
23030 PR target/69551
23031 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23032 SSE1, copy target into the temporary reg first before recursing
23033 on it.
23034
23035 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
23036
23037 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23038 with vm.
23039
23040 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23041
23042 * ginclude/stdarg.h: Test __cplusplus instead of
23043 __GXX_EXPERIMENTAL_CXX0X__.
23044
23045 2016-01-29 Richard Biener <rguenther@suse.de>
23046
23047 PR tree-optimization/69547
23048 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23049 Do not mark clobbers necessary.
23050 (mark_all_reaching_defs_necessary_1): Likewise.
23051
23052 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23053
23054 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23055 declaration name with %qs and print it in both error messages.
23056 Also fix indentation.
23057
23058 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23059
23060 PR other/69006
23061 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23062 trailing blank line from error message.
23063
23064 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
23065
23066 PR c++/69462
23067 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23068 for C++-11.
23069
23070 2016-01-29 Richard Biener <rguenther@suse.de>
23071
23072 PR middle-end/69537
23073 * match.pd: Allow all integral types when simplifying a
23074 widening or sign-changing conversion.
23075
23076 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23077
23078 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23079 back to setting codegen_error to fail codegen.
23080
23081 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
23082
23083 PR target/69459
23084 * config/i386/constraints.md (C): Only accept constant zero operand.
23085 (BC): New constraint.
23086 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23087 instead of C constraint.
23088 * doc/md.texi (Machine Constraints): Update description
23089 of C constraint.
23090
23091 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
23092
23093 PR target/68400
23094 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23095
23096 2016-01-28 Jakub Jelinek <jakub@redhat.com>
23097
23098 PR middle-end/69542
23099 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23100 non-debug insns.
23101
23102 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
23103
23104 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23105 branches if using guessed profile.
23106
23107 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
23108
23109 * graphite-optimize-isl.c (optimize_isl): Fix dump.
23110
23111 2016-01-28 Richard Henderson <rth@redhat.com>
23112
23113 PR target/69305
23114 * config/aarch64/aarch64-modes.def (CC_Cmode): New
23115 * config/aarch64/aarch64-protos.h: Update.
23116 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23117 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23118 (aarch64_get_condition_code_1): Handle CC_Cmode.
23119 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23120 (*add<mode>3_compareC_cconly_imm): New.
23121 (*add<mode>3_compareC_cconly): New.
23122 (*add<mode>3_compareC_imm): New.
23123 (add<mode>3_compareC): New.
23124 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23125 to be first. Use aarch64_carry_operation.
23126 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23127 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23128 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23129 (subti3): Use subdi3_compare1.
23130 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23131 (sub<mode>3_compare1): New.
23132 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23133 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23134 (*subsi3_carryin_uxtw): Likewise.
23135 (*ngc<mode>, *ngcsi_uxtw): Likewise.
23136 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23137 * config/aarch64/iterators.md (DWI): New.
23138 * config/aarch64/predicates.md (aarch64_carry_operation): New.
23139 (aarch64_borrow_operation): New.
23140
23141 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23142
23143 * graphite-optimize-isl.c (optimize_isl): Print a different debug
23144 message when isl does not return a valid schedule.
23145
23146 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23147
23148 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23149 Remove comments from class declarations: they are already in the code
23150 close by the defs.
23151
23152 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23153
23154 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23155 codegen_error_p.
23156 (ternary_op_to_tree): Same.
23157 (unary_op_to_tree): Same.
23158 (nary_op_to_tree): Same.
23159 (gcc_expression_from_isl_expr_op): Same.
23160 (gcc_expression_from_isl_expression): Same.
23161 (graphite_create_new_loop): Same.
23162 (graphite_create_new_loop_guard): Same.
23163 (build_iv_mapping): Same.
23164 (graphite_create_new_guard): Same.
23165 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23166 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23167
23168 2016-01-28 Sebastian Pop <s.pop@samsung.com>
23169
23170 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23171 instead of setting codegen_error to fail codegen.
23172
23173 2016-01-28 Jason Merrill <jason@redhat.com>
23174
23175 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23176
23177 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23178
23179 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23180 Remove CONST_INT_P check in CCMP cost calculation.
23181
23182 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23183
23184 * config/aarch64/aarch64.c (generic_vector_cost):
23185 Set vec_permute_cost.
23186 (cortexa57_vector_cost): Likewise.
23187 (exynosm1_vector_cost): Likewise.
23188 (xgene1_vector_cost): Likewise.
23189 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23190 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23191 Add vec_permute_cost entry.
23192
23193 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
23194
23195 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23196 immediate as %1.
23197 (add<mode>3_compare0): Likewise.
23198 (addsi3_compare0_uxtw): Likewise.
23199 (add<mode>3nr_compare0): Likewise.
23200 (compare_neg<mode>): Likewise.
23201 (<optab><mode>3): Likewise.
23202
23203 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
23204
23205 * tree-vect-stmts.c (vectorizable_comparison): Add
23206 NULL check for vectype.
23207
23208 2016-01-28 Richard Biener <rguenther@suse.de>
23209
23210 PR tree-optimization/69466
23211 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23212 Account for PHIs we couldn't duplicate.
23213
23214 2016-01-28 Martin Liska <mliska@suse.cz>
23215
23216 PR pch/68758
23217 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23218 instead of ENABLE_VALGRIND_CHECKING.
23219
23220 2016-01-27 Richard Henderson <rth@redhat.com>
23221
23222 PR rtl-opt/69447
23223 * lra-remat.c (subreg_regs): New.
23224 (dump_candidates_and_remat_bb_data): Dump it.
23225 (operand_to_remat): Reject if operand in subreg_regs.
23226 (set_bb_regs): Collect subreg_regs.
23227 (lra_remat): Init and free subreg_regs. Compute
23228 calculate_local_reg_remat_bb_data before create_cands.
23229
23230 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
23231
23232 PR target/68986
23233 * config/i386/i386.c (ix86_update_stack_boundary): Don't
23234 change stack_alignment_needed for __tls_get_addr call.
23235
23236 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
23237
23238 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23239
23240 2016-01-27 Jeff Law <law@redhat.com>
23241
23242 PR tree-optimization/68398
23243 PR tree-optimization/69196
23244 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23245 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23246 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23247 Only count PHIs in the last block in the path. The others will
23248 const/copy propagate away. Add heuristic to allow more irreducible
23249 subloops to be created when it is likely profitable to do so.
23250
23251 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23252 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
23253 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
23254
23255 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23256
23257 PR lto/69254
23258 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23259 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23260 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23261 * tree-streamer-in.c: Include asan.h.
23262 (streamer_get_builtin_tree): For builtins in sanitizer
23263 range call initialize_sanitizer_builtins and retry.
23264
23265 2016-01-27 Ian Lance Taylor <iant@google.com>
23266
23267 * common.opt (fkeep-gc-roots-live): New undocumented option.
23268 * tree-ssa-loop-ivopts.c (add_candidate_1): If
23269 -fkeep-gc-roots-live, skip pointers.
23270 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23271 NULL.
23272
23273 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
23274
23275 PR target/69512
23276 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23277 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23278
23279 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
23280
23281 PR target/68380
23282 * configure.ac: NetBSD provides SSP in its C library.
23283 * configure: Updated.
23284
23285 2016-01-27 Richard Biener <rguenther@suse.de>
23286
23287 PR tree-optimization/69166
23288 * tree-vect-loop.c (vect_is_simple_reduction): Always check
23289 reduction code for commutativity / associativity.
23290
23291 2016-01-27 Martin Jambor <mjambor@suse.cz>
23292
23293 PR tree-optimization/69355
23294 * tree-sra.c (analyze_access_subtree): Correct hole detection when
23295 total_scalarization fails.
23296
23297 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
23298
23299 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23300 power9.
23301
23302 2016-01-27 Christian Bruel <christian.bruel@st.com>
23303
23304 PR target/69245
23305 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23306 Move arm_reset_previous_fndecl and set_target_option_current_node in
23307 the conditional part. Call save_restore_target_globals.
23308 * config/arm/arm.c (arm_set_current_function):
23309 Refactor to better support #pragma target and attribute mix.
23310 Call save_restore_target_globals.
23311 * config/arm/arm-protos.h (save_restore_target_globals): New function.
23312
23313 2016-01-27 Martin Liska <mliska@suse.cz>
23314
23315 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23316 reference for an HSA kernel and its host function.
23317
23318 2016-01-27 Jakub Jelinek <jakub@redhat.com>
23319
23320 PR tree-optimization/69399
23321 * wide-int.h (wi::lrshift): For larger precisions, only
23322 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23323
23324 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
23325
23326 * config/arc/predicates.md (proper_comparison_operator): Reject
23327 constant-constant comparison.
23328
23329 2016-01-26 Tom de Vries <tom@codesourcery.com>
23330
23331 PR tree-optimization/69110
23332 * tree-data-ref.c (initialize_data_dependence_relation): Handle
23333 DR_NUM_DIMENSIONS == 0.
23334
23335 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
23336 Sebastian Pop <s.pop@samsung.com>
23337
23338 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23339 isl_ast_op_cond and isl_ast_op_select.
23340 (gcc_expression_from_isl_expr_op): Same.
23341
23342 2016-01-26 Jason Merrill <jason@redhat.com>
23343
23344 PR c++/68782
23345 * tree.c (recompute_constructor_flags): Split out from
23346 build_constructor.
23347 (verify_constructor_flags): New.
23348 * tree.h: Declare them.
23349
23350 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
23351
23352 PR rtl-optimization/69217
23353 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23354 are no TYPE_FIELDS set for the record type.
23355
23356 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23357
23358 PR target/68662
23359 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23360 toc_label_name unconditionally.
23361 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23362 SYMBOL_REF string. Use toc_label_name instead of constructing
23363 LCTOC1.
23364 (rs6000_elf_declare_function_name): Use toc_label_name instead of
23365 constructing LCTOC1.
23366
23367 2016-01-26 Martin Sebor <msebor@redhat.com>
23368
23369 PR other/69477
23370 * doc/extend.texi (Common Type Attributes): Move text that talks about
23371 attribute packed from attribute aligned to the section discussing
23372 the former attribute for clarity.
23373
23374 2016-01-26 Richard Henderson <rth@redhat.com>
23375
23376 PR middle-end/60908
23377 * trans-mem.c (tm_region_init): Mark entry block as visited.
23378
23379 2016-01-26 David Malcolm <dmalcolm@redhat.com>
23380
23381 PR other/69006
23382 * diagnostic-show-locus.c (layout::print_source_line): Replace
23383 call to pp_newline with call to layout::print_newline.
23384 (layout::print_annotation_line): Likewise.
23385 (layout::move_to_column): Likewise.
23386 (layout::print_any_fixits): After printing any fixits, print a
23387 trailing newline, if necessary.
23388 (layout::print_newline): New method, resetting any colorization
23389 before a newline.
23390 (diagnostic_show_locus): Move the pp_newline to before the
23391 early bailout. Remove dummy block enclosing the layout instance.
23392 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23393 of pp_newline_and_flush with pp_flush.
23394 (diagnostic_append_note): Delete use of pp_newline.
23395 (diagnostic_append_note_at_rich_loc): Delete.
23396 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23397 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23398 when newline characters are added to the buffer.
23399
23400 2016-01-26 Michael Matz <matz@suse.de>
23401
23402 * configure.ac (ac_cv_std_swap_in_utility): New test.
23403 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23404 * configure: Regenerate.
23405 * config.in: Regenerate.
23406
23407 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
23408
23409 * config/arc/arc.md (cstoresi4): Force operand into register.
23410 (arcset<code>): Fix predicate.
23411 (arcsetltu): Likewise.
23412 (arcsetgeu): Likewise.
23413 (arcsethi): Likewise.
23414 (arcsetls): Likewise.
23415
23416 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23417
23418 PR tree-optimization/69483
23419 * gimple-fold.c (canonicalize_constructor_val): Return NULL
23420 if base has error_mark_node type.
23421
23422 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
23423
23424 PR target/68620
23425 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23426 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23427 New helper macros.
23428 (vget_lane_f16): Handle big-endian.
23429 (vgetq_lane_f16): Likewise.
23430 (vset_lane_f16): Likewise.
23431 (vsetq_lane_f16): Likewise.
23432 * config/arm/iterators.md (VQXMOV): Add V8HF.
23433 (VDQ): Add V4HF and V8HF.
23434 (V_reg): Handle V4HF and V8HF.
23435 (Is_float_mode): Likewise.
23436 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23437 neon_vdup_nv8hf): New patterns.
23438 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23439 Use VD_LANE iterator.
23440 (neon_vld1_dup<mode>): Use VQ2 iterator.
23441
23442 2016-01-26 Nathan Sidwell <nathan@acm.org>
23443
23444 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23445 (set_oacc_fn_attrib): Add IS_KERNEL arg.
23446 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23447 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23448 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23449 (oacc_validate_dims): Add LEVEL arg, don't return level.
23450 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23451 oacc_validate_dims.
23452 (execute_oacc_device_lower): Adjust, add more dump output.
23453 * tree-ssa-loop.c (gate_oacc_kernels): Use
23454 oacc_fn_attrib_kernels_p.
23455 * tree-parloops.c (create_parallel_loop): Adjust
23456 set_oacc_fn_attrib call.
23457
23458 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23459
23460 PR lto/69254
23461 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23462 (append_compiler_options): Handle -fcilkplus.
23463 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23464
23465 2016-01-26 Nick Clifton <nickc@redhat.com>
23466
23467 PR target/66655
23468 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23469 been marked as DECL_ONE_ONLY but we do not the means to make it
23470 so, then do not allow it to bind locally.
23471
23472 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23473
23474 PR lto/69254
23475 * opts.h (parse_sanitizer_options): New prototype.
23476 * opts.c (sanitizer_opts): New array.
23477 (parse_sanitizer_options): New function.
23478 (common_handle_option): Use parse_sanitizer_options.
23479
23480 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
23481
23482 PR target/68986
23483 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23484 alignment adjustment to ...
23485 (ix86_update_stack_boundary): Here. Don't over-align stack for
23486 __tls_get_addr.
23487 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23488 if __tls_get_addr is called.
23489
23490 2016-01-26 Christian Bruel <christian.bruel@st.com>
23491
23492 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23493
23494 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
23495
23496 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23497
23498 2016-01-26 Richard Biener <rguenther@suse.de>
23499
23500 PR middle-end/69467
23501 * match.pd: Guard X * CST CMP 0 pattern with single_use.
23502
23503 2016-01-26 Richard Biener <rguenther@suse.de>
23504
23505 PR tree-optimization/69452
23506 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23507 (move_computations_dom_walker::before_dom_children): Rename
23508 to ...
23509 (move_computations_worker): This.
23510 (move_computations): Perform an RPO rather than a DOM walk.
23511
23512 2016-01-26 Jakub Jelinek <jakub@redhat.com>
23513
23514 PR target/69442
23515 * combine.c (combine_instructions): For REG_EQUAL note with
23516 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23517 to the underlying register.
23518 * doc/rtl.texi (REG_EQUAL): Document the behavior of
23519 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23520
23521 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
23522
23523 PR target/67896
23524 * config/aarch64/aarch64-builtins.c
23525 (aarch64_init_simd_builtin_types): Do not set structural
23526 equality to __Poly{8,16,64,128}_t types.
23527
23528 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
23529
23530 PR tree-optimization/69400
23531 * wide-int.cc (wi_pack): Take the precision as argument and
23532 perform canonicalization here rather than in the callers.
23533 Use the main loop to handle all full-width HWIs. Add a
23534 zero HWI if in_len isn't a full result.
23535 (wi::divmod_internal): Update accordingly.
23536 (wi::mul_internal): Likewise. Simplify.
23537
23538 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
23539 Sebastian Pop <s.pop@samsung.com>
23540
23541 * graphite-poly.c (apply_poly_transforms): Simplify.
23542 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23543 (print_isl_map): Same.
23544 (print_isl_union_map): Same.
23545 (print_isl_schedule): New.
23546 (debug_isl_schedule): New.
23547 * graphite-dependences.c (scop_get_reads): Do not call
23548 isl_union_map_add_map that is undocumented isl functionality.
23549 (scop_get_must_writes): Same.
23550 (scop_get_may_writes): Same.
23551 (scop_get_original_schedule): Remove.
23552 (scop_get_dependences): Do not call isl_union_map_compute_flow that
23553 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
23554 (compute_deps): Remove.
23555 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23556 (debug_schedule_ast): New.
23557 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23558 set_separate_option.
23559 (graphite_regenerate_ast_isl): Add dump.
23560 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23561 from scop->transformed_schedule.
23562 (graphite_regenerate_ast_isl): Add more dump.
23563 * graphite-optimize-isl.c (optimize_isl): Set
23564 scop->transformed_schedule. Check whether schedules are equal.
23565 (apply_poly_transforms): Move here.
23566 * graphite-poly.c (apply_poly_transforms): ... from here.
23567 (free_poly_bb): Static.
23568 (free_scop): Static.
23569 (pbb_number_of_iterations_at_time): Remove.
23570 (print_isl_ast): New.
23571 (debug_isl_ast): New.
23572 (debug_scop_pbb): New.
23573 * graphite-scop-detection.c (print_edge): Move.
23574 (print_sese): Move.
23575 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23576 (build_scop_scattering): Remove.
23577 (create_pw_aff_from_tree): Assert instead of bailing out.
23578 (add_condition_to_pbb): Remove unused code, do not fail.
23579 (add_conditions_to_domain): Same.
23580 (add_conditions_to_constraints): Remove.
23581 (build_scop_context): New.
23582 (add_iter_domain_dimension): New.
23583 (build_iteration_domains): Initialize pbb->iterators.
23584 Call add_conditions_to_domain.
23585 (nested_in): New.
23586 (loop_at): New.
23587 (index_outermost_in_loop): New.
23588 (index_pbb_in_loop): New.
23589 (outermost_pbb_in): New.
23590 (add_in_sequence): New.
23591 (add_outer_projection): New.
23592 (outer_projection_mupa): New.
23593 (add_loop_schedule): New.
23594 (build_schedule_pbb): New.
23595 (build_schedule_loop): New.
23596 (embed_in_surrounding_loops): New.
23597 (build_schedule_loop_nest): New.
23598 (build_original_schedule): New.
23599 (build_poly_scop): Call build_original_schedule.
23600 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
23601 (free_poly_dr): Remove.
23602 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
23603 (free_poly_bb): Remove.
23604 (debug_loop_vec): Remove.
23605 (print_isl_ast): Declare.
23606 (debug_isl_ast): Declare.
23607 (scop_do_interchange): Remove.
23608 (scop_do_strip_mine): Remove.
23609 (scop_do_block): Remove.
23610 (flatten_all_loops): Remove.
23611 (optimize_isl): Remove.
23612 (pbb_number_of_iterations_at_time): Remove.
23613 (debug_scop_pbb): Declare.
23614 (print_schedule_ast): Declare.
23615 (debug_schedule_ast): Declare.
23616 (struct scop): Remove schedule. Add original_schedule,
23617 transformed_schedule.
23618 (free_gimple_poly_bb): Remove.
23619 (print_generated_program): Remove.
23620 (debug_generated_program): Remove.
23621 (unify_scattering_dimensions): Remove.
23622 * sese.c (print_edge): ... here.
23623 (print_sese): ... here.
23624 (debug_edge): ... here.
23625 (debug_sese): ... here.
23626 * sese.h (print_edge): Declare.
23627 (print_sese): Declare.
23628 (dump_edge): Declare.
23629 (dump_sese): Declare.
23630
23631 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
23632 Sebastian Pop <s.pop@samsung.com>
23633
23634 * Makefile.in: Set ISLVER in site.exp.
23635
23636 2016-01-25 Jakub Jelinek <jakub@redhat.com>
23637
23638 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
23639 DECL_VALUE_EXPR of new_var even for the non-array case. Look
23640 through DECL_VALUE_EXPR for expansion.
23641
23642 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
23643
23644 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
23645 the frame info after reload completed.
23646
23647 2016-01-25 Jeff Law <law@redhat.com>
23648
23649 PR tree-optimization/69196
23650 PR tree-optimization/68398
23651 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
23652 tree-ssa-threadupdate.c.
23653 (determine_bb_domination_status): Prototype
23654 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
23655 (determine_bb_domination_status): No longer static.
23656 (valid_jump_thread_path): Remove code to detect characteristics
23657 of the jump thread path not associated with correctness.
23658 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
23659 Correct test for thread path length. Count PHIs for real operands as
23660 statements that need to be copied. Do not count ASSERT_EXPRs.
23661 Look at all the blocks in the thread path. Compute and selectively
23662 filter thread paths based on threading through the latch, threading
23663 a multiway branch or crossing a multiway branch.
23664
23665 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23666
23667 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
23668 decl with __attribute__ ((unused)) annotation.
23669
23670 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
23671
23672 PR target/69421
23673 * tree-vect-stmts.c (vectorizable_condition): Check vectype
23674 of operands is compatible with a statement vectype.
23675
23676 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
23677
23678 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
23679 improve wording for mixed storage order support.
23680
23681 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
23682
23683 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
23684 (vcvt_u64_f64): Likewise.
23685 (vcvta_s64_f64): Likewise.
23686 (vcvta_u64_f64): Likewise.
23687 (vcvtm_s64_f64): Likewise.
23688 (vcvtm_u64_f64): Likewise.
23689 (vcvtn_s64_f64): Likewise.
23690 (vcvtn_u64_f64): Likewise.
23691 (vcvtp_s64_f64): Likewise.
23692 (vcvtp_u64_f64): Likewise.
23693
23694 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
23695
23696 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
23697 (arc_init): Check validity mll64 option.
23698 (arc_save_restore): Use double load/store instruction.
23699 (arc_expand_movmem): Likewise.
23700 (arc_split_move): Don't split if we have double load/store
23701 instructions. Returns a boolean.
23702 (arc_process_double_reg_moves): Change function to return boolean
23703 instead of a sequence of instructions.
23704 (arc_dwarf_register_span): New function.
23705 * config/arc/arc-protos.h (arc_split_move): Change prototype.
23706 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
23707 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
23708 (*movdf_insn): Likewise.
23709 * config/arc/arc.opt (mll64): New option.
23710 * config/arc/predicates.md (even_register_operand): New predicate.
23711 * doc/invoke.texi (ARC Options): Add mll64 documentation.
23712
23713 2016-01-25 Richard Biener <rguenther@suse.de>
23714
23715 PR lto/69393
23716 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
23717 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
23718 DECL_NAMELESS.
23719 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
23720
23721 2016-01-25 Richard Biener <rguenther@suse.de>
23722
23723 PR tree-optimization/69376
23724 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
23725 flag.
23726 (VN_INFO_ANTI_RANGE_P): New inline.
23727 (VN_INFO_RANGE_TYPE): Likewise.
23728 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
23729 SSA_NAME_ANTI_RANGE_P.
23730 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
23731 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23732 Properly query VN_INFO_RANGE_TYPE.
23733
23734 2016-01-25 Nick Clifton <nickc@redhat.com>
23735
23736 PR target/66655
23737 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
23738
23739 2016-01-23 Tom de Vries <tom@codesourcery.com>
23740
23741 PR tree-optimization/69426
23742 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
23743 removed clobber.
23744
23745 2016-01-23 Jakub Jelinek <jakub@redhat.com>
23746
23747 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
23748 "the the" with "the" in the comments.
23749 * ipa-devirt.c (build_type_inheritance_graph,
23750 update_type_inheritance_graph): Likewise.
23751 * tree.c (build_function_type_list_1): Likewise.
23752 * cfgloopmanip.c (scale_loop_profile): Likewise.
23753 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
23754 * gimple-ssa-split-paths.c
23755 (find_block_to_duplicate_for_splitting_paths): Likewise.
23756 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
23757 * expr.c (convert_move): Likewise.
23758 * var-tracking.c (vt_stack_adjustments): Likewise.
23759 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
23760 * tree-vrp.c (test_for_singularity): Likewise.
23761
23762 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
23763 directly instead of building a temporary tree.
23764
23765 PR bootstrap/69434
23766 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
23767 remove <algorithm> include.
23768
23769 2016-01-22 Jakub Jelinek <jakub@redhat.com>
23770
23771 PR target/69432
23772 * config/i386/i386.c: Include dojump.h.
23773 (expand_small_movmem_or_setmem,
23774 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
23775 fixes.
23776 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
23777 if dynamic_check != -1.
23778
23779 2016-01-21 Jeff Law <law@redhat.com>
23780
23781 PR middle-end/69347
23782 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
23783 record_temporary_equivalences. Rewritten to avoid unnecessary calls
23784 into dominated_by_p.
23785 (cprop_into_successor_phis): Avoid unnecessary tests.
23786
23787 2016-01-22 Richard Henderson <rth@redhat.com>
23788
23789 PR target/69416
23790 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
23791 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
23792
23793 2016-01-22 Michael Matz <matz@suse.de>
23794
23795 * system.h (string, algorithm): Include only conditionally.
23796 (new): Include always under C++.
23797 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
23798 * final.c (toplevel): Ditto.
23799 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
23800 * genconditions.c (write_header): Make gencondmd.c define
23801 INCLUDE_STRING.
23802 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
23803
23804 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
23805 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
23806
23807 2016-01-22 Christian Bruel <christian.bruel@st.com>
23808
23809 PR target/68674
23810 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
23811
23812 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23813
23814 PR target/69403
23815 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
23816 define_insn_and_split. Ensure operands[1] and operands[0] do not
23817 get assigned the same register.
23818
23819 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23820
23821 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
23822
23823 2016-01-22 Christian Bruel <christian.bruel@st.com>
23824
23825 * config/arm/arm-c.c (arm_pragma_target_parse):
23826 Remove warn_builtin_macro_redefined overwrite.
23827
23828 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
23829
23830 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
23831 flag_non_call_exceptions compatibility.
23832
23833 2016-01-22 Jakub Jelinek <jakub@redhat.com>
23834
23835 PR debug/66668
23836 * dwarf2out.c (add_child_die_after): New function.
23837 (dwarf_qual_info_t): New type.
23838 (dwarf_qual_info): New variable.
23839 (qualified_die_p): New function.
23840 (modified_type_die): For -fdebug-types-section, ensure
23841 canonical order of qualifiers. Put qualified DIEs adjacent
23842 to the corresponding non-qualified type DIE and search there
23843 for existing qualified DIEs.
23844
23845 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
23846
23847 * doc/extend.texi (scalar_storage_order type attribute): Document
23848 restriction on type punning and aliasing, and remove future tense.
23849
23850 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
23851
23852 PR target/69252
23853 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
23854 first stage.
23855
23856 2016-01-21 Jeff Law <law@redhat.com>
23857
23858 PR middle-end/69347
23859 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
23860 useless call to record_temporary_equivalences.
23861 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
23862 allocate 10 slots in the bb_path vector and let it grow as needed.
23863 (fsm_find_control_statement_thread_paths): Similarly for the next_path
23864 vector.
23865
23866 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
23867
23868 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
23869 Detangle.
23870 * configure: Regenerate.
23871
23872 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
23873
23874 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
23875 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
23876
23877 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
23878
23879 PR middle-end/66178
23880 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
23881 drop EXPAND_INITIALIZER.
23882 * rtl.h (contains_symbolic_reference_p): Declare.
23883 * rtlanal.c (contains_symbolic_reference_p): New function.
23884 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
23885 a subtraction into a NOT if symbolic constants are involved.
23886
23887 2016-01-21 Anton Blanchard <anton@samba.org>
23888 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23889
23890 PR target/63354
23891 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
23892 #define.
23893 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
23894 function.
23895
23896 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
23897
23898 * config/microblaze/microblaze.c
23899 (get_branch_target): New.
23900 (insert_wic_for_ilb_runout): New.
23901 (insert_wic): New.
23902 (microblaze_machine_dependent_reorg): New.
23903 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
23904 * config/microblaze/microblaze.md
23905 (UNSPEC_IPREFETCH): Define.
23906 (iprefetch): New pattern
23907 * config/microblaze/microblaze.opt
23908 (mxl-prefetch): New flag.
23909
23910 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
23911
23912 * config/microblaze/microblaze.h
23913 (FIXED_REGISTERS): Update in macro.
23914 (CALL_USED_REGISTERS): Update in macro.
23915
23916 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
23917
23918 PR rtl-optimization/68920
23919 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23920 moves.
23921
23922 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
23923
23924 PR rtl-optimization/68990
23925 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23926 pseudo instead of inheritance ones.
23927
23928 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23929 Nick Clifton <nickc@redhat.com>
23930
23931 PR target/69129
23932 PR target/69012
23933 * config/mips/mips.c (mips_compute_frame_info): Initialise
23934 args_size and hard_frame_pointer_offset fields of the frame
23935 structure before calling mips_global_pointer.
23936
23937 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
23938
23939 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23940 label reference.
23941 * configure: Regenerate.
23942
23943 2016-01-21 Richard Biener <rguenther@suse.de>
23944
23945 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23946
23947 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
23948
23949 * config/s390/s390.c (s390_asm_declare_function_size): Add code
23950 to actually emit the .size directive.
23951
23952 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
23953 Jakub Jelinek <jakub@redhat.com>
23954
23955 PR target/69187
23956 PR target/65624
23957 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23958 args array size by one to avoid buffer overflow.
23959
23960 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
23961
23962 * config/s390/s390.md (pool_section_start): Use switch_to_section
23963 to select proper read-only data section instead of hardcoding
23964 .rodata.
23965 (pool_section_end): Use switch_to_section to match the above.
23966
23967 2016-01-21 Richard Biener <rguenther@suse.de>
23968
23969 PR tree-optimization/69378
23970 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23971 (set_ssa_val_to): Use it for dominance checks taking into
23972 account not executable edges.
23973
23974 2016-01-21 Jakub Jelinek <jakub@redhat.com>
23975
23976 PR c++/69355
23977 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23978 for bitsize instead of GET_MODE_PRECISION (mode).
23979
23980 2016-01-20 Martin Sebor <msebor@redhat.com>
23981
23982 PR c/52291
23983 * extend.texi (__sync Builtins): Clarify the semantics of
23984 __sync_fetch_and_OP built-ins on pointers.
23985 (__atomic Builtins): Same.
23986
23987 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
23988 Sebastian Pop <s.pop@samsung.com>
23989
23990 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23991 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23992 (is_valid_rename): Same.
23993 (translate_isl_ast_to_gimple::get_rename): Same.
23994 (translate_isl_ast_to_gimple::rename_all_uses): Same.
23995 (translate_isl_ast_to_gimple::rename_uses): Same.
23996 (get_new_name): Check for close_phi nodes.
23997 (copy_loop_phi_args): Use phi_node_kind.
23998 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23999 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
24000
24001 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24002 Sebastian Pop <s.pop@samsung.com>
24003
24004 Revert commit r229783.
24005 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
24006 Remove use of parameter_rename_map.
24007 (copy_def): Remove.
24008 (copy_internal_parameters): Remove.
24009 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
24010 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
24011 (free_sese_info): Do not free parameter_rename_map.
24012 (set_rename): Do not use parameter_rename_map.
24013 (rename_uses): Update call to set_rename.
24014 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
24015 * sese.h (parameter_rename_map_t): Remove.
24016 (struct sese_info_t): Remove field parameter_rename_map.
24017
24018 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24019 Sebastian Pop <s.pop@samsung.com>
24020
24021 * graphite-isl-ast-to-gimple.c: Fix comment.
24022 * graphite-scop-detection.c (defined_in_loop_p): New.
24023 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24024 names defined in loop.
24025
24026 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24027 Sebastian Pop <s.pop@samsung.com>
24028
24029 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24030 Discard unstructured if-then-else regions.
24031
24032 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24033 Sebastian Pop <s.pop@samsung.com>
24034
24035 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24036 (cleanup_loop_iter_dom): Remove.
24037 (build_loop_iteration_domains): Remove.
24038 (build_scop_context): Remove.
24039 (build_scop_iteration_domain): Remove.
24040 (add_loop_constraints): New.
24041 (build_iteration_domains): New.
24042 (build_poly_scop): Call build_iteration_domains.
24043
24044 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24045 Sebastian Pop <s.pop@samsung.com>
24046
24047 * graphite-scop-detection.c
24048 (scop_detection::harmful_loop_in_region): Free dom and loops.
24049 (scop_detection::loop_body_is_valid_scop): Free bbs.
24050
24051 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24052 Sebastian Pop <s.pop@samsung.com>
24053
24054 * graphite-scop-detection.c (record_loop_in_sese): New.
24055 (gather_bbs::before_dom_children): Call record_loop_in_sese.
24056 (build_scops): Remove call to build_sese_loop_nests.
24057 * sese.c (sese_record_loop): Remove.
24058 (build_sese_loop_nests): Remove.
24059 (new_sese_info): Remove region->loops.
24060 (free_sese_info): Same.
24061 * sese.h (sese_contains_loop): Same.
24062 (build_sese_loop_nests): Remove.
24063 (sese_contains_loop): Remove.
24064
24065 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24066 Sebastian Pop <s.pop@samsung.com>
24067
24068 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24069 loop_is_valid_in_scop.
24070 (scop_detection::harmful_stmt_in_region): Renamed
24071 harmful_loop_in_region.
24072 Call loop_is_valid_in_scop.
24073
24074 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24075 Sebastian Pop <s.pop@samsung.com>
24076
24077 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24078 isl_ast_node_mark.
24079
24080 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24081 Sebastian Pop <s.pop@samsung.com>
24082
24083 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24084 * graphite.h (struct poly_bb): Remove field is_reduction.
24085 (PBB_IS_REDUCTION): Remove.
24086
24087 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
24088 Sebastian Pop <s.pop@samsung.com>
24089
24090 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24091 (add_pdr_constraints): Same.
24092 (scop_get_reads): Same.
24093 (scop_get_must_writes): Same.
24094 (scop_get_may_writes): Same.
24095 (scop_get_original_schedule): Same.
24096 (extend_schedule): Same.
24097 (apply_schedule_on_deps): Same.
24098 (carries_deps): Same.
24099 (compute_deps): Same.
24100 (scop_get_dependences): Same.
24101 * graphite-isl-ast-to-gimple.c
24102 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24103 * graphite-optimize-isl.c (get_schedule_for_band): Same.
24104 (get_schedule_for_band_list): Same.
24105 (get_schedule_map): Same.
24106 (apply_schedule_map_to_scop): Same.
24107 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24108 (build_loop_iteration_domains): Same.
24109 (add_condition_to_pbb): Same.
24110 (add_param_constraints): Same.
24111 (pdr_add_memory_accesses): Same.
24112 (pdr_add_data_dimensions): Same.
24113
24114 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24115
24116 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24117 requirements.
24118
24119 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
24120
24121 * common.opt (feliminate-dwarf2-dups): Replace references to
24122 "DWARF 2" with just "DWARF".
24123 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24124 * doc/extend.texi: Likewise.
24125 * doc/cpp.texi: Likewise.
24126 * doc/invoke.texi: Likewise.
24127 (Option Summary): Add -gdwarf to list of Debugging Options.
24128 (Debugging Options): Document -gdwarf.
24129 * doc/contrib.texi: Spell "DWARF" like that.
24130
24131 2016-01-21 Jakub Jelinek <jakub@redhat.com>
24132
24133 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24134 warning. Fix up formatting.
24135
24136 PR middle-end/67653
24137 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24138 attempt to mark memory input operand addressable and
24139 call prepare_gimple_addressable in that case. Don't adjust
24140 input_location for diagnostics, use error_at instead.
24141
24142 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
24143
24144 * config/rs6000/ppc-auxv.h: New file.
24145 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24146 (cpu_is): Likewise.
24147 (cpu_supports): Likewise.
24148 * config/rs6000/rs6000.c: include "ppc-auxv.h".
24149 (cpu_is_info): New variable.
24150 (cpu_supports_info): Likewise.
24151 (tcb_verification_symbol): Likewise.
24152 (cpu_builtin_p): Likewise.
24153 (cpu_expand_builtin): New function.
24154 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24155 (rs6000_init_builtins): Likewise.
24156 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24157 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24158 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24159 * configure: Regenerate.
24160 * config.in: Likewise.
24161 * doc/extend.texi (PowerPC Built-in Functions): Document
24162 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24163
24164 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
24165
24166 PR target/68609
24167 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24168 domain check.
24169 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24170 for V4SFmode.
24171
24172 2016-01-20 Richard Henderson <rth@redhat.com>
24173
24174 PR bootstrap/69343
24175 PR bootstrap/69339
24176 PR tree-opt/68964
24177 Revert:
24178 * tree.c (tm_define_builtin): New.
24179 (find_tm_vector_type): New.
24180 (build_tm_vector_builtins): New.
24181 (build_common_builtin_nodes): Call it.
24182
24183 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
24184
24185 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24186 (arm_fp_ok): Likewise.
24187 (arm_fp): Likewise.
24188 (arm_crypto): Likewise.
24189
24190 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24191 Richard Biener <rguenther@suse.de>
24192
24193 PR tree-optimization/69328
24194 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24195 vectors have same number of elements.
24196 (vectorizable_condition): Fix masked version recognition.
24197
24198 2016-01-20 Richard Biener <rguenther@suse.de>
24199
24200 PR tree-optimization/69345
24201 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24202 (VN_INFO_PTR_INFO): Likewise.
24203 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24204 info when it is equal between non-dominating SSA names.
24205 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24206 Make sure to look at original SSA infos.
24207
24208 2016-01-20 Jeff Law <law@redhat.com>
24209
24210 PR target/25114
24211 * config/m68k/predicates.md (pow2_m1_operand): New predicate
24212 extracted from ...
24213 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24214 (pc_or_label_operand): New predicate.
24215 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24216 tests for small integers that are 2^n - 1.
24217
24218 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
24219
24220 * doc/invoke.texi (Options Summary): Add '.' after @xref.
24221
24222 2016-01-19 Jeff Law <law@redhat.com>
24223
24224 PR middle-end/69347
24225 * tree-ssa-threadbackwards.c
24226 (fsm_find_control_statement_thread_paths): Do not try to lookup
24227 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24228
24229 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24230
24231 * doc/lto.texi: Remove text that says only Gold has linker plugin
24232 support.
24233
24234 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
24235
24236 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24237 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24238 the DIE accordingly.
24239 (modified_type_die): Add REVERSE parameter and pass it recursively,
24240 as well as to base_type_die. Adjust presence check accordingly.
24241 (base_type_for_mode): Adjust call to modified_type_die.
24242 (add_type_attribute): Add REVERSE parameter and pass it to
24243 modified_type_die.
24244 (generic_parameter_die): Adjust call to add_type_attribute.
24245 (add_scalar_info): Likewise.
24246 (add_subscript_info): Likewise.
24247 (gen_array_type_die): Likewise.
24248 (gen_descr_array_type_die): Likewise.
24249 (gen_entry_point_die): Likewise.
24250 (gen_enumeration_type_die): Likewise.
24251 (gen_formal_parameter_die): Likewise.
24252 (gen_subprogram_die): Likewise.
24253 (gen_variable_die ): Likewise.
24254 (gen_const_die): Likewise.
24255 (gen_field_die): Likewise.
24256 (gen_pointer_type_die): Likewise.
24257 (gen_reference_type_die): Likewise.
24258 (gen_ptr_to_mbr_type_die): Likewise.
24259 (gen_inheritance_die): Likewise.
24260 (gen_subroutine_type_die): Likewise.
24261 (gen_typedef_die): Likewise.
24262 (force_type_die): Adjust call to modified_type_die.
24263
24264 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
24265
24266 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24267 flow throughout the file. Fix broken link to Objective-C 2.0
24268 documentation.
24269 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24270 errors.
24271
24272 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24273
24274 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24275
24276 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24277
24278 PR ipa/66223
24279 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24280 (maybe_record_node): Record cxa_pure_virtual as the only possible
24281 target if there are not ohter candidates.
24282 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24283
24284 2016-01-19 Richard Biener <rguenther@suse.de>
24285
24286 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24287 (get_memory_order): Likewise.
24288
24289 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
24290
24291 * tree-vect-stmts.c (vectorizable_store): Check
24292 rhs vectype.
24293
24294 2016-01-19 David Malcolm <dmalcolm@redhat.com>
24295
24296 PR jit/68446
24297 * gcc.c (driver::decode_argv): Add call to
24298 init_opts_obstack before init_options_struct.
24299 * opts.c (init_opts_obstack): Remove idempotency.
24300 (init_options_struct): Replace call to init_opts_obstack
24301 with a gcc_assert to verify that it has already been called.
24302 * toplev.c (toplev::main): Add call to init_opts_obstack before
24303 calls to init_options_struct.
24304 (toplev::finalize): Move cleanup of opts_obstack next to
24305 cleanup of save_decoded_options, clearing the latter, and
24306 save_decoded_options_count.
24307
24308 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24309
24310 PR target/69135
24311 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24312 attribute to unconditional. Remove %? from output template.
24313
24314 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24315 Jiong Wang <jiong.wang@arm.com>
24316
24317 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24318 generated from different expand order.
24319
24320 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24321
24322 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24323 Add support for CCMP costing.
24324
24325 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24326
24327 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24328 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24329 (fccmpe<mode>): Likewise.
24330 (fcmp): Rename to fcmp and globalize pattern.
24331 (fcmpe): Likewise.
24332 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24333 (aarch64_gen_ccmp_next): Add FP support.
24334
24335 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
24336
24337 * target.def (gen_ccmp_first): Update documentation.
24338 (gen_ccmp_next): Likewise.
24339 * doc/tm.texi (gen_ccmp_first): Update documentation.
24340 (gen_ccmp_next): Likewise.
24341 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24342 expand_ccmp_expr_1. Improve comments.
24343 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24344 (ccmp_ior<mode>): Remove pattern.
24345 (cmp<mode>): Remove expand.
24346 (cmp): Globalize pattern.
24347 (cstorecc4): Use cc_register.
24348 (mov<mode>cc): Remove ccmp_cc_register check.
24349 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24350 Simplify after removal of CC_DNE/* modes.
24351 (aarch64_ccmp_mode_to_code): Remove.
24352 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
24353 In 'k' case use integer as condition.
24354 (aarch64_nzcv_codes): Remove inverted cases.
24355 (aarch64_code_to_ccmode): Remove.
24356 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
24357 comparison with CC register to be used in folowing CCMP/branch/CSEL.
24358 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24359 pattern. Return the comparison with CC register. Invert conditions
24360 when bitcode is OR.
24361 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24362 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24363
24364 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24365
24366 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24367 instrumented_version.
24368
24369 2016-01-19 Richard Biener <rguenther@suse.de>
24370
24371 PR tree-optimization/69336
24372 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24373 handled components with get_ref_base_and_extent.
24374 (equal_mem_array_ref_p): Adjust.
24375
24376 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24377
24378 PR debug/65779
24379 * shrink-wrap.c: Include valtrack.h.
24380 (move_insn_for_shrink_wrap): Add DEBUG argument. If
24381 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24382 in between insn and where it will be moved to. Call
24383 dead_debug_insert_temp.
24384 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
24385 first and dead_debug_local_finish at the end.
24386 For uses and defs bitmap, handle all regs in between REGNO and
24387 END_REGNO, not just the first one.
24388
24389 2016-01-19 Richard Biener <rguenther@suse.de>
24390
24391 PR tree-optimization/69352
24392 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24393 (equal_mem_array_ref_p): Constrain size and max size properly.
24394 Compare the reverse flag.
24395
24396 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
24397
24398 * ira.c (ira): Update regstat data if we deleted insns.
24399
24400 2016-01-19 Jakub Jelinek <jakub@redhat.com>
24401
24402 PR rtl-optimization/68955
24403 PR rtl-optimization/64557
24404 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24405 here. Fix up formatting.
24406 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24407
24408 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24409
24410 PR lto/69133
24411 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24412 assume that the node has body.
24413 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24414 check.
24415
24416 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24417
24418 * lto-streamer-out.c (lto_output): Do not stream instrumentation
24419 thunks.
24420
24421 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
24422
24423 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24424 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24425
24426 2016-01-19 Martin Jambor <mjambor@suse.cz>
24427 Martin Liska <mliska@suse.cz>
24428 Michael Matz <matz@suse.de>
24429
24430 * Makefile.in (OBJS): Add new source files.
24431 (GTFILES): Add hsa.c.
24432 * common.opt (disable_hsa): New variable.
24433 (-Whsa): New warning.
24434 * config.in (ENABLE_HSA): New.
24435 * configure.ac: Treat hsa differently from other accelerators.
24436 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24437 $enable_offloading.
24438 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24439 * doc/install.texi (Configuration): Document --with-hsa-runtime,
24440 --with-hsa-runtime-include, --with-hsa-runtime-lib and
24441 --with-hsa-kmt-lib.
24442 * doc/invoke.texi (-Whsa): Document.
24443 (hsa-gen-debug-stores): Likewise.
24444 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24445 to invoke offload compiler for hsa acclerator.
24446 * opts.c (common_handle_option): Determine whether HSA offloading
24447 should be performed.
24448 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24449 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24450 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24451 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24452 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24453 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24454 GF_OMP_FOR_KIND_GRID_LOOP.
24455 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24456 (pp_gimple_stmt_1): Likewise.
24457 * gimple-walk.c (walk_gimple_stmt): Likewise.
24458 * gimple.c (gimple_build_omp_grid_body): New function.
24459 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24460 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24461 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24462 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24463 GF_OMP_TEAMS_GRID_PHONY.
24464 (gimple_statement_omp_single_layout): Updated comments.
24465 (gimple_build_omp_grid_body): New function.
24466 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24467 (gimple_omp_for_grid_phony): New function.
24468 (gimple_omp_for_set_grid_phony): Likewise.
24469 (gimple_omp_parallel_grid_phony): Likewise.
24470 (gimple_omp_parallel_set_grid_phony): Likewise.
24471 (gimple_omp_teams_grid_phony): Likewise.
24472 (gimple_omp_teams_set_grid_phony): Likewise.
24473 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24474 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24475 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24476 (BUILT_IN_GOMP_TARGET): Updated type.
24477 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24478 (adjust_for_condition): New function.
24479 (get_omp_for_step_from_incr): Likewise.
24480 (extract_omp_for_data): Moved parts to adjust_for_condition and
24481 get_omp_for_step_from_incr.
24482 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24483 (fixup_child_record_type): Bail out if receiver_decl is NULL.
24484 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24485 (scan_omp_parallel): Do not create child functions for phony
24486 constructs.
24487 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24488 (scan_omp_1_op): Checking assert we are not remapping to
24489 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
24490 (parallel_needs_hsa_kernel_p): New function.
24491 (expand_parallel_call): Register apprpriate parallel child
24492 functions as HSA kernels.
24493 (grid_launch_attributes_trees): New type.
24494 (grid_attr_trees): New variable.
24495 (grid_create_kernel_launch_attr_types): New function.
24496 (grid_insert_store_range_dim): Likewise.
24497 (grid_get_kernel_launch_attributes): Likewise.
24498 (get_target_argument_identifier_1): Likewise.
24499 (get_target_argument_identifier): Likewise.
24500 (get_target_argument_value): Likewise.
24501 (push_target_argument_according_to_value): Likewise.
24502 (get_target_arguments): Likewise.
24503 (expand_omp_target): Call get_target_arguments instead of looking
24504 up for teams and thread limit.
24505 (grid_expand_omp_for_loop): New function.
24506 (grid_arg_decl_map): New type.
24507 (grid_remap_kernel_arg_accesses): New function.
24508 (grid_expand_target_kernel_body): New function.
24509 (expand_omp): Call it.
24510 (lower_omp_for): Do not emit phony constructs.
24511 (lower_omp_taskreg): Do not emit phony constructs but create for them
24512 a temporary variable receiver_decl.
24513 (lower_omp_taskreg): Do not emit phony constructs.
24514 (lower_omp_teams): Likewise.
24515 (lower_omp_grid_body): New function.
24516 (lower_omp_1): Call it.
24517 (grid_reg_assignment_to_local_var_p): New function.
24518 (grid_seq_only_contains_local_assignments): Likewise.
24519 (grid_find_single_omp_among_assignments_1): Likewise.
24520 (grid_find_single_omp_among_assignments): Likewise.
24521 (grid_find_ungridifiable_statement): Likewise.
24522 (grid_target_follows_gridifiable_pattern): Likewise.
24523 (grid_remap_prebody_decls): Likewise.
24524 (grid_copy_leading_local_assignments): Likewise.
24525 (grid_process_kernel_body_copy): Likewise.
24526 (grid_attempt_target_gridification): Likewise.
24527 (grid_gridify_all_targets_stmt): Likewise.
24528 (grid_gridify_all_targets): Likewise.
24529 (execute_lower_omp): Call grid_gridify_all_targets.
24530 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24531 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24532 (tree_omp_clause): Added union field dimension.
24533 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24534 * tree.c (omp_clause_num_ops): Added number of arguments of
24535 OMP_CLAUSE__GRIDDIM_.
24536 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24537 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24538 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24539 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24540 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24541 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24542 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24543 * tree-pass.h (make_pass_gen_hsail): Declare.
24544 (make_pass_ipa_hsa): Likewise.
24545 * ipa-hsa.c: New file.
24546 * lto-section-in.c (lto_section_name): Add hsa section name.
24547 * lto-streamer.h (lto_section_type): Add hsa section.
24548 * timevar.def (TV_IPA_HSA): New.
24549 * hsa-brig-format.h: New file.
24550 * hsa-brig.c: New file.
24551 * hsa-dump.c: Likewise.
24552 * hsa-gen.c: Likewise.
24553 * hsa.c: Likewise.
24554 * hsa.h: Likewise.
24555 * toplev.c (compile_file): Call hsa_output_brig.
24556 * hsa-regalloc.c: New file.
24557
24558 2016-01-18 Jeff Law <law@redhat.com>
24559
24560 PR tree-optimization/69320
24561 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24562 ranged object, do nothing if the RHS constant is not [0..1].
24563 (optimize_stmt): Comparing a boolean ranged object against a
24564 constant outside [0..1] results in a compile-time constant.
24565
24566 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24567 test.
24568
24569 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
24570
24571 * doc/invoke.texi (Invoking GCC): Add new section to menu.
24572 (Option Summary): Update to reflect new section and moved options.
24573 (C++ Dialect Options): Move -fstats to new section.
24574 (Debugging Options): Move all dump, statistics, and other GCC
24575 developer options to new section. Rewrite section introduction
24576 and re-order remaining options to put the more basic ones first.
24577 (Optimization Options): Move -fira-verbose and -flto-report* to
24578 new section.
24579 (Developer Options): New section incorporating moved options.
24580 * doc/cppopts.texi (-dM): Update cross-reference.
24581
24582 2016-01-18 Richard Henderson <rth@redhat.com>
24583
24584 PR target/69176
24585 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24586 operands to pseudo only if CSE is expected. Split long immediate
24587 operands only after reload, and for the stack pointer.
24588 (*add<GPI>3_pluslong): Remove.
24589 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24590 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
24591 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24592 (*add<GPI>3 peepholes): New.
24593 (*add<GPI>3 splitters): New.
24594 * config/aarch64/constraints.md (Upl): New.
24595 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
24596
24597 2016-01-18 Richard Biener <rguenther@suse.de>
24598
24599 PR tree-optimization/69297
24600 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
24601 stmt at most once.
24602 (vect_bb_vectorization_profitable_p): Clear visited flag again.
24603
24604 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
24605
24606 PR middle-end/68542
24607 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
24608 of mixind vector and scalar types.
24609 (fold_relational_const): Add handling of vector
24610 comparison with boolean result.
24611 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
24612 comparison of vector operands with boolean result for EQ/NE only.
24613 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
24614 (verify_gimple_cond): Likewise.
24615 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
24616 valid type of VAL.
24617
24618 2016-01-18 Joseph Myers <joseph@codesourcery.com>
24619
24620 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
24621 !TARGET_OCTEON.
24622
24623 2016-01-18 Richard Biener <rguenther@suse.de>
24624
24625 PR middle-end/69308
24626 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
24627
24628 2016-01-18 Tom de Vries <tom@codesourcery.com>
24629
24630 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
24631
24632 2016-01-18 Tom de Vries <tom@codesourcery.com>
24633
24634 * omp-low.c (set_oacc_fn_attrib): Make extern.
24635 * omp-low.h (set_oacc_fn_attrib): Declare.
24636 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
24637 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
24638 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
24639 Add and handle function parameter oacc_kernels_p.
24640 (find_reduc_addr, get_omp_data_i_param): New function.
24641 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
24642 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
24643 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
24644 Calculate dominance info. Skip loops that are not in a kernels region
24645 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
24646 (pass_parallelize_loops::execute): Call parallelize_loops with
24647 oacc_kernels_p argument.
24648 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
24649 New member function.
24650 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
24651 * passes.def: Add argument to pass_parallelize_loops instantation.
24652
24653 2016-01-18 Tom de Vries <tom@codesourcery.com>
24654
24655 * tree-parloops.c (pass_parallelize_loops::execute): Allow
24656 pass_parallelize_loops to be run outside the loop pipeline.
24657
24658 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24659
24660 * tree-scalar-evolution.c (follow_copies_to_constant): New.
24661 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
24662
24663 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24664
24665 PR target/63679
24666 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
24667 using get_ref_base_and_extent.
24668 (equal_mem_array_ref_p): New.
24669 (hashable_expr_equal_p): Add call to previous.
24670
24671 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
24672
24673 PR target/63679
24674 * tree-sra.c (disqualified_constants, constant_decl_p): New.
24675 (sra_initialize): Allocate disqualified_constants.
24676 (sra_deinitialize): Free disqualified_constants.
24677 (disqualify_candidate): Update disqualified_constants when appropriate.
24678 (create_access): Scan for constant-pool entries as we go along.
24679 (scalarizable_type_p): Add check against type_contains_placeholder_p.
24680 (maybe_add_sra_candidate): Allow constant-pool entries.
24681 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
24682 (initialize_constant_pool_replacements): New.
24683 (sra_modify_assign): Avoid mangling assignments created by previous,
24684 and don't generate writes into constant pool.
24685 (sra_modify_function_body): Call initialize_constant_pool_replacements.
24686
24687 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24688
24689 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
24690 andnot instruction.
24691 (scalar_chain::convert_op): Likewise.
24692 * config/i386/i386.md (*andndi3_doubleword): New.
24693
24694 2016-01-18 Richard Biener <rguenther@suse.de>
24695
24696 PR tree-optimization/69170
24697 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
24698 building a vector from scalar results of a pattern stmt.
24699
24700 2016-01-18 Jakub Jelinek <jakub@redhat.com>
24701
24702 * haifa-sched.c (autopref_multipass_init): Work around
24703 -Wmaybe-uninitialized warning.
24704
24705 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
24706
24707 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
24708 against the constant 0.
24709
24710 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24711
24712 PR tree-optimization/68799
24713 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
24714 look up phi candidates in the statement-candidate map.
24715 (phi_add_costs): Likewise.
24716 (record_phi_increments): Likewise.
24717 (phi_incr_cost): Likewise.
24718 (ncd_with_phi): Likewise.
24719 (all_phi_incrs_profitable): Likewise.
24720
24721 2016-01-17 Jakub Jelinek <jakub@redhat.com>
24722
24723 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
24724 -Wmaybe-uninitialized warning.
24725
24726 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
24727
24728 * doc/invoke.texi (Invoking GCC): Add new section to menu.
24729 (Option Summary): Update to reflect new section and moved options.
24730 (C++ Dialect Options): Move -fvtable-verify and related options.
24731 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
24732 and profiling-related options.
24733 (Optimization Options): Move profile generation options and
24734 -fstack-protector and related options.
24735 (Instrumentation Options): New section incorporating moved options.
24736 (Code Generation Options): Move -finstrument-functions and
24737 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
24738
24739 2016-01-16 Tom de Vries <tom@codesourcery.com>
24740
24741 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
24742
24743 2016-01-16 Tom de Vries <tom@codesourcery.com>
24744
24745 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
24746
24747 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
24748
24749 * hash-table.h (hash_table::empty): Turn into an inline wrapper
24750 that checks whether the table is already empty. Rename the
24751 original implementation to...
24752 (hash_table::empty_slot): ...this new private function.
24753
24754 2016-01-15 David Malcolm <dmalcolm@redhat.com>
24755
24756 PR diagnostic/68899
24757 * diagnostic-show-locus.c (layout::print_source_line): Move x
24758 offset of line until after call to
24759 get_line_width_without_trailing_whitespace.
24760
24761 2016-01-15 Jeff Law <law@redhat.com>
24762
24763 PR tree-optimization/69270
24764 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
24765 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
24766 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
24767 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
24768 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24769 ssa_name_has_boolean_range and constant_boolean_node.
24770
24771 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
24772
24773 PR rtl-optimization/69030
24774 * lra-spills.c (remove_pseudos): Check nrefs and make the function
24775 returning bool.
24776 (spill_pseudos): Delete debug insn for dead pseudo.
24777 (lra_spill): Initiate spill_hard_reg and slots memory separately.
24778
24779 2016-01-15 Jiong Wang <jiong.wang@arm.com>
24780
24781 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
24782 New.
24783 (TYPES_UNOPUS): Likewise.
24784 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
24785 builtin type, from UNOP to UNOPUS.
24786 (lbtruncuv4sf): Likewise.
24787 (lbtruncuv2df): Likewise.
24788 (lrounduv2sf): Likewise.
24789 (lrounduv4sf): Likewise.
24790 (lrounduv2df): Likewise.
24791 (lroundusf): Likewise.
24792 (lroundusf): Likewise.
24793 (lceiluv2sf): Likewise.
24794 (lceiluv4sf): Likewise.
24795 (lceiluv2df): Likewise.
24796 (lceilusf): Likewise.
24797 (lceiludf): Likewise.
24798 (lflooruv2sf): Likewise.
24799 (lflooruv4sf): Likewise.
24800 (lflooruv2df): Likewise.
24801 (lfloorusf): Likewise.
24802 (lfloorudf): Likewise.
24803 (lfrintnuv2sf): Likewise.
24804 (lfrintnuv4sf): Likewise.
24805 (lfrintnuv2df): Likewise.
24806 (lfrintnusf): Likewise.
24807 (lfrintnudf): Likewise.
24808 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
24809 conversion.
24810 (vcvtq_u32_f32): Likewise.
24811 (vcvtq_u64_f64): Likewise.
24812 (vcvta_u32_f32): Likewise.
24813 (vcvtaq_u32_f32): Likewise.
24814 (vcvtaq_u64_f64): Likewise.
24815 (vcvtm_u32_f32): Likewise.
24816 (vcvtmq_u32_f32): Likewise.
24817 (vcvtmq_u64_f64): Likewise.
24818 (vcvtn_u32_f32): Likwise.
24819 (vcvtnq_u32_f32): Likewise.
24820 (vcvtnq_u64_f64): Likewise.
24821 (vcvtp_u32_f32): Likewise.
24822 (vcvtpq_u32_f32): Likewise.
24823 (vcvtpq_u64_f64): Likewise.
24824 (vcvtmd_u64_f64): Likewise.
24825 (vcvtms_u32_f32): Likewise.
24826 (vcvtad_u64_f64): Likewise.
24827 (vcvtas_u32_f32): Likewise.
24828 (vcvtnd_u64_f64): Likewise.
24829 (vcvtns_u32_f32): Likewise.
24830 (vcvtpd_u64_f64): Likewise.
24831 (vcvtps_u32_f32): Likewise.
24832
24833 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24834
24835 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
24836 CSEL of zero_extended registers.
24837
24838 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24839
24840 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24841 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
24842
24843 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24844
24845 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
24846 false when argument string is not found in the attributes table
24847 at all.
24848
24849 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
24850
24851 PR target/68609
24852 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
24853 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
24854 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
24855 precision estimate.
24856
24857 2016-01-15 Richard Biener <rguenther@suse.de>
24858
24859 PR tree-optimization/66856
24860 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
24861 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
24862 (vect_create_new_slp_node): Increment stmt reference count.
24863 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
24864 an SLP tree before swapping operands.
24865 (vect_build_slp_tree): Likewise.
24866 (destroy_bb_vec_info): Free stmt info after SLP instances.
24867 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
24868 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
24869 (STMT_VINFO_NUM_SLP_USES): New macro.
24870
24871 2016-01-15 Richard Biener <rguenther@suse.de>
24872
24873 PR debug/69137
24874 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
24875 (add_linkage_name): ... here.
24876 (gen_typedef_die): Use add_linkage_name_raw instead of
24877 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
24878 if necessary.
24879
24880 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
24881
24882 * gimplify.c (oacc_default_clause): Decode reference and pointer
24883 types for both kernels and parallel regions.
24884
24885 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
24886
24887 PR middle-end/69246
24888 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
24889
24890 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24891
24892 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
24893 (convert_scalars_to_vector): Likewise.
24894
24895 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
24896
24897 * doc/extend.texi (Type Traits): Fix grammar.
24898
24899 2016-01-15 Martin Jambor <mjambor@suse.cz>
24900
24901 * tree-inline.c (remap_decl): Use existing dclarations if
24902 remapping a type and prevent_decl_creation_for_types.
24903 (replace_locals_stmt): Do an initial remapping of non-VLA typed
24904 decls first. Do real remapping with
24905 prevent_decl_creation_for_types set.
24906 * tree-inline.h (copy_body_data): New field
24907 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
24908 padding.
24909
24910 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
24911
24912 * config/s390/s390.opt (mmvcle): More verbose help text.
24913
24914 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
24915
24916 * config/s390/s390.opt: Add period to -mzvector option text.
24917
24918 2016-01-15 Richard Biener <rguenther@suse.de>
24919
24920 PR tree-optimization/68961
24921 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24922 of invariants in stores again.
24923
24924 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
24925
24926 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24927
24928 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24929
24930 * config/i386/i386.c (ix86_expand_branch): Don't split
24931 DI mode xor instruction to SI mode.
24932
24933 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
24934
24935 PR ipa/68148
24936 * ipa-icf.c (sem_function::merge): Virtual functions may become
24937 reachable even if they address is not taken and there are no
24938 idrect calls.
24939
24940 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
24941
24942 * lto-streamer-out.c (subtract_estimated_size): New function.
24943 (get_symbol_initial_value): Use it.
24944
24945 2016-01-15 Christian Bruel <christian.bruel@st.com>
24946
24947 PR target/65837
24948 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24949 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24950 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24951 use add_builtin_function_ext_scope instead of add_builtin_function.
24952 (neon_set_p, neon_crypto_set_p): Remove.
24953 (arm_init_builtins): Always call arm_init_neon_builtins and
24954 arm_init_crypto_builtins.
24955 (arm_expand_builtin): Check that builtins are allowed for the arch.
24956 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24957 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24958 arm_init_neon_builtins call.
24959
24960 2016-01-15 Richard Biener <rguenther@suse.de>
24961
24962 PR tree-optimization/69117
24963 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24964 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24965 of the leader conservatively.
24966 (free_scc_vn): Restore original SSA name infos.
24967
24968 2016-01-14 Jeff Law <law@redhat.com>
24969
24970 PR tree-optimization/69270
24971 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24972 single bit of precision, verify it's also unsigned.
24973 (record_edge_info): Use constant_boolean_node rather than fold_convert
24974 to convert boolean_true/boolean_false to the right type.
24975
24976 2016-01-14 Richard Henderson <rth@redhat.com>
24977
24978 PR rtl-opt/69014
24979 * loop-doloop.c (record_reg_sets): New.
24980 (doloop_optimize): Reject the transform if the sequence
24981 clobbers registers live at the end of the loop block.
24982 (doloop_optimize_loops): Enable df_live if needed.
24983
24984 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24985
24986 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24987 * config/rs6000/rs6000.c: Likewise.
24988 * config/rs6000/rs6000.h: Likewise.
24989 * config/rs6000/rs6000.md: Likewise.
24990 * doc/extend.texi: Likewsie.
24991
24992 2016-01-14 Jeff Law <law@redhat.com>
24993
24994 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24995 typo.
24996
24997 2016-01-14 Richard Henderson <rth@redhat.com>
24998
24999 PR c/69272
25000 PR tree-opt/68964
25001 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
25002 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
25003 instead of builtin_decl_declared_p to test for declaration.
25004
25005 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
25006
25007 * doc/loop.texi (Loop Analysis and Representation): Document
25008 loop_depth function.
25009
25010 2016-01-14 Tom de Vries <tom@codesourcery.com>
25011
25012 PR tree-optimization/68773
25013 * omp-low.c (expand_omp_target): Don't set force_output.
25014 * varpool.c (varpool_node::get_create): Same.
25015 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
25016 offload_funcs with force_output.
25017
25018 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25019
25020 PR debug/69244
25021 * lra-eliminations.c (move_plus_up): Don't change anything if either
25022 the outer or inner subreg mode is not MODE_INT.
25023 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25024 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25025
25026 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25027
25028 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25029 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25030 reduc_uplus_@var{m}): Remove.
25031 * expr.c (expand_expr_real_2): Remove expansion path for
25032 reduc_[us](min|max|plus) optabs.
25033 * optabs-tree.c (scalar_reduc_to_vector): Remove.
25034 * optabs-tree.h (scalar_reduc_to_vector): Remove.
25035 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25036 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25037 * tree-vect-loop.c (vectorizable_reduction): Remove test for
25038 reduc_[us](min|max|plus) optabs.
25039
25040 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
25041
25042 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25043 (reduc_plus_scal_v2sf): New.
25044 (reduc_smax_v2sf): Rename to...
25045 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25046 (reduc_smin_v2sf): Rename to...
25047 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25048
25049 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
25050
25051 * alias.c (compare_base_symbol_refs): New function.
25052 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25053 it.
25054
25055 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25056
25057 PR middle-end/68146
25058 PR tree-optimization/69155
25059 * tree-complex.c: Include cfganal.h.
25060 (phis_to_revisit): New variable.
25061 (extract_component): Add phiarg_p argument. Assert that returned
25062 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25063 (update_phi_components): Partly rewrite to use loop over real/imag
25064 components instead of code duplication. If extract_component returns
25065 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25066 create_tmp_reg into the PHI node instead, and mention the phi triplet
25067 in phis_to_revisit.
25068 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
25069 in phis_to_revisit at the end.
25070
25071 2016-01-14 Richard Biener <rguenther@suse.de>
25072
25073 PR tree-optimization/68060
25074 * tree-vect-loop.c (vect_is_simple_reduction): Check the
25075 outer loop reduction is only used in the inner loop before
25076 detecting a double reduction.
25077
25078 2016-01-14 Jakub Jelinek <jakub@redhat.com>
25079
25080 PR target/68269
25081 * combine.c (expand_field_assignment): Punt if compute_mode is
25082 unsupported scalar mode.
25083
25084 2016-01-14 Richard Biener <rguenther@suse.de>
25085
25086 PR tree-optimization/66856
25087 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25088 SLP node only if it built successfully.
25089 (vect_analyze_slp_instance): Adjust.
25090
25091 2016-01-14 Jeff Law <law@redhat.com>
25092
25093 PR tree-optimization/69270
25094 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25095 (record_edge_info): Use it. Convert boolean_{true,false}_node
25096 to the type of op0.
25097
25098 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
25099
25100 PR ipa/66487
25101 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25102 use block_ultimate_origin
25103 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25104
25105 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25106
25107 * doc/invoke.texi (Submodel Options): Rename section to
25108 "Machine-Dependent Options" to better reflect its content.
25109 Rewrite introductory text to remove archaic CPU names.
25110 Update references.
25111
25112 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
25113
25114 * doc/invoke.texi (Code Gen Options): Move section up in file,
25115 before target-specific options. Update menu and option summary
25116 to reflect the new section ordering.
25117
25118 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25119
25120 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25121 (C++ Dialect Options): Add cross-reference to -std option.
25122 * doc/standards.texi (C++ Language): Document C++14 support.
25123
25124 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25125
25126 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25127 for pack/unpack functions for __ibm128.
25128 (PACK_IF): Likewise.
25129 (UNPACK_IF): Likewise.
25130
25131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25132 support for __ibm128 pack/unpack functions.
25133 (rs6000_invalid_builtin): Likewise.
25134 (rs6000_init_builtins): Likewise.
25135 (rs6000_opt_masks): Likewise.
25136
25137 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25138 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25139 functions
25140 (RS6000_BTM_COMMON): Likewise.
25141
25142 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25143 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25144 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25145 128-bit floating point. Add support for the double values to be
25146 in Altivec registers for TF/IF packing and unpacking, but restrict
25147 TD packing sub-fields to be FPR registers. Don't allow overlapped
25148 register support for packing. Allow pack inputs to be memory
25149 locations. Don't build generator functions for unpack<mode>_dm
25150 and unpack<mode>_nodm.
25151 (unpack<mode>_dm): Likewise.
25152 (unpack<mode>_nodm): Likewise.
25153 (pack<mode>): Likewise.
25154
25155 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25156 built-in functions to pack/unpack explicit __ibm128 values.
25157 (__builtin_unpack_ibm128): Likewise.
25158
25159 * doc/extend.texi (PowerPC Built-in Functions): Document
25160 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25161
25162 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
25163
25164 PR c/66208
25165 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25166 Add new arg loc and pass it down as context.
25167 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25168 to the location to use for the warning.
25169 (check_function_arguments): New arg loc. All callers changed. Pass
25170 it to check_function_nonnull.
25171 * c-common.h (check_function_arguments): Adjust declaration.
25172
25173 2016-01-13 Jakub Jelinek <jakub@redhat.com>
25174
25175 PR tree-optimization/69156
25176 * gimple.c (validate_type): Removed.
25177 (gimple_builtin_call_types_compatible_p): Use
25178 useless_type_conversion_p instead of validate_type.
25179 * value-prof.c (gimple_stringop_fixed_value): Fold
25180 icall_size to correct type.
25181
25182 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
25183
25184 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25185 effects.
25186
25187 2016-01-13 Richard Henderson <rth@redhat.com>
25188
25189 PR tree-opt/68964
25190 * target.def (builtin_tm_load, builtin_tm_store): Remove.
25191 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25192 (ix86_builtin_tm_store): Remove.
25193 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25194 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25195 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25196 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25197 * doc/tm.texi: Rebuild.
25198
25199 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25200 (BUILT_IN_TM_MEMCPY_RTWN): New.
25201 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25202 fallback from vector to integer helpers.
25203 (build_tm_load): Handle vector types directly, instead of
25204 via target hook.
25205 (build_tm_store): Likewise.
25206 (expand_assign_tm): Prepare for register types not handled by
25207 the above. Copy them to memory and use memcpy.
25208 * tree.c (tm_define_builtin): New.
25209 (find_tm_vector_type): New.
25210 (build_tm_vector_builtins): New.
25211 (build_common_builtin_nodes): Call it.
25212
25213 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
25214
25215 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25216 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
25217
25218 2016-01-13 Tom de Vries <tom@codesourcery.com>
25219
25220 PR tree-optimization/69169
25221 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25222 handled_struct_type param.
25223 (create_variable_info_for, intra_create_variable_infos): Call
25224 create_variable_info_for_1 with extra arg.
25225
25226 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
25227
25228 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25229 and "armv8.1-a+crc" entries.
25230
25231 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
25232
25233 PR target/69228
25234 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25235 Change first operand predicate from register_or_constm1_operand
25236 to register_operand.
25237 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25238 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25239 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25240 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25241 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25242 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25243 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25244 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25245 comparison with constm1_rtx from vec_prefetch_gen part.
25246
25247 2016-01-13 Richard Biener <rguenther@suse.de>
25248
25249 PR tree-optimization/69013
25250 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25251 Exchange assert for a test.
25252
25253 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25254
25255 PR target/69247
25256 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25257
25258 2016-01-13 Richard Biener <rguenther@suse.de>
25259
25260 PR tree-optimization/69242
25261 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25262 assert with a check.
25263
25264 2016-01-13 Richard Biener <rguenther@suse.de>
25265
25266 PR tree-optimization/69186
25267 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25268 Properly guard vect_update_misalignment_for_peel call.
25269
25270 2016-01-12 Jeff Law <law@redhat.com>
25271
25272 PR tree-optimization/pr67755
25273 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25274 "need_profile_correction".
25275 (thread_block_1): Initialize new field to false by default. If we
25276 have multiple thread paths through a common joiner to different
25277 final targets, then set new field to true.
25278 (compute_path_counts): Only do count adjustment when it's really
25279 needed.
25280
25281 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25282
25283 * doc/invoke.texi (Spec Files): Move section down in file, past
25284 all command-line option descriptions.
25285
25286 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25287
25288 PR middle-end/54809
25289 * doc/gty.texi: Remove documentation of mark_hook.
25290 * gengtype.c (struct write_types_data): Remove code to support
25291 mark_hook attribute.
25292 (walk_type): Likewise.
25293 (write_func_for_structure): Likewise.
25294
25295 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25296
25297 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25298 Directory Options, and -specs= to Overall Options.
25299 (Overall Options): Adjust similarly. Reorder to group related
25300 options together. Make -specs= cross-reference the spec file details.
25301 (Directory Options): Adjust similarly.
25302
25303 2016-01-12 Jeff Law <law@redhat.com>
25304
25305 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25306
25307 2016-01-12 Olivier Hainque <hainque@adacore.com>
25308
25309 * gcc.c (spec_undefvar_allowed): New global.
25310 (process_command): Set to true when running for --version or --help,
25311 alone or together.
25312 (getenv_spec_function): When the variable is not defined, use the
25313 variable name as the variable value if we're allowed not to issue
25314 a fatal error.
25315
25316 2016-01-12 Bin Cheng <bin.cheng@arm.com>
25317
25318 PR tree-optimization/68911
25319 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25320 information computed for expression "init + nit * step".
25321
25322 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
25323
25324 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
25325 about name of GCC executable. Remove deleted node from menu.
25326 (Directory Options) <-B>: Remove cross-reference to deleted node.
25327 (Target Options): Delete section.
25328
25329 2016-01-12 Christian Bruel <christian.bruel@st.com>
25330
25331 PR target/69180
25332 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25333 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25334
25335 2016-01-12 Jakub Jelinek <jakub@redhat.com>
25336
25337 PR target/69198
25338 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25339 aligned_mem is properly set for AVX512-VL floating point masked
25340 stores.
25341
25342 PR target/69175
25343 * ifcvt.c (cond_exec_process_if_block): When removing the last
25344 insn from then_bb, remove also any possible barriers that follow it.
25345
25346 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
25347
25348 PR target/68456
25349 PR target/69226
25350 * config/i386/iamcu.h (SIZE_TYPE): New macro.
25351 (PTRDIFF_TYPE): Likewise.
25352 (WCHAR_TYPE): Likewise.
25353 (WCHAR_TYPE_SIZE): Likewise.
25354 (STDINT_LONG32): Likewise.
25355
25356 2016-01-12 Richard Biener <rguenther@suse.de>
25357
25358 PR tree-optimization/69053
25359 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25360 convert initial value for cond reductions.
25361
25362 2016-01-12 Richard Biener <rguenther@suse.de>
25363
25364 PR tree-optimization/69007
25365 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25366 widen_sum after dot_prod and sad.
25367
25368 2016-01-12 Richard Biener <rguenther@suse.de>
25369
25370 PR tree-optimization/69168
25371 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25372 pattern stmt SLP type.
25373 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25374 end up unused so cope with that case.
25375
25376 2016-01-12 Richard Biener <rguenther@suse.de>
25377
25378 PR tree-optimization/69157
25379 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25380 stmts def type only during analyze phase.
25381 (vectorizable_call): Likewise.
25382 (vectorizable_simd_clone_call): Likewise.
25383 (vectorizable_conversion): Likewise.
25384 (vectorizable_assignment): Likewise.
25385 (vectorizable_shift): Likewise.
25386 (vectorizable_operation): Likewise.
25387 (vectorizable_store): Likewise.
25388 (vectorizable_load): Likewise.
25389
25390 2016-01-12 Richard Biener <rguenther@suse.de>
25391
25392 PR tree-optimization/69174
25393 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25394 space.
25395 (vectorizable_load): Properly compute the number of loads needed
25396 for permuted strided SLP loads and do not spuriously assign
25397 to SLP_TREE_VEC_STMTS.
25398
25399 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
25400
25401 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25402 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25403 (MD_EXEC_PREFIX): Remove.
25404 (MD_STARTFILE_PREFIX) Removee.
25405 (FILE_NAME_ABSOLUTE_P): Remove.
25406 (CPP_SPEC): Do not read macros from sys/version.h.
25407 (LINK_COMMAND_SPEC): Remove.
25408 (LOCAL_INCLUDE_DIR): Remove.
25409 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25410 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25411 (POST_LINK_SPEC): Define to invoke stubify after linker
25412 (LIBSTDCXX): Remove define
25413 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25414 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25415 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25416 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25417 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25418 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25419 (i386_djgpp_asm_named_section): Add propotype of new procedure
25420
25421 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25422 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25423 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25424 in config/i386/djgpp.h).
25425 (STANDARD_STARTFILE_PREFIX_2): Define identical to
25426 STANDARD_STARTFILE_PREFIX_1.
25427 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25428 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25429 installation errors.
25430 (MAX_OFILE_ALIGNMENT): Define to 128.
25431 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25432
25433 * config/i386/djgpp.c: New file. Add implementation of
25434 i386_djgpp_asm_named_section.
25435
25436 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25437
25438 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25439 Add rule for building djgpp.o.
25440
25441 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25442
25443 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25444 (rtx_is_swappable_p): Reductions are swappable.
25445 (insn_is_swappable_p): V2DF reductions are swappable.
25446
25447 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
25448
25449 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25450 reloads for other unsupported memory operands.
25451
25452 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
25453 Jim Wilson <jim.wilson@linaro.org>
25454
25455 PR target/69194
25456 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25457 copy_to_mode_reg instead of force_reg.
25458
25459 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25460
25461 PR target/69225
25462 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25463 TARGET_80387 is true.
25464
25465 2016-01-11 Jakub Jelinek <jakub@redhat.com>
25466
25467 PR target/69071
25468 * lra-eliminations.c (move_plus_up): Only move plus up
25469 if subreg of the constant can be simplified into constant
25470 and use the simplified subreg of the constant instead of
25471 the original constant.
25472
25473 * fold-const.c (fold_convertible_p): Don't return true
25474 for conversion of VECTOR_TYPE to same sized integral type.
25475 (fold_convert_loc): Fix up formatting. Fold conversion of
25476 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25477 instead of NOP_EXPR.
25478
25479 PR tree-optimization/69214
25480 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25481 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25482 Formatting fix.
25483
25484 PR tree-optimization/69207
25485 * tree-vect-slp.c (vect_get_constant_vectors): For
25486 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25487 fold_convertible_p to vector_type's element type, and always
25488 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25489
25490 2016-01-11 Richard Biener <rguenther@suse.de>
25491
25492 PR tree-optimization/69173
25493 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25494 fixup the cycle if all stmts are in a pattern.
25495
25496 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
25497
25498 PR middle-end/68999
25499 * alias.c (base_alias_check): Move check for addresses with
25500 alignment ANDs before the call for compare_base_decls.
25501 (memrefs_conflict_p): Return -1 for different decls
25502 that went through alignment adjustments.
25503
25504 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25505
25506 PR rtl-optimization/68796
25507 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25508 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25509 and QImode comparisons against zero with CC_NZmode.
25510 * config/aarch64/iterators.md (short_mask): New mode_attr.
25511
25512 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
25513
25514 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25515 (<avx512>_store<mode>_mask): Likewise.
25516
25517 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
25518 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25519
25520 PR rtl-optimization/68841
25521 * ifcvt.c (struct noce_if_info): Add orig_x field.
25522 (bbs_ok_for_cmove_arith): Add to_rename parameter.
25523 Don't record conflicts on to_rename if it's present.
25524 Allow memory destinations in sets.
25525 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25526 blocks, passing orig_x to the checks.
25527 (noce_process_if_block): Set if_info->orig_x appropriately.
25528
25529 2016-01-11 Tom de Vries <tom@codesourcery.com>
25530
25531 PR tree-optimization/69069
25532 * tree-parloops.c (create_parallel_loop): Add missing phi args.
25533
25534 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
25535
25536 PR rtl-optimization/68920
25537 * config/i386/i386.c (ix86_option_override_internal): Restrict number
25538 of conditional moves for RTL if-conversion to 1 for
25539 TARGET_ONE_IF_CONV_INSN.
25540 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25541 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25542 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25543 parameter to restirct number of conditional moves for
25544 RTL if-conversion.
25545 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25546 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25547 conditionl moves.
25548
25549 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
25550
25551 PR bootstrap/69123
25552 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25553 onepart vars. Fix typo in comment. Fix reversed condition in
25554 unshare test.
25555 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25556
25557 PR bootstrap/69123
25558 * var-tracking.c (dump_onepart_variable_differences): New.
25559 (dataflow_set_different): If a detailed dump is requested,
25560 delay early returns and dump differences between onepart
25561 variables present before and after, and added variables.
25562
25563 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
25564
25565 PR target/69010
25566 * expr.c (expand_expr_real_1): For boolean vector constants
25567 with a scalar mode use const_scalar_mask_from_tree.
25568 (const_scalar_mask_from_tree): New.
25569 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25570 assigned to a mask type to handle constants.
25571
25572 2016-01-11 Martin Jambor <mjambor@suse.cz>
25573
25574 PR ipa/69044
25575 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25576 useless parameters if we cannot change function signature.
25577
25578 2016-01-11 Martin Jambor <mjambor@suse.cz>
25579
25580 PR ipa/66616
25581 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25582 flag.
25583
25584 2016-01-11 Tom de Vries <tom@codesourcery.com>
25585
25586 PR tree-optimization/69109
25587 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25588 latch with phi.
25589
25590 2016-01-11 Tom de Vries <tom@codesourcery.com>
25591
25592 PR tree-optimization/69108
25593 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
25594 res is not used in a phi.
25595
25596 2016-01-11 Yury Gribov <y.gribov@samsung.com>
25597
25598 PR 67425
25599 * common.opt (frandom-seed): Fix parameter name.
25600 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
25601
25602 2016-01-11 Tom de Vries <tom@codesourcery.com>
25603
25604 PR tree-optimization/69058
25605 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
25606 not supported.
25607
25608 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
25609
25610 * config/arc/arc.opt (mdiv-rem): Add period to the end.
25611 (mcode-density): Likewise.
25612
25613 2016-01-10 Tom de Vries <tom@codesourcery.com>
25614
25615 PR tree-optimization/69062
25616 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
25617 (parallelize_loops): Don't paralelize loop that has phi with address
25618 arg.
25619
25620 2016-01-10 Tom de Vries <tom@codesourcery.com>
25621
25622 PR tree-optimization/69039
25623 * tree-parloops.c (try_create_reduction_list): Only allow single exit
25624 phi for reduction.
25625
25626 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
25627
25628 PR middle-end/68743
25629 * match.pd: Require target has function_c99_misc before doing
25630 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
25631
25632 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
25633
25634 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
25635 use GMPINC.
25636 * configure: Regenerate.
25637
25638 2016-01-09 Jakub Jelinek <jakub@redhat.com>
25639
25640 PR middle-end/50865
25641 PR tree-optimization/69097
25642 * fold-const.h (expr_not_equal_to): New prototype.
25643 * fold-const.c: Include stringpool.h and tree-ssanames.h.
25644 (expr_not_equal_to): New function.
25645 * match.pd (X % -Y is the same as X % Y): Don't optimize
25646 unless X is known not to be equal to minimum or Y is known
25647 not to be equal to -1.
25648 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
25649 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
25650 (simplify_stmt_using_ranges): Adjust caller.
25651 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
25652 substitute_and_fold.
25653
25654 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
25655
25656 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
25657 w/o DECL_NAME.
25658
25659 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25660
25661 PR tree-optimization/69167
25662 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
25663 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
25664 ops[0] comparison.
25665 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
25666
25667 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
25668 Richard Biener <rguenther@suse.de>
25669
25670 PR tree-optimization/68707
25671 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
25672 instances that can be handled via vect_load_lanes.
25673
25674 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
25675
25676 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
25677 if we can't determine address equivalence.
25678 * alias.c (compare_base_decl): Update for changed return value of
25679 symtab_node::equal_address_to.
25680
25681 2016-01-08 Jason Merrill <jason@redhat.com>
25682
25683 PR c++/68983
25684 PR c++/67557
25685 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
25686 * expr.c (store_field): Not here.
25687 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
25688 call with TREE_ADDRESSABLE type.
25689 * tree-cfg.c (verify_gimple_call): Adjust.
25690
25691 2016-01-08 Olivier Hainque <hainque@adacore.com>
25692
25693 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
25694 libc_internal.
25695
25696 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
25697
25698 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
25699 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
25700 (reduc_smin_v2sf): Rename to...
25701 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
25702 (reduc_splus_v2sf): Rename to...
25703 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
25704
25705 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25706
25707 PR tree-optimization/69162
25708 * gimplify.c (gimplify_va_arg_expr): Encode original type of
25709 valist argument in another argument.
25710 (gimplify_modify_expr): Adjust for the above change. Cleanup.
25711 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
25712 to determine the va_list type, build a MEM_REF instead of
25713 build_fold_indirect_ref.
25714
25715 PR tree-optimization/69172
25716 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
25717 gimple_build.
25718
25719 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
25720
25721 PR tree-optimization/67781
25722 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
25723 and cmpnop in two steps: first the ones not accessed in original
25724 gimple expression in a endian independent way and then the ones not
25725 accessed in the final result in an endian-specific way.
25726
25727 2016-01-08 Jakub Jelinek <jakub@redhat.com>
25728
25729 PR tree-optimization/69083
25730 * tree-vect-slp.c (vect_get_constant_vectors): For
25731 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
25732 element type. If op is fold_convertible_p to vector_type's element
25733 type, use NOP_EXPR instead of VCE.
25734
25735 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
25736
25737 PR rtl-optimization/67778
25738 PR rtl-optimization/68634
25739 PR rtl-optimization/68909
25740 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
25741 block from the stack until done with it. Remove a superfluous
25742 bitmap set. Remove a superfluous bitmap test.
25743
25744 2016-01-07 Martin Sebor <msebor@redhat.com>
25745
25746 PR c/68966
25747 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
25748 constraint on the type of arguments.
25749
25750 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
25751
25752 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
25753 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
25754 unaligned_access on the gcc_options set.
25755 * config/arm/arm.c (arm_option_override_internal): Use
25756 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
25757
25758 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
25759
25760 PR target/69140
25761 * config/i386/i386.c (ix86_frame_pointer_required): Enable
25762 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
25763
25764 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
25765
25766 Revert
25767 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
25768
25769 PR target/69140
25770 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25771 depending on frame_pointer_needed before remaining integer and SSE
25772 registers are saved.
25773
25774 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
25775
25776 PR 1078
25777 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
25778
25779 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
25780
25781 PR target/69171
25782 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
25783 Use the "xBm" constraint.
25784 (float<sseintvecmodelower><mode>2<mask_name><round_name):
25785 Likewise.
25786 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
25787 (sse_cvtsi2ssq<round_name>): Likewise.
25788 (sse_cvtss2si<round_name>): Likewise.
25789 (sse_cvtss2siq<round_name>): Likewise.
25790 (sse2_cvtsi2sdq<round_name>): Likewise.
25791 (sse2_cvtsd2si<round_name>): Likewise.
25792 (sse2_cvtsd2siq<round_name>): Likewise.
25793 * config/i386/subst.md (round_nimm_scalar_predicate): New
25794 predicate.
25795
25796 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
25797
25798 PR middle-end/67639
25799 * varasm.c (make_decl_rtl): Mark invalid register vars as
25800 DECL_EXTERNAL.
25801
25802 PR rtl-optimization/66206
25803 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
25804 All callers changed.
25805
25806 2016-01-07 Jakub Jelinek <jakub@redhat.com>
25807
25808 PR tree-optimization/69141
25809 * tree-ssa-pre.c: Include langhooks.h.
25810 (eliminate_dom_walker::before_dom_children): Use
25811 lang_hooks.decl_printable_name instead of
25812 cgraph_node::get ()->name ().
25813
25814 PR middle-end/68960
25815 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
25816 it and DECL_ALIGN too.
25817
25818 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
25819
25820 * config/mips/mips-ftypes.def: Sort to lexicographical order.
25821
25822 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
25823
25824 PR target/69140
25825 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25826 depending on frame_pointer_needed before remaining integer and SSE
25827 registers are saved.
25828
25829 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25830
25831 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
25832 mode iterator with VSX_M2.
25833 (*p9_vecstore_<mode>): Likewise.
25834 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
25835 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
25836 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
25837 (define_split for VSX_LE128 stores): Likewise.
25838 (define_peephole2 for TImode LE swaps): Likewise.
25839 (define_split for VSX_LE128 post-reload stores): Likewise.
25840
25841 2016-01-06 Marek Polacek <polacek@redhat.com>
25842
25843 PR sanitizer/69099
25844 * convert.c (convert_to_integer_1): Adjust call to
25845 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
25846 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
25847 EXPR instead of ARG.
25848 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
25849
25850 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25851
25852 PR 1078
25853 * doc/extend.texi (RL78 Variable Attributes): New section.
25854
25855 2016-01-05 Marek Polacek <polacek@redhat.com>
25856
25857 PR c/69104
25858 * builtins.c (get_memmodel): Use expansion point location rather than
25859 the input location. Call warning_at rather than warning.
25860 (expand_builtin_atomic_compare_exchange): Likewise.
25861 (expand_builtin_atomic_load): Likewise.
25862 (expand_builtin_atomic_store): Likewise.
25863 (expand_builtin_atomic_clear): Likewise.
25864
25865 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 PR target/68991
25868 * config/i386/i386.c (ix86_expand_vector_logical_operator):
25869 Replace nonimmediate_operand with vector_operand.
25870 * config/i386/predicates.md (vector_operand): New predicate.
25871 (general_vector_operand): Replace nonimmediate_operand with
25872 vector_operand.
25873 * config/i386/sse.md: Replace nonimmediate_operand with
25874 vector_operand and m constraint with Bm constraint on SSE
25875 patterns with 16-byte memory operand.
25876 * config/i386/subst.md (round_nimm_predicate): Replace
25877 nonimmediate_operand with vector_operand.
25878 (round_saeonly_nimm_predicate): Likewise.
25879 (round_saeonly_nimm_scalar_predicate): New.
25880
25881 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
25882
25883 PR target/68991
25884 * config/i386/constraints.md (Bm): New constraint.
25885 * config/i386/predicates.md (vector_memory_operand): New
25886 predicate.
25887 * config/i386/sse.md: Replace xm with xBm in plusminus and
25888 any_logic patterns.
25889
25890 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25891
25892 PR 1078
25893 * doc/extend.texi (V850 Function Attributes): New section.
25894 (V850 Variable Attributes): New section.
25895
25896 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
25897
25898 PR 1078
25899 * doc/extend.texi (MicroBlaze Function Attributes): Document
25900 interrupt_handler and fast_interrupt attributes.
25901
25902 2016-01-05 Sergei Trofimovich <siarheit@google.com>
25903
25904 PR other/60465
25905 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
25906 for local symbolic operands.
25907 * config/ia64/predicates.md (local_symbolic_operand64): New
25908 predicate.
25909
25910 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25911
25912 PR rtl-optimization/68651
25913 * combine.c (combine_simplify_rtx): Canonicalize x + x into
25914 x << 1.
25915
25916 2016-01-05 Nathan Sidwell <nathan@acm.org>
25917
25918 * alias.c (compare_base_decls): Use symtab_node::get.
25919
25920 2016-01-05 Nick Clifton <nickc@redhat.com>
25921
25922 PR target/68770
25923 * ira-costs.c (copy_cost): Initialise the t_icode field of the
25924 secondary_reload_info structure.
25925
25926 PR target/66655
25927 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25928 decls if weak support is available.
25929
25930 2016-01-04 Martin Sebor <msebor@redhat.com>
25931
25932 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25933
25934 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
25935
25936 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25937 OPTION_MASK_P9_DFORM.
25938
25939 * config/rs6000/constraints.md (wo constraint): New constraint for
25940 ISA 3.0 (power9).
25941
25942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25943 for wo constraint.
25944 (rs6000_init_hard_regno_mode_ok): Likewise.
25945
25946 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25947 wo constraint.
25948
25949 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25950 expanders not to have constraints. Add support for ISA 3.0 xxperm
25951 instruction. Add support for fusing xxlor with xxperm.
25952 (altivec_vperm_<mode>_internal): Likewise.
25953 (altivec_vperm_v8hiv16qi): Likewise.
25954 (altivec_vperm_<mode>v16q): Likewise.
25955 (altivec_vperm_<mode>_uns): Likewise.
25956 (vperm_v8hiv4si): Likewise.
25957 (vperm_v16qiv8hi): Likewise.
25958
25959 * doc/md.texi (RS/6000 constraints): Document wo constraint.
25960
25961 2016-01-04 Jakub Jelinek <jakub@redhat.com>
25962
25963 Update copyright years.
25964
25965 * gcc.c (process_command): Update copyright notice dates.
25966 * gcov-dump.c (print_version): Ditto.
25967 * gcov.c (print_version): Ditto.
25968 * gcov-tool.c (print_version): Ditto.
25969 * gengtype.c (create_file): Ditto.
25970 * doc/cpp.texi: Bump @copying's copyright year.
25971 * doc/cppinternals.texi: Ditto.
25972 * doc/gcc.texi: Ditto.
25973 * doc/gccint.texi: Ditto.
25974 * doc/gcov.texi: Ditto.
25975 * doc/install.texi: Ditto.
25976 * doc/invoke.texi: Ditto.
25977
25978 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25979
25980 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25981 modes larger than TImode as TImode if NEON is not enabled.
25982
25983 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25984
25985 PR target/69100
25986 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25987 mode for %f0-%f31 only if TARGET_FPU.
25988
25989 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
25990
25991 PR target/69072
25992 * config/sparc/sparc.c (scan_record_type): Take into account subfields
25993 to compute the PACKED_P predicate.
25994 (function_arg_record_value): Minor tweaks.
25995
25996 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25997
25998 * doc/install.texi (--with-multilib-list): Describe the meaning of the
25999 option for arm*-*-* targets.
26000
26001 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
26002
26003 * doc/extend.texi (Common Function Attributes): Move docs for
26004 MSP430-specific attributes to....
26005 (MSP430 Function Attributes): ...here. Delete the redundant
26006 entries and copy-edit the remaining text.
26007 (MSP430 Variable Attributes): Use uniform format for index
26008 entries and add a cross-reference to the corresponding function
26009 attribute docs.
26010
26011 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
26012
26013 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
26014 -finite-math typo.
26015 (x86 Options): Likewise.
26016
26017 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26018
26019 PR 1078
26020
26021 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26022 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26023 to corresponding attribute.
26024
26025 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
26026
26027 * doc/extend.texi (Common Function Attributes) <noplt>: Move
26028 to correct alphabetization of table. Copy-edit and correct
26029 markup.
26030 <stack_protect>: Likewise.
26031 <target_clones>: Likewise.
26032 <simd>: Likewise.
26033 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26034 Correct punctuation.
26035 (Code Gen Options) <-fno-plt>: Copy-edit.
26036
26037 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26038
26039 PR target/68917
26040 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26041 SI values. Explicitly convert SI to DI and vice-versa.
26042
26043 2016-01-01 Jakub Jelinek <jakub@redhat.com>
26044
26045 PR tree-optimization/69070
26046 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26047 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26048
26049 PR sanitizer/69055
26050 * ubsan.c (ubsan_instrument_float_cast): Call
26051 initialize_sanitizer_builtins.
26052
26053 PR target/69015
26054 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26055 \f
26056 Copyright (C) 2016 Free Software Foundation, Inc.
26057
26058 Copying and distribution of this file, with or without modification,
26059 are permitted in any medium without royalty provided the copyright
26060 notice and this notice are preserved.