[arm] Fix warning in parsecpu.awk
[gcc.git] / gcc / ChangeLog
1 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
2
3 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
4 in quoted strings.
5
6 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
7
8 Move jump-tables out of .text again.
9
10 PR target/81075
11 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
12 (ASM_OUTPUT_ADDR_VEC): New function.
13 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
14 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
15 INSN_ADDRESSes as asm comment.
16 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
17 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
18 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
19 * config/avr/avr.md (*tablejump): Adjust comment.
20 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
21 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
22 New detail.
23 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
24 (avr_output_addr_vec): New proto.
25 (avr_log_t) <insn_addresses>: New field.
26
27 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR target/81313
30 * config/i386/i386.c (ix86_function_arg_advance): Set
31 outgoing_args_on_stack to true if there are outgoing arguments
32 on stack.
33 (ix86_function_arg): Likewise.
34 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
35 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
36 * config/i386/i386.h (machine_function): Add
37 outgoing_args_on_stack.
38
39 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
40
41 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
42 supporting pthreds.
43 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
44
45 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
46
47 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
48 (REAL_H): Remove $(MACHMODE_H).
49 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
50 double-int.h.
51 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
52 $(MACHMODE_H) and double-int.h.
53 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
54 $(MACHMODE_H).
55 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
56 double-int.h.
57
58 2017-07-07 Andrew Pinski <apinski@cavium.com>
59
60 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
61 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
62
63 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
64
65 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
66 Add warning if GCC was not configured to link against a GLIBC that
67 exports the hardware capability bits.
68 (make_resolver_func): Make resolver function private and not a
69 COMDAT function. Create the name with clone_function_name instead
70 of make_unique_name.
71
72 PR target/81348
73 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
74 correct operand in doing the split.
75
76 2017-07-07 Carl Love <cel@us.ibm.com>
77
78 * config/rs6000/rs6000-c: Add support for built-in function
79 vector unsigned short vec_pack_to_short_fp32 (vector float,
80 vector float).
81 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
82 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
83 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
84 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
85 (convert_4f32_8i16): Add define_expand.
86 * doc/extend.texi: Update the built-in documentation file for the
87 new built-in function.
88
89 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
90
91 * config/sparc/m8.md: New file.
92 * config/sparc/sparc.md: Include m8.md.
93
94 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
95
96 * config/sparc/sparc.opt: New option -mvis4b.
97 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
98 (sparc_option_override): Handle VIS4B.
99 (enum sparc_builtins): Define
100 SPARC_BUILTIN_DICTUNPACK{8,16,32},
101 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
102 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
103 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
104 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
105 (check_constant_argument): New function.
106 (sparc_vis_init_builtins): Define builtins
107 __builtin_vis_dictunpack{8,16,32},
108 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
109 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
110 __builtin_vis_fpcmpde{8,16,32}shl and
111 __builtin_vis_fpcmpur{8,16,32}shl.
112 (sparc_expand_builtin): Check that the constant operands to
113 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
114 constant and in range.
115 * config/sparc/sparc-c.c (sparc_target_macros): Handle
116 TARGET_VIS4B.
117 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
118 (SPARC_IMM5_P): Likewise.
119 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
120 (enabled): Handle vis4b.
121 (UNSPEC_DICTUNPACK): New unspec.
122 (UNSPEC_FPCMPSHL): Likewise.
123 (UNSPEC_FPUCMPSHL): Likewise.
124 (UNSPEC_FPCMPDESHL): Likewise.
125 (UNSPEC_FPCMPURSHL): Likewise.
126 (cpu_feature): New CPU feature `vis4b'.
127 (dictunpack{8,16,32}): New insns.
128 (FPCSMODE): New mode iterator.
129 (fpcscond): New code iterator.
130 (fpcsucond): Likewise.
131 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
132 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
133 (fpcmpde{8,16,32}{si,di}shl): Likewise.
134 (fpcmpur{8,16,32}{si,di}shl): Likewise.
135 * config/sparc/constraints.md: Define constraints `q' for unsigned
136 2-bit integer constants and `t' for unsigned 5-bit integer
137 constants.
138 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
139 predicate.
140 (imm5_operand_dictunpack16): Likewise.
141 (imm5_operand_dictunpack32): Likewise.
142 (imm2_operand): Likewise.
143 * doc/invoke.texi (SPARC Options): Document -mvis4b.
144 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
145 ditunpack* and fpcmp*shl builtins.
146
147 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
148
149 * config.gcc: Handle m8 in --with-{cpu,tune} options.
150 * config.in: Add HAVE_AS_SPARC6 define.
151 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
152 M8.
153 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
154 TARGET_CPU_m8.
155 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
156 (CPP_CPU_SPEC): Handle m8.
157 (ASM_CPU_SPEC): Likewise.
158 * config/sparc/sparc-opts.h (enum processor_type): Add
159 PROCESSOR_M8.
160 * config/sparc/sparc.c (m8_costs): New struct.
161 (sparc_option_override): Handle TARGET_CPU_m8.
162 (sparc32_initialize_trampoline): Likewise.
163 (sparc64_initialize_trampoline): Likewise.
164 (sparc_issue_rate): Likewise.
165 (sparc_register_move_cost): Likewise.
166 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
167 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
168 (ASM_CPU64_DEFAULT_SPEC): Likewise.
169 (CPP_CPU_SPEC): Handle M8.
170 (ASM_CPU_SPEC): Likewise.
171 (AS_M8_FLAG): Define.
172 * config/sparc/sparc.md: Add m8 to the cpu attribute.
173 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
174 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
175 M8 instructions.
176 * configure: Regenerate.
177 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
178 -mtune=m8.
179
180 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
181
182 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
183 subtypes.
184 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
185 ("*movdi_insn_sp32"): Do not set v3pipe.
186 ("*movsi_insn"): Likewise.
187 ("*movdi_insn_sp64"): Likewise.
188 ("*movsf_insn"): Likewise.
189 ("*movdf_insn_sp32"): Likewise.
190 ("*movdf_insn_sp64"): Likewise.
191 ("*zero_extendsidi2_insn_sp64"): Likewise.
192 ("*sign_extendsidi2_insn"): Likewise.
193 ("*mov<VM32:mode>_insn"): Likewise.
194 ("*mov<VM64:mode>_insn_sp64"): Likewise.
195 ("*mov<VM64:mode>_insn_sp32"): Likewise.
196 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
197 ("<vlop:code><VL:mode>3"): Likewise.
198 ("*not_<vlop:code><VL:mode>3"): Likewise.
199 ("*nand<VL:mode>_vis"): Likewise.
200 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
201 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
202 ("one_cmpl<VL:mode>2"): Likewise.
203 ("faligndata<VM64:mode>_vis"): Likewise.
204 ("alignaddrsi_vis"): Likewise.
205 ("alignaddrdi_vis"): Likweise.
206 ("alignaddrlsi_vis"): Likewise.
207 ("alignaddrldi_vis"): Likewise.
208 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
209 ("bmaskdi_vis"): Likewise.
210 ("bmasksi_vis"): Likewise.
211 ("bshuffle<VM64:mode>_vis"): Likewise.
212 ("cmask8<P:mode>_vis"): Likewise.
213 ("cmask16<P:mode>_vis"): Likewise.
214 ("cmask32<P:mode>_vis"): Likewise.
215 ("pdistn<P:mode>_vis"): Likewise.
216 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
217
218 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
219
220 * config/sparc/sparc.md ("subtype"): New insn attribute.
221 ("*wrgsr_sp64"): Set insn subtype.
222 ("*rdgsr_sp64"): Likewise.
223 ("alignaddrsi_vis"): Likewise.
224 ("alignaddrdi_vis"): Likewise.
225 ("alignaddrlsi_vis"): Likewise.
226 ("alignaddrldi_vis"): Likewise.
227 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
228 ("fexpand_vis"): Likewise.
229 ("fpmerge_vis"): Likewise.
230 ("faligndata<VM64:mode>_vis"): Likewise.
231 ("bshuffle<VM64:mode>_vis"): Likewise.
232 ("cmask8<P:mode>_vis"): Likewise.
233 ("cmask16<P:mode>_vis"): Likewise.
234 ("cmask32<P:mode>_vis"): Likewise.
235 ("fchksm16_vis"): Likewise.
236 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
237 ("fmean16_vis"): Likewise.
238 ("fp<plusminus_insn>64_vis"): Likewise.
239 ("<plusminus_insn>v8qi3"): Likewise.
240 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
241 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
242 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
243 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
244 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
245 ("*movqi_insn"): Likewise.
246 ("*movhi_insn"): Likewise.
247 ("*movsi_insn"): Likewise.
248 ("movsi_pic_gotdata_op"): Likewise.
249 ("*movdi_insn_sp32"): Likewise.
250 ("*movdi_insn_sp64"): Likewise.
251 ("movdi_pic_gotdata_op"): Likewise.
252 ("*movsf_insn"): Likewise.
253 ("*movdf_insn_sp32"): Likewise.
254 ("*movdf_insn_sp64"): Likewise.
255 ("*zero_extendhisi2_insn"): Likewise.
256 ("*zero_extendqihi2_insn"): Likewise.
257 ("*zero_extendqisi2_insn"): Likewise.
258 ("*zero_extendqidi2_insn"): Likewise.
259 ("*zero_extendhidi2_insn"): Likewise.
260 ("*zero_extendsidi2_insn_sp64"): Likewise.
261 ("ldfsr"): Likewise.
262 ("prefetch_64"): Likewise.
263 ("prefetch_32"): Likewise.
264 ("tie_ld32"): Likewise.
265 ("tie_ld64"): Likewise.
266 ("*tldo_ldub_sp32"): Likewise.
267 ("*tldo_ldub1_sp32"): Likewise.
268 ("*tldo_ldub2_sp32"): Likewise.
269 ("*tldo_ldub_sp64"): Likewise.
270 ("*tldo_ldub1_sp64"): Likewise.
271 ("*tldo_ldub2_sp64"): Likewise.
272 ("*tldo_ldub3_sp64"): Likewise.
273 ("*tldo_lduh_sp32"): Likewise.
274 ("*tldo_lduh1_sp32"): Likewise.
275 ("*tldo_lduh_sp64"): Likewise.
276 ("*tldo_lduh1_sp64"): Likewise.
277 ("*tldo_lduh2_sp64"): Likewise.
278 ("*tldo_lduw_sp32"): Likewise.
279 ("*tldo_lduw_sp64"): Likewise.
280 ("*tldo_lduw1_sp64"): Likewise.
281 ("*tldo_ldx_sp64"): Likewise.
282 ("*mov<VM32:mode>_insn"): Likewise.
283 ("*mov<VM64:mode>_insn_sp64"): Likewise.
284 ("*mov<VM64:mode>_insn_sp32"): Likewise.
285
286 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
287
288 * config/sparc/sparc.md ("type"): New insn type viscmp.
289 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
290 viscmp.
291 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
292 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
293 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
294 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
295 viscmp.
296 ("n7_vis_logical_11cycle"): Likewise.
297 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
298 * config/sparc/niagara2.md ("niag3_vis": Likewise.
299 * config/sparc/niagara.md ("niag_vis"): Likewise.
300 * config/sparc/ultra3.md ("us3_fga"): Likewise.
301 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
302
303 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
304
305 * config/sparc/sparc.md: New instruction type `bmask'.
306 (bmaskdi_vis): Use the `bmask' type.
307 (bmasksi_vis): Likewise.
308 * config/sparc/ultra3.md (us3_array): Likewise.
309 * config/sparc/niagara7.md (n7_array): Likewise.
310 * config/sparc/niagara4.md (n4_array): Likewise.
311 * config/sparc/niagara2.md (niag2_vis): Likewise.
312 (niag3_vis): Likewise.
313 * config/sparc/niagara.md (niag_vis): Likewise.
314
315 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
316
317 * ipa-comdats.c: Remove optimize check from gate.
318 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
319 for functions not optimized.
320 (ipa_fn_summary_read): Skip optimize check.
321 (ipa_fn_summary_write): Likewise.
322 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
323 is optimized.
324 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
325 uninlinable.
326 (can_inline_edge_p): Check flag_pcc_struct_return for match.
327 (check_callers): Give up on caller which is not optimized.
328 (inline_small_functions): Likewise.
329 (ipa_inline): Do not give up when not optimizing.
330 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
331 away unoptimizes cdtors.
332 (whole_program_function_and_variable_visibility): Do
333 ipa_discover_readonly_nonaddressable_vars in LTO mode.
334 * ipa.c (process_references): Do not check optimize.
335 (symbol_table::remove_unreachable_nodes): Update optimize check.
336 (set_writeonly_bit): Update optimize check.
337 (pass_ipa_cdtor_merge::gate): Do not check optimize.
338 (pass_ipa_single_use::gate): Remove.
339
340 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
341
342 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
343 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
344 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
345 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
346 permute_load, permute_store, adjust_extract, adjust_splat,
347 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
348 replace_swap_with_copy, dump_swap_insn_table,
349 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
350 recombine_lvx_pattern, recombine_stvx_pattern,
351 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
352 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
353 to file rs6000-p8swap.c.
354 * config/rs6000/rs6000-p8swap.c: New file.
355 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
356 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
357 and rs6000*-*-* targets.
358
359 2017-07-06 David Malcolm <dmalcolm@redhat.com>
360
361 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
362
363 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
364
365 * lto-wrapper.c (merge_and_complain): Do not merge
366 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
367 fsigned_zeros, ftrapping_math, fwrapv.
368 (append_compiler_options): Do not track these options.
369 (append_linker_options): Likewie
370
371 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
372
373 * cgraphunit.c (cgraph_node::finalize_function): When
374 !flag_toplevel_reorde set no_reorder flag.
375 (varpool_node::finalize_decl): Likewise.
376 (symbol_table::compile): Drop no toplevel reorder path.
377
378 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
379
380 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
381 edges; zero probability is not better than uninitialized.
382
383 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
384
385 * asan.h (asan_sanitize_allocas_p): Declare.
386 * asan.c (asan_sanitize_allocas_p): New function.
387 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
388 (handle_builtin_alloca): Likewise.
389 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
390 if !asan_sanitize_allocas_p.
391 * params.def (asan-instrument-allocas): Add new option.
392 * params.h (ASAN_PROTECT_ALLOCAS): Define.
393 * opts.c (common_handle_option): Disable allocas sanitization for
394 KASan by default.
395
396 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
397
398 * asan.c: Include gimple-fold.h.
399 (get_last_alloca_addr): New function.
400 (handle_builtin_stackrestore): Likewise.
401 (handle_builtin_alloca): Likewise.
402 (asan_emit_allocas_unpoison): Likewise.
403 (get_mem_refs_of_builtin_call): Add new parameter, remove const
404 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
405 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
406 (instrument_builtin_call): Pass gimple iterator to
407 get_mem_refs_of_builtin_call.
408 (last_alloca_addr): New global.
409 * asan.h (asan_emit_allocas_unpoison): Declare.
410 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
411 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
412 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
413 if function calls alloca.
414 * gimple-fold.c (replace_call_with_value): Remove static keyword.
415 * gimple-fold.h (replace_call_with_value): Declare.
416 * internal-fn.c: Include asan.h.
417 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
418 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
419
420 2017-07-06 David Malcolm <dmalcolm@redhat.com>
421
422 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
423 (C_SELFTEST_FLAGS): New.
424 (CPP_SELFTEST_FLAGS): New.
425 (SELFTEST_DEPS): New, from deps of s-selftest.
426 (C_SELFTEST_DEPS): New, from deps of s-selftest.
427 (CPP_SELFTEST_DEPS): New.
428 (selftest): Add dependency on s-selftest-c++.
429 (s-selftest): Rename to...
430 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
431 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
432 than SELFTEST_FLAGS.
433 (selftest-gdb): Rename to...
434 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
435 C_SELFTEST_FLAGS.
436 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
437 (selftest-valgrind): Rename to...
438 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
439 C_SELFTEST_FLAGS.
440 (selftest-valgrind): Reintroduce as an alias for
441 selftest-c-valgrind.
442 (s-selftest-c++): New.
443 (selftest-c++-gdb): New.
444 (selftest-c++-valgrind): New.
445
446 2017-07-06 Olivier Hainque <hainque@adacore.com>
447
448 * gcc.c (process_command): When deciding if undefined variables
449 should be ignored when processing specs, accept "gcc -v" as well.
450
451 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
452
453 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
454 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
455
456 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
457
458 * config/arm/arm-cpus.in (armv8-r): Add new entry.
459 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
460 * config/arm/arm-tables.opt: Regenerate.
461 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
462 enumerator.
463 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
464
465 2017-07-06 Carl Love <cel@us.ibm.com>
466
467 * ChangeLog: Clean up from mid air collision
468
469 2017-07-06 Carl Love <cel@us.ibm.com>
470
471 * config/rs6000/rs6000-c.c: Add support for built-in functions
472 vector signed int vec_subc (vector signed int, vector signed int);
473 vector signed __int128 vec_subc (vector signed __int128,
474 vector signed __int128);
475 vector unsigned __int128 vec_subc (vector unsigned __int128,
476 vector unsigned __int128);
477 vector signed int vec_sube (vector signed int, vector signed int,
478 vector signed int);
479 vector unsigned int vec_sube (vector unsigned int,
480 vector unsigned int,
481 vector unsigned int);
482 vector signed __int128 vec_sube (vector signed __int128,
483 vector signed __int128,
484 vector signed__int128);
485 vector unsigned __int128 vec_sube (vector unsigned __int128,
486 vector unsigned __int128,
487 vector unsigned __int128);
488 vector signed int vec_subec (vector signed int, vector signed int,
489 vector signed int);
490 vector unsigned int vec_subec (vector unsigned int,
491 vector unsigned int,
492 vector unsigned int);
493 vector signed __int128 vec_subec (vector signed __int128,
494 vector signed __int128,
495 vector signed__int128);
496 vector unsigned __int128 vec_subec (vector unsigned __int128,
497 vector unsigned __int128,
498 vector unsigned __int128);
499 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
500 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
501 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
502 BU_ALTIVEC_OVERLOAD_X definitions.
503 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
504 * doc/extend.texi: Update the built-in documentation file for the new
505 built-in functions.
506
507 2017-07-06 David Malcolm <dmalcolm@redhat.com>
508
509 PR c++/79300
510 * diagnostic-show-locus.c (layout::layout): Use start and finish
511 spelling location for the start and finish of each range.
512 * genmatch.c (linemap_client_expand_location_to_spelling_point):
513 Add unused aspect param.
514 * input.c (expand_location_1): Add "aspect" param, and use it
515 to access the correct part of the location.
516 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
517 expand_location_1.
518 (expand_location_to_spelling_point): Likewise.
519 (linemap_client_expand_location_to_spelling_point): Add "aspect"
520 param, and pass it to expand_location_1.
521
522 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
523
524 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
525 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
526 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
527 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
528 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
529 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
530 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
531 _mm_maskz_getmant_ss): New intrinsics.
532 (__builtin_ia32_getexpss128_mask): Changed to ...
533 __builtin_ia32_getexpss128_round ... this.
534 (__builtin_ia32_getexpsd128_mask): Changed to ...
535 __builtin_ia32_getexpsd128_round ... this.
536 * config/i386/i386-builtin-types.def
537 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
538 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
539 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
540 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
541 __builtin_ia32_getmantss_mask_round): New builtins.
542 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
543 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
544 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
545 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
546 * config/i386/sse.md
547 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
548 avx512f_sgetexp<mode><mask_scalar_name>
549 <round_saeonly_scalar_name> ... this.
550 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
551 %0, %1, %2<round_saeonly_op3>}): Changed to ...
552 vgetexp<ssescalarmodesuffix>
553 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
554 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
555 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
556 avx512f_vgetmant<mode><mask_scalar_name>
557 <round_saeonly_scalar_name> ... this.
558 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
559 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
560 vgetmant<ssescalarmodesuffix>
561 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
562 %0<mask_scalar_operand4>, %1, %2
563 <round_saeonly_scalar_mask_op4>, %3} ... this.
564 * config/i386/subst.md (mask_scalar_operand4,
565 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
566 round_saeonly_scalar_nimm_predicate): New subst attributes.
567
568 2017-07-06 Julia Koval <julia.koval@intel.com>
569
570 * gcc/config/i386/i386.c (ix86_erase_embedded_rounding):
571 Remove code for old rounding pattern.
572
573 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
574
575 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
576
577 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
578
579 * doc/sourcebuild.texi (Test Directives, Variants of
580 dg-require-support): Add documentation for dg-require-stack-check.
581
582 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
583
584 * config/i386/subst.md (mask_scalar, round_scalar,
585 round_saeonly_scalar): New meta-templates.
586 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
587 round_scalar_mask_operand3, round_scalar_mask_op3,
588 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
589 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
590 round_saeonly_scalar_constraint,
591 round_saeonly_scalar_prefix): New subst attribute.
592 * config/i386/sse.md
593 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
594 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
595 <round_scalar_name> ... this.
596 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
597 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
598 <round_scalar_name> ... this.
599 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
600 <sse>_vm<code><mode>3<mask_scalar_name>
601 <round_saeonly_scalar_name> ... this.
602 (v<plusminus_mnemonic><ssescalarmodesuffix>
603 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
604 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
605 v<plusminus_mnemonic><ssescalarmodesuffix>
606 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
607 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
608 (v<multdiv_mnemonic><ssescalarmodesuffix>
609 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
610 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
611 v<multdiv_mnemonic><ssescalarmodesuffix>
612 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
613 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
614 (v<maxmin_float><ssescalarmodesuffix>
615 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
616 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
617 v<maxmin_float><ssescalarmodesuffix>
618 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
619 %0<mask_scalar_operand3>, %1, %<iptr>2
620 <round_saeonly_scalar_mask_op3>} ... this.
621
622 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
623
624 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
625 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
626
627 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
628 Alan Hayward <alan.hayward@arm.com>
629 David Sherwood <david.sherwood@arm.com>
630
631 * combine.c (simplify_if_then_else): Remove "enum" before
632 "machine_mode".
633 * compare-elim.c (can_eliminate_compare): Likewise.
634 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
635 Likewise.
636 (aarch64_lookup_simd_builtin_type): Likewise.
637 (aarch64_simd_builtin_type): Likewise.
638 (aarch64_init_simd_builtin_types): Likewise.
639 (aarch64_simd_expand_args): Likewise.
640 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
641 Likewise.
642 (aarch64_reverse_mask): Likewise.
643 (aarch64_simd_emit_reg_reg_move): Likewise.
644 (aarch64_gen_adjusted_ldpstp): Likewise.
645 (aarch64_ccmp_mode_to_code): Likewise.
646 (aarch64_operands_ok_for_ldpstp): Likewise.
647 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
648 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
649 Likewise.
650 (aarch64_min_divisions_for_recip_mul): Likewise.
651 (aarch64_reassociation_width): Likewise.
652 (aarch64_get_condition_code_1): Likewise.
653 (aarch64_simd_emit_reg_reg_move): Likewise.
654 (aarch64_simd_attr_length_rglist): Likewise.
655 (aarch64_reverse_mask): Likewise.
656 (aarch64_operands_ok_for_ldpstp): Likewise.
657 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
658 (aarch64_gen_adjusted_ldpstp): Likewise.
659 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
660 Likewise.
661 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
662 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
663 (arm_lookup_simd_builtin_type): Likewise.
664 (arm_simd_builtin_type): Likewise.
665 (arm_init_simd_builtin_types): Likewise.
666 (arm_expand_builtin_args): Likewise.
667 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
668 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
669 (ft32_setup_incoming_varargs): Likewise.
670 (ft32_function_arg): Likewise.
671 (ft32_function_arg_advance): Likewise.
672 (ft32_pass_by_reference): Likewise.
673 (ft32_arg_partial_bytes): Likewise.
674 (ft32_valid_pointer_mode): Likewise.
675 (ft32_addr_space_pointer_mode): Likewise.
676 (ft32_addr_space_legitimate_address_p): Likewise.
677 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
678 Likewise.
679 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
680 (ix86_emit_outlined_ms2sysv_restore): Likewise.
681 (iamcu_alignment): Likewise.
682 (canonicalize_vector_int_perm): Likewise.
683 (ix86_noce_conversion_profitable_p): Likewise.
684 (ix86_mpx_bound_mode): Likewise.
685 (ix86_operands_ok_for_move_multiple): Likewise.
686 * config/microblaze/microblaze-protos.h
687 (microblaze_expand_conditional_branch_reg): Likewise.
688 * config/microblaze/microblaze.c
689 (microblaze_expand_conditional_branch_reg): Likewise.
690 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
691 Likewise.
692 (rs6000_reassociation_width): Likewise.
693 (rs6000_invalid_binary_op): Likewise.
694 (fusion_p9_p): Likewise.
695 (emit_fusion_p9_load): Likewise.
696 (emit_fusion_p9_store): Likewise.
697 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
698 Likewise.
699 (riscv_hard_regno_mode_ok_p): Likewise.
700 (riscv_address_insns): Likewise.
701 (riscv_split_symbol): Likewise.
702 (riscv_legitimize_move): Likewise.
703 (riscv_function_value): Likewise.
704 (riscv_hard_regno_nregs): Likewise.
705 (riscv_expand_builtin): Likewise.
706 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
707 (riscv_build_integer): Likewise.
708 (riscv_split_integer): Likewise.
709 (riscv_legitimate_constant_p): Likewise.
710 (riscv_cannot_force_const_mem): Likewise.
711 (riscv_regno_mode_ok_for_base_p): Likewise.
712 (riscv_valid_base_register_p): Likewise.
713 (riscv_valid_offset_p): Likewise.
714 (riscv_valid_lo_sum_p): Likewise.
715 (riscv_classify_address): Likewise.
716 (riscv_legitimate_address_p): Likewise.
717 (riscv_address_insns): Likewise.
718 (riscv_load_store_insns): Likewise.
719 (riscv_force_binary): Likewise.
720 (riscv_split_symbol): Likewise.
721 (riscv_force_address): Likewise.
722 (riscv_legitimize_address): Likewise.
723 (riscv_move_integer): Likewise.
724 (riscv_legitimize_const_move): Likewise.
725 (riscv_legitimize_move): Likewise.
726 (riscv_address_cost): Likewise.
727 (riscv_subword): Likewise.
728 (riscv_output_move): Likewise.
729 (riscv_canonicalize_int_order_test): Likewise.
730 (riscv_emit_int_order_test): Likewise.
731 (riscv_function_arg_boundary): Likewise.
732 (riscv_pass_mode_in_fpr_p): Likewise.
733 (riscv_pass_fpr_single): Likewise.
734 (riscv_pass_fpr_pair): Likewise.
735 (riscv_get_arg_info): Likewise.
736 (riscv_function_arg): Likewise.
737 (riscv_function_arg_advance): Likewise.
738 (riscv_arg_partial_bytes): Likewise.
739 (riscv_function_value): Likewise.
740 (riscv_pass_by_reference): Likewise.
741 (riscv_setup_incoming_varargs): Likewise.
742 (riscv_print_operand): Likewise.
743 (riscv_elf_select_rtx_section): Likewise.
744 (riscv_save_restore_reg): Likewise.
745 (riscv_for_each_saved_reg): Likewise.
746 (riscv_register_move_cost): Likewise.
747 (riscv_hard_regno_mode_ok_p): Likewise.
748 (riscv_hard_regno_nregs): Likewise.
749 (riscv_class_max_nregs): Likewise.
750 (riscv_memory_move_cost): Likewise.
751 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
752 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
753 (rl78_addr_space_address_mode): Likewise.
754 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
755 Likewise.
756 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
757 (rs6000_reassociation_width): Likewise.
758 (rs6000_invalid_binary_op): Likewise.
759 (fusion_p9_p): Likewise.
760 (emit_fusion_p9_load): Likewise.
761 (emit_fusion_p9_store): Likewise.
762 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
763 (ok_for_simple_move_operands): Likewise.
764 (ok_for_simple_move_strict_operands): Likewise.
765 (ok_for_simple_arith_logic_operands): Likewise.
766 (visium_legitimize_reload_address): Likewise.
767 (visium_select_cc_mode): Likewise.
768 (output_cbranch): Likewise.
769 (visium_split_double_move): Likewise.
770 (visium_expand_copysign): Likewise.
771 (visium_expand_int_cstore): Likewise.
772 (visium_expand_fp_cstore): Likewise.
773 * config/visium/visium.c (visium_pass_by_reference): Likewise.
774 (visium_function_arg): Likewise.
775 (visium_function_arg_advance): Likewise.
776 (visium_libcall_value): Likewise.
777 (visium_setup_incoming_varargs): Likewise.
778 (visium_legitimate_constant_p): Likewise.
779 (visium_legitimate_address_p): Likewise.
780 (visium_legitimize_address): Likewise.
781 (visium_secondary_reload): Likewise.
782 (visium_register_move_cost): Likewise.
783 (visium_memory_move_cost): Likewise.
784 (prepare_move_operands): Likewise.
785 (ok_for_simple_move_operands): Likewise.
786 (ok_for_simple_move_strict_operands): Likewise.
787 (ok_for_simple_arith_logic_operands): Likewise.
788 (visium_function_value_1): Likewise.
789 (rtx_ok_for_offset_p): Likewise.
790 (visium_legitimize_reload_address): Likewise.
791 (visium_split_double_move): Likewise.
792 (visium_expand_copysign): Likewise.
793 (visium_expand_int_cstore): Likewise.
794 (visium_expand_fp_cstore): Likewise.
795 (visium_split_cstore): Likewise.
796 (visium_select_cc_mode): Likewise.
797 (visium_split_cbranch): Likewise.
798 (output_cbranch): Likewise.
799 (visium_print_operand_address): Likewise.
800 * expmed.c (flip_storage_order): Likewise.
801 * expmed.h (emit_cstore): Likewise.
802 (flip_storage_order): Likewise.
803 * genrecog.c (validate_pattern): Likewise.
804 * hsa-gen.c (gen_hsa_addr): Likewise.
805 * internal-fn.c (expand_arith_overflow): Likewise.
806 * ira-color.c (allocno_copy_cost_saving): Likewise.
807 * lra-assigns.c (find_hard_regno_for_1): Likewise.
808 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
809 (process_invariant_for_inheritance): Likewise.
810 * lra-eliminations.c (move_plus_up): Likewise.
811 * omp-low.c (lower_oacc_reductions): Likewise.
812 * simplify-rtx.c (simplify_subreg): Likewise.
813 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
814 (TARGET_CHKP_BOUND_MODE): Likewise..
815 * targhooks.c (default_chkp_bound_mode): Likewise.
816 (default_setup_incoming_vararg_bounds): Likewise.
817 * targhooks.h (default_chkp_bound_mode): Likewise.
818 (default_setup_incoming_vararg_bounds): Likewise.
819 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
820 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
821 (have_whole_vector_shift): Likewise.
822 * tree-vect-stmts.c (vectorizable_load): Likewise.
823 * doc/tm.texi: Regenerate.
824
825 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
826
827 Graceful degrade if Binutils PR21472 is not available.
828
829 PR target/81072
830 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
831 .rodata in flash test fails.
832 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
833 * confgure: Regenerate.
834 * config.in: Regenerate.
835 * config/avr/avr.c (avr_asm_named_section)
836 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
837 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
838 (avr_asm_init_sections): Same.
839
840 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
841
842 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
843 (fma<VH:mode>4_intrinsic): Likewise.
844 (*fmsub<VCVTF:mode>4): Likewise.
845 (*fmsub<VH:mode>4_intrinsic): Likewise.
846
847 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
848
849 PR target/81305
850 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
851 Don't depend on "optimize > 0".
852 (out_movhi_r_mr, out_movqi_mr_r): Same.
853 (out_movhi_mr_r, out_movqi_r_mr): Same.
854 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
855 io_address_operand on "optimize > 0".
856
857 2017-07-05 Bin Cheng <bin.cheng@arm.com>
858
859 * tree-loop-distribution.c: Add general explanantion on the pass.
860 (generate_loops_for_partition): Mark distributed loop.
861 (pg_add_dependence_edges): New parameter. Handle alias data
862 dependence specially and record it in the parameter if asked.
863 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
864 (init_partition_graph_vertices, add_partition_graph_edge): New.
865 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
866 (free_partition_graph_vdata, build_partition_graph): New.
867 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
868 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
869 (data_ref_segment_size, latch_dominated_by_data_ref): New.
870 (compute_alias_check_pairs, version_loop_by_alias_check): New.
871 (version_for_distribution_p, finalize_partitions): New.
872 (distribute_loop): Handle alias data dependence specially. Factor
873 out loop fusion code as functions and call these functions.
874
875 2017-07-05 Bin Cheng <bin.cheng@arm.com>
876
877 * tree-loop-distribution.c (classify_partition): New parameter and
878 better handle reduction statement.
879 (rdg_build_partitions): Revise comment.
880 (distribute_loop): Compute statements in all partitions and pass it
881 to classify_partition.
882
883 2017-07-05 Bin Cheng <bin.cheng@arm.com>
884
885 * tree-loop-distribution.c (enum partition_type): New.
886 (struct partition): New field type.
887 (partition_merge_into): Add parameter. Update partition type.
888 (data_dep_in_cycle_p, update_type_for_merge): New functions.
889 (build_rdg_partition_for_vertex): Compute partition type.
890 (rdg_build_partitions): Dump partition type.
891 (distribute_loop): Update calls to partition_merge_into.
892
893 2017-07-05 Bin Cheng <bin.cheng@arm.com>
894
895 * tree-loop-distribution.c (struct ddr_hasher): New.
896 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
897 (ddrs_table): New.
898 (classify_partition): Call get_data_dependence.
899 (pg_add_dependence_edges): Ditto.
900 (distribute_loop): Release data dependence hash table.
901
902 2017-07-05 Bin Cheng <bin.cheng@arm.com>
903
904 * tree-loop-distribution.c (ref_base_address): Delete.
905 (similar_memory_accesses): Rename ...
906 (share_memory_accesses): ... to this. Check if partitions access
907 the same memory reference.
908 (distribute_loop): Call share_memory_accesses.
909
910 2017-07-05 Bin Cheng <bin.cheng@arm.com>
911
912 * tree-loop-distribution.c (struct partition): New field recording
913 its data reference.
914 (partition_alloc, partition_free): Init and release data refs.
915 (partition_merge_into): Merge data refs.
916 (build_rdg_partition_for_vertex): Collect data refs for partition.
917 (pg_add_dependence_edges): Change parameters from vector to bitmap.
918 Update uses.
919 (distribute_loop): Remve data refs from vertice data of partition
920 graph.
921
922 2017-07-05 Bin Cheng <bin.cheng@arm.com>
923
924 * tree-loop-distribution.c (params.h): Include header file.
925 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
926 (datarefs_vec): New global var.
927 (create_rdg_vertices): Use datarefs_vec directly.
928 (free_rdg): Don't free data references.
929 (build_rdg): Update use. Don't free data references.
930 (distribute_loop): Compute global variable for data references.
931 Bail out if there are too many data references.
932
933 2017-07-05 Bin Cheng <bin.cheng@arm.com>
934
935 * tree-loop-distribution.c (loop_nest): New global var.
936 (build_rdg): Use loop directly, rather than loop nest.
937 (pg_add_dependence_edges): Remove loop nest parameter. Use global
938 variable directly.
939 (distribute_loop): Compute global variable loop nest. Update use.
940
941 2017-07-05 Bin Cheng <bin.cheng@arm.com>
942
943 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
944 (partition_merge_into): New parameter. Dump reason for fusion.
945 (distribute_loop): Update use of partition_merge_into.
946
947 2017-07-05 Bin Cheng <bin.cheng@arm.com>
948
949 * tree-loop-distribution.c (bb_top_order_index): New.
950 (bb_top_order_index_size, bb_top_order_cmp): New.
951 (stmts_from_loop): Use topological order.
952 (pass_loop_distribution::execute): Compute and release topological
953 order for basic blocks.
954
955 2017-07-05 Bin Cheng <bin.cheng@arm.com>
956
957 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
958 if no loops.
959
960 2017-07-05 Bin Cheng <bin.cheng@arm.com>
961
962 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
963 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
964 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
965 * internal-fn.def (LOOP_DIST_ALIAS): New.
966 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
967 (fold_loop_internal_call): ... this.
968 (vect_loop_dist_alias_call): New function.
969 (set_uid_loop_bbs): Call fold_loop_internal_call.
970 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
971 internal calls.
972
973 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
974
975 PR target/81300
976 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
977 Require dead FLAGS_REG at the beginning of a peephole.
978
979 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
980
981 PR target/81294
982 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
983 arguments in the call to __builtin_ia32_sbb_u32.
984 (_subborrow_u64): Swap _X and _Y arguments in the call to
985 __builtin_ia32_sbb_u64.
986
987 2017-07-04 Jakub Jelinek <jakub@redhat.com>
988
989 PR debug/81278
990 * tree-vrp.c (compare_assert_loc): Turn into a function template
991 with stable template parameter. Only test if a->e is NULL,
992 !a->e == !b->e has been verified already. Use e == NULL or
993 e != NULL instead of e or ! e tests. If stable is true, don't use
994 iterative_hash_expr, on the other side allow a or b or both NULL
995 and sort the NULLs last.
996 (process_assert_insertions): Sort using compare_assert_loc<false>
997 instead of compare_assert_loc, later sort using
998 compare_assert_loc<true> before calling process_assert_insertions_for
999 in a loop. Use break instead of continue once seen NULL pointer.
1000
1001 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1002
1003 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
1004 Cortex-R7 and Cortex-R8 processors.
1005
1006 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
1007
1008 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
1009 uninitialized while src is not.
1010
1011 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
1012
1013 * common/config/arm/arm-common.c: Adjust include path for
1014 arm-cpu-cdata.h
1015 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
1016 (arm-cpu.h): Create in build directory. Adjust dependency rules.
1017 (arm-cpu-data.h): Likewise.
1018 (arm-cpu-cdata.h): Likewise.
1019 * config/arm/arm-cpu.h: Delete.
1020 * config/arm/arm-cpu-cdata.h: Delete.
1021 * config/arm/arm-cpu-data.h: Delete.
1022
1023 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
1024
1025 * config/arm/arm-cpus.in (cortex-a55): New.
1026 (cortex-a75): Likewise.
1027 (cortex-a75.cortex-a55): Likewise.
1028 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
1029 cortex-a75.
1030 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
1031 * config/arm/arm-cpu-cdata.h: Regenerate.
1032 * config/arm/arm-cpu-data.h: Regenerate.
1033 * config/arm/arm-cpu.h: Regenerate.
1034 * config/arm/arm-tables.opt: Regenerate.
1035 * config/arm/arm-tune.md: Regenerate.
1036
1037 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
1038
1039 * haifa-sched.c (sched_create_recovery_edges): Update profile.
1040
1041 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
1042
1043 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
1044 probability.
1045
1046 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
1047
1048 PR tree-optimization/81292
1049 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
1050 full_string_p, also call adjust_related_strinfos if the adjustment
1051 is simple, otherwise invalidate related strinfos.
1052
1053 2017-07-04 Martin Liska <mliska@suse.cz>
1054
1055 PR sanitizer/81040
1056 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
1057 newly created variable as DECL_IGNORED_P.
1058
1059 2017-07-04 Martin Liska <mliska@suse.cz>
1060
1061 PR ipa/81293
1062 * ipa-inline.c (inline_small_functions):
1063 Use xstrdup_for_dump.
1064
1065 2017-07-04 Tom de Vries <tom@codesourcery.com>
1066
1067 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
1068
1069 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1070
1071 PR target/81033
1072 * config/darwin.c (darwin_function_switched_text_sections):
1073 Fix spaces.
1074
1075 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
1076
1077 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
1078
1079 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
1080
1081 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
1082
1083 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1084
1085 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
1086 min_profitable_iters, and th as inclusive lower bounds.
1087 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
1088 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
1089 for min_profitable_iters and min_profitable_estimate.
1090 (vect_transform_loop): Treat th as an inclusive lower bound.
1091 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1092
1093 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1094
1095 PR target/81033
1096 * config/darwin.c (darwin_function_switched_text_sections):
1097 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
1098 in two pieces, and suppress the use of buf.
1099
1100 2017-07-03 Nathan Sidwell <nathan@acm.org>
1101
1102 * hash-table.h (hash_table_mod1): Fix indentation.
1103
1104 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1105
1106 PR middle-end/81290
1107 * predict.c (force_edge_cold): Be more careful about propagation
1108 backward.
1109 * profile-count.h (profile_probability::guessed,
1110 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
1111 New.
1112 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
1113
1114 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1115
1116 * doc/invoke.texi (rcpc architecture extension): Document it.
1117
1118 2017-07-03 Richard Biener <rguenther@suse.de>
1119
1120 PR tree-optimization/60510
1121 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
1122 the scalar reduction PHI and use it.
1123 (vectorizable_reduction): Properly guard the single_defuse_cycle
1124 path for non-SLP reduction chains where we cannot use it.
1125 Rework reduc_def/index and vector type deduction. Rework
1126 vector operand gathering during reduction op code-gen.
1127 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
1128 chains dissolve the chain and leave it to non-SLP reduction
1129 handling.
1130
1131 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1132
1133 * tree-data-ref.h (dr_alignment): Declare.
1134 * tree-data-ref.c (dr_alignment): New function.
1135 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
1136 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
1137 set it.
1138 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
1139
1140 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1141
1142 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
1143 and base_misalignment fields.
1144 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
1145 * tree-data-ref.c: Include builtins.h.
1146 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
1147 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
1148 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
1149 * tree-vect-data-refs.c: Include tree-cfg.h.
1150 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
1151 fields instead of calculating an alignment here.
1152 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
1153 innermost_loop_behavior fields.
1154
1155 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1156
1157 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
1158 field.
1159 (DR_STEP_ALIGNMENT): New macro.
1160 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
1161 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
1162 (create_data_ref): Print it.
1163 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
1164 to tell whether the step preserves vector (mis)alignment.
1165 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1166 Move the check for an integer step and generalise to all INTEGER_CST.
1167 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
1168 Print the outer step alignment.
1169
1170 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1171
1172 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
1173 with offset_alignment.
1174 (DR_ALIGNED_TO): Delete.
1175 (DR_OFFSET_ALIGNMENT): New macro.
1176 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
1177 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
1178 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
1179 (create_data_ref): Likewise.
1180 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1181 (vect_analyze_data_refs): Likewise.
1182 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
1183 creating dummy innermost behavior.
1184
1185 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1186
1187 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
1188 with a "innermost_loop_behavior *" and refeence tree.
1189 * tree-data-ref.c (dr_analyze_innermost): Likewise.
1190 (create_data_ref): Update call accordingly.
1191 * tree-predcom.c (find_looparound_phi): Likewise.
1192
1193 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1194
1195 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
1196 fields with dr_wrt_vec_loop.
1197 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
1198 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
1199 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
1200 (vect_dr_behavior): New function.
1201 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
1202 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1203 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
1204 track whether the step preserves the misalignment.
1205 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
1206 Use vect_dr_behavior.
1207 (vect_setup_realignment): Update call accordingly.
1208 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
1209 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
1210 call to vect_create_addr_base_for_vector_ref.
1211 (vect_create_cond_for_align_checks): Likewise.
1212 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
1213 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
1214 (vect_recog_mask_conversion_pattern): Likewise.
1215 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
1216 (new_stmt_vec_info): Remove redundant zeroing.
1217
1218 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
1219
1220 * common/config/arm/arm-common.c (arm_be8_option): New function.
1221 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
1222 (ISA_ARMv6): Add isa_bit_be8.
1223 * config/arm/arm.h (arm_be8_option): Add prototype.
1224 (BE8_SPEC_FUNCTION): New define.
1225 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
1226 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
1227 (mlittle-endian): Similarly.
1228 (mbe8, mbe32): New options.
1229 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
1230 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
1231
1232 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1233
1234 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
1235
1236 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1237
1238 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
1239 (cleanup_tree_cfg_bb): Use it.
1240 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
1241 New functions.
1242 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
1243
1244 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1245
1246 PR bootstrap/81285
1247 * loop-doloop.c (add_test): Update profile.
1248
1249 2017-07-03 Martin Liska <mliska@suse.cz>
1250
1251 PR sanitize/81040
1252 * sanopt.c (rewrite_usage_of_param): New function.
1253 (sanitize_rewrite_addressable_params): Likewise.
1254 (pass_sanopt::execute): Call rewrite_usage_of_param.
1255
1256 2017-07-03 Richard Biener <rguenther@suse.de>
1257
1258 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
1259 back to using VIEW_CONVERT_EXPR.
1260
1261 2017-07-03 Martin Liska <mliska@suse.cz>
1262
1263 PR other/78366
1264 * doc/extend.texi: Document when a resolver function is
1265 generated for target_clones.
1266
1267 2017-07-03 Martin Liska <mliska@suse.cz>
1268
1269 * asan.c (asan_emit_stack_protection): Unpoison just red zones
1270 and shadow memory of auto variables which are subject of
1271 use-after-scope sanitization.
1272 (asan_expand_mark_ifn): Add do set only when is_poison.
1273
1274 2016-07-03 Richard Biener <rguenther@suse.de>
1275
1276 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
1277 reduction PHIs.
1278 (vect_force_simple_reduction): Record reduction def -> phi mapping.
1279 (vectorizable_reduction): Perform reduction PHI creation when
1280 visiting a reduction PHI and adjust and simplify code generation
1281 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
1282 (vect_transform_loop): Visit reduction PHIs.
1283 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
1284 defs into the SLP tree.
1285 (vect_build_slp_tree): Reduction defs terminate the recursion.
1286 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
1287 of reduction defs.
1288 (vect_get_vec_defs_for_stmt_copy): Export.
1289 (vect_get_vec_defs): Likewise.
1290 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
1291 purpose.
1292 (vect_get_vec_defs_for_stmt_copy): Declare.
1293 (vect_get_vec_defs): Likewise.
1294
1295 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1296
1297 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
1298 parameter with a "loop" parameter and use it instead of the
1299 loop containing DR_STMT. Don't check simple_iv when doing
1300 BB analysis. Describe the two analysis modes in the comment.
1301
1302 2017-07-03 Tom de Vries <tom@codesourcery.com>
1303
1304 PR tree-optimization/69468
1305 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
1306 (find_same_succ_bb): Handle ignore_edge_flags.
1307
1308 2017-07-03 Tom de Vries <tom@codesourcery.com>
1309
1310 PR tree-optimization/81192
1311 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
1312 hash.
1313 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
1314 differs.
1315 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
1316
1317 2017-07-03 Tom de Vries <tom@codesourcery.com>
1318
1319 PR tree-optimization/81192
1320 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
1321 BB_SAME_SUCC (bb) == NULL.
1322
1323 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1324
1325 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
1326 consistency.
1327
1328 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1329
1330 * dumpfile.c: Include profile-count.h
1331 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
1332 update profile.
1333 (insert_cond_bb): Update profile.
1334 * tree-cfg.h (insert_cond_bb): Update prototype.
1335 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
1336 * tree-dump.c: Do not include tree-cfg.
1337
1338 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1339
1340 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
1341
1342 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1343
1344 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
1345 bb.
1346
1347 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1348
1349 * tree-complex.c (expand_complex_div_wide): update profile.
1350
1351 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1352 Alan Hayward <alan.hayward@arm.com>
1353 David Sherwood <david.sherwood@arm.com>
1354
1355 * Makefile.in (MACHMODE_H): Remove insn-modes.h
1356 (CORETYPES_H): New define.
1357 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
1358 (insn-modes-inline.h, s-modes-inline-h): New rules.
1359 (generated_files): Add insn-modes-inline.h.
1360 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
1361 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
1362 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
1363 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
1364 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
1365 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
1366 (build/gencodes.o, build/genconditions.o): Likewise.
1367 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
1368 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
1369 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
1370 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
1371 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
1372 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
1373 * coretypes.h: Include everything up to real.h for generators.
1374 Include insn-modes.h first. Include wide-int-print.h after
1375 wide-int.h. Include insn-modes-inline.h and then machmode.h.
1376 * machmode.h: Don't include insn-modes.h here.
1377 * function-tests.c: Remove includes of signop.h, machmode.h,
1378 double-int.h and wide-int.h.
1379 * rtl.h: Likewise.
1380 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
1381 and wide-int.h.
1382 * optc-save-gen.awk: Likewise.
1383 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
1384 * godump.c: Remove include of wide-int-print.h.
1385 * pretty-print.h: Likewise.
1386 * wide-int-print.cc: Likewise.
1387 * wide-int.cc: Likewise.
1388 * hash-map-tests.c: Remove include of signop.h.
1389 * hash-set-tests.c: Likewise.
1390 * rtl-tests.c: Likewise.
1391 * mkconfig.sh: Remove include of machmode.h.
1392 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
1393 into...
1394 (emit_insn_modes_inline_h): ...this new function. Emit the code
1395 into an insn-modes-inline.h header file, adding appropriate
1396 include guards and end comments.
1397 (emit_insn_modes_c_header): Remove include of machmode.h.
1398 (emit_min_insn_modes_c_header): Include coretypes.h rather than
1399 machmode.h.
1400 (main): Handle -i flag and call emit_insn_modes_inline_h when
1401 it is passed.
1402
1403 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1404
1405 * tree-ssa-strlen.c (strinfo): Rename the length field to
1406 nonzero_chars. Add a full_string_p field.
1407 (compare_nonzero_chars, zero_length_string_p): New functions.
1408 (get_addr_stridx): Add an offset_out parameter.
1409 Use compare_nonzero_chars.
1410 (get_stridx): Update accordingly. Use compare_nonzero_chars.
1411 (new_strinfo): Update after above changes to strinfo.
1412 (set_endptr_and_length): Set full_string_p.
1413 (get_string_length): Update after above changes to strinfo.
1414 (unshare_strinfo): Update call to new_strinfo.
1415 (maybe_invalidate): Likewise.
1416 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
1417 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
1418 as a uhwi instead of an shwi. Update after above changes to
1419 strinfo and new_strinfo.
1420 (zero_length_string): Assert that chainsi contains full strings.
1421 Use zero_length_string_p. Update call to new_strinfo.
1422 (adjust_related_strinfos): Update after above changes to strinfo.
1423 Copy full_string_p from origsi.
1424 (adjust_last_stmt): Use zero_length_string_p.
1425 (handle_builtin_strlen): Update after above changes to strinfo and
1426 new_strinfo. Install the lhs as the string length if the previous
1427 entry didn't describe a full string.
1428 (handle_builtin_strchr): Update after above changes to strinfo
1429 and new_strinfo.
1430 (handle_builtin_strcpy): Likewise.
1431 (handle_builtin_strcat): Likewise.
1432 (handle_builtin_malloc): Likewise.
1433 (handle_pointer_plus): Likewise.
1434 (handle_builtin_memcpy): Likewise. Track nonzero characters
1435 that aren't necessarily followed by a nul terminator.
1436 (handle_char_store): Likewise.
1437
1438 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1439
1440 PR tree-optimization/80769
1441 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
1442 for malloc and calloc. Document the new invariant that all related
1443 strinfos have delayed lengths or none do.
1444 (verify_related_strinfos): Move earlier in file.
1445 (set_endptr_and_length): New function, split out from...
1446 (get_string_length): ...here. Also set the lengths of related
1447 strinfos.
1448 (zero_length_string): Assert that chainsi has known (rather than
1449 delayed) lengths.
1450 (adjust_related_strinfos): Likewise.
1451
1452 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1453
1454 PR tree-optimization/81136
1455 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
1456 assert that two references with the same misalignment have the same
1457 compile-time misalignment if those compile-time misalignments
1458 are known.
1459
1460 2017-07-01 Andi Kleen <ak@linux.intel.com>
1461
1462 * print-tree.c (print_node): Print all attributes.
1463
1464 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1465
1466 * cfg.c (scale_bbs_frequencies): New function.
1467 * cfg.h (scale_bbs_frequencies): Declare it.
1468 * cfgloopanal.c (single_likely_exit): Cleanup.
1469 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
1470 as parameter.
1471 (scale_loop_profile): Likewise.
1472 (loop_version): Likewise.
1473 (create_empty_loop_on_edge): Update.
1474 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
1475 scale_loop_frequencies, scale_loop_profile, loopify,
1476 loop_version): Update prototypes.
1477 * modulo-sched.c (sms_schedule): Update.
1478 * predict.c (unlikely_executed_edge_p): Also check probability.
1479 (probably_never_executed_edge_p): Fix typo.
1480 * tree-if-conv.c (version_loop_for_if_conversion): Update.
1481 * tree-parloops.c (gen_parallel_loop): Update.
1482 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
1483 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1484 * tree-ssa-loop-split.c (split_loop): Update.
1485 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1486 * tree-vect-loop-manip.c (vect_do_peeling): Update.
1487 (vect_loop_versioning): Update.
1488 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1489
1490 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1491
1492 * trans-mem.c (split_bb_make_tm_edge): Update profile.
1493
1494 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1495
1496 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
1497 to keep profile consistent.
1498
1499 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1500
1501 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
1502 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1503 * profile-count.h (max_safe_multiplier): Make unsigned.
1504 (profile_count::guessed_zero): New.
1505
1506 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1507
1508 * bb-reorder.c (fix_up_crossing_landing_pad,
1509 fix_crossing_conditional_branches): Use make_single_succ_edge
1510 to keep profile consistent.
1511
1512 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1513
1514 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
1515 to update profile.
1516
1517 2017-07-01 Jakub Jelinek <jakub@redhat.com>
1518
1519 PR sanitizer/81262
1520 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
1521 the right scopes, make sure cond_jump isn't preserved between multiple
1522 iterations. Search for fallthru edge whenever there are 3+ edges and
1523 use find_fallthru_edge for it.
1524
1525 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1526
1527 Patch by Alexander Monakov <amonakov@ispras.ru>
1528 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
1529 probabilities consistently.
1530
1531 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1532
1533 * pa.c (pa_expand_compare_and_swap_loop): Update call of
1534 emit_cmp_and_jump_insns.
1535
1536 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1537
1538 PR ipa/81261
1539 * tree-inline.c (expand_call_inline): Combine profile statuses.
1540
1541 2017-06-30 Andrew Pinski <apinski@cavium.com>
1542
1543 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
1544 fold_stmt returned true.
1545
1546 2017-06-30 Nathan Sidwell <nathan@acm.org>
1547
1548 * ggc.h (empty_string): Delete.
1549 * cfgexpand.c (expand_asm_stmt): Use plain "".
1550 * optabs.c (expand_asm_memory_barrier): Likewise.
1551 * stringpool.c (empty_string): Delete.
1552 (digit_vector, digit_string): Delete.
1553 (ggc_alloc_string): Use plain "", don't optimize single digit
1554 strings. Use ggc_alloc_atomic.
1555
1556 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
1557
1558 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
1559 comparison set and one other set, use the cost of the non-comparison
1560 set.
1561
1562 2017-06-30 Nathan Sidwell <nathan@acm.org>
1563
1564 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
1565 some formatting.
1566
1567 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
1568
1569 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
1570 loops. Remove now unneeded calls to gimple_switch_set_label() that
1571 just set removed labels to NULL_TREE.
1572
1573 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
1574
1575 * tree-ssanames.c (set_range_info_raw): Abstract from ...
1576 (set_range_info): ...here. Only call set_range_info_raw if domain
1577 is useful.
1578 (set_nonzero_bits): Call set_range_info_raw.
1579 * tree-ssanames.h (set_range_info_raw): New.
1580
1581 2017-06-30 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR target/81225
1584 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
1585 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
1586 of nonimmediate_operand and <store_mask_constraint> instead of m
1587 for the input operand. For V8FI iterator, always split if input
1588 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
1589 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
1590 <store_mask_predicate> instead of register_operand and
1591 <store_mask_constraint> instead of v for the input operand. Make
1592 sure both operands aren't MEMs for if not <mask_applied>.
1593
1594 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
1595
1596 * lto-wrapper.c (copy_file) Close both file descriptors before
1597 exiting normally.
1598
1599 2017-06-30 Martin Liska <mliska@suse.cz>
1600
1601 PR ipa/81214
1602 * multiple_target.c (create_dispatcher_calls): Make ifunc
1603 also for function that don't have calls or are not referenced.
1604
1605 2017-06-30 Richard Biener <rguenther@suse.de>
1606
1607 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
1608 analyze the first scalar stmt. Move vector type computation
1609 for the BB case here from ...
1610 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
1611 live operation processing in the SLP case properly.
1612
1613 2017-06-30 Richard Biener <rguenther@suse.de>
1614
1615 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
1616
1617 2017-06-30 Martin Liska <mliska@suse.cz>
1618
1619 PR sanitizer/81021
1620 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
1621 before BUILT_IN_UNWIND_RESUME when ASAN is used.
1622
1623 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
1624
1625 * doc/invoke.texi (AArch64): Add missing options and remove redundant
1626 ones.
1627
1628 2017-06-30 Richard Biener <rguenther@suse.de>
1629
1630 PR tree-optimization/81249
1631 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
1632 condition reduction result to original scalar type.
1633
1634 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1635
1636 * profile-count.h (enum profile_quality): Fix typos and whitespace
1637 issues.
1638
1639 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1640
1641 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
1642 type for branch probabilities.
1643
1644 2017-06-29 Julian Brown <julian@codesourcery.com>
1645 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1646
1647 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
1648 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
1649 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
1650 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
1651
1652 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1653
1654 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
1655 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
1656 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
1657 CC usage from generic code to here.
1658 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
1659 CC usage into the target macros.
1660
1661 2017-06-29 Maya Rashish <coypu@sdf.org>
1662
1663 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
1664 objects.
1665
1666 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1667
1668 * arm/arm-builtins.c: Include profile-count.h
1669 * except.c (sjlj_emit_function_enter): Use
1670 profile_probability::unlikely.
1671
1672 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1673
1674 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
1675 and tocrel_offset be pointer args rather than implicitly using
1676 static versions.
1677 (legitimate_constant_pool_address_p, rs6000_emit_move,
1678 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
1679 tocrel_offset and use in toc_relative_expr_p call.
1680 (print_operand, print_operand_address): Use static tocrel_base_oac
1681 and tocrel_offset_oac.
1682 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
1683 tocrel_offset_oac.
1684
1685 2017-06-29 Maya Rashish <coypu@sdf.org>
1686
1687 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
1688
1689 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
1690
1691 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
1692 objects, take into account only the alignment of 'op0' and 'mode1' if
1693 'op0' is a MEM.
1694
1695 2017-06-29 Steve Ellcey <sellcey@cavium.com>
1696
1697 * ccmp.c (ccmp_tree_comparison_p): New function.
1698 (ccmp_candidate_p): Update to use above function.
1699 (get_compare_parts): New function.
1700 (expand_ccmp_next): Update to use new functions.
1701 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
1702 new functions.
1703 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
1704 take mode as argument.
1705 * ccmp.h (expand_ccmp_expr): Add mode as argument.
1706 * expr.c (expand_expr_real_1): Pass mode as argument.
1707
1708 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
1709
1710 * combine.c (combine_instructions): Print insns to dump_file, together
1711 with their costs.
1712
1713 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1714
1715 * asan.c (asan_emit_stack_protection): Update.
1716 (create_cond_insert_point): Update.
1717 * auto-profile.c (afdo_propagate_circuit): Update.
1718 * basic-block.h (struct edge_def): Turn probability to
1719 profile_probability.
1720 (EDGE_FREQUENCY): Update.
1721 * bb-reorder.c (find_traces_1_round): Update.
1722 (better_edge_p): Update.
1723 (sanitize_hot_paths): Update.
1724 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
1725 (make_single_succ_edge): Update.
1726 (check_bb_profile): Update.
1727 (dump_edge_info): Update.
1728 (update_bb_profile_for_threading): Update.
1729 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
1730 probabilitycount to 0.
1731 * cfgbuild.c (compute_outgoing_frequencies): Update.
1732 * cfgcleanup.c (try_forward_edges): Update.
1733 (outgoing_edges_match): Update.
1734 (try_crossjump_to_edge): Update.
1735 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
1736 (expand_gimple_tailcall): Update.
1737 (construct_init_block): Use make_single_succ_edge.
1738 (construct_exit_block): Use make_single_succ_edge.
1739 * cfghooks.c (verify_flow_info): Update.
1740 (redirect_edge_succ_nodup): Update.
1741 (split_edge): Update.
1742 (account_profile_record): Update.
1743 * cfgloopanal.c (single_likely_exit): Update.
1744 * cfgloopmanip.c (scale_loop_profile): Update.
1745 (set_zero_probability): Remove.
1746 (duplicate_loop_to_header_edge): Update.
1747 * cfgloopmanip.h (loop_version): Update prototype.
1748 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
1749 (force_nonfallthru_and_redirect): Update.
1750 (update_br_prob_note): Update.
1751 (rtl_verify_edges): Update.
1752 (purge_dead_edges): Update.
1753 (rtl_lv_add_condition_to_bb): Update.
1754 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
1755 * cgraphunit.c (init_lowered_empty_function): Update.
1756 (cgraph_node::expand_thunk): Update.
1757 * cilk-common.c: Include profile-count.h
1758 * dojump.c (inv): Remove.
1759 (jumpifnot): Update.
1760 (jumpifnot_1): Update.
1761 (do_jump_1): Update.
1762 (do_jump): Update.
1763 (do_jump_by_parts_greater_rtx): Update.
1764 (do_compare_rtx_and_jump): Update.
1765 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
1766 do_jump_1. do_compare_rtx_and_jump): Update prototype.
1767 * dwarf2cfi.c: Include profile-count.h
1768 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
1769 (sjlj_emit_dispatch_table): Likewise.
1770 * explow.c: Include profile-count.h
1771 * expmed.c (emit_store_flag_force): Update.
1772 (do_cmp_and_jump): Update.
1773 * expr.c (compare_by_pieces_d::generate): Update.
1774 (compare_by_pieces_d::finish_mode): Update.
1775 (emit_block_move_via_loop): Update.
1776 (store_expr_with_bounds): Update.
1777 (store_constructor): Update.
1778 (expand_expr_real_2): Update.
1779 (expand_expr_real_1): Update.
1780 * expr.h (try_casesi, try_tablejump): Update prototypes.
1781 * gimple-pretty-print.c (dump_probability): Update.
1782 (dump_profile): New.
1783 (dump_gimple_label): Update.
1784 (dump_gimple_bb_header): Update.
1785 * graph.c (draw_cfg_node_succ_edges): Update.
1786 * hsa-gen.c (convert_switch_statements): Update.
1787 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
1788 (find_if_case_1): Update.
1789 (find_if_case_2): Update.
1790 * internal-fn.c (expand_arith_overflow_result_store): Update.
1791 (expand_addsub_overflow): Update.
1792 (expand_neg_overflow): Update.
1793 (expand_mul_overflow): Update.
1794 (expand_vector_ubsan_overflow): Update.
1795 * ipa-cp.c (good_cloning_opportunity_p): Update.
1796 * ipa-split.c (split_function): Use make_single_succ_edge.
1797 * ipa-utils.c (ipa_merge_profiles): Update.
1798 * loop-doloop.c (add_test): Update.
1799 (doloop_modify): Update.
1800 * loop-unroll.c (compare_and_jump_seq): Update.
1801 (unroll_loop_runtime_iterations): Update.
1802 * lra-constraints.c (lra_inheritance): Update.
1803 * lto-streamer-in.c (input_cfg): Update.
1804 * lto-streamer-out.c (output_cfg): Update.
1805 * mcf.c (adjust_cfg_counts): Update.
1806 * modulo-sched.c (sms_schedule): Update.
1807 * omp-expand.c (expand_omp_for_init_counts): Update.
1808 (extract_omp_for_update_vars): Update.
1809 (expand_omp_ordered_sink): Update.
1810 (expand_omp_for_ordered_loops): Update.
1811 (expand_omp_for_generic): Update.
1812 (expand_omp_for_static_nochunk): Update.
1813 (expand_omp_for_static_chunk): Update.
1814 (expand_cilk_for): Update.
1815 (expand_omp_simd): Update.
1816 (expand_omp_taskloop_for_outer): Update.
1817 (expand_omp_taskloop_for_inner): Update.
1818 * omp-simd-clone.c (simd_clone_adjust): Update.
1819 * optabs.c (expand_doubleword_shift): Update.
1820 (expand_abs): Update.
1821 (emit_cmp_and_jump_insn_1): Update.
1822 (expand_compare_and_swap_loop): Update.
1823 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
1824 * predict.c (predictable_edge_p): Update.
1825 (edge_probability_reliable_p): Update.
1826 (set_even_probabilities): Update.
1827 (combine_predictions_for_insn): Update.
1828 (combine_predictions_for_bb): Update.
1829 (propagate_freq): Update.
1830 (estimate_bb_frequencies): Update.
1831 (force_edge_cold): Update.
1832 * profile-count.c (profile_count::dump): Add missing space into dump.
1833 (profile_count::debug): Add newline.
1834 (profile_count::differs_from_p): Explicitly convert to unsigned.
1835 (profile_count::stream_in): Update.
1836 (profile_probability::dump): New member function.
1837 (profile_probability::debug): New member function.
1838 (profile_probability::differs_from_p): New member function.
1839 (profile_probability::differs_lot_from_p): New member function.
1840 (profile_probability::stream_in): New member function.
1841 (profile_probability::stream_out): New member function.
1842 * profile-count.h (profile_count_quality): Rename to ...
1843 (profile_quality): ... this one.
1844 (profile_probability): New.
1845 (profile_count): Update.
1846 * profile.c (compute_branch_probabilities): Update.
1847 * recog.c (peep2_attempt): Update.
1848 * sched-ebb.c (schedule_ebbs): Update.
1849 * sched-rgn.c (find_single_block_region): Update.
1850 (compute_dom_prob_ps): Update.
1851 (schedule_region): Update.
1852 * sel-sched-ir.c (compute_succs_info): Update.
1853 * stmt.c (struct case_node): Update.
1854 (do_jump_if_equal): Update.
1855 (get_outgoing_edge_probs): Update.
1856 (conditional_probability): Update.
1857 (emit_case_dispatch_table): Update.
1858 (expand_case): Update.
1859 (expand_sjlj_dispatch_table): Update.
1860 (emit_case_nodes): Update.
1861 * targhooks.c: Update.
1862 * tracer.c (better_p): Update.
1863 (find_best_successor): Update.
1864 * trans-mem.c (expand_transaction): Update.
1865 * tree-call-cdce.c: Update.
1866 * tree-cfg.c (gimple_split_edge): Upate.
1867 (move_sese_region_to_fn): Upate.
1868 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
1869 * tree-eh.c (lower_resx): Upate.
1870 (cleanup_empty_eh_move_lp): Upate.
1871 * tree-if-conv.c (version_loop_for_if_conversion): Update.
1872 * tree-inline.c (copy_edges_for_bb): Update.
1873 (copy_cfg_body): Update.
1874 * tree-parloops.c (gen_parallel_loop): Update.
1875 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
1876 (gimple_gen_time_profiler): Update.
1877 * tree-ssa-dce.c (remove_dead_stmt): Update.
1878 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1879 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
1880 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
1881 (unloop_loops): Update.
1882 (try_peel_loop): Update.
1883 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1884 * tree-ssa-loop-split.c (connect_loops): Update.
1885 (split_loop): Update.
1886 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1887 (hoist_guard): Update.
1888 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
1889 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
1890 (value_replacement): Update.
1891 * tree-ssa-reassoc.c (branch_fixup): Update.
1892 * tree-ssa-tail-merge.c (replace_block_by): Update.
1893 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
1894 (create_edge_and_update_destination_phis): Update.
1895 (compute_path_counts): Update.
1896 (recompute_probabilities): Update.
1897 (update_joiner_offpath_counts): Update.
1898 (freqs_to_counts_path): Update.
1899 (duplicate_thread_path): Update.
1900 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
1901 (struct switch_conv_info): Update.
1902 (gen_inbound_check): Update.
1903 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1904 (vect_do_peeling): Update.
1905 (vect_loop_versioning): Update.
1906 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1907 (optimize_mask_stores): Update.
1908 * ubsan.c (ubsan_expand_null_ifn): Update.
1909 * value-prof.c (gimple_divmod_fixed_value): Update.
1910 (gimple_divmod_fixed_value_transform): Update.
1911 (gimple_mod_pow2): Update.
1912 (gimple_mod_pow2_value_transform): Update.
1913 (gimple_mod_subtract): Update.
1914 (gimple_mod_subtract_transform): Update.
1915 (gimple_ic): Update.
1916 (gimple_stringop_fixed_value): Update.
1917 (gimple_stringops_transform): Update.
1918 * value-prof.h: Update.
1919
1920 2017-06-29 Carl Love <cel@us.ibm.com>
1921
1922 * config/rs6000/rs6000-c.c: Add support for built-in functions
1923 vector signed int vec_signed (vector float);
1924 vector signed long long vec_signed (vector double);
1925 vector signed int vec_signed2 (vector double, vector double);
1926 vector signed int vec_signede (vector double);
1927 vector signed int vec_signedo (vector double);
1928 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
1929 instruction generator.
1930 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1931 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
1932 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
1933 Add define_insn.
1934 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
1935 vunsignede_v2df): Add define_expands.
1936 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
1937 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
1938 VEC_UNSIGNEDO): Add definitions.
1939 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1940 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
1941 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
1942 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
1943 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
1944 * config/rs6000/altivec.h (vec_signed, vec_signed2,
1945 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
1946 vec_unsignede, vec_unsignedo): Add builtin defines.
1947 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
1948 declaration.
1949 * doc/extend.texi: Update the built-in documentation file for the
1950 new built-in functions.
1951
1952 2017-06-29 Richard Biener <rguenther@suse.de>
1953
1954 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
1955 reduction chains to LOOP_VINFO_REDUCTIONS.
1956 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
1957 SLP reductions after processing reduction chains.
1958
1959 2017-06-29 Nathan Sidwell <nathan@acm.org>
1960
1961 * builtins.c (fold_builtin_FUNCTION): Use
1962 lang_hooks.decl_printable_name.
1963
1964 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
1965
1966 PR middle-end/81194
1967 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
1968 with only one label.
1969 * stmt.c (expand_case): Assert NCASES is greater than one.
1970
1971 2017-06-29 Richard Biener <rguenther@suse.de>
1972
1973 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
1974 anything.
1975 (group_case_labels): Likewise.
1976 (find_taken_edge): Push sanity checking on val to workers...
1977 (find_taken_edge_cond_expr): ... here
1978 (find_taken_edge_switch_expr): ... and here, handle cases
1979 with just a default label.
1980 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
1981 (group_case_labels): Likewise.
1982 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
1983 group_case_labels does anything cleanup the CFG again.
1984
1985 2017-06-29 Bin Cheng <bin.cheng@arm.com>
1986
1987 PR tree-optimization/81196
1988 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
1989 exit condition comparing two IVs.
1990
1991 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
1992
1993 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
1994 profile to the dummy entry at the end of the list of architectures.
1995 * config/arm/arm-cpu-cdata.h: Regenerated.
1996
1997 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1998 Michael Collison <michael.collison@arm.com>
1999
2000 PR target/70119
2001 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
2002 New pattern.
2003 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
2004 (*aarch64_reg_<mode>3_minus_mask): New pattern.
2005 (*aarch64_<optab>_reg_di3_mask2): New pattern.
2006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
2007 of shift when the shift amount is masked with constant equal to
2008 the size of the mode.
2009 * config/aarch64/predicates.md (subreg_lowpart_operator): New
2010 predicate.
2011
2012 2017-06-29 Martin Liska <mliska@suse.cz>
2013
2014 * config/i386/i386.opt: Change range from [1,5] to [0,5].
2015
2016 2017-06-29 Yury Gribov <tetra2005@gmail.com>
2017
2018 PR bootstrap/80565
2019 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
2020 code.
2021 * ipa-inline.h
2022 (edge_growth_cache_entry::edge_growth_cache_entry): New
2023 function.
2024 (reset_edge_growth_cache): Update to use constructor.
2025
2026 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2027
2028 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
2029 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
2030 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
2031
2032 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
2033
2034 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
2035 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
2036
2037 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
2038
2039 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
2040 (*-linux-uclibc*): Add t-uclibc tmake_file.
2041 * config/t-musl: New.
2042 * config/t-uclibc: New.
2043
2044 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
2045
2046 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
2047 context.
2048 (gen_comm_data): Emit architectural setting of arch_prof.
2049 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
2050 profile.
2051 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
2052 (armv8-m.base, armv8-m.main): Likewise.
2053 * arm-protos.h (arm_build_target): Add profile field.
2054 (arch_option): Likewise.
2055 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
2056 the active target.
2057 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
2058 arm_active_target.profile.
2059
2060 2017-06-28 Richard Biener <rguenther@suse.de>
2061
2062 PR middle-end/81227
2063 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
2064 TYPE_OVERFLOW_WRAPS.
2065 * match.pd (negate_expr_p): Likewise.
2066 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
2067 fold_build2, not fold_binary.
2068
2069 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2070
2071 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
2072 Convert memory address to Pmode.
2073 (aarch64_print_operand): Assert MEM operands are always Pmode.
2074
2075 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2076
2077 PR target/79665
2078 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
2079 Remove redundant if.
2080 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
2081 * config/arm/aarch-common-protos.h
2082 (aarch_forward_to_shift_is_not_shifted_re): Remove.
2083 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
2084
2085 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2086
2087 PR ipa/81238
2088 * multiple_target.c (create_dispatcher_calls): Set the default
2089 clone to be static, not public.
2090
2091 2017-06-28 Richard Biener <rguenther@suse.de>
2092
2093 * tree-vect-loop.c (vectorizable_reduction): Move special
2094 cond reduction IV var creation ...
2095 (vect_create_epilog_for_reduction): ... here. Remove induction_index
2096 parameter. Use STMT_VINFO_VECTYPE.
2097 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
2098 constant_p.
2099
2100 2017-06-28 Martin Liska <mliska@suse.cz>
2101
2102 PR ipa/81128
2103 * ipa-visibility.c (non_local_p): Handle visibility.
2104
2105 2017-06-28 Martin Liska <mliska@suse.cz>
2106
2107 PR driver/79659
2108 * common.opt: Add IntegerRange to various options.
2109 * opt-functions.awk (integer_range_info): New function.
2110 * optc-gen.awk: Add integer_range_info to cl_options struct.
2111 * opts-common.c (decode_cmdline_option): Handle
2112 CL_ERR_INT_RANGE_ARG.
2113 (cmdline_handle_error): Likewise.
2114 * opts.c (print_filtered_help): Show valid interval in
2115 when --help is provided.
2116 * opts.h (struct cl_option): Add range_min and range_max fields.
2117 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
2118
2119 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
2120
2121 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
2122 (x * C EQ/NE y * C): New transformation.
2123
2124 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
2125
2126 * genmultilib (combination_space): Accept '+' in option names.
2127
2128 2017-06-28 Martin Liska <mliska@suse.cz>
2129
2130 PR sanitizer/81224
2131 * asan.c (instrument_derefs): Bail out inner references
2132 that are hard register variables.
2133
2134 2017-06-28 Jakub Jelinek <jakub@redhat.com>
2135
2136 PR target/81175
2137 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
2138 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
2139
2140 2017-06-28 Richard Biener <rguenther@suse.de>
2141
2142 * tree-vectorizer.h (vect_get_vec_defs): Remove.
2143 (vect_get_slp_defs): Adjust.
2144 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
2145 out from ...
2146 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
2147 simplify.
2148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2149 get_initial_defs_for_reduction instead of vect_get_vec_defs.
2150 (vectorizable_reduction): Adjust.
2151 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
2152 handling.
2153 (vect_get_slp_defs): Likewise.
2154 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
2155 (vectorizable_bswap): Adjust.
2156 (vectorizable_call): Likewise.
2157 (vectorizable_conversion): Likewise.
2158 (vectorizable_assignment): Likewise.
2159 (vectorizable_shift): Likewise.
2160 (vectorizable_operation): Likewise.
2161 (vectorizable_store): Likewise.
2162 (vectorizable_condition): Likewise.
2163 (vectorizable_comparison): Likewise.
2164
2165 2017-06-28 Michael Collison <michael.collison@arm.com>
2166
2167 PR target/68535
2168 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
2169 set of base_reg
2170 (arm_gen_movmemqi): Removed unused variable 'i'.
2171 Convert 'for' loop into 'while' loop.
2172 (arm_expand_prologue): Remove last unnecessary set of insn.
2173 (thumb_pop): Remove unused variable 'pushed_words'.
2174 (thumb_exit): Remove last unnecessary set of regs_to_pop.
2175
2176 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2177
2178 * config/s390/predicates.md: Use s390_rel_address_ok_p.
2179 * config/s390/s390-protos.h: Add prototype of
2180 s390_rel_address_ok_p.
2181 * config/s390/s390.c (s390_got_symbol): New function.
2182 (s390_rel_address_ok_p): New function.
2183 (legitimize_pic_address): Use s390_rel_address_ok_p.
2184 (s390_load_got): Use s390_got_symbol.
2185 (s390_option_override): Issue error if
2186 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
2187 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2188 New macro.
2189 * config/s390/s390.opt: New option mpic-data-is-text-relative.
2190
2191 2017-06-27 Andrew Pinski <apinski@cavium.com>
2192
2193 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
2194 (X * copysign (1.0, X)): New pattern.
2195 (X * copysign (1.0, -X)): New pattern.
2196 (copysign (-1.0, CST)): New pattern.
2197
2198 2017-06-27 Joseph Myers <joseph@codesourcery.com>
2199
2200 * genmultilib (combination_space): Remove variable.
2201 Validate reuse rules against regular expression for any sequence
2202 of multilib options in any order.
2203
2204 2017-06-27 Michael Collison <michael.collison@arm.com>
2205
2206 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
2207 call aarch64_split_simd_combine.
2208 * (aarch64_combine_internal<mode>): Delete pattern.
2209 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
2210 Allow register and subreg operands.
2211
2212 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2213
2214 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
2215 specific need, just fallback on defaults.
2216 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
2217
2218 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2219 Olivier Hainque <hainque@adacore.com>
2220
2221 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
2222 map for 64bits.
2223 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
2224 targets. Pick a default if no particular attempt applied.
2225 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
2226 larger contexts.
2227
2228 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2229
2230 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
2231 (x86_64-wrs-vxworks7): Likewise.
2232
2233 2017-06-27 Marek Polacek <polacek@redhat.com>
2234
2235 PR sanitizer/81223
2236 * ubsan.c (instrument_null): Check get_base_address's result for null.
2237
2238 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
2239
2240 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
2241
2242 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
2243
2244 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
2245 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
2246 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
2247 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
2248 New function types.
2249 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
2250 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
2251 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
2252 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
2253 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
2254 BUILT_IN_FEUPDATEENV): New builtins.
2255 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
2256 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
2257 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
2258 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
2259 macros.
2260 (builtin_structptr_types): Adjust size.
2261 * tree.c (builtin_structptr_types): Add four entries.
2262
2263 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2264 Olivier Hainque <hainque@adacore.com>
2265
2266 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
2267 (TLS_SYM): New local macro, forcing reference to __tls__ on
2268 link command lines for VxWorks 7 RTPs, triggering initialization
2269 of tlsLib.
2270 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
2271 OS features TLS support, true for RTPs on VxWorks 7.
2272 * config/vxworks.c (vxworks_override_options): Setup emutls
2273 accordingly.
2274
2275 2017-06-27 Jakub Jelinek <jakub@redhat.com>
2276
2277 * predict.c (test_prediction_value_range): Use -1U instead of -1
2278 to avoid narrowing conversion warning.
2279 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
2280 to avoid narrowing conversion warning.
2281 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
2282 -1.
2283 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
2284
2285 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2286
2287 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
2288 64bit configurations.
2289 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
2290 (SIZE_TYPE): Likewise.
2291 * config/vxworks.c (vxworks_emutls_var_fields): Use
2292 long_unsigned_type_node instead of unsigned_type_node as the offset
2293 field type, which is "pointer" mode in emutls.c.
2294
2295 2017-06-27 Jakub Jelinek <jakub@redhat.com>
2296
2297 PR sanitizer/81209
2298 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
2299
2300 PR middle-end/81207
2301 * gimple-fold.c (replace_call_with_call_and_fold): Handle
2302 gimple_vuse copying separately from gimple_vdef copying.
2303
2304 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2305
2306 * value-prof.c (free_hist): Remove call to memset and the enclosing if
2307 condition.
2308
2309 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
2310 Olivier Hainque <hainque@adacore.com>
2311
2312 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
2313 for all vxworks7 targets.
2314 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
2315 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
2316 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
2317 variations for VX6/VX7 and 32/64bits later on in ...
2318 (VXWORKS_LIB_SPEC): Leverage new macros.
2319 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
2320 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
2321
2322 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
2323
2324 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
2325 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
2326
2327 2017-06-26 Carl Love <cel@us.ibm.com>
2328
2329 * config/rs6000/rs6000-c.c: Add support for built-in functions
2330 vector bool char vec_reve (vector bool char);
2331 vector signed char vec_reve (vector signed char);
2332 vector unsigned char vec_reve (vector unsigned char);
2333 vector bool int vec_reve (vector bool int);
2334 vector signed int vec_reve (vector signed int);
2335 vector unsigned int vec_reve (vector unsigned int);
2336 vector bool long long vec_reve (vector bool long long);
2337 vector signed long long vec_reve (vector signed long long);
2338 vector unsigned long long vec_reve (vector unsigned long long);
2339 vector bool short vec_reve (vector bool short);
2340 vector signed short vec_reve (vector signed short);
2341 vector double vec_reve (vector double);
2342 vector float vec_reve (vector float);
2343 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
2344 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
2345 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
2346 (altivec_vreve): New pattern.
2347 * config/rs6000/altivec.h (vec_reve): New define.
2348 * doc/extend.texi (vec_rev): Update the built-in documentation file
2349 for the new built-in functions.
2350
2351 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2352
2353 PR tree-optimization/71815
2354 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
2355 function.
2356 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
2357 has_single_use.
2358 (slsr_process_phi): Likewise.
2359 (replace_uncond_cands_and_profitable_phis): Don't replace a
2360 multiply candidate with a stride of 1 (copy or cast).
2361 (phi_incr_cost): Call uses_consumed_by_stmt rather than
2362 has_single_use.
2363 (lowest_cost_path): Likewise.
2364 (total_savings): Likewise.
2365
2366 2017-06-26 Richard Biener <rguenther@suse.de>
2367
2368 PR target/81175
2369 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
2370 Use def_builtin_pure for all gather builtins.
2371
2372 2017-06-26 Richard Biener <rguenther@suse.de>
2373
2374 PR tree-optimization/81203
2375 * tree-tailcall.c (find_tail_calls): Do not move stmts into
2376 non-dominating BBs.
2377
2378 2017-06-26 Marek Polacek <polacek@redhat.com>
2379
2380 PR c/80116
2381 * doc/invoke.texi: Document -Wmultistatement-macros.
2382
2383 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
2384
2385 * doc/sourcebuild.texi (ARM-specific attributes): Document new
2386 arm_neon_ok_no_float_abi effective target.
2387
2388 2017-06-26 Richard Biener <rguenther@suse.de>
2389
2390 PR tree-optimization/80928
2391 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
2392 (copy_bbs): Set BB_DUPLICATED flag early.
2393 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
2394 marked blocks.
2395 (execute_on_shrinking_pred): Likewise.
2396 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
2397 BB_DUPLICATED blocks.
2398 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
2399 iterate over all PHIs considering removal of *gsi.
2400
2401 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
2402
2403 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
2404 qdf24xx.
2405
2406 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2407
2408 * config/rs6000/rs6000-string.c: (expand_block_clear,
2409 do_load_for_compare, select_block_compare_mode,
2410 compute_current_alignment, expand_block_compare,
2411 expand_strncmp_align_check, expand_strn_compare,
2412 expand_block_move, rs6000_output_load_multiple)
2413 Move functions related to string/block move/compare
2414 to a separate file.
2415 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
2416 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
2417 for this function which is now used in two files.
2418 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
2419 * config.gcc: Add rs6000-string.o to extra_objs for
2420 targets powerpc*-*-* and rs6000*-*-*.
2421
2422 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2423
2424 PR target/80510
2425 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
2426 32-bit, since indexed is not valid for DImode.
2427 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
2428 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
2429 (define_peephole2 for Altivec d-form load): Add 32-bit support.
2430 (define_peephole2 for Altivec d-form store): Likewise.
2431
2432 PR ipa/81185
2433 * multiple_target.c (create_dispatcher_calls): Only create the
2434 dispatcher call if the function is the default clone of a
2435 versioned function.
2436
2437 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
2438
2439 PR middle-end/80902
2440 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
2441 a call, force the call to not be a tail call.
2442
2443 2017-06-23 Jeff Law <law@redhat.com>
2444
2445 * doc/contrib.texi: Add entry for Steven Pemberton's work on
2446 enquire.
2447
2448 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
2449
2450 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
2451 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
2452 handling for early expansion of vector shifts (sl,sr,sra,rl).
2453 (builtin_function_type): Add vector shift right instructions
2454 to the unsigned argument list.
2455
2456 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2457
2458 rtl-optimizatoin/79286
2459 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
2460 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
2461 trap. PIC register plus a const unspec without offset can never trap.
2462
2463 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
2464
2465 * tree.h (builtin_structptr_type): New type.
2466 (builtin_structptr_types): Declare new array.
2467 * tree.c (builtin_structptr_types): New array.
2468 (free_lang_data, build_common_tree_nodes): Use it.
2469
2470 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
2471
2472 PR c++/81187
2473 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
2474 -Wnoexcept.
2475
2476 2017-06-22 Matt Turner <mattst88@gmail.com>
2477
2478 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
2479 Lake models to skylake case. Assume skylake for unknown
2480 models with clflushopt.
2481
2482 2017-06-22 Jeff Law <law@redhat.com>
2483
2484 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
2485 frame sizes that do not satisfy aarch64_uimm12_shift.
2486
2487 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
2488
2489 * profile-count.h (apply_probability,
2490 apply_scale, probability_in): Fix checks for zero.
2491
2492 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2493
2494 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
2495 * doc/cppdiropts.texi (-I @var{dir}): Document it.
2496
2497 2016-06-22 Richard Biener <rguenther@suse.de>
2498
2499 * tree-vect-loop.c (vect_model_reduction_cost): Handle
2500 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
2501 REDUC_MAX_EXPR support.
2502 (vectorizable_reduction): Likewise.
2503 (vect_create_epilog_for_reduction): Likewise.
2504
2505 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
2506
2507 * match.pd (A / (1 << B) -> A >> B): New.
2508 * generic-match-head.c: Include optabs-tree.h.
2509 * gimple-match-head.c: Likewise.
2510 * optabs-tree.h (target_supports_op_p): New.
2511 * optabs-tree.c (target_supports_op_p): New.
2512
2513 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2514
2515 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
2516 $gcc_cv_ld --help output.
2517 (gcc_cv_ld_demangle): Likewise.
2518 (gcc_cv_ld_eh_frame_hdr): Likewise.
2519 (gcc_cv_ld_pie): Likewise.
2520 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
2521 (gcc_cv_ld_buildid): Likewise.
2522 (gcc_cv_ld_sysroot): Likewise.
2523 (ld_bndplt_support): Likewise.
2524 (ld_pushpopstate_support): Likewise.
2525 * configure: Regenerate.
2526 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
2527
2528 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2529
2530 PR target/81151
2531 * config/i386/sse.md (round<mode>2): Renumber match_dup and
2532 operands indexes to avoid gap between operands and match_dups.
2533
2534 2017-06-21 Andrew Pinski <apinski@cavium.com>
2535
2536 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
2537 Increment Arith_shift and Arith_shift_reg by 1.
2538 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
2539 New tuning flag.
2540 * config/aarch64/aarch64.c (thunderx_tunings): Enable
2541 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
2542 (aarch64_strip_extend): Add new argument and test for it.
2543 (aarch64_cheap_mult_shift_p): New function.
2544 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
2545 add a cost if it is true.
2546 Update calls to aarch64_strip_extend.
2547 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
2548
2549 2017-06-21 Andrew Pinski <apinski@cavium.com>
2550
2551 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
2552 tunings.
2553 (thunderxt88): Likewise.
2554 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
2555 (thunderx_prefetch_tune): New variable.
2556 (thunderx2t99_prefetch_tune): Update for the correct values.
2557 (thunderxt88_tunings): New variable.
2558 (thunderx_tunings): Use thunderx_prefetch_tune instead of
2559 generic_prefetch_tune.
2560 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
2561
2562 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2563
2564 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
2565 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
2566 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
2567 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
2568 (aarch64_atomic_cas<mode>, GPI): Likewise.
2569
2570 2017-06-21 Martin Liska <mliska@suse.cz>
2571
2572 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
2573 statements on cold and hot labels.
2574 * predict.c (tree_estimate_probability_bb): Remove the
2575 prediction from this place.
2576
2577 2017-06-21 Martin Liska <mliska@suse.cz>
2578
2579 PR tree-optimization/79489
2580 * gimplify.c (maybe_add_early_return_predict_stmt): New
2581 function.
2582 (gimplify_return_expr): Call the function.
2583 * predict.c (tree_estimate_probability_bb): Remove handling
2584 of early return.
2585 * predict.def: Update comment about early return predictor.
2586 * gimple-predict.h (is_gimple_predict): New function.
2587 * predict.def: Change default value of early return to 66.
2588 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
2589 statements.
2590 * passes.def: Put pass_strip_predict_hints to the beginning of
2591 IPA passes.
2592
2593 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
2594
2595 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
2596 FUNCTION_DECL declarations.
2597 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
2598 declarations.
2599 (dwaf2out_decl): Likewise.
2600 * godump.c (go_early_global_decl): Skip call to the real debug hook
2601 for FUNCTION_DECL declarations.
2602 * passes.c (rest_of_decl_compilation): Skip call to the
2603 early_global_decl debug hook for FUNCTION_DECL declarations, unless
2604 -fdump-go-spec is passed.
2605
2606 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
2607
2608 * config/i386/i386.c (struct builtin_isa): New field pure_p.
2609 Reorder for compactness.
2610 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
2611 (def_builtin_pure, def_builtin_pure2): New functions.
2612 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
2613
2614 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
2615
2616 * match.pd (nop_convert): New predicate.
2617 ((A +- CST1) +- CST2): Allow some NOP conversions.
2618
2619 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2620
2621 PR c++/81130
2622 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
2623 with ctors/dtors if GOVD_SHARED is set.
2624
2625 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2626
2627 * config/aarch64/aarch64.md (movti_aarch64):
2628 Emit mov rather than orr.
2629 (movtf_aarch64): Likewise.
2630 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
2631 Emit mov rather than orr.
2632
2633 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2634
2635 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
2636 Swap alternatives, make integer dup more expensive.
2637
2638 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2639
2640 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
2641 Return true for non-tls symbols.
2642
2643 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
2644
2645 * config/aarch64/aarch64-cores.def (cortex-a55): New.
2646 (cortex-a75): Likewise.
2647 (cortex-a75.cortex-a55): Likewise.
2648 * config/aarch64/aarch64-tune.md: Regenerate.
2649 * doc/invoke.texi (-mtune): Document new values for -mtune.
2650
2651 2017-06-21 Tom de Vries <tom@codesourcery.com>
2652
2653 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
2654 stack_size feature.
2655 (Effective-Target Keywords, Other attributes): Suggest using
2656 dg-add-options stack_size feature to get stack limit in stack_size
2657 effective target documentation.
2658
2659 2017-06-21 Julian Brown <julian@codesourcery.com>
2660 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2661
2662 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
2663 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
2664 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
2665 reservation.
2666 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
2667 attribute type list for neon_multiply.
2668 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
2669 attribute type list for neon_multiply.
2670 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
2671 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
2672 attribute type list for neon_multiply.
2673 * config/arm/types.md (crypto_pmull): Add.
2674 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
2675 attribute type list.
2676
2677 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
2678
2679 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
2680 arm1176jzf-s.
2681
2682 2017-06-20 Jakub Jelinek <jakub@redhat.com>
2683
2684 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
2685 to make sure not to dereference a NULL cost_classes_ptr pointer.
2686
2687 2017-06-20 Carl Love <cel@us.ibm.com>
2688
2689 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2690 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
2691 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
2692 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
2693 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
2694 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
2695 VMULOSW): New enum "unspec" values.
2696 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
2697 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
2698 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
2699 altivec_vmulosw): New patterns.
2700 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
2701 VMULOSW): Add definitions.
2702
2703 2017-06-20 Julia Koval <julia.koval@intel.com>
2704
2705 * config/i386/i386.c: Fix rounding expand for new pattern.
2706 * config/i386/subst.md: Fix pattern (parallel -> unspec).
2707
2708 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2709
2710 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
2711 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
2712
2713 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2714
2715 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
2716 feature string.
2717
2718 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2719
2720 * config/aarch64/aarch64-cores.def: Rearrange to sort by
2721 architecture, then by implementer ID.
2722 * config/aarch64/aarch64-tune.md: Regenerate.
2723
2724 2017-06-20 Richard Biener <rguenther@suse.de>
2725
2726 PR middle-end/81097
2727 * fold-const.c (split_tree): Fold to type before negating.
2728
2729 2017-06-20 David Malcolm <dmalcolm@redhat.com>
2730
2731 * diagnostic-show-locus.c
2732 (selftest::test_fixit_deletion_affecting_newline): New function.
2733 (selftest::diagnostic_show_locus_c_tests): Call it.
2734
2735 2017-06-20 Andreas Schwab <schwab@suse.de>
2736
2737 PR target/80970
2738 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
2739 instead of "+d".
2740
2741 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2742
2743 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
2744 __ARM_FEATURE_COPROC according to support.
2745
2746 2017-06-20 Jakub Jelinek <jakub@redhat.com>
2747
2748 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
2749 Rewritten to avoid overflow for > 32-bit pointers.
2750
2751 PR sanitizer/81125
2752 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
2753 by removing enum keyword.
2754 (ubsan_type_descriptor): Likewise. Formatting fix.
2755
2756 PR target/81121
2757 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
2758 splitter): Require TARGET_SSE2 in the condition.
2759
2760 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2761
2762 PR target/79799
2763 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
2764 for doing vector set of SFmode on ISA 3.0.
2765 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
2766 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
2767 element.
2768 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
2769 SFmode value into a V4SF variable that was extracted from another
2770 V4SF variable without converting the element to double precision
2771 and back to single precision vector format.
2772 (vsx_insert_extract_v4sf_p9_2): Likewise.
2773
2774 2017-06-19 Jakub Jelinek <jakub@redhat.com>
2775
2776 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
2777 in UWHI to avoid undefined overflow.
2778
2779 PR sanitizer/81125
2780 * ubsan.h (enum ubsan_encode_value_phase): New.
2781 (ubsan_encode_value): Change second argument to
2782 enum ubsan_encode_value_phase with default value of
2783 UBSAN_ENCODE_VALUE_GENERIC.
2784 * ubsan.c (ubsan_encode_value): Change second argument to
2785 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
2786 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
2787 create_tmp_var_raw instead of create_tmp_var and use a
2788 TARGET_EXPR.
2789 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
2790 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2791 ubsan_encode_value callers.
2792
2793 PR sanitizer/81111
2794 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
2795 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
2796 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
2797
2798 2017-06-19 Richard Biener <rguenther@suse.de>
2799
2800 PR middle-end/81118
2801 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
2802 estimates if we changed anything.
2803
2804 2017-06-19 Richard Biener <rguenther@suse.de>
2805
2806 PR tree-optimization/80887
2807 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
2808 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
2809 simplified lookups, then reset mprts_hook.
2810 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
2811 simplifying.
2812 (try_to_simplify): Likewise.
2813
2814 2017-06-19 Martin Liska <mliska@suse.cz>
2815
2816 PR sanitizer/80879
2817 * gimplify.c (gimplify_switch_expr):
2818 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
2819
2820 2017-06-19 Martin Liska <mliska@suse.cz>
2821
2822 * doc/install.texi: Document that PGO runs in 4 stages.
2823
2824 2017-06-19 Martin Liska <mliska@suse.cz>
2825
2826 PR ipa/80732
2827 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
2828 to dispatcher function name.
2829 * multiple_target.c (replace_function_decl): New function.
2830 (create_dispatcher_calls): Redirect both edges and references.
2831
2832 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
2833
2834 * profile-count.c (profile_count::dump): Dump quality.
2835 (profile_count::differs_from_p): Update for unsigned val.
2836 * profile-count.h (profile_count_quality): New enum.
2837 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
2838
2839 2017-06-19 Richard Biener <rguenther@suse.de>
2840
2841 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
2842 struct function as arg.
2843 (estimate_numbers_of_iterations): Export overload with loop arg.
2844 (free_numbers_of_iterations_estimates_loop): Use an overload of
2845 free_numbers_of_iterations_estimates instead.
2846 * tree-cfg.c (remove_bb): Adjust.
2847 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
2848 * tree-parloops.c (gen_parallel_loop): Likewise.
2849 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
2850 Likewise.
2851 (tree_unroll_loops_completely): Likewise.
2852 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2853 Use an overload instead and export.
2854 (estimated_loop_iterations): Adjust.
2855 (max_loop_iterations): Likewise.
2856 (likely_max_loop_iterations): Likewise.
2857 (estimate_numbers_of_iterations): Take struct function as arg
2858 and adjust.
2859 (loop_exits_before_overflow): Adjust.
2860 (free_numbers_of_iterations_estimates_loop): Use an overload.
2861 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
2862 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
2863
2864 2017-06-19 Richard Biener <rguenther@suse.de>
2865
2866 PR ipa/81112
2867 * ipa-prop.c (find_constructor_constant_at_offset): Handle
2868 RANGE_EXPR conservatively.
2869
2870 2017-06-16 Carl Love <cel@us.ibm.com>
2871
2872 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2873 definitions for vec_float, vec_float2, vec_floato,
2874 vec_floate built-ins.
2875 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
2876 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
2877 floate.
2878 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
2879 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
2880 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
2881 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
2882 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
2883 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
2884 vec_floato): Add builtin defines.
2885 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
2886 Update the built-in documentation file for the new built-in
2887 functions.
2888
2889 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2890
2891 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
2892 (mthumb): Mark as the negative of -marm.
2893
2894 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2895
2896 * doc/invoke.texi (ARM Options, -mcpu): Document supported
2897 extension options.
2898 (ARM Options, -mtune): Document that this accepts the same
2899 extension options as -mcpu.
2900 (ARM Options, -mfpu): Document addition of -mfpu=auto.
2901
2902 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2903
2904 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
2905 permitted extensions.
2906
2907 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2908
2909 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
2910 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
2911 (armv8-m.main): Add option +nodsp.
2912 * config/arm/arm-cpu-cdata.h: Regenerated.
2913
2914 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2915
2916 * config/arm/t-fuchsia: New file.
2917 * config.gcc (arm*-*-fuchsia*): Use it.
2918
2919 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2920
2921 * config/arm/t-symbian: Rewrite for new option infrastructure.
2922
2923 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2924
2925 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
2926 (MULTILIB_REQUIRED): Likewise.
2927
2928 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2929
2930 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
2931 (MULTILIB_RESUE): Likewise.
2932 (MULTILIB_MATCHES): Likewise.
2933 (MULTLIB_REQUIRED): Likewise.
2934
2935 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2936
2937 * config/arm/t-rtems: Rewrite for new option framework.
2938
2939 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2940
2941 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
2942 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
2943 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
2944 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
2945 * config/arm/t-multilib: ... here.
2946 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
2947 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
2948 armv7-a and armv8*-a when A-profile libraries have not been built.
2949 * config/arm/t-rmprofile: Rewrite.
2950
2951 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2952
2953 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
2954 with a backslash. Remove the backslash after substituting unescaped
2955 periods.
2956 * doc/fragments.texi (MULTILIB_REUSE): Document it.
2957
2958 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2959
2960 * config.gcc: (arm*-*-*): When building a-profile libraries, force
2961 the driver to pass through the default setting of -mfloat-abi.
2962 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
2963 rather than NULL.
2964 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
2965 (all_feat_combs): New rule.
2966 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
2967 default libraries.
2968 * config/arm/t-aprofile: Rewrite.
2969
2970 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2971
2972 * config/arm/arm.h (FPUTYPE_AUTO): Define.
2973 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
2974 fpu is not specified by the user/command-line.
2975 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
2976 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
2977 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
2978 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
2979 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
2980 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
2981
2982 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2983
2984 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
2985 * config/arm/t-arm-elf: Rewritten.
2986
2987 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2988
2989 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
2990 have some floating-point instructions.
2991 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
2992 (TARGET_MAYBE_HARD_FLOAT): New macro.
2993 * config/arm/arm-builtins.c (arm_init_builtins): Use
2994 TARGET_MAYBE_HARD_FLOAT.
2995 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
2996
2997 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2998
2999 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
3000 (configargs.h): Include it.
3001 (arm_print_hint_for_fpu_option): New function.
3002 (arm_parse_fpu_option): New function.
3003 (candidate_extension): New class.
3004 (arm_canon_for_multilib): New function.
3005 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
3006 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
3007 (ARCH_CANONICAL_SPECS): New macro.
3008 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
3009
3010 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3011
3012 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
3013 are set after handling multilib fragments. Set target_cpu_default2
3014 from with_cpu.
3015
3016 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3017
3018 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
3019 cpu name.
3020 (arm*-*-*): Set target_cpu_default2 to a quoted string.
3021 * config/arm/parsecpu.awk (check_cpu): Validate any extension
3022 options.
3023 (check_arch): Likewise.
3024 * config/arm/arm.c (arm_configure_build_target): Handle
3025 TARGET_CPU_DEFAULT being a string constant. Scan any feature
3026 options in the default.
3027
3028 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3029
3030 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
3031 when an option is an alias of another.
3032 * config/arm/parsecpu.awk (optalias): New parser token.
3033 (gen_comm_data): Mark non-alias options as such. Emit entries
3034 for extension aliases.
3035 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
3036 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
3037 (armv6kz, armv6zk, armv6t2): Likewise.
3038 (armv7): Make vfpv3-d16 an alias.
3039 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
3040 canonical order.
3041 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
3042 Sort in canonical order.
3043 (armv8-a): Sort in canonical order.
3044 (armv8.1-a, armv8.2-a): Likewise.
3045 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
3046 canonical order.
3047 (cortex-a9): Sort in canonical order.
3048 * config/arm/arm.c (selftests.h): Include it.
3049 (arm_test_cpu_arch_data): New function.
3050 (arm_run_self_tests): New function.
3051 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
3052 (targetm): Move declaration to the end of the file.
3053 * arm-cpu-cdata.h: Regenerated.
3054
3055 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3056
3057 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
3058 call to target_mode_check describing the type of option passed.
3059 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
3060 (arm_target_thumb_only): Use arm_parse_arch_option_name or
3061 arm_parse_cpu_option_name to match parameters against list of
3062 available targets.
3063 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
3064 arm_arch_core_flags data structure.
3065 * config/arm/arm-cpu_cdata.h: Regenerated.
3066
3067 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3068
3069 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
3070 config/arm/arm.c.
3071 (arm_print_hint_for_cpu_option): Likewise.
3072 (arm_print_hint_for_arch_option): Likewise.
3073 (arm_parse_cpu_option_name): Likewise.
3074 (arm_parse_arch_option_name): Likewise.
3075 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
3076 of entries in the all_fpus list.
3077 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
3078 (arm_parse_cpu_option_name): Declare.
3079 (arm_parse_arch_option_name): Declare.
3080 (arm_parse_option_features): Declare.
3081 (arm_intialize_isa): Declare.
3082 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
3083 data tables to ...
3084 (gen_comm_data): ... here. Make definitions non-static.
3085 * config/arm/arm-cpu-data.h: Regenerated.
3086 * config/arm/arm-cpu-cdata.h: Regenerated.
3087
3088 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3089
3090 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
3091 (cpu_arch_extension): New structure.
3092 (cpu_arch_option, arch_option, cpu_option): New structures.
3093 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
3094 architecture types.
3095 (gen_data): Generate new format data tables.
3096 * config/arm/arm.c (cpu_tune): New structure.
3097 (cpu_option, processors): Delete.
3098 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
3099 (arm_print_hint_for_cpu_option): ... this and ...
3100 (arm_print_hint_for_arch_option): ... this.
3101 (arm_parse_arch_cpu_name): Delete. Replace with ...
3102 (arm_parse_cpu_option_name): ... this and ...
3103 (arm_parse_arch_option_name): ... this.
3104 (arm_unrecognized_feature): Change type of target parameter to
3105 cpu_arch_option.
3106 (arm_parse_arch_cpu_features): Delete. Replace with ...
3107 (arm_parse_option_features): ... this.
3108 (arm_configure_build_target): Rework to use new configuration data
3109 tables.
3110 (arm_print_tune_info): Rework for new configuration data tables.
3111 * config/arm/arm-cpu-data.h: Regenerated.
3112 * config/arm/arm-cpu.h: Regenerated.
3113
3114 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3115
3116 * Makefile.in (OBJS): Move sbitmap.o from here ...
3117 (OBJS-libcommon): ... to here.
3118
3119 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3120
3121 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
3122 (ISA_ALL_CRYPTO): New macro.
3123 (ISA_ALL_SIMD): New macro
3124 (ISA_ALL_FP): New macro.
3125 * config/arm/arm.c (fpu_bitlist): Update initializer.
3126 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
3127 simd or fp.
3128 (arm9e): Add fpu. Add option for nofp
3129 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
3130 (arm926ej-s, arm1026ej-s): Likewise.
3131 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
3132 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
3133 neon-fp16, neon-vfpv4, nofp and nosimd.
3134 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
3135 (cortex-a8): Add fpu. Add option for nofp.
3136 (cortex-a9): Add fpu. Add options for nosimd and nofp.
3137 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
3138 (cortex-r4f): Add fpu.
3139 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
3140 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
3141 for nofp.
3142 (cortex-r8): Likewise.
3143 (cortex-m4): Add fpu. Add option for nofp.
3144 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
3145 (cortex-a17.cortex-a7): Likewise.
3146 (cortex-a32): Add fpu. Add options for crypto and nofp.
3147 (cortex-a35, cortex-a53): Likewise.
3148 (cortex-a57): Add fpu. Add option for crypto.
3149 (cortex-a72, cortex-a73): Likewise.
3150 (exynos-m1): Likewise.
3151 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
3152 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
3153 (cortex-m33): Add fpu. Add option for nofp.
3154 * config/arm/arm-cpu-cdata.h: Regenerated
3155 * config/arm/arm-cpu-data.h: Regenerated.
3156
3157 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3158
3159 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
3160 (armv5te, armv5tej): Likewise.
3161 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
3162 (armv7): Add options fp and vfpv3-d16.
3163 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
3164 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
3165 nofp and nosimd.
3166 (armv7ve): Likewise.
3167 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
3168 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
3169 (armv8-a): Add nocrypto option.
3170 (armv8.1-a, armv8.2-a): Likewise.
3171 (armv8-m.main): add options fp, fp.dp and nofp.
3172
3173 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3174
3175 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
3176 nofp.
3177 (armv8-a+crc): Delete.
3178 (armv8.1-a): Add options simd, crypto and nofp.
3179 (armv8.2-a): Add options fp16, simd, crypto and nofp.
3180 (armv8.2-a+fp16): Delete.
3181 (armv8-m.main): Add option dsp.
3182 (armv8-m.main+dsp): Delete.
3183 (cortex-a8): Add fpu. Add nofp option.
3184 (cortex-a9): Add fpu. Add nofp and nosimd options.
3185 * config/arm/parsecpu.awk (gen_data): Generate option tables and
3186 link to main cpu and architecture data structures.
3187 (gen_comm_data): Only put isa attributes from the main architecture
3188 in common tables.
3189 (option): New statement for architecture and CPU entries.
3190 * arm.c (struct cpu_option): New structure.
3191 (struct processors): Add entry for options.
3192 (arm_unrecognized_feature): New function.
3193 (arm_parse_arch_cpu_name): Ignore any characters after the first
3194 '+' character.
3195 (arm_parse_arch_cpu_feature): New function.
3196 (arm_configure_build_target): Separate out any CPU and architecture
3197 features and parse separately. Don't error out if -mfpu=auto is
3198 used with only an architecture string.
3199 (arm_print_asm_arch_directives): New function.
3200 (arm_file_start): Call it.
3201 * config/arm/arm-cpu-cdata.h: Regenerated.
3202 * config/arm/arm-cpu-data.h: Likewise.
3203 * config/arm/arm-tables.opt: Likewise.
3204
3205 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3206
3207 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
3208 assembler when it is not -mfpu=auto.
3209
3210 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3211
3212 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
3213 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
3214 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
3215 (ASM_CPU_SPEC): Rewrite.
3216 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
3217 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
3218 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
3219 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
3220 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
3221 copied string is NUL-terminated. Also strip any characters prefixed
3222 by '+'.
3223 (arm_rewrite_selected_arch): New function.
3224 (arm_rewrite_march): New function.
3225
3226 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3227
3228 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
3229 (x_arm_cpu_string, x_arm_tune_string): Likewise.
3230 (march, mcpu, mtune): Convert to string-based options.
3231 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
3232 (arm_parse_arch_cpu_name): New function.
3233 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
3234 identify selected architecture or CPU.
3235 (arm_option_save): New function.
3236 (TARGET_OPTION_SAVE): Redefine.
3237 (arm_option_restore): Restore string options.
3238 (arm_option_print): Print string options.
3239
3240 2017-06-16 Martin Sebor <msebor@redhat.com>
3241
3242 PR tree-optimization/80933
3243 PR tree-optimization/80934
3244 * builtins.c (fold_builtin_3): Do not handle bcmp here.
3245 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
3246 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
3247 (gimple_fold_builtin): Call them.
3248
3249 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3250
3251 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
3252 as unlikely; update profile.
3253
3254 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3255
3256 * predict.c (force_edge_cold): Handle declaring edges impossible
3257 more aggresively.
3258
3259 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3260
3261 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
3262 profile.
3263 (try_unroll_loop_completely): Fix reporting.
3264
3265 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3266
3267 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
3268
3269 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
3270
3271 PR target/71778
3272 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
3273 if given a non-constant argument for an intrinsic which requires a
3274 constant.
3275
3276 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3277
3278 * profile.c (compare_freqs): New function.
3279 (branch_prob): Sort edge list.
3280 (find_spanning_tree): Assume that the list is priority sorted.
3281
3282 2017-06-16 Richard Biener <rguenther@suse.de>
3283
3284 PR tree-optimization/81090
3285 * passes.def (pass_record_bounds): Remove.
3286 * tree-pass.h (make_pass_record_bounds): Likewise.
3287 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
3288 make_pass_record_bounds): Likewise.
3289 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
3290 not free niter estimates at the beginning but at the end.
3291 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
3292
3293 2017-06-16 Richard Biener <rguenther@suse.de>
3294
3295 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
3296 initializer to workaround ICE in host GCC 4.8.
3297
3298 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3299
3300 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
3301 counts.
3302 (clone_inlined_nodes): Update.
3303
3304 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3305
3306 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
3307 prefetch settings, and enable prefetching by default at -O3.
3308
3309 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3310
3311 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3312 Set flag_prefetch_loop_arrays according to tuning data.
3313
3314 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3315
3316 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
3317 New tune structure.
3318 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
3319 [Unrelated to main purpose of the patch] Place the pointer field last
3320 to enable type checking errors when tune structure are wrongly merged.
3321 * config/aarch64/aarch64.c (generic_prefetch_tune,)
3322 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
3323 (thunderx2t99_prefetch_tune): New tune constants.
3324 (tune_params *_tunings): Update all tunings (no functional change).
3325 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
3326 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
3327 from tunings structures.
3328
3329 2017-06-16 Jakub Jelinek <jakub@redhat.com>
3330
3331 PR sanitizer/81094
3332 * ubsan.c (instrument_null): Add T argument, use it instead
3333 of computing it based on IS_LHS.
3334 (instrument_object_size): Likewise.
3335 (pass_ubsan::execute): Adjust instrument_null and
3336 instrument_object_size callers to pass gimple_get_lhs or
3337 gimple_assign_rhs1 result to it. Use instrument_null instead of
3338 calling get_base_address and instrument_mem_ref. Handle
3339 aggregate call arguments for object-size sanitization.
3340
3341 2017-06-16 Yury Gribov <tetra2005@gmail.com>
3342
3343 PR tree-optimization/81089
3344 * tree-vrp.c (is_masked_range_test): Validate operands of
3345 subexpression.
3346
3347 2017-06-15 Martin Sebor <msebor@redhat.com>
3348
3349 PR c++/80560
3350 * dumpfile.c (dump_register): Avoid calling memset to initialize
3351 a class with a default ctor.
3352 * gcc.c (struct compiler): Remove const qualification.
3353 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
3354 * hash-table.h: Ditto.
3355 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
3356 assignment.
3357 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
3358 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
3359 default ctor.
3360 * params.h (struct param_info): Make struct members non-const.
3361 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
3362 with default initialization.
3363 * vec.h (vec_copy_construct, vec_default_construct): New helper
3364 functions.
3365 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
3366 with vec_copy_construct.
3367 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
3368 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
3369 * doc/invoke.texi (-Wclass-memaccess): Document.
3370
3371 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3372
3373 * emit-rtl.h (is_leaf): Update comment about local
3374 register allocator.
3375
3376 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
3377
3378 PR target/78818
3379 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
3380 for a variable to have a section before checking if the section has a
3381 name.
3382 Set section to.persistent if persistent attribute is set.
3383 Warn if .persistent attribute is used on an automatic variable.
3384
3385 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
3386
3387 PR rtl-optimization/80474
3388 * reorg.c (update_block): Do not ignore instructions in a delay slot.
3389
3390 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
3391
3392 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
3393 of REGNO.
3394
3395 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
3396
3397 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
3398 (casesi): Emit bounds checking as RTL.
3399 (casesi_internal_mips16_<mode>): Remove bounds checking.
3400
3401 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
3402
3403 * config/xtensa/xtensa.c (xtensa_option_override): Append
3404 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
3405 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
3406 xtensa_doloop_hooks): Define unconditionally.
3407 (xtensa_reorg_loops): Only call reorg_loops in the presence of
3408 TARGET_LOOPS.
3409 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
3410 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
3411 for it in xtensa_option_override.
3412 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3413 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
3414
3415 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
3416
3417 * doc/cppopts.texi: Document '-' special value to -MF.
3418
3419 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
3420
3421 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
3422 (cortex_a53_fconst): Likewise.
3423 (cortex_a53_fpmul): Likewise.
3424 (cortex_a53_f_load_64): Likewise.
3425 (cortex_a53_f_load_many): Likewise.
3426 (cortex_a53_advsimd_alu): Likewise.
3427 (cortex_a53_advsimd_alu_q): Likewise.
3428 (cortex_a53_advsimd_mul): Likewise.
3429 (cortex_a53_advsimd_mul_q): Likewise.
3430 (fpmac bypass): Add new bypass for fpmac-fpmac case.
3431 Add missing fmul, r2f_cvt and fconst cases.
3432
3433 2017-06-14 Richard Biener <rguenther@suse.de>
3434
3435 PR middle-end/81088
3436 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
3437 literal constants.
3438 (fold_binary_loc): When associating do not treat pre-existing
3439 TREE_OVERFLOW on literal constants as a reason to allow
3440 TREE_OVERFLOW on associated literal constants.
3441
3442 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3443
3444 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
3445 (MASK_FEATURES): New macro.
3446 * config/sparc/sparc.c (sparc_option_override): Remove the special
3447 handling of -mfpu and generalize it to all MASK_FEATURES switches.
3448
3449 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3450
3451 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
3452 a division of 0 if non-call exceptions are enabled.
3453
3454 2017-06-14 Andrew Pinski <apinski@cavium.com>
3455 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3456
3457 PR target/71663
3458 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
3459 Improve vector initialization code gen for only variable case.
3460
3461 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3462
3463 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
3464
3465 2017-06-14 Richard Biener <rguenther@suse.de>
3466
3467 PR tree-optimization/81083
3468 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
3469 as values.
3470
3471 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3472
3473 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
3474 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
3475 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
3476 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
3477 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
3478 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
3479
3480 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3481
3482 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
3483 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
3484
3485 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3486
3487 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
3488
3489 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3490
3491 * config/rs6000/t-rtems: Don't handle SPE.
3492
3493 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3494
3495 * config/rs6000/t-linux: Don't handle SPE.
3496
3497 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3498
3499 * config/rs6000/eabispe.h: Delete file.
3500
3501 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3502
3503 * config/rs6000/t-spe: Delete file.
3504
3505 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3506
3507 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
3508 (rs6000_legitimate_offset_address_p): Return false for anything in
3509 V2SImode or V2SFmode.
3510
3511 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3512
3513 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
3514 except V2SF and V2SI. Rearrange the vector modes, and add comments.
3515 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
3516 and V4HImode.
3517 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
3518 (rs6000_legitimate_offset_address_p): Ditto.
3519 (rs6000_emit_move): Ditto.
3520 (rs6000_init_builtins): Remove V4HI_type_node.
3521
3522 2017-06-13 Martin Liska <mliska@suse.cz>
3523
3524 PR sanitize/78204
3525 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
3526 (gate_asan): Likewise.
3527 * asan.h (asan_no_sanitize_address_p): Remove the function.
3528 (sanitize_flags_p): New function.
3529 * builtins.def: Fix coding style.
3530 * common.opt: Use renamed enum value.
3531 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
3532 * doc/extend.texi: Document no_sanitize attribute.
3533 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
3534 to SANITIZE_UNDEFINED_NONDEFAULT.
3535 * gcc.c (sanitize_spec_function): Use the renamed enum value.
3536 * gimple-fold.c (optimize_atomic_compare_exchange_p):
3537 Use sanitize_flags_p.
3538 * gimplify.c (gimplify_function_tree): Likewise.
3539 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
3540 * opts.c (parse_no_sanitize_attribute): New function.
3541 (common_handle_option): Use renamed enum value.
3542 * opts.h (parse_no_sanitize_attribute): Declare.
3543 * tree.c (sanitize_flags_p): New function.
3544 * tree.h: Declared here.
3545 * tsan.c: Use sanitize_flags_p.
3546 * ubsan.c (ubsan_expand_null_ifn): Likewise.
3547 (instrument_mem_ref): Likewise.
3548 (instrument_bool_enum_load): Likewise.
3549 (do_ubsan_in_current_function): Remove the function.
3550 (pass_ubsan::execute): Use sanitize_flags_p.
3551 * ubsan.h: Remove do_ubsan_in_current_function
3552 * tree-cfg.c (print_no_sanitize_attr_value): New function.
3553 (dump_function_to_file): Use it here.
3554
3555 2017-06-13 Martin Jambor <mjambor@suse.cz>
3556
3557 PR tree-optimization/80803
3558 PR tree-optimization/81063
3559 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
3560 (propagate_subaccesses_across_link): Enqueue subtree whenever
3561 necessary instead of relying on the caller.
3562
3563 2017-06-13 Martin Jambor <mjambor@suse.cz>
3564
3565 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
3566 that have a first_link.
3567 (sort_and_splice_var_accesses): Do not check first_link before
3568 enquing.
3569 (subtree_mark_written_and_enqueue): Likewise.
3570 (propagate_all_subaccesses): Likewise and do not stop at first
3571 parent with a first_link.
3572
3573 2017-06-13 Martin Jambor <mjambor@suse.cz>
3574
3575 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
3576 instead of f.
3577
3578 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3579
3580 * match.pd: New pattern.
3581
3582 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3583
3584 * tree-vrp.c (is_masked_range_test): New function.
3585 (register_edge_assert_for): Determine ranges for
3586 some bit tests.
3587
3588 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3589
3590 PR tree-optimization/67328
3591 * fold-const.c (maskable_range_p): New function.
3592 (build_range_check): Generate bittests if possible.
3593
3594 2017-06-13 Martin Liska <mliska@suse.cz>
3595
3596 * gimple-pretty-print.c (dump_probability): Add new argument.
3597 (dump_edge_probability): Dump both probability and count.
3598 (dump_gimple_label): Likewise.
3599 (dump_gimple_bb_header): Likewise.
3600
3601 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
3602
3603 PR target/81072
3604 * config/avr/avr-devices.c: Fix indentation.
3605 * config/avr/gen-avr-mmcu-specs.c: Dito.
3606
3607 2017-06-13 Richard Biener <rguenther@suse.de>
3608
3609 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
3610 instead get vector type from stmt_info.
3611 (vectorizable_reduction): Adjust. Remove dead code.
3612
3613 2017-06-13 Richard Biener <rguenther@suse.de>
3614
3615 PR middle-end/81065
3616 * fold-const.c (extract_muldiv_1): Remove bogus distribution
3617 case of C * (x * C2 + C3).
3618 (fold_addr_of_array_ref_difference): Properly fold index difference.
3619
3620 2017-06-12 David S. Miller <davem@davemloft.net>
3621
3622 PR target/80968
3623 * config/sparc/sparc.md (return expander): Emit frame blockage if
3624 function uses alloca.
3625
3626 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
3627
3628 * combine.c (make_field_assignment): Check len rather than the mode
3629 precision when calling force_to_mode.
3630
3631 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
3632
3633 Support multilibs and devices that see flash in RAM address range.
3634
3635 PR target/81072
3636 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
3637 (avr_mcu_t) <flash_pm_offset>: New field.
3638 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
3639 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
3640 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
3641 (AVR_TINY_PM_OFFSET): Remove macro.
3642 * config/avr/avr.opt (-mshort-calls): New option.
3643 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3644 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
3645 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3646 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
3647 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
3648 instead of avr_arch->have_jmp_call.
3649 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
3650 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
3651 avr_arch->flash_pm_offset to define.
3652 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
3653 new field flash_pm_offset. Add entry for avrxmega3.
3654 (avr_texinfo): Add entry for avrxmega3.
3655 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
3656 attiny212, attiny214,
3657 attiny412, attiny414, attiny416, attiny417,
3658 attiny814, attiny816, attiny817,
3659 attiny1614, attiny1616, attiny1617,
3660 attiny3214, attiny3216, attiny3217.
3661 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
3662 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
3663 (avr_print_operand_address) [AVR_TINY]: Same.
3664 (avr_asm_init_sections) <readonly_data_section>: Only patch
3665 callback if avr_arch->flash_pm_offset = 0.
3666 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
3667 for rodata if avr_arch->flash_pm_offset != 0.
3668 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
3669 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
3670 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
3671 (m_options): Append opt_rcall.
3672 (m_dirnames): Append dir_rcall.
3673 * config/avr/t-multilib: Regenerate.
3674
3675 * configure.ac [target=avr]: Check whether avrxmega3 default
3676 linker description file works as needed.
3677 * configure: Regenerate.
3678 * doc/avr-mmcu.texi: Regenerate.
3679 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
3680 <__AVR_ARCH__>: Document avrxmega3 and 103.
3681 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
3682 <__AVR_SHORT_CALLS__>: Document it.
3683 <__AVR_PM_BASE_ADDRESS__>: Document it.
3684 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
3685 (AVR Variable Attributes) <progmem>: Document this is
3686 not needed for avrxmega3.
3687 (AVR Named Address Spaces) <__flash>: Dito.
3688
3689 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
3690
3691 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
3692
3693 2017-06-12 Doug Rupp <rupp@adacore.com>
3694
3695 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
3696 Append vxworks-stdint.h to the tm_file list.
3697 * config/vxworks-stdint.h: New file.
3698
3699 2017-06-12 Martin Liska <mliska@suse.cz>
3700
3701 PR tree-optimization/81041
3702 * tree-profile.c (gimple_gen_ic_func_profiler):
3703 Create an extra BB in profile-generate
3704 (gimple_gen_time_profiler): Likewise.
3705
3706 2017-06-12 Jakub Jelinek <jakub@redhat.com>
3707
3708 PR tree-optimization/81003
3709 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
3710 (update_range_test): Use it instead of force_gimple_operand_gsi.
3711
3712 2017-06-12 Richard Biener <rguenther@suse.de>
3713
3714 PR tree-optimization/81053
3715 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
3716 with backedge value not defined in loop. Simplify def stmt
3717 compute.
3718
3719 2017-06-11 Tom de Vries <tom@codesourcery.com>
3720
3721 PR target/79939
3722 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
3723 Return true.
3724 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
3725 nvptx_cannot_force_const_mem.
3726
3727 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3728
3729 * opts.c (finish_options): Move test for flag_split_stack after
3730 it has been initialized.
3731
3732 2017-06-11 Jason Merrill <jason@redhat.com>
3733
3734 * tree.h (id_equal): New.
3735 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
3736 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
3737 instead of strcmp of IDENTIFIER_POINTER.
3738
3739 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3740
3741 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
3742 (mark_all_inlined_calls_cdtor): Fix formating.
3743 (inline_transform): Rescale profile before inlining.
3744
3745 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3746
3747 * cgraph.h (cgraph_edge::clone): Update prototype.
3748 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
3749 (cgraph_node::create_clone): Update.
3750 (cgraph_node::create_version_clone): Update.
3751 * tree-inline.c (copy_bb): Update.
3752 (expand_call_inline): Update.
3753
3754 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
3755
3756 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
3757 factored out from ...
3758 (rs6000_emit_prologue): ... here.
3759
3760 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
3761
3762 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
3763 factored out from ...
3764 (rs6000_emit_prologue): ... here.
3765
3766 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3767
3768 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
3769 edge counts.
3770 (handle_missing_profiles): Fix computation of tp_first_run.
3771 (counts_to_freqs): Do not touch freqs when count is 0.
3772
3773 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3774
3775 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
3776 profile.
3777
3778 2017-06-10 Tom de Vries <tom@codesourcery.com>
3779
3780 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3781 attributes): Document signal effective target.
3782
3783 2017-06-10 Tom de Vries <tom@codesourcery.com>
3784
3785 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
3786 Document effective target stack_size.
3787
3788 2017-06-09 David Malcolm <dmalcolm@redhat.com>
3789
3790 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
3791 to the edit_context if they can be auto-applied.
3792
3793 2017-06-9 Ian Lance Taylor <iant@golang.org>
3794
3795 * opts.c (finish_options): If -fsplit-stack, disable implicit
3796 -forder-blocks-and-partition.
3797 * doc/invoke.texi (Optimize Options): Document that when using
3798 -fsplit-stack -forder-blocks-and-partition is not implicitly
3799 enabled.
3800
3801 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3802
3803 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
3804 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
3805 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
3806 * builtins.def (abort, trap, unreachable): Declare cold.
3807 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
3808 * tree-core.h (ECF_COLD): New.
3809 * tree.c (set_call_expr_flags): Handle ECF_COLD.
3810 (build_common_builtin_nodes): Mark unreachable and abort as cold.
3811
3812 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3813
3814 * predict.c (unlikely_executed_stmt_p): Cleanup.
3815
3816 2017-06-09 Richard Biener <rguenther@suse.de>
3817
3818 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
3819 model if the ref is always written to.
3820
3821 2017-06-09 Tamar Christina <tamar.christina@arm.com>
3822
3823 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
3824
3825 2017-06-09 Tamar Christina <tamar.christina@arm.com>
3826
3827 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
3828 than udiv.
3829
3830 2017-06-09 Tom de Vries <tom@codesourcery.com>
3831
3832 PR target/80855
3833 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
3834 "target cannot support label values" when encountering LABEL_REF.
3835
3836 2017-06-09 Martin Liska <mliska@suse.cz>
3837
3838 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
3839 (gimple_gen_ic_func_profiler): Emit direct comparison
3840 of __gcov_indirect_call_callee with NULL.
3841 (gimple_gen_time_profiler): Change probability from
3842 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
3843
3844 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3845
3846 * profile.c (edge_gcov_counts): Turn to pointer.
3847 (compute_branch_probabilities, compute_branch_probabilities): Update.
3848 (branch_prob): Do not clear edge_gcov_count.
3849 * profile.h (edge_gcov_counts): Turn to pointer.
3850 (edge_gcov_count): Update.
3851
3852 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3853
3854 * gimple.h (gimple_check_failed): Mark cold.
3855
3856 2017-06-09 Richard Biener <rguenther@suse.de>
3857
3858 PR tree-optimization/66623
3859 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
3860 refactor check_reduction into two parts, properly computing
3861 whether we have to check reduction validity for outer loop
3862 vectorization.
3863
3864 2017-06-09 Richard Biener <rguenther@suse.de>
3865
3866 PR tree-optimization/79483
3867 * graphite-scop-detection.c (order): New global.
3868 (get_order): Compute bb to order mapping that satisfies code
3869 generation constraints.
3870 (cmp_pbbs): New helper.
3871 (build_scops): Start domwalk at entry block, sort generated
3872 pbbs.
3873
3874 2017-06-09 Richard Biener <rguenther@suse.de>
3875
3876 PR middle-end/81007
3877 * ipa-polymorphic-call.c
3878 (ipa_polymorphic_call_context::restrict_to_inner_class):
3879 Skip FIELD_DECLs with error_mark_node type.
3880 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
3881 last again.
3882
3883 2017-06-09 Martin Liska <mliska@suse.cz>
3884
3885 * predict.c (struct branch_predictor): New struct.
3886 (test_prediction_value_range): New test.
3887 (predict_c_tests): New function.
3888 * selftest-run-tests.c (selftest::run_tests): Run the function.
3889 * selftest.h: Declare new tests.
3890
3891 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
3892
3893 PR target/80966
3894 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
3895 gen_add3_insn did not fail.
3896 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
3897 r0, construct that number in a temporary reg and add that reg to r0.
3898 If asked to put the result in r0 as well, fail.
3899
3900 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
3901
3902 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3903 for early expansion of vec_eqv.
3904
3905 2017-06-08 Jakub Jelinek <jakub@redhat.com>
3906
3907 PR middle-end/81005
3908 * ubsan.c (instrument_null): Avoid pointless code temporary.
3909 (pass_ubsan::execute): Instrument aggregate arguments of calls.
3910
3911 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
3912
3913 PR target/81015
3914 Revert:
3915 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
3916
3917 PR target/59874
3918 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
3919 (*clzhi2): Ditto.
3920
3921 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3922
3923 * predict.c (unlikely_executed_edge_p): Move ahead.
3924 (probably_never_executed_edge_p): Use it.
3925
3926 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3927
3928 PR middle-end/79988
3929 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
3930 gimple_call_builtin_p call.
3931
3932 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3933
3934 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
3935 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
3936 rtl_check_failed_type2, rtl_check_failed_code1,
3937 rtl_check_failed_code2, rtl_check_failed_code_mode,
3938 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
3939 rtvec_check_failed_bounds, rtl_check_failed_flag,
3940 _fatal_insn_not_found, _fatal_insn): Likewise.
3941 * tree.h (tree_contains_struct_check_failed,
3942 tree_check_failed, tree_not_check_failed,
3943 tree_class_check_failed, tree_range_check_failed,
3944 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
3945 tree_vec_elt_check_failed, phi_node_elt_check_failed,
3946 tree_operand_check_failed, omp_clause_check_failed,
3947 omp_clause_operand_check_failed, omp_clause_range_check_failed):
3948 Likewise.
3949
3950 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3951
3952 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
3953 flag_branch_probabilities.
3954 * ipa-inline.c (edge_badness): Likewise.
3955 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
3956 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3957 * predict.c (maybe_hot_frequency_p): Likewise.
3958 (probably_never_executed): Likewise.
3959 * sched-ebb.c (schedule_ebbs): Likewise.
3960 * sched-rgn.c (find_single_block_region): Likewise.
3961 * tracer.c (tail_duplicate): Likewise.
3962
3963 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3964
3965 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
3966 longer requires x_flag_profile_use.
3967
3968 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3969
3970 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
3971 instead of flag_reorder_blocks_and_partition.
3972 * dbxout.c (dbxout_function_end): Likewise.
3973 * dwarf2out.c (gen_subprogram_die): Likewise.
3974 * haifa-sched.c (sched_create_recovery_edges): Likewise.
3975 * hw-doloop.c (reorg_loops): Likewise.
3976 * varasm.c (assemble_start_function,
3977 assemble_end_function): Likewise.
3978 (decide_function_section): Do not check for
3979 flag_reorder_blocks_and_partition.
3980
3981 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3982
3983 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
3984 New function.
3985 (chkp_get_hard_register_fake_addr_expr): Ditto.
3986 (chkp_build_addr_expr): Add check for hard reg case.
3987 (chkp_parse_array_and_component_ref): Ditto.
3988 (chkp_find_bounds_1): Ditto.
3989 (chkp_process_stmt): Don't generate bounds store for
3990 hard reg case.
3991
3992 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3993
3994 * predict.c (maybe_hot_bb_p): Do not check profile status.
3995 (maybe_hot_edge_p): Likewise.
3996 (probably_never_executed): Check for zero counts even if profile
3997 is not read.
3998 (unlikely_executed_edge_p): New function.
3999 (unlikely_executed_stmt_p): New function.
4000 (unlikely_executed_bb_p): New function.
4001 (set_even_probabilities): Use unlikely predicates.
4002 (combine_predictions_for_bb): Likewise.
4003 (predict_paths_for_bb): Likewise.
4004 (predict_paths_leading_to_edge): Likewise.
4005 (determine_unlikely_bbs): New function.
4006 (estimate_bb_frequencies): Use it.
4007 (compute_function_frequency): Use zero counts even if profile is
4008 not read.
4009 * profile-count.h: Fix typo.
4010
4011 2017-08-08 Julia Koval <julia.koval@intel.com>
4012
4013 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
4014 _mm512_mask_cvtsepi16_storeu_epi8,
4015 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
4016 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
4017 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
4018 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
4019 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
4020 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
4021 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
4022 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
4023 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
4024 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
4025 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
4026 __builtin_ia32_pmovuswb256mem_mask,
4027 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
4028 __builtin_ia32_pmovwb512mem_mask): New builtins.
4029
4030 2017-08-08 Julia Koval <julia.koval@intel.com>
4031
4032 PR target/73350,80862
4033 * config/i386/subst.md (round): Fix round pattern.
4034 * config/i386/i386.c (ix86_erase_embedded_rounding):
4035 Fix erasing rounding for the fixed pattern.
4036
4037 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
4038
4039 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
4040
4041 2017-06-08 Martin Liska <mliska@suse.cz>
4042
4043 PR gcov-profile/80911
4044 * gcov.c (block_info::block_info): New constructor.
4045
4046 2017-06-07 Carl Love <cel@us.ibm.com>
4047
4048 * config/rs6000/rs6000-c: The return type of the following
4049 built-in functions was implemented as int not long long. Fix sign
4050 of return value for the unsigned version of vec_mulo and vec_mule.
4051 vector unsigned long long vec_bperm (vector unsigned long long,
4052 vector unsigned char)
4053 vector signed long long vec_mule (vector signed int,
4054 vector signed int)
4055 vector unsigned long long vec_mule (vector unsigned int,
4056 vector unsigned int)
4057 vector signed long long vec_mulo (vector signed int,
4058 vector signed int)
4059 vector unsigned long long vec_mulo (vector unsigned int,
4060 vector unsigned int)
4061 * doc/extend.texi: Fix the documentation for the built-in
4062 functions.
4063
4064 2017-06-07 Carl Love <cel@us.ibm.com>
4065
4066 PR target/80982
4067 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
4068 for BE.
4069
4070 2017-06-07 Carl Love <cel@us.ibm.com>
4071
4072 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
4073 support, Generate doublehv for signed int/float for BE case only.
4074
4075 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
4076
4077 * doc/invoke.texi (mcx16): Rewrite.
4078
4079 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4080
4081 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
4082 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
4083 *mov<mode>_softfloat, and an anonymous splitter): Use
4084 nonimmediate_operand instead of rs6000_nonimmediate_operand.
4085
4086 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4087
4088 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
4089 SPEFSCR registers.
4090 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
4091 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
4092 (rs6000_debug_reg_global): Adjust.
4093 (rs6000_init_hard_regno_mode_ok): Adjust.
4094 (rs6000_dbx_register_number): Adjust.
4095 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
4096 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4097 Remove SPE_ACC and SPEFSCR.
4098 (REG_ALLOC_ORDER): Ditto.
4099 (FRAME_POINTER_REGNUM): Change to 111.
4100 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
4101 (REG_CLASS_NAMES): Ditto.
4102 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
4103 (REGISTER_NAMES): Ditto.
4104 (ADDITIONAL_REG_NAMES): Ditto.
4105 (rs6000_reg_names): Ditto.
4106 * config/rs6000/rs6000.md: Renumber some register number
4107 define_constants.
4108
4109 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4110
4111 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
4112 registers.
4113 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
4114 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
4115 to 117.
4116 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
4117 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4118 Delete the SPE high registers.
4119 (REG_ALLOC_ORDER): Ditto.
4120 (enum reg_class): Remove SPE_HIGH_REGS.
4121 (REG_CLASS_NAMES): Ditto.
4122 (REG_CLASS_CONTENTS): Delete the SPE high registers.
4123 (REGISTER_NAMES): Ditto.
4124 (rs6000_reg_names): Ditto.
4125 * doc/tm.texi.in: Remove SPE as example.
4126 * doc/tm.texi: Regenerate.
4127
4128 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4129
4130 * config/rs6000/8540.md (ppc8540_brinc): Delete.
4131 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
4132 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
4133 * config/rs6000/rs6000.md (type): Remove "brinc".
4134
4135 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4136
4137 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
4138 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
4139 * config/rs6000/linuxspe.h: Delete file.
4140 * config/rs6000/rs6000.md: Don't include spe.md.
4141 * config/rs6000/spe.h: Delete file.
4142 * config/rs6000/spe.md: Delete file.
4143 * config/rs6000/t-rs6000: Remove spe.md.
4144
4145 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4146
4147 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
4148 (reg_or_none500mem_operand): Delete.
4149 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
4150 instead of reg_or_none500mem_operand.
4151
4152 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4153
4154 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
4155 handling of SPE flags.
4156 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
4157
4158 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4159
4160 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
4161 SPE ABI handling.
4162 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
4163 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
4164 paired_divv2sf3): Similar.
4165 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
4166 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
4167 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
4168 RS6000_BUILTIN_S.
4169 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
4170 Rename the paired_* instruction patterns.
4171 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
4172 define __SPE__.
4173 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
4174 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
4175 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
4176 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
4177 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
4178 PAIRED_VECTOR_MODE.
4179 (struct machine_function): Delete field spe_insn_chain_scanned_p.
4180 (spe_func_has_64bit_regs_p): Delete.
4181 (spe_expand_predicate_builtin): Delete.
4182 (spe_expand_evsel_builtin): Delete.
4183 (TARGET_DWARF_REGISTER_SPAN): Do not define.
4184 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
4185 (invalid_e500_subreg): Delete.
4186 (rs6000_legitimize_address): Always force_reg op2 as well, for
4187 paired single memory accesses.
4188 (rs6000_member_type_forces_blk): Delete.
4189 (rs6000_spe_function_arg): Delete.
4190 (rs6000_expand_unop_builtin): Delete SPE handling.
4191 (rs6000_expand_binop_builtin): Ditto.
4192 (spe_expand_stv_builtin): Delete.
4193 (bdesc_2arg_spe): Delete.
4194 (spe_expand_builtin): Delete.
4195 (spe_expand_predicate_builtin): Delete.
4196 (spe_expand_evsel_builtin): Delete.
4197 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
4198 (spe_init_builtins): Delete.
4199 (spe_func_has_64bit_regs_p): Delete.
4200 (savres_routine_name): Delete "info" parameter. Adjust callers.
4201 (rs6000_emit_stack_reset): Ditto.
4202 (rs6000_dwarf_register_span): Delete.
4203 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
4204 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
4205 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
4206 Delete.
4207 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
4208 Delete.
4209 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
4210 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
4211 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
4212 mulv2sf3, divv2sf3): Delete expanders.
4213
4214 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4215
4216 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
4217
4218 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4219
4220 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
4221 * config/rs6000/rs6000.c: Ditto.
4222
4223 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4224
4225 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
4226 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
4227 comparison_operator.
4228
4229 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4230
4231 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
4232 * config/rs6000/rs6000.opt: Ditto.
4233 * config/rs6000/t-rtems: Ditto.
4234
4235 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4236
4237 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
4238 TARGET_E500_SINGLE by 0, simplify.
4239 * config/rs6000/rs6000.c: Ditto.
4240 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
4241 (spe_build_register_parallel): Delete.
4242 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
4243 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
4244 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
4245 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
4246 (E500_CONVERT): Delete.
4247 * config/rs6000/spe.md: Remove many patterns and all define_constants.
4248
4249 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4250
4251 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
4252 * config/rs6000/dfp.md: Ditto.
4253 (negdd2, *negdd2_fpr): Merge.
4254 (absdd2, *absdd2_fpr): Merge.
4255 (negtd2, *negtd2_fpr): Merge.
4256 (abstd2, *abstd2_fpr): Merge.
4257 * config/rs6000/e500.h: Delete file.
4258 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
4259 TARGET_FPRS by 1 and simplify.
4260 * config/rs6000/rs6000-c.c: Ditto.
4261 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
4262 TARGET_DF_SPE by 0.
4263 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
4264 TARGET_DF_SPE.
4265 * config/rs6000/rs6000.md: Ditto.
4266 (floatdidf2, *floatdidf2_fpr): Merge.
4267 (move_from_CR_gt_bit): Delete.
4268 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
4269 (E500_CR_IOR_COMPARE): Delete.
4270 (All patterns that require !TARGET_FPRS): Delete.
4271 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
4272
4273 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4274
4275 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
4276
4277 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4278
4279 * graphds.c (add_edge): Intitialize edge's attached data.
4280 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
4281 pointer parameter. Call pointed function on each edge during
4282 graph traversing. Skip traversing the edge when the function
4283 returns true.
4284 (graphds_dfs, graphds_scc): Ditto.
4285 (for_each_edge): New parameter. Pass the new parameter to callback
4286 function.
4287 * graphds.h (skip_edge_callback): New function pointer type.
4288 (graphds_dfs, graphds_scc): New function pointer parameter.
4289 (graphds_edge_callback, for_each_edge): New parameter.
4290
4291 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4292
4293 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
4294 out code checking if runtime alias check is possible to below ...
4295 Call the new function.
4296 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
4297 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
4298
4299 2017-06-07 Marek Polacek <polacek@redhat.com>
4300
4301 PR sanitizer/80932
4302 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
4303 TYPE_OVERFLOW_WRAPS check.
4304
4305 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4306
4307 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
4308 if versioning is required.
4309 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
4310 peeling with the check for versioning.
4311
4312 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4313
4314 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
4315 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
4316 Set true to new parameter if new ssa variable is defined.
4317 (vect_gen_vector_loop_niters): Refactor. Set range information
4318 for the new vector loop bound variable.
4319 (vect_do_peeling): Ditto.
4320
4321 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4322
4323 * tree-affine.c (ssa.h): Include header file.
4324 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
4325 has wrapping overflow behavior.
4326
4327 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4328
4329 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
4330
4331 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4332
4333 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
4334 (tree_to_aff_combination): ... here.
4335
4336 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4337
4338 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
4339 reg_pressure model function.
4340 (ivopts_global_cost_for_size): Delete.
4341 (determine_set_costs, iv_ca_recount_cost): Call new model function
4342 ivopts_estimate_reg_pressure.
4343
4344 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4345
4346 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
4347 expensive than udiv. Remove floating point cases from mod.
4348
4349 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4350
4351 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
4352 Increase idiv cost.
4353
4354 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4355
4356 * config/aarch64/aarch64.md
4357 (copysignsf3): Fix mask generation.
4358
4359 2017-06-07 Jakub Jelinek <jakub@redhat.com>
4360
4361 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
4362 TDI_gimple.
4363 (class dump_manager): Add register_dumps method.
4364 * dumpfile.c: Include langhooks.h.
4365 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
4366 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
4367 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
4368 (dump_manager::dump_register): Start with 512 entries instead of 32.
4369 (dump_manager::register_dumps): New method.
4370 * toplev.c (general_init): Instead of invoking register_dumps
4371 langhook, invoke register_dumps method on the dump manager.
4372 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
4373 TDI_generic.
4374
4375 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
4376
4377 * doc/md.texi: Clarify the restrictions on a define_insn condition.
4378 Say that # requires an associated define_split to exist, and that
4379 the define_split must be suitable for use after register allocation.
4380
4381 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4382
4383 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
4384 (compute_outgoing_frequencies): Also initialize zero counts.
4385 (find_many_sub_basic_blocks): Do not produce uninitialized profile
4386 around loops; preserve more of profile when nothing changes.
4387
4388 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
4389
4390 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
4391 here.
4392 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
4393 * config/arm/arm-cpu-cdata.h: Regenerate.
4394 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
4395 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
4396 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
4397 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
4398 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
4399 support.
4400 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
4401 support.
4402 * config/arm/t-rmprofile: Likewise.
4403 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
4404
4405 2017-06-06 David S. Miller <davem@davemloft.net>
4406
4407 PR target/80968
4408 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
4409 blockage if function uses alloca.
4410
4411 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4412
4413 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
4414 New "uid" fields to hold pretty-print IDs of group and ref.
4415 Memory references are now identified as <group_id>:<ref_id>
4416 instead of using [random] addresses.
4417 (dump_mem_details): Simplify, no functional change.
4418 (dump_mem_ref): Simplify and make output more concise.
4419 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
4420 (find_or_create_group): Initialize group uid.
4421 (record_ref): Initialize ref uid. Improve debug output.
4422 (prune_group_by_reuse, should_issue_prefetch_p,)
4423 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
4424 (mark_nontemporal_store, determine_loop_nest_reuse):
4425 Improve debug output.
4426
4427 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4428
4429 * dbgcnt.def (prefetch): New debug counter.
4430 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
4431 (schedule_prefetches): Stop issueing prefetches if debug counter
4432 tripped.
4433
4434 2017-06-06 Tom de Vries <tom@codesourcery.com>
4435
4436 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
4437 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
4438
4439 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4440
4441 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
4442 Use aarch64_reg_or_zero predicate for operand 4.
4443 (aarch64_compare_and_swap<mode> define_insn_and_split):
4444 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
4445 (aarch64_store_exclusive<mode>): Likewise for operand 2.
4446
4447 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4448
4449 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
4450 (arm_compute_save_core_reg_mask): This.
4451 (thumb1_compute_save_reg_mask): Rename into ...
4452 (thumb1_compute_save_core_reg_mask): This.
4453 (arm_compute_save_reg0_reg12_mask): Adapt comment.
4454 (arm_compute_frame_layout): Likewise.
4455
4456 2017-06-06 Richard Biener <rguenther@suse.de>
4457
4458 PR tree-optimization/80974
4459 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
4460 keep or clear leaders SSA info.
4461
4462 2017-06-06 Tom de Vries <tom@codesourcery.com>
4463
4464 * config/nvptx/nvptx.c (split_mode_p): New function.
4465 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
4466
4467 2017-06-06 Tom de Vries <tom@codesourcery.com>
4468
4469 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
4470
4471 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4472
4473 PR bootstrap/80978
4474 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
4475 profile.
4476
4477 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4478
4479 * shrink-wrap.c (handle_simple_exit): Update profile.
4480 (try_shrink_wrapping): Upate profile.
4481
4482 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4483
4484 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
4485 (tree_guess_outgoing_edge_probabilities): New.
4486 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
4487 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
4488
4489 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4490
4491 * ipa-split.c (split_function): Initialize return bb profile.
4492
4493 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4494
4495 * profile.c (compute_branch_probabilities): Also initialize
4496 EXIT_BLOCK profile.
4497
4498 2017-06-06 Richard Biener <rguenther@suse.de>
4499
4500 PR tree-optimization/80928
4501 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
4502 (vect_analyze_loop_operations): Properly guard analysis for
4503 pure SLP case.
4504 (vect_transform_loop): Likewise.
4505 (vect_analyze_loop_2): Also reset SLP type on PHIs.
4506 (vect_model_induction_cost): Do not cost for pure SLP.
4507 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
4508 of induction in inner loop vectorization.
4509 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
4510 (vect_get_and_check_slp_defs): Handle vect_induction_def.
4511 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
4512 recursion.
4513 (vect_analyze_slp_cost_1): Cost induction.
4514 (vect_detect_hybrid_slp_stmts): Handle PHIs.
4515 (vect_get_slp_vect_defs): Likewise.
4516 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
4517 (vect_transform_stmt): Handle SLP reductions.
4518 * tree-vectorizer.h (vectorizable_induction): Adjust.
4519
4520 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4521
4522 * config/rs6000/rs6000.c (make_resolver_func): Update
4523 init_lowered_empty_function call.
4524
4525 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4526
4527 * doc/invoke.texi: Document the -fprofile-abs-path option.
4528 * common.opt (fprofile-abs-path): New option.
4529 * gcov-io.h (gcov_write_filename): Declare.
4530 * gcov-io.c (gcov_write_filename): New function.
4531 * coverage.c (coverage_begin_function): Use gcov_write_filename.
4532 * profile.c (output_location): Likewise.
4533
4534 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4535
4536 * shring-wrap.c: Revert accidental commit.
4537
4538 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
4539
4540 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
4541
4542 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4543
4544 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
4545 new edge.
4546 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
4547 profile in callgraph edge.
4548 * profile-count.h (apply_probability): If THIS is 0, then result is 0
4549 (apply_scale): Likewise.
4550 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
4551 Also scale profile when inlining function with zero profile.
4552 (initialize_cfun): Update exit block profile even when it is zero.
4553 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
4554 when profile is read.
4555
4556 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4557
4558 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
4559 (CLONE_*): New constants to define the processors we can generate
4560 code for with the target_clone attribute.
4561 (rs6000_clone_map): New array to identify which clone processors
4562 the current program is running on.
4563 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
4564 target_clone attribute.
4565 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
4566 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
4567 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
4568 (cpu_expand_builtin): Add support for target_clone attribute.
4569 (rs6000_valid_attribute_p): Allow "default" attribute.
4570 (get_decl_name): New debug function to simplify printing the
4571 current function name in debugging statements.
4572 (rs6000_clone_priority): New functions to support the target_clone
4573 attribute, and be able to generate code to switch between ISA 2.05
4574 through ISA 3.0 (power6 through power9).
4575 (rs6000_compare_version_priority): Likewise.
4576 (rs6000_get_function_versions_dispatcher): Likewise.
4577 (make_resolver_func): Likewise.
4578 (add_condition_to_bb): Likewise.
4579 (dispatch_function_versions): Likewise.
4580 (rs6000_generate_version_dispatcher_body): Likewise.
4581 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
4582 (fusion_gpr_load_p): Fix a spacing issue.
4583 * doc/extend.texi (Common Function Attributes): Document that the
4584 PowerPC supports the target_clone attribute.
4585
4586 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
4587
4588 * config/arm/arm.h: explain F symbol found in description of ARM
4589 register allocation in its legend.
4590
4591 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4592
4593 * config/mips/frame-header-opt.c: Include profile-count.h.
4594 * config/riscv/riscv.c: Include profile-count.h
4595
4596 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4597
4598 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
4599 update profile.
4600 (sm_set_flag_if_changed): Add bbs field.
4601 (execute_sm_if_changed_flag_set): Pass BBS.
4602 (execute_sm): Update.
4603
4604 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4605
4606 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
4607 New pattern.
4608
4609 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4610
4611 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
4612 (peephole2): New peephole2 to emit the above.
4613 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
4614
4615 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4616
4617 * config/aarch64/aarch64.c (define_peephole2 above
4618 *sub_<shift>_<mode>): New peephole.
4619
4620 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4621
4622 * config/i386/i386.c (make_resolver_func): Update.
4623 * Makefile.in: Add profile-count.h and profile-count.o
4624 * auto-profile.c (afdo_indirect_call): Update to new API.
4625 (afdo_set_bb_count): Update.
4626 (afdo_propagate_edge): Update.
4627 (afdo_propagate_circuit): Update.
4628 (afdo_calculate_branch_prob): Update.
4629 (afdo_annotate_cfg): Update.
4630 * basic-block.h: Include profile-count.h
4631 (struct edge_def): Turn count to profile_count.
4632 (struct basic_block_def): Likewie.
4633 (REG_BR_PROB_BASE): Move to profile-count.h
4634 (RDIV): Move to profile-count.h
4635 * bb-reorder.c (max_entry_count): Turn to profile_count.
4636 (find_traces): Update.
4637 (rotate_loop):Update.
4638 (connect_traces):Update.
4639 (sanitize_hot_paths):Update.
4640 * bt-load.c (migrate_btr_defs): Update.
4641 * cfg.c (RDIV): Remove.
4642 (init_flow): Use alloc_block.
4643 (alloc_block): Uninitialize count.
4644 (unchecked_make_edge): Uninitialize count.
4645 (check_bb_profile): Update.
4646 (dump_edge_info): Update.
4647 (dump_bb_info): Update.
4648 (update_bb_profile_for_threading): Update.
4649 (scale_bbs_frequencies_int): Update.
4650 (scale_bbs_frequencies_gcov_type): Update.
4651 (scale_bbs_frequencies_profile_count): New.
4652 * cfg.h (update_bb_profile_for_threading): Update.
4653 (scale_bbs_frequencies_profile_count): Declare.
4654 * cfgbuild.c (compute_outgoing_frequencies): Update.
4655 (find_many_sub_basic_blocks): Update.
4656 * cfgcleanup.c (try_forward_edges): Update.
4657 (try_crossjump_to_edge): Update.
4658 * cfgexpand.c (expand_gimple_tailcall): Update.
4659 (construct_exit_block): Update.
4660 * cfghooks.c (verify_flow_info): Update.
4661 (dump_bb_for_graph): Update.
4662 (split_edge): Update.
4663 (make_forwarder_block): Update.
4664 (duplicate_block): Update.
4665 (account_profile_record): Update.
4666 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
4667 (get_estimated_loop_iterations): Update.
4668 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
4669 (single_likely_exit): Update.
4670 * cfgloopmanip.c (scale_loop_profile): Update.
4671 (loopify): Update.
4672 (set_zero_probability): Update.
4673 (lv_adjust_loop_entry_edge): Update.
4674 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
4675 (purge_dead_edges): Update.
4676 (rtl_account_profile_record): Update.
4677 * cgraph.c (cgraph_node::create): Uninitialize count.
4678 (symbol_table::create_edge): Uninitialize count.
4679 (cgraph_update_edges_for_call_stmt_node): Update.
4680 (cgraph_edge::dump_edge_flags): Update.
4681 (cgraph_node::dump): Update.
4682 (cgraph_edge::maybe_hot_p): Update.
4683 * cgraph.h: Include profile-count.h
4684 (create_clone), create_edge, create_indirect_edge): Update.
4685 (cgraph_node): Turn count to profile_count.
4686 (cgraph_edge0: Likewise.
4687 (make_speculative, clone): Update.
4688 (create_edge): Update.
4689 (init_lowered_empty_function): Update.
4690 * cgraphclones.c (cgraph_edge::clone): Update.
4691 (duplicate_thunk_for_node): Update.
4692 (cgraph_node::create_clone): Update.
4693 * cgraphunit.c (cgraph_node::analyze): Update.
4694 (cgraph_node::expand_thunk): Update.
4695 * final.c (dump_basic_block_info): Update.
4696 * gimple-streamer-in.c (input_bb): Update.
4697 * gimple-streamer-out.c (output_bb): Update.
4698 * graphite.c (print_global_statistics): Update.
4699 (print_graphite_scop_statistics): Update.
4700 * hsa-brig.c: Include basic-block.h.
4701 * hsa-dump.c: Include basic-block.h.
4702 * hsa-gen.c (T sum_slice): Update.
4703 (convert_switch_statements):Update.
4704 * hsa-regalloc.c: Include basic-block.h.
4705 * ipa-chkp.c (chkp_produce_thunks): Update.
4706 * ipa-cp.c (struct caller_statistics): Update.
4707 (init_caller_stats): Update.
4708 (gather_caller_stats): Update.
4709 (ipcp_cloning_candidate_p): Update.
4710 (good_cloning_opportunity_p): Update.
4711 (get_info_about_necessary_edges): Update.
4712 (dump_profile_updates): Update.
4713 (update_profiling_info): Update.
4714 (update_specialized_profile): Update.
4715 (perhaps_add_new_callers): Update.
4716 (decide_about_value): Update.
4717 (ipa_cp_c_finalize): Update.
4718 * ipa-devirt.c (struct odr_type_warn_count): Update.
4719 (struct decl_warn_count): Update.
4720 (struct final_warning_record): Update.
4721 (possible_polymorphic_call_targets): Update.
4722 (ipa_devirt): Update.
4723 * ipa-fnsummary.c (redirect_to_unreachable): Update.
4724 * ipa-icf.c (sem_function::merge): Update.
4725 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
4726 * ipa-inline.c (compute_uninlined_call_time): Update.
4727 (compute_inlined_call_time): Update.
4728 (want_inline_small_function_p): Update.
4729 (want_inline_self_recursive_call_p): Update.
4730 (edge_badness): Update.
4731 (lookup_recursive_calls): Update.
4732 (recursive_inlining): Update.
4733 (inline_small_functions): Update.
4734 (dump_overall_stats): Update.
4735 (dump_inline_stats): Update.
4736 * ipa-profile.c (ipa_profile_generate_summary): Update.
4737 (ipa_propagate_frequency): Update.
4738 (ipa_profile): Update.
4739 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4740 * ipa-utils.c (ipa_merge_profiles): Update.
4741 * loop-doloop.c (doloop_modify): Update.
4742 * loop-unroll.c (report_unroll): Update.
4743 (unroll_loop_runtime_iterations): Update.
4744 * lto-cgraph.c (lto_output_edge): Update.
4745 (lto_output_node): Update.
4746 (input_node): Update.
4747 (input_edge): Update.
4748 (merge_profile_summaries): Update.
4749 * lto-streamer-in.c (input_cfg): Update.
4750 * lto-streamer-out.c (output_cfg): Update.
4751 * mcf.c (create_fixup_graph): Update.
4752 (adjust_cfg_counts): Update.
4753 (sum_edge_counts): Update.
4754 * modulo-sched.c (sms_schedule): Update.
4755 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
4756 * predict.c (maybe_hot_count_p): Update.
4757 (probably_never_executed): Update.
4758 (dump_prediction): Update.
4759 (combine_predictions_for_bb): Update.
4760 (propagate_freq): Update.
4761 (handle_missing_profiles): Update.
4762 (counts_to_freqs): Update.
4763 (rebuild_frequencies): Update.
4764 (force_edge_cold): Update.
4765 * predict.h: Include profile-count.h
4766 (maybe_hot_count_p, counts_to_freqs): UPdate.
4767 * print-rtl-function.c: Do not include cfg.h
4768 * print-rtl.c: Include basic-block.h
4769 * profile-count.c: New file.
4770 * profile-count.h: New file.
4771 * profile.c (is_edge_inconsistent): Update.
4772 (correct_negative_edge_counts): Update.
4773 (is_inconsistent): Update.
4774 (set_bb_counts): Update.
4775 (read_profile_edge_counts): Update.
4776 (compute_frequency_overlap): Update.
4777 (compute_branch_probabilities): Update; Initialize and deinitialize
4778 gcov_count tables.
4779 (branch_prob): Update.
4780 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
4781 (edge_gcov_count): New.
4782 (bb_gcov_count): New.
4783 * shrink-wrap.c (try_shrink_wrapping): Update.
4784 * tracer.c (better_p): Update.
4785 * trans-mem.c (expand_transaction): Update.
4786 (ipa_tm_insert_irr_call): Update.
4787 (ipa_tm_insert_gettmclone_call): Update.
4788 * tree-call-cdce.c: Update.
4789 * tree-cfg.c (gimple_duplicate_sese_region): Update.
4790 (gimple_duplicate_sese_tail): Update.
4791 (gimple_account_profile_record): Update.
4792 (execute_fixup_cfg): Update.
4793 * tree-inline.c (copy_bb): Update.
4794 (copy_edges_for_bb): Update.
4795 (initialize_cfun): Update.
4796 (freqs_to_counts): Update.
4797 (copy_cfg_body): Update.
4798 (expand_call_inline): Update.
4799 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
4800 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
4801 (try_unroll_loop_completely): Update.
4802 (try_peel_loop): Update.
4803 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
4804 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
4805 * tree-ssa-loop-split.c (connect_loops): Update.
4806 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
4807 * tree-ssa-reassoc.c (branch_fixup): Update.
4808 * tree-ssa-tail-merge.c (replace_block_by): Update.
4809 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
4810 (compute_path_counts): Update.
4811 (update_profile): Update.
4812 (recompute_probabilities): Update.
4813 (update_joiner_offpath_counts): Update.
4814 (estimated_freqs_path): Update.
4815 (freqs_to_counts_path): Update.
4816 (clear_counts_path): Update.
4817 (ssa_fix_duplicate_block_edges): Update.
4818 (duplicate_thread_path): Update.
4819 * tree-switch-conversion.c (case_bit_test_cmp): Update.
4820 (struct switch_conv_info): Update.
4821 * tree-tailcall.c (decrease_profile): Update.
4822 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
4823 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
4824 * value-prof.c (check_counter): Update.
4825 (gimple_divmod_fixed_value): Update.
4826 (gimple_mod_pow2): Update.
4827 (gimple_mod_subtract): Update.
4828 (gimple_ic_transform): Update.
4829 (gimple_stringop_fixed_value): Update.
4830 * value-prof.h (gimple_ic): Update.
4831
4832 2017-06-02 Carl Love <cel@us.ibm.com>
4833
4834 * config/rs6000/rs6000-c: Add support for built-in functions
4835 vector double vec_doublee (vector signed int);
4836 vector double vec_doublee (vector unsigned int);
4837 vector double vec_doublee (vector float);
4838 vector double vec_doubleh (vector signed int);
4839 vector double vec_doubleh (vector unsigned int);
4840 vector double vec_doubleh (vector float);
4841 vector double vec_doublel (vector signed int);
4842 vector double vec_doublel (vector unsigned int);
4843 vector double vec_doublel (vector float);
4844 vector double vec_doubleo (vector signed int);
4845 vector double vec_doubleo (vector unsigned int);
4846 vector double vec_doubleo (vector float);.
4847 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
4848 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
4849 UNS_DOUBLEL.
4850 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
4851 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
4852 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
4853 VS_sxwsp.
4854 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
4855 vec_doublel, vec_doubleh.
4856 * doc/extend.texi: Update the built-in documentation file for the
4857 new built-in functions.
4858
4859 2017-06-02 David Malcolm <dmalcolm@redhat.com>
4860
4861 PR jit/80954
4862 * ipa-inline-analysis.c (free_growth_caches): Set
4863 edge_removal_hook_holder to NULL after removing it.
4864
4865 2017-06-02 Sudakshina Das <sudi.das@arm.com>
4866
4867 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
4868 comparision with zero.
4869
4870 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
4871 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4872 for early expansion of vec_min and vec_max builtins.
4873 (builtin_function_type): Add min/max unsigned variants to those
4874 identified as having unsigned arguments.
4875
4876 2017-06-02 Olivier Hainque <hainque@adacore.com>
4877
4878 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
4879
4880 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4881
4882 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4883 Use VALL_F16 iterator rather than VALL.
4884
4885 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4886
4887 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
4888 Emit CBNZ inside loop when doing a strong exchange and comparing
4889 against zero. Generate the CC flags after the loop.
4890
4891 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
4892
4893 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
4894 (dl_section_ref): New.
4895 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
4896 On AIX, append an expression to subtract the size of the
4897 section length to dl_section_ref.
4898
4899 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
4900
4901 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4902 for early expansion of vector absolute builtins.
4903
4904 2017-06-02 Richard Biener <rguenther@suse.de>
4905
4906 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
4907 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
4908
4909 2017-06-02 Richard Biener <rguenther@suse.de>
4910
4911 PR tree-optimization/80948
4912 * tree-tailcall.c (find_tail_calls): Track stmts to move in
4913 stmt order as well.
4914
4915 2017-06-02 Richard Biener <rguenther@suse.de>
4916
4917 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
4918 PHIs are ok.
4919 * tree-vect-stmts.c (process_use): Do not mark backedge defs
4920 for inductions as relevant.
4921
4922 2017-06-02 Richard Biener <rguenther@suse.de>
4923
4924 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
4925 (vectorizable_induction): ... this. Remove dead code.
4926
4927 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
4928
4929 * builtins. (expand_builtin_alloca): Remove second parameter and
4930 infer its value from the first parameter instead.
4931 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
4932
4933 2017-06-02 Jakub Jelinek <jakub@redhat.com>
4934
4935 PR rtl-optimization/80903
4936 * loop-doloop.c (add_test): Unshare sequence.
4937
4938 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4939
4940 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
4941
4942 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4943
4944 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
4945 static.
4946 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
4947 xlogue_layout::get_instance, logue_layout::xlogue_layout,
4948 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
4949 (xlogue_layout::get_stub_rtx): Make static.
4950 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
4951 (xlogue_layout::compute_stub_managed_regs): Rename to...
4952 (xlogue_layout::count_stub_managed_regs): ...this.
4953 (xlogue_layout::is_stub_managed_reg): New function.
4954 (xlogue_layout::m_stub_names): Rename to...
4955 (xlogue_layout::s_stub_names): ...this, make static.
4956 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
4957 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
4958 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
4959 xlogue_layout::s_stub_names): Instantiate statics.
4960 (stub_managed_regs): Remove.
4961 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
4962 (disable_call_ms2sysv_xlogues): Rename to...
4963 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
4964 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
4965 warning logic.
4966 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
4967 change after reload_completed.
4968 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
4969 directly.
4970 (ix86_expand_prologue): Likewise.
4971 (ix86_expand_epilogue): Likewise.
4972 (ix86_expand_split_stack_prologue): Likewise.
4973 (ix86_compute_frame_layout): Remove frame parameter ...
4974 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
4975 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
4976 only if necessary.
4977 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
4978 (ix86_frame): Move from here ...
4979 * config/i386/i386.h (ix86_frame): ... to here.
4980 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
4981 complete ix86_frame data structure instead. Remove some_ld_name.
4982
4983 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
4984
4985 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
4986 symbols that hold a DECL_VALUE_EXPR.
4987
4988 2017-06-01 Martin Jambor <mjambor@suse.cz>
4989
4990 PR tree-optimization/80898
4991 * tree-sra.c (process_subtree_disqualification): Removed.
4992 (disqualify_candidate): Do not acll
4993 process_subtree_disqualification.
4994 (subtree_mark_written_and_enqueue): New function.
4995 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
4996 RHS has been disqualified and re-queue LHS if necessary. Apart
4997 from that, ignore disqualified RHS.
4998
4999 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5000
5001 * config/s390/s390.c (s390_emit_epilogue): Disable early return
5002 address fetch for z10 or later.
5003
5004 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5005
5006 * config/arc/arc.md (tst_movb): Add guard when splitting.
5007
5008 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5009
5010 * config/arc/arc.c (arc_can_eliminate): Test against
5011 arc_frame_pointer_needed.
5012
5013 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5014
5015 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
5016 to prevent store reordering.
5017 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
5018 (type): Add block type.
5019 (stack_tie): Define special instruction to be used in
5020 expand_prologue.
5021
5022 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5023
5024 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
5025 constraint. It is not valid for the pattern.
5026 (noncommutative_binary_comparison): Likewise.
5027
5028 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5029
5030 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
5031 scaled addresses.
5032
5033 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5034
5035 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
5036 be used by the reg-alloc.
5037
5038 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5039
5040 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
5041 reg-alloc when having mul64 or mul32x16 instructions.
5042 (mulsidi3): Likewise.
5043 (umulsidi3): Likewise.
5044 (mulsi32x16): New pattern.
5045 (mulsi64): Likewise.
5046 (mulsidi64): Likewise.
5047 (umulsidi64): Likewise.
5048 (MUL32x16_REG): Define.
5049 (mul64_600): Use MUL32x16_REG.
5050 (mac64_600): Likewise.
5051 (umul64_600): Likewise.
5052 (umac64_600): Likewise.
5053
5054 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
5055
5056 * config/arc/arc.md (mulsi3_700): Make it commutative.
5057
5058 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
5059
5060 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
5061 type for movstouw.
5062 (*sign_extendsidi2_insn): Likewise for movstosw.
5063
5064 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
5065
5066 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
5067 the type of the input discriminant value. Convert the
5068 discriminant value of signedness vary.
5069
5070 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
5071
5072 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
5073 Add to -Wall section.
5074
5075 2017-06-01 Richard Biener <rguenther@suse.de>
5076
5077 PR middle-end/66313
5078 * fold-const.c (fold_plusminus_mult_expr): If the factored
5079 factor may be zero use a wrapping type for the inner operation.
5080 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
5081 and handle moved defs.
5082 (process_assignment): Properly guard the unary op case. Return a
5083 tri-state indicating that moving the stmt before the call may allow
5084 to continue. Pass through to_move.
5085 (find_tail_calls): Handle moving unrelated defs before
5086 the call.
5087
5088 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
5089
5090 PR target/80618
5091 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
5092 splitter result in the canonical way.
5093
5094 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
5095
5096 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
5097 also for 32bit target. Update insn attributes.
5098 (zero-extendsidi2 splitter): Allow all registers for operand 1.
5099
5100 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
5101
5102 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
5103 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
5104 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
5105 (_mm_maskz_min_ss): New intrinsics.
5106
5107 2017-05-31 Martin Liska <mliska@suse.cz>
5108
5109 * tree-vect-loop.c (vect_create_epilog_for_reduction):
5110 Change comment style to one we normally use.
5111 (vectorizable_reduction): Likewise.
5112 (vectorizable_induction): Likewise.
5113 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
5114 (vectorizable_call): Likewise.
5115 (vectorizable_simd_clone_call): Likewise.
5116 (vectorizable_conversion): Likewise.
5117 (vectorizable_assignment): Likewise.
5118 (vectorizable_shift): Likewise.
5119 (vectorizable_operation): Likewise.
5120 (vectorizable_store): Likewise.
5121 (vectorizable_load): Likewise.
5122 * tree-vectorizer.h: Likewise.
5123
5124 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
5125
5126 * passes.c (emergency_dump_function): New.
5127 * tree-pass.h (emergency_dump_function): Declare.
5128 * plugin.c (plugins_internal_error_function): Remove.
5129 * plugin.h (plugins_internal_error_function): Remove declaration.
5130 * toplev.c (internal_error_function): New static function. Use it...
5131 (general_init): ...here.
5132
5133 2017-05-31 Graham Markall <graham.markall@embecosm.com>
5134
5135 * config/arc/arc.c (arc_print_operand): Handle constant operands.
5136 (arc_rtx_costs): Add costs for new patterns.
5137 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
5138 * config/arc/predicates.md: Add _1_2_3_operand predicate.
5139
5140 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
5141
5142 * tree-ssa-strlen.c (get_next_strinfo): New function.
5143 (get_stridx_plus_constant): Use it.
5144 (zero_length_string): Likewise.
5145 (adjust_related_strinfos): Likewise.
5146 (adjust_last_stmt): Likewise.
5147
5148 2017-05-31 Richard Biener <rguenther@suse.de>
5149
5150 PR target/80880
5151 * config/i386/i386.c (ix86_expand_builtin): Remove assert
5152 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
5153
5154 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
5155
5156 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
5157 loop_vinfo argument and use of dependence distance vectors.
5158 Check instead whether the two references differ only in their
5159 initial value and assume that they have the same alignment if the
5160 difference is a multiple of the vector alignment.
5161 (vect_analyze_data_refs_alignment): Update call accordingly.
5162
5163 2017-05-31 Martin Liska <mliska@suse.cz>
5164
5165 PR target/79155
5166 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
5167
5168 2017-05-31 Bin Cheng <bin.cheng@arm.com>
5169
5170 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
5171 (create_intersect_range_checks): Move from ...
5172 * tree-data-ref.c (create_intersect_range_checks_index)
5173 (create_intersect_range_checks): ... to here.
5174 (create_runtime_alias_checks): New function factored from ...
5175 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
5176 here. Call above function.
5177 * tree-data-ref.h (create_runtime_alias_checks): New function.
5178
5179 2017-05-31 Bin Cheng <bin.cheng@arm.com>
5180
5181 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
5182 segment length for dr_b and compute it in wide_int.
5183
5184 2017-05-31 Richard Biener <rguenther@suse.de>
5185
5186 PR tree-optimization/80906
5187 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
5188 and pass through iv_map.
5189 (copy_bb_and_scalar_dependences): Adjust.
5190 (translate_pending_phi_nodes): Likewise.
5191 (copy_loop_close_phi_args): Handle code-generating IVs instead
5192 of ICEing.
5193
5194 2017-05-30 David Malcolm <dmalcolm@redhat.com>
5195
5196 * diagnostic-color.c (color_dict): Add "type-diff".
5197 (parse_gcc_colors): Update comment.
5198 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5199 -fdiagnostics-show-template-tree and -fno-elide-type.
5200 (GCC_COLORS): Add type-diff to example.
5201 (type-diff=): New.
5202 (-fdiagnostics-show-template-tree): New.
5203 (-fno-elide-type): New.
5204 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
5205 the pp_format_decoder callback. Call any m_format_postprocessor's
5206 "handle" method.
5207 (pretty_printer::pretty_printer): Initialize
5208 m_format_postprocessor.
5209 (pretty_printer::~pretty_printer): Delete any
5210 m_format_postprocessor.
5211 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
5212 (class format_postprocessor): New class.
5213 (struct pretty_printer::format_decoder): Document the new parameters.
5214 (struct pretty_printer::m_format_postprocessor): New field.
5215 * tree-diagnostic.c (default_tree_printer): Update for new
5216 bool and const char ** params.
5217 * tree-diagnostic.h (default_tree_printer): Likewise.
5218
5219 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
5220
5221 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
5222 (lwa_operand): Delete rs6000_gen_cell_microcode test.
5223 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
5224 rs6000_gen_cell_microcode code.
5225 (rs6000_final_prescan_insn): Delete.
5226 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
5227 "warn-cell-microcode" entries.
5228 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
5229 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
5230 throughout. Change cc_reg_not_micro_cr0_operand to
5231 cc_reg_not_cr0_operand throughout.
5232 (*extendhi<mode>2_noload): Delete.
5233 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
5234 (mwarn-cell-microcode): Delete.
5235 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
5236 -mgen-cell-microcode and -mwarn-cell-microcode.
5237
5238 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
5239
5240 PR target/80833
5241 * config/i386/constraints.md (Yd): New constraint.
5242 (Ye): Ditto.
5243 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
5244 and (?Yd, r) alternatives. Update insn attributes.
5245 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
5246 and (?*Yd, r) alternatives. Update insn attributes.
5247 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
5248
5249 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
5250
5251 * gimplify.c (gimplify_modify_expr): Don't create a
5252 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
5253 function.
5254
5255 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
5256
5257 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
5258
5259 2017-05-30 Richard Biener <rguenther@suse.de>
5260
5261 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
5262 and reduc_def fields.
5263 (STMT_VINFO_REDUC_TYPE): New define.
5264 (STMT_VINFO_REDUC_DEF): Likewise.
5265 (vect_force_simple_reduction): Adjust prototype.
5266 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
5267 (vect_is_simple_reduction): Remove check_reduction argument.
5268 (vect_force_simple_reduction): Adjust and set
5269 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
5270 (vectorizable_reduction): Do not re-do reduction analysis
5271 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
5272 * tree-parloops.c (gather_scalar_reductions): Adjust.
5273
5274 2017-05-30 Richard Biener <rguenther@suse.de>
5275
5276 PR middle-end/80901
5277 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
5278 split_edge code.
5279
5280 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
5281
5282 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
5283 Introduce unknown_misalignment parameter and remove vf.
5284 (vect_peeling_hash_get_lowest_cost):
5285 Pass unknown_misalignment parameter.
5286 (vect_enhance_data_refs_alignment):
5287 Fix unsupportable data ref treatment.
5288
5289 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5290
5291 * tree-vect-data-refs.c (vect_get_data_access_cost):
5292 Workaround for SLP handling.
5293 (vect_enhance_data_refs_alignment):
5294 Compute costs for doing no peeling at all, compare to the best
5295 peeling costs so far and avoid peeling if cheaper.
5296
5297 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5298
5299 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
5300 Return peeling info and set costs to zero for unlimited cost
5301 model.
5302 (vect_enhance_data_refs_alignment): Also inspect all datarefs
5303 with unknown misalignment. Compute and costs for unknown
5304 misalignment, compare them to the costs for known misalignment
5305 and choose the cheapest for peeling.
5306
5307 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5308
5309 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
5310 (vect_get_peeling_costs_all_drs): Create function.
5311 (vect_peeling_hash_get_lowest_cost):
5312 Use vect_get_peeling_costs_all_drs.
5313 (vect_peeling_supportable): Create function.
5314 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
5315
5316 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5317
5318 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
5319 DR_HAS_NEGATIVE_STEP.
5320 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
5321 (vect_enhance_data_refs_alignment): Use.
5322 (vect_duplicate_ssa_name_ptr_info): Use.
5323 * tree-vectorizer.h (dr_misalignment): Use.
5324 (known_alignment_for_access_p): Use.
5325
5326 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
5327
5328 PR target/78838
5329 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
5330 .lowtext.
5331 (has_section_name): New function.
5332
5333 2017-05-30 Martin Liska <mliska@suse.cz>
5334
5335 PR other/80909
5336 * auto-profile.c (get_function_decl_from_block): Fix
5337 parenthesis.
5338
5339 2017-05-30 Richard Biener <rguenther@suse.de>
5340
5341 PR middle-end/80876
5342 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
5343
5344 2017-05-30 Martin Liska <mliska@suse.cz>
5345
5346 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
5347 * dumpfile.h (struct dump_file_info): Remove ctors.
5348
5349 2017-05-30 Martin Liska <mliska@suse.cz>
5350
5351 * predict.def: Fix GNU coding style.
5352
5353 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
5354
5355 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
5356 Mark 'to' argument with ATTRIBUTE_UNUSED.
5357
5358 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
5359
5360 * config/xtensa/xtensa.c (xtensa_emit_call): Use
5361 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
5362 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
5363 format string.
5364
5365 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
5366
5367 * doc/install.texi (Options specification): Restore entry of
5368 --enable-sjlj-exceptions.
5369
5370 2017-05-27 Michael Eager <eager@eagercon.com>
5371
5372 Revert:
5373 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5374
5375 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
5376
5377 * config/microblaze/microblaze.h
5378 (FIXED_REGISTERS): Update in macro.
5379 (CALL_USED_REGISTERS): Update in macro.
5380
5381 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
5382
5383 * doc/install.texi: Add links to macOS binary distributions.
5384
5385 2017-05-27 Jakub Jelinek <jakub@redhat.com>
5386
5387 PR bootstrap/80887
5388 Revert:
5389 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5390
5391 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
5392
5393 2017-05-26 Martin Liska <mliska@suse.cz>
5394
5395 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
5396
5397 2017-05-26 Martin Liska <mliska@suse.cz>
5398
5399 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
5400 always leading ';; '.
5401 (dump_bb_info): Likewise.
5402 (brief_dump_cfg): Likewise.
5403 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
5404 * dumpfile.c: Remove usage of TDF_VERBOSE.
5405 * dumpfile.h (enum dump_kind): Likewise.
5406 (dump_gimple_bb_header): Do not use TDF_COMMENT.
5407 * print-tree.c (debug_verbose): Remove.
5408 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
5409 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
5410 * tree-diagnostic.c (default_tree_printer): Replace
5411 TDF_DIAGNOSTIC with TDF_SLIM.
5412
5413 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5414
5415 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
5416 in parameter loop, rather than loop_vinfo.
5417 (create_intersect_range_checks): Ditto.
5418 (vect_create_cond_for_alias_checks): Update call to above functions.
5419
5420 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5421
5422 PR tree-optimization/80815
5423 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
5424 for merging runtime alias checks. Handle negative DR_STEPs.
5425
5426 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5427
5428 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
5429 Move from ...
5430 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
5431 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
5432 out code pruning runtime alias checks.
5433 * tree-data-ref.c (prune_runtime_alias_test_list): New function
5434 factored out from above.
5435 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
5436 Move from ...
5437 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
5438 ... to here.
5439 (prune_runtime_alias_test_list): New decalaration.
5440
5441 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5442
5443 * tree-vect-data-refs.c (compare_tree): Rename and move ...
5444 * tree-data-ref.c (data_ref_compare_tree): ... to here.
5445 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
5446 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
5447 (operator==, comp_dr_with_seg_len_pair): Ditto.
5448 (vect_prune_runtime_alias_test_list): Ditto.
5449
5450 2017-05-26 Martin Liska <mliska@suse.cz>
5451
5452 PR ipa/80663
5453 * params.def: Bound partial-inlining-entry-probability param.
5454
5455 2017-05-26 Marek Polacek <polacek@redhat.com>
5456
5457 PR sanitizer/80875
5458 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
5459 can be negated.
5460
5461 2017-05-26 Richard Biener <rguenther@suse.de>
5462
5463 PR tree-optimization/80842
5464 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
5465 value.
5466
5467 2017-05-26 Richard Biener <rguenther@suse.de>
5468
5469 PR tree-optimization/80844
5470 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
5471
5472 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
5473
5474 * doc/md.texi (Machine Constraints): Update x86 family
5475 machine constraints section to match 'config/i386/constraints.md'.
5476
5477 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
5478
5479 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
5480
5481 2017-05-25 Nathan Sidwell <nathan@acm.org>
5482
5483 * doc/invoke.texi (--enable-languages): Update documentation.
5484
5485 2017-05-25 Martin Liska <mliska@suse.cz>
5486
5487 * dumpfile.c: Add TDF_FOLDING.
5488 * dumpfile.h (enum dump_kind): Likewise.
5489 * genmatch.c (dt_simplify::gen_1): Use it.
5490
5491 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5492
5493 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
5494
5495 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5496
5497 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
5498 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
5499
5500 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5501
5502 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
5503 * match.pd (X == C): Rewrite it here.
5504 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
5505 with_certain_nonzero_bits2): New predicates.
5506 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
5507
5508 2017-05-24 Nathan Sidwell <nathan@acm.org>
5509
5510 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
5511 avoid warning.
5512
5513 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
5514 warning.
5515
5516 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
5517
5518 * config/powerpcspe: New port. Files are copied from the rs6000
5519 port, with "rs6000" in filenames replaced by "powerpcspe".
5520
5521 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
5522
5523 PR rtl-optimization/80754
5524 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
5525
5526 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
5527
5528 * config/sparc/sparc.md (length): Return the correct value for -mflat
5529 sibcalls to match output_sibcall.
5530
5531 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
5532
5533 PR bootstrap/80860
5534 PR bootstrap/80843
5535 * config/rs6000/rs6000.c (struct machine_function): Add new field
5536 n_components.
5537 (rs6000_get_separate_components): Init that field, use it.
5538 (rs6000_components_for_bb): Use the field.
5539
5540 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5541
5542 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
5543
5544 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
5545
5546 PR middle-end/80823
5547 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
5548
5549 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5550
5551 PR target/80725
5552 * config/s390/s390.c (s390_check_qrst_address): Check incoming
5553 address against address_operand predicate.
5554 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
5555
5556 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
5557
5558 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
5559 parameters passed indirectly.
5560
5561 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
5562
5563 * config/i386/i386.md (*movdi_internal): Remove SSE4
5564 alternative 18 (?r, *v). Update insn attributes.
5565 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
5566 Update insn attributes.
5567 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
5568 Update insn attributes.
5569 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
5570 alternative 1 (r, v). Remove isa attribute.
5571 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5572 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
5573 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5574
5575 2017-05-23 Tom de Vries <tom@codesourcery.com>
5576
5577 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
5578 dg-line directive.
5579
5580 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5581
5582 * cgraphunit.c (symbol_table::process_new_functions): Update.
5583 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
5584 (inline_generate_summary): Rename to ...
5585 (ipa_fn_summary_generate): ... this one.
5586 (inline_read_summary): Rename to ...
5587 (ipa_fn_summary_read): ... this one.
5588 (inline_write_summary): Rename to ...
5589 (ipa_fn_summary_write): ... this one.
5590 (inline_free_summary): Rename to ...
5591 (ipa_free_fn_summary): ... this one.
5592 (pass_data_local_fn_summary, pass_local_fn_summary,
5593 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
5594 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
5595 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
5596 make_pass_ipa_fn_summary): New.
5597 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
5598 inline_write_summary, inline_free_summary): Remove.
5599 (ipa_free_fn_summary) : New.
5600 * ipa-inline.c (ipa_inline): Update.
5601 (pass_ipa_inline): Do not generate summaries.
5602 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
5603 Remove.
5604 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
5605 and add pass_ipa_fn_summary.
5606 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
5607 New.
5608 (make_pass_inline_parameters): Remove.
5609
5610 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5611
5612 * omp-low.c (struct omp_context): Remove "default_kind" member.
5613 Adjust all users.
5614
5615 * omp-offload.c (execute_oacc_device_lower): Remove the
5616 parallelism dimensions function attributes for unparallelized
5617 OpenACC kernels constructs.
5618
5619 2017-05-23 Martin Liska <mliska@suse.cz>
5620
5621 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
5622 functions.
5623 (cgraph_edge::make_speculative): Likewise.
5624 (cgraph_edge::resolve_speculation): Likewise.
5625 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5626 (cgraph_node::dump): Likewise.
5627 * cgraph.h: Likewise.
5628 * cgraphunit.c (analyze_functions): Likewise.
5629 (symbol_table::compile): Likewise.
5630 * ipa-cp.c (print_all_lattices): Likewise.
5631 (determine_versionability): Likewise.
5632 (initialize_node_lattices): Likewise.
5633 (ipcp_verify_propagated_values): Likewise.
5634 (estimate_local_effects): Likewise.
5635 (update_profiling_info): Likewise.
5636 (create_specialized_node): Likewise.
5637 (perhaps_add_new_callers): Likewise.
5638 (decide_about_value): Likewise.
5639 (decide_whether_version_node): Likewise.
5640 (identify_dead_nodes): Likewise.
5641 (ipcp_store_bits_results): Likewise.
5642 * ipa-devirt.c (dump_targets): Likewise.
5643 (ipa_devirt): Likewise.
5644 * ipa-icf.c (sem_item::dump): Likewise.
5645 (sem_function::equals): Likewise.
5646 (sem_variable::equals): Likewise.
5647 (sem_item_optimizer::read_section): Likewise.
5648 (sem_item_optimizer::execute): Likewise.
5649 (congruence_class::dump): Likewise.
5650 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
5651 (dump_inline_summary): Likewise.
5652 (estimate_node_size_and_time): Likewise.
5653 (inline_analyze_function): Likewise.
5654 * ipa-inline-transform.c (inline_call): Likewise.
5655 * ipa-inline.c (report_inline_failed_reason): Likewise.
5656 (want_early_inline_function_p): Likewise.
5657 (edge_badness): Likewise.
5658 (update_edge_key): Likewise.
5659 (inline_small_functions): Likewise.
5660 * ipa-profile.c (ipa_profile): Likewise.
5661 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5662 (ipa_make_edge_direct_to_target): Likewise.
5663 (remove_described_reference): Likewise.
5664 (ipa_impossible_devirt_target): Likewise.
5665 (propagate_controlled_uses): Likewise.
5666 (ipa_print_node_params): Likewise.
5667 (ipcp_transform_function): Likewise.
5668 * ipa-pure-const.c (pure_const_read_summary): Likewise.
5669 (propagate_pure_const): Likewise.
5670 * ipa-reference.c (generate_summary): Likewise.
5671 (read_write_all_from_decl): Likewise.
5672 (propagate): Likewise.
5673 (ipa_reference_read_optimization_summary): Likewise.
5674 * ipa-utils.c (ipa_merge_profiles): Likewise.
5675 * ipa.c (walk_polymorphic_call_targets): Likewise.
5676 (symbol_table::remove_unreachable_nodes): Likewise.
5677 (ipa_single_use): Likewise.
5678 * passes.c (execute_todo): Likewise.
5679 * predict.c (drop_profile): Likewise.
5680 * symtab.c (symtab_node::get_dump_name): New function.
5681 (symtab_node::dump_name): Likewise.
5682 (symtab_node::dump_asm_name): Likewise.
5683 (symtab_node::dump_references): Likewise.
5684 (symtab_node::dump_referring): Likewise.
5685 (symtab_node::dump_base): Likewise.
5686 (symtab_node::debug_symtab): Likewise.
5687 * tree-sra.c (convert_callers_for_node): Likewise.
5688 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5689 * value-prof.c (init_node_map): Likewise.
5690
5691 2017-05-23 Martin Liska <mliska@suse.cz>
5692
5693 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
5694 and symtab_node::debug_symtab to symbol_table::debug.
5695 * cgraphunit.c (analyze_functions): Use the renamed function.
5696 (symbol_table::compile): Likewise.
5697 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
5698 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5699 * passes.c (execute_todo): Likewise.
5700 * symtab.c (symbol_table::dump): New function.
5701 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
5702
5703 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5704
5705 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
5706 that nonconst implies exec.
5707
5708 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5709
5710 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5711 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5712 (inline_edge_summary_vec): Turn into ...
5713 (ipa_call_summaries): ... this one.
5714 (redirect_to_unreachable, edge_set_predicate,
5715 evaluate_properties_for_edge, inline_summary_alloc,
5716 reset_ipa_call_summary, reset_inline_summary,
5717 inline_summary_t::duplicate): Update.
5718 (inline_edge_duplication_hook): Turn to ...
5719 (ipa_call_summary_t::duplicate): ... this one.
5720 (inline_edge_removal_hook): Turn to ...
5721 (ipa_call_summary_t::remove): ... this one.
5722 (dump_inline_edge_summary): Turn to ...
5723 (dump_ipa_call_summary): ... this one.
5724 (estimate_function_body_sizes): Update.
5725 (inline_update_callee_summaries): Update.
5726 (remap_edge_change_prob): Update.
5727 (remap_edge_summaries): Update.
5728 (inline_merge_summary): Update.
5729 (do_estimate_edge_time): Update.
5730 (inline_generate_summary): Update.
5731 (inline_read_section): Update.
5732 (inline_read_summary): Update.
5733 (inline_free_summary): Update.
5734 * ipa-inline.c (can_inline_edge_p): Update.
5735 (compute_inlined_call_time): Update.
5736 (want_inline_small_function_p): Update.
5737 (edge_badness): Update.
5738 (early_inliner): Update.
5739 * ipa-inline.h (inline_edge_summary): Turn to ...
5740 (ipa_call_summary): ... this one.
5741 (ipa_call_summary_t): New class.
5742 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
5743 (ipa_call_summaries): New.
5744 (inline_edge_summary): Remove.
5745 (estimate_edge_growth): Update.
5746 * ipa-profile.c (ipa_propagate_frequency_1): Update.
5747 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
5748 * ipa-split.c (execute_split_functions): Update.
5749 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5750
5751 2017-05-23 Tom de Vries <tom@codesourcery.com>
5752
5753 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5754 attributes): Document rdrand effective target.
5755
5756 2017-05-23 Tom de Vries <tom@codesourcery.com>
5757
5758 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5759 attributes): Sort alphabetically.
5760
5761 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
5762
5763 * config/avr/genmultilib.awk: Use gsub instead of gensub.
5764
5765 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5766
5767 PR target/80718
5768 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
5769 V2DF/V2DI splat into two separate patterns, one that handles
5770 registers, and the other that only handles memory. Drop support
5771 for splatting from a GPR on ISA 2.07 and then splitting the
5772 splat into direct move and splat.
5773 (vsx_splat_<mode>_reg): Likewise.
5774 (vsx_splat_<mode>_mem): Likewise.
5775
5776 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
5777
5778 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
5779
5780 2017-05-22 Jakub Jelinek <jakub@redhat.com>
5781
5782 PR middle-end/80809
5783 * omp-low.c (finish_taskreg_remap): New function.
5784 (finish_taskreg_scan): If unit size of ctx->record_type
5785 is non-constant, unshare the size expression and replace
5786 decls in it with possible outer var refs.
5787
5788 PR middle-end/80809
5789 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
5790 GOVD_SHARED rather than GOVD_PRIVATE with it.
5791 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
5792 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
5793
5794 PR middle-end/80853
5795 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
5796 as last argument to build_outer_var_ref for pointer bases of array
5797 section reductions.
5798
5799 2017-05-19 Martin Sebor <msebor@redhat.com>
5800
5801 * print-tree.c (print_node): Print DECL_READ_P flag.
5802
5803 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5804
5805 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
5806 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
5807 * cgraph.c: Likewise.
5808 * cgraphunit.c: Likewise.
5809 * gengtype.c: Likewise.
5810 * ipa-cp.c: Likewise.
5811 * ipa-devirt.c: Likewise.
5812 * ipa-icf.c: Likewise.
5813 * ipa-predicate.c: Likewise.
5814 * ipa-profile.c: Likewise.
5815 * ipa-prop.c: Likewise.
5816 * ipa-split.c: Likewise.
5817 * ipa.c: Likewise.
5818 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
5819 edge_predicate_pool, dump_inline_hints,
5820 inline_summary::account_size_time, redirect_to_unreachable,
5821 edge_set_predicate, set_hint_predicate,
5822 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
5823 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
5824 inline_summary_t::remove, remap_hint_predicate_after_duplication,
5825 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
5826 ipa_call_summary_t::remove, initialize_growth_caches,
5827 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
5828 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
5829 mark_modified, unmodified_parm_1, unmodified_parm,
5830 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
5831 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
5832 compute_bb_predicates, will_be_nonconstant_expr_predicate,
5833 will_be_nonconstant_predicate, record_modified_bb_info,
5834 get_minimal_bb, record_modified, param_change_prob,
5835 phi_result_unknown_predicate, predicate_for_phi_result,
5836 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
5837 estimate_function_body_sizes, compute_inline_parameters,
5838 compute_inline_parameters_for_curren, pass_data_inline_parameters,
5839 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
5840 inline_update_callee_summaries, remap_edge_change_prob,
5841 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
5842 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
5843 inline_analyze_function, inline_summary_t::insert,
5844 inline_generate_summary, read_ipa_call_summary, inline_read_section,
5845 inline_read_summary, write_ipa_call_summary, inline_write_summary,
5846 inline_free_summary): Move to ipa-fnsummary.h
5847 (predicate_t): Remove.
5848 * ipa-fnsummary.c: New file.
5849 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
5850 (enum inline_hints_vals, inline_hints, agg_position_info,
5851 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
5852 inline_summaries, ipa_call_summary, ipa_call_summary_t,
5853 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
5854 dump_inline_summary, dump_inline_hints, inline_generate_summary,
5855 inline_read_summary, inline_write_summary, inline_free_summary,
5856 inline_analyze_function, initialize_inline_failed,
5857 inline_merge_summary, inline_update_overall_summary,
5858 compute_inline_parameters): Move to ipa-fnsummary.h
5859 * ipa-fnsummary.h: New file.
5860 * ipa-inline-transform.h: Include ipa-inline.h.
5861 * ipa-inline.c: LIkewise.
5862
5863 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5864
5865 * ipa-inline.c (edge_badness): Use inlined_time instead of
5866 inline_summaries->get.
5867
5868 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5869
5870 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
5871
5872 2017-05-22 Nathan Sidwell <nathan@acm.org>
5873
5874 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
5875 (fdump-lang): Document 'raw' option.
5876 * dumpfile.h (TDI_tu): Delete.
5877 * dumpfile.c (dump_files): Remove translation-unit.
5878 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
5879
5880 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
5881
5882 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
5883 command option from $(AWK) call.
5884 * config/avr/genmultilib.awk: Simplify and rewrite so that it
5885 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
5886 [FORMAT]: Remove handling of variable.
5887 * config/avr/t-multilib: Regenerate.
5888
5889 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5890
5891 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
5892 self_time.
5893 (dump_inline_summary): Do not print self_time.
5894 (estimate_function_body_sizes): Do not set self_time.
5895 (compute_inline_parameters): Likewise.
5896 (inline_read_section, inline_write_summary): Do not stream self_time.
5897 * ipa-inline.h (inline_summary): Drop self_time.
5898
5899 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5900
5901 * ipa-inline-analysis.c (account_size_time): Rename to ...
5902 (inline_summary::account_size_time): ... this one.
5903 (reset_ipa_call_summary): Turn to ...
5904 (ipa_call_summary::reset): ... this one.
5905 (reset_inline_summary): Turn to ...
5906 (inline_summary::reset): ... this one.
5907 (inline_summary_t::remove): Update.
5908 (inline_summary_t::duplicate): Update.
5909 (ipa_call_summary_t::remove): Update.
5910 (dump_inline_summary): Update.
5911 (estimate_function_body_sizes): Update.
5912 (compute_inline_parameters): Update.
5913 (estimate_node_size_and_time): Update.
5914 (inline_merge_summary): Update.
5915 (inline_update_overall_summary): Update.
5916 (inline_read_section): Update.
5917 (inline_write_summary): Update.
5918 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
5919 add account_size_time and reset member functions.
5920 (ipa_call_summary): Add reset function.
5921 * ipa-predicate.h (predicate::operator &): Constify.
5922
5923 2017-05-22 Richard Biener <rguenther@suse.de>
5924
5925 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
5926
5927 2017-05-19 Jason Merrill <jason@redhat.com>
5928
5929 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
5930
5931 2017-05-19 Marek Polacek <polacek@redhat.com>
5932
5933 PR sanitizer/80800
5934 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
5935 TYPE_OVERFLOW_WRAPS checks.
5936
5937 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5938
5939 * tree-core.h (enum omp_clause_default_kind): Add
5940 "OMP_CLAUSE_DEFAULT_PRESENT".
5941 * tree-pretty-print.c (dump_omp_clause): Handle it.
5942 * gimplify.c (enum gimplify_omp_var_data): Add
5943 "GOVD_MAP_FORCE_PRESENT".
5944 (gimplify_adjust_omp_clauses_1): Map it to
5945 "GOMP_MAP_FORCE_PRESENT".
5946 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
5947
5948 * gimplify.c (oacc_default_clause): Clarify.
5949
5950 2017-05-19 Nathan Sidwell <nathan@acm.org>
5951
5952 LANG_HOOK_REGISTER_DUMPS
5953 * toplev.c (general_init): Call register dump lang hook.
5954 * doc/invoke.texi: Document -fdump-lang option family.
5955 * dumpfile.c (dump_files): Remove class dump here.
5956 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
5957 * dumpfile.h (tree_dump_index): Remove TDI_class.
5958 * langhooks-def.h (lhd_register_dumps): Declare.
5959 (LANG_HOOKS_REGISTER_DUMPS): Define.
5960 (LANG_HOOKS_INITIALIZER): Add it.
5961 * langhooks.c (lhd_register_dumps): Define.
5962 * langhooks.h (struct lang_hooks): Add register_dumps.
5963
5964 2017-05-19 Nathan Sidwell <nathan@acm.org>
5965
5966 * context.h (context::set_passes): New.
5967 * context.c (context::context): Do not create pass manager.
5968 * toplev.c (general_init): Create pass manager here.
5969
5970 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
5971
5972 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
5973 use this splitter if two add or or instructions would also work for
5974 the constant we want to generate.
5975
5976 2017-05-19 Richard Biener <rguenther@suse.de>
5977
5978 PR build/80821
5979 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
5980 predicate evaluation.
5981
5982 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
5983
5984 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
5985 add ctor.
5986 * ipa-inline.c (want_inline_small_function_p): Do not cast to
5987 unsigned.
5988
5989 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
5990
5991 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5992 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5993 (inline_edge_summary_vec): Turn into ...
5994 (ipa_call_summaries): ... this one.
5995 (redirect_to_unreachable, edge_set_predicate,
5996 evaluate_properties_for_edge, inline_summary_alloc,
5997 reset_ipa_call_summary, reset_inline_summary,
5998 inline_summary_t::duplicate): Update.
5999 (inline_edge_duplication_hook): Turn to ...
6000 (ipa_call_summary_t::duplicate): ... this one.
6001 (inline_edge_removal_hook): Turn to ...
6002 (ipa_call_summary_t::remove): ... this one.
6003 (dump_inline_edge_summary): Turn to ...
6004 (dump_ipa_call_summary): ... this one.
6005 (estimate_function_body_sizes): Update.
6006 (inline_update_callee_summaries): Update.
6007 (remap_edge_change_prob): Update.
6008 (remap_edge_summaries): Update.
6009 (inline_merge_summary): Update.
6010 (do_estimate_edge_time): Update.
6011 (inline_generate_summary): Update.
6012 (inline_read_section): Update.
6013 (inline_read_summary): Update.
6014 (inline_free_summary): Update.
6015 * ipa-inline.c (can_inline_edge_p): Update.
6016 (compute_inlined_call_time): Update.
6017 (want_inline_small_function_p): Update.
6018 (edge_badness): Update.
6019 (early_inliner): Update.
6020 * ipa-inline.h (inline_edge_summary): Turn to ...
6021 (ipa_call_summary): ... this one.
6022 (ipa_call_summary_t): New class.
6023 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
6024 (ipa_call_summaries): New.
6025 (inline_edge_summary): Remove.
6026 (estimate_edge_growth): Update.
6027 * ipa-profile.c (ipa_propagate_frequency_1): Update.
6028 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
6029 * ipa-split.c (execute_split_functions): Update.
6030 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
6031
6032 2017-05-19 Richard Biener <rguenther@suse.de>
6033
6034 PR middle-end/80764
6035 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
6036
6037 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
6038
6039 * config/rs6000/rs6000.c (struct machine_function): Add field
6040 fpr_is_wrapped_separately.
6041 (rs6000_get_separate_components): Use 64 components. Handle the
6042 new FPR components.
6043 (rs6000_components_for_bb): Handle the FPR components.
6044 (rs6000_emit_prologue_components): Handle the FPR components.
6045 (rs6000_emit_epilogue_components): Handle the FPR components.
6046 (rs6000_set_handled_components): Handle the FPR components.
6047 (rs6000_emit_prologue): Don't output prologue code for those FPRs
6048 that are already separately shrink-wrapped.
6049 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
6050 that are already separately shrink-wrapped.
6051
6052 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6053
6054 PR target/80510
6055 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
6056 New predicate.
6057
6058 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
6059 (define_peephole2 for Altivec d-form load): Add peepholes to catch
6060 cases where the register allocator uses a move and an offsettable
6061 memory operation to/from a FPR register on ISA 2.06/2.07.
6062 (define_peephole2 for Altivec d-form store): Likewise.
6063
6064 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
6065
6066 PR target/80799
6067 * config/i386/mmx.md (*mov<mode>_internal): Enable
6068 alternatives 11, 12, 13 and 14 also for 32bit targets.
6069 Remove alternatives 15, 16, 17 and 18.
6070 * config/i386/sse.md (vec_concatv2di): Change
6071 alternative (!x, *y) to (x, ?!*Yn).
6072
6073 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
6074
6075 * dumpfile.h (enum dump_kind): Remove stray comma.
6076
6077 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
6078
6079 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
6080 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
6081 predicate::num_conditions
6082 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
6083 (CHANGED): turn into predicate::changed.
6084 (agg_position_info): Move to ipa-predicate.h
6085 (add_condition, predicate::add_clause, predicate::operator &=,
6086 predicate::or_with, predicate::evaluate, predicate::probability,
6087 dump_condition, dump_clause, predicate::dump,
6088 predicate::remap_after_duplication, predicate::remap_after_inlining,
6089 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
6090 (evaluate_conditions_for_known_args): Update.
6091 (set_cond_stmt_execution_predicate): Update.
6092 * ipa-inline.h: Include ipa-predicate.h
6093 (condition, inline_param_summary, conditions, agg_position_info,
6094 predicate): Move to ipa-predicate.h
6095 * ipa-predicate.c: New file.
6096 * ipa-predicate.h: New file.
6097
6098 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
6099
6100 * final.c (leaf_function_p): Check we are not in a sequence.
6101
6102 2017-05-18 Martin Liska <mliska@suse.cz>
6103
6104 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
6105 * dumpfile.c (dump_register): Use new enum dump_kind.
6106 (get_dump_file_name): Likewise.
6107 (dump_enable_all): Likewise.
6108 (dump_switch_p_1): Likewise.
6109 (enable_rtl_dump_file): Remove usage of TDF_RTL.
6110 * dumpfile.h (enum dump_kind): New enum type.
6111 (struct dump_file_info): Create constructor and
6112 format fields and comments.
6113 * passes.c (pass_manager::register_one_dump_file):
6114 Use num dump_kind.
6115 * statistics.c (statistics_early_init): Likewise.
6116 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
6117 TDF_TREE with TDF_SLIM.
6118 (gather_memory_references_ref): Likewise.
6119
6120 2017-05-18 Martin Liska <mliska@suse.cz>
6121
6122 * vec.h (struct vnull): Use it.
6123
6124 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
6125
6126 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
6127 (true_predicate, false_predicate, true_predicate_p,
6128 false_predicate_p): Remove.
6129 (single_cond_predicate, not_inlined_predicate): Turn to member function
6130 in ipa-inline.h
6131 (add_condition): Update.
6132 (add_clause): Turn to...
6133 (predicate::add_clause): ... this one; update; allow passing NULL
6134 as parameter.
6135 (and_predicates): Turn to ...
6136 (predicate::operator &=): ... this one.
6137 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
6138 (or_predicates): Turn to ...
6139 (predicate::or_with): ... this one.
6140 (evaluate_predicate): Turn to ...
6141 (predicate::evaluate): ... this one.
6142 (predicate_probability): Turn to ...
6143 (predicate::probability): ... this one.
6144 (dump_condition): Update.
6145 (dump_predicate): Turn to ...
6146 (predicate::dump): ... this one.
6147 (account_size_time): Update.
6148 (edge_set_predicate): Update.
6149 (set_hint_predicate): UPdate.
6150 (evaluate_conditions_for_known_args): Update.
6151 (evaluate_properties_for_edge): Update.
6152 (remap_predicate_after_duplication): Turn to...
6153 (predicate::remap_after_duplication): ... this one.
6154 (remap_hint_predicate_after_duplication): Update.
6155 (inline_summary_t::duplicate): UPdate.
6156 (dump_inline_edge_summary): Update.
6157 (dump_inline_summary): Update.
6158 (set_cond_stmt_execution_predicate): Update.
6159 (set_switch_stmt_execution_predicate): Update.
6160 (compute_bb_predicates): Update.
6161 (will_be_nonconstant_expr_predicate): Update.
6162 (will_be_nonconstant_predicate): Update.
6163 (phi_result_unknown_predicate): Update.
6164 (predicate_for_phi_result): Update.
6165 (array_index_predicate): Update.
6166 (estimate_function_body_sizes): Update.
6167 (estimate_node_size_and_time): Update.
6168 (estimate_ipcp_clone_size_and_time): Update.
6169 (remap_predicate): Rename to ...
6170 (predicate::remap_after_inlining): ... this one.
6171 (remap_hint_predicate): Update.
6172 (inline_merge_summary): Update.
6173 (inline_update_overall_summary): Update.
6174 (estimate_size_after_inlining): Update.
6175 (read_predicate): Rename to ...
6176 (predicate::stream_in): ... this one.
6177 (read_inline_edge_summary): Update.
6178 (write_predicate): Rename to ...
6179 (predicate::stream_out): ... this one.
6180 (write_inline_edge_summary): Update.
6181 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
6182 (clause_t): Turn to uint32_t
6183 (predicate): Turn to class; implement constructor and operators
6184 ==, !=, &
6185 (size_time_entry): Update.
6186 (inline_summary): Update.
6187 (inline_edge_summary): Update.
6188
6189 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
6190
6191 * fold-const.c (fold_binary_loc): Move transformation...
6192 * match.pd (C - X CMP X): ... here.
6193
6194 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
6195
6196 * config/sparc/sparc.c (sparc_option_override): Set function
6197 alignment for -mcpu=niagara7 to 64 to match the I$ line.
6198 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
6199 latency to 1.
6200 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
6201 latency to 2.
6202 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
6203
6204 2017-05-18 Marek Polacek <polacek@redhat.com>
6205
6206 PR sanitizer/80797
6207 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
6208 (pass_ubsan::execute): Call gimple_assign_single_p instead of
6209 gimple_assign_load_p.
6210
6211 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
6212
6213 PR middle-end/80692
6214 * real.c (do_compare): Give decimal_do_compare preference over
6215 comparing just the signs.
6216
6217 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
6218
6219 * doc/md.texi (Canonicalization of Instructions): Describe the
6220 canonical form of instructions that inherently set a condition
6221 code register.
6222
6223 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
6224
6225 PR middle-end/80775
6226 * tree-cfg.c: Move deletion of unreachable case statements to after
6227 the merging of consecutive case labels.
6228
6229 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6230
6231 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
6232 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
6233 restoring of callee-saved registers.
6234
6235 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
6236
6237 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
6238 * config/visium/visium.c (single_set_and_flags): Likewise.
6239 * config/visium/visium.md (Substitutions): Likewise.
6240
6241 2017-05-17 Martin Liska <mliska@suse.cz>
6242
6243 * cfg.c: Introduce dump_flags_t type and
6244 use it instead of int type.
6245 * cfg.h: Likewise.
6246 * cfghooks.c: Likewise.
6247 * cfghooks.h (struct cfg_hooks): Likewise.
6248 * cfgrtl.c: Likewise.
6249 * cfgrtl.h: Likewise.
6250 * cgraph.c (cgraph_node::get_body): Likewise.
6251 * coretypes.h: Likewise.
6252 * domwalk.c: Likewise.
6253 * domwalk.h: Likewise.
6254 * dumpfile.c (struct dump_option_value_info): Likewise.
6255 (dump_enable_all): Likewise.
6256 (dump_switch_p_1): Likewise.
6257 (opt_info_switch_p): Likewise.
6258 * dumpfile.h (enum tree_dump_index): Likewise.
6259 (struct dump_file_info): Likewise.
6260 * genemit.c: Likewise.
6261 * generic-match-head.c: Likewise.
6262 * gengtype.c (open_base_files): Likewise.
6263 * gimple-pretty-print.c: Likewise.
6264 * gimple-pretty-print.h: Likewise.
6265 * graph.c (print_graph_cfg): Likewise.
6266 * graphite-scop-detection.c (dot_all_sese): Likewise.
6267 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
6268 * loop-unroll.c (report_unroll): Likewise.
6269 * passes.c (pass_manager::register_one_dump_file): Likewise.
6270 * print-tree.c: Likewise.
6271 * statistics.c: Likewise.
6272 * tree-cfg.c: Likewise.
6273 * tree-cfg.h: Likewise.
6274 * tree-dfa.c: Likewise.
6275 * tree-dfa.h: Likewise.
6276 * tree-dump.c (dump_function): Likewise.
6277 * tree-dump.h (struct dump_info): Likewise.
6278 * tree-pretty-print.c: Likewise.
6279 * tree-pretty-print.h: Likewise.
6280 * tree-ssa-live.c: Likewise.
6281 * tree-ssa-live.h: Likewise.
6282 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6283 * tree-vect-loop.c: Likewise.
6284 * tree-vect-slp.c: Likewise.
6285
6286 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6287 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6288
6289 PR tree-optimization/80457
6290 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
6291 of all arguments to a statement as scalar_to_vec operations.
6292 (vectorizable_call): Adjust call to vect_model_simple_cost for
6293 new parameter.
6294 (vectorizable_conversion): Likewise.
6295 (vectorizable_assignment): Likewise.
6296 (vectorizable_shift): Likewise.
6297 (vectorizable_operation): Likewise.
6298 (vectorizable_comparison): Likewise.
6299 (vect_is_simple_cond): Record the def types for operands.
6300 (vectorizable_condition): Likewise, call vect_model_simple_cost.
6301 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
6302 for statement argument count.
6303
6304 2017-05-16 Carl Love <cel@us.ibm.com>
6305
6306 * config/rs6000/rs6000-c: Add support for built-in functions
6307 vector unsigned long long vec_bperm (vector unsigned long long,
6308 vector unsigned char)
6309 vector signed long long vec_mule (vector signed int,
6310 vector signed int)
6311 vector unsigned long long vec_mule (vector unsigned int,
6312 vector unsigned int)
6313 vector signed long long vec_mulo (vector signed int,
6314 vector signed int)
6315 vector unsigned long long vec_mulo (vector unsigned int,
6316 vector unsigned int)
6317 vector signed char vec_sldw (vector signed char,
6318 vector signed char,
6319 const int)
6320 vector unsigned char vec_sldw (vector unsigned char,
6321 vector unsigned char,
6322 const int)
6323 vector signed short vec_sldw (vector signed short,
6324 vector signed short,
6325 const int)
6326 vector unsigned short vec_sldw (vector unsigned short,
6327 vector unsigned short,
6328 const int)
6329 vector signed int vec_sldw (vector signed int,
6330 vector signed int,
6331 const int)
6332 vector unsigned int vec_sldw (vector unsigned int,
6333 vector unsigned int,
6334 const int)
6335 vector signed long long vec_sldw (vector signed long long,
6336 vector signed long long,
6337 const int)
6338 vector unsigned long long vec_sldw (vector unsigned long long,
6339 vector unsigned long long,
6340 const int)
6341 * config/rs6000/rs6000-c: Add support for built-in functions
6342 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
6343 * config/rs6000/altivec.h: Add defintion for vec_sldw.
6344 * doc/extend.texi: Update the built-in documentation for the
6345 new built-in functions.
6346
6347 2017-05-16 Marek Polacek <polacek@redhat.com>
6348
6349 PR sanitizer/80536
6350 PR sanitizer/80386
6351 * tree.c (save_expr): Don't fold the expression.
6352
6353 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
6354
6355 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
6356 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
6357 and (?*y,m). Update insn attributes.
6358
6359 2017-05-16 Martin Liska <mliska@suse.cz>
6360
6361 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
6362 flags argument of print_gimple_stmt, print_gimple_expr,
6363 print_generic_stmt and print_generic_expr.
6364 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6365 * coretypes.h: Likewise.
6366 * except.c (dump_eh_tree): Likewise.
6367 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6368 * gimple-pretty-print.h: Likewise.
6369 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
6370 (backprop::push_to_worklist): Likewise.
6371 (backprop::pop_from_worklist): Likewise.
6372 (backprop::process_use): Likewise.
6373 (backprop::intersect_uses): Likewise.
6374 (note_replacement): Likewise.
6375 * gimple-ssa-store-merging.c
6376 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
6377 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
6378 (pass_store_merging::execute): Likewise.
6379 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
6380 (ssa_base_cand_dump_callback): Likewise.
6381 (dump_incr_vec): Likewise.
6382 (replace_refs): Likewise.
6383 (replace_mult_candidate): Likewise.
6384 (create_add_on_incoming_edge): Likewise.
6385 (create_phi_basis): Likewise.
6386 (insert_initializers): Likewise.
6387 (all_phi_incrs_profitable): Likewise.
6388 (introduce_cast_before_cand): Likewise.
6389 (replace_one_candidate): Likewise.
6390 * gimplify.c (gimplify_expr): Likewise.
6391 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
6392 (set_rename): Likewise.
6393 (rename_uses): Likewise.
6394 (copy_loop_phi_nodes): Likewise.
6395 (add_close_phis_to_merge_points): Likewise.
6396 (copy_loop_close_phi_args): Likewise.
6397 (copy_cond_phi_args): Likewise.
6398 (graphite_copy_stmts_from_block): Likewise.
6399 (translate_pending_phi_nodes): Likewise.
6400 * graphite-poly.c (print_pdr): Likewise.
6401 (dump_gbb_cases): Likewise.
6402 (dump_gbb_conditions): Likewise.
6403 (print_scop_params): Likewise.
6404 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
6405 (build_cross_bb_scalars_use): Likewise.
6406 (gather_bbs::before_dom_children): Likewise.
6407 * hsa-dump.c (dump_hsa_immed): Likewise.
6408 * ipa-cp.c (print_ipcp_constant_value): Likewise.
6409 (get_replacement_map): Likewise.
6410 * ipa-inline-analysis.c (dump_condition): Likewise.
6411 (estimate_function_body_sizes): Likewise.
6412 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
6413 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
6414 * ipa-prop.c (ipa_dump_param): Likewise.
6415 (ipa_print_node_jump_functions_for_edge): Likewise.
6416 (ipa_modify_call_arguments): Likewise.
6417 (ipa_modify_expr): Likewise.
6418 (ipa_dump_param_adjustments): Likewise.
6419 (ipa_dump_agg_replacement_values): Likewise.
6420 (ipcp_modif_dom_walker::before_dom_children): Likewise.
6421 * ipa-pure-const.c (check_stmt): Likewise.
6422 (pass_nothrow::execute): Likewise.
6423 * ipa-split.c (execute_split_functions): Likewise.
6424 * omp-offload.c (dump_oacc_loop_part): Likewise.
6425 (dump_oacc_loop): Likewise.
6426 * trans-mem.c (tm_log_emit): Likewise.
6427 (tm_memopt_accumulate_memops): Likewise.
6428 (dump_tm_memopt_set): Likewise.
6429 (dump_tm_memopt_transform): Likewise.
6430 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6431 (print_loop): Likewise.
6432 * tree-chkp-opt.c (chkp_print_addr): Likewise.
6433 (chkp_gather_checks_info): Likewise.
6434 (chkp_get_check_result): Likewise.
6435 (chkp_remove_check_if_pass): Likewise.
6436 (chkp_use_outer_bounds_if_possible): Likewise.
6437 (chkp_reduce_bounds_lifetime): Likewise.
6438 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
6439 (chkp_mark_completed_bounds): Likewise.
6440 (chkp_register_incomplete_bounds): Likewise.
6441 (chkp_mark_invalid_bounds): Likewise.
6442 (chkp_maybe_copy_and_register_bounds): Likewise.
6443 (chkp_build_returned_bound): Likewise.
6444 (chkp_get_bound_for_parm): Likewise.
6445 (chkp_build_bndldx): Likewise.
6446 (chkp_get_bounds_by_definition): Likewise.
6447 (chkp_generate_extern_var_bounds): Likewise.
6448 (chkp_get_bounds_for_decl_addr): Likewise.
6449 * tree-chrec.c (chrec_apply): Likewise.
6450 * tree-data-ref.c (dump_data_reference): Likewise.
6451 (dump_subscript): Likewise.
6452 (dump_data_dependence_relation): Likewise.
6453 (analyze_overlapping_iterations): Likewise.
6454 * tree-inline.c (expand_call_inline): Likewise.
6455 (tree_function_versioning): Likewise.
6456 * tree-into-ssa.c (dump_defs_stack): Likewise.
6457 (dump_currdefs): Likewise.
6458 (dump_names_replaced_by): Likewise.
6459 (dump_update_ssa): Likewise.
6460 (update_ssa): Likewise.
6461 * tree-object-size.c (pass_object_sizes::execute): Likewise.
6462 * tree-parloops.c (build_new_reduction): Likewise.
6463 (try_create_reduction_list): Likewise.
6464 (ref_conflicts_with_region): Likewise.
6465 (oacc_entry_exit_ok_1): Likewise.
6466 (oacc_entry_exit_single_gang): Likewise.
6467 * tree-pretty-print.h: Likewise.
6468 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
6469 (get_scalar_evolution): Likewise.
6470 (add_to_evolution): Likewise.
6471 (get_loop_exit_condition): Likewise.
6472 (analyze_evolution_in_loop): Likewise.
6473 (analyze_initial_condition): Likewise.
6474 (analyze_scalar_evolution): Likewise.
6475 (instantiate_scev): Likewise.
6476 (number_of_latch_executions): Likewise.
6477 (gather_chrec_stats): Likewise.
6478 (final_value_replacement_loop): Likewise.
6479 (scev_const_prop): Likewise.
6480 * tree-sra.c (dump_access): Likewise.
6481 (disqualify_candidate): Likewise.
6482 (create_access): Likewise.
6483 (reject): Likewise.
6484 (maybe_add_sra_candidate): Likewise.
6485 (create_access_replacement): Likewise.
6486 (analyze_access_subtree): Likewise.
6487 (analyze_all_variable_accesses): Likewise.
6488 (sra_modify_assign): Likewise.
6489 (initialize_constant_pool_replacements): Likewise.
6490 (find_param_candidates): Likewise.
6491 (decide_one_param_reduction): Likewise.
6492 (replace_removed_params_ssa_names): Likewise.
6493 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6494 * tree-ssa-copy.c (dump_copy_of): Likewise.
6495 (copy_prop_visit_cond_stmt): Likewise.
6496 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
6497 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
6498 (record_equivalences_from_stmt): Likewise.
6499 * tree-ssa-dse.c (compute_trims): Likewise.
6500 (delete_dead_call): Likewise.
6501 (delete_dead_assignment): Likewise.
6502 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
6503 (forward_propagate_into_cond): Likewise.
6504 (pass_forwprop::execute): Likewise.
6505 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6506 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
6507 Likewise.
6508 (move_computations_worker): Likewise.
6509 (execute_sm): Likewise.
6510 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6511 (remove_exits_and_undefined_stmts): Likewise.
6512 (remove_redundant_iv_tests): Likewise.
6513 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
6514 (adjust_iv_update_pos): Likewise.
6515 * tree-ssa-math-opts.c (bswap_replace): Likewise.
6516 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
6517 (value_replacement): Likewise.
6518 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6519 * tree-ssa-pre.c (print_pre_expr): Likewise.
6520 (get_representative_for): Likewise.
6521 (create_expression_by_pieces): Likewise.
6522 (insert_into_preds_of_block): Likewise.
6523 (eliminate_insert): Likewise.
6524 (eliminate_dom_walker::before_dom_children): Likewise.
6525 (eliminate): Likewise.
6526 (remove_dead_inserted_code): Likewise.
6527 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
6528 * tree-ssa-reassoc.c (get_rank): Likewise.
6529 (eliminate_duplicate_pair): Likewise.
6530 (eliminate_plus_minus_pair): Likewise.
6531 (eliminate_not_pairs): Likewise.
6532 (undistribute_ops_list): Likewise.
6533 (eliminate_redundant_comparison): Likewise.
6534 (update_range_test): Likewise.
6535 (optimize_range_tests_var_bound): Likewise.
6536 (optimize_vec_cond_expr): Likewise.
6537 (rewrite_expr_tree): Likewise.
6538 (rewrite_expr_tree_parallel): Likewise.
6539 (linearize_expr): Likewise.
6540 (break_up_subtract): Likewise.
6541 (linearize_expr_tree): Likewise.
6542 (attempt_builtin_powi): Likewise.
6543 (attempt_builtin_copysign): Likewise.
6544 (transform_stmt_to_copy): Likewise.
6545 (transform_stmt_to_multiply): Likewise.
6546 (dump_ops_vector): Likewise.
6547 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
6548 (print_scc): Likewise.
6549 (set_ssa_val_to): Likewise.
6550 (visit_reference_op_store): Likewise.
6551 (visit_use): Likewise.
6552 (sccvn_dom_walker::before_dom_children): Likewise.
6553 (run_scc_vn): Likewise.
6554 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6555 Likewise.
6556 (expr_hash_elt::print): Likewise.
6557 (const_and_copies::pop_to_marker): Likewise.
6558 (const_and_copies::record_const_or_copy_raw): Likewise.
6559 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
6560 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
6561 (dump_predicates): Likewise.
6562 (find_uninit_use): Likewise.
6563 (warn_uninitialized_phi): Likewise.
6564 (pass_late_warn_uninitialized::execute): Likewise.
6565 * tree-ssa.c (verify_vssa): Likewise.
6566 (verify_ssa): Likewise.
6567 (maybe_optimize_var): Likewise.
6568 * tree-vrp.c (dump_value_range): Likewise.
6569 (dump_all_value_ranges): Likewise.
6570 (dump_asserts_for): Likewise.
6571 (register_edge_assert_for_2): Likewise.
6572 (vrp_visit_cond_stmt): Likewise.
6573 (vrp_visit_switch_stmt): Likewise.
6574 (vrp_visit_stmt): Likewise.
6575 (vrp_visit_phi_node): Likewise.
6576 (simplify_cond_using_ranges_1): Likewise.
6577 (fold_predicate_in): Likewise.
6578 (evrp_dom_walker::before_dom_children): Likewise.
6579 (evrp_dom_walker::push_value_range): Likewise.
6580 (evrp_dom_walker::pop_value_range): Likewise.
6581 (execute_early_vrp): Likewise.
6582
6583 2017-05-16 Richard Biener <rguenther@suse.de>
6584
6585 * dwarf2out.c (loc_list_from_tree_1): Do not create
6586 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
6587
6588 2017-05-16 Richard Biener <rguenther@suse.de>
6589
6590 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
6591 just generated.
6592 (note_variable_value_in_expr): If we resolved the decl ref
6593 do not push to the stack.
6594
6595 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
6596
6597 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
6598 operations in fast-math mode.
6599 (vaddq_f16): Likewise.
6600 (vmul_f16): Likewise.
6601 (vmulq_f16): Likewise.
6602 (vsub_f16): Likewise.
6603 (vsubq_f16): Likewise.
6604 * config/arm/neon.md (add<mode>3): New.
6605 (sub<mode>3): New.
6606 (fma:<VH:mode>3): New. Also remove outdated comment.
6607 (mul<mode>3): New.
6608
6609 2017-05-16 Martin Liska <mliska@suse.cz>
6610
6611 PR ipa/79849.
6612 PR ipa/79850.
6613 * ipa-devirt.c (warn_types_mismatch): Fix typo.
6614 (odr_types_equivalent_p): Likewise.
6615
6616 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
6617
6618 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
6619
6620 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
6621
6622 PR target/80425
6623 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
6624 non-interunit SSE move alternatives with '?'.
6625 (zero-extendsidi peephole2): New peephole to skip intermediate
6626 general register in SSE zero-extend sequence.
6627
6628 2017-05-15 Jeff Law <law@redhat.com>
6629
6630 * reorg.c (relax_delay_slots): Create a new variable to hold
6631 the temporary target rather than clobbering TARGET_LABEL.
6632
6633 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
6634 missing argument to extract_bit_field call.
6635 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6636
6637 2017-05-15 Martin Liska <mliska@suse.cz>
6638
6639 PR driver/31468
6640 * gcc.c (process_command): Do not allow empty argument of -o option.
6641
6642 2017-05-15 Renlin Li <renlin.li@arm.com>
6643
6644 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
6645 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
6646 * config/aarch64/constraints.md (Usf): Add long call check.
6647 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
6648 (call_value): Likewise.
6649 (sibcall): Likewise.
6650 (sibcall_value): Likewise.
6651 (call_insn): New.
6652 (call_value_insn): New.
6653 (sibcall_insn): Update rtx pattern.
6654 (sibcall_value_insn): Likewise.
6655 (call_internal): Remove.
6656 (call_value_internal): Likewise.
6657 (sibcall_internal): Likewise.
6658 (sibcall_value_internal): Likewise.
6659 (call_reg): Likewise.
6660 (call_symbol): Likewise.
6661 (call_value_reg): Likewise.
6662 (call_value_symbol): Likewise.
6663
6664 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
6665
6666 PR target/80600
6667 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
6668
6669 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
6670
6671 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
6672 compatible with CCGOCmode and with CCZmode.
6673
6674 2017-05-14 Martin Sebor <msebor@redhat.com>
6675
6676 PR middle-end/77671
6677 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
6678 (gimple_fold_builtin_snprintf): Same.
6679 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
6680 (gimple_fold_builtin_snprintf): Same.
6681 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
6682 of character types.
6683 (is_call_safe): New function.
6684 (try_substitute_return_value): Call it.
6685 (try_simplify_call): New function.
6686 (pass_sprintf_length::handle_gimple_call): Call it.
6687
6688 2017-05-14 Martin Sebor <msebor@redhat.com>
6689
6690 PR middle-end/80669
6691 * builtins.c (expand_builtin_stpncpy): Simplify.
6692
6693 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
6694
6695 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
6696 * config/i386/i386.h
6697 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
6698 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
6699 (struct machine_function): Add new members call_ms2sysv,
6700 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
6701 (struct machine_frame_state): New fields sp_realigned and
6702 sp_realigned_offset.
6703 * config/i386/i386.c
6704 (enum xlogue_stub): New enum.
6705 (enum xlogue_stub_sets): New enum.
6706 (class xlogue_layout): New class.
6707 (struct ix86_frame): New fields stack_realign_allocate_offset,
6708 stack_realign_offset and outlined_save_offset. Modify comments to
6709 detail stack layout when using out-of-line stubs.
6710 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
6711 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
6712 -mcall-ms2sysv-xlogues.
6713 (stub_managed_regs): New static variable.
6714 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
6715 registers managed by out-of-line stub.
6716 (disable_call_ms2sysv_xlogues): New function.
6717 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
6718 m->call_ms2sysv when appropriate and compute frame layout for
6719 out-of-line stubs.
6720 (sp_valid_at, fp_valid_at): New inline functions.
6721 (choose_basereg): New function.
6722 (choose_baseaddr): Add align parameter, use choose_basereg and modify
6723 all callers.
6724 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
6725 Use align parameter of choose_baseaddr to generated aligned SSE movs
6726 when possible.
6727 (pro_epilogue_adjust_stack): Modify to track
6728 machine_frame_state::sp_realigned.
6729 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
6730 (ix86_nsaved_sseregs): Likewise.
6731 (ix86_emit_save_regs): Likewise.
6732 (ix86_emit_save_regs_using_mov): Likewise.
6733 (ix86_emit_save_sse_regs_using_mov): Likewise.
6734 (get_scratch_register_on_entry): Likewise.
6735 (gen_frame_set): New function.
6736 (gen_frame_load): Likewise.
6737 (gen_frame_store): Likewise.
6738 (emit_outlined_ms2sysv_save): Likewise.
6739 (emit_outlined_ms2sysv_restore): Likewise.
6740 (ix86_expand_prologue): Modify stack re-alignment code and call
6741 emit_outlined_ms2sysv_save when appropriate.
6742 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
6743 parameter rtx_insn *insn, which allows the function to be used to only
6744 generate the notes.
6745 (ix86_expand_epilogue): Modify validity checks of frame and stack
6746 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
6747 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
6748 * config/i386/predicates.md
6749 (save_multiple): New predicate.
6750 (restore_multiple): Likewise.
6751 * config/i386/sse.md
6752 (save_multiple<mode>): New pattern.
6753 (save_multiple_realign<mode>): Likewise.
6754 (restore_multiple<mode>): Likewise.
6755 (restore_multiple_and_return<mode>): Likewise.
6756 (restore_multiple_leave_return<mode>): Likewise.
6757 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
6758
6759 2017-05-14 Julia Koval <julia.koval@intel.com>
6760
6761 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
6762 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
6763 (__builtin_ia32_xsetbv): New builtins.
6764 * config/i386/i386.c (ix86_expand_special_args_builtin):
6765 Process new types.
6766 (ix86_expand_builtin): Special expand for new intrinsics.
6767 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
6768 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
6769 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
6770
6771 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6772
6773 * cfganal.c (inverted_post_order_compute): Change argument type
6774 to vec *.
6775 * cfganal.h (inverted_post_order_compute): Adjust prototype.
6776 * df-core.c (rest_of_handle_df_initialize): Adjust.
6777 (rest_of_handle_df_finish): Likewise.
6778 (df_analyze_1): Likewise.
6779 (df_analyze): Likewise.
6780 (loop_inverted_post_order_compute): Change argument to be a vec *.
6781 (df_analyze_loop): Adjust.
6782 (df_get_n_blocks): Likewise.
6783 (df_get_postorder): Likewise.
6784 * df.h (struct df_d): Change field to be a vec.
6785 * lcm.c (compute_laterin): Adjust.
6786 (compute_available): Likewise.
6787 * lra-lives.c (lra_create_live_ranges_1): Likewise.
6788 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6789 * tree-ssa-pre.c (compute_antic): Likewise.
6790
6791 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6792
6793 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
6794 (depth_first_search::depth_first_search): Change structure init
6795 function to this constructor.
6796 (depth_first_search::add_bb): Rename function to this member.
6797 (depth_first_search::execute): Likewise.
6798 (flow_dfs_compute_reverse_finish): Adjust.
6799
6800 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6801
6802 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
6803 (longest_simple_path): Likewise.
6804 * shrink-wrap.c (spread_components): Likewise.
6805 (disqualify_problematic_components): Likewise.
6806 (emit_common_heads_for_components): Likewise.
6807 (emit_common_tails_for_components): Likewise.
6808 (insert_prologue_epilogue_for_components): Likewise.
6809
6810 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6811
6812 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
6813 auto_sbitmap.
6814
6815 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6816
6817 * df-core.c (df_set_blocks): Start using auto_bitmap.
6818 (df_compact_blocks): Likewise.
6819 * df-problems.c (df_rd_confluence_n): Likewise.
6820 * df-scan.c (df_insn_rescan_all): Likewise.
6821 (df_process_deferred_rescans): Likewise.
6822 (df_update_entry_block_defs): Likewise.
6823 (df_update_exit_block_uses): Likewise.
6824 (df_entry_block_bitmap_verify): Likewise.
6825 (df_exit_block_bitmap_verify): Likewise.
6826 (df_scan_verify): Likewise.
6827 * lra-constraints.c (lra_constraints): Likewise.
6828 (undo_optional_reloads): Likewise.
6829 (lra_undo_inheritance): Likewise.
6830 * lra-remat.c (calculate_gen_cands): Likewise.
6831 (do_remat): Likewise.
6832 * lra-spills.c (assign_spill_hard_regs): Likewise.
6833 (spill_pseudos): Likewise.
6834 * tree-ssa-pre.c (bitmap_set_and): Likewise.
6835 (bitmap_set_subtract_values): Likewise.
6836
6837 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6838
6839 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
6840 management with auto_bitmap.
6841 (fix_inter_tick): Likewise.
6842 (fix_recovery_deps): Likewise.
6843 * ira.c (add_store_equivs): Likewise.
6844 (find_moveable_pseudos): Likewise.
6845 (split_live_ranges_for_shrink_wrap): Likewise.
6846 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
6847 (rtx_reuse_manager::seen_def_p): Likewise.
6848 (rtx_reuse_manager::set_seen_def): Likewise.
6849 * print-rtl.h (class rtx_reuse_manager): Likewise.
6850
6851 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6852
6853 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
6854 lifetime.
6855 (migrate_btr_def): Likewise.
6856 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
6857 * df-core.c (loop_post_order_compute): Likewise.
6858 (loop_inverted_post_order_compute): Likewise.
6859 * hsa-common.h: Likewise.
6860 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
6861 * init-regs.c (initialize_uninitialized_regs): Likewise.
6862 * ipa-inline.c (resolve_noninline_speculation): Likewise.
6863 (inline_small_functions): Likewise.
6864 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
6865 * ira.c (combine_and_move_insns): Likewise.
6866 (build_insn_chain): Likewise.
6867 * loop-invariant.c (find_invariants): Likewise.
6868 * lower-subreg.c (propagate_pseudo_copies): Likewise.
6869 * predict.c (tree_predict_by_opcode): Likewise.
6870 (predict_paths_leading_to): Likewise.
6871 (predict_paths_leading_to_edge): Likewise.
6872 (estimate_loops_at_level): Likewise.
6873 (estimate_loops): Likewise.
6874 * shrink-wrap.c (try_shrink_wrapping): Likewise.
6875 (spread_components): Likewise.
6876 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
6877 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
6878 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6879 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
6880 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
6881 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
6882 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
6883 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
6884 (mark_threaded_blocks): Likewise.
6885 (thread_through_all_blocks): Likewise.
6886 * tree-ssa.c (verify_ssa): Likewise.
6887 (execute_update_addresses_taken): Likewise.
6888 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
6889
6890 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6891
6892 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
6893 auto_vec.
6894 (post_order_compute): Likewise.
6895 (inverted_post_order_compute): Likewise.
6896 (pre_and_rev_post_order_compute_fn): Likewise.
6897
6898 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6899
6900 * genrecog.c (int_set::int_set): Explicitly construct our
6901 auto_vec base class.
6902 * vec.h (auto_vec::auto_vec): New constructor.
6903
6904 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6905
6906 * bitmap.h (class auto_bitmap): New constructor taking
6907 bitmap_obstack * argument.
6908
6909 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6910
6911 * bitmap.h (class auto_bitmap): Change type of m_bits to
6912 bitmap_head, and adjust ctor / dtor and member operators.
6913
6914 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
6915
6916 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
6917 when returned register mode doesn't match original mode.
6918
6919 2017-05-12 Jeff Law <law@redhat.com>
6920 Jakub Jelinek <jakub@redhat.com>
6921
6922 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
6923 we look for cc setter after the compare-elim changes.
6924 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
6925 within the vector to match what compare-elim now expects.
6926 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
6927 (xorsi3_flags, one_cmplsi2_flags): Likewise.
6928
6929 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
6930 after the compare-elim changes.
6931 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
6932 the vector to match what compare-elim now expects.
6933 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
6934 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
6935 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
6936 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
6937 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
6938
6939 * config/visium/visium.c (single_set_and_flags): Fix where
6940 we look for cc setter after the compare-elim changes.
6941 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
6942 with the vector to match what compare-elim now expects.
6943 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
6944 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
6945 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
6946 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
6947 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
6948 (neg<mode>2_insn_set_overflow): Likewise.
6949
6950 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
6951
6952 PR middle-end/79794
6953 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
6954 maybe_expand_insn call, set ops[0].target. If still set after call,
6955 set alt_rtl. Add extra arg to recursive calls.
6956 (extract_bit_field): Add alt_rtl argument. Pass to
6957 extract_bit_field.
6958 * expmed.h (extract_bit_field): Fix prototype.
6959 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
6960 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
6961 to extract_bit_field_calls.
6962 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
6963 Pass alt_rtl to extract_bit_field calls.
6964 * calls.c (store_unaligned_arguments_into_psuedos)
6965 load_register_parameters): Pass extra NULL to extract_bit_field calls.
6966 * optabs.c (maybe_legitimize_operand): Clear op->target when call
6967 gen_reg_rtx.
6968 * optabs.h (struct expand_operand): Add target bitfield.
6969
6970 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
6971
6972 * compare-elim.c (try_eliminate_compare): Canonicalize
6973 operation with embedded compare to
6974 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
6975 (set (reg) (operation)].
6976
6977 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
6978
6979 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
6980
6981 PR target/80723
6982 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
6983 cost of adding a carry flag for ADC instruction.
6984 [case MINUS]: Ignore the cost of subtracting a carry flag
6985 for SBB instruction.
6986
6987 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
6988
6989 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
6990 and x86intrin.h
6991 * config/rs6000/bmiintrin.h: New file.
6992 * config/rs6000/bmi2intrin.h: New file.
6993 * config/rs6000/x86intrin.h: New file.
6994
6995 2017-05-12 Jeff Law <law@redhat.com>
6996
6997 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
6998 markers.
6999
7000 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
7001
7002 PR middle-end/80707
7003 * tree-cfg.c: Remove cfg edges of unreachable case statements.
7004
7005 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
7006
7007 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
7008 early expansion of vector divide builtins.
7009 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
7010 builtins identified as having unsigned arguments.
7011
7012 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
7013
7014 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
7015 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
7016 expansion of vector logical operations (and, andc, or, xor,
7017 nor, orc, nand).
7018
7019 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
7020
7021 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
7022 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
7023
7024 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
7025
7026 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
7027 early GIMPLE expansion of vector multiplies.
7028
7029 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7030
7031 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
7032 TARGET_HAVE_MOVT conditional.
7033 (movt splitter): Likewise.
7034
7035 2017-05-12 Richard Biener <rguenther@suse.de>
7036
7037 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
7038 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7039 Fold all stmts not inplace.
7040
7041 2017-05-12 Richard Biener <rguenther@suse.de>
7042
7043 PR tree-optimization/80713
7044 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
7045 inserted_exprs bit for not removed stmts.
7046
7047 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
7048
7049 PR middle-end/69921
7050 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
7051 parallelized" attribute for parallelized OpenACC kernels.
7052 * omp-offload.c (execute_oacc_device_lower): Use it.
7053
7054 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
7055 Set "oacc kernels" attribute.
7056 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
7057 parameter. Adjust all users.
7058 (oacc_fn_attrib_kernels_p): Remove function.
7059 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
7060 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
7061 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7062 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
7063 assert "oacc kernels" attribute is set.
7064
7065 2017-05-11 Carl Love <cel@us.ibm.com>
7066
7067 * config/rs6000/rs6000-c: Add support for built-in functions
7068 vector unsigned char vec_popcnt (vector signed char)
7069 vector unsigned char vec_popcnt (vector unsigned char)
7070 vector unsigned short vec_popcnt (vector signed short)
7071 vector unsigned short vec_popcnt (vector unsigned short)
7072 vector unsigned int vec_popcnt (vector signed int)
7073 vector unsigned int vec_popcnt (vector unsigned int)
7074 vector unsigned long long vec_popcnt (vector signed long long)
7075 vector unsigned long long vec_popcnt (vector unsigned long long)
7076 vector signed long long vec_slo (vector signed long long,
7077 vector signed char)
7078 vector signed long long vec_slo (vector signed long long,
7079 vector unsigned char)
7080 vector unsigned long long vec_slo (vector unsigned long long,
7081 vector signed char)
7082 vector unsigned long long vec_slo (vector unsigned long long,
7083 vector unsigned char)
7084 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
7085 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
7086 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
7087 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
7088 * doc/extend.texi: Update the built-in documentation file for the
7089 new built-in functions.
7090
7091 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7092
7093 * attribs.h (sorted_attr_string): Move machine independent
7094 functions for target clone support from the i386 port to common
7095 code. Rename ix86_function_versions to common_function_versions.
7096 Rename make_name to make_unique_name.
7097 (common_function_versions): Likewise.
7098 (make_unique_name): Likewise.
7099 (make_dispatcher_decl): Likewise.
7100 (is_function_default_version): Likewise.
7101 * attribs.c (attr_strcmp): Likewise.
7102 (sorted_attr_string): Likewise.
7103 (common_function_versions): Likewise.
7104 (make_unique_name): Likewise.
7105 (make_dispatcher_decl): Likewise.
7106 (is_function_default_version): Likewise.
7107 * config/i386/i386.c (attr_strcmp): Likewise.
7108 (sorted_attr_string): Likewise.
7109 (ix86_function_versions): Likewise.
7110 (make_name): Likewise.
7111 (make_dispatcher_decl): Likewise.
7112 (is_function_default_version): Likewise.
7113 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
7114
7115 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7116
7117 PR target/80695
7118 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7119 Account for direct move costs for vec_construct of integer
7120 vectors.
7121
7122 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
7123
7124 PR target/80706
7125 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
7126 (UNSPEC_STX_ATOMIC): Ditto.
7127 (loaddi_via_sse): New insn.
7128 (storedi_via_sse): Ditto.
7129 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
7130 Update corresponding peephole2 patterns.
7131 (atomic_storedi_fpu): Ditto.
7132
7133 2017-05-11 Julia Koval <julia.koval@intel.com>
7134
7135 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
7136 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
7137 New intrinsics.
7138 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
7139 (__builtin_ia32_rsqrt14ss_mask): New builtins.
7140 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
7141
7142 2017-05-11 Nathan Sidwell <nathan@acm.org>
7143
7144 * graphite-poly.c: Include dumpfile.h.
7145
7146 * dumpfle.h (dump_function): Declare here ...
7147 * tree-dump.h (dump_function): ... not here.
7148 * dumpfile.c: #include tree-cfg.h.
7149 (dump_function): Move here from ...
7150 * tree-dump.c (dump_function): ... here.
7151 * gimplify.c: #include splay-tree.h, not tree-dump.h.
7152 * graphite-poly.c: Don't include tree-dump.h.
7153 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
7154 * print-tree.c: Likewise.
7155 * stor-layout.c: Likewise.
7156 * tree-nested.c: Likewise.
7157
7158 * dumpfile.c (dump_start): Use TDF_FLAGS.
7159 (dump_enable_all): Fix TDF_KIND check thinko.
7160
7161 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
7162
7163 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7164 array entries to represent two legal parameterizations of the
7165 overloaded __builtin_cmpb function, as represented by the
7166 P6_OV_BUILTIN_CMPB constant.
7167 (altivec_resolve_overloaded_builtin): Add special case handling
7168 for the __builtin_cmpb function, as represented by the
7169 P6_OV_BUILTIN_CMPB constant.
7170 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
7171 (BU_P6_64BIT_2): New macro.
7172 (BU_P6_OVERLOAD_2): New macro
7173 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
7174 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
7175 (CMPB): Add overload support to represent both 32-bit and 64-bit
7176 compare-bytes function.
7177 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7178 support for TARGET_CMPB.
7179 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
7180 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
7181 documentation of the __builtin_cmpb overloaded built-in function.
7182
7183 2017-05-11 Richard Biener <rguenther@suse.de>
7184
7185 PR tree-optimization/80705
7186 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
7187 bases are not vectorizable.
7188
7189 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7190
7191 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
7192 when counting register pressure.
7193
7194 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7195
7196 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
7197 (iv_ca_more_deps): Renamed to ...
7198 (iv_ca_compare_deps): ... this.
7199 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
7200
7201 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7202
7203 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
7204 to ...
7205 (determine_group_iv_costs): ... here.
7206 (find_inv_vars_cb): Record inv var if it's not recorded before.
7207
7208 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7209
7210 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
7211 (get_shiftadd_cost): Ditto.
7212
7213 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7214
7215 * tree-ssa-address.c: Include header file.
7216 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
7217 address.
7218 (add_to_parts): Refactor.
7219 (addr_to_parts): New parameter. Update use of move_hint_to_base.
7220 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
7221 in new order.
7222
7223 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7224
7225 PR tree-optimization/53090
7226 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
7227 COMP_IV_EXPR_2.
7228 (extract_cond_operands): Detect condition with IV on both sides
7229 and return COMP_IV_EXPR_2.
7230 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
7231 (rewrite_use_compare): Simplify by removing call to function
7232 extract_cond_operands.
7233
7234 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7235
7236 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
7237 (extract_cond_operands): Detect condition comparing against non-
7238 invariant bound and return appropriate enum value.
7239 (find_interesting_uses_cond): Update use of extract_cond_operands.
7240 Handle its return value accordingly.
7241 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
7242
7243 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7244
7245 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
7246 nonlinear iv_use computation in loop invariant sensitive way.
7247
7248 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7249
7250 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
7251 (find_iv_candidates): Call relate_compare_use_with_all_cands.
7252
7253 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7254
7255 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
7256 (dump_cand): Support iv_cand.inv_exprs.
7257 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
7258 for candidates.
7259 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
7260 iv_cand.inv_exprs.
7261
7262 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7263
7264 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
7265 from ...
7266 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
7267 as local function. Include necessary header files.
7268 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
7269
7270 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7271
7272 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
7273
7274 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7275
7276 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
7277 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
7278 RSHIFT_EXPR and BIT_NOT_EXPR.
7279
7280 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7281
7282 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
7283 (adjust_setup_cost): New parameter supporting round up adjustment.
7284 (struct address_cost_data): Delete.
7285 (force_expr_to_var_cost): Don't bound cost with spill_cost.
7286 (split_address_cost, ptr_difference_cost): Delete.
7287 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
7288 (struct ainc_cost_data): New struct.
7289 (get_address_cost_ainc): New function.
7290 (get_address_cost, get_computation_cost): Reimplement.
7291 (determine_group_iv_cost_address): Record inv_expr for all uses of
7292 a group.
7293 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
7294 (iv_ca_has_deps): Reimplemented to ...
7295 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
7296 than OLD_CP.
7297 (iv_ca_extend): Call iv_ca_more_deps.
7298
7299 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7300
7301 * tree-ssa-address.c (struct mem_address): Move to header file.
7302 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
7303 * tree-ssa-address.h (struct mem_address): Move from C file.
7304 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
7305
7306 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7307
7308 * tree-affine.h (aff_combination_type): New interface.
7309 (aff_combination_zero_p): Remove static.
7310 (aff_combination_const_p): New interface.
7311 (aff_combination_singleton_var_p): New interfaces.
7312
7313 2017-05-11 Richard Biener <rguenther@suse.de>
7314
7315 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7316 Skip unreachable blocks and destinations.
7317 (eliminate): Move stmt removal and fixup ...
7318 (fini_eliminate): ... here. Skip inserted exprs.
7319 (pass_pre::execute): Move fini_pre after fini_eliminate.
7320 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
7321 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
7322 PRE to get rid of dead code that has invalid SSA form and
7323 split critical edges again.
7324
7325 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7326
7327 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7328
7329 2017-05-11 Richard Biener <rguenther@suse.de>
7330
7331 * passes.c (execute_function_todo): Verify loops if they are
7332 said to be up-to-date.
7333 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
7334 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
7335
7336 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
7337
7338 PR target/80090
7339 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
7340 handle calling assemble_external ourself.
7341
7342 PR target/79027
7343 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
7344 modes with zero size. Enhance comment.
7345
7346 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7347
7348 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
7349 built-ins for vec_xl and vec_xst with short and char pointer
7350 arguments.
7351
7352 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
7353
7354 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
7355 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
7356 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
7357 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
7358 (_mm_maskz_min_round_ss): New intrinsics.
7359 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
7360 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
7361 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
7362 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
7363 (__builtin_ia32_minss_mask_round): New builtins.
7364 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7365 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7366 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
7367 Rename to ...
7368 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
7369 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
7370 Change to ...
7371 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
7372 ... this.
7373
7374 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
7375
7376 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
7377 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
7378 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
7379 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
7380 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
7381 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
7382 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
7383 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7384 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
7385 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
7386 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
7387 (__builtin_ia32_mulss_mask_round): New builtins.
7388 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7389 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7390 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
7391 Rename to ...
7392 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
7393 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
7394 Change to ...
7395 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
7396 ... this.
7397
7398 2017-05-10 Julia Koval <julia.koval@intel.com>
7399
7400 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
7401 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
7402 (_mm256_setr_m128i): New intrinsics.
7403
7404 2017-05-10 Julia Koval <julia.koval@intel.com>
7405
7406 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
7407 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
7408 (_mm_maskz_rcp14_ss): New intrinsics.
7409 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
7410 (__builtin_ia32_rcp14ss_mask): New builtins.
7411 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
7412
7413 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
7414
7415 PR tree-optimization/51513
7416 * tree-cfg.c (gimple_seq_unreachable_p): New function.
7417 (assert_unreachable_fallthru_edge_p): Use it.
7418 (group_case_labels_stmt): Likewise.
7419 * tree-cfg.h: Prototype it.
7420 * stmt.c: Include cfghooks.h and tree-cfg.h.
7421 (emit_case_dispatch_table) <gap_label>: New local variable.
7422 Use it to fill dispatch table gaps.
7423 Test for default_label before updating probabilities.
7424 (expand_case) <default_label>: Remove unneeded initialization.
7425 Test for unreachable default case statement and remove its edge.
7426 Set default_label accordingly.
7427 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
7428
7429 2017-05-10 Carl Love <cel@us.ibm.com>
7430
7431 * config/rs6000/rs6000-c: Add support for built-in functions
7432 vector signed char vec_neg (vector signed char)
7433 vector signed short int vec_neg (vector short int)
7434 vector signed int vec_neg (vector signed int)
7435 vector signed long long vec_neg (vector signed long long)
7436 vector float vec_neg (vector float)
7437 vector double vec_neg (vector double)
7438 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
7439 overload.
7440 * config/rs6000/altivec.h: Add define for vec_neg
7441 * doc/extend.texi: Update the built-in documentation for the
7442 new built-in functions.
7443
7444 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7445
7446 PR tree-optimization/77644
7447 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
7448
7449 2017-05-10 Nathan Sidwell <nathan@acm.org>
7450
7451 * dumpfile.h (TDI_lang_all): New.
7452 (TDF_KIND): New. Renumber others
7453 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
7454 than bits.
7455 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
7456 lang-all.
7457 (get_dump_file_name): Adjust suffix generation.
7458 (dump_enable_all): Use TDF_KIND.
7459 * doc/invoke.texi (-fdump-lang-all): Document.
7460
7461 * dumpfile.h: Tabify.
7462
7463 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
7464
7465 PR target/80671
7466 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
7467 Move member access before delete.
7468
7469 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
7470
7471 * tree-inline.c (expand_call_inline): Split block at stmt
7472 before the call.
7473
7474 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7475
7476 PR target/68163
7477 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
7478 are now unused after splitting mov{sf,sd}_hardfloat.
7479 (f32_lr2): Likewise.
7480 (f32_lm): Likewise.
7481 (f32_lm2): Likewise.
7482 (f32_li): Likewise.
7483 (f32_li2): Likewise.
7484 (f32_lv): Likewise.
7485 (f32_sr): Likewise.
7486 (f32_sr2): Likewise.
7487 (f32_sm): Likewise.
7488 (f32_sm2): Likewise.
7489 (f32_si): Likewise.
7490 (f32_si2): Likewise.
7491 (f32_sv): Likewise.
7492 (f32_dm): Likewise.
7493 (f32_vsx): Likewise.
7494 (f32_av): Likewise.
7495 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
7496 For movsf, order stores so the VSX stores occur before the GPR
7497 store which encourages the register allocator to use a traditional
7498 FPR instead of a GPR. For movsd, order the stores so that the GPR
7499 store comes before the VSX stores to allow the power6 to work.
7500 This is due to the power6 not having a 32-bit integer store
7501 instruction from a FPR.
7502 (movsf_hardfloat): Likewise.
7503 (movsd_hardfloat): Likewise.
7504
7505 2017-05-09 Martin Sebor <msebor@redhat.com>
7506
7507 PR translation/80280
7508 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
7509 added in r247778.
7510
7511 PR translation/80280
7512 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
7513 data member added in r247778.
7514 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
7515
7516 2017-05-09 Nathan Sidwell <nathan@acm.org>
7517
7518 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
7519
7520 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
7521 typedefs.
7522
7523 2017-05-09 Marek Polacek <polacek@redhat.com>
7524
7525 * doc/invoke.texi: Fix typo.
7526
7527 2017-05-09 Richard Biener <rguenther@suse.de>
7528
7529 * tree-vrp.c (vrp_val_is_max): Adjust comment.
7530 (vrp_val_is_min): Likewise.
7531 (set_value_range_to_value): Likewise.
7532 (set_value_range_to_nonnegative): Likewise.
7533 (gimple_assign_nonzero_p): Likewise.
7534 (gimple_stmt_nonzero_p): Likewise.
7535 (vrp_int_const_binop): Likewise. Remove unreachable case.
7536 (adjust_range_with_scev): Adjust comments.
7537 (compare_range_with_value): Likewise.
7538 (extract_range_from_phi_node): Likewise.
7539 (test_for_singularity): Likewise.
7540
7541 2017-05-09 Richard Biener <rguenther@suse.de>
7542
7543 * tree-vrp.c (get_single_symbol): Add assert that we don't
7544 get overflowed constants as invariant part.
7545 (compare_values_warnv): Add comment before the TREE_NO_WARNING
7546 checks. Use wi::cmp instead of recursing for integer constants.
7547 (compare_values): Just ignore whether we assumed undefined
7548 overflow instead of failing the compare.
7549 (extract_range_for_var_from_comparison_expr): Add comment before the
7550 TREE_NO_WARNING sets.
7551 (test_for_singularity): Likewise.
7552 (extract_range_from_comparison): Do not disable optimization
7553 when we assumed undefined overflow.
7554 (extract_range_basic): Remove init of unused var.
7555
7556 2017-05-09 Richard Biener <rguenther@suse.de>
7557
7558 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
7559 (extract_range_from_multiplicative_op_1): Adjust.
7560 (extract_range_from_binary_expr_1): Use int_const_binop.
7561
7562 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
7563
7564 PR target/80101
7565 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
7566 rs6000_store_data_bypass_p in seven define_bypass directives and
7567 in several comments.
7568 * config/rs6000/rs6000-protos.h: Add prototype for
7569 rs6000_store_data_bypass_p function.
7570 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
7571 function implements slightly different (rs6000-specific) semantics
7572 than store_data_bypass_p, returning false rather than aborting
7573 with assertion error when arguments do not satisfy the
7574 requirements of store data bypass.
7575 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
7576 rs6000_store_data_bypass_p.
7577
7578 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
7579
7580 * config/xtensa/xtensa-protos.h
7581 (xtensa_initial_elimination_offset): New declaration.
7582 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
7583 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
7584 macro definition, add case for FRAME_POINTER_REGNUM when
7585 FRAME_GROWS_DOWNWARD.
7586 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
7587 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
7588 xtensa_initial_elimination_offset.
7589
7590 2017-05-08 Nathan Sidwell <nathan@acm.org>
7591
7592 * doc/invoke.texi: Alphabetize -fdump options.
7593
7594 2017-05-08 Martin Sebor <msebor@redhat.com>
7595
7596 PR translation/80280
7597 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
7598
7599 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
7600
7601 * target.def (compute_frame_layout): New optional target hook.
7602 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
7603 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
7604 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
7605 target hook.
7606 * reload1.c (verify_initial_elim_offsets): Likewise.
7607 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
7608 (use_simple_return_p): Call arm_compute_frame_layout if needed.
7609 (arm_get_frame_offsets): Split up into this ...
7610 (arm_compute_frame_layout): ... and this function.
7611
7612 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
7613
7614 * config/aarch64/constraints.md (Usa): New constraint.
7615 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
7616
7617 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
7618
7619 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
7620 with_multilib_list after it has been checked.
7621
7622 2017-05-08 Richard Biener <rguenther@suse.de>
7623
7624 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
7625 (bitmap_set_subtract_values): Likewise.
7626
7627 2017-05-08 Richard Biener <rguenther@suse.de>
7628
7629 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
7630 (gimple_assign_nonzero): ... this and remove strict_overflow_p
7631 argument.
7632 (gimple_stmt_nonzero_warnv_p): Rename to ...
7633 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
7634 argument.
7635 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
7636 (extract_range_basic): Adjust, do not disable propagation on
7637 strict overflow sensitive simplification.
7638 (vrp_visit_cond_stmt): Likewise.
7639
7640 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
7641
7642 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
7643 body size unconditionally.
7644
7645 2017-05-07 Jeff Law <law@redhat.com>
7646
7647 Revert:
7648 2017-05-06 Jeff Law <law@redhat.com>
7649 PR tree-optimization/78496
7650 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7651 code.
7652
7653 PR tree-optimization/78496
7654 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7655 (simplify_stmt_using_ranges): Call it.
7656 (vrp_dom_walker::before_dom_children): Extract equivalences
7657 from an ASSERT_EXPR with an equality comparison against a
7658 constant.
7659
7660 2017-05-06 Jeff Law <law@redhat.com>
7661
7662 PR tree-optimization/78496
7663 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7664 code.
7665
7666 PR tree-optimization/78496
7667 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7668 (simplify_stmt_using_ranges): Call it.
7669 (vrp_dom_walker::before_dom_children): Extract equivalences
7670 from an ASSERT_EXPR with an equality comparison against a
7671 constant.
7672
7673 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
7674
7675 * lra-constraints.c (lra_copy_reg_equiv): New function.
7676 (split_reg): Use it to copy equivalence information from the
7677 original register to the spill register.
7678
7679 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
7680
7681 PR rtl-optimization/75964
7682 * simplify-rtx.c (simplify_const_relational_operation): Remove
7683 invalid handling of comparisons of integer ABS.
7684
7685 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
7686
7687 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
7688 initialize to zero.
7689 (init_regs): Remove declaration.
7690 (function_arg_advance_32): Initialize error_p as boolean variable.
7691
7692 2017-05-05 Nathan Sidwell <nathan@acm.org>
7693
7694 * store-motion.c (remove_reachable_equiv_notes): Reformat long
7695 lines. Use for (;;).
7696
7697 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7698
7699 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
7700 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
7701 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
7702 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
7703 VF=2 that require versioning.
7704
7705 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7706
7707 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
7708 int.
7709
7710 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7711
7712 * diagnostic.h (diagnostic_override_option_index): Convert from
7713 macro to inline function.
7714
7715 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7716
7717 * diagnostic.c (last_module_changed_p): New function.
7718 (set_last_module): New function.
7719 (diagnostic_report_current_module): Convert macro usage to
7720 the above functions.
7721 * diagnostic.h (diagnostic_context::last_module): Strengthen
7722 from const line_map * to const line_map_ordinary *.
7723 (diagnostic_last_module_changed): Delete macro.
7724 (diagnostic_set_last_module): Delete macro.
7725
7726 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7727
7728 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
7729 with diagnostic_report_diagnostic.
7730 (diagnostic_n_impl_richloc): Likewise.
7731 * diagnostic.h (report_diagnostic): Delete macro.
7732 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
7733 with diagnostic_report_diagnostic.
7734 * substring-locations.c (format_warning_va): Likewise.
7735
7736 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7737
7738 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
7739 save/restor of format_spec. Move option-printing code to...
7740 (print_option_information): ...this new function, and
7741 reimplement by simply printing to the pretty_printer,
7742 rather than appending to the format string.
7743
7744 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7745
7746 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
7747 handling logic into...
7748 (update_effective_level_from_pragmas): ...this new function.
7749
7750 2017-05-04 Andrew Waterman <andrew@sifive.com>
7751
7752 * config/riscv/riscv.opt (mstrict-align): New option.
7753 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
7754 (SLOW_UNALIGNED_ACCESS): Define.
7755 (riscv_slow_unaligned_access): Declare.
7756 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
7757 field.
7758 (riscv_slow_unaligned_access): New variable.
7759 (rocket_tune_info): Set slow_unaligned_access to true.
7760 (optimize_size_tune_info): Set slow_unaligned_access to false.
7761 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
7762 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
7763 (riscv_option_override): Set riscv_slow_unaligned_access.
7764 * doc/invoke.texi: Add -mstrict-align to RISC-V.
7765
7766 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
7767
7768 * config/riscv/riscv.md: Unify indentation.
7769
7770 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7771
7772 PR target/79038
7773 PR target/79202
7774 PR target/79203
7775 * config/rs6000/rs6000.md (u code attribute): Add FIX and
7776 UNSIGNED_FIX.
7777 (extendsi<mode>2): Add support for doing sign extension via
7778 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
7779 don't have ISA 3.0 instructions.
7780 (extendsi<mode>2 splitter): Likewise.
7781 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
7782 generate the normal insns since SImode can now go in vector
7783 registers. Disallow the special UNSPECs needed for previous
7784 machines to hide SImode being used. Add new insns
7785 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
7786 (fix_trunc<mode>si2_stfiwx): Likewise.
7787 (fix_trunc<mode>si2_internal): Likewise.
7788 (fixuns_trunc<mode>si2): Likewise.
7789 (fixuns_trunc<mode>si2_stfiwx): Likewise.
7790 (fctiw<u>z_<mode>_smallint): Likewise.
7791 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
7792 of floating point to 32-bit integer from doing a direct move to
7793 the GPR registers to do a store.
7794 (fctiwz_<mode>): Break long line.
7795
7796 2017-05-05 Bin Cheng <bin.cheng@arm.com>
7797
7798 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
7799 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
7800 (addr_list, addr_offset_valid_p): New.
7801 (split_address_groups): Check offset validity with above function.
7802 (gt-tree-ssa-loop-ivopts.h): Include header file.
7803
7804 2017-05-05 Nathan Sidwell <nathan@acm.org>
7805
7806 * config.gcc (arm*-*-*): Add missing 'fi'.
7807
7808 2017-05-05 Steve Ellcey <sellcey@cavium.com>
7809
7810 * doc/invoke.texi (-fopt-info): Explicitly say order of options
7811 included in -fopt-info does not matter.
7812 * doc/optinfo.texi (-fopt-info): Fix description of default
7813 behavour. Explicitly say order of options included in -fopt-info
7814 does not matter.
7815
7816 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
7817
7818 * config.gcc: Allow combinations of aprofile and rmprofile values for
7819 --with-multilib-list.
7820 * config/arm/t-multilib: New file.
7821 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
7822 variables. Remove setting of ISA and floating-point ABI in
7823 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
7824 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
7825 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
7826 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
7827 CPU options.
7828 * config/arm/t-rmprofile: Likewise except for the matches changes.
7829 * doc/install.texi (--with-multilib-list): Document the combination of
7830 aprofile and rmprofile values and warn about pitfalls in doing that.
7831
7832 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
7833
7834 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
7835 (movdi_aarch64): Likewise.
7836
7837 2017-05-05 Jakub Jelinek <jakub@redhat.com>
7838
7839 PR tree-optimization/80632
7840 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
7841 field.
7842 (build_arrays): Initialize it for virtual phis.
7843 (fix_phi_nodes): Use it for virtual phis.
7844
7845 PR tree-optimization/80558
7846 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
7847 [x, y] op z into [x op, y op z] for op & or | if conditions
7848 are met.
7849
7850 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
7851 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7852
7853 PR target/71607
7854 * config/arm/arm.md (use_literal_pool): Remove.
7855 (64-bit immediate split): No longer takes cost into consideration
7856 if arm_disable_literal_pool is enabled.
7857 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
7858 used when arm_disable_literal_pool is enabled.
7859 (arm_max_const_double_inline_cost): Remove use of
7860 arm_disable_literal_pool.
7861 (push_minipool_fix): Add assert.
7862 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
7863 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
7864 (no_literal_pool_sf_immediate): New.
7865
7866 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7867
7868 PR tree-optimization/80613
7869 * tree-ssa-dce.c (propagate_necessity): Remove cases for
7870 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7871
7872 2017-05-05 Richard Biener <rguenther@suse.de>
7873
7874 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
7875
7876 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
7877
7878 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
7879 of this flag from insn conditions due to removal from r247495.
7880
7881 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
7882
7883 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
7884 New function.
7885 (arm_early_store_addr_dep_ptr): Likewise.
7886 * config/arm/aarch-common-protos.h
7887 (arm_early_load_addr_dep_ptr): Add prototype.
7888 (arm_early_store_addr_dep_ptr): Likewise.
7889 * config/arm/cortex-a53.md: Add new bypasses.
7890
7891 2017-05-05 Jakub Jelinek <jakub@redhat.com>
7892
7893 * tree.c (next_type_uid): Change type to unsigned.
7894 (type_hash_canon): Decrement back next_type_uid if
7895 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
7896 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
7897 if possible.
7898
7899 2017-05-04 Martin Sebor <msebor@redhat.com>
7900
7901 * builtins.c: Fix a trivial typo in a comment.
7902
7903 PR middle-end/79234
7904 * builtins.c (check_sizes): Adjust to handle reading past the end.
7905 Avoid printing excessive upper bound of ranges. Use %E to print
7906 tree nodes instead of converting them to %wu.
7907 (expand_builtin_memchr): New function.
7908 (compute_dest_size): Rename...
7909 (compute_objsize): ...to this.
7910 (expand_builtin_memcpy): Adjust.
7911 (expand_builtin_mempcpy): Adjust.
7912 (expand_builtin_strcat): Adjust.
7913 (expand_builtin_strcpy): Adjust.
7914 (check_strncat_sizes): Adjust.
7915 (expand_builtin_strncat): Adjust.
7916 (expand_builtin_strncpy): Adjust and simplify.
7917 (expand_builtin_memset): Adjust.
7918 (expand_builtin_bzero): Adjust.
7919 (expand_builtin_memcmp): Adjust.
7920 (expand_builtin): Handle memcmp.
7921 (maybe_emit_chk_warning): Check strncat just once.
7922
7923 2017-05-04 Martin Sebor <msebor@redhat.com>
7924
7925 PR preprocessor/79214
7926 PR middle-end/79222
7927 PR middle-end/79223
7928 * builtins.c (check_sizes): Add inlining context and issue
7929 warnings even when -Wno-system-headers is set.
7930 (check_strncat_sizes): Same.
7931 (expand_builtin_strncat): Same.
7932 (expand_builtin_memmove): New function.
7933 (expand_builtin_stpncpy): Same.
7934 (expand_builtin): Handle memmove and stpncpy.
7935
7936 2017-05-04 Bin Cheng <bin.cheng@arm.com>
7937
7938 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
7939 which is not used any more.
7940
7941 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7942
7943 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
7944
7945 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7946
7947 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
7948 (cortexa53_tunings): Likewise.
7949 (cortexa57_tunings): Likewise.
7950 (cortexa72_tunings): Likewise.
7951 (cortexa73_tunings): Likewise.
7952
7953 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7954
7955 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
7956 Set loop alignment to 8.
7957
7958 2017-05-04 Martin Sebor <msebor@redhat.com>
7959
7960 PR translation/80280
7961 * builtins.c (expand_builtin_object_size): Add missing quoting to
7962 %D and like directives.
7963 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
7964 (hsa_type_for_tree_type): Same.
7965 (verify_function_arguments): Same.
7966 * symtab.c (symbol_table::change_decl_assembler_name): Same.
7967 * varasm.c (get_section): Same.
7968 (mark_weak): Same.
7969
7970 2017-05-04 Martin Sebor <msebor@redhat.com>
7971
7972 PR translation/80280
7973 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
7974
7975 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7976
7977 * config/aarch64/aarch64.c (generic_addrcost_table):
7978 Change HI/TI mode setting.
7979
7980 2017-05-04 Martin Jambor <mjambor@suse.cz>
7981
7982 PR tree-optimization/80622
7983 * tree-sra.c (comes_initialized_p): New function.
7984 (build_accesses_from_assign): Only set write lazily when
7985 comes_initialized_p is false.
7986 (analyze_access_subtree): Use comes_initialized_p.
7987 (propagate_subaccesses_across_link): Assert !comes_initialized_p
7988 instead of testing for PARM_DECL.
7989
7990 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7991
7992 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
7993 constraint on operand 0 to allow more general addressing modes.
7994 Adjust output template.
7995 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
7996 New function.
7997 * config/aarch64/aarch64-protos.h
7998 (aarch64_address_valid_for_prefetch_p): Declare prototype.
7999 * config/aarch64/constraints.md (Dp): New address constraint.
8000 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
8001 predicate.
8002
8003 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
8004
8005 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
8006 update use of estimate_ipcp_clone_size_and_time.
8007 (estimate_local_effects): Update use of
8008 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
8009 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
8010 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
8011 Return nonspecialized time.
8012
8013 2017-05-04 Richard Biener <rguenther@suse.de>
8014
8015 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
8016 for the last VUSE which def dominates the PHI. Directly call
8017 maybe_skip_until.
8018 (get_continuation_for_phi_1): Remove.
8019
8020 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
8021
8022 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
8023 to explain the use of truncating division. Cap the number of
8024 iterations to the maximum given by nb_iterations_upper_bound,
8025 if defined.
8026
8027 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
8028
8029 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
8030 * configure: Regenerate.
8031 * config.in: Regenerate.
8032 * config/i386/driver-mingw32.c: new file.
8033 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
8034 * config.host: Link driver-mingw32.o on MinGW host.
8035 * doc/install.texi: Document new --enable-mingw-wildcard configure
8036 option.
8037
8038 2017-05-04 Marek Polacek <polacek@redhat.com>
8039
8040 PR tree-optimization/80612
8041 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
8042
8043 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
8044 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
8045
8046 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
8047 (movt splitter): Likewise.
8048 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
8049 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
8050 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
8051 block for Thumb-1 with MOVT.
8052 (thumb2_legitimate_address_p): Move code block ...
8053 (can_avoid_literal_pool_for_label_p): ... into this new function.
8054 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
8055 literal pool.
8056 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
8057 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
8058 "M-profile targets with the MOVT instruction".
8059
8060 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
8061
8062 * config/arm/arm-builtins.c (arm_init_builtins): Rename
8063 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
8064 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
8065
8066 2017-05-04 Martin Liska <mliska@suse.cz>
8067
8068 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
8069 variable cond_code.
8070
8071 2017-05-04 Richard Biener <rguenther@suse.de>
8072
8073 * tree.c (array_at_struct_end_p): Handle arrays at struct
8074 end with flexarrays more conservatively. Refactor and treat
8075 arrays of arrays or aggregates more strict. Fix
8076 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
8077 * tree.c (array_at_struct_end_p): Adjust prototype.
8078 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
8079 * gimple-fold.c (get_range_strlen): Likewise.
8080 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
8081
8082 2017-05-04 Richard Biener <rguenther@suse.de>
8083
8084 PR tree-optimization/31130
8085 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
8086 false.
8087 (supports_overflow_infinity): Likewise.
8088 (is_negative_overflow_infinity): Likewise.
8089 (is_positive_overflow_infinity): Likewise.
8090 (is_overflow_infinity): Likewise.
8091 (stmt_overflow_infinity): Likewise.
8092 (overflow_infinity_range_p): Likewise.
8093 (usable_range_p): Remove as always returning true.
8094 (make_overflow_infinity): Remove.
8095 (negative_overflow_infinity): Likewise.
8096 (positive_overflow_infinity): Likewise.
8097 (avoid_overflow_infinity): Likewise.
8098 (set_value_range): Adjust accordingly.
8099 (set_value_range_to_nonnegative): Likewise, remove now unused
8100 overflow_infinity arg.
8101 (vrp_operand_equal_p): Adjust.
8102 (update_value_range): Likewise.
8103 (range_int_cst_singleton_p): Likewise.
8104 (operand_less_p): Likewise.
8105 (compare_values_warnv): Likewise.
8106 (extract_range_for_var_from_comparison_expr): Likewise.
8107 (vrp_int_const_binop): Likewise.
8108 (zero_nonzero_bits_from_vr): Likewise.
8109 (extract_range_from_multiplicative_op_1): Likewise.
8110 (extract_range_from_binary_expr_1): Likewise.
8111 (extract_range_from_unary_expr): Likewise.
8112 (extract_range_from_comparison): Likewise.
8113 (extract_range_basic): Likewise.
8114 (adjust_range_with_scev): Likewise.
8115 (compare_ranges): Likewise.
8116 (compare_range_with_value): Likewise.
8117 (dump_value_range): Likewise.
8118 (test_for_singularity): Likewise, remove strict_overflow_p parameter
8119 never used.
8120 (simplify_cond_using_ranges): Adjust.
8121
8122 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
8123
8124 * brig-builtins.def: Added a builtin for class_f64.
8125 * builtin-types.def: Added a builtin type needed by class_f64.
8126
8127 2017-05-03 Jason Merrill <jason@redhat.com>
8128
8129 * timevar.def: Add TV_CONSTEXPR.
8130
8131 2017-05-03 David Malcolm <dmalcolm@redhat.com>
8132
8133 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
8134
8135 2017-05-03 Martin Jambor <mjambor@suse.cz>
8136
8137 * ipa-prop.c (ipa_update_after_lto_read): Removed.
8138 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
8139 * ipa-cp.c (ipcp_propagate_stage): Do not call
8140 ipa_update_after_lto_read.
8141 * ipa-inline.c (ipa_inline): Likewise.
8142
8143 2017-05-03 Martin Jambor <mjambor@suse.cz>
8144
8145 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
8146 tag. Added a default constructor and a destructor.
8147 (ipa_edge_args_sum_t): New class;
8148 (ipa_edge_args_sum): Declare.
8149 (ipa_edge_args_vector): Remove declaration.
8150 (IPA_EDGE_REF): Use ipa_edge_args_sum.
8151 (ipa_free_edge_args_substructures): Remove declaration.
8152 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
8153 (ipa_edge_args_info_available_for_edge_p): Likewise.
8154 * ipa-prop.c (ipa_edge_args_vector): Removed.
8155 (edge_removal_hook_holder): Likewise.
8156 (edge_duplication_hook_holder): Likewise.
8157 (ipa_edge_args_sum): New variable.
8158 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
8159 ipa_edge_args_vector.
8160 (ipa_free_edge_args_substructures): Likewise.
8161 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
8162 ipa_edge_args_vector.
8163 (ipa_edge_removal_hook): Turned into method
8164 ipa_edge_args_sum_t::remove.
8165 (ipa_edge_duplication_hook): Turned into method
8166 ipa_edge_args_sum_t::duplicate.
8167 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
8168 registering edge hooks.
8169 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
8170 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
8171 ipa_edge_args_sum instead of ipa_edge_args_vector.
8172 * ipa-profile.c (ipa_profile): Likewise.
8173
8174 2017-05-03 Martin Jambor <mjambor@suse.cz>
8175
8176 * symbol-summary.h (function_summary): New method exists.
8177 (function_summary::symtab_removal): Deallocate through release.
8178 (call_summary): New class.
8179 (gt_ggc_mx): New overload.
8180 (gt_pch_nx): Likewise.
8181 (gt_pch_nx): Likewise.
8182
8183 2017-05-03 Jeff Law <law@redhat.com>
8184
8185 PR tree-optimization/78496
8186 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
8187 from simplify_cond_using_ranges. Split off code to walk
8188 backwards through casts into ...
8189 (simplify_cond_using_ranges_2): New function.
8190 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
8191 (execute_vrp): After identifying jump threads, call
8192 simplify_cond_using_ranges_2.
8193
8194 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
8195
8196 PR bootstrap/80609
8197 * ipa-inline.h (inline_summary): Add ctor.
8198 (create_ggc): Do not use ggc_cleared_alloc.
8199
8200 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
8201 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8202
8203 * gcc.c (handle_braces): Support escaping in switch matching
8204 text.
8205 * doc/invoke.texi (Spec Files): Document it.
8206 Remove superfluous @code markup in items.
8207
8208 2017-05-03 David Malcolm <dmalcolm@redhat.com>
8209
8210 * diagnostic-show-locus.c (struct column_range): New struct.
8211 (get_affected_columns): New function.
8212 (get_printed_columns): New function.
8213 (struct correction): New struct.
8214 (correction::ensure_capacity): New function.
8215 (correction::ensure_terminated): New function.
8216 (struct line_corrections): New struct.
8217 (line_corrections::~line_corrections): New dtor.
8218 (line_corrections::add_hint): New function.
8219 (layout::print_trailing_fixits): Reimplement in terms of the new
8220 classes.
8221 (selftest::test_overlapped_fixit_printing): New function.
8222 (selftest::diagnostic_show_locus_c_tests): Call it.
8223
8224 2017-05-03 Nathan Sidwell <nathan@acm.org>
8225
8226 Canonicalize canonical type hashing
8227 * tree.h (type_hash_canon_hash): Declare.
8228 * tree.c (type_hash_list, attribute_hash_list): Move into
8229 type_hash_canon_hash.
8230 (build_type_attribute_qual_variant): Break out hash code calc into
8231 type_hash_canon_hash.
8232 (type_hash_canon_hash): New. Generic type hash computation.
8233 (build_range_type_1, build_array_type_1, build_function_type,
8234 build_method_type_directly, build_offset_type, build_complex_type,
8235 make_vector_type): Call it.
8236
8237 2017-05-03 Richard Biener <rguenther@suse.de>
8238
8239 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8240 When all DRs have unknown misaligned do not always peel
8241 when there is a store but apply the same costing model as if
8242 there were only loads.
8243
8244 2017-05-03 Richard Biener <rguenther@suse.de>
8245
8246 Revert
8247 PR tree-optimization/80492
8248 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
8249 compare_base_decls returning dont-know properly.
8250
8251 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8252
8253 * config/arm/iterators.md (CCSI): New mode iterator.
8254 (arch): New mode attribute.
8255 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
8256 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
8257 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
8258 code iterator for success result mode.
8259 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
8260 the corresponding new insn generators.
8261
8262 2017-05-03 Bin Cheng <bin.cheng@arm.com>
8263
8264 Revert r247509
8265 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8266 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
8267
8268 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8269
8270 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
8271 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
8272 (DDR_A): Wrap DDR argument in brackets.
8273 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
8274 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
8275 (DDR_REVERSED_P): Likewise.
8276
8277 2017-05-03 Jakub Jelinek <jakub@redhat.com>
8278
8279 PR tree-optimization/79472
8280 * tree-switch-conversion.c (struct switch_conv_info): Add
8281 contiguous_range and default_case_nonstandard fields.
8282 (collect_switch_conv_info): Compute contiguous_range and
8283 default_case_nonstandard fields, don't clear final_bb if
8284 contiguous_range and only the default case doesn't have the required
8285 structure.
8286 (check_all_empty_except_final): Set default_case_nonstandard instead
8287 of failing if contiguous_range and the default case doesn't have empty
8288 block.
8289 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
8290 and only the default case doesn't have the required constants. Skip
8291 virtual phis.
8292 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
8293 if default_case_nonstandard.
8294 (build_constructors): Build constant 1 just once. Assert that default
8295 values aren't inserted in between cases if contiguous_range. Skip
8296 virtual phis.
8297 (build_arrays): Skip virtual phis.
8298 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
8299 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
8300 Handle virtual phis.
8301 (gen_inbound_check): Handle default_case_nonstandard case.
8302 (process_switch): Adjust check_final_bb caller. Call
8303 gather_default_values with the first non-default case instead of
8304 default case if default_case_nonstandard.
8305
8306 2017-05-02 Nathan Sidwell <nathan@acm.org>
8307
8308 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
8309 check. Fix formatting.
8310
8311 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
8312
8313 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
8314 errors when comparing specialized and unspecialized times.
8315
8316 2017-05-02 David Malcolm <dmalcolm@redhat.com>
8317
8318 * diagnostic-show-locus.c
8319 (layout::should_print_annotation_line_p): Make private.
8320 (layout::print_annotation_line): Make private.
8321 (layout::annotation_line_showed_range_p): Make private.
8322 (layout::show_ruler): Make private.
8323 (layout::print_source_line): Make private. Pass in line and
8324 line_width, rather than calling location_get_source_line. Drop
8325 returned value.
8326 (layout::print_leading_fixits): New method.
8327 (layout::print_any_fixits): Rename to...
8328 (layout::print_trailing_fixits): ...this, and make private.
8329 Don't print newline fixits.
8330 (diagnostic_show_locus): Move logic for printing one row into...
8331 (layout::print_line): ...this new function. Move the
8332 location_get_source_line call and error-handling from
8333 print_source_line to here. Call print_leading_fixits, and rename
8334 print_any_fixits to print_trailing_fixits.
8335 (selftest::test_fixit_insert_containing_newline): Update now that
8336 newlines are partially supported.
8337 (selftest::test_fixit_insert_containing_newline_2): New test.
8338 (selftest::test_fixit_replace_containing_newline): Update comments.
8339 (selftest::diagnostic_show_locus_c_tests): Call the new test.
8340 * edit-context.c (class added_line): New class.
8341 (class edited_line): Describe newline handling in comment.
8342 (edited_line::actually_edited_p): New method.
8343 (edited_line::print_content): Delete redundant decl.
8344 (edited_line::m_predecessors): New field.
8345 (edited_file::print_content): Call edited_line::print_content.
8346 (edited_file::print_diff): Update to support newlines.
8347 (edited_file::print_diff_hunk): Likewise.
8348 (edited_file::print_run_of_changed_lines): New function.
8349 (edited_file::print_diff_line): Convert to...
8350 (print_diff_line): ...this.
8351 (edited_file::get_effective_line_count): New function.
8352 (edited_line::edited_line): Initialize new field m_predecessors.
8353 (edited_line::~edited_line): Clean up m_predecessors.
8354 (edited_line::apply_fixit): Handle newlines.
8355 (edited_line::get_effective_line_count): New function.
8356 (edited_line::print_content): New function.
8357 (edited_line::print_diff_lines): New function.
8358 (selftest::test_applying_fixits_insert_containing_newline): New
8359 test.
8360 (selftest::test_applying_fixits_replace_containing_newline): New
8361 test.
8362 (selftest::insert_line): New function.
8363 (selftest::test_applying_fixits_multiple_lines): Add example of
8364 inserting a line.
8365 (selftest::edit_context_c_tests): Call the new tests.
8366
8367 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8368
8369 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
8370 parameter cand. Update dump information.
8371 (get_computation_cost): Update uses.
8372
8373 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8374
8375 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
8376 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
8377 (get_computation_at, rewrite_use_address): Update use of
8378 get_computation_aff.
8379
8380 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8381
8382 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
8383 (get_computation): Delete.
8384 (get_computation_cost): Implement like get_computation_cost_at.
8385 Use get_computation_at.
8386 (get_computation_cost_at): Delete.
8387 (rewrite_use_nonlinear_expr): Use get_computation_at.
8388 (rewrite_use_compare, remove_unused_ivs): Ditto.
8389
8390 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8391
8392 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
8393
8394 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8395
8396 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
8397 (ivopts_global_cost_for_size): Rename parameter and update uses.
8398 (iv_ca_recount_cost): Update uses.
8399 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
8400 candidates seperately in n_invs and n_cands.
8401 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
8402
8403 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8404
8405 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
8406 (find_inv_vars_cb): New.
8407 (find_depends): Renamed to ...
8408 (find_inv_vars): ... this.
8409 (add_candidate_1, force_var_cost): Call find_inv_vars.
8410 (split_address_cost, determine_group_iv_cost_cond): Ditto.
8411
8412 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8413
8414 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
8415 inv_vars. Add inv_exprs.
8416 (struct iv_cand): Rename depends_on to inv_vars.
8417 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
8418 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
8419 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
8420 (dump_cand): Dump inv_vars.
8421 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
8422 (record_invariant, find_depends, add_candidate_1): Ditto.
8423 (set_group_iv_cost, force_var_cost): Ditto.
8424 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
8425 (get_computation_cost_at, get_computation_cost): Ditto.
8426 (determine_group_iv_cost_generic): Ditto.
8427 (determine_group_iv_cost_address): Ditto.
8428 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
8429 (determine_group_iv_costs): Ditto.
8430 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
8431 (iv_ca_set_remove_invariants): Renamed to ...
8432 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
8433 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
8434 (iv_ca_set_add_invariants): Renamed to ...
8435 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
8436 (iv_ca_set_cp): Use iv_ca_set_add_invs.
8437 (iv_ca_has_deps): Support inv_vars and inv_exprs.
8438 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
8439 (create_new_ivs): Remove useless dump.
8440
8441 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8442
8443 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
8444 iv_cand code.
8445 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
8446 (iv_ca_set_no_cp, create_new_iv): Ditto.
8447
8448 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8449
8450 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
8451
8452 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
8453
8454 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
8455 function tree_check2.
8456
8457 2017-05-02 Martin Liska <mliska@suse.cz>
8458
8459 * doc/gcov.texi: Add missing preposition.
8460 * gcov.c (function_info::function_info): Properly fill up
8461 all member variables.
8462
8463 2017-05-02 Tamar Christina <tamar.christina@arm.com>
8464
8465 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
8466
8467 2017-05-02 Tamar Christina <tamar.christina@arm.com>
8468
8469 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
8470
8471 2017-05-02 Martin Liska <mliska@suse.cz>
8472
8473 PR lto/77954.
8474 * lto-streamer-in.c (lto_read_tree_1): Remove
8475 LTO_STREAMER_DEBUG.
8476 * lto-streamer.c (struct tree_hash_entry): Likewise.
8477 (struct tree_entry_hasher): Likewise.
8478 (tree_entry_hasher::hash): Likewise.
8479 (tree_entry_hasher::equal): Likewise.
8480 (lto_streamer_init): Likewise.
8481 (lto_orig_address_map): Likewise.
8482 (lto_orig_address_get): Likewise.
8483 (lto_orig_address_remove): Likewise.
8484 * lto-streamer.h: Likewise.
8485 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
8486 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
8487
8488 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
8489
8490 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
8491 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
8492 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
8493 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
8494 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
8495 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
8496 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
8497 (mm_maskz_sub_ss): New intrinsics.
8498 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8499 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
8500 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
8501 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
8502 (__builtin_ia32_subss_mask_round): New builtins.
8503 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8504 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
8505 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
8506 Renamed to ...
8507 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
8508 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
8509 Changed to ...
8510 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
8511 ... this.
8512
8513 2017-05-02 Martin Jambor <mjambor@suse.cz>
8514
8515 PR tree-optimization/78687
8516 * tree-sra.c (access): New field parent.
8517 (process_subtree_disqualification): New function.
8518 (disqualify_candidate): Call it.
8519 (build_accesses_from_assign): Reset write flag if creating an
8520 assighnment link.
8521 (build_access_subtree): Fill in parent field and also prpagate
8522 down grp_write flag.
8523 (create_artificial_child_access): New parameter set_grp_write, set
8524 grp_write to its value.
8525 (propagate_subaccesses_across_link): Also propagate grp_write flag
8526 values.
8527 (propagate_all_subaccesses): Push the closest parent back to work
8528 queue if add_access_to_work_queue returned true.
8529
8530 2017-05-02 Richard Biener <rguenther@suse.de>
8531
8532 * common.opt (fstrict-overflow): Alias negative to fwrapv.
8533 * doc/invoke.texi (fstrict-overflow): Remove all traces of
8534 -fstrict-overflow documentation.
8535 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
8536 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
8537 flag_strict_overflow.
8538 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
8539 * lto-opts.c (lto_write_options): Do not stream it.
8540 * lto-wrapper.c (merge_and_complain): Do not handle it.
8541 * opts.c (default_options_table): Do not set -fstrict-overflow.
8542 (finish_options): Likewise do not clear it when sanitizing.
8543 * simplify-rtx.c (simplify_const_relational_operation): Do not
8544 test flag_strict_overflow.
8545
8546 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
8547
8548 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
8549 using enabled attribute.
8550 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
8551 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
8552 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
8553 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
8554 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
8555 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
8556 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
8557 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
8558 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
8559 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
8560
8561 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
8562
8563 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
8564
8565 2017-05-02 Richard Biener <rguenther@suse.de>
8566
8567 PR tree-optimization/80591
8568 Revert
8569 2017-04-10 Richard Biener <rguenther@suse.de>
8570
8571 * tree-ssa-structalias.c (find_func_aliases): Properly handle
8572 asm inputs.
8573
8574 2017-05-02 Richard Biener <rguenther@suse.de>
8575
8576 PR tree-optimization/80549
8577 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
8578 (cleanup_tree_cfg_noloop): Create forwarders to known loop
8579 headers if they do not have a preheader.
8580
8581 2017-05-02 Martin Liska <mliska@suse.cz>
8582
8583 PR other/80589
8584 * common.opt: Fix typo.
8585 * doc/invoke.texi: Likewise.
8586
8587 2017-05-01 Jan Beulich <jbeulich@suse.com>
8588
8589 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
8590 swapping, add (x,x,m,x,n) alternative.
8591
8592 2017-05-01 Nathan Sidwell <nathan@acm.org>
8593
8594 * calls.c (combine_pending_stack_adjustment_and_call): Remove
8595 unnecessary unadjusted_alignment check.
8596
8597 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
8598
8599 PR c++/80038
8600 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
8601 operations here.
8602 * gimplify.c (gimplify_cilk_detach): New function.
8603 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
8604 * tree-core.h: Document EXPR_CILK_SPAWN.
8605 * tree.h (EXPR_CILK_SPAWN): Define.
8606
8607 2017-05-01 David Malcolm <dmalcolm@redhat.com>
8608
8609 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
8610 to use new fixit_hint representation, using the "replace" logic.
8611 (get_line_span_for_fixit_hint): Likewise.
8612 (layout::print_any_fixits): Likewise.
8613 (selftest::test_one_liner_many_fixits): Rename to...
8614 (selftest::test_one_liner_many_fixits_1): ...this, and update
8615 comment and expected output to reflect that the multiple fix-it
8616 hints are now consolidated into one insertion.
8617 (selftest::test_one_liner_many_fixits_2): New test.
8618 (selftest::test_diagnostic_show_locus_one_liner): Update for
8619 above.
8620 (selftest::test_fixit_consolidation): Update for fix-it API
8621 change.
8622 * diagnostic.c (print_parseable_fixits): Likewise.
8623 * edit-context.c (edited_line::m_line_events): Convert from
8624 auto_vec <line_event *> to auto_vec <line_event>.
8625 (class line_event): Convert from abstract base class to a concrete
8626 class, taking over the role of replace_event.
8627 (class insert_event): Delete.
8628 (class replace_event): Rename to class line_event. Convert to
8629 half-open range.
8630 (edit_context::add_fixits): Reimplement.
8631 (edit_context::apply_insert): Delete.
8632 (edit_context::apply_replace): Rename to...
8633 (edit_context::apply_fixit): ...this. Convert to half-open range.
8634 (edited_file::apply_insert): Delete.
8635 (edited_file::apply_replace): Rename to...
8636 (edited_file::apply_fixit): ...this.
8637 (edited_line::~edited_line): Drop deletion of events.
8638 (edited_line::apply_insert): Delete.
8639 (edited_line::apply_replace): Rename to...
8640 (edited_line::apply_fixit): ...this. Convert to half-open range.
8641 Update for change to type of m_line_events.
8642 * edit-context.h (edit_context::apply_insert): Delete.
8643 (edit_context::apply_replace): Rename to...
8644 (edit_context::apply_fixit): ...this.
8645
8646 2017-05-01 Martin Sebor <msebor@redhat.com>
8647
8648 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
8649 known.
8650
8651 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
8652
8653 PR target/68491
8654 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
8655 __get_cpuid_max returns 0.
8656 (__get_cpuid_count): Ditto.
8657
8658 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
8659
8660 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
8661 replacement expression is another instance of one of its arguments.
8662
8663 2017-05-01 Jakub Jelinek <jakub@redhat.com>
8664
8665 PR target/79430
8666 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
8667 check for stack push/pop autoinc.
8668 * config/i386/i386.c (ix86_agi_dependent): Return false
8669 if the only reason why modified_in_p returned true is that
8670 addr is SP based and set_insn is a push or pop.
8671
8672 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
8673
8674 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
8675 overflow check.
8676
8677 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
8678
8679 PR ipa/79224
8680 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
8681 (account_size_time): Use two predicates - exec_pred and
8682 nonconst_pred_ptr.
8683 (evaluate_conditions_for_known_args): Compute both clause and
8684 nonspec_clause.
8685 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
8686 (inline_summary_t::duplicate): Update.
8687 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
8688 separately.
8689 (compute_inline_parameters): Likewise.
8690 (estimate_edge_size_and_time): Update caluclation of time.
8691 (estimate_node_size_and_time): Compute both time and nonspecialized
8692 time.
8693 (estimate_ipcp_clone_size_and_time): Update.
8694 (inline_merge_summary): Update.
8695 (do_estimate_edge_time): Update.
8696 (do_estimate_edge_size): Update.
8697 (do_estimate_edge_hints): Update.
8698 (inline_read_section, inline_write_summary): Stream both new predicates.
8699 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
8700 as argument.
8701 (compute_inlined_call_time): Cleanup.
8702 (big_speedup_p): Update.
8703 (edge_badness): Update.
8704 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
8705 (size_time_entry): Replace predicate by exec_predicate and
8706 nonconst_predicate.
8707 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
8708 (estimate_edge_time): Return also nonspec_time.
8709 (reset_edge_growth_cache): Update.
8710
8711 2017-04-29 Jakub Jelinek <jakub@redhat.com>
8712
8713 PR rtl-optimization/80491
8714 * ifcvt.c (noce_process_if_block): When looking for x setter
8715 with missing else_bb, don't check only the insn right before
8716 cond_earliest, but look for the last insn that x is modified in
8717 within the same bb.
8718
8719 PR rtl-optimization/80491
8720 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
8721
8722 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
8723
8724 PR tree-optimization/80487
8725 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
8726
8727 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8728
8729 PR tree-optimization/79697
8730 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
8731 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
8732 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
8733 BUILT_IN_STRNDUP.
8734 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
8735 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
8736
8737 2017-04-28 Martin Sebor <msebor@redhat.com>
8738
8739 PR tree-optimization/80523
8740 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
8741 (init_target_to_host_charmap, target_to_host, target_strtol10): New
8742 functions.
8743 (maybe_warn, format_directive, parse_directive): Use new functions.
8744 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
8745
8746 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
8747
8748 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
8749
8750 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8751
8752 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
8753 target_header_dir): Set correctly.
8754 * configure: Regenerated.
8755 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8756 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8757 instead of SYSTEM_HEADER_DIR.
8758
8759 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
8760
8761 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
8762 (estimate_local_effects): Likewise.
8763 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
8764 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
8765 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
8766 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
8767 do_estimate_edge_time, estimate_edge_time): Likewise.
8768 * ipa-inline-analysis.c (estimate_node_size_and_time,
8769 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
8770 (estimate_time_after_inlining): Remove.
8771
8772 2017-04-28 Martin Liska <mliska@suse.cz>
8773
8774 * doc/gcov.texi: Enhance documentation of gcov.
8775
8776 2017-04-28 Martin Liska <mliska@suse.cz>
8777
8778 * doc/gcov.texi: Sort options in alphabetic order.
8779 * doc/gcov-dump.texi: Likewise.
8780 * doc/gcov-tool.texi: Likewise.
8781 * gcov.c (print_usage): Likewise.
8782 * gcov-dump.c (print_usage): Likewise.
8783 * gcov-tool.c (print_merge_usage_message): Likewise.
8784 (print_rewrite_usage_message): Likewise.
8785 (print_overlap_usage_message): Likewise.
8786
8787 2017-04-28 Martin Liska <mliska@suse.cz>
8788
8789 PR gcov-profile/53915
8790 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
8791
8792 2017-04-28 Martin Liska <mliska@suse.cz>
8793
8794 PR gcov-profile/79891
8795 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
8796 is marked by compiler as living on a line.
8797 (get_cycles_count): Remove usage of the union.
8798 (output_intermediate_file): Likewise.
8799 (find_source): Fix GNU coding style.
8800 (accumulate_line_counts): Remove old non-all block mode.
8801 (output_lines): Remove usage of the union.
8802 * profile.c (output_location): Include all BBs, even if
8803 belonging to a same line (and file) as a previous BB.
8804
8805 2017-04-28 Martin Liska <mliska@suse.cz>
8806
8807 * gcov.c (process_args): Handle new argument 'w'.
8808 (read_graph_file): Assign ID to BBs.
8809 (output_branch_count): Display BB # if verbose flag is set.
8810 (output_lines): Likewise for arcs.
8811 (print_usage): Add '--verbose' option help.
8812 * doc/gcov.texi: Document --verbose (-w) option.
8813
8814 2017-04-28 Martin Liska <mliska@suse.cz>
8815
8816 * gcov.c (struct block_location_info): New struct.
8817 (process_file): Fill up the new structure.
8818 (read_graph_file): Replace usage of encoding by the newly added
8819 struct.
8820 (add_line_counts): Likewise.
8821 (accumulate_line_counts): Remove usage of the union.
8822 (function_info::function_info): New function.
8823 (function_info::~function_info): Likewise.
8824 (process_file): Call delete instead of release_function.
8825 (release_function): Release the function.
8826 (release_structures): Call delete instead of release_function.
8827 (solve_flow_graph): Replace usage of num_blocks.
8828 (find_exception_blocks): Likewise.
8829 (output_lines): Fix GNU coding style.
8830
8831 2017-04-28 Martin Liska <mliska@suse.cz>
8832
8833 PR driver/56469
8834 * coverage.c (coverage_remove_note_file): New function.
8835 * coverage.h: Declare the function.
8836 * toplev.c (finalize): Clean if an error has been seen.
8837
8838 2017-04-28 Martin Liska <mliska@suse.cz>
8839
8840 PR gcov-profile/80031
8841 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
8842 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
8843 * gcov.c (read_graph_file): Read just number of blocks.
8844 * profile.c (branch_prob): Do not stream 0 flags per a basic
8845 block.
8846
8847 2017-04-28 Martin Liska <mliska@suse.cz>
8848
8849 * gcov-dump.c (tag_*): Add new argument to declarations.
8850 (dump_gcov_file): Likewise.
8851 (tag_blocks): Add and use new argument depth.
8852 (tag_arcs): Likewise.
8853 (tag_lines): Likewise.
8854 (tag_counters): Likewise.
8855 (tag_summary): Likewise.
8856 (dump_working_sets): Use depth to do a proper indentation.
8857
8858 2017-04-28 Jakub Jelinek <jakub@redhat.com>
8859
8860 PR bootstrap/80531
8861 * cgraph.h (symtab_node::debug_symtab): No longer inline.
8862 * symtab.c (symtab_node::debug_symtab): Move definition here.
8863
8864 2017-04-28 Richard Biener <rguenther@suse.de>
8865
8866 * lto-streamer.h (LTO_major_version): Bump to 7.
8867
8868 2017-04-28 Richard Biener <rguenther@suse.de>
8869
8870 * tree-vrp.c (assert_info): New struct.
8871 (add_assert_info): New helper.
8872 (register_edge_assert_for_2): Refactor to add asserts to a vector
8873 of assert_info.
8874 (register_edge_assert_for_1): Likewise.
8875 (register_edge_assert_for): Likewise.
8876 (finish_register_edge_assert_for): New helper actually registering
8877 asserts where live on edge.
8878 (find_conditional_asserts): Adjust.
8879 (find_switch_asserts): Likewise.
8880 (evrp_dom_walker::try_find_new_range): Generalize.
8881 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
8882
8883 2017-04-27 Marek Polacek <polacek@redhat.com>
8884
8885 PR sanitizer/80349
8886 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
8887 arg10 and arg11 to itype.
8888
8889 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
8890
8891 * doc/extend.texi (Object Size Checking): Improve grammar.
8892
8893 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
8894
8895 PR target/80530
8896 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
8897 that the logic for permitting reciprocal estimates matches that
8898 in use_rsqrt_p.
8899
8900 2017-04-27 Jakub Jelinek <jakub@redhat.com>
8901
8902 PR c++/80534
8903 * tree.c (type_cache_hasher::equal): Only compare
8904 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
8905 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
8906 non-aggregate element types.
8907 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
8908 about the flag on ARRAY_TYPEs in the comment, formatting fix.
8909
8910 2017-04-27 Richard Biener <rguenther@suse.de>
8911
8912 PR middle-end/80533
8913 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
8914 stripping ARRAY_REFs from MEM_EXPR make sure we're not
8915 keeping a reference to a trailing array.
8916
8917 2017-04-27 Richard Biener <rguenther@suse.de>
8918
8919 PR middle-end/80539
8920 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
8921 being in loop-closed SSA form conservatively.
8922 (chrec_fold_multiply_poly_poly): Likewise.
8923
8924 2017-04-27 Tamar Christina <tamar.christina@arm.com>
8925
8926 PR middle-end/79665
8927 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
8928 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
8929
8930 2017-04-27 Jakub Jelinek <jakub@redhat.com>
8931
8932 PR target/77728
8933 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
8934 (aarch64_function_arg_alignment): Return unsigned int again, but still
8935 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
8936 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
8937 Don't emit -Wpsabi note.
8938 (aarch64_function_arg_boundary): Likewise.
8939 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
8940 caller.
8941
8942 2017-04-26 Nathan Sidwell <nathan@acm.org>
8943
8944 * tree.h (crc32_unsigned_n): Declare.
8945 (crc32_unsigned, crc32_unsigned): Make inline.
8946 * tree.c (crc32_unsigned_bits): Replace with ...
8947 (crc32_unsigned_n): ... this.
8948 (crc32_unsigned, crc32_byte): Remove.
8949 (crc32_string): Remove unnecessary braces.
8950
8951 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
8952
8953 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
8954 * ipa-inline-analysis.c (MAX_TIME): Remove.
8955 (account_size_time): Use sreal for time.
8956 (dump_inline_summary): Update.
8957 (estimate_function_body_sizes): Update.
8958 (estimate_edge_size_and_time): Update.
8959 (estimate_calls_size_and_time): Update.
8960 (estimate_node_size_and_time): Update.
8961 (inline_merge_summary): Update.
8962 (inline_update_overall_summary): Update.
8963 (estimate_time_after_inlining): Update.
8964 (inline_read_section): Update.
8965 (inline_write_summary): Update.
8966 * ipa-inline.c (compute_uninlined_call_time): Update.
8967 (compute_inlined_call_time): Update.
8968 (recursive_inlining): Update.
8969 (inline_small_functions): Update.
8970 (dump_overall_stats): Update.
8971 * ipa-inline.h: Include sreal.h.
8972 (size_time_entry): Turn time to sreal.
8973 (inline_summary): Turn self_time nad time to sreal.
8974
8975 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
8976
8977 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
8978 data-streamer.h
8979 (sreal::stream_out, sreal::stream_in): New.
8980 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
8981
8982 2017-04-25 Jakub Jelinek <jakub@redhat.com>
8983
8984 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
8985 environment.
8986
8987 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
8988
8989 PR target/70799
8990 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
8991 Handle ASHIFTRT.
8992 (dimode_scalar_chain::compute_convert_gain): Ditto.
8993 (dimode_scalar_chain::make_vector_copies): Ditto.
8994 (dimode_scalar_chain::convert_reg): Ditto.
8995 (dimode_scalar_chain::convert_insn): Ditto.
8996 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
8997 (VI248_AVX512BW_1): New mode iterator.
8998 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
8999 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
9000 mode iterator.
9001
9002 2017-04-25 Martin Sebor <msebor@redhat.com>
9003
9004 PR tree-optimization/80497
9005 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
9006 constants are representable in HOST_WIDE_INT.
9007 (parse_directive): Ditto.
9008
9009 2017-04-25 Martin Sebor <msebor@redhat.com>
9010
9011 PR bootstrap/80486
9012 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
9013 (new_zero_array): Adjust signature.
9014 (dom_info::dom_init): Used unsigned rather that size_t.
9015 (dom_info::dom_info): Same.
9016
9017 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9018 Jakub Jelinek <jakub@redhat.com>
9019
9020 PR target/77728
9021 * config/arm/arm.c: Include gimple.h.
9022 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
9023 returns negative, increment ncrn only if it returned positive.
9024 (arm_needs_doubleword_align): Return int instead of bool,
9025 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
9026 members, but if there is any such non-FIELD_DECL
9027 > PARM_BOUNDARY aligned decl, return -1 instead of false.
9028 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
9029 returns negative, increment nregs only if it returned positive.
9030 (arm_setup_incoming_varargs): Likewise.
9031 (arm_function_arg_boundary): Emit -Wpsabi note if
9032 arm_needs_doubleword_align returns negative, return
9033 DOUBLEWORD_ALIGNMENT only if it returned positive.
9034
9035 2017-04-25 Marek Polacek <polacek@redhat.com>
9036
9037 PR sanitizer/80349
9038 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
9039 first argument to type.
9040
9041 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
9042
9043 PR target/80482
9044 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
9045 type checks to test for compatibility instead of equality.
9046
9047 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9048 Jakub Jelinek <jakub@redhat.com>
9049
9050 PR target/77728
9051 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
9052 type.
9053 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
9054 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
9055 the alignment computation, but return their maximum in warn_alignment.
9056 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
9057 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
9058 is smaller.
9059 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
9060 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
9061 caller.
9062
9063 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9064
9065 * config/arc/simdext.md (dmpyh): Fix typo.
9066
9067 2017-04-25 Richard Biener <rguenther@suse.de>
9068
9069 PR tree-optimization/80492
9070 * alias.c (compare_base_decls): Handle registers with asm
9071 specification conservatively.
9072 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
9073 compare_base_decls returning dont-know properly.
9074
9075 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9076
9077 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
9078 (legitimate_offset_address_p): New function.
9079 (arc_legitimate_address_p): Use above function.
9080
9081 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9082
9083 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
9084
9085 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9086
9087 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
9088 ACCH registers whenever they are available.
9089
9090 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9091
9092 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
9093 double regs fix when not used.
9094
9095 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9096
9097 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
9098 core registers.
9099 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
9100 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
9101
9102 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9103
9104 * config/arc/arc.c (arc_output_addsi): Check for h-register class
9105 when emitting short ADD instructions.
9106
9107 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9108
9109 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
9110 constraint.
9111 (cmpsi_cc_c_insn): Likewise.
9112 (cbranchsi4_scratch): Compute proper instruction length using
9113 compact_hreg_operand.
9114 * config/arc/predicates.md (compact_hreg_operand): New predicate.
9115
9116 2017-04-25 Richard Biener <rguenther@suse.de>
9117
9118 PR middle-end/80509
9119 * passes.c (pass_manager::pass_manager): Initialize
9120 m_name_to_pass_map.
9121
9122 2017-04-25 Richard Biener <rguenther@suse.de>
9123
9124 PR tree-optimization/79201
9125 * tree-ssa-sink.c (statement_sink_location): Handle calls.
9126
9127 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9128
9129 PR target/80464
9130 * config/s390/vector.md: Split MEM->GPR vector moves for
9131 non-s_operand addresses.
9132
9133 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9134
9135 PR target/79895
9136 * config/s390/predicates.md (reload_const_wide_int_operand): New
9137 predicate.
9138 * config/s390/s390.md ("movti"): Remove d/P alternative.
9139 ("movti_bigconst"): New pattern definition.
9140
9141 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9142
9143 PR target/80080
9144 * s390-protos.h (s390_expand_cs_hqi): Removed.
9145 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
9146 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
9147 modes as well as CCZ1mode and CCZmode.
9148 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
9149 signature of s390_emit_compare_and_swap.
9150 (s390_expand_cs_hqi): Likewise, make static.
9151 (s390_expand_cs_tdsi): Generate an explicit compare before trying
9152 compare-and-swap, in some cases.
9153 (s390_expand_cs): Wrapper function.
9154 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
9155 atomic_exchange.
9156 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
9157 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
9158 patterns for small and large integers. Forbid symref memory operands.
9159 Move expander to s390.c. Require cc register.
9160 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
9161 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
9162 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
9163 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
9164 symref memory operands. Remove CC mode and call s390_match_ccmode
9165 instead.
9166 ("atomic_exchange<mode>"): Allow and implement all integer modes.
9167
9168 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9169
9170 * config/s390/s390.md (define_peephole2): New peephole to help
9171 combining the load-and-test pattern with volatile memory.
9172
9173 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9174
9175 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
9176 with CCZmode for TARGET_Z196.
9177
9178 2017-04-25 Jakub Jelinek <jakub@redhat.com>
9179
9180 PR rtl-optimization/80501
9181 * combine.c (make_compound_operation_int): Set subreg_code to SET
9182 even for AND with mask of the sign bit of mode.
9183
9184 PR rtl-optimization/80500
9185 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
9186 sum's initial value.
9187
9188 2017-04-25 Julian Brown <julian@codesourcery.com>
9189 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9190
9191 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
9192
9193 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
9194
9195 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
9196
9197 2017-04-25 Julian Brown <julian@codesourcery.com>
9198 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9199
9200 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
9201 (thunderx2t99_sha): New Reservation.
9202
9203 2017-04-25 Julian Brown <julian@codesourcery.com>
9204 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9205
9206 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
9207 type for 1-element load.
9208
9209 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
9210
9211 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
9212
9213 2017-04-24 Martin Jambor <mjambor@suse.cz>
9214
9215 PR tree-optimization/80293
9216 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
9217 char arrays not totally scalarizable if it is false.
9218 (analyze_all_variable_accesses): Pass correct value in the new
9219 parameter. Add a statistics counter.
9220
9221 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
9222
9223 PR middle-end/79931
9224 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
9225
9226 2017-04-24 Richard Biener <rguenther@suse.de>
9227
9228 PR tree-optimization/80494
9229 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
9230 out for complex types.
9231
9232 2017-04-24 Richard Biener <rguenther@suse.de>
9233
9234 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
9235 * tree-ssa-sccvn.c (print_scc): Print SCC size.
9236 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
9237 (DFS): Adjust and never fail.
9238 (sccvn_dom_walker::fail): Remove.
9239 (sccvn_dom_walker::before_dom_children): Adjust.
9240 (run_scc_vn): Likewise and never fail.
9241 * tree-ssa-pre.c (pass_pre::execute): Adjust.
9242 (pass_fre::execute): Likewise.
9243
9244 2017-04-24 Richard Biener <rguenther@suse.de>
9245
9246 PR tree-optimization/79725
9247 * tree-ssa-sink.c (statement_sink_location): Return whether
9248 failure reason was zero uses. Move that check later.
9249 (sink_code_in_bb): Deal with zero uses by removing the stmt
9250 if possible.
9251
9252 2017-04-24 Richard Biener <rguenther@suse.de>
9253
9254 PR c++/2972
9255 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
9256 pointer-based references.
9257
9258 2017-04-24 Richard Biener <rguenther@suse.de>
9259
9260 PR bootstrap/79814
9261 * pass_manager.h (pass_manager::operator new): Remove.
9262 (pass_manager::operator delete): Likewise.
9263 * passes.c (pass_manager::operator new): Remove.
9264 (pass_manager::operator delete): Likewise.
9265 (pass_manager::pass_manager): Zero individual pass members.
9266
9267 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
9268
9269 PR target/70799
9270 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
9271 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
9272 Check "XEXP (src, 1)" operand here.
9273 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
9274 Check "XEXP (src, 1)" operand here.
9275 (dimode_scalar_chain::make_vector_copies): Detect count register
9276 of a shift instruction. Zero extend count register from QImode
9277 to DImode to satisfy vector shift pattern count operand predicate.
9278 Substitute vector shift count operand with a DImode copy.
9279 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
9280 vector register.
9281
9282 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
9283
9284 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
9285 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
9286 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
9287 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
9288 (UNSPEC_NOREX_MEM): Remove definition.
9289
9290 2017-04-21 Richard Biener <rguenther@suse.de>
9291
9292 PR tree-optimization/79547
9293 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9294 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
9295 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
9296 without any constraints.
9297
9298 2017-04-21 Richard Biener <rguenther@suse.de>
9299
9300 PR tree-optimization/78847
9301 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
9302
9303 2017-04-21 Richard Biener <rguenther@suse.de>
9304
9305 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
9306 (build_distinct_type_copy): Likewise.
9307 (build_variant_type_copy): Likewise.
9308 * tree.c (build_qualified_type): Pass down mem-stat info.
9309 (build_distinct_type_copy): Likewise.
9310 (build_variant_type_copy): Likewise.
9311
9312 2017-04-21 Richard Biener <rguenther@suse.de>
9313
9314 PR tree-optimization/80237
9315 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
9316 defaulted to NULL.
9317 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
9318 for a simplified result.
9319
9320 2016-04-21 Richard Biener <rguenther@suse.de>
9321
9322 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
9323 sth as strict as a simple_iv but a chrec without symbols and an
9324 operand defined in the loop we are peeling (and not some subloop).
9325 (propagate_constants_for_unrolling): Propagate all constants.
9326
9327 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
9328
9329 PR target/79804
9330 * config/i386/i386.c (print_reg): Remove assert for disalowed
9331 regno values, call output_operand_lossage instead.
9332
9333 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
9334
9335 PR target/78090
9336 * config/i386/constraints.md (Yc): New register constraint.
9337 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
9338 Use Yc constraint for alternative 2 of operand 0. Remove
9339 preferred_for_speed attribute.
9340
9341 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9342
9343 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
9344 lastprivate clauses in SIMT case.
9345
9346 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
9347
9348 * doc/invoke.texi (-Wextra-semi): Document new warning option.
9349
9350 2017-04-20 Richard Biener <rguenther@suse.de>
9351
9352 PR tree-optimization/57796
9353 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
9354 as N scalar stores.
9355 (vect_model_load_cost): Cost gathers as N scalar loads.
9356
9357 2017-04-20 Richard Biener <rguenther@suse.de>
9358
9359 * ggc-page.c (ggc_allocated_p): Rename to ...
9360 (safe_lookup_page_table_entry): ... this and return the lookup
9361 result.
9362 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
9363
9364 2017-04-20 Richard Biener <rguenther@suse.de>
9365
9366 PR tree-optimization/80453
9367 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
9368 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
9369 from the conditions.
9370 (vn_phi_eq): Pass them down.
9371 (vn_phi_lookup): Record them.
9372 (vn_phi_insert): Likewise.
9373
9374 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
9375
9376 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
9377 uninitialized variable warning to avoid buffer overrun.
9378
9379 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9380
9381 PR other/71250
9382 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
9383 is suppressed for '{ 0 }' in C.
9384
9385 2017-04-20 Jakub Jelinek <jakub@redhat.com>
9386
9387 * BASE-VER: Set to 8.0.0.
9388
9389 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
9390
9391 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
9392 priority .init_array and .fini_array section with SECTION_NOTYPE
9393 flag.
9394
9395 2017-04-20 Jakub Jelinek <jakub@redhat.com>
9396
9397 PR middle-end/80423
9398 * tree.h (build_array_type): Add typeless_storage default argument.
9399 * tree.c (type_cache_hasher::equal): Also compare
9400 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
9401 (build_array_type): Add typeless_storage argument, set
9402 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
9403 recursive call.
9404 (build_nonshared_array_type): Adjust build_array_type_1 caller.
9405 (build_array_type): Likewise. Add typeless_storage argument.
9406
9407 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
9408 Jakub Jelinek <jakub@redhat.com>
9409
9410 PR tree-optimization/80426
9411 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
9412 operation on symbolic operands, also compute the overflow for the
9413 invariant part when the operation degenerates into a negation.
9414
9415 2017-04-19 Jakub Jelinek <jakub@redhat.com>
9416
9417 PR debug/80461
9418 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
9419 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
9420
9421 PR debug/80436
9422 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
9423
9424 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
9425
9426 PR target/80462
9427 * config/avr/avr.c (tree.h): Include it.
9428 (cgraph.h): Include it.
9429 (avr_encode_section_info): Don't warn for uninitialized progmem
9430 variable if it's just an alias.
9431
9432 2017-04-19 Richard Biener <rguenther@suse.de>
9433
9434 PR ipa/65972
9435 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
9436 when needed by AutoPGO.
9437
9438 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
9439
9440 PR lto/50345
9441 * doc/lto.texi: Remove an extra 'that'.
9442
9443 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
9444
9445 PR rtl-optimization/80429
9446 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
9447 are only used in debug insns.
9448
9449 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
9450 Vladimir Makarov <vmakarov@redhat.com>
9451
9452 * config/sparc/predicates.md (input_operand): Add comment. Return
9453 true for any memory operand when LRA is in progress.
9454 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
9455
9456 2017-04-18 Jeff Law <law@redhat.com>
9457
9458 PR target/74563
9459 * mips.md ({return,simple_return}_internal): Do not overwrite
9460 operands[0].
9461
9462 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9463
9464 PR tree-optimization/80443
9465 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
9466 instead of adding 1, subtract -1 and similarly instead of subtracting
9467 1 add -1.
9468
9469 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
9470
9471 PR rtl-optimization/80357
9472 * haifa-sched.c (tmp_bitmap): New variable.
9473 (model_recompute): Handle duplicate use records.
9474 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
9475 (free_global_sched_pressure_data): Free it.
9476
9477 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9478
9479 Revert:
9480 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9481 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9482 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9483 instead of SYSTEM_HEADER_DIR.
9484
9485 2017-04-18 Jeff Law <law@redhat.com>
9486
9487 PR middle-end/80422
9488 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
9489 predecessors after walking up the insn chain.
9490
9491 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9492
9493 PR debug/80263
9494 * dwarf2out.c (modified_type_die): Try harder not to emit internal
9495 sizetype type into debug info.
9496
9497 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9498
9499 PR target/80099
9500 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
9501 unneeded test for TARGET_UPPER_REGS_SF.
9502 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
9503
9504 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9505
9506 PR sanitizer/80444
9507 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
9508 instead of gsi_after_labels.
9509
9510 2017-04-18 Jeff Law <law@redhat.com>
9511
9512 * regcprop.c (maybe_mode_change): Avoid creating copies of the
9513 stack pointer.
9514
9515 Revert:
9516 2017-04-13 Jeff Law <law@redhat.com>
9517 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9518 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9519
9520 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
9521
9522 PR target/79453
9523 * config/avr/avr.c (intl.h): Include it.
9524 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
9525
9526 2017-04-18 Martin Liska <mliska@suse.cz>
9527
9528 PR gcov-profile/78783
9529 * gcov-tool.c (gcov_output_files): Validate that destination
9530 file is either removed by the tool or by a user.
9531
9532 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
9533 Guy Benyei <guybe@mellanox.com>
9534
9535 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
9536 block, and do not negate it, the stored id is already negative.
9537
9538 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
9541
9542 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9543
9544 PR target/80098
9545 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
9546 masks of options that should be turned off if the VSX vector
9547 options are turned off.
9548 (OTHER_P8_VECTOR_MASKS): Likewise.
9549 (OTHER_VSX_VECTOR_MASKS): Likewise.
9550 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
9551 rs6000_disable_incompatible_switches to validate no type switches
9552 like -mvsx.
9553 (rs6000_incompatible_switch): New function to disallow turning on
9554 other vector options if -mno-vsx, -mno-power8-vector, or
9555 -mno-power9-vector are specified.
9556
9557 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9558
9559 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
9560
9561 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9562
9563 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
9564 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
9565 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
9566 (ARG_POINTER_CFA_OFFSET): Likewise.
9567
9568 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9569
9570 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
9571 conditions to take advantage of various optimizations.
9572
9573 2017-04-13 Jeff Law <law@redhat.com>
9574
9575 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9576 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9577 (zero_extendsidi2_dext): Likewise.
9578
9579 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9580
9581 PR sanitizer/80403
9582 * fold-const.c (fold_ternary_loc): Revert
9583 use op0 instead of fold_convert_loc (loc, type, arg0) part of
9584 2017-04-12 change.
9585
9586 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
9587
9588 PR rtl-optimization/80343
9589 * lra-remat.c (update_scratch_ops): Assign original hard reg to
9590 new scratch pseudo.
9591
9592 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
9593
9594 PR sanitizer/80414
9595 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
9596 to ubsan_encode_value.
9597
9598 2017-04-13 Jeff Law <law@redhat.com>
9599
9600 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
9601 appearing in DEBUG_INSNs.
9602
9603 2017-04-13 Martin Liska <mliska@suse.cz>
9604
9605 PR gcov-profile/80413
9606 * gcov-io.c (gcov_write_string): Copy to buffer just when
9607 allocated size is greater than zero.
9608
9609 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9610
9611 PR debug/80321
9612 * dwarf2out.c (decls_for_scope): Ignore declarations of
9613 current_function_decl in BLOCK_NONLOCALIZED_VARS.
9614
9615 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
9616
9617 PR lto/69953
9618 * ipa-visibility.c (non_local_p): Fix typos.
9619 (localize_node): When localizing symbol in same comdat group,
9620 dissolve the group only when we know external symbols are going
9621 to be privatized.
9622 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
9623
9624 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9625
9626 PR tree-optimization/79390
9627 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
9628 order does not result in usable sequence, retry with reversed operand
9629 order.
9630
9631 PR sanitizer/80403
9632 PR sanitizer/80404
9633 PR sanitizer/80405
9634 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
9635 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
9636 op0 instead of fold_convert_loc (loc, type, arg0).
9637
9638 2017-04-12 Jeff Law <law@redhat.com>
9639
9640 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
9641 has a delay slot in the generated code.
9642
9643 * config/cris/cris.md (cris_preferred_reload_class): Return
9644 GENNONACR_REGS rather than GENERAL_REGS.
9645
9646 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9647
9648 PR c/80163
9649 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
9650 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
9651 signedness of the result type.
9652
9653 2017-04-12 Richard Biener <rguenther@suse.de>
9654 Jeff Law <law@redhat.com>
9655
9656 PR tree-optimization/80359
9657 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
9658 trim stores to TARGET_MEM_REFs.
9659
9660 2017-04-12 Richard Biener <rguenther@suse.de>
9661
9662 PR tree-optimization/79390
9663 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
9664 threading case even more.
9665
9666 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
9667
9668 PR target/80382
9669 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
9670 for quad_address_p for TImode, instead of just not indexed_address.
9671
9672 2017-04-12 Richard Biener <rguenther@suse.de>
9673 Bernd Edlinger <bernd.edlinger@hotmail.de>
9674
9675 PR middle-end/79671
9676 * alias.c (component_uses_parent_alias_set_from): Handle
9677 TYPE_TYPELESS_STORAGE.
9678 (get_alias_set): Likewise.
9679 * tree-core.h (tree_type_common): Add typeless_storage flag.
9680 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
9681 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
9682 for types containing members with TYPE_TYPELESS_STORAGE.
9683 (place_field): Likewise.
9684 (layout_type): Likewise for ARRAY_TYPE.
9685 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
9686 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
9687 TYPE_TYPELESS_STORAGE.
9688 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
9689
9690 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9691
9692 PR sanitizer/80349
9693 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
9694 first argument to type.
9695
9696 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9697
9698 PR target/80376
9699 PR target/80315
9700 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9701 CONST0_RTX (mode) rather than const0_rtx where appropriate.
9702 (rs6000_expand_binop_builtin): Likewise.
9703 (rs6000_expand_ternop_builtin): Likewise; also add missing
9704 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
9705 vshasigma built-ins.
9706 * doc/extend.texi: Document that vec_xxpermdi's third argument
9707 must be a constant.
9708
9709 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
9710
9711 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
9712 Use shift_const cost parameter when calculating gain of STV shifts.
9713
9714 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
9715
9716 PR rtl-optimization/70478
9717 * lra-constraints.c (process_alt_operands): Check memory for
9718 disfavoring memory insn operand.
9719
9720 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9721
9722 PR middle-end/80100
9723 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
9724 left shift in unsigned HOST_WIDE_INT type.
9725
9726 PR rtl-optimization/80385
9727 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
9728 (not (neg X)) into (plus X -1) for complex or non-integral modes.
9729
9730 PR libgomp/80394
9731 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
9732 if they have any depend clauses.
9733
9734 2017-04-11 Martin Liska <mliska@suse.cz>
9735
9736 PR ipa/80212
9737 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
9738 * ipa-split.c (split_function): Create a local comdat symbol
9739 if caller is in a comdat group.
9740
9741 2017-04-11 Martin Liska <mliska@suse.cz>
9742
9743 PR ipa/80212
9744 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
9745 flags.
9746
9747 2017-04-11 Martin Sebor <msebor@redhat.com>
9748
9749 PR middle-end/80364
9750 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
9751 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
9752 for INTEGER_TYPE.
9753 (directive::set_width, directive::set_precision, format_character):
9754 Adjust.
9755 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
9756 INTEGER_TYPE.
9757
9758 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
9759
9760 PR target/80389
9761 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
9762 conflict, set target->arch_name instead of target->cpu_name.
9763
9764 2017-04-11 Richard Biener <rguenther@suse.de>
9765
9766 PR tree-optimization/80374
9767 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
9768 build_zero_cst, remove fold_convertible_p check again.
9769
9770 2017-04-11 Martin Liska <mliska@suse.cz>
9771
9772 PR sanitizer/70878
9773 * ubsan.c (instrument_object_size): Do not instrument register
9774 variables.
9775
9776 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9777
9778 PR target/80381
9779 * config/i386/i386-builtin-types.def
9780 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
9781 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
9782 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
9783 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
9784 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
9785 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
9786 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
9787 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
9788 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
9789 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
9790 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
9791 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
9792 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
9793 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
9794 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
9795 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
9796 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
9797 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
9798 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
9799 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
9800 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
9801 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
9802 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
9803 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
9804 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
9805 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
9806 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
9807 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
9808 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
9809 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
9810 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
9811 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
9812 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
9813 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
9814 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
9815 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
9816 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
9817 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
9818 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
9819 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
9820 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
9821 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
9822 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
9823 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
9824 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9825 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
9826 aliases.
9827 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
9828 flag to second_arg_count, handle 4 argument function type _COUNT
9829 aliases, handle second_arg_count on second argument rather than last.
9830
9831 2017-04-10 Jeff Law <law@redhat.com>
9832
9833 PR tree-optimization/80374
9834 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
9835 record anything if we can not convert integer_zero_node to the
9836 desired type.
9837
9838 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
9839
9840 PR target/80108
9841 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9842 Enhance special handling given to the TARGET_P9_MINMAX option in
9843 relation to certain other options.
9844
9845 2017-04-10 Bin Cheng <bin.cheng@arm.com>
9846
9847 PR tree-optimization/80153
9848 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
9849 remove POINTER_PLUS_EXPR's base part directly, rather than through
9850 aff_tree.
9851
9852 2017-04-10 Richard Biener <rguenther@suse.de>
9853 Bin Cheng <bin.cheng@arm.com>
9854
9855 PR tree-optimization/80153
9856 * tree-affine.c (aff_combination_to_tree): Get base pointer from
9857 the first element of pointer type aff_tree. Build result expr in
9858 aff_tree's type.
9859 (add_elt_to_tree): Convert to type unconditionally. Remove other
9860 fold_convert calls.
9861 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
9862 (rewrite_use_nonlinear_expr): Check invariant using iv information.
9863
9864 2017-04-10 Richard Biener <rguenther@suse.de>
9865
9866 * tree-ssa-structalias.c (find_func_aliases): Properly handle
9867 asm inputs.
9868
9869 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
9870
9871 PR rtl-optimization/70478
9872 * lra-constraints.c (curr_small_class_check): New.
9873 (update_and_check_small_class_inputs): New.
9874 (process_alt_operands): Update curr_small_class_check. Disfavor
9875 alternative insn memory operands. Check available regs for small
9876 class operands.
9877
9878 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
9879
9880 PR target/80057
9881 * config/mips/mips.opt (-mvirt): Update description.
9882 * doc/invoke.texi (-mvirt): Likewise.
9883
9884 2017-04-10 Richard Biener <rguenther@suse.de>
9885
9886 PR middle-end/80362
9887 * fold-const.c (fold_binary_loc): Look at unstripped ops when
9888 looking for NEGATE_EXPR in -A / -B to A / B folding.
9889
9890 2017-04-10 Martin Liska <mliska@suse.cz>
9891
9892 PR gcov-profile/80224
9893 * gcov.c (print_usage): Fix usage string.
9894 (get_gcov_intermediate_filename): Remove.
9895 (output_gcov_file): Use both for normal and intermediate format.
9896 (generate_results): Do not initialize special file for
9897 intermediate format.
9898
9899 2017-04-10 Richard Biener <rguenther@suse.de>
9900
9901 PR tree-optimization/80304
9902 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
9903 for safelen.
9904
9905 2017-04-10 Nathan Sidwell <nathan@acm.org>
9906
9907 PR target/79905
9908 * config/rs6000/rs6000.c (rs6000_vector_type): New.
9909 (rs6000_init_builtins): Use it.
9910
9911 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9912
9913 * config/arm/arm.md (<mrc>): Add mode to SET source.
9914 (<mrrc>): Likewise.
9915
9916 2017-04-10 Richard Biener <rguenther@suse.de>
9917
9918 PR middle-end/80344
9919 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
9920
9921 2017-04-10 Jakub Jelinek <jakub@redhat.com>
9922
9923 PR target/80324
9924 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
9925 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
9926 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
9927 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
9928 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
9929 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
9930 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
9931 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
9932 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
9933 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
9934 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
9935 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
9936 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
9937 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
9938 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
9939 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
9940 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
9941 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
9942 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
9943 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
9944 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
9945 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
9946 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
9947
9948 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
9949
9950 PR rtl-optimization/70478
9951 * lra-constraints.c: Reverse the last patch.
9952
9953 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
9954
9955 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
9956 Add comment for WCHAR_T.
9957
9958 2017-04-08 Martin Liska <mliska@suse.cz>
9959
9960 Revert:
9961 2017-04-07 Martin Liska <mliska@suse.cz>
9962
9963 PR ipa/80212
9964 * ipa-split.c (split_function): Add function part to a same comdat
9965 group.
9966
9967 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9968
9969 PR target/80358
9970 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
9971
9972 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
9973
9974 * rs6000/rs6000.c (vec_load_pendulum): Rename...
9975 (vec_pairing): ...to this.
9976 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
9977 (rs6000_sched_init): Adjust for name change.
9978 (struct rs6000_sched_context): Likewise.
9979 (rs6000_init_sched_context): Likewise.
9980 (rs6000_set_sched_context): Likewise.
9981
9982 2017-04-07 Jakub Jelinek <jakub@redhat.com>
9983
9984 PR target/80322
9985 PR target/80323
9986 PR target/80325
9987 PR target/80326
9988 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
9989 intrinsics.
9990 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
9991 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
9992 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
9993
9994 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
9995
9996 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
9997
9998 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
9999
10000 PR rtl-optimization/70703
10001 * ira-color.c (update_conflict_hard_regno_costs): Use
10002 int64_t instead of HOST_WIDE_INT.
10003
10004 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
10005
10006 PR rtl-optimization/70478
10007 * lra-constraints.c (process_alt_operands): Disfavor alternative
10008 insn memory operands.
10009
10010 2017-04-07 Jeff Law <law@redhat.com>
10011
10012 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
10013 CALL and NOTE_INSN_CALL_ARG_LOCATION.
10014
10015 2017-04-07 Martin Liska <mliska@suse.cz>
10016
10017 PR target/79889
10018 * config/aarch64/aarch64.c (aarch64_process_target_attr):
10019 Show error message instead of an ICE.
10020
10021 2017-04-07 Martin Liska <mliska@suse.cz>
10022
10023 PR ipa/80212
10024 * ipa-split.c (split_function): Add function part to a same comdat
10025 group.
10026
10027 2017-04-07 Richard Biener <rguenther@suse.de>
10028
10029 PR middle-end/80341
10030 * tree.c (get_unwidened): Also handle ! for_type case for
10031 INTEGER_CSTs.
10032 * convert.c (do_narrow): Split out from ...
10033 (convert_to_integer_1): ... here. Do not pass final truncation
10034 type to get_unwidened for TRUNC_DIV_EXPR.
10035
10036 2017-04-07 Richard Biener <rguenther@suse.de>
10037
10038 * tree-affine.c (wide_int_ext_for_comb): Take type rather
10039 than aff_tree.
10040 (aff_combination_const): Adjust.
10041 (aff_combination_scale): Likewise.
10042 (aff_combination_add_elt): Likewise.
10043 (aff_combination_add_cst): Likewise.
10044 (aff_combination_convert): Likewise.
10045 (add_elt_to_tree): Likewise. Remove unused argument.
10046 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
10047
10048 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
10049
10050 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
10051 definition.
10052 * config/arm/arm.c (arm_default_short_enums): Use
10053 ARM_DEFAULT_SHORT_ENUMS.
10054 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
10055
10056 2017-04-06 Jakub Jelinek <jakub@redhat.com>
10057
10058 PR debug/80234
10059 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
10060 members with redundant out-of-class redeclaration.
10061
10062 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
10063
10064 PR target/80286
10065 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
10066 * config/i386/i386.md (*zero_extendsidi2):
10067 Add (?*x,*x) and (?*v,*v) alternatives.
10068
10069 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
10070
10071 PR target/79733
10072 * config/i386/i386.c (ix86_expand_builtin)
10073 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
10074 mode from insn data. Convert operands to insn operand mode.
10075 Copy operands that don't satisfy insn predicate to a register.
10076
10077 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
10078
10079 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
10080 Update comments.
10081
10082 2017-04-06 Richard Biener <rguenther@suse.de>
10083
10084 PR tree-optimization/80334
10085 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
10086 preserve alignment of accesses.
10087
10088 2017-04-06 Richard Biener <rguenther@suse.de>
10089
10090 PR tree-optimization/80262
10091 * tree-sra.c (build_ref_for_offset): Preserve address-space
10092 information.
10093 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10094 Drop useless address-space information on MEM_REF offsets.
10095
10096 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
10097
10098 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
10099
10100 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
10101
10102 PR rtl-optimization/70703
10103 * ira-color.c (update_conflict_hard_regno_costs): Use
10104 HOST_WIDE_INT instead of long.
10105
10106 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
10107
10108 PR target/80298
10109 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
10110 not defined for x86_64 target. Add -mmmx target option when __SSE2__
10111 is not defined.
10112 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
10113 for x86_64 target. Handle -m3dnowa option.
10114
10115 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
10116
10117 PR rtl-optimization/70703
10118 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
10119 (update_conflict_hard_regno_costs): Use long instead of unsigned
10120 arithmetic for cost calculation.
10121
10122 2017-04-05 Jakub Jelinek <jakub@redhat.com>
10123 Bernd Edlinger <bernd.edlinger@hotmail.de>
10124
10125 PR sanitizer/80308
10126 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
10127 for big endian.
10128
10129 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
10130
10131 PR target/78002
10132 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
10133 ptr_mode with Pmode throughout.
10134 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
10135 into probe_stack_range and use DImode.
10136
10137 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10138
10139 PR target/79890
10140 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
10141 call_eh_return is true.
10142
10143 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10144
10145 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
10146 Initialize last_match_fntype_index.
10147
10148 2017-04-05 Jakub Jelinek <jakub@redhat.com>
10149
10150 PR target/80310
10151 * tree-nvr.c: Include internal-fn.h.
10152 (pass_return_slot::execute): Ignore internal calls without
10153 direct optab.
10154
10155 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10156 Richard Biener <rguenther@suse.de>
10157
10158 PR c++/80297
10159 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
10160 captures used multiple times, except for the last use.
10161 * generic-match-head.c: Include gimplify.h.
10162
10163 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10164
10165 PR tree-optimization/79390
10166 * target.h (struct noce_if_info): Declare.
10167 * targhooks.h (default_noce_conversion_profitable_p): Declare.
10168 * target.def (noce_conversion_profitable_p): New target hook.
10169 * ifcvt.h (struct noce_if_info): New type, moved from ...
10170 * ifcvt.c (struct noce_if_info): ... here.
10171 (noce_conversion_profitable_p): Renamed to ...
10172 (default_noce_conversion_profitable_p): ... this. No longer
10173 static nor inline.
10174 (noce_try_store_flag_constants, noce_try_addcc,
10175 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
10176 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
10177 instead of noce_conversion_profitable_p.
10178 * config/i386/i386.c: Include ifcvt.h.
10179 (ix86_option_override_internal): Don't override
10180 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
10181 (ix86_noce_conversion_profitable_p): New function.
10182 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
10183 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
10184 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
10185 * doc/tm.texi: Regenerated.
10186
10187 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10188
10189 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
10190 correction.
10191
10192 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10193
10194 PR target/80307
10195 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
10196 instructions for small multiply cores.
10197
10198 2017-04-04 Jeff Law <law@redhat.com>
10199
10200 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
10201 added member.
10202 (mips_expand_vec_perm_const): Initialize elements in orig_perm
10203 that are not set by the loop over the elements.
10204
10205 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10206
10207 PR target/80286
10208 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
10209 int mode, convert_modes it to mode as unsigned, otherwise use
10210 lowpart_subreg to mode rather than SImode.
10211 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
10212 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
10213 Use DImode instead of SImode for the shift count operand.
10214 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
10215 Likewise.
10216
10217 2017-04-04 Richard Biener <rguenther@suse.de>
10218
10219 PR middle-end/80281
10220 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
10221 arithmetic done for the negate or the plus. Simplify.
10222 (A - (-B) -> A + B): Likewise.
10223 * fold-const.c (split_tree): Make sure to not negate pointers.
10224
10225 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
10226
10227 PR rtl-optimization/60818
10228 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
10229 a compare of comparisons with the thing compared if this results
10230 in a different machine mode.
10231
10232 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
10233
10234 * alias.c (base_alias_check): Fix typo in comment.
10235 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
10236 * cgraphunit.c (symbol_table::compile): Likewise.
10237 * collect2.c (maybe_run_lto_and_relink): Likewise.
10238 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
10239 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
10240 * config/avr/avr.c (avr_map_op_t): Likewise.
10241 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
10242 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
10243 * config/epiphany/epiphany.md (movcc): Likewise.
10244 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
10245 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
10246 Likewise.
10247 * config/mips/mips.c (mips_save_restore_reg): Likewise.
10248 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
10249 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
10250 * config/sh/sh.c (sh_rtx_costs): Likewise.
10251 * fold-const.c (fold_truth_andor): Likewise.
10252 * genautomata.c (collapse_flag): Likewise.
10253 * gengtype.h (struct type::u::s): Likewise.
10254 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
10255 * input.c (FORMAT_AMOUNT): Likewise.
10256 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
10257 (known_aggs_to_agg_replacement_list): Likewise.
10258 * ipa-inline-analysis.c: Likewise.
10259 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
10260 * ipa-polymorphic-call.c
10261 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
10262 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
10263 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
10264 Likewise.
10265 * modulo-sched.c (apply_reg_moves): Likewise.
10266 * omp-expand.c (build_omp_regions_1): Likewise.
10267 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
10268 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
10269 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
10270 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
10271 * value-prof.c: Likewise.
10272 * var-tracking.c (val_reset): Likewise.
10273
10274 2017-04-03 Richard Biener <rguenther@suse.de>
10275
10276 PR tree-optimization/80275
10277 * fold-const.c (split_address_to_core_and_offset): Handle
10278 POINTER_PLUS_EXPR.
10279
10280 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
10281
10282 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
10283 descriptors is at least equal to that of functions.
10284
10285 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
10286
10287 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
10288
10289 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
10290
10291 PR target/80250
10292 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
10293 (mov<IMOD4:mode>): New expander.
10294 (*mov<IMOD4:mode>_internal): New insn and split pattern.
10295
10296 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
10297
10298 PR rtl-optimization/79405
10299 * fwprop.c (propagations_left): New variable.
10300 (forward_propagate_into): Decrement it.
10301 (fwprop_init): Initialize it.
10302 (fw_prop): If the variable has reached zero, stop propagating.
10303 (fwprop_addr): Ditto.
10304
10305 2017-03-31 Jakub Jelinek <jakub@redhat.com>
10306
10307 PR debug/79255
10308 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
10309 a FUNCTION_DECL, pass it as decl instead of origin to
10310 process_scope_var.
10311
10312 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
10313
10314 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
10315 string.
10316
10317 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
10318
10319 PR target/80107
10320 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
10321 TARGET_VSX_SMALL_INTEGER.
10322
10323 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10324
10325 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
10326 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
10327
10328 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
10329
10330 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
10331 extraction from odd-numbered MSA register.
10332
10333 2017-03-31 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR middle-end/80173
10336 * expmed.c (store_bit_field_1): Don't attempt to create
10337 a word subreg out of hard registers wider than word if they
10338 have HARD_REGNO_NREGS of 1 for their mode.
10339
10340 PR middle-end/80163
10341 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
10342 conversions to integer types wider than word and pointer.
10343
10344 PR debug/80025
10345 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
10346 (rtx_equal_for_cselib_p): Pass 0 to it.
10347 * cselib.c (cselib_hasher::equal): Likewise.
10348 (rtx_equal_for_cselib_1): Add depth argument. If depth
10349 is 128, don't look up VALUE locs and punt. Increment
10350 depth in recursive calls when walking VALUE locs.
10351
10352 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
10353
10354 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
10355 (make_gcov_file_name): Use the canonical path name for generating
10356 the MD5 value.
10357 (read_line): Fix handling of files with ascii null bytes.
10358
10359 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
10360
10361 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
10362 to initialise a vector register instead
10363 of using a const_int.
10364
10365 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10366
10367 PR translation/80189
10368 * gimplify.c (omp_default_clause): Use %qs instead of %s in
10369 diagnostic messages.
10370
10371 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
10372
10373 PR target/80246
10374 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
10375 (dfp_diex_<mode>): Update mode of operand 1.
10376 * doc/extend.texi (dxex, dxexq): Document change to return type.
10377 (diex, diexq): Document change to argument type.
10378
10379 2017-03-30 Martin Jambor <mjambor@suse.cz>
10380
10381 PR ipa/77333
10382 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
10383 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
10384 it reflects the signature changes performed at the callee side.
10385 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
10386 to cgraph_build_function_type_skip_args.
10387 (build_function_decl_skip_args): Adjust call to the above function.
10388
10389 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10390
10391 PR target/80206
10392 * config/i386/sse.md
10393 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
10394 register as dest whenever it is a MEM not rtx_equal_p to the
10395 corresponding dup operand, and when forcing into reg move the
10396 reg into the memory afterwards.
10397 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
10398 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
10399 for the force_reg mode.
10400 (avx512vl_vextractf128<mode>): Use register as dest either
10401 always when a MEM, or when it is a MEM not rtx_equal_p to the
10402 corresponding dup operand, or even not when it is a CONST_VECTOR
10403 depending on the mode and lo vs. hi.
10404 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
10405 parens.
10406 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
10407 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
10408 Likewise. Require that operands[2] is even.
10409 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
10410 Remove extraneous parens. Require that operands[2] is a multiple
10411 of 4.
10412 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
10413 operands[0] is a MEM if <mask_applied>, the predicates/constraints
10414 disallow memory then.
10415
10416 2017-03-30 Richard Biener <rguenther@suse.de>
10417
10418 PR tree-optimization/77498
10419 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
10420 to non-constants over backedges.
10421
10422 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
10423
10424 PR rtl-optimization/80233
10425 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
10426 as last_combined_insn. Do not test for BARRIER_P separately.
10427
10428 2017-03-29 Andreas Schwab <schwab@suse.de>
10429
10430 PR ada/80146
10431 * calls.c (prepare_call_address): Convert funexp to Pmode before
10432 copying to temp reg.
10433
10434 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10435
10436 PR tree-optimization/80158
10437 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
10438 Handle possible future case of more than one alternate
10439 interpretation.
10440 (replace_rhs_if_not_dup): Likewise.
10441 (replace_one_candidate): Likewise.
10442
10443 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
10444
10445 PR rtl-optimization/80193
10446 * ira.c (ira): Do not check allocation for LRA.
10447
10448 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
10449
10450 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
10451 (nvptx_output_simt_exit): Declare.
10452 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
10453 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
10454 (init_softstack_frame): Move initialization of crtl->is_leaf to...
10455 (nvptx_declare_function_name): ...here. Emit declaration of local
10456 memory space buffer for omp_simt_enter insn.
10457 (nvptx_output_unisimt_switch): New.
10458 (nvptx_output_softstack_switch): New.
10459 (nvptx_output_simt_enter): New.
10460 (nvptx_output_simt_exit): New.
10461 * config/nvptx/nvptx.h (struct machine_function): New fields
10462 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
10463 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
10464 (UNSPECV_SIMT_EXIT): Ditto.
10465 (omp_simt_enter_insn): New insn.
10466 (omp_simt_enter): New expansion.
10467 (omp_simt_exit): New insn.
10468 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
10469
10470 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
10471 (expand_GOMP_SIMT_ENTER_ALLOC): New.
10472 (expand_GOMP_SIMT_EXIT): New.
10473 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
10474 (GOMP_SIMT_ENTER_ALLOC): Ditto.
10475 (GOMP_SIMT_EXIT): Ditto.
10476 * target-insns.def (omp_simt_enter): New insn.
10477 (omp_simt_exit): Ditto.
10478 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
10479 simt_dlist.
10480 (lower_rec_simd_input_clauses): Implement SIMT privatization.
10481 (lower_rec_input_clauses): Likewise.
10482 (lower_lastprivate_clauses): Handle SIMT privatization.
10483
10484 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
10485 (ompdevlow_adjust_simt_enter): New.
10486 (find_simtpriv_var_op): New.
10487 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
10488 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
10489
10490 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
10491 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
10492 (copy_decl_for_dup_finish): Ditto.
10493
10494 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
10495
10496 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
10497
10498 PR target/53383
10499 * config/i386/i386.c (ix86_option_override_internal): Always
10500 allow -mpreferred-stack-boundary=3 for 64-bit targets.
10501
10502 2017-03-28 Bin Cheng <bin.cheng@arm.com>
10503
10504 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
10505
10506 2017-03-28 Bin Cheng <bin.cheng@arm.com>
10507
10508 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
10509 mark new edge's irreducible flag accordign to it.
10510 (vect_do_peeling): Check loop preheader edge's irreducible flag
10511 and pass it to function slpeel_add_loop_guard.
10512
10513 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
10514
10515 PR tree-optimization/80218
10516 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10517 Update block frequencies and counts.
10518
10519 2017-03-28 Richard Biener <rguenther@suse.de>
10520
10521 PR tree-optimization/78644
10522 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
10523 of a simplification result we may not use it at all.
10524
10525 2017-03-28 Richard Biener <rguenther@suse.de>
10526
10527 PR ipa/80205
10528 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
10529 without arguments, generate default definition of a SSA name.
10530
10531 2017-03-28 Richard Biener <rguenther@suse.de>
10532
10533 PR middle-end/80222
10534 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
10535 TYPE_REF_CAN_ALIAS_ALL references.
10536 * fold-const.c (fold_indirect_ref_1): Likewise.
10537
10538 2017-03-28 Martin Liska <mliska@suse.cz>
10539
10540 PR ipa/80104
10541 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
10542 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
10543
10544 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
10545 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10546
10547 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
10548 (EXTRA_SPECS): Define.
10549 (SUBTARGET_EXTRA_SPECS): Likewise.
10550 (SUBTARGET_CPP_SPEC): Likewise.
10551 * config/arc/elf.h (EXTRA_SPECS): Renamed to
10552 SUBTARGET_EXTRA_SPECS.
10553 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
10554
10555 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
10556
10557 * config/arc/simdext.md (vst64_insn): Update pattern.
10558 (vld32wh_insn): Likewise.
10559 (vld32wl_insn): Likewise.
10560 (vld64_insn): Likewise.
10561 (vld32_insn): Likewise.
10562
10563 2017-03-28 Marek Polacek <polacek@redhat.com>
10564
10565 PR sanitizer/80067
10566 * fold-const.c (fold_comparison): Use protected_set_expr_location
10567 instead of SET_EXPR_LOCATION.
10568
10569 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10570
10571 * tree.c (add_expr): Avoid name lookup warning.
10572
10573 2017-03-27 Jeff Law <law@redhat.com>
10574
10575 PR tree-optimization/80216
10576 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
10577 function name. Limit recursion depth.
10578 (record_temporary_equivalences): Corresponding changes.
10579
10580 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
10581
10582 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
10583 covered first.
10584
10585 2017-03-27 Jakub Jelinek <jakub@redhat.com>
10586
10587 PR target/80102
10588 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
10589 notes.
10590 * cfgcleanup.c (reg_note_cfa_p): New array.
10591 (insns_have_identical_cfa_notes): New function.
10592 (old_insns_match_p): Don't cross-jump in between /f
10593 and non-/f instructions. If both i1 and i2 are frame related,
10594 verify all CFA notes, their order and content.
10595
10596 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10597
10598 PR target/78543
10599 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
10600 HImode and SImode with zero extend to DImode to one insn.
10601 (bswap<mode>2_extenddi): Likewise.
10602 (bswapsi2_extenddi): Likewise.
10603 (bswaphi2_extendsi): Likewise.
10604 (bswaphi2): Combine bswap HImode and SImode into one insn.
10605 Separate memory insns from swapping register.
10606 (bswapsi2): Likewise.
10607 (bswap<mode>2): Likewise.
10608 (bswaphi2_internal): Delete, no longer used.
10609 (bswapsi2_internal): Likewise.
10610 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
10611 store, and gpr<-gpr swap insns.
10612 (bswap<mode>2_store): Likewise.
10613 (bswaphi2_reg): Register only splitter, combine with the splitter.
10614 (bswaphi2 splitter): Likewise.
10615 (bswapsi2_reg): Likewise.
10616 (bswapsi2 splitter): Likewise.
10617 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
10618 the insns into load, store, and register/register insns.
10619 (bswapdi2_ldbrx): Likewise.
10620 (bswapdi2_load): Likewise.
10621 (bswapdi2_store): Likewise.
10622 (bswapdi2_reg): Likewise.
10623
10624 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
10625
10626 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
10627 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
10628
10629 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
10630
10631 PR target/80103
10632 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
10633 add comments.
10634 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10635 special handling for target option conflicts between dform
10636 options (-mpower9-dform, -mpower9-dform-vector,
10637 -mpower9-dform-scalar) and -mno-direct-move.
10638
10639 2017-03-27 Richard Biener <rguenther@suse.de>
10640
10641 PR tree-optimization/80181
10642 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
10643
10644 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10645
10646 * config/arc/predicates.md (move_double_src_operand): Replace the
10647 call to move_double_src_operand with a call to address_operand.
10648
10649 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10650
10651 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
10652 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
10653 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
10654
10655 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10656
10657 * config/arc/predicates.md (long_immediate_loadstore_operand):
10658 Consider scaled addresses cases.
10659
10660 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10661
10662 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
10663 restored when in interrupt.
10664 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
10665 doesn't have delay slot.
10666
10667 2017-03-27 Richard Biener <rguenther@suse.de>
10668
10669 PR ipa/79776
10670 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
10671 inlined thunk clones.
10672
10673 2017-03-27 Jakub Jelinek <jakub@redhat.com>
10674
10675 PR sanitizer/80168
10676 * asan.c (instrument_derefs): Copy over last operand from
10677 original COMPONENT_REF to the new COMPONENT_REF with
10678 DECL_BIT_FIELD_REPRESENTATIVE.
10679 * ubsan.c (instrument_object_size): Likewise.
10680
10681 2017-03-27 Richard Biener <rguenther@suse.de>
10682
10683 PR tree-optimization/80170
10684 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
10685 sure DR/SCEV didnt fold in constants we do not see when looking
10686 at the reference base alignment.
10687
10688 2017-03-27 Richard Biener <rguenther@suse.de>
10689
10690 PR middle-end/80171
10691 * gimple-fold.c (fold_ctor_reference): Properly guard against
10692 NULL return value from canonicalize_constructor_val.
10693
10694 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
10695
10696 PR target/80180
10697 * config/i386/i386.c (ix86_expand_builtin)
10698 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
10699 flags reg setting and flags reg using instructions.
10700 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
10701 clobbering instructions to zero extend op2.
10702
10703 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
10704
10705 * doc/install.texi (Configuration) <--with-aix-soname>:
10706 Update link to AIX ld.
10707
10708 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
10709
10710 PR rtl-optimization/80160
10711 PR rtl-optimization/80159
10712 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
10713 reg_alternate_class into account.
10714
10715 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
10716
10717 PR target/80148
10718 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
10719 to consider in curr_insn_transform.
10720
10721 2017-03-24 Jakub Jelinek <jakub@redhat.com>
10722
10723 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
10724 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
10725 and emit_mode_inner.
10726
10727 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10728
10729 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
10730 argument to the overloaded builtin variants. Use the new flag to
10731 deprecate certain builtin variants.
10732 * config/s390/s390-builtin-types.def: Add new builtin types.
10733 * config/s390/s390-builtins.h: Support new flags field for
10734 overloaded builtins.
10735 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
10736 (s390_macro_to_expand): Enable vector float data type.
10737 (s390_cpu_cpp_builtins_internal): Indicate support of the new
10738 builtins by incrementing the __VEC__ version number.
10739 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
10740 vec_xst.
10741 (s390_resolve_overloaded_builtin): Emit error messages depending
10742 on the builtin flags.
10743 * config/s390/s390.c (s390_expand_builtin): Support additional
10744 flags argument. Change error message to match the messages
10745 emitted in s390-c.c.
10746 * config/s390/s390.md: New UNSPEC_* constants.
10747 (op_type): Add new instruction types.
10748 * config/s390/vecintrin.h: Add new builtins and test data class
10749 constants.
10750 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
10751 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
10752 (VEC_INEXACT, VEC_NOINEXACT): New constants.
10753 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
10754 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
10755 ("vec_mergel<mode>"): V_HW -> VEC_HW.
10756
10757 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
10758 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
10759 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
10760 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
10761
10762 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
10763 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
10764 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
10765 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
10766
10767 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
10768 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
10769 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
10770 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
10771 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
10772 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
10773 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
10774
10775 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
10776 ("vec_scatter_element<V_HW_4:mode>_DI")
10777 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
10778 ("vec_fpint<mode>", "vflls")
10779 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
10780 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
10781 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
10782 ("*vec_cmphe<mode>_cc"): ... these.
10783
10784 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
10785 mode constant instead of magic value.
10786
10787 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10788
10789 * config/s390/s390.c (s390_expand_vec_compare): Support other
10790 vector floating point modes than just V2DF.
10791 (s390_expand_vcond): Likewise.
10792 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
10793 (s390_cannot_change_mode_class): Prevent mode changes between TF
10794 and V1TF in vector registers.
10795 * config/s390/s390.md (DF, SF): New mode attributes.
10796 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
10797 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
10798 SFmode support for VRs.
10799 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
10800 vector fp modes.
10801 (VFT, VF_HW): New mode iterators.
10802 (vw, sdx): New mode attributes.
10803 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
10804 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
10805 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
10806 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
10807 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
10808 also the new vector floating point modes. Renaming to ...
10809
10810 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
10811 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
10812 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
10813 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
10814 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
10815 ("vec_unordered<mode>"): ... these.
10816
10817 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
10818 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
10819 ("*vec_extendv2df"): New insn definitions.
10820
10821 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10822
10823 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
10824 ("mulditi3_2", "*muldi3_sign"): New patterns.
10825 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
10826 rename the pattern definition.
10827
10828 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10829
10830 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
10831 expander.
10832 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
10833
10834 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10835
10836 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
10837 instruction if possible.
10838 * config/s390/vector.md (vec_halfnumelts): New mode
10839 attribute.
10840 ("*vec_vllezlf<mode>"): New pattern.
10841
10842 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10843
10844 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
10845 ("popcountv4si2", "popcountv2di2"): Rename to ...
10846 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
10847 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
10848 condition.
10849 ("popcount<mode>2_vxe"): New pattern.
10850
10851 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10852
10853 * common/config/s390/s390-common.c (processor_flags_table): Add
10854 arch12.
10855 * config.gcc: Add arch12.
10856 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10857 Default to arch12 for unknown CPU model numbers.
10858 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
10859 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
10860 PROCESSOR_max sanity check.
10861 * config/s390/s390-opts.h (enum processor_type): Add
10862 PROCESSOR_ARCH12.
10863 * config/s390/s390.c (processor_table): Add arch12.
10864 (s390_expand_builtin): Add check for B_VXE flag.
10865 (s390_issue_rate): Add PROCESSOR_ARCH12.
10866 (s390_get_sched_attrmask): Likewise.
10867 (s390_get_unit_mask): Likewise.
10868 (s390_sched_score): Enable z13 scheduling for arch12.
10869 (s390_sched_reorder): Likewise.
10870 (s390_sched_variable_issue): Likewise.
10871 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
10872 PF_VXE.
10873 (s390_tune_attr): Use z13 scheduling also for arch12.
10874 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
10875 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
10876 (TARGET_VXE_P): New macros.
10877 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
10878 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
10879 * config/s390/s390.opt: Add arch12 as processor_type.
10880
10881 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10882
10883 * config/s390/s390.md
10884 ("fixuns_truncdddi2", "fixuns_trunctddi2")
10885 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
10886 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
10887
10888 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
10889 Rename expanders to ...
10890
10891 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
10892 ("fixuns_truncdddi2_emu"): ... these.
10893
10894 ("fixuns_trunc<mode>si2_emu"): New expander.
10895
10896 ("*fixuns_truncdfdi2_z13"): Rename to ...
10897 ("*fixuns_truncdfdi2_vx"): ... this.
10898
10899 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10900
10901 * config/s390/2964.md: Remove the single element vector compare
10902 instructions which are no longer used.
10903 * config/s390/s390.c (s390_select_ccmode): Remove handling of
10904 vector CCmodes.
10905 (s390_canonicalize_comparison): Remove handling of DFmode
10906 compares.
10907 (s390_expand_vec_compare_scalar): Remove function.
10908 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
10909 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
10910 pattern.
10911 ("*cmp<mode>_ccs"): Add wfcdb instruction.
10912
10913 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10914
10915 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
10916 FP zero.
10917 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
10918 will anyway by matched by mov<mode>_64dfp.
10919
10920 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10921
10922 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
10923 vlef/vstef. Add missing operand to vleif.
10924
10925 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10926
10927 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
10928 pair for all vector types with 64 bit elements.
10929 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
10930 * config/s390/vector.md (V_HW_64): ... here.
10931 (V_128_NOSINGLE): New mode iterator.
10932 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
10933 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
10934 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
10935 ("*vec_load_pairv2di"): Change to ...
10936 ("*vec_load_pair<mode>"): ... this one.
10937
10938 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10939
10940 * config/s390/constraints.md: Add comments.
10941 (jKK): Reject element sizes > 8 bytes.
10942 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
10943 s_operands.
10944 * config/s390/s390.md: Add the s_operand checks formerly in
10945 s390_split_ok_p to various splitters where they are still
10946 required.
10947 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
10948 for 128 bit vectors. Plus two splitters.
10949
10950 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10951
10952 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
10953 the file.
10954
10955 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10956
10957 PR target/79893
10958 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
10959 error if the boundary argument is not constant.
10960
10961 2017-03-24 Jakub Jelinek <jakub@redhat.com>
10962
10963 PR rtl-optimization/80112
10964 * loop-doloop.c (doloop_condition_get): Don't check condition
10965 if cmp isn't SET with IF_THEN_ELSE src.
10966
10967 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10968
10969 PR tree-optimization/80158
10970 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
10971 replacing a candidate statement, also replace it for the
10972 candidate's alternate interpretation.
10973 (replace_rhs_if_not_dup): Likewise.
10974 (replace_one_candidate): Likewise.
10975
10976 2017-03-24 Richard Biener <rguenther@suse.de>
10977
10978 PR tree-optimization/80167
10979 * graphite-isl-ast-to-gimple.c
10980 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
10981 properly.
10982 (translate_isl_ast_to_gimple::get_rename): Likewise.
10983
10984 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
10985
10986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
10987 handling of certain combinations of target options, including the
10988 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
10989 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
10990
10991 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10992
10993 PR target/71436
10994 * config/arm/arm.md (*load_multiple): Add reload_completed to
10995 matching condition.
10996
10997 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10998 Richard Biener <rguenth@suse.de>
10999
11000 PR tree-optimization/79908
11001 PR tree-optimization/80136
11002 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
11003 been cast away, gimplify_and_add suffices.
11004
11005 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
11006
11007 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
11008
11009 2017-03-23 Richard Biener <rguenther@suse.de>
11010
11011 PR tree-optimization/80032
11012 * gimplify.c (gimple_push_cleanup): Forced unconditional
11013 cleanups still have to go to the conditional_cleanups
11014 sequence.
11015
11016 2017-03-22 Jakub Jelinek <jakub@redhat.com>
11017
11018 PR tree-optimization/80072
11019 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
11020 to unsigned int.
11021 (next_operand_entry_id): Change type to unsigned int.
11022 (sort_by_operand_rank): Make sure to return the right return value
11023 even if unsigned fields are bigger than INT_MAX.
11024 (struct oecount): Change cnt and id type to unsigned int.
11025 (oecount_hasher::equal): Formatting fix.
11026 (oecount_cmp): Make sure to return the right return value
11027 even if unsigned fields are bigger than INT_MAX.
11028 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
11029
11030 PR c++/80129
11031 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
11032 TREE_READONLY on result if writing it more than once.
11033
11034 PR sanitizer/80110
11035 * doc/invoke.texi (-fsanitize=thread): Document that with
11036 -fnon-call-exceptions atomics are not able to throw
11037 exceptions.
11038
11039 PR sanitizer/80110
11040 * tsan.c: Include tree-eh.h.
11041 (instrument_builtin_call): Call maybe_clean_eh_stmt or
11042 maybe_clean_or_replace_eh_stmt where needed.
11043 (instrument_memory_accesses): Add cfg_changed argument.
11044 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
11045 if it returned true.
11046 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
11047
11048 PR rtl-optimization/63191
11049 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
11050 wrapper function, moved the whole old content into ...
11051 (ix86_delegitimize_address_1): ... this. New inline function.
11052 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
11053 true as last argument instead of ix86_delegitimize_address.
11054
11055 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
11056
11057 * config/aarch64/aarch64.c (generic_branch_cost): Copy
11058 cortexa57_branch_cost.
11059
11060 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
11061
11062 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
11063
11064 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11065
11066 PR target/80123
11067 * doc/md.texi (Constraints): Document wA constraint.
11068 * config/rs6000/constraints.md (wA): New.
11069 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
11070 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
11071 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
11072 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
11073
11074 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11075
11076 PR c++/80029
11077 * gimplify.c (is_oacc_declared): New function.
11078 (oacc_default_clause): Use it to set default flags for acc declared
11079 variables inside parallel regions.
11080 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
11081 declared variables.
11082 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
11083 declare attribute to any decl as necessary.
11084
11085 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
11086
11087 PR target/80082
11088 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
11089 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
11090 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
11091 (arm_arch_lpae): This.
11092 * config/arm/arm.c (arm_arch7ve): Rename into ...
11093 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
11094 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
11095 arm_arch_lpae.
11096
11097 2017-03-22 Martin Liska <mliska@suse.cz>
11098
11099 PR target/79906
11100 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
11101 error message instead of an ICE.
11102
11103 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11104
11105 * doc/extend.texi (6.11 Additional Floating Types): Revise.
11106
11107 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11108
11109 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
11110 comments.
11111 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11112 comments.
11113
11114 2017-03-21 Martin Sebor <msebor@redhat.com>
11115
11116 * doc/extend.texi: Use "cannot" instead of "can't."
11117 * doc/hostconfig.texi: Same.
11118 * doc/install.texi: Same.
11119 * doc/invoke.texi: Same.
11120 * doc/loop.texi: Same.
11121 * doc/md.texi: Same.
11122 * doc/objc.texi: Same.
11123 * doc/rtl.texi: Same.
11124 * doc/tm.texi: Same.
11125 * doc/tm.texi.in: Same.
11126 * doc/trouble.texi: Same.
11127
11128 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
11129
11130 PR debug/63238
11131 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
11132 (collect_checksum_attributes): Set it.
11133 (die_checksum_ordered): Use it.
11134
11135 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11136
11137 PR tree-optimization/79908
11138 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
11139 change: For a VA_ARG whose LHS has been cast away, use
11140 force_gimple_operand to construct the side effects.
11141
11142 2017-03-21 David Malcolm <dmalcolm@redhat.com>
11143
11144 PR translation/80001
11145 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
11146 more amenable to translation.
11147 (oacc_loop_auto_partitions): Likewise.
11148
11149 2017-03-21 Marek Polacek <polacek@redhat.com>
11150 Martin Sebor <msebor@redhat.com>
11151
11152 PR tree-optimization/80109
11153 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
11154 on INTEGRAL_TYPE_P.
11155
11156 2017-03-21 Jakub Jelinek <jakub@redhat.com>
11157 Segher Boessenkool <segher@kernel.crashing.org>
11158
11159 PR target/80125
11160 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
11161 check reg_used_between_p between insn and one of succ or succ2
11162 depending on if succ is artificial insn not inserted into insn
11163 stream.
11164
11165 2017-03-21 Martin Liska <mliska@suse.cz>
11166
11167 PR gcov-profile/80081
11168 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
11169 * doc/gcc.texi: Include gcov-dump stuff.
11170 * doc/gcov-dump.texi: New file.
11171
11172 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
11173
11174 PR rtl-optimization/79150
11175 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
11176 conditional jump, if the jump is the last insn of the loop.
11177
11178 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11179 Richard Biener <rguenth@suse.de>
11180
11181 PR tree-optimization/79908
11182 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
11183 been cast away, use force_gimple_operand to construct the side
11184 effects.
11185
11186 2017-03-21 Martin Liska <mliska@suse.cz>
11187
11188 PR libfortran/79956
11189 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
11190 to NULL.
11191
11192 2017-03-21 Brad Spengler <spender@grsecurity.net>
11193
11194 PR plugins/80094
11195 * plugin.c (htab_hash_plugin): New function.
11196 (add_new_plugin): Use it and adjust.
11197 (parse_plugin_arg_opt): Adjust.
11198 (init_one_plugin): Likewise.
11199
11200 2017-03-21 Richard Biener <rguenther@suse.de>
11201
11202 PR tree-optimization/80032
11203 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
11204 if set force the cleanup to happen unconditionally.
11205 (gimplify_target_expr): Push inserted clobbers with force_uncond
11206 to avoid them being removed by control-dependent DCE.
11207
11208 2017-03-21 Richard Biener <rguenther@suse.de>
11209
11210 PR tree-optimization/80122
11211 * tree-inline.c (copy_bb): Do not expans va-arg packs or
11212 va_arg_pack_len when the inlined call stmt requires pack
11213 expansion itself.
11214 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
11215
11216 2017-03-21 Jakub Jelinek <jakub@redhat.com>
11217
11218 PR sanitizer/78158
11219 * tsan.c (instrument_builtin_call): If the memory model argument
11220 is not a constant, assume it is valid.
11221
11222 PR c/67338
11223 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
11224 avoid UB.
11225
11226 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
11227
11228 PR rtl-optimization/79910
11229 * combine.c (can_combine_p): Do not allow combining an I0 or I1
11230 if its dest is used by an insn before I2 (other than the combined
11231 insns themselves, which are properly handled already).
11232
11233 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
11234
11235 Revert:
11236 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
11237
11238 * combine.c (record_used_regs): New static function.
11239 (try_combine): Handle situations where there is an additional
11240 instruction between I2 and I3 which needs to have a LOG_LINK
11241 updated.
11242
11243 Revert:
11244 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
11245
11246 * combine.c (try_combine): Delete redundant i1 test. Call
11247 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
11248
11249 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11250
11251 PR target/80083
11252 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
11253 alternatives 13/14.
11254
11255 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11256
11257 PR tree-optimization/80054
11258 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
11259 the optimization if a PHI or any of its arguments is not dominated
11260 by the candidate's basis. Use gphi* rather than gimple* as
11261 appropriate.
11262 (replace_profitable_candidates): Clean up a gimple* variable that
11263 should be a gphi* variable.
11264
11265 2017-03-20 Martin Sebor <msebor@redhat.com>
11266
11267 PR c++/52477
11268 * doc/extend.texi (attribute constructor): Document present limitation.
11269
11270 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
11271
11272 PR target/79963
11273 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
11274 __POWER9_VECTOR__ #ifdef control, change template definition to
11275 use Power9-specific built-in function.
11276 (vec_any_eq): Likewise.
11277 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
11278 to control outcomes from this test.
11279 (vector_ae_<mode>p): For VEC_F modes, likewise.
11280
11281 2017-03-20 Ian Lance Taylor <iant@google.com>
11282
11283 * config/i386/i386.c (ix86_function_regparm): Save an extra
11284 register for -fsplit-stack with DECL_STATIC_CHAIN.
11285
11286 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
11287
11288 PR target/79912
11289 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
11290 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
11291
11292 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
11293
11294 * config/riscv/riscv.c (riscv_print_operand): Use "fence
11295 iorw,ow".
11296 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
11297 iorw,iorw".
11298
11299 2017-03-20 Marek Polacek <polacek@redhat.com>
11300
11301 PR sanitizer/80063
11302 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
11303
11304 2017-03-20 Richard Biener <rguenther@suse.de>
11305
11306 PR tree-optimization/80113
11307 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
11308 allocate extra SSA name for PHI def.
11309 (add_close_phis_to_outer_loops): Likewise.
11310 (add_close_phis_to_merge_points): Likewise.
11311 (copy_loop_close_phi_args): Likewise.
11312 (copy_cond_phi_nodes): Likewise.
11313
11314 2017-03-20 Martin Liska <mliska@suse.cz>
11315
11316 PR middle-end/79753
11317 * tree-chkp.c (chkp_build_returned_bound): Do not build
11318 returned bounds for a LHS that's not a BOUNDED_P type.
11319
11320 2017-03-20 Martin Liska <mliska@suse.cz>
11321
11322 PR target/79769
11323 PR target/79770
11324 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
11325 COMPLEX_CST and VECTOR_CST.
11326
11327 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11328
11329 PR target/78857
11330 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
11331 target operand. A new splitter adds the clobber statement in case
11332 the target operand is dead anyway.
11333
11334 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
11335
11336 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
11337 to age-old versions of binutils and glibc.
11338
11339 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
11340
11341 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
11342
11343 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
11344
11345 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
11346
11347 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
11348
11349 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
11350 requirement for binutils 2.13.
11351
11352 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
11353
11354 * combine.c (try_combine): Delete redundant i1 test. Call
11355 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
11356
11357 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
11358
11359 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
11360 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
11361 contents.
11362 <riscv64-*-elf>: Re-arrange section
11363 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
11364 <riscv32-*-linux>: Likewise.
11365 <riscv64-*-elf>: Likewise
11366 <riscv64-*-linux>: Likewise.
11367
11368 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
11369
11370 PR target/80052
11371 * aarch64.opt(verbose-cost-dump): Fix typo.
11372
11373 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
11374
11375 PR target/79951
11376 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
11377 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
11378
11379 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
11380
11381 * reload.c (find_reloads): When reloading a nonoffsettable address,
11382 use RELOAD_OTHER for it and its address reloads.
11383
11384 PR rtl-optimization/79910
11385 * combine.c (record_used_regs): New static function.
11386 (try_combine): Handle situations where there is an additional
11387 instruction between I2 and I3 which needs to have a LOG_LINK
11388 updated.
11389
11390 2017-03-17 Jeff Law <law@redhat.com>
11391
11392 PR tree-optimization/71437
11393 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
11394 conditional in the hash table first.
11395 (vrp_dom_walker::before_dom_children): Extract condition from
11396 ASSERT_EXPR. Record condition, its inverion and any implied
11397 conditions as well.
11398
11399 2017-03-17 Marek Polacek <polacek@redhat.com>
11400 Markus Trippelsdorf <markus@trippelsdorf.de>
11401
11402 PR tree-optimization/80079
11403 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
11404 m_stores_head.
11405
11406 2017-03-17 Richard Biener <rguenther@suse.de>
11407
11408 PR middle-end/80075
11409 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
11410 Properly verify the LHS before the RHS possibly claims to be
11411 handled.
11412 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
11413 do not throw.
11414
11415 2017-03-17 Martin Jambor <mjambor@suse.cz>
11416
11417 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
11418 (List of -O2 options): Likewise.
11419 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
11420 (-fipa-vrp) New.
11421
11422 2017-03-17 Tom de Vries <tom@codesourcery.com>
11423
11424 * gcov-dump.c (print_usage): Print bug_report_url.
11425
11426 2017-03-17 Richard Biener <rguenther@suse.de>
11427
11428 PR middle-end/80050
11429 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
11430 (parser::peek): Likewise.
11431
11432 2017-03-17 Richard Biener <rguenther@suse.de>
11433
11434 PR tree-optimization/80048
11435 * sese.c (free_sese_info): Properly release rename_map and
11436 copied_bb_map elements.
11437
11438 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
11439
11440 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
11441 Add linked-list forward and backlinks. Insert on
11442 construction, remove on destruction.
11443 (class pass_store_merging): Add m_stores_head field.
11444 (pass_store_merging::terminate_and_process_all_chains):
11445 Iterate over m_stores_head list.
11446 (pass_store_merging::terminate_all_aliasing_chains):
11447 Likewise.
11448 (pass_store_merging::execute): Check for debug stmts first.
11449 Push new chains onto the m_stores_head stack.
11450
11451 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11452
11453 PR target/71294
11454 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
11455 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
11456 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
11457
11458 2017-03-16 Jeff Law <law@redhat.com>
11459
11460 PR tree-optimization/71437
11461 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
11462 member function. Implementation moved into after_dom_children
11463 member function and into the threader's thread_outgoing_edges
11464 function.
11465 (dom_opt_dom_walker::after_dom_children): Simplify by moving
11466 some code into new thread_outgoing_edges.
11467 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
11468 definition. Simplify marker handling (do it here). Assume we always
11469 have the available expression and the const/copies tables.
11470 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
11471 and tree-vrp.c
11472 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
11473 * tree-vrp.c (equiv_stack): No longer file scoped.
11474 (vrp_dom_walker): New class.
11475 (vrp_dom_walker::before_dom_children): New member function.
11476 (vrp_dom_walker::after_dom_children): Likewise.
11477 (identify_jump_threads): Setup domwalker. Use it rather than
11478 walking edges in a random order by hand. Simplify setup/finalization.
11479 (finalize_jump_threads): Remove.
11480 (vrp_finalize): Do not call identify_jump_threads here.
11481 (execute_vrp): Do it here instead and call thread_through_all_blocks
11482 here too.
11483
11484 PR tree-optimization/71437
11485 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
11486 callers changed.
11487 (simplify_stmt_for_jump_threading): Add basic_block argument. All
11488 callers changed.
11489 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
11490 (dom_opt_dom_walker::thread_across_edge): Remove
11491 handle_dominating_asserts argument. All callers changed.
11492 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
11493 changes. Remove calls to lhs_of_dominating_assert. Other
11494 uses of handle_dominating_asserts turn into unconditional code
11495 (simplify_control_stmt_condition_1): Likewise.
11496 (simplify_control_stmt_condition): Likewise.
11497 (thread_through_normal_block, thread_across_edge): Likewise.
11498 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
11499 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
11500 object if it is not an SSA_NAME.
11501 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
11502 before calling into the VRP specific simplifiers.
11503 (identify_jump_threads): Remove handle_dominating_asserts
11504 argument.
11505
11506 2017-03-16 Jakub Jelinek <jakub@redhat.com>
11507
11508 PR fortran/79886
11509 * tree-diagnostic.c (default_tree_printer): No longer static.
11510 * tree-diagnostic.h (default_tree_printer): New prototype.
11511
11512 2017-03-16 Tamar Christina <tamar.christina@arm.com>
11513
11514 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
11515 Change ins into fmov.
11516
11517 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11518
11519 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
11520 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
11521 Use h_con constraint for operand 1.
11522 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
11523 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
11524
11525 2017-03-15 Jeff Law <law@redhat.com>
11526
11527 PR tree-optimization/71437
11528 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
11529 (record_temporary_equivalences): Use it.
11530
11531 PR tree-optimization/71437
11532 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
11533 tree-ssa-scopedtables.
11534 (lookup_avail_expr, build_and_record_new_cond): Likewise.
11535 (record_conditions, record_cond, vuse_eq): Likewise.
11536 (record_edge_info): Adjust to API tweak of record_conditions.
11537 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
11538 (record_temporary_equivalences, optimize_stmt): Likewise.
11539 (eliminate_redundant_computations): Likewise.
11540 (record_equivalences_from_stmt): Likewise.
11541 * tree-ssa-scopedtables.c: Include options.h and params.h.
11542 (vuse_eq): New function, moved from tree-ssa-dom.c
11543 (build_and_record_new_cond): Likewise.
11544 (record_conditions): Likewise. Accept vector of conditions rather
11545 than edge_equivalence structure for first argument.
11546 for the first argument.
11547 (avail_exprs_stack::lookup_avail_expr): New member function, moved
11548 from tree-ssa-dom.c.
11549 (avail_exprs_stack::record_cond): Likewise.
11550 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
11551 from tree-ssa-dom.c.
11552 (avail_exprs_stack): Add new member functions lookup_avail_expr
11553 and record_cond.
11554 (record_conditions): Declare.
11555
11556 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
11557
11558 PR target/80017
11559 * lra-constraints.c (process_alt_operands): Increase reject for
11560 reloading an input/output operand.
11561
11562 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11563
11564 PR target/79038
11565 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
11566 insns to convert from signed/unsigned char/short to IEEE 128-bit
11567 floating point.
11568 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
11569
11570 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
11571
11572 PR target/80019
11573 * config/i386/i386.c (ix86_vector_duplicate_value): Create
11574 subreg of inner mode for values already in registers.
11575
11576 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
11577
11578 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
11579 iteration reg is used after the loop.
11580
11581 2017-03-14 Martin Sebor <msebor@redhat.com>
11582
11583 PR tree-optimization/79800
11584 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
11585 precision in negative-positive range.
11586 (format_floating): Call non-const overload with adjusted precision.
11587
11588 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11589
11590 PR target/79947
11591 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
11592 -mpowerpc-gfxopt.
11593
11594 2017-03-14 Martin Sebor <msebor@redhat.com>
11595
11596 PR middle-end/80020
11597 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
11598 * builtins.def (aligned_alloc): Use it.
11599
11600 PR c/79936
11601 * Makefile.in (GTFILES): Add calls.c.
11602 * calls.c: Include "gt-calls.h".
11603
11604 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
11605
11606 PR rtl-optimization/79728
11607 * regs.h (struct target_regs): New field
11608 x_contains_allocatable_regs_of_mode.
11609 (contains_allocatable_regs_of_mode): New macro.
11610 * reginfo.c (init_reg_sets_1): Initialize it, and change
11611 contains_reg_of_mode so it includes global regs as well.
11612 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
11613 rather than contains_regs_of_mode.
11614
11615 2017-03-14 Martin Liska <mliska@suse.cz>
11616
11617 * doc/invoke.texi: Document options that can't be combined with
11618 -fcheck-pointer-bounds.
11619
11620 2017-03-14 Martin Liska <mliska@suse.cz>
11621
11622 PR middle-end/79831
11623 * doc/invoke.texi (-Wchkp): Document the option.
11624
11625 2017-03-14 Martin Liska <mliska@suse.cz>
11626
11627 * Makefile.in: Install gcov-dump.
11628
11629 2017-03-14 Martin Liska <mliska@suse.cz>
11630
11631 * multiple_target.c (expand_target_clones): Bail out for
11632 an invalid attribute.
11633
11634 2017-03-14 Richard Biener <rguenther@suse.de>
11635
11636 * alias.c (struct alias_set_entry): Pack properly.
11637 * cfgloop.h (struct loop): Likewise.
11638 * cse.c (struct set): Likewise.
11639 * ipa-utils.c (struct searchc_env): Likewise.
11640 * loop-invariant.c (struct invariant): Likewise.
11641 * lra-remat.c (struct cand): Likewise.
11642 * recog.c (struct change_t): Likewise.
11643 * rtl.h (struct address_info): Likewise.
11644 * symbol-summary.h (function_summary): Likewise.
11645 * tree-loop-distribution.c (struct partition): Likewise.
11646 * tree-object-size.c (struct object_size_info): Likewise.
11647 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
11648 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
11649 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
11650 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
11651 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
11652 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
11653 (struct _stmt_vec_info): Likewise.
11654
11655 2017-03-14 Martin Liska <mliska@suse.cz>
11656
11657 PR target/79892
11658 * multiple_target.c (create_dispatcher_calls): Check that
11659 a target can create a function dispatcher.
11660
11661 2017-03-14 Martin Liska <mliska@suse.cz>
11662
11663 PR lto/66295
11664 * multiple_target.c (expand_target_clones): Drop local.local
11665 flag for default implementation.
11666
11667 2017-03-14 Richard Biener <rguenther@suse.de>
11668
11669 PR tree-optimization/80030
11670 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
11671
11672 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
11673
11674 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
11675 gcc_fallthrough() instead of __attribute__((fallthrough));
11676
11677 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
11678
11679 * doc/gcc.texi: Remove "up" link to (DIR).
11680 * doc/gccint.texi: Ditto.
11681
11682 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
11683
11684 * doc/install.texi (Specific) <avr>: Remove reference to
11685 binutils 2.13.
11686
11687 2017-03-13 Jeff Law <law@redhat.com>
11688
11689 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
11690 attribute rather than comments.
11691
11692 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
11693 match_scratch operand is highest.
11694
11695 2017-03-13 Martin Liska <mliska@suse.cz>
11696
11697 PR middle-end/78339
11698 * ipa-pure-const.c (warn_function_noreturn): If the declarations
11699 is a CHKP clone, use original declaration.
11700
11701 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11702
11703 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
11704 (arc_conditional_register_usage): Use a different allocation order
11705 when optimizing for size.
11706 * common/config/arc/arc-common.c (arc_option_optimization_table):
11707 Section anchors default on when optimizing for size.
11708
11709 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11710
11711 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
11712
11713 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11714
11715 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
11716 * config/arc/arc.md (cpu_facility): Add cd variant.
11717 (*movqi_insn): Add code density variant.
11718 (*movhi_insn): Likewise.
11719 (*movqi_insn): Likewise.
11720 (*addsi3_mixed): Likewise.
11721 (subsi3_insn): Likewise.
11722
11723 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11724
11725 * config/arc/arc.md (movsi_cond_exec): Update constraint.
11726
11727 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11728
11729 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
11730 expressions with MINUS and UNARY ops.
11731
11732 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11733
11734 PR target/79911
11735 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
11736 Rename to...
11737 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
11738 between vec_select and vector argument.
11739 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
11740 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
11741 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
11742 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
11743 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
11744 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
11745
11746 2017-03-13 Richard Biener <rguenther@suse.de>
11747
11748 PR other/79991
11749 * params.def (vect-max-peeling-for-alignment): Fix typo.
11750
11751 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11752
11753 * doc/install.texi (Specific) <mips-*-*>: Remove description of
11754 issue that only occurred with binutils below 2.18.
11755
11756 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11757
11758 * doc/install.texi (Specific) <cris-axis-elf>: No longer
11759 refer to binutils 2.11/2.12 minimum.
11760
11761 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11762
11763 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
11764 ftp.kernel.org and simplify binutils requirement.
11765
11766 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
11767
11768 * doc/invoke.texi (Warning Options): Fix spelling of link-time
11769 optimization.
11770 (Optimize Options): Ditto. Also remove redundancy.
11771
11772 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11773
11774 PR translation/79848
11775 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
11776 "%qs".
11777 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
11778 to G_ to avoid double translation.
11779
11780 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11781
11782 PR translation/79923
11783 * auto-profile.c (get_combined_location): Convert leading
11784 character of diagnostics to lower case and remove trailing period.
11785 (read_profile): Likewise for various diagnostics.
11786 * config/arm/arm.c (arm_option_override): Remove trailing period
11787 from various diagnostics.
11788 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
11789 (msp430_expand_delay_cycles): Likewise.
11790
11791 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11792
11793 PR target/79925
11794 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
11795 full command-line argument, rather than just "str".
11796 (aarch64_validate_march): Likewise.
11797 (aarch64_validate_mtune): Likewise.
11798
11799 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
11800
11801 PR rtl-optimization/78911
11802 * lra-assigns.c (must_not_spill_p): New function.
11803 (spill_for): Use it.
11804
11805 2017-03-10 Jakub Jelinek <jakub@redhat.com>
11806
11807 PR tree-optimization/79981
11808 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
11809 ATOMIC_COMPARE_EXCHANGE ifn result.
11810 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
11811 IFN_ATOMIC_COMPARE_EXCHANGE.
11812
11813 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11814
11815 PR driver/79875
11816 * opts.c (parse_sanitizer_options): Add missing question mark to
11817 "did you mean" message.
11818
11819 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11820
11821 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
11822 built-in.
11823 (VMULEUH_UNS): Likewise.
11824 (VMULOUB_UNS): Likewise.
11825 (VMULOUH_UNS): Likewise.
11826 * config/rs6000/rs6000.c (builtin_function_type): Remove
11827 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
11828
11829 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11830
11831 PR bootstrap/79952
11832 * read-rtl-function.c (function_reader::read_rtx_operand): Update
11833 x with result of extra_parsing_for_operand_code_0.
11834 (function_reader::extra_parsing_for_operand_code_0): Convert
11835 return type from void to rtx, returning x. When reading
11836 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
11837 larger size containing struct block_symbol.
11838
11839 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
11840
11841 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
11842 -mfloat128-hardware without -m64.
11843
11844 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
11845
11846 PR target/79941
11847 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
11848 entries to the case statement that marks unsigned arguments to
11849 overloaded functions.
11850
11851 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11852
11853 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
11854 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
11855
11856 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
11857
11858 PR target/79907
11859 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
11860 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
11861
11862 2017-03-10 Martin Liska <mliska@suse.cz>
11863
11864 PR target/65705
11865 PR target/69804
11866 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
11867 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
11868 FIELD != NULL.
11869
11870 2017-03-10 Olivier Hainque <hainque@adacore.com>
11871
11872 * tree-switch-conversion (array_value_type): Start by resetting
11873 candidate type to it's main variant.
11874
11875 2017-03-10 Jakub Jelinek <jakub@redhat.com>
11876
11877 PR rtl-optimization/79909
11878 * combine.c (try_combine): Use simplify_replace_rtx on individual
11879 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
11880 of the whole CALL_INSN_FUNCTION_USAGE.
11881
11882 PR tree-optimization/79972
11883 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
11884 get_range_info on SSA_NAMEs. Formatting fixes.
11885
11886 2017-03-10 Richard Biener <rguenther@suse.de>
11887 Jakub Jelinek <jakub@redhat.com>
11888
11889 PR tree-optimization/77975
11890 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
11891 edge to be constant.
11892 (get_val_for): For constant x return it. Formatting fix.
11893 (loop_niter_by_eval): Avoid pointless looping if the next iteration
11894 would use the same bases as the current one.
11895
11896 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11897
11898 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
11899 instead of vec_select for V1TImode.
11900 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
11901 longer needed.
11902 (VSX_LE_128): Add V1TI to this mode iterator.
11903 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
11904 (*vsx_le_perm_store_<mode>): Likewise.
11905 (pre-reload splitter for VSX stores): Likewise.
11906 (post-reload splitter for VSX stores): Likewise.
11907 (*vsx_xxpermdi2_le_<mode>): Likewise.
11908 (*vsx_lxvd2x2_le_<mode>): Likewise.
11909 (*vsx_stxvd2x2_le_<mode>): Likewise.
11910
11911 2017-03-09 Michael Eager <eager@eagercon.com>
11912
11913 Correct failures with --enable-checking=yes,rtl.
11914
11915 * config/microblaze/microblaze.c (microblaze_expand_shift):
11916 Replace GET_CODE test with CONST_INT_P and INTVAL test with
11917 test for const0_rtx.
11918 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
11919 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
11920
11921 2017-03-09 Richard Biener <rguenther@suse.de>
11922
11923 PR tree-optimization/79977
11924 * graphite-scop-detection.c (scop_detection::merge_sese):
11925 Handle the case of extra exits to blocks dominating the entry.
11926
11927 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
11928
11929 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
11930 Document rdynamic.
11931
11932 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
11933
11934 PR rtl-optimization/79949
11935 * lra-constraints.c (process_alt_operands): Check memory when
11936 trying to predict a cycle. Print about the overall increase.
11937
11938 2017-03-09 Richard Biener <rguenther@suse.de>
11939
11940 PR middle-end/79971
11941 * gimple-expr.c (useless_type_conversion_p): Preserve
11942 TYPE_SATURATING for fixed-point types.
11943
11944 2017-03-09 Richard Biener <rguenther@suse.de>
11945
11946 PR ipa/79970
11947 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
11948 alignment of BLKmode params.
11949
11950 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11951
11952 PR target/79913
11953 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
11954 (VALL_NO_V2Q): Likewise.
11955 (VDQF_DF): Delete.
11956 * config/aarch64/aarch64-simd.md
11957 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
11958 iterator.
11959 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
11960 VALL_NO_V2Q mode iterator.
11961 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
11962
11963 2017-03-09 Martin Liska <mliska@suse.cz>
11964
11965 PR tree-optimization/79631
11966 * tree-chkp-opt.c (chkp_is_constant_addr): Call
11967 tree_int_cst_sign_bit just for INTEGER constants.
11968
11969 2017-03-09 Martin Liska <mliska@suse.cz>
11970
11971 PR target/65705
11972 PR target/69804
11973 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
11974 sanitizers.
11975
11976 2017-03-09 Marek Polacek <polacek@redhat.com>
11977
11978 PR c++/79672
11979 * tree.c (inchash::add_expr): Handle TREE_VEC.
11980
11981 2017-03-09 Martin Liska <mliska@suse.cz>
11982
11983 PR ipa/79764
11984 (chkp_narrow_size_and_offset): New function.
11985 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
11986 (void chkp_parse_bit_field_ref): New function.
11987 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
11988 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
11989
11990 2017-03-09 Martin Liska <mliska@suse.cz>
11991
11992 PR ipa/79761
11993 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
11994 (chkp_find_bounds_1): Remove gcc_unreachable.
11995
11996 2017-03-09 Jakub Jelinek <jakub@redhat.com>
11997
11998 PR sanitizer/79944
11999 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
12000 BUILT_IN_SYNC*, determine the access type from the size suffix and
12001 always build a MEM_REF with that type. Handle forgotten
12002 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
12003
12004 PR target/79932
12005 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
12006 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
12007 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
12008 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
12009 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
12010 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
12011 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
12012 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
12013 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
12014 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
12015 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
12016 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
12017 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
12018 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
12019 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
12020 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
12021 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
12022 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
12023 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
12024 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
12025 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
12026 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
12027 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
12028 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
12029 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
12030 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
12031 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
12032 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
12033 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
12034 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
12035 definitions outside of __OPTIMIZE__ guarded section.
12036
12037 PR target/79932
12038 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
12039 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
12040 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
12041 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
12042 guarded section.
12043
12044 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12045
12046 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
12047 ("vfenez<mode>"): Add missing constraints.
12048
12049 2017-03-08 Martin Sebor <msebor@redhat.com>
12050
12051 PR target/79928
12052 * config/nds32/nds32.c (nds32_option_override):
12053 Fix misspelled diagnostic.
12054
12055 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12056
12057 PR c/79940
12058 * gimplify.c (gimplify_omp_for): Replace index var in outer
12059 taskloop statement with an artificial variable and add
12060 OMP_CLAUSE_PRIVATE clause for it.
12061
12062 2017-03-08 Richard Biener <rguenther@suse.de>
12063
12064 PR tree-optimization/79955
12065 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
12066 for accesses that are completely outside of the variable.
12067
12068 2017-03-08 Andrew Haley <aph@redhat.com>
12069
12070 PR tree-optimization/79943
12071 * tree-ssa-loop-split.c (compute_new_first_bound): When
12072 calculating the new upper bound, (END-BEG) should be added, not
12073 subtracted.
12074
12075 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12076
12077 * config/avr/avr.md (setmemhi): Make sure match_dup
12078 operand number comes before match_scratch.
12079
12080 2017-03-08 Richard Biener <rguenther@suse.de>
12081
12082 PR tree-optimization/79920
12083 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
12084 with ncopies == 1 to ...
12085 (vect_transform_slp_perm_load): ... here. Properly compute
12086 all element loads by iterating VF times over the group. Do
12087 not handle ncopies (computed in a broken way) in
12088 vect_create_mask_and_perm.
12089
12090 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12091
12092 PR sanitizer/79904
12093 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
12094 is a uniform vector, use uniform_vector_p return value instead of
12095 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
12096
12097 2017-03-07 Marek Polacek <polacek@redhat.com>
12098
12099 PR middle-end/79809
12100 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
12101 (alloca_call_type): Likewise.
12102
12103 2017-03-07 Martin Liska <mliska@suse.cz>
12104
12105 * gcov.c (process_args): Put comment to correct location.
12106
12107 2017-03-07 Martin Liska <mliska@suse.cz>
12108
12109 PR middle-end/68270
12110 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
12111 Use array_at_struct_end_p instead of DECL_CHAIN (field).
12112 (chkp_narrow_bounds_for_field): Likewise.
12113 (chkp_parse_array_and_component_ref): Pass one more argument to
12114 call.
12115
12116 2017-03-07 Richard Biener <rguenther@suse.de>
12117
12118 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
12119 preheaders.
12120
12121 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
12122
12123 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
12124 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
12125
12126 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12127
12128 PR c/79855
12129 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
12130 to end of description.
12131 (PARAM_MAX_STORES_TO_MERGE): Likewise.
12132
12133 2017-03-07 Jakub Jelinek <jakub@redhat.com>
12134
12135 PR rtl-optimization/79901
12136 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
12137 ...
12138 (*avx512f_<code><mode>3<mask_name>): ... this.
12139 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
12140 iterator instead of VI8_AVX2_AVX512BW.
12141
12142 PR rtl-optimization/79901
12143 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
12144 min/max expander, expand it using expand_vec_cond_expr.
12145
12146 PR sanitizer/79897
12147 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
12148 temporary.
12149
12150 2017-03-06 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR c++/79821
12153 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
12154 to void * for PCH reasons.
12155 * dwarf2out.c (output_loc_operands, output_die): Cast
12156 v.val_vec.array to unsigned char *.
12157
12158 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
12159
12160 PR target/77850
12161 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
12162 vector types.
12163
12164 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
12165
12166 PR rtl-optimization/79571
12167 * lra-constraints.c (process_alt_operands): Calculate static
12168 reject and subtract it from overall when only addresses will be
12169 reloaded.
12170
12171 2017-03-06 Julia Koval <julia.koval@intel.com>
12172
12173 PR target/79793
12174 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
12175 incoming stack boundary to 128 for 64-bit targets.
12176
12177 2017-03-06 Richard Biener <rguenther@suse.de>
12178
12179 PR tree-optimization/79894
12180 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
12181 to NULL after folding it.
12182
12183 2017-03-06 Richard Biener <rguenther@suse.de>
12184
12185 PR tree-optimization/79824
12186 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
12187 check disabling peeling for gaps.
12188
12189 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
12190
12191 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12192 attributes): Document gettimeofday.
12193
12194 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
12195
12196 * config/s390/s390.c (s390_option_override_internal): Set
12197 PARAM_MIN_VECT_LOOP_BOUND
12198
12199 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
12200
12201 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
12202 * config/s390/s390.md: Likewise.
12203
12204 2017-03-06 Jakub Jelinek <jakub@redhat.com>
12205
12206 PR target/79812
12207 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
12208 (<avx2_avx512>_perm<mode>): Rename to ...
12209 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
12210 of VI8F_256_512.
12211 (<avx512>_perm<mode>_mask): Rename to ...
12212 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
12213 of VI8F_256_512.
12214 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
12215 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
12216 instead of VI8F_256_512.
12217 (avx512f_perm<mode>): New define_expand.
12218 (avx512f_perm<mode>_mask): Likewise.
12219 (avx512f_perm<mode>_1<mask_name>): New define_insn.
12220 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
12221
12222 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12223
12224 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
12225 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
12226 if_then_else.
12227 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
12228
12229 2017-03-06 Martin Liska <mliska@suse.cz>
12230
12231 PR sanitize/79783
12232 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
12233 when having a SSA NAME w/o VAR_DECL assigned to it.
12234
12235 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12236
12237 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
12238 msa_dpsub_<su>_d): Fix MODE for vec_select.
12239
12240 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12241
12242 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
12243 argument.
12244 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
12245
12246 2017-03-06 Richard Biener <rguenther@suse.de>
12247
12248 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
12249 * plugin.c (register_plugin_info): Likewise.
12250 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
12251
12252 2017-03-05 Jakub Jelinek <jakub@redhat.com>
12253
12254 * config/i386/sse.md (sse_storehps, sse_storelps,
12255 avx_<castmode><avxsizesuffix>_<castmode>,
12256 avx512f_<castmode><avxsizesuffix>_<castmode>,
12257 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
12258 in condition that at least one operand is not a MEM.
12259
12260 2017-03-03 Jakub Jelinek <jakub@redhat.com>
12261
12262 PR middle-end/79805
12263 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
12264 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
12265 ECF_NOTHROW.
12266 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
12267 gimple_call_nothrow_p flag based on whether original builtin can throw.
12268 If it can, emit following stmts on the fallthrough edge.
12269 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
12270 don't create new bb if inserting just debug stmts on the edge, try to
12271 insert them on the fallthru bb or just reset debug stmts.
12272
12273 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
12274
12275 PR target/43763
12276 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
12277 restore recog_data (including the operand rtxes inside it) around
12278 the call to get_insn_template.
12279
12280 2017-03-03 Martin Sebor <msebor@redhat.com>
12281
12282 PR tree-optimization/79699
12283 * context.c (context::~context): Free MPFR caches to avoid
12284 a memory leak on program exit.
12285
12286 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12287
12288 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
12289 Use wide_int::ulow () instead of .elt (0).
12290
12291 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
12292
12293 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
12294 (*pushxf): Limit oF constraint to 32bit targets and add oC
12295 constraint for 64bit targets.
12296 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
12297 (*pushdf): Change rmF constraint to rmC.
12298
12299 2017-03-03 Martin Liska <mliska@suse.cz>
12300
12301 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
12302 Remove unused variable.
12303
12304 2017-03-03 Jakub Jelinek <jakub@redhat.com>
12305
12306 PR target/79807
12307 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
12308 is a memory operand, increase num_memory.
12309 (ix86_expand_args_builtin): Likewise.
12310
12311 2017-03-03 Jan Hubicka <jh@suse.cz>
12312
12313 PR lto/79760
12314 * ipa-devirt.c (maybe_record_node): Properly handle
12315 __cxa_pure_virtual visibility.
12316
12317 2017-03-03 Martin Liska <mliska@suse.cz>
12318
12319 PR tree-optimization/79803
12320 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
12321 assert.
12322 (pass_loop_prefetch::execute): Disabled optimization if an
12323 assumption about L1 cache size is not met.
12324
12325 2017-03-03 Martin Liska <mliska@suse.cz>
12326
12327 PR rtl-optimization/79574
12328 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
12329 (hash_scan_set): Likewise.
12330 (dump_hash_table): Likewise.
12331 (hoist_code): Likewise.
12332
12333 2017-03-03 Richard Biener <rguenther@suse.de>
12334
12335 * fixed-value.c (fixed_from_string): Restore use of elt (1)
12336 in place of uhigh ().
12337 (fixed_convert_from_real): Likewise.
12338
12339 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
12340
12341 PR target/79514
12342 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
12343
12344 2017-03-03 Richard Biener <rguenther@suse.de>
12345
12346 PR middle-end/79818
12347 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
12348 TYPE_OVERFLOW_UNDEFINED check.
12349
12350 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12351
12352 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
12353 numbers.
12354 (vector_ae_<mode>_p): Likewise.
12355 (vector_nez_<mode>_p): Likewise.
12356 (vector_ne_v2di_p): Likewise.
12357 (vector_ae_v2di_p): Likewise.
12358 (vector_ne_<mode>_p): Likewise.
12359 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
12360 numbers.
12361 (vsx_tsqrt<mode>2_fe): Likewise.
12362
12363 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
12364
12365 PR target/79514
12366 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
12367
12368 2017-03-02 Jakub Jelinek <jakub@redhat.com>
12369
12370 PR rtl-optimization/79780
12371 * cprop.c (one_cprop_pass): When second and further conditional trap
12372 in a single basic block is turned into an unconditional trap, turn it
12373 into a deleted note to avoid RTL verification failures.
12374
12375 2017-03-02 Richard Biener <rguenther@suse.de>
12376
12377 * fold-const.c (const_binop): Use ulow () instead of elt (0).
12378
12379 2017-03-02 Richard Biener <rguenther@suse.de>
12380
12381 PR tree-optimization/79345
12382 PR c++/42000
12383 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
12384 param and abort the walk, returning -1 if it is hit.
12385 (walk_aliased_vdefs): Take a limit param and pass it on.
12386 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
12387 defaulting to 0 and return a signed int.
12388 * tree-ssa-uninit.c (struct check_defs_data): New struct.
12389 (check_defs): New helper.
12390 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
12391 about uninitialized memory.
12392 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
12393 bogus uninitialized warning.
12394 (fixed_convert_from_real): Likewise.
12395
12396 2017-03-02 Bin Cheng <bin.cheng@arm.com>
12397
12398 PR tree-optimization/66768
12399 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
12400 iv_use if base object can't be determined.
12401
12402 2017-03-02 Jakub Jelinek <jakub@redhat.com>
12403
12404 PR tree-optimization/79345
12405 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
12406 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
12407 (get_pattern_stats): Initialize it.
12408 * genemit.c (gen_expand): Verify match_scratch numbers come after
12409 match_operand/match_dup numbers.
12410 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
12411 match_scratch numbers.
12412 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
12413 Likewise.
12414 * config/s390/s390.md (trunctdsd2): Likewise.
12415
12416 2017-03-02 Richard Biener <rguenther@suse.de>
12417
12418 * wide-int.h (wide_int_storage::operator=): Implement in terms
12419 of wi::copy.
12420
12421 2017-03-02 Richard Biener <rguenther@suse.de>
12422
12423 PR tree-optimization/79777
12424 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
12425 the to insert expression to sth existing.
12426
12427 2017-03-01 Martin Sebor <msebor@redhat.com>
12428
12429 PR middle-end/79692
12430 * gimple-ssa-sprintf.c
12431 (directive::known_width_and_precision): New function.
12432 (format_integer): Use it.
12433 (get_mpfr_format_length): Consider the full range of precision
12434 when computing %g output with the # flag. Set the likely byte
12435 count to 3 rather than 1 when precision is indeterminate.
12436 (format_floating): Correct the lower bound of precision.
12437
12438 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12439
12440 * doc/invoke.texi: Document default code model for 64-bit Linux.
12441
12442 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12443
12444 PR target/79752
12445 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
12446 udiv rather than div since input pattern is unsigned.
12447
12448 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
12449
12450 * config/i386/i386.c (print_reg): Warn for values of
12451 unsupported size in integer register.
12452
12453 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12454
12455 PR target/79439
12456 * config/rs6000/predicates.md (current_file_function_operand): Do
12457 not allow self calls to be local if the function is replaceable.
12458
12459 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12460
12461 PR target/79395
12462 * config/rs6000/altivec.h (vec_ctz and others): Change the
12463 preprocessor macro that controls conditional compilation from
12464 _ARCH_PWR9 to __POWER9_VECTOR__.
12465 (vec_all_ne): Change parameterization of __altivec_scalar_pred
12466 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
12467 control (instead of _ARCH_PWR9 control) so that template
12468 definition uses power9-specific function.
12469 (vec_any_eq): Likewise.
12470 (vec_all_ne): Change macro definition to use a power9-specific
12471 expansion under #ifdef __POWER9_VECTOR__ control (instead of
12472 _ARCH_PWR9 control).
12473 (vec_any_eq) Likewise.
12474 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
12475 expansion for CMPNEF to remove support for xvcmpnesp instruction.
12476 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
12477 support for xvcmpnedp instruction.
12478 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
12479 macro expansion so that Power9 implementation of vec_all_ne does
12480 not use the AltiVec predicate framework.
12481 (VCMPNEH_P): Likewise.
12482 (VCMPNEW_P): Likewise.
12483 (VCMPNED_P): Likewise.
12484 (VCMPNEFP_P): Likewise.
12485 (VCMPNEDP_P): Likewise.
12486 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
12487 implementation of vec_any_eq to not use AltiVec predicate
12488 framework.
12489 (VCMPAEH_P): Likewise.
12490 (VCMPAEW_P): Likewise.
12491 (VCMPAED_P): Likewise.
12492 (VCMPAEFP_P): Likewise.
12493 (VCMPAEDP_P): Likewise.
12494 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
12495 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
12496 not use the AltiVec predicate framework.
12497 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
12498 of vec_any_eq to not use AltiVec predicate framework.
12499 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
12500 support for predefined __POWER9_VECTOR__ macro to indicate that
12501 Power9 instruction selection is enabled.
12502 (altivec_overloaded_builtins): Remove extraneous
12503 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
12504 function argument types RS6000_BTI_bool_V16QI and
12505 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
12506 entry for overloaded function argument types RS6000_BTI_bool_V4SI
12507 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
12508 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
12509 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
12510 Power9 for implementations of vec_cmpne. Change the signature for
12511 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
12512 (representing vec_all_ne) to remove the previously described first
12513 argument of type RS6000_BTI_INTSI, as this was an artifact of
12514 reliance on the AltiVec predicate framework, which is no longer
12515 used in the implementation of these functions. Add
12516 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
12517 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
12518 since, unlike the AltiVec predicate framework implementation, we
12519 do not share function descriptors between vec_alle and vec_anyeq.
12520 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
12521 set of modes that receive special treatment even when
12522 TARGET_P9_VECTOR is true. The special treatment emits code that
12523 does not depend on Power9 instructions.
12524 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
12525 define_expand to not rely on AltiVec predicate framework.
12526 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12527 function.
12528 (vector_ne_v2di_p): Change this define_expand to not rely on
12529 AltiVec predicate framework.
12530 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
12531 function.
12532 (vector_ne_<mode>_p): Change this define_expand to not rely on
12533 AltiVec predicate framework.
12534 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12535 function.
12536 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
12537 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
12538 define_insn pattern.
12539 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
12540 define_insn pattern because the xvcmpne<VSs>. instruction is not
12541 supported.
12542 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
12543 instruction is not supported.
12544
12545 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12546
12547 * config/nvptx/nvptx.c: Include intl.h.
12548
12549 2017-03-01 Martin Jambor <mjambor@suse.cz>
12550
12551 PR lto/78140
12552 * ipa-prop.h (ipa_bits): Removed field known.
12553 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
12554 to pointers. Adjusted their comments to warn about their sharing.
12555 (ipcp_transformation_summary): Change bits to a vector of pointers.
12556 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
12557 (ipa_get_ipa_bits_for_value): Declare.
12558 * tree-vrp.h (value_range): Mark as GTY((for_user)).
12559 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
12560 (ipa_bits_hash_table): Likewise.
12561 (ipa_vr_ggc_hash_traits): Likewise.
12562 (ipa_vr_hash_table): Likewise.
12563 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
12564 being pointers and vr_known being removed.
12565 (ipa_set_jf_unknown): Likewise.
12566 (ipa_get_ipa_bits_for_value): New function.
12567 (ipa_set_jfunc_bits): Likewise.
12568 (ipa_get_value_range): New overloaded functions.
12569 (ipa_set_jfunc_vr): Likewise.
12570 (ipa_compute_jump_functions_for_edge): Use the above functions to
12571 construct bits and vr parts of jump functions.
12572 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
12573 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12574 exist.
12575 (ipcp_grow_transformations_if_necessary): Also allocate
12576 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12577 exist.
12578 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
12579 them. Fix too long lines.
12580 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
12581 vr_known being removed.
12582 (ipa_read_jump_function): Use new setter functions to construct bits
12583 and vr parts of jump functions or set them to NULL.
12584 (write_ipcp_transformation_info): Adjust for bits being pointers.
12585 (read_ipcp_transformation_info): Likewise.
12586 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
12587 space.
12588 Include gt-ipa-prop.h.
12589 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
12590 being pointers.
12591 (ipcp_store_bits_results): Likewise.
12592 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
12593 Do not write to existing jump functions but use a temporary instead.
12594
12595 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12596
12597 PR c++/79681
12598 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
12599 attempt to use its first operand as BIT_FIELD_REF base.
12600
12601 2017-03-01 Richard Biener <rguenther@suse.de>
12602
12603 PR middle-end/79721
12604 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
12605 interpolating formula in wrapping arithmetic.
12606 (chrec_apply): Convert chrec_evaluate return value to wanted type.
12607
12608 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12609
12610 PR tree-optimization/79734
12611 * tree-vect-generic.c (expand_vector_condition): Optimize
12612 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
12613 Handle VEC_COND_EXPR where comparison has different inner width from
12614 type's inner width.
12615
12616 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
12617
12618 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
12619 markup, and similar issues. Remove @opindex entries for things
12620 that aren't options. Add missing -mmpy-option entries.
12621
12622 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12623
12624 PR tree-optimization/79737
12625 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
12626 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
12627 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
12628 instead of byte_size. Formatting fix.
12629 (shift_bytes_in_array_right): Formatting fix.
12630
12631 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
12632
12633 PR target/79749
12634 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
12635 condition on optimize for the leaf function test.
12636
12637 2017-02-28 Martin Liska <mliska@suse.cz>
12638
12639 PR lto/79625
12640 * read-rtl-function.c (function_reader::handle_unknown_directive):
12641 Bail out when one uses -flto.
12642
12643 2017-02-28 Martin Liska <mliska@suse.cz>
12644
12645 * common.opt: Replace space with tabular for options of <number>
12646 type.
12647 * config/i386/i386.opt: Show <number> value for
12648 -mlarge-data-threshold.
12649 * opts.c (print_filtered_help): Do not display number in hexadecimal
12650 format.
12651
12652 2017-02-28 Martin Liska <mliska@suse.cz>
12653
12654 * common.opt: Fix --help=option -Q for options which are of
12655 an enum type.
12656
12657 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
12658
12659 * config/i386/i386.c (print_reg): Error out for values
12660 of 8-bit size in invalid integer register.
12661
12662 2017-02-28 Martin Sebor <msebor@redhat.com>
12663
12664 PR tree-optimization/79691
12665 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
12666
12667 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12668
12669 PR target/79729
12670 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
12671 gcc_unreachable with output_operand_lossage.
12672
12673 2017-02-28 Richard Biener <rguenther@suse.de>
12674
12675 PR tree-optimization/79740
12676 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
12677 inserts.
12678 (visit_nary_op): Insert the nary into the hashtable if we
12679 pattern-matched sth.
12680 * tree-ssa-pre.c (eliminate_insert): Robustify.
12681
12682 2017-02-28 Richard Biener <rguenther@suse.de>
12683
12684 PR middle-end/79731
12685 * fold-const.c (decode_field_reference): Reject out-of-bound
12686 accesses.
12687
12688 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12689
12690 * config/i386/i386.c: Include intl.h.
12691 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
12692 instead of just cond ? "..." : "...".
12693 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
12694 * coverage.c (read_counts_file): Likewise.
12695 * omp-offload.c: Include intl.h.
12696 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
12697 of just cond ? "..." : "...".
12698 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
12699 of just cond ? "..." : "...".
12700
12701 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
12702
12703 PR target/79742
12704 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
12705 entry, if present.
12706 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
12707 'tune for' CPU name.
12708 * config/arm/arm-cpu-data.h: Regenerated.
12709
12710 2017-02-28 Richard Biener <rguenther@suse.de>
12711
12712 PR tree-optimization/79732
12713 * tree-inline.c (expand_call_inline): Do not shadow var.
12714
12715 2017-02-28 Richard Biener <rguenther@suse.de>
12716
12717 PR tree-optimization/79723
12718 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
12719 address-space properly.
12720
12721 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
12722
12723 * doc/optinfo.texi (Optimization groups): Fix option used for
12724 OPTGROUP_ALL.
12725 * doc/invoke.texi (-fopt-info): Document "omp".
12726 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
12727 (OPTGROUP_ALL): Add OPTGROUP_OMP.
12728 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
12729 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
12730 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
12731
12732 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
12733 all users.
12734 * dumpfile.c (optgroup_options): Instead of "openmp", associate
12735 OPTGROUP_OMP with "omp".
12736
12737 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
12738
12739 PR target/79544
12740 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
12741 for arithmetic shift of unsigned V2DI.
12742
12743 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
12744
12745 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
12746 arc/linux.h headers.
12747 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
12748 (LINK_SPEC): Likewise.
12749 (ARC_TLS_EXTRA_START_SPEC): Likewise.
12750 (EXTRA_SPECS): Likewise.
12751 (STARTFILE_SPEC): Likewise.
12752 (ENDFILE_SPEC): Likewise.
12753 (LIB_SPEC): Likewise.
12754 (TARGET_SDATA_DEFAULT): Likewise.
12755 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
12756 (MULTILIB_DEFAULTS): Likewise.
12757 (DWARF2_UNWIND_INFO): Likewise.
12758 * config/arc/big.h: New file.
12759 * config/arc/elf.h: Likewise.
12760 * config/arc/linux.h: Likewise.
12761 * config/arc/t-uClibc: Remove.
12762
12763 2017-02-27 Bin Cheng <bin.cheng@arm.com>
12764
12765 PR tree-optimization/77536
12766 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
12767 (tree_transform_and_unroll_loop): Use above function to compute the
12768 estimated niter of unrolled loop and use it when scaling profile.
12769 Also use count info rather than frequency if it's non-zero.
12770 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
12771 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
12772 (vect_transform_loop): Call above function.
12773
12774 2017-02-27 Richard Biener <rguenther@suse.de>
12775
12776 PR tree-optimization/45397
12777 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
12778 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
12779 (visit_nary_op): Add pattern matching for CSEing sign-changed
12780 or truncated operations with wider ones.
12781
12782 2017-02-27 Richard Biener <rguenther@suse.de>
12783
12784 PR tree-optimization/79690
12785 * tree-vect-stmts.c (vectorizable_store): Use vector type
12786 built from the DR with address-space.
12787
12788 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12789
12790 * doc/invoke.texi (Optimize Options): Refine the description
12791 of asan-use-after-return.
12792
12793 2017-02-25 Alan Modra <amodra@gmail.com>
12794
12795 PR rtl-optimization/79584
12796 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
12797 base, not ad->base_term, the reg within base. Remove assertion
12798 that ad->base == ad->base_term. Replace gen_int_mode using
12799 bogus mode with const0_rtx.
12800
12801 2017-02-25 Jakub Jelinek <jakub@redhat.com>
12802
12803 PR middle-end/79396
12804 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
12805 FMA_EXPR like tcc_binary or tcc_unary.
12806
12807 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
12808
12809 PR debug/77589
12810 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
12811 bitfield.
12812 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
12813 (output_loc_operands): Handle DW_OP_call_ref and
12814 DW_OP_GNU_variable_value.
12815 (struct variable_value_struct): New type.
12816 (struct variable_value_hasher): Likewise.
12817 (variable_value_hash): New variable.
12818 (string_types): Remove.
12819 (copy_loc_descr): New function.
12820 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
12821 (prepend_loc_descr_to_each): New function.
12822 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
12823 instead of add_loc_descr_to_each if the first argument is single
12824 location list and the second has multiple.
12825 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
12826 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
12827 when looking for variable value which doesn't have other location info.
12828 (loc_list_from_tree): Formatting fix.
12829 (gen_array_type_die): Simplify DW_AT_string_length handling.
12830 (adjust_string_types): Remove.
12831 (gen_subprogram_die): Don't call adjust_string_types nor test/set
12832 string_types. Call resolve_variable_values.
12833 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
12834 (resolve_addr_in_expr): Likewise. Add A argument.
12835 (copy_deref_exprloc): Remove deref argument. Adjust for the
12836 original expression being DW_OP_GNU_variable_value with optionally
12837 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
12838 optionally after it.
12839 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
12840 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
12841 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
12842 (variable_value_hasher::hash, variable_value_hasher::equal): New
12843 methods.
12844 (resolve_variable_value_in_expr, resolve_variable_value,
12845 resolve_variable_values, note_variable_value_in_expr,
12846 note_variable_value): New functions.
12847 (dwarf2out_early_finish): Call note_variable_value on all toplevel
12848 DIEs.
12849
12850 2017-02-24 Jakub Jelinek <jakub@redhat.com>
12851
12852 PR c/79677
12853 * opts.h (handle_generated_option): Add GENERATED_P argument.
12854 * opts-common.c (handle_option): Adjust function comment.
12855 (handle_generated_option): Add GENERATED_P argument, pass it to
12856 handle_option.
12857 (control_warning_option): Pass false to handle_generated_option
12858 GENERATED_P.
12859 * opts.c (maybe_default_option): Pass true to handle_generated_option
12860 GENERATED_P.
12861 * optc-gen.awk: Likewise.
12862
12863 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12864
12865 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
12866 a REG, look at the REG it is a SUBREG of.
12867 (splitter for cmpeqsi_t): Ditto.
12868
12869 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12870
12871 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
12872 the special USEs with the pattern of the insn, not the insn itself.
12873
12874 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
12875
12876 PR target/79473
12877 * doc/invoke.texi: Document -mload-store-pairs.
12878
12879 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12880 Sandra Loosemore <sandra@codesourcery.com>
12881
12882 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
12883 argument isn't a CONST_INT.
12884 (nios2_alternate_compare_const): Assert op is a CONST_INT.
12885 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
12886 (nios2_validate_compare): Bypass alternate compare logic if *op2
12887 is not a CONST_INT.
12888 (ldstwm_operation_p): Return false if first_base is not a REG or
12889 if first_offset is not a CONST_INT.
12890
12891 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12892
12893 * config/cris/cris.md: Use correct operand in a define_peephole2.
12894
12895 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12896
12897 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
12898
12899 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12900
12901 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
12902 this_insn if it is an INSN or JUMP_INSN.
12903 (force_offsettable): Look at base, not at addr.
12904 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
12905 on things that aren't necessarily CONST_INTs.
12906
12907 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
12908
12909 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
12910 -mfpmath=sse is the default also for x86-32 targets with SSE2
12911 instruction set when @option{-ffast-math} is enabled
12912
12913 2017-02-24 Jeff Law <law@redhat.com>
12914
12915 PR rtl-optimizatoin/79286
12916 * ira.c (update_equiv_regs): Drop may_trap_p exception to
12917 dominance test.
12918
12919 2017-02-24 Richard Biener <rguenther@suse.de>
12920
12921 PR tree-optimization/79389
12922 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
12923 debug insns.
12924
12925 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
12926
12927 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
12928 function comment to reflect reality.
12929 (loop_exits_before_overflow): Fix typo in function description.
12930
12931 2017-02-24 Richard Biener <rguenther@suse.de>
12932
12933 PR tree-optimization/79389
12934 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
12935 properly that a threading opportunity exists. Detect conditional
12936 copy/constant propagation opportunities.
12937
12938 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
12939
12940 * config/visium/visium.md (type): Add trap.
12941 (b): New mode attribute.
12942 (*btst): Rename into...
12943 (*btst<mode>): ...this and adjust.
12944 (*cbranchsi4_btst_insn): Rename into...
12945 (*cbranch<mode>4_btst_insn): ...this and adjust.
12946 (trap): New define_insn.
12947
12948 2017-02-23 Jakub Jelinek <jakub@redhat.com>
12949
12950 PR tree-optimization/79389
12951 * ifcvt.c (struct noce_if_info): Add rev_cond field.
12952 (noce_reversed_cond_code): New function.
12953 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
12954 reversed_comparison_code. Formatting fix.
12955 (noce_try_store_flag): Test rev_cond != NULL in addition to
12956 reversed_comparison_code.
12957 (noce_try_store_flag_constants): Likewise.
12958 (noce_try_store_flag_mask): Likewise.
12959 (noce_try_addcc): Use rev_cond if non-NULL instead of
12960 reversed_comparison_code.
12961 (noce_try_cmove_arith): Likewise. Formatting fixes.
12962 (noce_try_minmax, noce_try_abs): Clear rev_cond.
12963 (noce_find_if_block): Initialize rev_cond.
12964 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
12965 instead of false as last argument never attempt to reverse it
12966 afterwards.
12967
12968 2017-02-23 Bin Cheng <bin.cheng@arm.com>
12969
12970 PR tree-optimization/79663
12971 * tree-predcom.c (combine_chains): Process refs in reverse order
12972 only for ZERO length chains, and add explaining comment.
12973
12974 2017-02-23 Jeff Law <law@redhat.com>
12975
12976 PR tree-optimization/79578
12977 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
12978 in call to operand_equal_p.
12979
12980 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
12981
12982 PR target/71017
12983 * config/i386/cpuid.h: Fix another undefined behavior.
12984
12985 2017-02-23 Richard Biener <rguenther@suse.de>
12986
12987 PR tree-optimization/79683
12988 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
12989 vector types for data-refs.
12990
12991 2017-02-23 Martin Liska <mliska@suse.cz>
12992
12993 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
12994
12995 2017-02-23 Jakub Jelinek <jakub@redhat.com>
12996
12997 PR middle-end/79665
12998 * internal-fn.c (get_range_pos_neg): Moved to ...
12999 * tree.c (get_range_pos_neg): ... here. No longer static.
13000 * tree.h (get_range_pos_neg): New prototype.
13001 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
13002 are known to be in between 0 and signed maximum inclusive, try to
13003 expand both unsigned and signed divmod and use the cheaper one from
13004 those.
13005
13006 2017-02-22 Jeff Law <law@redhat.com>
13007
13008 PR tree-optimization/79578
13009 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
13010 to compare base operands.
13011
13012 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
13013
13014 PR target/79211
13015 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
13016 gpc_reg_operand instead of fpr_reg_operand.
13017
13018 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
13019
13020 * config/mips/mips.c (mips_return_in_memory): Force FP
13021 vector types to be returned in memory for o32 ABI.
13022
13023 2017-02-22 Jakub Jelinek <jakub@redhat.com>
13024
13025 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
13026 instead of DW_TAG_member for static data member declarations and don't
13027 set no_linkage_name for static inline data members.
13028 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
13029 to DW_TAG_member.
13030
13031 2017-02-22 Martin Liska <mliska@suse.cz>
13032
13033 * doc/invoke.texi: Replace inequality signs with square brackets
13034 for -Wnormalized.
13035
13036 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13037
13038 PR tree-optimization/68644
13039 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
13040
13041 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
13042
13043 PR target/78660
13044 * lra-constraints.c (simplify_operand_subreg): Handle
13045 WORD_REGISTER_OPERATIONS targets.
13046
13047 2017-02-22 Jakub Jelinek <jakub@redhat.com>
13048
13049 PR target/70465
13050 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
13051 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
13052 elimination by swapping fld*.
13053
13054 2017-02-22 Richard Biener <rguenther@suse.de>
13055
13056 PR tree-optimization/79673
13057 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
13058 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
13059 irrelevant address-space qualifiers and avoiding a
13060 ADDR_SPACE_CONVERT_EXPR from fold_convert.
13061
13062 2017-02-22 Richard Biener <rguenther@suse.de>
13063
13064 PR tree-optimization/79666
13065 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
13066 to not symbolically negate if that may introduce undefined
13067 overflow.
13068
13069 2017-02-22 Martin Liska <mliska@suse.cz>
13070
13071 PR lto/79587
13072 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
13073 * data-streamer-out.c (streamer_write_gcov_count_stream):
13074 Likewise.
13075 * value-prof.c (stream_out_histogram_value): Make assert more
13076 precise based on type of counter.
13077
13078 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
13079
13080 PR target/79593
13081 * config/i386/i386.md (standard_x87sse_constant_load splitter):
13082 Use nonimmediate_operand instead of memory_operand for operand 1.
13083 (float-extend standard_x87sse_constant_load splitter): Ditto.
13084
13085 2017-02-21 Jeff Law <law@redhat.com>
13086
13087 PR tree-optimization/79621
13088 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
13089 blocks with edges to themselves.
13090
13091 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13092
13093 PR target/79633
13094 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
13095 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
13096 Use gimple_call_builtin_p.
13097
13098 PR target/79570
13099 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
13100 on temporarily removed DEBUG_INSNs.
13101
13102 PR tree-optimization/79649
13103 * tree-loop-distribution.c (classify_partition): Give up on
13104 non-generic address space loads/stores.
13105
13106 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
13107
13108 * doc/loop.texi (Loop manipulation): Remove nonexistent
13109 tree_ssa_loop_version from the documentation.
13110 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
13111
13112 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13113
13114 PR target/79494
13115 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
13116 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
13117 * config/rs6000/rs6000.c: Include except.h.
13118 (rs6000_expand_split_stack_prologue): Call
13119 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
13120
13121 2017-02-21 Martin Jambor <mjambor@suse.cz>
13122
13123 PR lto/79579
13124 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
13125 have been analyzed.
13126
13127 2017-02-21 Martin Jambor <mjambor@suse.cz>
13128
13129 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
13130 for backward compatibility only.
13131 * doc/invoke.texi (Option Summary): Remove all references to
13132 -fipa-cp-alignment.
13133
13134 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
13135
13136 PR target/78660
13137 Revert:
13138 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13139
13140 * lra-constraints.c (curr_insn_transform): Handle
13141 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
13142
13143 2017-02-21 Martin Liska <mliska@suse.cz>
13144
13145 * config/i386/i386.opt: Replace -masm-dialect with -masm.
13146
13147 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
13148
13149 PR translation/79638
13150 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
13151
13152 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
13153
13154 PR ada/67205
13155 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
13156 (arm_function_ok_for_sibcall): Return false for an indirect call by
13157 descriptor if all the argument registers are used.
13158 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
13159 alignment of the function.
13160
13161 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13162
13163 PR tree-optimization/61441
13164 * simplify-rtx.c (simplify_const_unary_operation): For
13165 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
13166 the sNaN unmodified.
13167
13168 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13169
13170 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
13171 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
13172 instead of SYSTEM_HEADER_DIR.
13173
13174 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
13175 Martin Liška <mliska@suse.cz>
13176
13177 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
13178 Fix typos and grammar, use active voice, and clarify.
13179
13180 2017-02-20 Marek Polacek <polacek@redhat.com>
13181
13182 PR middle-end/79537
13183 * gimplify.c (gimplify_expr): Handle unused *&&L;.
13184
13185 PR sanitizer/79558
13186 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
13187
13188 2017-02-20 Jakub Jelinek <jakub@redhat.com>
13189
13190 PR target/79568
13191 * config/i386/i386.c (ix86_expand_builtin): Handle
13192 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
13193 ix86_builtins_isa[fcode].isa as a requirement of those
13194 flags and any other flag in the bitmask.
13195 (ix86_init_mmx_sse_builtins): Use 0 instead of
13196 ~OPTION_MASK_ISA_64BIT as mask.
13197 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
13198 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
13199 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
13200 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
13201
13202 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13203
13204 PR target/78012
13205 * lra-constraints.c (split_reg): Check requested split mode
13206 is supported by the register.
13207
13208 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13209
13210 * lra-constraints.c (simplify_operand_subreg): Remove early
13211 return false.
13212
13213 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13214
13215 PR target/78660
13216 * lra-constraints.c (curr_insn_transform): Tighten condition
13217 for converting SUBREG reloads from OP_OUT to OP_INOUT.
13218
13219 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13220
13221 PR target/78660
13222 * lra-constraints.c (curr_insn_transform): Handle
13223 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
13224
13225 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
13226
13227 Revert:
13228 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13229
13230 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13231
13232 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
13233
13234 PR c++/69523
13235 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
13236 description.
13237
13238 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13239
13240 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
13241 for FMA_EXPR.
13242
13243 2017-02-18 Jakub Jelinek <jakub@redhat.com>
13244
13245 * final.c (last_columnnum, override_columnnum): New variables.
13246 (final_start_function): Set last_columnnum, pass it to begin_prologue
13247 hook and pass 0 to dwarf2out_begin_prologue.
13248 (final_scan_insn): Update override_columnnum. Pass last_columnnum
13249 to source_line debug hook.
13250 (notice_source_line): Compute last_columnnum and for debug_column_info
13251 return true on column changes.
13252 * debug.h (struct gcc_debug_hooks): Add column argument to
13253 source_line and begin_prologue hooks.
13254 (debug_nothing_int_charstar_int_bool): Remove prototype.
13255 (debug_nothing_int_int_charstar,
13256 debug_nothing_int_int_charstar_int_bool): New prototypes.
13257 (dwarf2out_begin_prologue): Add column argument.
13258 * debug.c (do_nothing_debug_hooks): Adjust source_line and
13259 begin_prologue hooks.
13260 (debug_nothing_int_charstar_int_bool): Remove.
13261 (debug_nothing_int_int_charstar,
13262 debug_nothing_int_int_charstar_int_bool): New functions.
13263 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
13264 through to dwarf2out_source_line.
13265 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
13266 (dwarf2out_source_line): Add column argument, emit it if requested.
13267 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
13268 arguments.
13269 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
13270 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
13271 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
13272 through to dwarf2out_begin_prologue.
13273 (vmsdbgout_source_line): Add column argument, pass it through to
13274 dwarf2out_source_line.
13275 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
13276 dbxout_source_line caller.
13277 (dbxout_source_line): Add column argument.
13278
13279 * common.opt (gno-column-info, gcolumn-info): New options.
13280 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
13281 (check_die): Also test for multiple DW_AT_decl_column attributes.
13282 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
13283 DW_AT_decl_column if requested.
13284 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
13285 if requested.
13286 (gen_variable_die): Likewise.
13287 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
13288 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
13289
13290 PR target/79569
13291 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
13292 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
13293 (ix86_handle_option): Handle OPT_m3dnowa.
13294 * doc/invoke.texi (-m3dnowa): Document.
13295 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
13296 -m3dnowa instead of -m3dnow -march=athlon.
13297
13298 PR target/79559
13299 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
13300 instead of gcc_assert for K, r and R code checks. Formatting fixes.
13301
13302 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13303
13304 PR target/79261
13305 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13306 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
13307 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
13308 generator for vsx_xxpermdi_<mode>_be.
13309 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
13310 force big-endian semantics.
13311 (vsx_xxpermdi_<mode>_be): New define_expand with same
13312 implementation as previous version of vsx_xxpermdi_<mode>.
13313
13314 2017-02-17 Jakub Jelinek <jakub@redhat.com>
13315
13316 PR tree-optimization/79327
13317 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
13318 variable, its initialization and use.
13319
13320 2017-02-17 Julia Koval <julia.koval@intel.com>
13321
13322 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
13323 (OPTION_MASK_ISA_PKU_UNSET): New.
13324 (ix86_handle_option): Handle -mrdpid.
13325 * config/i386/cpuid.h (bit_RDPID): New.
13326 * config/i386/driver-i386.c (host_detect_local_cpu):
13327 Detect RDPID feature.
13328 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
13329 * config/i386/i386-c.c (ix86_target_macros_internal):
13330 Handle RDPID flag.
13331 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
13332 (ix86_valid_target_attribute_inner_p): Add "rdpid".
13333 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
13334 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
13335 * config/i386/i386.md (define_insn "rdpid"): New.
13336 * config/i386/i386.opt Add -mrdpid.
13337 * config/i386/immintrin.h (_rdpid_u32): New.
13338
13339 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
13340
13341 PR rtl-optimization/79541
13342 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
13343 instead of transforming it into USE.
13344
13345 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
13346
13347 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
13348 If HONOR_SNANS (SFmode) force the input to a register.
13349 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
13350 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
13351 an frsp or similar insn.
13352
13353 2017-02-17 Martin Liska <mliska@suse.cz>
13354
13355 PR rtl-optimization/79577
13356 * params.def (selsched-max-sched-times): Increase minimum to 1.
13357
13358 2017-02-17 Martin Liska <mliska@suse.cz>
13359
13360 PR rtl-optimization/79574
13361 * gcse.c (want_to_gcse_p): Prevent integer overflow.
13362
13363 2017-02-17 Martin Liska <mliska@suse.cz>
13364
13365 PR tree-optimization/79529
13366 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
13367 ssa_defined_default_def_p to handle cases which are implicitly
13368 defined.
13369 * tree-ssa.c (ssa_defined_default_def_p): New function.
13370 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
13371 which are implicitly defined.
13372 * tree-ssa.h (ssa_defined_default_def_p): Declare.
13373
13374 2017-02-17 Richard Biener <rguenther@suse.de>
13375
13376 PR middle-end/79576
13377 * params.def (max-ssa-name-query-depth): Limit to 10.
13378
13379 2017-02-17 Richard Biener <rguenther@suse.de>
13380
13381 PR tree-optimization/79552
13382 * tree-ssa-structalias.c (visit_loadstore): Properly verify
13383 default defs.
13384
13385 2017-02-17 Richard Biener <rguenther@suse.de>
13386
13387 PR bootstrap/79567
13388 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
13389
13390 2017-02-17 Marek Polacek <polacek@redhat.com>
13391
13392 PR middle-end/79536
13393 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
13394 (fold_negate_expr): New wrapper.
13395
13396 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
13397
13398 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
13399 Correct terminology and de-emphasize pre-standard behavior.
13400
13401 2017-02-16 Alan Modra <amodra@gmail.com>
13402
13403 PR rtl-optimization/79286
13404 * ira.c (def_dominates_uses): New function.
13405 (update_equiv_regs): Don't create an equivalence for insns that
13406 may trap where the register def does not dominate the use.
13407
13408 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
13409
13410 PR rtl-optimization/78127
13411 * lra.c (lra): Call lra_eliminate before finish the loop after
13412 lra_constraint.
13413
13414 2017-02-16 Richard Biener <rguenther@suse.de>
13415
13416 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
13417 isl/isl_val.h.
13418 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
13419 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
13420 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
13421 (isl_val_int_from_wi): New function.
13422 (extract_affine_gmp): Rename to ...
13423 (extract_affine_wi): ... this, take a widest_int.
13424 (extract_affine_int): Just wrap extract_affine_wi.
13425 (add_param_constraints): Use isl_val_int_from_wi.
13426 (add_loop_constraints): Likewise, and extract_affine_wi.
13427
13428 2017-02-15 Jeff Law <law@redhat.com>
13429
13430 PR middle-end/79521
13431 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
13432 ira_init_register_move_cost_if_necessary.
13433
13434 2017-02-15 Martin Sebor <msebor@redhat.com>
13435
13436 PR middle-end/32003
13437 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
13438 removed in a prior commit.
13439
13440 2017-02-15 Bin Cheng <bin.cheng@arm.com>
13441
13442 PR tree-optimization/79347
13443 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
13444 counters during peeling.
13445
13446 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
13447
13448 * Makefile.in (site.exp): Remove "set ISLVER".
13449
13450 2017-02-15 Jakub Jelinek <jakub@redhat.com>
13451
13452 PR target/79487
13453 * real.c (real_from_integer): Call real_convert even for decimal.
13454
13455 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13456
13457 PR target/79421
13458 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
13459
13460 2017-02-14 Andrew Pinski <apinski@cavium.com>
13461
13462 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
13463 cores and change the partno/implementer to be correct.
13464 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
13465 the 'B" as the implementer.
13466 * config/aarch64/aarch64-tune.md: Regenerate.
13467
13468 2017-02-14 Carl Love <cel@us.ibm.com>
13469
13470 * config/rs6000/rs6000.c: Add case statement entry to make the
13471 xvcvuxdsp built-in argument unsigned.
13472 * config/rs6000/vsx.md: Fix the source and return operand types so they
13473 match the instruction definitions from the ISA document. Fix typo
13474 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
13475 statement.
13476
13477 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
13478
13479 PR target/79282
13480 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
13481 member early_clobber_alts.
13482 * lra-lives.c (reg_early_clobber_p): New.
13483 (process_bb_lives): Use it.
13484 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
13485 (debug_operand_data): Initialize early_clobber_alts.
13486 (setup_operand_alternative): Set up early_clobber_alts.
13487 (collect_non_operand_hard_regs): Ditto. Pass early clobber
13488 alternatives to new_insn_reg.
13489 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
13490 it.
13491 (lra_update_insn_regno_info): Pass the new arg.
13492
13493 2017-02-14 Jakub Jelinek <jakub@redhat.com>
13494
13495 PR middle-end/79505
13496 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
13497 (new_oacc_loop_raw): Don't clear already cleared fields.
13498
13499 PR target/79481
13500 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
13501 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
13502 _mm512_prefetch_i64gather_ps): New inline functions and macros.
13503
13504 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
13505
13506 PR target/79495
13507 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
13508
13509 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
13510
13511 PR target/79498
13512 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
13513 the extra instruction to the right place to store 128-bit constant
13514 when needed.
13515
13516 2017-02-14 Martin Sebor <msebor@redhat.com>
13517
13518 PR middle-end/79448
13519 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
13520 warning for strings of unknown length.
13521
13522 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
13523
13524 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
13525
13526 2017-02-14 Jeff Law <law@redhat.com>
13527
13528 PR target/79404
13529 * ira-costs.c (scan_one_insn): Initialize register move costs
13530 for pseudos seen in USE/CLOBBER insns.
13531
13532 PR tree-optimization/79095
13533 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
13534 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
13535 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
13536 if the operands are known to be not equal, then the resulting range
13537 is ~[0,0].
13538 (intersect_ranges): If the new range is ~[0,0] and the old range is
13539 wide, then prefer ~[0,0].
13540 * tree-vrp.c (overflow_comparison_p_1): New function.
13541 (overflow_comparison_p): New function.
13542 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
13543 if NAME is used in an overflow test.
13544 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
13545 overflow check that can be expressed as an equality test, then adjust
13546 ops to be that equality test.
13547
13548 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13549
13550 * config/s390/s390-builtin-types.def: Remove flags argument.
13551 * config/s390/s390.c (s390_init_builtins): Likewise.
13552
13553 2017-02-14 Martin Liska <mliska@suse.cz>
13554
13555 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
13556 vector. Fix trailing white spaces.
13557
13558 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
13559
13560 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
13561 HFmode.
13562
13563 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13564
13565 PR rtl-optimization/68664
13566 * config/arm/arm.c (arm_sched_can_speculate_insn):
13567 New function. Declare prototype.
13568 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13569
13570 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13571
13572 PR rtl-optimization/68664
13573 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
13574 New function.
13575 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13576
13577 2017-02-14 Amit Pawar <amit.pawar@amd.com>
13578
13579 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
13580 max skip bytes for function, loop and jump.
13581
13582 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13583
13584 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
13585 ABS_EXPR for gimple dump.
13586
13587 2017-02-14 Jakub Jelinek <jakub@redhat.com>
13588
13589 PR target/79462
13590 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
13591
13592 PR tree-optimization/79408
13593 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
13594 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
13595 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
13596 also if rhs1 is INTEGER_CST.
13597
13598 2017-02-14 Richard Biener <rguenther@suse.de>
13599
13600 PR middle-end/79432
13601 * tree-into-ssa.c (insert_phi_nodes): When the function can
13602 have abnormal edges rewrite SSA names with broken use-def
13603 dominance out of SSA and register them for PHI insertion.
13604
13605 2017-02-13 Martin Sebor <msebor@redhat.com>
13606
13607 PR middle-end/79496
13608 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
13609 clearing info.nowrite flag when snprintf size argument is a range.
13610
13611 2017-02-13 Jakub Jelinek <jakub@redhat.com>
13612
13613 * cprop.c (cprop_jump): Add missing space in string literal.
13614 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
13615 (get_constraint_for_component_ref): Likewise.
13616 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
13617 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
13618 * lra-constraints.c (process_alt_operands): Likewise.
13619 * ipa-inline.c (inline_small_functions): Likewise.
13620 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
13621 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
13622 * trans-mem.c (diagnose_tm_1_op): Likewise.
13623 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
13624 (grid_parallel_clauses_gridifiable): Likewise.
13625
13626 * config/nvptx/mkoffload.c (process): Add space in between
13627 , and %d.
13628
13629 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
13630 "MOD4_SSE_REGS" and "ALL_REGS".
13631
13632 * spellcheck.c (test_data): Add , in between "foo" and "food".
13633
13634 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13635
13636 PR target/79449
13637 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
13638 boundary crossing check and subsequent code generation agree.
13639
13640 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13641
13642 * config/aarch64/aarch64.c (has_memory_op): Delete.
13643 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
13644 has_memory_op.
13645
13646 2017-02-13 Jakub Jelinek <jakub@redhat.com>
13647
13648 PR rtl-optimization/79388
13649 PR rtl-optimization/79450
13650 * combine.c (distribute_notes): When removing TEM_INSN for which
13651 corresponding dest has last value recorded, invalidate that last
13652 value.
13653
13654 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13655
13656 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
13657 of explicit '@'. Add missing assembly comment marker on branch costs
13658 printout.
13659
13660 2017-02-13 Nathan Sidwell <nathan@acm.org>
13661
13662 * gengtype-lex.l (<in_struct>): Add '/'.
13663
13664 2017-02-13 Martin Liska <mliska@suse.cz>
13665
13666 PR c/79471
13667 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
13668
13669 2017-02-13 Richard Biener <rguenther@suse.de>
13670
13671 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
13672 Remove.
13673 * configure: Re-generate.
13674 * config.in: Likewise.
13675 * graphite-dependences.c: Simplify as if
13676 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
13677 * graphite-isl-ast-to-gimple.c: Likewise.
13678 * graphite-optimize-isl.c: Likewise.
13679 * graphite-poly.c: Likewise.
13680 * graphite-sese-to-poly.c: Likewise.
13681 * graphite.h: Likewise.
13682 * toplev.c: Include isl/version.h and use isl_version () for
13683 printing the ISL version.
13684 * doc/install.texi: Update ISL requirement.
13685
13686 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13687
13688 * doc/standards.texi (Standards): Update reference to
13689 Objective-C 2.0.
13690
13691 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13692
13693 * doc/extend.texi (Named Address Spaces): sourceware.org now
13694 defaults to https.
13695 * doc/install.texi (Binaries): Ditto.
13696 (Specific): Ditto.
13697
13698 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
13699
13700 * doc/cpp.texi: Replace "stringify"/"stringification" with C
13701 standard terminology "stringize"/"stringizing" throughout.
13702 * doc/cppinternals.texi: Likewise.
13703
13704 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
13705
13706 * doc/extend.texi: Fix some spelling mistakes and typos.
13707 * doc/invoke.texi: Likewise.
13708
13709 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
13710
13711 PR ipa/79224
13712 * params.def (inline-min-speedup) Change from 10 to 8.
13713
13714 2017-02-11 Jakub Jelinek <jakub@redhat.com>
13715
13716 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
13717 4.5.
13718
13719 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
13720
13721 PR ipa/79224
13722 * ipa-inline-analysis.c (get_minimal_bb): New function.
13723 (record_modified): Use it.
13724 (remap_edge_change_prob): Handle also ancestor functions.
13725
13726 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
13727
13728 * doc/contrib.texi (Contributors): Remove broken link into
13729 the Mauve CVS repository.
13730
13731 2017-02-11 Jakub Jelinek <jakub@redhat.com>
13732
13733 PR middle-end/79454
13734 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
13735 result computation whenever lhs doesn't have vector mode, not
13736 just when it has BLKmode.
13737
13738 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
13739
13740 * doc/makefile.texi (profiledbootstrap): Refer to the
13741 installation instructions only in textual form.
13742
13743 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13744
13745 PR target/79295
13746 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
13747
13748 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
13749
13750 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
13751 (Specific): Update mingw-w64 reference.
13752 (Binaries): Ditto.
13753 (Specific): Remove broken link to Renesas RX processor.
13754
13755 2017-02-10 Richard Biener <rguenther@suse.de>
13756
13757 * toplev.c (process_options): Do not mention obsolete graphite
13758 options when printing sorry message about missing graphite support.
13759 Mention -floop-nest-optimize.
13760
13761 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
13762
13763 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
13764 (vtst_p16): Likewise.
13765 (vtstq_p8): Likewise.
13766 (vtstq_p16): Likewise.
13767 (vtst_p64): New.
13768 (vtstq_p64): Likewise.
13769 * config/arm/arm_neon.h (vgetq_lane_p64): New.
13770 (vset_lane_p64): New.
13771 (vsetq_lane_p64): New.
13772
13773 2017-02-10 Jakub Jelinek <jakub@redhat.com>
13774
13775 PR tree-optimization/79411
13776 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
13777 stmt operands are SSA_NAMEs used in abnormal phis.
13778 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
13779 phis.
13780
13781 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
13782
13783 PR ipa/70795
13784 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
13785 flag if needed.
13786
13787 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
13788
13789 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
13790
13791 2017-02-09 Jakub Jelinek <jakub@redhat.com>
13792
13793 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
13794 to avoid warning.
13795
13796 PR c/79413
13797 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
13798 not arbitrary TREE_CONSTANT.
13799
13800 PR c/79431
13801 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
13802 "omp declare target link" attribute unless is_global_var.
13803 * omp-offload.c (find_link_var_op): Likewise.
13804
13805 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
13806 Chung-Lin Tang <cltang@codesourcery.com>
13807
13808 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
13809 OMP_CLAUSE_TILE.
13810 (gimplify_adjust_omp_clauses): Don't delete TILE.
13811 (gimplify_omp_for): Deal with TILE.
13812 * internal-fn.c (expand_GOACC_TILE): New function.
13813 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
13814 (GOACC_TILE): New.
13815 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
13816 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
13817 element fields.
13818 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
13819 avoid DIV for outermost collapse var.
13820 (expand_oacc_for): Insert tile element loop as needed. Adjust.
13821 Remove out of date comments, fix whitespace.
13822 * omp-general.c (omp_extract_for_data): Deal with tiling.
13823 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
13824 adjust OLF_DIM_BASE value.
13825 (struct omp_for_data): Add tiling field.
13826 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
13827 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
13828 for auto loops. Remove default auto determining, moved to
13829 oacc_loop_fixed_partitions.
13830 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
13831 stmts, add e_mask field.
13832 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
13833 (oacc_thread_numbers): Use oacc_dim_call.
13834 (oacc_xform_tile): New.
13835 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
13836 (finish_oacc_loop): Adjust for ifns vector.
13837 (oacc_loop_discover_walk): Append loop abstraction sites to list,
13838 add case for GOACC_TILE fns.
13839 (oacc_loop_xform_loop): Delete.
13840 (oacc_loop_process): Iterate over call list directly, and add
13841 handling for GOACC_TILE fns.
13842 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
13843 dump partitioning.
13844 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
13845 vector partitioning to outer loops. Assign 2 partitions to loops
13846 when available. Add TILE handling.
13847 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
13848 (execite_oacc_device_lower): Process GOACC_TILE fns,
13849 ignore unknown specs.
13850 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
13851 * tree.c (omp_clause_num_ops): Adjust TILE ops.
13852 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
13853
13854 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
13855
13856 * configure.ac (ACX_BUGURL): Update.
13857 * configure: Regenerate.
13858
13859 2017-02-09 Richard Biener <rguenther@suse.de>
13860
13861 PR tree-optimization/69823
13862 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13863 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
13864
13865 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
13866
13867 * config/arc/arc-c.def: Add __NPS400__ definition.
13868 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
13869 (TARGET_NPS400): Define.
13870
13871 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
13872
13873 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
13874 file.
13875 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
13876 pointer, arch_info.
13877 (arc_cpu_types): Fill the arch_info field with a pointer into the
13878 arc_arch_types table.
13879 (arc_selected_cpu): Declare.
13880 * config/arc/arc.c (arc_selected_cpu): Make global.
13881 (arc_selected_arch): Delete.
13882 (arc_base_cpu): Delete.
13883 (arc_override_options): Remove references to deleted variables,
13884 update access to arch information.
13885 (ARC_OPT): Update access to arch information.
13886 (ARC_OPTX): Likewise.
13887 * config/arc/arc.h (arc_base_cpu): Remove declaration.
13888 (TARGET_ARC600): Update access to arch information.
13889 (TARGET_ARC601): Likewise.
13890 (TARGET_ARC700): Likewise.
13891 (TARGET_EM): Likewise.
13892 (TARGET_HS): Likewise.
13893 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
13894 information.
13895
13896 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
13897
13898 PR target/78604
13899 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
13900 condition/operands for integer GE/LE/GEU/LEU operations.
13901
13902 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
13903
13904 PR translation/79397
13905 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
13906 of AltiVec.
13907
13908 2017-02-08 Martin Jambor <mjambor@suse.cz>
13909
13910 PR ipa/79375
13911 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
13912 whether allocation happened.
13913 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
13914 nothing was allocated.
13915
13916 2017-02-08 Jakub Jelinek <jakub@redhat.com>
13917
13918 PR tree-optimization/79408
13919 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
13920 constant, but SSA_NAME with a known integer range, use the minimum
13921 of that range instead of op1 to determine if modulo can be replaced
13922 with its first operand.
13923
13924 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13925
13926 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
13927
13928 2017-02-08 Richard Biener <rguenther@suse.de>
13929
13930 PR tree-optimization/71824
13931 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13932 Check all loops contained in the merged region.
13933
13934 2017-02-07 Andrew Pinski <apinski@cavium.com>
13935
13936 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
13937
13938 2017-02-07 Andrew Pinski <apinski@cavium.com>
13939
13940 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
13941 (thunderxt88): Likewise.
13942 (thunderxt81): Disable LSE and change v8.1 to v8.
13943 (thunderxt83): Likewise.
13944
13945 2017-02-07 Jakub Jelinek <jakub@redhat.com>
13946 Richard Biener <rguenther@suse.de>
13947
13948 PR middle-end/79399
13949 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
13950 type from int to size_t.
13951 * ira-costs.c (struct_costs_size): Change type from int to size_t.
13952
13953 2017-02-07 Jakub Jelinek <jakub@redhat.com>
13954
13955 PR rtl-optimization/79386
13956 * cprop.c (bypass_conditional_jumps): Initialize
13957 bypass_last_basic_block already before splitting bbs after
13958 unconditional traps...
13959 (bypass_conditional_jumps): ... rather than here.
13960
13961 PR target/79299
13962 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
13963 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
13964 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
13965 fix -masm=intel patterns.
13966
13967 2017-02-07 Richard Biener <rguenther@suse.de>
13968
13969 PR tree-optimization/79256
13970 PR middle-end/79278
13971 * builtins.c (get_object_alignment_2): Use min_align_of_type
13972 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
13973 and ADJUST_FIELD_ALIGN.
13974
13975 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
13976 type parameter.
13977 * doc/tm.texi: Regenerate.
13978 * stor-layout.c (layout_decl): Adjust.
13979 (update_alignment_for_field): Likewise.
13980 (place_field): Likewise.
13981 (min_align_of_type): Likewise.
13982 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
13983 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
13984 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
13985 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
13986 * config/frv/frv.c (frv_adjust_field_align): Likewise.
13987 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
13988 * config/i386/i386.c (x86_field_alignment): Likewise.
13989 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13990 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
13991 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13992 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13993 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
13994 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
13995 Likewise.
13996
13997 Revert
13998 2017-01-30 Richard Biener <rguenther@suse.de>
13999
14000 PR tree-optimization/79256
14001 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
14002 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
14003 alignment on TYPE.
14004
14005 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
14006
14007 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
14008 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
14009 builtins to SImode and emit a zero-extend, if necessary.
14010
14011 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
14012
14013 * docs/invoke.texi (RISC-V Options): Alphabetize.
14014
14015 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
14016
14017 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
14018 options.
14019
14020 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
14021
14022 * config/riscv/riscv.c: New file.
14023 * gcc/common/config/riscv/riscv-common.c: Likewise.
14024 * config.gcc: Likewise.
14025 * config/riscv/constraints.md: Likewise.
14026 * config/riscv/elf.h: Likewise.
14027 * config/riscv/generic.md: Likewise.
14028 * config/riscv/linux.h: Likewise.
14029 * config/riscv/multilib-generator: Likewise.
14030 * config/riscv/peephole.md: Likewise.
14031 * config/riscv/pic.md: Likewise.
14032 * config/riscv/predicates.md: Likewise.
14033 * config/riscv/riscv-builtins.c: Likewise.
14034 * config/riscv/riscv-c.c: Likewise.
14035 * config/riscv/riscv-ftypes.def: Likewise.
14036 * config/riscv/riscv-modes.def: Likewise.
14037 * config/riscv/riscv-opts.h: Likewise.
14038 * config/riscv/riscv-protos.h: Likewise.
14039 * config/riscv/riscv.h: Likewise.
14040 * config/riscv/riscv.md: Likewise.
14041 * config/riscv/riscv.opt: Likewise.
14042 * config/riscv/sync.md: Likewise.
14043 * config/riscv/t-elf-multilib: Likewise.
14044 * config/riscv/t-linux: Likewise.
14045 * config/riscv/t-linux-multilib: Likewise.
14046 * config/riscv/t-riscv: Likewise.
14047 * configure.ac: Likewise.
14048 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
14049 Waterman as RISC-V maintainers.
14050 * doc/install.texi: Add RISC-V entries.
14051 * doc/invoke.texi: Add RISC-V options section.
14052 * doc/md.texi: Add RISC-V constraints section.
14053 * configure: Regenerated.
14054
14055 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14056
14057 PR target/66144
14058 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
14059 false values to be constant vectors with all 0 or all 1 bits set.
14060 (vcondu<mode><mode>): Likewise.
14061 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
14062 predicate.
14063 (fpmask_comparison_operator): Update comment.
14064 (vecint_comparison_operator): New predicate.
14065 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
14066 vector conditionals when the true and false values are constant
14067 vectors with all 0 bits or all 1 bits set.
14068
14069 2017-02-06 Martin Sebor <msebor@redhat.com>
14070
14071 PR tree-optimization/79376
14072 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
14073
14074 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
14075
14076 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
14077 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
14078 to simplify split condition.
14079
14080 2017-02-06 Jakub Jelinek <jakub@redhat.com>
14081
14082 * omp-expand.c (oxpand_omp_atomic_fetch_op,
14083 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
14084 false.
14085
14086 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
14087
14088 PR rtl-optimization/68664
14089 * target.def (can_speculate_insn): New hook.
14090 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
14091 * doc/tm.texi: Regenerate.
14092 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
14093 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
14094 (rs6000_sched_can_speculate_insn): New function.
14095
14096 2017-02-06 Jakub Jelinek <jakub@redhat.com>
14097
14098 PR tree-optimization/79284
14099 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
14100 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
14101 vectorizable_mask_load_store, vectorizable_operation,
14102 vect_is_simple_cond, get_same_sized_vectype): Use it instead
14103 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
14104 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
14105 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
14106 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14107 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
14108 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
14109 is_gimple_assign (stmt). Replace another such test with
14110 is_gimple_assign (stmt).
14111
14112 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
14113
14114 PR target/78883
14115 * config/avr/avr.c (rtl-iter.h): Include it.
14116 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
14117 (avr_legitimate_combined_insn): ...and implementation.
14118
14119 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
14120
14121 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
14122 * config/s390/s390.c (s390_const_operand_ok)
14123 (s390_canonicalize_comparison, s390_extract_part)
14124 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
14125 (s390_contiguous_bitmask_p, s390_rtx_costs)
14126 (legitimize_pic_address): Likewise.
14127 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
14128 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
14129 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
14130 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
14131 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
14132
14133 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
14134
14135 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
14136 REGNO($0) == REGNO($1).
14137
14138 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14139
14140 * config/s390/linux.h(SIZE_TYPE): Add comment.
14141
14142 2017-02-06 Julian Brown <julian@codesourcery.com>
14143 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14144 Virendra Pathak <virendra.pathak@broadcom.com>
14145
14146 * config/aarch64/aarch64-cores.def: Change the scheduler
14147 to Thunderx2t99.
14148 * config/aarch64/aarch64.md: Include thunderx2t99.md.
14149 * config/aarch64/thunderx2t99.md: New file.
14150
14151 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14152
14153 * doc/standards.texi (Go Language): Update link to language
14154 standard.
14155
14156 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
14157
14158 * tree-eh.c (lower_resx): Sanitize profile.
14159 (cleanup_empty_eh_move_lp): Likewise.
14160
14161 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
14162
14163 PR tree-ssa/79347
14164 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
14165 ELSE_PROB.
14166 * cfgloopmanip.h (loop_version): Update prototype.
14167 * modulo-sched.c (sms_schedule): Update call of loop_version.
14168 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
14169 * tree-parloops.c (gen_parallel_loop): Likewise.
14170 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
14171 * tree-ssa-loop-split.c (split_loop): Likewise.
14172 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
14173 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
14174
14175 2017-02-05 Martin Liska <mliska@suse.cz>
14176
14177 PR bootstrap/78985
14178 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
14179 variable to NULL.
14180 (print_operand_address): Initialize a struct to zero.
14181
14182 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14183
14184 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
14185 garbage collector only in textual form.
14186
14187 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14188
14189 * doc/extend.texi (x86 specific memory model extensions for
14190 transactional memory): Simplify a phrase.
14191
14192 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
14193
14194 PR target/79353
14195 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
14196 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
14197 (atomic_storedi_1): Likewise.
14198
14199 2017-02-04 Jakub Jelinek <jakub@redhat.com>
14200
14201 PR tree-optimization/79338
14202 * tree-parloops.c (gather_scalar_reductions): Don't call
14203 vect_analyze_loop_form for loop->inner before destroying loop's
14204 loop_vinfo.
14205
14206 2017-02-03 Martin Sebor <msebor@redhat.com>
14207
14208 PR tree-optimization/79327
14209 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
14210 when precision has resulted in leading zeros.
14211 (format_integer): Adjust the likely counter to assume an unknown
14212 argument that may be zero is non-zero.
14213
14214 2017-02-03 Jason Merrill <jason@redhat.com>
14215
14216 PR c++/78689
14217 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
14218 avoid copying non-taken branch.
14219
14220 2017-02-03 Jakub Jelinek <jakub@redhat.com>
14221
14222 PR tree-optimization/79340
14223 * tree-vect-loop.c (vectorizable_reduction): Release
14224 vec_defs elements after safe_splicing them into other vectors.
14225 Formatting fixes.
14226
14227 PR tree-optimization/79327
14228 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
14229 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
14230 dirtype.
14231 (format_integer): Use wide_int_to_tree instead of build_int_cst
14232 + to_?hwi. If argmin is NULL, just set argmin and argmax to
14233 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
14234 of shortest and longest sequence.
14235
14236 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
14237
14238 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14239 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
14240
14241 2017-02-03 Walter Lee <walt@tilera.com>
14242
14243 PR target/78862
14244 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
14245 after initial stackframe link reg save.
14246 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
14247
14248 2017-02-03 Jakub Jelinek <jakub@redhat.com>
14249
14250 PR target/79354
14251 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
14252 wu for stxssp alternative.
14253
14254 2017-02-03 Martin Sebor <msebor@redhat.com>
14255
14256 PR tree-optimization/79352
14257 * gimple-fold.c (get_range_strlen): Add argument.
14258 (get_range_strlen): Change return type to bool.
14259 (get_maxval_strlen): Pass in a dummy argument.
14260 * gimple-fold.h (get_range_strlen): Change return type to bool.
14261 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
14262 * tree.h (array_at_struct_end_p): Add argument.
14263 * tree.c (array_at_struct_end_p): Handle it.
14264
14265 2017-02-03 Martin Liska <mliska@suse.cz>
14266
14267 PR lto/66295
14268 * multiple_target.c (create_dispatcher_calls): Redirect edge
14269 from a caller of a dispatcher.
14270 (expand_target_clones): Make the clones local.
14271 (ipa_target_clone): Do both target clones and resolvers.
14272 (ipa_dispatcher_calls): Remove the pass.
14273 (pass_dispatcher_calls::gate): Likewise.
14274 (make_pass_dispatcher_calls): Likewise.
14275 * passes.def (pass_target_clone): Put as very first IPA early
14276 pass.
14277
14278 2017-02-03 Martin Liska <mliska@suse.cz>
14279
14280 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
14281 in case of a function with ifunc attribute.
14282
14283 2017-02-03 Martin Liska <mliska@suse.cz>
14284
14285 * cgraph.c (cgraph_node::dump): Dump function version info.
14286 * symtab.c (symtab_node::dump_base): Add missing new line.
14287
14288 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
14289
14290 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
14291 (ifcombine_ifandif): Use it.
14292
14293 2017-02-03 Martin Liska <mliska@suse.cz>
14294
14295 * doc/invoke.texi: Document default value for
14296 use-after-scope-direct-emission-threshold.
14297
14298 2017-02-03 Martin Liska <mliska@suse.cz>
14299
14300 PR tree-optimization/79339
14301 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
14302 (format_floating): Likewise.
14303
14304 2017-02-03 Martin Liska <mliska@suse.cz>
14305
14306 PR ipa/79337
14307 * ipa-prop.c (ipa_node_params_t::insert): Remove current
14308 implementation.
14309 (ipa_node_params_t::remove): Likewise.
14310 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
14311 initialization from removed ipa_node_params_t::insert.
14312 (ipa_node_params::~ipa_node_params): Move from removed
14313 ipa_node_params_t::release.
14314 * symbol-summary.h (symbol_summary::m_released): New member.
14315 Do not release a summary twice. Do not allow to call finalizer
14316 for types of a summary that live in GGC memory.
14317
14318 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14319
14320 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
14321 cmp_branch fusion.
14322
14323 2017-02-02 Martin Sebor <msebor@redhat.com>
14324
14325 PR middle-end/79275
14326 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
14327 (format_string): Tighten up the range of output for non-constant
14328 strings and correct the expected range for wide non-constant strings.
14329
14330 2017-02-02 Martin Sebor <msebor@redhat.com>
14331
14332 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
14333
14334 PR middle-end/32003
14335 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
14336 index.
14337 (-fdump-tree-@var): Add to index and document how to come up
14338 with pass-specific option and dump file names.
14339 (-fdump-passes): Clarify where to look for output.
14340
14341 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
14342
14343 PR middle-end/77445
14344 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
14345 statistics of the analyzed path; allow threading for speed when
14346 any of BBs along the path are optimized for speed.
14347
14348 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
14349
14350 PR middle-end/78468
14351 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
14352 settings of the virtual registers.
14353
14354 Revert again
14355 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14356
14357 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14358 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14359 needed.
14360
14361 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14362
14363 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
14364 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
14365
14366 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14367
14368 * config/s390/s390.md: Add missing comments with the expanded
14369 mnemonics.
14370 * config/s390/vector.md: Likewise.
14371 * config/s390/vx-builtins.md: Likewise.
14372
14373 2017-02-02 Jakub Jelinek <jakub@redhat.com>
14374
14375 PR target/79197
14376 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
14377 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
14378 conditions on a single line.
14379
14380 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14381
14382 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
14383 __S390_VX__ to __VX__.
14384
14385 2017-02-01 Andrew Pinski <apinski@cavium.com>
14386
14387 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
14388 stmt_info to record_stmt_cost.
14389 (vect_get_known_peeling_cost): Pass stmt_info if known to
14390 record_stmt_cost.
14391 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
14392 cpu_vector_cost field into
14393 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
14394 field into vec_int_stmt_cost and vec_fp_stmt_cost.
14395 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
14396 splitting of scalar_stmt_cost and vec_stmt_cost.
14397 (thunderx_vector_cost): Likewise.
14398 (cortexa57_vector_cost): LIkewise.
14399 (exynosm1_vector_cost): Likewise.
14400 (xgene1_vector_cost): Likewise.
14401 (thunderx2t99_vector_cost): Improve after the splitting of the two
14402 fields.
14403 (aarch64_builtin_vectorization_cost): Update for the splitting of
14404 scalar_stmt_cost and vec_stmt_cost.
14405
14406 2017-02-01 Torvald Riegel <triegel@redhat.com>
14407 Richard Henderson <rth@redhat.com>
14408
14409 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
14410 conditional on existance of a fast atomic load.
14411 * optabs-query.c (can_atomic_load_p): New function.
14412 * optabs-query.h (can_atomic_load_p): Declare it.
14413 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
14414 no fast atomic load is available for the particular size of access.
14415 (expand_atomic_compare_and_swap): Likewise.
14416 (expand_atomic_load): Likewise.
14417 (expand_atomic_store): Likewise.
14418 (expand_atomic_fetch_op): Likewise.
14419 * testsuite/lib/target-supports.exp
14420 (check_effective_target_sync_int_128): Remove x86 because it provides
14421 no fast atomic load.
14422 (check_effective_target_sync_int_128_runtime): Likewise.
14423
14424 2017-02-01 Richard Biener <rguenther@suse.de>
14425
14426 * graphite.c: Include tree-vectorizer.h for find_loop_location.
14427 (graphite_transform_loops): Provide opt-info for optimized nests.
14428 * tree-parloop.c (parallelize_loops): Provide opt-info for
14429 parallelized loops.
14430
14431 2017-02-01 Richard Biener <rguenther@suse.de>
14432
14433 PR middle-end/79315
14434 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
14435 was not set before.
14436
14437 2017-02-01 Richard Biener <rguenther@suse.de>
14438
14439 PR tree-optimization/71824
14440 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
14441 Verify the loops are valid in the merged SESE region.
14442 (scop_detection::can_represent_loop_1): Check analyzing the
14443 evolution of the number of iterations in the region succeeds.
14444
14445 2017-01-31 Ian Lance Taylor <iant@golang.org>
14446
14447 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
14448 REG_ARGS_SIZE note to 32-bit push insns and call insn.
14449
14450 2017-01-31 David Malcolm <dmalcolm@redhat.com>
14451
14452 PR preprocessor/79210
14453 * input.c (get_substring_ranges_for_loc): Replace line_width
14454 assertion with error-handling.
14455
14456 2017-01-31 Richard Biener <rguenther@suse.de>
14457
14458 PR tree-optimization/77318
14459 * graphite-sese-to-poly.c (extract_affine): Fix assert.
14460 (create_pw_aff_from_tree): Take loop parameter.
14461 (add_condition_to_pbb): Pass loop of the condition to
14462 create_pw_aff_from_tree.
14463
14464 2017-01-31 Jakub Jelinek <jakub@redhat.com>
14465
14466 * config/s390/s390.c (s390_asan_shadow_offset): New function.
14467 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
14468
14469 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14470
14471 PR target/78597
14472 PR target/79038
14473 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
14474 no longer used.
14475 (convert_int_to_float128): Likewise.
14476 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
14477 (convert_int_to_float128): Likewise.
14478 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
14479 (UNSPEC_IEEE128_CONVERT): Likewise.
14480 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
14481 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
14482 Use local variables for IBM extended format.
14483 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
14484 (fix_trunc<mode>si2_fprs): Likewise.
14485 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
14486 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
14487 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
14488 to know that we can now have integers of all sizes in vector
14489 registers.
14490 (fix<uns>_<mode>di2_hw): Likewise.
14491 (float<uns>_<mode>si2_hw): Likewise.
14492 (fix_<mode>si2_hw): Likewise.
14493 (fixuns_<mode>si2_hw): Likewise.
14494 (float<uns>_<mode>di2_hw): Likewise.
14495 (float_<mode>di2_hw): Likewise.
14496 (float_<mode>si2_hw): Likewise.
14497 (floatuns_<mode>di2_hw): Likewise.
14498 (floatuns_<mode>si2_hw): Likewise.
14499 (xscvqp<su>wz_<mode>): Delete, no longer used.
14500 (xscvqp<su>dz_<mode>): Likewise.
14501 (xscv<su>dqp_<mode>): Likewise.
14502 (ieee128_mfvsrd_64bit): Likewise.
14503 (ieee128_mfvsrd_32bit): Likewise.
14504 (ieee128_mfvsrwz): Likewise.
14505 (ieee128_mtvsrw): Likewise.
14506 (ieee128_mtvsrd_64bit): Likewise.
14507 (ieee128_mtvsrd_32bit): Likewise.
14508
14509 2017-01-31 Martin Liska <mliska@suse.cz>
14510
14511 PR ipa/79285
14512 * ipa-prop.c (ipa_free_all_node_params): Call release method
14513 instead of ~sumbol_summary to not to trigger double times
14514 dtor of hash_map.
14515
14516 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
14517
14518 PR tree-optimization/71691
14519 * bitmap.h (class auto_bitmap): New.
14520 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
14521 is_maybe_undefined instead of ssa_undefined_value_p.
14522
14523 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14524
14525 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
14526 __S390_ARCH_LEVEL__ to __ARCH__.
14527
14528 2017-01-31 Jakub Jelinek <jakub@redhat.com>
14529
14530 PR tree-optimization/79267
14531 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
14532 if should_remove_lhs_p is true.
14533
14534 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
14535
14536 PR debug/63238
14537 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
14538 (add_alignment_attribute): New.
14539 (base_type_die): Add alignment attribute.
14540 (subrange_type_die): Likewise.
14541 (modified_type_die): Likewise.
14542 (gen_array_type_die): Likewise.
14543 (gen_descr_array_type_die: Likewise.
14544 (gen_enumeration_type_die): Likewise.
14545 (gen_subprogram_die): Likewise.
14546 (gen_variable_die): Likewise.
14547 (gen_field_die): Likewise.
14548 (gen_ptr_to_mbr_type_die): Likewise.
14549 (gen_struct_or_union_type_die): Likewise.
14550 (gen_subroutine_type_die): Likewise.
14551 (gen_typedef_die): Likewise.
14552 (base_type_cmp): Compare alignment attribute.
14553
14554 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14555
14556 PR target/79170
14557 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
14558 (setb_unsigned) New pattern for setb with CCUNS.
14559 * config/rs6000/rs6000.c (expand_block_compare): Use a different
14560 subfc./subfe sequence to avoid overflow problems. Generate a
14561 shorter sequence with cmpld/setb for power9.
14562 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
14563 for generating subfc. instruction.
14564 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
14565 now uses this instruction.
14566
14567 2017-01-30 Ian Lance Taylor <iant@google.com>
14568
14569 PR debug/79289
14570 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
14571 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
14572
14573 2017-01-30 Martin Sebor <msebor@redhat.com>
14574
14575 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
14576 Move constant to the right of a relational operator.
14577 (get_mpfr_format_length, format_character, format_string): Ditto.
14578 (should_warn_p, maybe_warn): Same.
14579
14580 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
14581
14582 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
14583
14584 PR lto/79061
14585 * asan.c (get_translation_unit_decl): Remove function.
14586 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
14587
14588 2017-01-30 Martin Liska <mliska@suse.cz>
14589
14590 PR gcov-profile/79259
14591 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
14592 -fprofile-generate.
14593
14594 2017-01-30 Martin Liska <mliska@suse.cz>
14595
14596 PR bootstrap/78985
14597 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
14598 Initialize variables with NULL value.
14599
14600 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
14601
14602 PR target/79260
14603 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
14604 tm_p_file.
14605 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
14606
14607 2017-01-30 Richard Biener <rguenther@suse.de>
14608
14609 PR tree-optimization/79276
14610 * tree-vrp.c (process_assert_insertions): Properly adjust common
14611 when removing a duplicate.
14612
14613 * gcc.dg/torture/pr79276.c: New testcase.
14614
14615 2017-01-30 Richard Biener <rguenther@suse.de>
14616
14617 PR tree-optimization/79256
14618 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
14619 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
14620 alignment on TYPE.
14621 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
14622
14623 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
14624
14625 PR target/79240
14626 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
14627 ("*r<noxa>sbg_<mode>_sll_bitmask")
14628 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
14629 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
14630 Use contiguous_bitmask_nowrap_operand.
14631
14632 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14633
14634 PR target/79268
14635 * config/rs6000/altivec.h (vec_xl): Revise #define.
14636 (vec_xst): Likewise.
14637
14638 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
14639
14640 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
14641
14642 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
14643
14644 PR rtl-optimization/79194
14645 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
14646 traps before call to bypass_conditional_jumps.
14647
14648 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
14649
14650 PR tree-optimization/71374
14651 * lra-constraints.c (check_conflict_input_operands): New.
14652 (match_reload): Use it.
14653
14654 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
14655
14656 PR target/79131
14657 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
14658 account to calculate conflict_set.
14659
14660 2017-01-27 Bin Cheng <bin.cheng@arm.com>
14661
14662 PR rtl-optimization/78559
14663 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
14664 other_insn in combine.
14665
14666 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
14667
14668 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
14669 uint16_type_node for BT_UINT16.
14670
14671 2017-01-27 David Malcolm <dmalcolm@redhat.com>
14672
14673 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
14674 "RTL Tests" to menu.
14675 (GIMPLE Tests): New node.
14676 (RTL Tests): New node.
14677
14678 2017-01-27 Richard Biener <rguenther@suse.de>
14679
14680 PR tree-optimization/79245
14681 * tree-loop-distribution.c (distribute_loop): Apply cost
14682 modeling also to detected patterns.
14683
14684 2017-01-27 Richard Biener <rguenther@suse.de>
14685
14686 PR tree-optimization/71433
14687 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
14688 (compare_assert_loc): New function.
14689 (process_assert_insertions): Sort and optimize assert locations
14690 to remove duplicates and push down identical assertions on
14691 edges to their destination block.
14692
14693 2017-01-27 Richard Biener <rguenther@suse.de>
14694
14695 PR tree-optimization/79244
14696 * tree-vrp.c (remove_range_assertions): Forcefully propagate
14697 out SSA names even if abnormal.
14698
14699 2017-01-27 Jakub Jelinek <jakub@redhat.com>
14700
14701 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
14702 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
14703 instead of MPFR_RNDN.
14704
14705 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
14706
14707 PR target/79239
14708 * arm.c (arm_option_override): Don't call build_target_option_node
14709 until after doing all option overrides.
14710 (arm_valid_target_attribute_tree): Likewise.
14711
14712 2017-01-27 Martin Liska <mliska@suse.cz>
14713
14714 * doc/invoke.texi (-fprofile-arcs): Document profiling support
14715 for {cd}tors and C++ {cd}tors.
14716
14717 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14718
14719 * config/s390/s390.md ("*setmem_long_and")
14720 ("*setmem_long_and_31z"): Use zero_extend instead of and.
14721
14722 2017-01-26 Martin Sebor <msebor@redhat.com>
14723
14724 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
14725 of precision.
14726
14727 2017-01-26 Martin Sebor <msebor@redhat.com>
14728
14729 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
14730 HAVE_DFmode before using XFmode or DFmode.
14731 (parse_directive): Avoid using the z length modifier to avoid
14732 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
14733
14734 PR middle-end/78703
14735 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
14736 to accept adjustment as an array.
14737 (get_int_range): New function.
14738 (struct directive): Make width and prec arrays.
14739 (directive::set_width, directive::set_precision): Call get_int_range.
14740 (format_integer, format_floating): Handle width and precision ranges.
14741 (format_string, parse_directive): Same.
14742
14743 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14744
14745 PR debug/79129
14746 * dwarf2out.c (generate_skeleton_bottom_up): For children with
14747 comdat_type_p set, just clone them, but keep the children in the
14748 original DIE.
14749
14750 PR debug/78835
14751 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
14752 which have direct callers with -fvar-tracking-assignments enabled
14753 in the current TU.
14754 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
14755 inside of type units.
14756
14757 2017-01-26 Martin Sebor <msebor@redhat.com>
14758
14759 PR middle-end/78703
14760 * gimple-ssa-sprintf.c (struct result_range): Add likely and
14761 unlikely counters.
14762 (struct format_result): Replace number_chars, number_chars_min,
14763 and number_chars_max with a single member of struct result_range.
14764 Remove bounded.
14765 (format_result::operator+=): Adjust.
14766 (struct fmtresult): Remove bounded. Handle likely and unlikely
14767 counters.
14768 (fmtresult::adjust_for_width_or_precision): New function.
14769 (fmtresult:type_max_digits): New function.
14770 (bytes_remaining): Handle likely and unlikely counters.
14771 (min_bytes_remaining): Remove.
14772 (format_percent): Simplify.
14773 (format_integer, format_floating): Set likely and unlikely counters.
14774 (get_string_length, format_character, format_string): Same.
14775 (format_plain, should_warn_p): New function.
14776 (maybe_warn): Call should_warn_p. Update diagnostic messages
14777 and handle those for all directives, including plain strings.
14778 (format_directive): Handle likely and unlikely counters.
14779 Remove unnecessary quoting from diagnostics. Add an informational
14780 note.
14781 (add_bytes): Remove.
14782 (pass_sprintf_length::compute_format_length): Simplify.
14783 (try_substitute_return_value): Handle likely and unlikely counters.
14784
14785 2017-01-26 Carl Love <cel@us.ibm.com>
14786
14787 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
14788 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
14789
14790 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
14791
14792 PR target/79131
14793 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
14794 endianess for subregs into account.
14795 * lra-constraints.c (lra_constraints): Do risky transformations
14796 always on the first iteration.
14797 * lra-lives.c (check_pseudos_live_through_calls): Add arg
14798 last_call_used_reg_set.
14799 (process_bb_lives): Define and use last_call_used_reg_set.
14800 * lra.c (lra): Always continue after lra_constraints on the first
14801 iteration.
14802
14803 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
14804
14805 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
14806 constant.
14807 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
14808
14809 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14810
14811 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
14812 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
14813 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
14814 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
14815 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
14816 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
14817 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
14818 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
14819 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
14820
14821 2017-01-26 Marek Polacek <polacek@redhat.com>
14822
14823 PR c/79199
14824 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
14825 for the third operand.
14826
14827 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14828
14829 PR middle-end/79236
14830 * omp-low.c (struct omp_context): Add simt_stmt field.
14831 (scan_omp_for): Return omp_context *.
14832 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
14833 context to the _simt_ SIMD stmt.
14834 (lower_omp_for): For combined SIMD with sibling _simt_
14835 SIMD, make sure to use the same decls in _looptemp_
14836 clauses as in the sibling.
14837
14838 2017-01-26 David Sherwood <david.sherwood@arm.com>
14839
14840 PR middle-end/79212
14841 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
14842 all contexts.
14843
14844 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14845
14846 PR target/70465
14847 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
14848 emit fld b; fld a; if possible.
14849
14850 * brig-builtins.def: Update copyright years.
14851 * config/arm/arm_acle_builtins.def: Update copyright years.
14852
14853 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
14854
14855 PR target/79179
14856 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
14857 constraint instead of o for the stxsd instruction.
14858
14859 2017-01-25 Carl Love <cel@us.ibm.com>
14860
14861 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
14862 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
14863
14864 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
14865
14866 * doc/invoke.texi (C++ Dialect Options): Fix typo.
14867
14868 2017-01-25 Richard Biener <rguenther@suse.de>
14869
14870 PR tree-optimization/69264
14871 * target.def (vector_alignment_reachable): Improve documentation.
14872 * doc/tm.texi: Regenerate.
14873 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
14874 and add a comment.
14875 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
14876 earlier changes with respect to TYPE_USER_ALIGN.
14877 (vector_alignment_reachable_p): Likewise. Improve dumping.
14878
14879 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14880
14881 PR target/79145
14882 * config/arm/arm.md (xordi3): Force constant operand into a register
14883 for TARGET_IWMMXT.
14884
14885 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14886
14887 * doc/invoke.texi (-fstore-merging): Correct default optimization
14888 levels at which it is enabled.
14889 (-O): Move -fstore-merging from list to...
14890 (-O2): ... Here.
14891
14892 2017-01-25 Richard Biener <rguenther@suse.de>
14893
14894 PR debug/78363
14895 * omp-expand.c: Include debug.h.
14896 (expand_omp_taskreg): Make sure to generate early debug before
14897 outlining anything from a function.
14898 (expand_omp_target): Likewise.
14899 (grid_expand_target_grid_body): Likewise.
14900
14901 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
14902
14903 PR lto/79061
14904 * asan.c (get_translation_unit_decl): New function.
14905 (asan_add_global): Extract modules file name from globals
14906 TRANSLATION_UNIT_DECL name.
14907
14908 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
14909
14910 PR target/77439
14911 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
14912 for long calls with APCS frame and VFP.
14913
14914 2017-01-24 David Malcolm <dmalcolm@redhat.com>
14915
14916 * cfg.c (original_copy_tables_initialized_p): New function.
14917 * cfg.h (original_copy_tables_initialized_p): New decl.
14918 * cfgrtl.c (relink_block_chain): Guard the call to
14919 free_original_copy_tables with a call to
14920 original_copy_tables_initialized_p.
14921 * cgraph.h (symtab_node::native_rtl_p): New decl.
14922 * cgraphunit.c (symtab_node::native_rtl_p): New function.
14923 (symtab_node::needed_p): Don't assert for early assembly output
14924 for __RTL functions.
14925 (cgraph_node::finalize_function): Set "force_output" for __RTL
14926 functions.
14927 (cgraph_node::analyze): Bail out early for __RTL functions.
14928 (analyze_functions): Update assertion to support __RTL functions.
14929 (cgraph_node::expand): Bail out early for __RTL functions.
14930 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
14931 __RTL functions.
14932 * function.h (struct function): Update comment for field
14933 "pass_startwith".
14934 * gimple-expr.c: Include "tree-pass.h".
14935 (gimple_has_body_p): Return false for __RTL functions.
14936 * Makefile.in (OBJS): Add run-rtl-passes.o.
14937 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
14938 accessor.
14939 (gcc::pass_manager::get_clean_slate): New accessor.
14940 * passes.c: Include "insn-addr.h".
14941 (should_skip_pass_p): Add logging. Update logic for running
14942 "expand" to be compatible with both __GIMPLE and __RTL. Guard
14943 property-provider override so it is only done for gimple passes.
14944 Don't skip dfinit.
14945 (skip_pass): New function.
14946 (execute_one_pass): Call skip_pass when skipping passes.
14947 * read-md.c (md_reader::read_char): Support filtering
14948 the input to a subset of line numbers.
14949 (md_reader::md_reader): Initialize fields
14950 m_first_line and m_last_line.
14951 (md_reader::read_file_fragment): New function.
14952 * read-md.h (md_reader::read_file_fragment): New decl.
14953 (md_reader::m_first_line): New field.
14954 (md_reader::m_last_line): New field.
14955 * read-rtl-function.c (function_reader::create_function): Only
14956 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
14957 curr_properties. Set DECL_INITIAL to a dummy block.
14958 (read_rtl_function_body_from_file_range): New function.
14959 * read-rtl-function.h (read_rtl_function_body_from_file_range):
14960 New decl.
14961 * run-rtl-passes.c: New file.
14962 * run-rtl-passes.h: New file.
14963
14964 2017-01-24 Jeff Law <law@redhat.com>
14965
14966 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
14967 buffer size.
14968
14969 2017-01-24 Bin Cheng <bin.cheng@arm.com>
14970
14971 PR tree-optimization/79159
14972 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
14973 (record_nonwrapping_iv): Improve boundary using above function if no
14974 value range information.
14975
14976 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
14977 Martin Jambor <mjambor@suse.cz>
14978
14979 * brig-builtins.def: New file.
14980 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
14981 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
14982 (DEF_HSAIL_SAT_BUILTIN): Likewise.
14983 (DEF_HSAIL_INTR_BUILTIN): Likewise.
14984 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
14985 * builtin-types.def (BT_INT8): New.
14986 (BT_INT16): Likewise.
14987 (BT_UINT8): Likewise.
14988 (BT_UINT16): Likewise.
14989 (BT_FN_ULONG): Likewise.
14990 (BT_FN_UINT_INT): Likewise.
14991 (BT_FN_UINT_ULONG): Likewise.
14992 (BT_FN_UINT_LONG): Likewise.
14993 (BT_FN_UINT_PTR): Likewise.
14994 (BT_FN_ULONG_PTR): Likewise.
14995 (BT_FN_INT8_FLOAT): Likewise.
14996 (BT_FN_INT16_FLOAT): Likewise.
14997 (BT_FN_UINT32_FLOAT): Likewise.
14998 (BT_FN_UINT16_FLOAT): Likewise.
14999 (BT_FN_UINT8_FLOAT): Likewise.
15000 (BT_FN_UINT64_FLOAT): Likewise.
15001 (BT_FN_UINT16_UINT32): Likewise.
15002 (BT_FN_UINT32_UINT16): Likewise.
15003 (BT_FN_UINT16_UINT16_UINT16): Likewise.
15004 (BT_FN_INT_PTR_INT): Likewise.
15005 (BT_FN_UINT_PTR_UINT): Likewise.
15006 (BT_FN_LONG_PTR_LONG): Likewise.
15007 (BT_FN_ULONG_PTR_ULONG): Likewise.
15008 (BT_FN_VOID_UINT64_UINT64): Likewise.
15009 (BT_FN_UINT8_UINT8_UINT8): Likewise.
15010 (BT_FN_INT8_INT8_INT8): Likewise.
15011 (BT_FN_INT16_INT16_INT16): Likewise.
15012 (BT_FN_INT_INT_INT): Likewise.
15013 (BT_FN_UINT_FLOAT_UINT): Likewise.
15014 (BT_FN_FLOAT_UINT_UINT): Likewise.
15015 (BT_FN_ULONG_UINT_UINT): Likewise.
15016 (BT_FN_ULONG_UINT_PTR): Likewise.
15017 (BT_FN_ULONG_ULONG_ULONG): Likewise.
15018 (BT_FN_UINT_UINT_UINT): Likewise.
15019 (BT_FN_VOID_UINT_PTR): Likewise.
15020 (BT_FN_UINT_UINT_PTR: Likewise.
15021 (BT_FN_UINT32_UINT64_PTR): Likewise.
15022 (BT_FN_INT_INT_UINT_UINT): Likewise.
15023 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
15024 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
15025 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
15026 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
15027 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
15028 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
15029 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
15030 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
15031 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
15032 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
15033 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
15034 * doc/frontends.texi: List BRIG FE.
15035 * doc/install.texi (Testing): Add BRIG tesring requirements.
15036 * doc/invoke.texi (Overall Options): Mention BRIG.
15037 * doc/standards.texi (Standards): Doucment BRIG HSA version.
15038
15039 2017-01-24 Richard Biener <rguenther@suse.de>
15040
15041 PR translation/79208
15042 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
15043
15044 2017-01-24 Martin Jambor <mjambor@suse.cz>
15045
15046 PR bootstrap/79198
15047 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
15048 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
15049 and known_contexts.
15050
15051 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
15052
15053 PR middle-end/79123
15054 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
15055 casts from signed to unsigned really don't have a range.
15056
15057 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
15058
15059 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
15060 GMP_RNDx for compatiblity.
15061
15062 2017-01-24 Martin Liska <mliska@suse.cz>
15063
15064 PR bootstrap/79132
15065 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
15066 that would prevent us to call alloca with -1 as argument.
15067
15068 2017-01-24 Jakub Jelinek <jakub@redhat.com>
15069
15070 * dwarf2out.c (output_compilation_unit_header, output_file_names):
15071 Avoid -Wformat-security warning.
15072
15073 2017-01-23 Andrew Pinski <apinski@cavium.com>
15074
15075 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
15076 cost table.
15077
15078 2017-01-23 Martin Sebor <msebor@redhat.com>
15079
15080 PR middle-end/78703
15081 * gimple-ssa-sprintf.c (warn_level): New global.
15082 (format_integer): Use it here and throughout the rest of the file.
15083 Use the same switch to compute sign as base.
15084 (maybe_warn): New function.
15085 (format_directive): Factor out warnings into maybe_warn.
15086 Add debugging output. Use warn_level.
15087 (add_bytes): Use warn_level.
15088 (pass_sprintf_length::compute_format_length): Add debugging output.
15089 (try_substitute_return_value): Same.
15090 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
15091
15092 PR middle-end/78703
15093 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
15094 (struct fmtresult, format_integer, format_floating): Adjust.
15095 (fmtresult::fmtresult): Set max correctly in two argument ctor.
15096 (get_string_length, format_string,format_directive): Same.
15097 (pass_sprintf_length::compute_format_length): Same.
15098 (try_substitute_return_value): Simplify slightly.
15099
15100 PR middle-end/78703
15101 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
15102 (fmtresult::operator+=): Outlined.
15103 (struct fmtresult): Add ctors.
15104 (struct conversion_spec): Rename...
15105 (struct directive): ...to this. Add and remove data members.
15106 (directive::set_width, directive::set_precision): New functions.
15107 (format_percent): Use fmtresult ctor.
15108 (get_width_and_precision): Remove.
15109 (format_integer): Make naming changes. Avoid computing width and
15110 precision.
15111 (format_floating): Same. Adjust indentation.
15112 (format_character, format_none): New functions.
15113 (format_string): Moved character handling to format_character.
15114 (format_directive): Remove arguments, change return type.
15115 (parse_directive): New function.
15116 (pass_sprintf_length::compute_format_length): Move directive
15117 parsing to parse_directive.
15118
15119 2017-01-23 Jakub Jelinek <jakub@redhat.com>
15120
15121 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
15122 (assign_assembler_name_if_needed): ... this.
15123 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
15124 (assign_assembler_name_if_needed): ... this.
15125 (free_lang_data_in_cgraph): Adjust callers.
15126 * cgraphunit.c (cgraph_node::analyze): Likewise.
15127 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
15128 Likewise.
15129
15130 2017-01-23 Richard Biener <rguenther@suse.de>
15131
15132 PR tree-optimization/79088
15133 PR tree-optimization/79188
15134 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
15135 resetting loop bounds after last path deletion. Reset loop
15136 bounds of the target loop, make code match the comments.
15137 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
15138 Make sure loops need no fixups.
15139
15140 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
15141
15142 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
15143 exponent support with double type for first argument.
15144 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
15145 type returned by __builtin_vec_extract_sig,
15146 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
15147 functions from "vector int" to "vector unsigned int" or from
15148 "vector long long int" to "vector unsigned long long int".
15149 Changed type returned by __builtin_vec_extract_exp,
15150 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
15151 functions from "vector int" to "vector unsigned int" or from
15152 "vector long long int" to "vector unsigned long long int".
15153 Changed return type of __builtin_vec_test_data_class,
15154 __builtin_vec_test_data_class_sp, and
15155 __builtin_vec_test_data_class_dp from "vector int" to
15156 "vector bool int" or from "vector long long int" to "vector bool
15157 long long int" and changed second argument type from "unsigned
15158 int" to "int". Added new overloaded function forms "vector float
15159 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
15160 "vector float __builtin_vec_insert_exp_sp (vector float, vector
15161 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
15162 double, vector unsigned long long int)" and "vector double
15163 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
15164 long int)". Changed return type of
15165 __builtin_scalar_test_data_class and
15166 __builtin_scalar_test_data_class_sp and
15167 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
15168 int" and changed second argument from "unsigned int" to "int".
15169 Changed type returned by __builtin_scalar_test_neg,
15170 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
15171 from "int" to "bool int". Added new overloaded function form
15172 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
15173 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
15174 exponent double-precision with floating point first argument.
15175 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
15176 documentation of scalar_test_data_class, scalar_test_neg,
15177 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
15178 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
15179 vec_test_data_class built-in functions to reflect refinements in
15180 their type signatures.
15181
15182 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
15183
15184 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
15185 size of buf.
15186 (aarch64_elf_asm_destructor): Likewise.
15187
15188 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
15189
15190 PR rtl-optimization/78634
15191 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
15192 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
15193 * ifcvt.c (noce_try_cmove): Add missing cost check.
15194
15195 PR rtl-optimization/71724
15196 * combine.c (if_then_else_cond): Look for situations where it is
15197 beneficial to undo the work of one of the recursive calls.
15198
15199 2017-01-23 Bin Cheng <bin.cheng@arm.com>
15200
15201 PR tree-optimization/70754
15202 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
15203 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
15204 combined stmt before it if not NULL.
15205 (combine_chains): Process refs reversely and compute dominance point
15206 for root ref.
15207
15208 2017-01-23 Martin Liska <mliska@suse.cz>
15209
15210 PR tree-optimization/79196
15211 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
15212 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
15213 instead of memcmp.
15214 (strlen_optimize_stmt): Call the renamed function.
15215
15216 2017-01-23 Michael Matz <matz@suse.de>
15217
15218 PR tree-optimization/78384
15219 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
15220
15221 2017-01-23 Richard Biener <rguenther@suse.de>
15222
15223 PR tree-optimization/79186
15224 * tree-vrp.c (register_new_assert_for): Make sure we've seen
15225 both incoming edges before moving an assert.
15226
15227 2017-01-23 Martin Jambor <mjambor@suse.cz>
15228
15229 * ipa-prop.c (load_from_param_1): Removed.
15230 (load_from_unmodified_param): Bits from load_from_param_1 put back
15231 here.
15232 (load_from_param): Removed.
15233 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
15234 with stmt. Reverted back to use of load_from_unmodified_param.
15235
15236 2017-01-23 Martin Jambor <mjambor@suse.cz>
15237
15238 PR ipa/79108
15239 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
15240 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
15241 field a pointer to garbage collected vector, mark lattices and
15242 ipcp_orig_node with GTY((skip)).
15243 (ipa_get_param_count): Adjust to descriptors being a pointer.
15244 (ipa_get_param): Likewise.
15245 (ipa_get_type): Likewise.
15246 (ipa_get_param_move_cost): Likewise.
15247 (ipa_set_param_used): Likewise.
15248 (ipa_get_controlled_uses): Likewise.
15249 (ipa_set_controlled_uses): Likewise.
15250 (ipa_is_param_used): Likewise.
15251 (ipa_node_params_t): Move into garbage collector. New methods insert
15252 and remove.
15253 (ipa_node_params_sum): Annotate wth GTY(()).
15254 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
15255 garbage collected.
15256 (ipa_load_from_parm_agg): Adjust declaration.
15257 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
15258 * ipa-profile.c (ipa_profile): Likewise.
15259 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
15260 (ipa_populate_param_decls): Make descriptors parameter garbage
15261 collected.
15262 (ipa_dump_param): Adjust to descriptors being a pointer.
15263 (ipa_alloc_node_params): Likewise.
15264 (ipa_initialize_node_params): Likewise.
15265 (load_from_param_1): Make descriptors parameter garbage collected.
15266 (load_from_unmodified_param): Likewise.
15267 (load_from_param): Likewise.
15268 (ipa_load_from_parm_agg): Likewise.
15269 (ipa_node_params::~ipa_node_params): Removed.
15270 (ipa_free_all_node_params): Remove call to delete operator.
15271 (ipa_node_params_t::insert): New.
15272 (ipa_node_params_t::remove): Likewise.
15273 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
15274 copy known_csts and known_contexts vectors.
15275 (ipa_read_node_info): Adjust to descriptors being a pointer.
15276 (ipcp_modif_dom_walker): Make m_descriptors field garbage
15277 collected.
15278 (ipcp_transform_function): Make descriptors variable garbage
15279 collected.
15280
15281 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
15282
15283 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
15284 * config/i386/avx512dqintrin.h: Ditto.
15285 * config/i386/avx512fintrin.h: Ditto.
15286 * gcc/config/i386/i386.c: Handle new builtins.
15287 * config/i386/i386-builtin.def: Add new builtins.
15288 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
15289 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
15290
15291 2017-01-23 Jakub Jelinek <jakub@redhat.com>
15292 Martin Liska <mliska@suse.cz>
15293
15294 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
15295 * asan.c (asan_expand_poison_ifn): Support stores and use
15296 appropriate ASAN report function.
15297 * internal-fn.c (expand_ASAN_POISON_USE): New function.
15298 * internal-fn.def (ASAN_POISON_USE): Declare.
15299 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
15300 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
15301 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
15302 ASAN_POISON calls w/o LHS.
15303 * tree-ssa.c (execute_update_addresses_taken): Create clobber
15304 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
15305 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
15306 * gimplify.c (asan_poison_variables): Add attribute
15307 use_after_scope_memory to variables that really needs to live
15308 in memory.
15309 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
15310 having the attribute.
15311
15312 2017-01-23 Martin Liska <mliska@suse.cz>
15313
15314 * asan.c (create_asan_shadow_var): New function.
15315 (asan_expand_poison_ifn): Likewise.
15316 * asan.h (asan_expand_poison_ifn): New declaration.
15317 * internal-fn.c (expand_ASAN_POISON): Likewise.
15318 * internal-fn.def (ASAN_POISON): New builtin.
15319 * sanopt.c (pass_sanopt::execute): Expand
15320 asan_expand_poison_ifn.
15321 * tree-inline.c (copy_decl_for_dup_finish): Make function
15322 external.
15323 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
15324 * tree-ssa.c (is_asan_mark_p): New function.
15325 (execute_update_addresses_taken): Rewrite local variables
15326 (identified just by use-after-scope as addressable) into SSA.
15327
15328 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
15329
15330 * doc/install.texi (Specific): opensource.apple.com uses https
15331 now. Remove trailing slash.
15332
15333 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
15334
15335 * README.Portability: Remove note on an Irix compatibility issue.
15336
15337 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
15338
15339 * gcov.c (INCLUDE_ALGORITHM): Define.
15340 (INCLUDE_VECTOR): Define.
15341 No longer include <vector> and <algorithm> directly.
15342
15343 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
15344
15345 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
15346 to https.
15347 * doc/invoke.texi (Code Gen Options): Ditto.
15348
15349 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
15350
15351 PR lto/78407
15352 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
15353
15354 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
15355
15356 rtl-optimization/79125
15357 * cprop.c (local_cprop_pass): Handle cases where we make an
15358 unconditional trap.
15359
15360 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
15361
15362 PR target/61729
15363 PR target/77850
15364 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
15365 read from, for big endian.
15366
15367 2017-01-20 Jiong Wang <jiong.wang@arm.com>
15368
15369 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
15370 register pauth builtins for LP64 only.
15371
15372 2017-01-20 Marek Polacek <polacek@redhat.com>
15373
15374 PR c/79152
15375 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
15376 non-case labels.
15377
15378 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
15379
15380 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
15381 of safelen status.
15382 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
15383 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
15384 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
15385
15386 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15387
15388 PR target/71270
15389 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
15390 in big-endian mode when they are not a single duplicated value.
15391
15392 2017-01-20 Richard Biener <rguenther@suse.de>
15393
15394 * BASE-VER: Bump to 7.0.1.
15395
15396 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
15397
15398 * omp-low.c (omplow_simd_context): New struct. Use it...
15399 (lower_rec_simd_input_clauses): ...here and...
15400 (lower_rec_input_clauses): ...here to hold common data. Adjust all
15401 references to idx, lane, max_vf, is_simt.
15402
15403 2017-01-20 Graham Markall <graham.markall@embecosm.com>
15404
15405 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
15406 mcpu=nps400.
15407
15408 2017-01-20 Martin Jambor <mjambor@suse.cz>
15409
15410 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
15411 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
15412 gt-hsa-common.h.
15413 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
15414 (GTFILES): Rename hsa.c to hsa-common.c.
15415 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
15416 * hsa-dump.c: Likewise.
15417 * hsa-gen.c: Likewise.
15418 * hsa-regalloc.c: Likewise.
15419 * ipa-hsa.c: Likewise.
15420 * omp-expand.c: Likewise.
15421 * omp-low.c: Likewise.
15422 * toplev.c: Likewise.
15423
15424 2017-01-20 Marek Polacek <polacek@redhat.com>
15425
15426 PR c/64279
15427 * doc/invoke.texi: Document -Wduplicated-branches.
15428 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
15429 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
15430 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
15431 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
15432 return 0 only when not OEP_LEXICOGRAPHIC.
15433 (fold_build_cleanup_point_expr): Use the expression
15434 location when building CLEANUP_POINT_EXPR.
15435 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
15436 * tree.c (add_expr): Handle error_mark_node.
15437
15438 2017-01-20 Martin Liska <mliska@suse.cz>
15439
15440 PR lto/69188
15441 * tree-profile.c (init_ic_make_global_vars): Do not call
15442 finalize_decl.
15443 (gimple_init_gcov_profiler): Likewise.
15444
15445 2017-01-20 Martin Liska <mliska@suse.cz>
15446
15447 PR ipa/71190
15448 * cgraph.h (maybe_create_reference): Remove argument and
15449 update comment.
15450 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
15451 argument.
15452 * ipa-cp.c (create_specialized_node): Likewise.
15453 * symtab.c (symtab_node::maybe_create_reference): Handle
15454 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
15455
15456 2017-01-20 Martin Liska <mliska@suse.cz>
15457
15458 * read-rtl-function.c (function_reader::create_function): Use
15459 build_decl instread of build_decl_stat.
15460
15461 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
15462
15463 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
15464 * config/i386/avx512dqintrin.h: Ditto.
15465 * config/i386/avx512fintrin.h: Ditto.
15466 * config/i386/i386-builtin-types.def: Add new types.
15467 * gcc/config/i386/i386.c: Handle new types.
15468 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
15469 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
15470 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
15471 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
15472 (__builtin_ia32_kshiftridi): New.
15473 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
15474
15475 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
15476
15477 PR target/78875
15478 PR target/79140
15479 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
15480 define to rs6000_init_stack_protect_guard.
15481 (rs6000_init_stack_protect_guard): New function.
15482
15483 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15484 Yunqiang Su <yunqiang.su@imgtec.com>
15485
15486 * config.gcc (supported_defaults): Add madd4.
15487 (with_madd4): Add validation.
15488 (all_defaults): Add madd4.
15489 * config/mips/mips.opt (mmadd4): New option.
15490 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15491 mmadd4.
15492 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15493 __mips_no_madd4.
15494 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
15495 (ISA_HAS_FUSED_MADD4): Likewise.
15496 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
15497 * gcc/doc/install.texi (--with-madd4): Document the new option.
15498
15499 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15500
15501 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
15502 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
15503 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
15504 (aarch64_init_pauth_hint_builtins): New.
15505 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
15506 (aarch64_expand_builtin): Expand new builtins.
15507
15508 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15509
15510 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
15511 * combine-stack-adj.c (no_unhandled_cfa): Handle
15512 REG_CFA_TOGGLE_RA_MANGLE.
15513 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
15514 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
15515 info for return address signing.
15516 (aarch64_expand_epilogue): Likewise.
15517
15518 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15519
15520 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
15521 * config/aarch64/aarch64-protos.h
15522 (aarch64_return_address_signing_enabled): New declaration.
15523 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
15524 New function.
15525 (aarch64_expand_prologue): Sign return address before it's pushed onto
15526 stack.
15527 (aarch64_expand_epilogue): Authenticate return address fetched from
15528 stack.
15529 (aarch64_override_options): Sanity check for ILP32 and ISA level.
15530 (aarch64_attributes): New function attributes for "sign-return-address".
15531 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
15532 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
15533 ("*do_return"): Generate combined instructions according to key index.
15534 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
15535 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
15536 iterators.
15537 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
15538 * config/aarch64/aarch64.opt (msign-return-address=): New.
15539 * doc/extend.texi (AArch64 Function Attributes): Documents
15540 "sign-return-address=".
15541 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
15542
15543 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15544
15545 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
15546 overall option summary.
15547
15548 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15549
15550 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
15551 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
15552 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
15553 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
15554
15555 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15556
15557 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
15558 -mpower9-minmax by default for -mcpu=power9.
15559 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
15560 128-bit floating point.
15561
15562 2017-01-20 Alan Modra <amodra@gmail.com>
15563
15564 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
15565 optimizing for size.
15566
15567 2017-01-20 Alan Modra <amodra@gmail.com>
15568
15569 PR target/79144
15570 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
15571 for strcmp and strncmp from corresponding builtin decl.
15572
15573 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
15574
15575 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
15576 instead of i386/rtems-64.h.
15577 * config/i386/rtems-64.h: Remove.
15578
15579 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
15580
15581 PR target/78478
15582 Revert:
15583 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
15584
15585 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
15586
15587 2017-01-19 Tamar Christina <tamar.christina@arm.com>
15588
15589 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
15590 Change int to HOST_WIDE_INT.
15591 * config/aarch64/aarch64-protos.h
15592 (aarch64_simd_gen_const_vector_dup): Likewise.
15593 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
15594
15595 2017-01-19 David Malcolm <dmalcolm@redhat.com>
15596
15597 * langhooks-def.h (lhd_type_for_size): New decl.
15598 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
15599 * langhooks.c (lhd_type_for_size): New function, taken from
15600 lto_type_for_size.
15601
15602 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
15603
15604 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
15605 define_bypass for CR latency.
15606 (power9-cracked-alu): Update bypass latency and remove power9-branch.
15607 (power9-alu2): Add define_bypass for CR latency.
15608 (power9-cmp): New.
15609 (power9-mul): Update insn latency.
15610 (power9-mul-compare): Update insn latency, bypass latency and remove
15611 power9-branch.
15612
15613 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15614
15615 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
15616 Delete.
15617 * config/aarch64/aarch64.md
15618 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
15619 aarch64_nopcrelative_literal_loads.
15620 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15621
15622 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
15623
15624 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
15625 TARGET_LOONGSON_3A.
15626 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
15627
15628 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
15629
15630 PR target/78176
15631 * config.gcc (supported_defaults): Add lxc1-sxc1.
15632 (with_lxc1_sxc1): Add validation.
15633 (all_defaults): Add lxc1-sxc1.
15634 * config/mips/mips.opt (mlxc1-sxc1): New option.
15635 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15636 mlxc1-sxc1.
15637 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15638 __mips_no_lxc1_sxc1.
15639 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
15640 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
15641 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
15642
15643 2017-01-19 Richard Biener <rguenther@suse.de>
15644
15645 PR tree-optimization/72488
15646 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
15647 sure to restore SSA info.
15648 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
15649
15650 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
15651
15652 PR rtl-optimization/79121
15653 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
15654 of the inner type when shifting an extended value.
15655
15656 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
15657
15658 PR lto/78407
15659 * symtab.c (symtab_node::equal_address_to): Fix comparing of
15660 interposable aliases.
15661
15662 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
15663
15664 PR target/78516
15665 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
15666 Use the evmergelohi instruction.
15667 (mov_si<mode>_e500_subreg4_2_le): Likewise.
15668 (mov_sitf_e500_subreg8_2_be): Likewise.
15669 (mov_sitf_e500_subreg12_2_le): Likewise.
15670 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
15671 (mov_si<mode>_e500_subreg4_2_be): Likewise.
15672 (mov_sitf_e500_subreg8_2_le): Likewise.
15673 (mov_sitf_e500_subreg12_2_be): Likewise.
15674
15675 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15676
15677 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
15678 attribute from vecsimple to vecperm.
15679 (altivec_vbpermq2): Likewise.
15680
15681 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15682
15683 PR target/79040
15684 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
15685
15686 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15687 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
15688 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
15689 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
15690 case where N arg is SIZE_MAX.
15691 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
15692 (cmpstrsi): Add pattern.
15693
15694 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15695
15696 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15697 __builtin_vec_revb builtins.
15698 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
15699 built-in functions to support generation of the ISA 3.0 XXBR<x>
15700 vector byte reverse instructions.
15701 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
15702 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
15703 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
15704 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
15705 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
15706 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
15707 (P9V_BUILTIN_VEC_REVB): Likewise.
15708 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
15709 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
15710 (p9_xxbrq_v16qi): Likewise.
15711 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
15712 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
15713 (p9_xxbrh_v8hi): Likewise.
15714 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
15715 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
15716 vec_revb built-in functions.
15717
15718 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
15719
15720 PR rtl-optimization/78952
15721 * config/i386/i386.md (any_extract): New code iterator.
15722 (*insvqi_2): Use any_extract for source operand.
15723 (*insvqi_3): Use any_shiftrt for source operand.
15724
15725 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
15726
15727 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
15728 New function.
15729 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
15730
15731 2017-01-18 Matthias Klose <doko@ubuntu.com>
15732
15733 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
15734
15735 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15736
15737 * config/rs6000/altivec.h (vec_bperm): Change #define.
15738 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
15739 (altivec_vbpermq2): New define_insn.
15740 (altivec_vbpermd): Likewise.
15741 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
15742 function interface.
15743 (VBPERMD): Likewise.
15744 (VBPERM): New polymorphic function interface.
15745 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
15746 Add entries for P9V_BUILTIN_VEC_VBPERM.
15747 * doc/extend.texi: Add interfaces for vec_bperm.
15748
15749 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15750
15751 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
15752 first letter of error messages.
15753 (s390_resolve_overloaded_builtin): Likewise.
15754 * config/s390/s390.c (s390_expand_builtin): Likewise.
15755 (s390_invalid_arg_for_unprototyped_fn): Likewise.
15756 (s390_valid_target_attribute_inner_p): Likewise.
15757 * config/s390/s390.md ("tabort"): Likewise.
15758
15759 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
15760
15761 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
15762 (ISA_AVOID_DIV_HILO): New macro.
15763 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
15764 (ISA_HAS_DDIV): Likewise.
15765
15766 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15767
15768 * doc/invoke.texi (fabi-version): Correct number of occurrences.
15769
15770 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15771
15772 * doc/invoke.texi (fabi-version): Spelling fix.
15773
15774 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15775
15776 PR c++/70182
15777 * doc/invoke.texi (fabi-version): Mention mangling fix for
15778 operator names.
15779
15780 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15781
15782 PR c++/77489
15783 * doc/invoke.texi (fabi-version): Document discriminator mangling.
15784
15785 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15786
15787 PR target/78875
15788 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
15789 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
15790 the new options.
15791 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
15792 flexible settings.
15793 (stack_protect_test): Ditto.
15794 * config/rs6000/rs6000.opt (mstack-protector-guard=,
15795 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
15796 options.
15797 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
15798 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
15799 -mstack-protector-guard-offset=.
15800 (RS/6000 and PowerPC Options): Ditto.
15801
15802 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
15803
15804 * config/i386/i386.h (MASK_CLASS_P): New define.
15805 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
15806 there are no registers from different register sets also when
15807 mask registers are used. Update function comment.
15808 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
15809 to (*k/*r) and (*k/*km) alternatives.
15810
15811 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
15812
15813 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
15814 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
15815 (EH_RETURN_HANDLER_RTX): New define.
15816 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
15817 Force frame pointer in EH return functions.
15818 (aarch64_expand_epilogue): Add barrier for eh_return.
15819 (aarch64_final_eh_return_addr): Remove.
15820 (aarch64_eh_return_handler_rtx): New function.
15821 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
15822 Remove.
15823 (aarch64_eh_return_handler_rtx): New prototype.
15824
15825 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15826
15827 * config/rs6000/altivec.h (vec_rlmi): New #define.
15828 (vec_vrlnm): Likewise.
15829 (vec_rlnm): Likewise.
15830 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
15831 (UNSPEC_VRLNM): Likewise.
15832 (VIlong): New mode iterator.
15833 (altivec_vrl<VI_char>mi): New define_insn.
15834 (altivec_vrl<VI_char>nm): Likewise.
15835 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
15836 function entry.
15837 (VRLDNM): Likewise.
15838 (RLNM): New polymorphic function entry.
15839 (VRLWMI): New monomorphic function entry.
15840 (VRLDMI): Likewise.
15841 (RLMI): New polymorphic function entry.
15842 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
15843 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
15844 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
15845 vec_vrlnm.
15846
15847 2017-01-17 Jakub Jelinek <jakub@redhat.com>
15848
15849 PR debug/78839
15850 * dwarf2out.c (field_byte_offset): Restore the
15851 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
15852 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
15853 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
15854 of build2 + fold.
15855
15856 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
15857
15858 PR ada/67205
15859 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
15860
15861 2017-01-17 Jakub Jelinek <jakub@redhat.com>
15862
15863 PR debug/71669
15864 * dwarf2out.c (add_data_member_location_attribute): For constant
15865 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
15866 instead of DW_AT_data_member_location, DW_AT_bit_offset and
15867 DW_AT_byte_size attributes.
15868
15869 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
15870
15871 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
15872 after forcing to constant memory when the code model is medium.
15873
15874 2017-01-17 Julia Koval <julia.koval@intel.com>
15875
15876 PR target/76731
15877 * config/i386/avx512fintrin.h
15878 (_mm512_i32gather_ps): Change __addr type to void const*.
15879 (_mm512_mask_i32gather_ps): Ditto.
15880 (_mm512_i32gather_pd): Ditto.
15881 (_mm512_mask_i32gather_pd): Ditto.
15882 (_mm512_i64gather_ps): Ditto.
15883 (_mm512_mask_i64gather_ps): Ditto.
15884 (_mm512_i64gather_pd): Ditto.
15885 (_mm512_mask_i64gather_pd): Ditto.
15886 (_mm512_i32gather_epi32): Ditto.
15887 (_mm512_mask_i32gather_epi32): Ditto.
15888 (_mm512_i32gather_epi64): Ditto.
15889 (_mm512_mask_i32gather_epi64): Ditto.
15890 (_mm512_i64gather_epi32): Ditto.
15891 (_mm512_mask_i64gather_epi32): Ditto.
15892 (_mm512_i64gather_epi64): Ditto.
15893 (_mm512_mask_i64gather_epi64): Ditto.
15894 (_mm512_i32scatter_ps): Change __addr type to void*.
15895 (_mm512_mask_i32scatter_ps): Ditto.
15896 (_mm512_i32scatter_pd): Ditto.
15897 (_mm512_mask_i32scatter_pd): Ditto.
15898 (_mm512_i64scatter_ps): Ditto.
15899 (_mm512_mask_i64scatter_ps): Ditto.
15900 (_mm512_i64scatter_pd): Ditto.
15901 (_mm512_mask_i64scatter_pd): Ditto.
15902 (_mm512_i32scatter_epi32): Ditto.
15903 (_mm512_mask_i32scatter_epi32): Ditto.
15904 (_mm512_i32scatter_epi64): Ditto.
15905 (_mm512_mask_i32scatter_epi64): Ditto.
15906 (_mm512_i64scatter_epi32): Ditto.
15907 (_mm512_mask_i64scatter_epi32): Ditto.
15908 (_mm512_i64scatter_epi64): Ditto.
15909 (_mm512_mask_i64scatter_epi64): Ditto.
15910 * config/i386/avx512pfintrin.h
15911 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
15912 (_mm512_mask_prefetch_i32gather_ps): Ditto.
15913 (_mm512_mask_prefetch_i64gather_pd): Ditto.
15914 (_mm512_mask_prefetch_i64gather_ps): Ditto.
15915 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
15916 (_mm512_prefetch_i32scatter_ps): Ditto.
15917 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
15918 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
15919 (_mm512_prefetch_i64scatter_pd): Ditto.
15920 (_mm512_prefetch_i64scatter_ps): Ditto.
15921 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
15922 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
15923 * config/i386/avx512vlintrin.h
15924 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
15925 (_mm_mmask_i32gather_ps): Ditto.
15926 (_mm256_mmask_i32gather_pd): Ditto.
15927 (_mm_mmask_i32gather_pd): Ditto.
15928 (_mm256_mmask_i64gather_ps): Ditto.
15929 (_mm_mmask_i64gather_ps): Ditto.
15930 (_mm256_mmask_i64gather_pd): Ditto.
15931 (_mm_mmask_i64gather_pd): Ditto.
15932 (_mm256_mmask_i32gather_epi32): Ditto.
15933 (_mm_mmask_i32gather_epi32): Ditto.
15934 (_mm256_mmask_i32gather_epi64): Ditto.
15935 (_mm_mmask_i32gather_epi64): Ditto.
15936 (_mm256_mmask_i64gather_epi32): Ditto.
15937 (_mm_mmask_i64gather_epi32): Ditto.
15938 (_mm256_mmask_i64gather_epi64): Ditto.
15939 (_mm_mmask_i64gather_epi64): Ditto.
15940 (_mm256_i32scatter_ps): Change __addr type to void*.
15941 (_mm256_mask_i32scatter_ps): Ditto.
15942 (_mm_i32scatter_ps): Ditto.
15943 (_mm_mask_i32scatter_ps): Ditto.
15944 (_mm256_i32scatter_pd): Ditto.
15945 (_mm256_mask_i32scatter_pd): Ditto.
15946 (_mm_i32scatter_pd): Ditto.
15947 (_mm_mask_i32scatter_pd): Ditto.
15948 (_mm256_i64scatter_ps): Ditto.
15949 (_mm256_mask_i64scatter_ps): Ditto.
15950 (_mm_i64scatter_ps): Ditto.
15951 (_mm_mask_i64scatter_ps): Ditto.
15952 (_mm256_i64scatter_pd): Ditto.
15953 (_mm256_mask_i64scatter_pd): Ditto.
15954 (_mm_i64scatter_pd): Ditto.
15955 (_mm_mask_i64scatter_pd): Ditto.
15956 (_mm256_i32scatter_epi32): Ditto.
15957 (_mm256_mask_i32scatter_epi32): Ditto.
15958 (_mm_i32scatter_epi32): Ditto.
15959 (_mm_mask_i32scatter_epi32): Ditto.
15960 (_mm256_i32scatter_epi64): Ditto.
15961 (_mm256_mask_i32scatter_epi64): Ditto.
15962 (_mm_i32scatter_epi64): Ditto.
15963 (_mm_mask_i32scatter_epi64): Ditto.
15964 (_mm256_i64scatter_epi32): Ditto.
15965 (_mm256_mask_i64scatter_epi32): Ditto.
15966 (_mm_i64scatter_epi32): Ditto.
15967 (_mm_mask_i64scatter_epi32): Ditto.
15968 (_mm256_i64scatter_epi64): Ditto.
15969 (_mm256_mask_i64scatter_epi64): Ditto.
15970 (_mm_i64scatter_epi64): Ditto.
15971 (_mm_mask_i64scatter_epi64): Ditto.
15972 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
15973 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
15974 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
15975 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
15976 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
15977 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
15978 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
15979 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
15980 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
15981 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
15982 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
15983 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
15984 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
15985 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
15986 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
15987 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
15988 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
15989 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
15990 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
15991 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
15992 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
15993 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
15994 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
15995 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
15996 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
15997 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
15998 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
15999 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
16000 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
16001 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
16002 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
16003 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
16004 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
16005 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
16006 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
16007 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
16008 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
16009 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
16010 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
16011 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
16012 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
16013 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
16014 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
16015 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
16016 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
16017 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
16018 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
16019 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
16020 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
16021 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
16022 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
16023 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
16024 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
16025 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
16026 definitions accordingly.
16027
16028 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
16029 Kuan-Lin Chen <kuanlinchentw@gmail.com>
16030
16031 PR target/79079
16032 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
16033 gen_lowpart.
16034
16035 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
16036
16037 PR target/79058
16038 * ira-conflicts.c (ira_build_conflicts): Update total conflict
16039 hard regs for inner regno.
16040
16041 2017-01-17 Martin Liska <mliska@suse.cz>
16042
16043 PR ipa/71207
16044 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
16045 assumption and add comment.
16046
16047 2017-01-17 Nathan Sidwell <nathan@acm.org>
16048
16049 * ipa-visibility.c (localize_node): New function, broken out of ...
16050 (function_and_variable_visibility): ... here. Call it.
16051
16052 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
16053
16054 PR middle-end/77445
16055 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
16056 correctly set frequency of oudgoing edge.
16057 (duplicate_thread_path): Fix profile updating.
16058
16059 2017-01-17 Jakub Jelinek <jakub@redhat.com>
16060
16061 PR other/79046
16062 * configure.ac: Add GCC_BASE_VER.
16063 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
16064 version from BASE-VER file.
16065 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
16066 (gcc.o): Depend on $(BASEVER).
16067 * common.opt (dumpfullversion): New option.
16068 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
16069 * doc/invoke.texi: Document -dumpfullversion.
16070 * doc/install.texi: Document --with-gcc-major-version-only.
16071 * configure: Regenerated.
16072
16073 2017-01-17 Richard Biener <rguenther@suse.de>
16074
16075 PR tree-optimization/71433
16076 * tree-vrp.c (register_new_assert_for): Merge same asserts
16077 on all incoming edges.
16078 (process_assert_insertions_for): Handle insertions at the
16079 beginning of BBs.
16080
16081 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
16082
16083 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
16084 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
16085
16086 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
16087
16088 PR target/78633
16089 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
16090 RTL sharing.
16091
16092 2017-01-17 Alan Modra <amodra@gmail.com>
16093
16094 PR target/79066
16095 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
16096 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
16097 symbolic stack limit when pic.
16098
16099 2017-01-16 Martin Sebor <msebor@redhat.com>
16100
16101 PR tree-optimization/78608
16102 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
16103
16104 2017-01-16 Jeff Law <law@redhat.com>
16105
16106 Revert:
16107 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
16108 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
16109 for several include directories that may be relative to sysroot.
16110 * config/i386/x-mingw32 (gplus_includedir): Define.
16111 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
16112 (native_system_includedir): Likewise.
16113 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
16114 override if TARGET_SYSTEM_ROOT is defined.
16115 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
16116
16117 PR tree-optimization/79090
16118 PR tree-optimization/33562
16119 PR tree-optimization/61912
16120 PR tree-optimization/77485
16121 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
16122 and computed trims into the dump file.
16123
16124 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
16125
16126 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
16127
16128 2017-01-16 Jakub Jelinek <jakub@redhat.com>
16129
16130 PR c/79089
16131 * gimplify.c (gimplify_init_constructor): If want_value and
16132 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
16133 fix.
16134
16135 PR target/79080
16136 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
16137 sequence. Formatting fixes.
16138 (doloop_optimize): Formatting fixes.
16139
16140 PR driver/49726
16141 * gcc.c (debug_level_greater_than_spec_func): New function.
16142 (static_spec_functions): Add debug-level-gt spec function.
16143 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
16144 !g0.
16145 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
16146 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
16147 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
16148 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
16149 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
16150 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
16151
16152 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
16153
16154 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
16155 QImode fixups to general and mask registers only.
16156
16157 2017-01-16 Carl Love <cel@us.ibm.com>
16158
16159 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
16160 for built-in functions
16161 vector signed char vec_nabs (vector signed char)
16162 vector signed short vec_nabs (vector signed short)
16163 vector signed int vec_nabs (vector signed int)
16164 vector signed long long vec_nabs (vector signed long long)
16165 vector float vec_nabs (vector float)
16166 vector double vec_nabs (vector double)
16167 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
16168 and NABS overload.
16169 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
16170 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
16171 * doc/extend.texi: Update the documentation file for the new built-in
16172 functions.
16173
16174 2017-01-16 Martin Sebor <msebor@redhat.com>
16175
16176 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
16177 message.
16178
16179 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16180
16181 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
16182 UNSPEC_VSX__XXSPLTD to require special splat handling.
16183
16184 2017-01-16 David Malcolm <dmalcolm@redhat.com>
16185
16186 PR bootstrap/78616
16187 * system.h: Poison strndup.
16188
16189 2017-01-16 Alan Modra <amodra@gmail.com>
16190
16191 PR target/79098
16192 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
16193 use a switch.
16194
16195 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
16196
16197 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
16198
16199 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
16200
16201 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
16202 call recog here. Assert that INSN_CODE (insn) is non-negative.
16203
16204 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
16205
16206 PR target/72749
16207 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
16208 fallthrough.
16209 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
16210 in the currently scheduled RTL fragment.
16211
16212 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
16213
16214 PR rtl-optimization/78751
16215 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
16216 give up.
16217
16218 2017-01-14 Jeff Law <law@redhat.com>
16219
16220 PR tree-optimization/79090
16221 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
16222 variable length stores.
16223 (compute_trims): Delete dead assignment to *trim_tail.
16224 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
16225 zero length.
16226
16227 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
16228
16229 PR rtl-optimization/78626
16230 PR rtl-optimization/78727
16231 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
16232 of a block, and split such blocks after everything else is finished.
16233
16234 2017-01-14 Alan Modra <amodra@gmail.com>
16235
16236 PR target/72749
16237 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
16238 target legitimate_combined_insn.
16239 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
16240 (rs6000_legitimate_combined_insn): New function.
16241 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
16242 all uses.
16243 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
16244 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
16245 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
16246
16247 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
16248
16249 * doc/frontends.texi (G++ and GCC): Remove references to Java.
16250
16251 2017-01-13 Jeff Law <law@redhat.com>
16252
16253 PR tree-optimization/33562
16254 PR tree-optimization/61912
16255 PR tree-optimization/77485
16256 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
16257 a statement.
16258 (delete_dead_assignment): Likewise.
16259 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
16260 statement to delete_dead_call and delete_dead_assignment.
16261
16262 2017-01-13 David Malcolm <dmalcolm@redhat.com>
16263
16264 PR c/78304
16265 * substring-locations.c (format_warning_va): Strengthen case 1 so
16266 that both endpoints of the substring must be within the format
16267 range for just the substring to be printed.
16268
16269 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
16270
16271 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
16272 * config/i386/i386.c (ix86_target_string): Add missing options
16273 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
16274 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
16275 flags_other and ix86_target_other to flags2_other. Display unknown
16276 isa2 options.
16277 (ix86_valid_target_attribute_inner_p): Add missing options and
16278 reorder options by implied ISAs, as in ix86_target_string.
16279
16280 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
16281
16282 * hash-table.h (hash_table::too_empty_p): New function.
16283 (hash_table::expand): Use it.
16284 (hash_table::traverse): Likewise.
16285 (hash_table::empty_slot): Use sizeof (value_type) instead of
16286 sizeof (PTR) to convert bytes to elements. Shrink the table
16287 if the current size is excessive for the current number of
16288 elements.
16289
16290 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
16291
16292 * ira-costs.c (record_reg_classes): Break from the inner loop
16293 early once alt_fail is known to be true. Update outer loop
16294 handling accordingly.
16295
16296 2017-01-13 Jeff Law <law@redhat.com>
16297
16298 * tree-ssa-dse.c (decrement_count): New function.
16299 (increment_start_addr, maybe_trim_memstar_call): Likewise.
16300 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
16301 when we know the partially dead statement is a mem* function.
16302
16303 PR tree-optimization/61912
16304 PR tree-optimization/77485
16305 * tree-ssa-dse.c: Include expr.h.
16306 (maybe_trim_constructor_store): New function.
16307 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
16308
16309 PR tree-optimization/33562
16310 PR tree-optimization/61912
16311 PR tree-optimization/77485
16312 * doc/invoke.texi: Document new dse-max-object-size param.
16313 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
16314 * tree-ssa-dse.c: Include params.h.
16315 (dse_store_status): New enum.
16316 (initialize_ao_ref_for_dse): New, partially extracted from
16317 dse_optimize_stmt.
16318 (valid_ao_ref_for_dse, normalize_ref): New.
16319 (setup_live_bytes_from_ref, compute_trims): Likewise.
16320 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
16321 (maybe_trim_partially_dead_store): Likewise.
16322 (maybe_trim_complex_store): Likewise.
16323 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
16324 Track what bytes live from the original store. Return tri-state
16325 for dead, partially dead or live.
16326 (dse_dom_walker): Add constructor, destructor and new private members.
16327 (delete_dead_call, delete_dead_assignment): New extracted from
16328 dse_optimize_stmt.
16329 (dse_optimize_stmt): Make a member of dse_dom_walker.
16330 Use initialize_ao_ref_for_dse.
16331
16332 PR tree-optimization/33562
16333 PR tree-optimization/61912
16334 PR tree-optimization/77485
16335 * sbitmap.h (bitmap_count_bits): Prototype.
16336 (bitmap_clear_range, bitmap_set_range): Likewise.
16337 * sbitmap.c (bitmap_clear_range): New function.
16338 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
16339
16340 2017-01-13 Martin Liska <mliska@suse.cz>
16341
16342 PR ipa/79043
16343 * function.c (set_cfun): Add new argument force.
16344 * function.h (set_cfun): Likewise.
16345 * ipa-inline-transform.c (inline_call): Use the function when
16346 strict alising from is dropped for function we inline to.
16347
16348 2017-01-13 Richard Biener <rguenther@suse.de>
16349
16350 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
16351 for dumping GIMPLE INTEGER_CSTs.
16352
16353 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16354
16355 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
16356 to 201112L since C++17.
16357
16358 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
16359
16360 PR sanitizer/78887
16361 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
16362 if -fsanitize=kernel-address is present.
16363
16364 2017-01-13 Richard Biener <rguenther@suse.de>
16365
16366 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
16367 as _Literal ( type ) number in case usual suffixes do not
16368 preserve all information.
16369
16370 2017-01-13 Richard Biener <rguenther@suse.de>
16371
16372 PR tree-optimization/77283
16373 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
16374 and ssa-iterators.h.
16375 (is_feasible_trace): Implement a cost model based on joiner
16376 PHI node uses.
16377
16378 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16379
16380 PR target/79004
16381 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
16382 char or short to __float128/_Float128 directly.
16383
16384 2017-01-12 Martin Sebor <msebor@redhat.com>
16385
16386 to -Wformat-overflow.
16387 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
16388 (min_bytes_remaining): Same.
16389 (get_string_length): Same.
16390 (format_string): Same.
16391 (format_directive): Same.
16392 (add_bytes): Same.
16393 (pass_sprintf_length::handle_gimple_call): Same.
16394
16395 2017-01-12 Jakub Jelinek <jakub@redhat.com>
16396
16397 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
16398 info.nowrite calls with no lhs that can't throw. Return bool
16399 whether gsi_remove has been called or not.
16400 (pass_sprintf_length::handle_gimple_call): Return bool whether
16401 try_substitute_return_value called gsi_remove. Formatting fix.
16402 (pass_sprintf_length::execute): Don't use gsi_remove if
16403 handle_gimple_call returned true.
16404
16405 PR bootstrap/79069
16406 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
16407 be removed due to side-effects, don't remove following barrier nor
16408 turn the successor edge into fallthru edge.
16409
16410 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16411
16412 PR target/79044
16413 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
16414 element-reversing loads and stores as not swappable.
16415
16416 2017-01-12 Nathan Sidwell <nathan@acm.org>
16417 Nicolai Stange <nicstange@gmail.com>
16418
16419 * combine.c (try_combine): Don't ignore result of overlap checking
16420 loop. Combine overlap & asm check into single loop.
16421
16422 2017-01-12 Richard Biener <rguenther@suse.de>
16423
16424 * tree-pretty-print.c (dump_generic_node): Provide -gimple
16425 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
16426
16427 2017-01-12 Richard Biener <rguenther@suse.de>
16428
16429 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
16430 and TS_TARGET_OPTION directly derive from TS_BASE.
16431 * tree-core.h (tree_optimization_option): Derive from tree_base.
16432 (tree_target_option): Likewise.
16433
16434 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
16435
16436 * config/i386/i386.c (memory_address_length): Increase len
16437 only when rip_relative_addr_p returns false.
16438
16439 2017-01-11 Julia Koval <julia.koval@intel.com>
16440
16441 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
16442 (OPTION_MASK_ISA_SGX_SET): New.
16443 (ix86_handle_option): Handle OPT_msgx.
16444 * config.gcc: Added sgxintrin.h.
16445 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
16446 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
16447 * config/i386/i386.c (ix86_target_string): Add -msgx.
16448 (PTA_SGX): New.
16449 (ix86_option_override_internal): Handle new options.
16450 (ix86_valid_target_attribute_inner_p): Add sgx.
16451 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
16452 * config/i386/i386.opt: Add msgx.
16453 * config/i386/sgxintrin.h: New file.
16454 * config/i386/x86intrin.h: Add sgxintrin.h.
16455
16456 2017-01-11 Jakub Jelinek <jakub@redhat.com>
16457
16458 PR c++/71537
16459 * fold-const.c (maybe_nonzero_address): Return 1 for function
16460 local objects.
16461 (tree_single_nonzero_warnv_p): Don't handle function local objects
16462 here.
16463
16464 PR c++/72813
16465 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
16466 of c-header.
16467
16468 2017-01-11 David Malcolm <dmalcolm@redhat.com>
16469
16470 PR driver/78877
16471 * opts.c: Include "spellcheck.h"
16472 (struct string_fragment): New struct.
16473 (struct edit_distance_traits<const string_fragment &>): New
16474 struct.
16475 (get_closest_sanitizer_option): New function.
16476 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
16477
16478 2017-01-11 Jakub Jelinek <jakub@redhat.com>
16479
16480 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
16481 by 12.
16482 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
16483 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
16484 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
16485 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
16486 for initial die_offset if dwarf_split_debug_info.
16487 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
16488 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
16489 fields.
16490 (output_skeleton_debug_sections): Formatting fix. Use
16491 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
16492 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
16493
16494 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
16495
16496 * config/arm/cortex-a53.md: Add bypasses for
16497 cortex_a53_r2f_cvt.
16498 (cortex_a53_r2f): Only use for transfers.
16499 (cortex_a53_f2r): Likewise.
16500 (cortex_a53_r2f_cvt): Add reservation for conversions.
16501 (cortex_a53_f2r_cvt): Likewise.
16502
16503 2017-01-11 Tamar Christina <tamar.christina@arm.com>
16504
16505 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
16506 to all inlined functions, change static to extern.
16507
16508 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
16509
16510 PR target/78253
16511 * config/arm/arm.c (legitimize_pic_address): Handle reference to
16512 weak symbol.
16513 (arm_assemble_integer): Likewise.
16514
16515 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
16516
16517 * config.gcc: Use new awk script to check CPU, FPU and architecture
16518 parameters for --with-... options.
16519 * config/arm/parsecpu.awk: New file
16520 * config/arm/arm-cpus.in: New file.
16521 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
16522 files.
16523 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
16524 files.
16525 * config/arm/t-arm: Update dependency rules.
16526 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
16527 of processing .def files.
16528 * config/arm/genopt.sh: Deleted.
16529 * config/arm/gentune.sh: Deleted.
16530 * config/arm/arm-cores.def: Deleted.
16531 * config/arm/arm-arches.def: Deleted.
16532 * config/arm/arm-fpus.def: Deleted.
16533 * config/arm/arm-tune.md: Regenerated.
16534 * config/arm/arm-tables.opt: Regenerated.
16535 * config/arm/arm-cpu.h: New generated file.
16536 * config/arm/arm-cpu-data.h: New generated file.
16537 * config/arm/arm-cpu-cdata.h: New generated file.
16538
16539 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
16540
16541 PR lto/79042
16542 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
16543 bit.
16544 (input_varpool_node): Unpack dynamically_initialized bit.
16545
16546 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
16547
16548 PR rtl-optimization/79032
16549 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
16550 the alignment of the adjusted memory reference against that of MODE,
16551 instead of the alignment of the original memory reference.
16552
16553 2017-01-11 Martin Jambor <mjambor@suse.cz>
16554
16555 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
16556 test.
16557 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
16558 decorated functions.
16559
16560 2017-01-11 Richard Biener <rguenther@suse.de>
16561
16562 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
16563 set range/nonnull info for PHI results. Do not set it on
16564 stmts marked for removal.
16565
16566 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
16567
16568 * expr.c (store_field): In the bitfield case, fetch the return value
16569 from the registers before applying a single big-endian adjustment.
16570 Always do a final load for a BLKmode value not larger than a word.
16571
16572 2017-01-10 David Malcolm <dmalcolm@redhat.com>
16573
16574 PR c++/77949
16575 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16576 that we correctly handle column numbers greater than
16577 LINE_MAP_MAX_COLUMN_NUMBER.
16578
16579 2017-01-10 Martin Sebor <msebor@redhat.com>
16580
16581 PR middle-end/78245
16582 * gimple-ssa-sprintf.c (get_destination_size): Call
16583 {init,fini}object_sizes.
16584 * tree-object-size.c (addr_object_size): Adjust.
16585 (pass_through_call): Adjust.
16586 (pass_object_sizes::execute): Adjust.
16587 * tree-object-size.h (fini_object_sizes): Declare.
16588
16589 2017-01-10 Martin Sebor <msebor@redhat.com>
16590
16591 PR tree-optimization/78775
16592 * builtins.c (get_size_range): Move...
16593 * calls.c: ...to here.
16594 (alloc_max_size): Accept zero argument.
16595 (operand_signed_p): Remove.
16596 (maybe_warn_alloc_args_overflow): Call get_size_range.
16597 * calls.h (get_size_range): Declare.
16598
16599 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
16600
16601 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
16602 from TI's devices.csv file as of September 2016.
16603 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
16604
16605 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
16606
16607 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
16608 * doc/invoke.texi: Likewise.
16609 * doc/md.texi: Likewise.
16610 * doc/objc.texi: Likewise.
16611
16612 2017-01-10 Joshua Conner <joshconner@google.com>
16613
16614 * config/arm/fuchsia-elf.h: New file.
16615 * config/fuchsia.h: New file.
16616 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
16617 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
16618 targets.
16619 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
16620
16621 2016-01-10 Richard Biener <rguenther@suse.de>
16622
16623 PR tree-optimization/79034
16624 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
16625 Propagate out degenerate PHIs in the joiner.
16626
16627 2017-01-10 Martin Liska <mliska@suse.cz>
16628
16629 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
16630 (sort_congruence_classes_by_decl_uid): Likewise.
16631 (sort_congruence_class_groups_by_decl_uid): Likewise.
16632 (sem_item_optimizer::merge_classes): Sort class, groups in these
16633 classes and members in the groups by DECL_UID of declarations.
16634 This would make merge operations stable.
16635
16636 2017-01-10 Martin Liska <mliska@suse.cz>
16637
16638 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
16639 usage of m_classes_vec.
16640 (sem_item_optimizer::~sem_item_optimizer): Likewise.
16641 (sem_item_optimizer::get_group_by_hash): Likewise.
16642 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
16643 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
16644 (sem_item_optimizer::verify_classes): Likewise.
16645 (sem_item_optimizer::process_cong_reduction): Likewise.
16646 (sem_item_optimizer::dump_cong_classes): Likewise.
16647 (sem_item_optimizer::merge_classes): Likewise.
16648 * ipa-icf.h (congruence_class_hash): Rename from
16649 congruence_class_group_hash. Remove declaration of m_classes_vec.
16650
16651 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
16652
16653 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
16654 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
16655 * config.gcc: Add avx512vpopcntdqintrin.h.
16656 * config/i386/avx512vpopcntdqintrin.h: New.
16657 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
16658 * config/i386/i386-builtin-types.def: Add new types.
16659 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
16660 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
16661 __builtin_ia32_vpopcountq_v8di_mask): New.
16662 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16663 __AVX512VPOPCNTDQ__.
16664 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
16665 (PTA_AVX512VPOPCNTDQ): Define.
16666 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
16667 TARGET_AVX512VPOPCNTDQ_P): Define.
16668 * config/i386/i386.opt: Add mavx512vpopcntdq.
16669 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
16670 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
16671
16672 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16673
16674 PR middle-end/77484
16675 * predict.def (PRED_CALL): Set to 67.
16676
16677 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
16678
16679 * expr.c (store_field): In the bitfield case, if the value comes from
16680 a function call and is of an aggregate type returned in registers, do
16681 not modify the field mode; extract the value in all cases if the mode
16682 is BLKmode and the size is not larger than a word.
16683
16684 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
16685
16686 PR target/71017
16687 * config/i386/cpuid.h: Fix undefined behavior.
16688
16689 2017-01-04 Jeff Law <law@redhat.com>
16690
16691 PR tree-optimization/79007
16692 PR tree-optimization/67955
16693 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
16694 conservative for pt.null when flag_non_call_exceptions is on.
16695
16696 2017-01-09 Jakub Jelinek <jakub@redhat.com>
16697
16698 PR translation/79019
16699 PR translation/79020
16700 * params.def (PARAM_INLINE_MIN_SPEEDUP,
16701 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
16702 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
16703 in descriptions.
16704 * config/avr/avr.opt (maccumulate-args): Likewise.
16705 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
16706 * common.opt (freport-bug): Likewise.
16707 * cif-code.def (CIF_FINAL_ERROR): Likewise.
16708 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
16709 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
16710 translatable string.
16711 * config/i386/i386.c (function_value_32): Likewise.
16712 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
16713 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
16714 Likewise.
16715 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
16716 * common/config/msp430/msp430-common.c (msp430_handle_option):
16717 Likewise.
16718 * symtab.c (symtab_node::verify_base): Likewise.
16719 * opts.c (set_debug_level): Likewise.
16720 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
16721 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16722 missing whitespace to translatable strings.
16723 * config/avr/avr.md (bswapsi2): Fix typo in comment.
16724 * config/sh/superh.h: Likewise.
16725 * config/i386/xopintrin.h: Likewise.
16726 * config/i386/znver1.md: Likewise.
16727 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
16728 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
16729 * double-int.h (struct double_int): Likewise.
16730 * double-int.c (div_and_round_double): Likewise.
16731 * wide-int.cc: Likewise.
16732 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
16734 * cfgcleanup.c (crossjumps_occured): Renamed to ...
16735 (crossjumps_occurred): ... this.
16736 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
16737 Adjust all uses.
16738
16739 PR tree-optimization/78899
16740 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
16741 returning bool return struct loop *, NULL for failure and the new
16742 loop on success.
16743 (versionable_outer_loop_p): Don't version outer loop if it has
16744 dont_vectorized bit set.
16745 (tree_if_conversion): When versioning outer loop, ensure
16746 tree_if_conversion is performed also on the inner loop of the
16747 non-vectorizable outer loop copy.
16748 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
16749 LOOP_VECTORIZED in inner loop of the scalar outer loop and
16750 prevent vectorization of it.
16751 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
16752 the outer loop vectorization of the non-scalar version is attempted
16753 before vectorization of the inner loop in scalar version. If
16754 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
16755 vectorization of its inner loop.
16756 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
16757 has 2 inner loops, rename also on edges from bb whose single pred
16758 is outer_loop->header. Fix typo in function comment.
16759
16760 2017-01-09 Martin Sebor <msebor@redhat.com>
16761
16762 PR bootstrap/79033
16763 * asan.c (asan_emit_stack_protection): Increase local buffer size
16764 to avoid snprintf truncation warning.
16765
16766 2017-01-09 Andrew Pinski <apinski@cavium.com>
16767
16768 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
16769 to reference thunderx2t99 for the tuning structure
16770 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
16771 Rename to ...
16772 (thunderx2t99_extra_costs): This.
16773 * config/aarch64/aarch64-tune.md: Regenerate.
16774 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
16775 (vulcan_addrcost_table): This.
16776 (vulcan_regmove_cost): Rename to ...
16777 (thunderx2t99_regmove_cost): This.
16778 (vulcan_vector_cost): Rename to ...
16779 (thunderx2t99_vector_cost): this.
16780 (vulcan_branch_cost): Rename to ...
16781 (thunderx2t99_branch_cost): This.
16782 (vulcan_tunings): Rename to ...
16783 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
16784 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
16785
16786 2017-01-09 Martin Jambor <mjambor@suse.cz>
16787
16788 PR ipa/78365
16789 PR ipa/78599
16790 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
16791 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
16792 (propagate_vr_accross_jump_function): Use the above function for all
16793 value range computations for pass-through jump functions and type
16794 converasion from explicit value range values.
16795 (ipcp_propagate_stage): Do not attempt to deduce types of formal
16796 parameters from TYPE_ARG_TYPES.
16797 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
16798 (ipa_write_node_info): Stream type of the actual argument.
16799 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
16800
16801 2017-01-09 Martin Liska <mliska@suse.cz>
16802
16803 PR pch/78970
16804 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
16805 (lookup_compiler): Do not show error message with have_E.
16806
16807 2017-01-09 Jakub Jelinek <jakub@redhat.com>
16808
16809 PR tree-optimization/78938
16810 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
16811 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
16812 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
16813 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
16814 fixes.
16815
16816 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16817
16818 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
16819 is const0_rtx.
16820
16821 2017-01-09 Richard Biener <rguenther@suse.de>
16822
16823 PR tree-optimization/78997
16824 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
16825 name condition properly.
16826
16827 2017-01-09 Richard Biener <rguenther@suse.de>
16828
16829 PR debug/79000
16830 * dwarf2out.c (is_cxx): New overload with context.
16831 (is_naming_typedef_decl): Use it.
16832
16833 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16834
16835 * invoke.texi (Option Summary): Correct spacing in option lists
16836 and add line breaks to fix over-long lines.
16837
16838 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16839
16840 PR middle-end/17660
16841
16842 * extend.texi (Common Variable Attributes): Add xref to GCC
16843 Internals manual to explain mode attribute keywords.
16844
16845 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16846
16847 PR other/16519
16848 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
16849 and Preprocessor Options.
16850 (Options for Linking): Document -pthread here....
16851 (RS/6000 and PowerPC Options): ...not here.
16852 (Solaris 2 Options): ...or here.
16853 * doc/cppopts.texi: Document -pthread.
16854
16855 2017-01-08 Martin Sebor <msebor@redhat.com>
16856
16857 PR middle-end/77708
16858 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
16859 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
16860 New member functions.
16861 (format_directive): Used them.
16862 (add_bytes): Same.
16863 (pass_sprintf_length::handle_gimple_call): Same.
16864 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
16865 to avoid truncation for any argument.
16866 (extract_affine_mul): Same.
16867 * tree.c (get_file_function_name): Same.
16868
16869 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16870
16871 PR middle-end/77484
16872 * predict.def (PRED_INDIR_CALL): Set to 86.
16873
16874 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16875
16876 PR preprocessor/54124
16877 * doc/cppopts.texi: Reformat -d subtable to list the full name
16878 of the options. Add cross-reference to the docs for the general
16879 compiler -d options.
16880 * doc/invoke.texi (Developer Options): Add cross-reference to the
16881 preprocessor-specific -d option documentation.
16882
16883 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16884
16885 PR preprocessor/13498
16886 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
16887 redudant material, and reflect new command-line options.
16888 (System Headers): Likewise.
16889
16890 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16891
16892 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
16893 -isystem, and -idirafter. Copy-edit.
16894 * doc/cppopts.texi: Copy-edit. Remove contradiction about
16895 default for -ftrack-macro-expansion. Delete obsolete and
16896 badly-formatted implementation details about -fdebug-cpp output.
16897 * doc/cppwarnopts.texi: Copy-edit.
16898
16899 2017-01-07 David Malcolm <dmalcolm@redhat.com>
16900
16901 PR c++/72803
16902 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16903 that the transition from a max line width >= 1<<10 to narrower
16904 lines works correctly.
16905
16906 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
16907
16908 * doc/options.texi (PerFunction): New.
16909 * opt-functions.awk (switch_flags): Map both Optimization and
16910 PerFunction to CL_OPTIMIZATION.
16911 * opth-gen.awk: Test for PerFunction flag along with
16912 Optimization.
16913 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
16914 it only when the latter is present. Skip those that don't in
16915 the hash function generator.
16916 * common.opt (fvar-tracking): Mark as PerFunction instead of
16917 Optimization.
16918 (fvar-tracking-assignments): Likewise.
16919 (fvar-tracking-assignments-toggle): Likewise.
16920 (fvar-tracking-uninit): Likewise.
16921
16922 2017-01-07 Jakub Jelinek <jakub@redhat.com>
16923
16924 PR translation/79018
16925 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
16926 the and store.
16927
16928 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
16929
16930 PR target/57583
16931 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
16932 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
16933 TARGET_LONG_JUMP_TABLE_OFFSETS.
16934 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
16935 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
16936 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
16937 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
16938 * config/m68k/m68k.md (tablejump expander): Likewise.
16939 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
16940 TARGET_LONG_JUMP_TABLE_OFFSETS.
16941 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
16942 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
16943
16944 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
16945 David Holsgrove <david.holsgrove@xilinx.com>
16946
16947 * common/config/microblaze/microblaze-common.c
16948 (TARGET_EXCEPT_UNWIND_INFO): Remove.
16949 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
16950 New prototype.
16951 * config/microblaze/microblaze.c (microblaze_must_save_register)
16952 (microblaze_expand_epilogue, microblaze_return_addr): Handle
16953 calls_eh_return.
16954 (microblaze_eh_return): New function.
16955 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
16956 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
16957 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
16958 * config/microblaze/microblaze.md (eh_return): New pattern.
16959
16960 2017-01-06 Jakub Jelinek <jakub@redhat.com>
16961
16962 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
16963 GCC_DIAGNOSTIC_STRINGIFY): Define.
16964
16965 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
16966
16967 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16968
16969 * config/arm/arm.md (<mcrr>): New.
16970 (<mrrc>): New.
16971 * config/arm/arm.c (arm_arch5te): New.
16972 (arm_option_override): Set arm_arch5te.
16973 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
16974 and mrrc2.
16975 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
16976 (arm_mcrr_qualifiers): ... this. New.
16977 (MRRC_QUALIFIERS): Define to...
16978 (arm_mrrc_qualifiers): ... this. New.
16979 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
16980 __arm_mrrc2): New.
16981 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
16982 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
16983 (MRRCI, mrrc, MRRC): New.
16984 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
16985 VUNSPEC_MRRC2): New.
16986
16987 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16988
16989 * config/arm/arm.md (<mcr>): New.
16990 (<mrc>): New.
16991 * config/arm/arm.c (arm_coproc_builtin_available): Add
16992 support for mcr, mrc, mcr2 and mrc2.
16993 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
16994 (arm_mcr_qualifiers): ... this. New.
16995 (MRC_QUALIFIERS): Define to ...
16996 (arm_mrc_qualifiers): ... this. New.
16997 (MCR_QUALIFIERS): Define to ...
16998 (arm_mcr_qualifiers): ... this. New.
16999 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
17000 __arm_mrc2): New.
17001 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
17002 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
17003 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
17004 VUNSPEC_MRC2): New.
17005
17006 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
17007
17008 * config/arm/arm.md (*ldc): New.
17009 (*stc): New.
17010 (<ldc>): New.
17011 (<stc>): New.
17012 * config/arm/arm.c (arm_coproc_builtin_available): Add
17013 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
17014 (arm_coproc_ldc_stc_legitimate_address): New.
17015 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
17016 'qualifier_const_pointer'.
17017 (LDC_QUALIFIERS): Define to...
17018 (arm_ldc_qualifiers): ... this. New.
17019 (STC_QUALIFIERS): Define to...
17020 (arm_stc_qualifiers): ... this. New.
17021 * config/arm/arm-protos.h
17022 (arm_coproc_ldc_stc_legitimate_address): New.
17023 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
17024 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
17025 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
17026 stc2, stcl, stc2l): New.
17027 * config/arm/constraints.md (Uz): New.
17028 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
17029 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
17030 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
17031 VUNSPEC_STC2L): New.
17032
17033 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
17034
17035 * config/arm/arm.md (<cdp>): New.
17036 * config/arm/arm.c (neon_const_bounds): Rename this ...
17037 (arm_const_bounds): ... this.
17038 (arm_coproc_builtin_available): New.
17039 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
17040 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
17041 (CDP_QUALIFIERS): Define to...
17042 (arm_cdp_qualifiers): ... this. New.
17043 (void_UP): Define.
17044 (arm_expand_builtin_args): Add case for 6 arguments.
17045 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
17046 (arm_const_bounds): ... this.
17047 (arm_coproc_builtin_available): New.
17048 * config/arm/arm_acle.h (__arm_cdp): New.
17049 (__arm_cdp2): New.
17050 * config/arm/arm_acle_builtins.def (cdp): New.
17051 (cdp2): New.
17052 * config/arm/iterators.md (CDPI,CDP,cdp): New.
17053 * config/arm/neon.md: Rename all 'neon_const_bounds' to
17054 'arm_const_bounds'.
17055 * config/arm/types.md (coproc): New.
17056 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
17057 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
17058 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
17059 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
17060
17061 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
17062
17063 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
17064 (UBINOP_QUALIFIERS): New.
17065 (si_UP): Define.
17066 (acle_builtin_data): New. Change comment.
17067 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
17068 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
17069 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
17070 arm_acle_builtins.def.
17071 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
17072 (arm_init_acle_builtins): New.
17073 (CRC32_BUILTIN): Remove.
17074 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
17075 crc32cb, crc32ch and crc32cw.
17076 (arm_init_crc32_builtins): Remove.
17077 (arm_init_builtins): Use arm_init_acle_builtins rather
17078 than arm_init_crc32_builtins.
17079 (arm_expand_acle_builtin): New.
17080 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
17081 * config/arm/arm_acle_builtins.def: New.
17082
17083 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
17084
17085 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
17086 (arm_builtin_datum): ... this.
17087 (arm_init_neon_builtin): Rename to ...
17088 (arm_init_builtin): ... this. Add a new parameters PREFIX
17089 and USE_SIG_IN_NAME.
17090 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
17091 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
17092 'arm_builtin_datum'.
17093 (arm_init_vfp_builtins): Likewise.
17094 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
17095 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
17096 (arm_expand_neon_args): Rename to ...
17097 (arm_expand_builtin_args): ... this. Rename builtin_arg
17098 enum values and differentiate between ARG_BUILTIN_MEMORY
17099 and ARG_BUILTIN_NEON_MEMORY.
17100 (arm_expand_neon_builtin_1): Rename to ...
17101 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
17102 values, arm_expand_builtin_args and add bool parameter NEON.
17103 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
17104 (arm_expand_vfp_builtin): Likewise.
17105 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
17106
17107 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17108
17109 PR middle-end/77484
17110 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
17111 * predict.c (tree_estimate_probability_bb): Reverse direction of
17112 polymorphic call predictor.
17113
17114 2017-01-06 David Malcolm <dmalcolm@redhat.com>
17115
17116 * passes.c (execute_one_pass): Split out pass-skipping logic into...
17117 (determine_pass_name_match): ...this new function and...
17118 (should_skip_pass_p): ...this new function.
17119
17120 2017-01-06 Nathan Sidwell <nathan@acm.org>
17121
17122 * ipa-visibility.c (function_and_variable_visibility): Reformat
17123 comments and long lines. Remove extrneous if.
17124 * symtab.c (symtab_node::make_decl_local): Fix code format.
17125 (symtab_node::set_section_for_node): Fix comment typo.
17126
17127 2017-01-06 Martin Liska <mliska@suse.cz>
17128
17129 PR bootstrap/79003
17130 * lra-constraints.c: Rename invariant to lra_invariant.
17131 * predict.c (set_even_probabilities): Initialize e to NULL.
17132
17133 2017-01-05 Martin Sebor <msebor@redhat.com>
17134
17135 PR tree-optimization/78910
17136 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
17137 (format_integer): Correct off-by-one error in the handling
17138 of precision with negative numbers in signed conversions..
17139
17140 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
17141
17142 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
17143
17144 2017-01-05 Jakub Jelinek <jakub@redhat.com>
17145
17146 PR tree-optimization/71016
17147 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
17148 factor_out_conditional_conversion. Formatting fix.
17149 (factor_out_conditional_conversion): Add cond_stmt argument.
17150 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
17151 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
17152 Formatting fix.
17153
17154 2017-01-05 David Malcolm <dmalcolm@redhat.com>
17155
17156 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
17157 read-rtl-function.o, and selftest-rtl.o.
17158 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
17159 (selftest::aarch64_test_loading_full_dump): New function.
17160 (selftest::aarch64_run_selftests): New function.
17161 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
17162 selftest::aarch64_run_selftests.
17163 * config/i386/i386.c
17164 (selftest::ix86_test_loading_dump_fragment_1): New function.
17165 (selftest::ix86_test_loading_call_insn): New function.
17166 (selftest::ix86_test_loading_full_dump): New function.
17167 (selftest::ix86_test_loading_unspec): New function.
17168 (selftest::ix86_run_selftests): Call the new functions.
17169 * emit-rtl.c (maybe_set_max_label_num): New function.
17170 * emit-rtl.h (maybe_set_max_label_num): New decl.
17171 * function.c (instantiate_decls): Guard call to
17172 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
17173 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
17174 "static".
17175 * gensupport.c (gen_reader::gen_reader): Pass "false"
17176 for new "compact" param of rtx_reader.
17177 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
17178 rather than an empty string for NULL strings.
17179 * read-md.c: Potentially include config.h rather than bconfig.h.
17180 Wrap include of errors.h with #ifdef GENERATOR_FILE.
17181 (have_error): New global, copied from errors.c.
17182 (md_reader::read_name): Rename to...
17183 (md_reader::read_name_1): ...this, adding "out_loc" param,
17184 and converting "missing name or number" to returning false, rather
17185 than failing.
17186 (md_reader::read_name): Reimplement in terms of read_name_1.
17187 (md_reader::read_name_or_nil): New function.
17188 (md_reader::read_string): Handle "(nil)" by returning NULL.
17189 (md_reader::md_reader): Add new param "compact".
17190 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
17191 (md_reader::read_file): New method.
17192 * read-md.h (md_reader::md_reader): Add new param "compact".
17193 (md_reader::read_file): New method.
17194 (md_reader::is_compact): New accessor.
17195 (md_reader::read_name): Convert return type from void to file_location.
17196 (md_reader::read_name_or_nil): New decl.
17197 (md_reader::read_name_1): New decl.
17198 (md_reader::m_compact): New field.
17199 (noop_reader::noop_reader): Pass "false" for new "compact" param
17200 of rtx_reader.
17201 (rtx_reader::rtx_reader): Add new "compact" param.
17202 (rtx_reader::read_rtx_operand): Make virtual and convert return
17203 type from void to rtx.
17204 (rtx_reader::read_until): New decl.
17205 (rtx_reader::handle_any_trailing_information): New virtual function.
17206 (rtx_reader::postprocess): New virtual function.
17207 (rtx_reader::finalize_string): New virtual function.
17208 (rtx_reader::m_in_call_function_usage): New field.
17209 (rtx_reader::m_reuse_rtx_by_id): New field.
17210 * read-rtl-function.c: New file.
17211 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
17212 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
17213 (selftest::verify_three_block_rtl_cfg): New decl.
17214 * read-rtl-function.h: New file.
17215 * read-rtl.c: Potentially include config.h rather than bconfig.h.
17216 For host, include function.h, memmodel.h, and emit-rtl.h.
17217 (one_time_initialization): New function.
17218 (struct compact_insn_name): New struct.
17219 (compact_insn_names): New array.
17220 (find_code): Handle insn codes in compact dumps.
17221 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
17222 (bind_subst_iter_and_attr): Likewise.
17223 (add_condition_to_string): Likewise.
17224 (add_condition_to_rtx): Likewise.
17225 (apply_attribute_uses): Likewise.
17226 (add_current_iterators): Likewise.
17227 (apply_iterators): Likewise.
17228 (initialize_iterators): Guard usage of apply_subst_iterator with
17229 #ifdef GENERATOR_FILE.
17230 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
17231 (md_reader::read_mapping): Likewise.
17232 (add_define_attr_for_define_subst): Likewise.
17233 (add_define_subst_attr): Likewise.
17234 (read_subst_mapping): Likewise.
17235 (check_code_iterator): Likewise.
17236 (rtx_reader::read_rtx): Likewise. Move one-time initialization
17237 logic to...
17238 (one_time_initialization): New function.
17239 (rtx_reader::read_until): New method.
17240 (read_flags): New function.
17241 (parse_reg_note_name): New function.
17242 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
17243 Handle reuse_rtx ids.
17244 Wrap iterator lookup within #ifdef GENERATOR_FILE.
17245 Add parsing support for RTL dumps, mirroring the special-cases in
17246 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
17247 values, and calling handle_any_trailing_information.
17248 (rtx_reader::read_rtx_operand): Convert return type from void
17249 to rtx, returning return_rtx. Handle case 'e'. Call
17250 finalize_string on XSTR and XTMPL fields.
17251 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
17252 "(nil)" values were omitted. Call the postprocess vfunc on the
17253 return_rtx.
17254 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
17255 class ctor. Initialize m_in_call_function_usage. Call
17256 one_time_initialization.
17257 * rtl-tests.c (selftest::test_uncond_jump): Call
17258 set_new_first_and_last_insn.
17259 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
17260 * selftest-rtl.c: New file.
17261 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
17262 (selftest::get_insn_by_uid): New decl.
17263 * selftest-run-tests.c (selftest::run_tests): Call
17264 read_rtl_function_c_tests.
17265 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
17266 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
17267 dumps.
17268
17269 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
17270
17271 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
17272 operands in a special way. Assert that pos+len <= mode precision.
17273
17274 2017-01-05 Jakub Jelinek <jakub@redhat.com>
17275
17276 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
17277 3 argument Alias with unlimited for the negative form.
17278 (fno-vect-cost-model): Removed.
17279
17280 2017-01-05 Martin Liska <mliska@suse.cz>
17281
17282 * hsa-gen.c (gen_hsa_divmod): New function.
17283 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
17284
17285 2017-01-05 Martin Liska <mliska@suse.cz>
17286
17287 PR pch/78970
17288 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
17289 header.
17290
17291 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17292
17293 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
17294 small constant length operands.
17295
17296 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17297
17298 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
17299 between loop iterations.
17300
17301 2017-01-05 Martin Liska <mliska@suse.cz>
17302
17303 PR sanitizer/78815
17304 * gimplify.c (gimplify_decl_expr): Compare to
17305 asan_poisoned_variables instread of checking flags.
17306 (gimplify_target_expr): Likewise.
17307 (gimplify_expr): Likewise.
17308 (gimplify_function_tree): Conditionally initialize
17309 asan_poisoned_variables.
17310
17311 2017-01-04 Jeff Law <law@redhat.com>
17312
17313 PR tree-optimizatin/78812
17314 * rtl.h (contains_mem_rtx_p): Prototype.
17315 * ifcvt.c (containts_mem_rtx_p): Move from here to...
17316 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
17317 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
17318 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
17319 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
17320
17321 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17322
17323 * input.c (assert_char_at_range): Default-initialize actual_range.
17324
17325 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17326
17327 * df-scan.c (df_ref_create_structure): Make regno unsigned,
17328 to match the caller.
17329
17330 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17331
17332 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
17333 insns after final jump in test to emit dummy move.
17334
17335 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17336
17337 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
17338 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
17339
17340 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17341
17342 * multiple_target.c (create_dispatcher_calls): Init e_next.
17343 * tree-ssa-loop-split.c (split_loop): Init border.
17344 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
17345 scalar_type.
17346
17347 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
17348
17349 PR target/71977
17350 PR target/70568
17351 PR target/78823
17352 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
17353 (altivec_register_operand): Do not return true if the operand
17354 contains a SUBREG mixing SImode and SFmode.
17355 (vsx_register_operand): Likewise.
17356 (vsx_reg_sfsubreg_ok): New predicate.
17357 (vfloat_operand): Do not return true if the operand contains a
17358 SUBREG mixing SImode and SFmode.
17359 (vint_operand): Likewise.
17360 (vlogical_operand): Likewise.
17361 (gpc_reg_operand): Likewise.
17362 (int_reg_operand): Likewise.
17363 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
17364 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
17365 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
17366 SImode and SFmode.
17367 (rs6000_emit_move_si_sf_subreg): New helper function.
17368 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
17369 fixup SUBREGs involving SImode and SFmode.
17370 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
17371 numbers for the new peephole2 optimization.
17372 (peephole2 for SFmode unions): New peephole2 to optimize cases in
17373 the GLIBC math library that do AND/IOR/XOR operations on single
17374 precision floating point.
17375 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
17376 target macros to say whether we need to avoid SUBREGs mixing
17377 SImode and SFmode.
17378 (TARGET_ALLOW_SF_SUBREG): Likewise.
17379 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
17380 (UNSPEC_SI_FROM_SF): Likewise.
17381 (iorxor): Change spacing.
17382 (and_ior_xor): New iterator for AND, IOR, and XOR.
17383 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
17384 (movdi_from_sf_zero_ext): Likewise.
17385 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
17386 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
17387 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
17388 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
17389 (fms<mode>4): Likewise.
17390 (fnma<mode>4): Likewise.
17391 (fnms<mode>4): Likewise.
17392 (nfma<mode>4): Likewise.
17393 (nfms<mode>4): Likewise.
17394
17395 2017-01-04 Marek Polacek <polacek@redhat.com>
17396
17397 PR c++/64767
17398 * doc/invoke.texi: Document -Wpointer-compare.
17399
17400 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17401
17402 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
17403 RejectNegative.
17404
17405 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
17406 descriptions for -gdwarf-5 and emit them as uleb128 instead of
17407 2-byte data.
17408
17409 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
17410
17411 PR target/78056
17412 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
17413 documentation of the powerpc_popcntb_ok attribute.
17414 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17415 code to issue warning messages if a requested CPU configuration is
17416 not supported by the binary (assembler and loader) toolchain.
17417 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
17418 made to define a built-in function that has been disabled.
17419 (paired_init_builtins): Add assertion to prevent ICE if attempt is
17420 made to define a built-in function that has been disabled.
17421 (altivec_init_builtins): Add comment explaining why definition
17422 of the DST built-in functions is not preceded by an assertion
17423 check. Add assertions to prevent ICE if attempts are made to
17424 define an altivec predicate or an abs* built-in function that has
17425 been disabled.
17426 (htm_init_builtins): Add comment explaining why definition of the
17427 htm built-in functions is not preceded by an assertion check.
17428
17429 2017-01-04 Jeff Law <law@redhat.com>
17430
17431 PR tree-optimizatin/67955
17432 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
17433 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
17434 the points-to solution does not include pt_null. Use DECL_PT_UID
17435 unconditionally.
17436
17437 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
17438
17439 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
17440 Use gen_int_mode instead of gen_lopwart for const_int operands.
17441
17442 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17443
17444 PR tree-optimization/71563
17445 * match.pd: Simplify X << Y into X if Y is known to be 0 or
17446 out of range value - has low bits known to be zero.
17447
17448 2017-01-04 Alan Modra <amodra@gmail.com>
17449
17450 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
17451 * configure: Regenerate.
17452 * config.in: Regenerate.
17453
17454 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17455
17456 PR bootstrap/77569
17457 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
17458 a substring of the message, but strcmp with the whole message. Ifdef
17459 ENABLE_NLS, translate the message first using dgettext.
17460
17461 2017-01-03 Jeff Law <law@redhat.com>
17462
17463 PR tree-optimizatin/78856
17464 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
17465 (mark_threaded_blocks): Remove code to truncate thread paths that
17466 cross multiple loop headers. Instead invalidate the cached loop
17467 iteration information and handle case of a thread path walking
17468 into an irreducible region.
17469
17470 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17471
17472 PR target/78900
17473 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
17474 assertions. Add support for doing the signbit if the IEEE 128-bit
17475 floating point value is in a GPR.
17476 * config/rs6000/rs6000.md (Fsignbit): Delete.
17477 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
17478 Update the length attribute if the value is in a GPR.
17479 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
17480 the sign or zero extension instruction, since the value is always 0/1.
17481 (signbit<mode>2_dm2): Delete using <Fsignbit>.
17482
17483 PR target/78953
17484 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
17485 extracting SImode to a GPR register so that we can generate a
17486 store, limit the vector to be in a traditional Altivec register
17487 for the vextuwrx instruction.
17488
17489 2017-01-03 Ian Lance Taylor <iant@google.com>
17490
17491 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
17492
17493 2017-01-03 Martin Sebor <msebor@redhat.com>
17494
17495 PR tree-optimization/78696
17496 * gimple-ssa-sprintf.c (format_floating): Correct handling of
17497 precision. Use MPFR for %f for greater fidelity. Correct handling
17498 of %g.
17499 (pass_sprintf_length::compute_format_length): Set width and precision
17500 specified by asrerisk to void_node for vararg functions.
17501 (try_substitute_return_value): Adjust dump output.
17502
17503 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
17504
17505 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
17506
17507 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
17508
17509 * doc/invoke.texi (SPARC options): Document -mlra as the default.
17510 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
17511 -mlra/-mno-lra was passed to the compiler.
17512
17513 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
17514
17515 PR rtl-optimization/65618
17516 * emit-rtl.c (try_split): Move initialization of "before" and
17517 "after" to just before the call to emit_insn_after_setloc.
17518
17519 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
17520
17521 * doc/md.texi (Standard Names): Remove reference to Java frontend.
17522
17523 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
17524
17525 * dwarf2out.c (gen_enumeration_type_die): When
17526 -gno-strict-dwarf, add a DW_AT_encoding attribute.
17527
17528 2017-01-03 Jakub Jelinek <jakub@redhat.com>
17529
17530 PR tree-optimization/78965
17531 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
17532 Change first argument from const call_info & to call_info &. For %n
17533 set info.nowrite to false.
17534
17535 PR middle-end/78901
17536 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
17537 possibly throwing calls.
17538
17539 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
17540 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
17541 and fns handling, rather than in a separate case SSA_NAME.
17542
17543 2017-01-02 Jeff Law <law@redhat.com>
17544
17545 * config/darwin-driver.c (darwin_driver_init): Const-correctness
17546 fixes for first_period and second_period variables.
17547
17548 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
17549
17550 PR target/78967
17551 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
17552 (*insvqi_1): New insn pattern.
17553 (*insvqi_1_mem_rex64): Ditto.
17554 (*insvqi_2): Ditto.
17555 (*insvqi_3): Rename from *insvqi.
17556
17557 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
17558
17559 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
17560
17561 * doc/cfg.texi (Edges): Remove reference to Java.
17562 (Maintaining the CFG): Ditto.
17563
17564 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17565
17566 PR middle-end/77674
17567 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
17568 transparent aliases.
17569
17570 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17571
17572 PR middle-end/77484
17573 * predict.def (PRED_CALL): Update hitrate.
17574 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
17575 * predict.c (tree_estimate_probability_bb): Split CALL predictor
17576 into direct/indirect/polymorphic variants.
17577
17578 2017-01-01 Jakub Jelinek <jakub@redhat.com>
17579
17580 Update copyright years.
17581
17582 * gcc.c (process_command): Update copyright notice dates.
17583 * gcov-dump.c (print_version): Ditto.
17584 * gcov.c (print_version): Ditto.
17585 * gcov-tool.c (print_version): Ditto.
17586 * gengtype.c (create_file): Ditto.
17587 * doc/cpp.texi: Bump @copying's copyright year.
17588 * doc/cppinternals.texi: Ditto.
17589 * doc/gcc.texi: Ditto.
17590 * doc/gccint.texi: Ditto.
17591 * doc/gcov.texi: Ditto.
17592 * doc/install.texi: Ditto.
17593 * doc/invoke.texi: Ditto.
17594 \f
17595 Copyright (C) 2017 Free Software Foundation, Inc.
17596
17597 Copying and distribution of this file, with or without modification,
17598 are permitted in any medium without royalty provided the copyright
17599 notice and this notice are preserved.