Support for the SPARC M8 cpu.
[gcc.git] / gcc / ChangeLog
1 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * config/sparc/m8.md: New file.
4 * config/sparc/sparc.md: Include m8.md.
5
6 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
7
8 * config/sparc/sparc.opt: New option -mvis4b.
9 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
10 (sparc_option_override): Handle VIS4B.
11 (enum sparc_builtins): Define
12 SPARC_BUILTIN_DICTUNPACK{8,16,32},
13 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
14 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
15 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
16 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
17 (check_constant_argument): New function.
18 (sparc_vis_init_builtins): Define builtins
19 __builtin_vis_dictunpack{8,16,32},
20 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
21 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
22 __builtin_vis_fpcmpde{8,16,32}shl and
23 __builtin_vis_fpcmpur{8,16,32}shl.
24 (sparc_expand_builtin): Check that the constant operands to
25 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
26 constant and in range.
27 * config/sparc/sparc-c.c (sparc_target_macros): Handle
28 TARGET_VIS4B.
29 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
30 (SPARC_IMM5_P): Likewise.
31 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
32 (enabled): Handle vis4b.
33 (UNSPEC_DICTUNPACK): New unspec.
34 (UNSPEC_FPCMPSHL): Likewise.
35 (UNSPEC_FPUCMPSHL): Likewise.
36 (UNSPEC_FPCMPDESHL): Likewise.
37 (UNSPEC_FPCMPURSHL): Likewise.
38 (cpu_feature): New CPU feature `vis4b'.
39 (dictunpack{8,16,32}): New insns.
40 (FPCSMODE): New mode iterator.
41 (fpcscond): New code iterator.
42 (fpcsucond): Likewise.
43 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
44 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
45 (fpcmpde{8,16,32}{si,di}shl): Likewise.
46 (fpcmpur{8,16,32}{si,di}shl): Likewise.
47 * config/sparc/constraints.md: Define constraints `q' for unsigned
48 2-bit integer constants and `t' for unsigned 5-bit integer
49 constants.
50 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
51 predicate.
52 (imm5_operand_dictunpack16): Likewise.
53 (imm5_operand_dictunpack32): Likewise.
54 (imm2_operand): Likewise.
55 * doc/invoke.texi (SPARC Options): Document -mvis4b.
56 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
57 ditunpack* and fpcmp*shl builtins.
58
59 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
60
61 * config.gcc: Handle m8 in --with-{cpu,tune} options.
62 * config.in: Add HAVE_AS_SPARC6 define.
63 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
64 M8.
65 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
66 TARGET_CPU_m8.
67 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
68 (CPP_CPU_SPEC): Handle m8.
69 (ASM_CPU_SPEC): Likewise.
70 * config/sparc/sparc-opts.h (enum processor_type): Add
71 PROCESSOR_M8.
72 * config/sparc/sparc.c (m8_costs): New struct.
73 (sparc_option_override): Handle TARGET_CPU_m8.
74 (sparc32_initialize_trampoline): Likewise.
75 (sparc64_initialize_trampoline): Likewise.
76 (sparc_issue_rate): Likewise.
77 (sparc_register_move_cost): Likewise.
78 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
79 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
80 (ASM_CPU64_DEFAULT_SPEC): Likewise.
81 (CPP_CPU_SPEC): Handle M8.
82 (ASM_CPU_SPEC): Likewise.
83 (AS_M8_FLAG): Define.
84 * config/sparc/sparc.md: Add m8 to the cpu attribute.
85 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
86 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
87 M8 instructions.
88 * configure: Regenerate.
89 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
90 -mtune=m8.
91
92 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
93
94 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
95 subtypes.
96 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
97 ("*movdi_insn_sp32"): Do not set v3pipe.
98 ("*movsi_insn"): Likewise.
99 ("*movdi_insn_sp64"): Likewise.
100 ("*movsf_insn"): Likewise.
101 ("*movdf_insn_sp32"): Likewise.
102 ("*movdf_insn_sp64"): Likewise.
103 ("*zero_extendsidi2_insn_sp64"): Likewise.
104 ("*sign_extendsidi2_insn"): Likewise.
105 ("*mov<VM32:mode>_insn"): Likewise.
106 ("*mov<VM64:mode>_insn_sp64"): Likewise.
107 ("*mov<VM64:mode>_insn_sp32"): Likewise.
108 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
109 ("<vlop:code><VL:mode>3"): Likewise.
110 ("*not_<vlop:code><VL:mode>3"): Likewise.
111 ("*nand<VL:mode>_vis"): Likewise.
112 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
113 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
114 ("one_cmpl<VL:mode>2"): Likewise.
115 ("faligndata<VM64:mode>_vis"): Likewise.
116 ("alignaddrsi_vis"): Likewise.
117 ("alignaddrdi_vis"): Likweise.
118 ("alignaddrlsi_vis"): Likewise.
119 ("alignaddrldi_vis"): Likewise.
120 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
121 ("bmaskdi_vis"): Likewise.
122 ("bmasksi_vis"): Likewise.
123 ("bshuffle<VM64:mode>_vis"): Likewise.
124 ("cmask8<P:mode>_vis"): Likewise.
125 ("cmask16<P:mode>_vis"): Likewise.
126 ("cmask32<P:mode>_vis"): Likewise.
127 ("pdistn<P:mode>_vis"): Likewise.
128 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
129
130 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
131
132 * config/sparc/sparc.md ("subtype"): New insn attribute.
133 ("*wrgsr_sp64"): Set insn subtype.
134 ("*rdgsr_sp64"): Likewise.
135 ("alignaddrsi_vis"): Likewise.
136 ("alignaddrdi_vis"): Likewise.
137 ("alignaddrlsi_vis"): Likewise.
138 ("alignaddrldi_vis"): Likewise.
139 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
140 ("fexpand_vis"): Likewise.
141 ("fpmerge_vis"): Likewise.
142 ("faligndata<VM64:mode>_vis"): Likewise.
143 ("bshuffle<VM64:mode>_vis"): Likewise.
144 ("cmask8<P:mode>_vis"): Likewise.
145 ("cmask16<P:mode>_vis"): Likewise.
146 ("cmask32<P:mode>_vis"): Likewise.
147 ("fchksm16_vis"): Likewise.
148 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
149 ("fmean16_vis"): Likewise.
150 ("fp<plusminus_insn>64_vis"): Likewise.
151 ("<plusminus_insn>v8qi3"): Likewise.
152 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
153 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
154 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
155 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
156 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
157 ("*movqi_insn"): Likewise.
158 ("*movhi_insn"): Likewise.
159 ("*movsi_insn"): Likewise.
160 ("movsi_pic_gotdata_op"): Likewise.
161 ("*movdi_insn_sp32"): Likewise.
162 ("*movdi_insn_sp64"): Likewise.
163 ("movdi_pic_gotdata_op"): Likewise.
164 ("*movsf_insn"): Likewise.
165 ("*movdf_insn_sp32"): Likewise.
166 ("*movdf_insn_sp64"): Likewise.
167 ("*zero_extendhisi2_insn"): Likewise.
168 ("*zero_extendqihi2_insn"): Likewise.
169 ("*zero_extendqisi2_insn"): Likewise.
170 ("*zero_extendqidi2_insn"): Likewise.
171 ("*zero_extendhidi2_insn"): Likewise.
172 ("*zero_extendsidi2_insn_sp64"): Likewise.
173 ("ldfsr"): Likewise.
174 ("prefetch_64"): Likewise.
175 ("prefetch_32"): Likewise.
176 ("tie_ld32"): Likewise.
177 ("tie_ld64"): Likewise.
178 ("*tldo_ldub_sp32"): Likewise.
179 ("*tldo_ldub1_sp32"): Likewise.
180 ("*tldo_ldub2_sp32"): Likewise.
181 ("*tldo_ldub_sp64"): Likewise.
182 ("*tldo_ldub1_sp64"): Likewise.
183 ("*tldo_ldub2_sp64"): Likewise.
184 ("*tldo_ldub3_sp64"): Likewise.
185 ("*tldo_lduh_sp32"): Likewise.
186 ("*tldo_lduh1_sp32"): Likewise.
187 ("*tldo_lduh_sp64"): Likewise.
188 ("*tldo_lduh1_sp64"): Likewise.
189 ("*tldo_lduh2_sp64"): Likewise.
190 ("*tldo_lduw_sp32"): Likewise.
191 ("*tldo_lduw_sp64"): Likewise.
192 ("*tldo_lduw1_sp64"): Likewise.
193 ("*tldo_ldx_sp64"): Likewise.
194 ("*mov<VM32:mode>_insn"): Likewise.
195 ("*mov<VM64:mode>_insn_sp64"): Likewise.
196 ("*mov<VM64:mode>_insn_sp32"): Likewise.
197
198 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
199
200 * config/sparc/sparc.md ("type"): New insn type viscmp.
201 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
202 viscmp.
203 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
204 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
205 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
206 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
207 viscmp.
208 ("n7_vis_logical_11cycle"): Likewise.
209 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
210 * config/sparc/niagara2.md ("niag3_vis": Likewise.
211 * config/sparc/niagara.md ("niag_vis"): Likewise.
212 * config/sparc/ultra3.md ("us3_fga"): Likewise.
213 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
214
215 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
216
217 * config/sparc/sparc.md: New instruction type `bmask'.
218 (bmaskdi_vis): Use the `bmask' type.
219 (bmasksi_vis): Likewise.
220 * config/sparc/ultra3.md (us3_array): Likewise.
221 * config/sparc/niagara7.md (n7_array): Likewise.
222 * config/sparc/niagara4.md (n4_array): Likewise.
223 * config/sparc/niagara2.md (niag2_vis): Likewise.
224 (niag3_vis): Likewise.
225 * config/sparc/niagara.md (niag_vis): Likewise.
226
227 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
228
229 * ipa-comdats.c: Remove optimize check from gate.
230 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
231 for functions not optimized.
232 (ipa_fn_summary_read): Skip optimize check.
233 (ipa_fn_summary_write): Likewise.
234 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
235 is optimized.
236 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
237 uninlinable.
238 (can_inline_edge_p): Check flag_pcc_struct_return for match.
239 (check_callers): Give up on caller which is not optimized.
240 (inline_small_functions): Likewise.
241 (ipa_inline): Do not give up when not optimizing.
242 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
243 away unoptimizes cdtors.
244 (whole_program_function_and_variable_visibility): Do
245 ipa_discover_readonly_nonaddressable_vars in LTO mode.
246 * ipa.c (process_references): Do not check optimize.
247 (symbol_table::remove_unreachable_nodes): Update optimize check.
248 (set_writeonly_bit): Update optimize check.
249 (pass_ipa_cdtor_merge::gate): Do not check optimize.
250 (pass_ipa_single_use::gate): Remove.
251
252 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
253
254 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
255 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
256 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
257 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
258 permute_load, permute_store, adjust_extract, adjust_splat,
259 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
260 replace_swap_with_copy, dump_swap_insn_table,
261 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
262 recombine_lvx_pattern, recombine_stvx_pattern,
263 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
264 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
265 to file rs6000-p8swap.c.
266 * config/rs6000/rs6000-p8swap.c: New file.
267 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
268 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
269 and rs6000*-*-* targets.
270
271 2017-07-06 David Malcolm <dmalcolm@redhat.com>
272
273 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
274
275 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
276
277 * lto-wrapper.c (merge_and_complain): Do not merge
278 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
279 fsigned_zeros, ftrapping_math, fwrapv.
280 (append_compiler_options): Do not track these options.
281 (append_linker_options): Likewie
282
283 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
284
285 * cgraphunit.c (cgraph_node::finalize_function): When
286 !flag_toplevel_reorde set no_reorder flag.
287 (varpool_node::finalize_decl): Likewise.
288 (symbol_table::compile): Drop no toplevel reorder path.
289
290 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
291
292 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
293 edges; zero probability is not better than uninitialized.
294
295 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
296
297 * asan.h (asan_sanitize_allocas_p): Declare.
298 * asan.c (asan_sanitize_allocas_p): New function.
299 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
300 (handle_builtin_alloca): Likewise.
301 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
302 if !asan_sanitize_allocas_p.
303 * params.def (asan-instrument-allocas): Add new option.
304 * params.h (ASAN_PROTECT_ALLOCAS): Define.
305 * opts.c (common_handle_option): Disable allocas sanitization for
306 KASan by default.
307
308 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
309
310 * asan.c: Include gimple-fold.h.
311 (get_last_alloca_addr): New function.
312 (handle_builtin_stackrestore): Likewise.
313 (handle_builtin_alloca): Likewise.
314 (asan_emit_allocas_unpoison): Likewise.
315 (get_mem_refs_of_builtin_call): Add new parameter, remove const
316 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
317 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
318 (instrument_builtin_call): Pass gimple iterator to
319 get_mem_refs_of_builtin_call.
320 (last_alloca_addr): New global.
321 * asan.h (asan_emit_allocas_unpoison): Declare.
322 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
323 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
324 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
325 if function calls alloca.
326 * gimple-fold.c (replace_call_with_value): Remove static keyword.
327 * gimple-fold.h (replace_call_with_value): Declare.
328 * internal-fn.c: Include asan.h.
329 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
330 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
331
332 2017-07-06 David Malcolm <dmalcolm@redhat.com>
333
334 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
335 (C_SELFTEST_FLAGS): New.
336 (CPP_SELFTEST_FLAGS): New.
337 (SELFTEST_DEPS): New, from deps of s-selftest.
338 (C_SELFTEST_DEPS): New, from deps of s-selftest.
339 (CPP_SELFTEST_DEPS): New.
340 (selftest): Add dependency on s-selftest-c++.
341 (s-selftest): Rename to...
342 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
343 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
344 than SELFTEST_FLAGS.
345 (selftest-gdb): Rename to...
346 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
347 C_SELFTEST_FLAGS.
348 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
349 (selftest-valgrind): Rename to...
350 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
351 C_SELFTEST_FLAGS.
352 (selftest-valgrind): Reintroduce as an alias for
353 selftest-c-valgrind.
354 (s-selftest-c++): New.
355 (selftest-c++-gdb): New.
356 (selftest-c++-valgrind): New.
357
358 2017-07-06 Olivier Hainque <hainque@adacore.com>
359
360 * gcc.c (process_command): When deciding if undefined variables
361 should be ignored when processing specs, accept "gcc -v" as well.
362
363 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
364
365 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
366 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
367
368 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
369
370 * config/arm/arm-cpus.in (armv8-r): Add new entry.
371 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
372 * config/arm/arm-tables.opt: Regenerate.
373 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
374 enumerator.
375 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
376
377 2017-07-06 Carl Love <cel@us.ibm.com>
378
379 * ChangeLog: Clean up from mid air collision
380
381 2017-07-06 Carl Love <cel@us.ibm.com>
382
383 * config/rs6000/rs6000-c.c: Add support for built-in functions
384 vector signed int vec_subc (vector signed int, vector signed int);
385 vector signed __int128 vec_subc (vector signed __int128,
386 vector signed __int128);
387 vector unsigned __int128 vec_subc (vector unsigned __int128,
388 vector unsigned __int128);
389 vector signed int vec_sube (vector signed int, vector signed int,
390 vector signed int);
391 vector unsigned int vec_sube (vector unsigned int,
392 vector unsigned int,
393 vector unsigned int);
394 vector signed __int128 vec_sube (vector signed __int128,
395 vector signed __int128,
396 vector signed__int128);
397 vector unsigned __int128 vec_sube (vector unsigned __int128,
398 vector unsigned __int128,
399 vector unsigned __int128);
400 vector signed int vec_subec (vector signed int, vector signed int,
401 vector signed int);
402 vector unsigned int vec_subec (vector unsigned int,
403 vector unsigned int,
404 vector unsigned int);
405 vector signed __int128 vec_subec (vector signed __int128,
406 vector signed __int128,
407 vector signed__int128);
408 vector unsigned __int128 vec_subec (vector unsigned __int128,
409 vector unsigned __int128,
410 vector unsigned __int128);
411 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
412 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
413 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
414 BU_ALTIVEC_OVERLOAD_X definitions.
415 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
416 * doc/extend.texi: Update the built-in documentation file for the new
417 built-in functions.
418
419 2017-07-06 David Malcolm <dmalcolm@redhat.com>
420
421 PR c++/79300
422 * diagnostic-show-locus.c (layout::layout): Use start and finish
423 spelling location for the start and finish of each range.
424 * genmatch.c (linemap_client_expand_location_to_spelling_point):
425 Add unused aspect param.
426 * input.c (expand_location_1): Add "aspect" param, and use it
427 to access the correct part of the location.
428 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
429 expand_location_1.
430 (expand_location_to_spelling_point): Likewise.
431 (linemap_client_expand_location_to_spelling_point): Add "aspect"
432 param, and pass it to expand_location_1.
433
434 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
435
436 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
437 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
438 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
439 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
440 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
441 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
442 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
443 _mm_maskz_getmant_ss): New intrinsics.
444 (__builtin_ia32_getexpss128_mask): Changed to ...
445 __builtin_ia32_getexpss128_round ... this.
446 (__builtin_ia32_getexpsd128_mask): Changed to ...
447 __builtin_ia32_getexpsd128_round ... this.
448 * config/i386/i386-builtin-types.def
449 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
450 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
451 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
452 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
453 __builtin_ia32_getmantss_mask_round): New builtins.
454 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
455 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
456 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
457 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
458 * config/i386/sse.md
459 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
460 avx512f_sgetexp<mode><mask_scalar_name>
461 <round_saeonly_scalar_name> ... this.
462 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
463 %0, %1, %2<round_saeonly_op3>}): Changed to ...
464 vgetexp<ssescalarmodesuffix>
465 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
466 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
467 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
468 avx512f_vgetmant<mode><mask_scalar_name>
469 <round_saeonly_scalar_name> ... this.
470 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
471 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
472 vgetmant<ssescalarmodesuffix>
473 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
474 %0<mask_scalar_operand4>, %1, %2
475 <round_saeonly_scalar_mask_op4>, %3} ... this.
476 * config/i386/subst.md (mask_scalar_operand4,
477 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
478 round_saeonly_scalar_nimm_predicate): New subst attributes.
479
480 2017-07-06 Julia Koval <julia.koval@intel.com>
481
482 * gcc/config/i386/i386.c (ix86_erase_embedded_rounding):
483 Remove code for old rounding pattern.
484
485 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
486
487 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
488 in quoted strings.
489
490 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
491
492 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
493
494 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
495
496 * doc/sourcebuild.texi (Test Directives, Variants of
497 dg-require-support): Add documentation for dg-require-stack-check.
498
499 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
500
501 * config/i386/subst.md (mask_scalar, round_scalar,
502 round_saeonly_scalar): New meta-templates.
503 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
504 round_scalar_mask_operand3, round_scalar_mask_op3,
505 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
506 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
507 round_saeonly_scalar_constraint,
508 round_saeonly_scalar_prefix): New subst attribute.
509 * config/i386/sse.md
510 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
511 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
512 <round_scalar_name> ... this.
513 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
514 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
515 <round_scalar_name> ... this.
516 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
517 <sse>_vm<code><mode>3<mask_scalar_name>
518 <round_saeonly_scalar_name> ... this.
519 (v<plusminus_mnemonic><ssescalarmodesuffix>
520 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
521 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
522 v<plusminus_mnemonic><ssescalarmodesuffix>
523 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
524 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
525 (v<multdiv_mnemonic><ssescalarmodesuffix>
526 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
527 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
528 v<multdiv_mnemonic><ssescalarmodesuffix>
529 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
530 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
531 (v<maxmin_float><ssescalarmodesuffix>
532 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
533 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
534 v<maxmin_float><ssescalarmodesuffix>
535 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
536 %0<mask_scalar_operand3>, %1, %<iptr>2
537 <round_saeonly_scalar_mask_op3>} ... this.
538
539 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
540
541 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
542 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
543
544 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
545 Alan Hayward <alan.hayward@arm.com>
546 David Sherwood <david.sherwood@arm.com>
547
548 * combine.c (simplify_if_then_else): Remove "enum" before
549 "machine_mode".
550 * compare-elim.c (can_eliminate_compare): Likewise.
551 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
552 Likewise.
553 (aarch64_lookup_simd_builtin_type): Likewise.
554 (aarch64_simd_builtin_type): Likewise.
555 (aarch64_init_simd_builtin_types): Likewise.
556 (aarch64_simd_expand_args): Likewise.
557 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
558 Likewise.
559 (aarch64_reverse_mask): Likewise.
560 (aarch64_simd_emit_reg_reg_move): Likewise.
561 (aarch64_gen_adjusted_ldpstp): Likewise.
562 (aarch64_ccmp_mode_to_code): Likewise.
563 (aarch64_operands_ok_for_ldpstp): Likewise.
564 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
565 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
566 Likewise.
567 (aarch64_min_divisions_for_recip_mul): Likewise.
568 (aarch64_reassociation_width): Likewise.
569 (aarch64_get_condition_code_1): Likewise.
570 (aarch64_simd_emit_reg_reg_move): Likewise.
571 (aarch64_simd_attr_length_rglist): Likewise.
572 (aarch64_reverse_mask): Likewise.
573 (aarch64_operands_ok_for_ldpstp): Likewise.
574 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
575 (aarch64_gen_adjusted_ldpstp): Likewise.
576 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
577 Likewise.
578 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
579 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
580 (arm_lookup_simd_builtin_type): Likewise.
581 (arm_simd_builtin_type): Likewise.
582 (arm_init_simd_builtin_types): Likewise.
583 (arm_expand_builtin_args): Likewise.
584 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
585 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
586 (ft32_setup_incoming_varargs): Likewise.
587 (ft32_function_arg): Likewise.
588 (ft32_function_arg_advance): Likewise.
589 (ft32_pass_by_reference): Likewise.
590 (ft32_arg_partial_bytes): Likewise.
591 (ft32_valid_pointer_mode): Likewise.
592 (ft32_addr_space_pointer_mode): Likewise.
593 (ft32_addr_space_legitimate_address_p): Likewise.
594 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
595 Likewise.
596 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
597 (ix86_emit_outlined_ms2sysv_restore): Likewise.
598 (iamcu_alignment): Likewise.
599 (canonicalize_vector_int_perm): Likewise.
600 (ix86_noce_conversion_profitable_p): Likewise.
601 (ix86_mpx_bound_mode): Likewise.
602 (ix86_operands_ok_for_move_multiple): Likewise.
603 * config/microblaze/microblaze-protos.h
604 (microblaze_expand_conditional_branch_reg): Likewise.
605 * config/microblaze/microblaze.c
606 (microblaze_expand_conditional_branch_reg): Likewise.
607 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
608 Likewise.
609 (rs6000_reassociation_width): Likewise.
610 (rs6000_invalid_binary_op): Likewise.
611 (fusion_p9_p): Likewise.
612 (emit_fusion_p9_load): Likewise.
613 (emit_fusion_p9_store): Likewise.
614 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
615 Likewise.
616 (riscv_hard_regno_mode_ok_p): Likewise.
617 (riscv_address_insns): Likewise.
618 (riscv_split_symbol): Likewise.
619 (riscv_legitimize_move): Likewise.
620 (riscv_function_value): Likewise.
621 (riscv_hard_regno_nregs): Likewise.
622 (riscv_expand_builtin): Likewise.
623 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
624 (riscv_build_integer): Likewise.
625 (riscv_split_integer): Likewise.
626 (riscv_legitimate_constant_p): Likewise.
627 (riscv_cannot_force_const_mem): Likewise.
628 (riscv_regno_mode_ok_for_base_p): Likewise.
629 (riscv_valid_base_register_p): Likewise.
630 (riscv_valid_offset_p): Likewise.
631 (riscv_valid_lo_sum_p): Likewise.
632 (riscv_classify_address): Likewise.
633 (riscv_legitimate_address_p): Likewise.
634 (riscv_address_insns): Likewise.
635 (riscv_load_store_insns): Likewise.
636 (riscv_force_binary): Likewise.
637 (riscv_split_symbol): Likewise.
638 (riscv_force_address): Likewise.
639 (riscv_legitimize_address): Likewise.
640 (riscv_move_integer): Likewise.
641 (riscv_legitimize_const_move): Likewise.
642 (riscv_legitimize_move): Likewise.
643 (riscv_address_cost): Likewise.
644 (riscv_subword): Likewise.
645 (riscv_output_move): Likewise.
646 (riscv_canonicalize_int_order_test): Likewise.
647 (riscv_emit_int_order_test): Likewise.
648 (riscv_function_arg_boundary): Likewise.
649 (riscv_pass_mode_in_fpr_p): Likewise.
650 (riscv_pass_fpr_single): Likewise.
651 (riscv_pass_fpr_pair): Likewise.
652 (riscv_get_arg_info): Likewise.
653 (riscv_function_arg): Likewise.
654 (riscv_function_arg_advance): Likewise.
655 (riscv_arg_partial_bytes): Likewise.
656 (riscv_function_value): Likewise.
657 (riscv_pass_by_reference): Likewise.
658 (riscv_setup_incoming_varargs): Likewise.
659 (riscv_print_operand): Likewise.
660 (riscv_elf_select_rtx_section): Likewise.
661 (riscv_save_restore_reg): Likewise.
662 (riscv_for_each_saved_reg): Likewise.
663 (riscv_register_move_cost): Likewise.
664 (riscv_hard_regno_mode_ok_p): Likewise.
665 (riscv_hard_regno_nregs): Likewise.
666 (riscv_class_max_nregs): Likewise.
667 (riscv_memory_move_cost): Likewise.
668 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
669 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
670 (rl78_addr_space_address_mode): Likewise.
671 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
672 Likewise.
673 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
674 (rs6000_reassociation_width): Likewise.
675 (rs6000_invalid_binary_op): Likewise.
676 (fusion_p9_p): Likewise.
677 (emit_fusion_p9_load): Likewise.
678 (emit_fusion_p9_store): Likewise.
679 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
680 (ok_for_simple_move_operands): Likewise.
681 (ok_for_simple_move_strict_operands): Likewise.
682 (ok_for_simple_arith_logic_operands): Likewise.
683 (visium_legitimize_reload_address): Likewise.
684 (visium_select_cc_mode): Likewise.
685 (output_cbranch): Likewise.
686 (visium_split_double_move): Likewise.
687 (visium_expand_copysign): Likewise.
688 (visium_expand_int_cstore): Likewise.
689 (visium_expand_fp_cstore): Likewise.
690 * config/visium/visium.c (visium_pass_by_reference): Likewise.
691 (visium_function_arg): Likewise.
692 (visium_function_arg_advance): Likewise.
693 (visium_libcall_value): Likewise.
694 (visium_setup_incoming_varargs): Likewise.
695 (visium_legitimate_constant_p): Likewise.
696 (visium_legitimate_address_p): Likewise.
697 (visium_legitimize_address): Likewise.
698 (visium_secondary_reload): Likewise.
699 (visium_register_move_cost): Likewise.
700 (visium_memory_move_cost): Likewise.
701 (prepare_move_operands): Likewise.
702 (ok_for_simple_move_operands): Likewise.
703 (ok_for_simple_move_strict_operands): Likewise.
704 (ok_for_simple_arith_logic_operands): Likewise.
705 (visium_function_value_1): Likewise.
706 (rtx_ok_for_offset_p): Likewise.
707 (visium_legitimize_reload_address): Likewise.
708 (visium_split_double_move): Likewise.
709 (visium_expand_copysign): Likewise.
710 (visium_expand_int_cstore): Likewise.
711 (visium_expand_fp_cstore): Likewise.
712 (visium_split_cstore): Likewise.
713 (visium_select_cc_mode): Likewise.
714 (visium_split_cbranch): Likewise.
715 (output_cbranch): Likewise.
716 (visium_print_operand_address): Likewise.
717 * expmed.c (flip_storage_order): Likewise.
718 * expmed.h (emit_cstore): Likewise.
719 (flip_storage_order): Likewise.
720 * genrecog.c (validate_pattern): Likewise.
721 * hsa-gen.c (gen_hsa_addr): Likewise.
722 * internal-fn.c (expand_arith_overflow): Likewise.
723 * ira-color.c (allocno_copy_cost_saving): Likewise.
724 * lra-assigns.c (find_hard_regno_for_1): Likewise.
725 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
726 (process_invariant_for_inheritance): Likewise.
727 * lra-eliminations.c (move_plus_up): Likewise.
728 * omp-low.c (lower_oacc_reductions): Likewise.
729 * simplify-rtx.c (simplify_subreg): Likewise.
730 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
731 (TARGET_CHKP_BOUND_MODE): Likewise..
732 * targhooks.c (default_chkp_bound_mode): Likewise.
733 (default_setup_incoming_vararg_bounds): Likewise.
734 * targhooks.h (default_chkp_bound_mode): Likewise.
735 (default_setup_incoming_vararg_bounds): Likewise.
736 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
737 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
738 (have_whole_vector_shift): Likewise.
739 * tree-vect-stmts.c (vectorizable_load): Likewise.
740 * doc/tm.texi: Regenerate.
741
742 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
743
744 Graceful degrade if Binutils PR21472 is not available.
745
746 PR target/81072
747 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
748 .rodata in flash test fails.
749 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
750 * confgure: Regenerate.
751 * config.in: Regenerate.
752 * config/avr/avr.c (avr_asm_named_section)
753 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
754 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
755 (avr_asm_init_sections): Same.
756
757 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
758
759 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
760 (fma<VH:mode>4_intrinsic): Likewise.
761 (*fmsub<VCVTF:mode>4): Likewise.
762 (*fmsub<VH:mode>4_intrinsic): Likewise.
763
764 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
765
766 PR target/81305
767 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
768 Don't depend on "optimize > 0".
769 (out_movhi_r_mr, out_movqi_mr_r): Same.
770 (out_movhi_mr_r, out_movqi_r_mr): Same.
771 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
772 io_address_operand on "optimize > 0".
773
774 2017-07-05 Bin Cheng <bin.cheng@arm.com>
775
776 * tree-loop-distribution.c: Add general explanantion on the pass.
777 (generate_loops_for_partition): Mark distributed loop.
778 (pg_add_dependence_edges): New parameter. Handle alias data
779 dependence specially and record it in the parameter if asked.
780 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
781 (init_partition_graph_vertices, add_partition_graph_edge): New.
782 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
783 (free_partition_graph_vdata, build_partition_graph): New.
784 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
785 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
786 (data_ref_segment_size, latch_dominated_by_data_ref): New.
787 (compute_alias_check_pairs, version_loop_by_alias_check): New.
788 (version_for_distribution_p, finalize_partitions): New.
789 (distribute_loop): Handle alias data dependence specially. Factor
790 out loop fusion code as functions and call these functions.
791
792 2017-07-05 Bin Cheng <bin.cheng@arm.com>
793
794 * tree-loop-distribution.c (classify_partition): New parameter and
795 better handle reduction statement.
796 (rdg_build_partitions): Revise comment.
797 (distribute_loop): Compute statements in all partitions and pass it
798 to classify_partition.
799
800 2017-07-05 Bin Cheng <bin.cheng@arm.com>
801
802 * tree-loop-distribution.c (enum partition_type): New.
803 (struct partition): New field type.
804 (partition_merge_into): Add parameter. Update partition type.
805 (data_dep_in_cycle_p, update_type_for_merge): New functions.
806 (build_rdg_partition_for_vertex): Compute partition type.
807 (rdg_build_partitions): Dump partition type.
808 (distribute_loop): Update calls to partition_merge_into.
809
810 2017-07-05 Bin Cheng <bin.cheng@arm.com>
811
812 * tree-loop-distribution.c (struct ddr_hasher): New.
813 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
814 (ddrs_table): New.
815 (classify_partition): Call get_data_dependence.
816 (pg_add_dependence_edges): Ditto.
817 (distribute_loop): Release data dependence hash table.
818
819 2017-07-05 Bin Cheng <bin.cheng@arm.com>
820
821 * tree-loop-distribution.c (ref_base_address): Delete.
822 (similar_memory_accesses): Rename ...
823 (share_memory_accesses): ... to this. Check if partitions access
824 the same memory reference.
825 (distribute_loop): Call share_memory_accesses.
826
827 2017-07-05 Bin Cheng <bin.cheng@arm.com>
828
829 * tree-loop-distribution.c (struct partition): New field recording
830 its data reference.
831 (partition_alloc, partition_free): Init and release data refs.
832 (partition_merge_into): Merge data refs.
833 (build_rdg_partition_for_vertex): Collect data refs for partition.
834 (pg_add_dependence_edges): Change parameters from vector to bitmap.
835 Update uses.
836 (distribute_loop): Remve data refs from vertice data of partition
837 graph.
838
839 2017-07-05 Bin Cheng <bin.cheng@arm.com>
840
841 * tree-loop-distribution.c (params.h): Include header file.
842 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
843 (datarefs_vec): New global var.
844 (create_rdg_vertices): Use datarefs_vec directly.
845 (free_rdg): Don't free data references.
846 (build_rdg): Update use. Don't free data references.
847 (distribute_loop): Compute global variable for data references.
848 Bail out if there are too many data references.
849
850 2017-07-05 Bin Cheng <bin.cheng@arm.com>
851
852 * tree-loop-distribution.c (loop_nest): New global var.
853 (build_rdg): Use loop directly, rather than loop nest.
854 (pg_add_dependence_edges): Remove loop nest parameter. Use global
855 variable directly.
856 (distribute_loop): Compute global variable loop nest. Update use.
857
858 2017-07-05 Bin Cheng <bin.cheng@arm.com>
859
860 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
861 (partition_merge_into): New parameter. Dump reason for fusion.
862 (distribute_loop): Update use of partition_merge_into.
863
864 2017-07-05 Bin Cheng <bin.cheng@arm.com>
865
866 * tree-loop-distribution.c (bb_top_order_index): New.
867 (bb_top_order_index_size, bb_top_order_cmp): New.
868 (stmts_from_loop): Use topological order.
869 (pass_loop_distribution::execute): Compute and release topological
870 order for basic blocks.
871
872 2017-07-05 Bin Cheng <bin.cheng@arm.com>
873
874 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
875 if no loops.
876
877 2017-07-05 Bin Cheng <bin.cheng@arm.com>
878
879 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
880 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
881 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
882 * internal-fn.def (LOOP_DIST_ALIAS): New.
883 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
884 (fold_loop_internal_call): ... this.
885 (vect_loop_dist_alias_call): New function.
886 (set_uid_loop_bbs): Call fold_loop_internal_call.
887 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
888 internal calls.
889
890 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
891
892 PR target/81300
893 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
894 Require dead FLAGS_REG at the beginning of a peephole.
895
896 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
897
898 PR target/81294
899 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
900 arguments in the call to __builtin_ia32_sbb_u32.
901 (_subborrow_u64): Swap _X and _Y arguments in the call to
902 __builtin_ia32_sbb_u64.
903
904 2017-07-04 Jakub Jelinek <jakub@redhat.com>
905
906 PR debug/81278
907 * tree-vrp.c (compare_assert_loc): Turn into a function template
908 with stable template parameter. Only test if a->e is NULL,
909 !a->e == !b->e has been verified already. Use e == NULL or
910 e != NULL instead of e or ! e tests. If stable is true, don't use
911 iterative_hash_expr, on the other side allow a or b or both NULL
912 and sort the NULLs last.
913 (process_assert_insertions): Sort using compare_assert_loc<false>
914 instead of compare_assert_loc, later sort using
915 compare_assert_loc<true> before calling process_assert_insertions_for
916 in a loop. Use break instead of continue once seen NULL pointer.
917
918 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
919
920 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
921 Cortex-R7 and Cortex-R8 processors.
922
923 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
924
925 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
926 uninitialized while src is not.
927
928 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
929
930 * common/config/arm/arm-common.c: Adjust include path for
931 arm-cpu-cdata.h
932 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
933 (arm-cpu.h): Create in build directory. Adjust dependency rules.
934 (arm-cpu-data.h): Likewise.
935 (arm-cpu-cdata.h): Likewise.
936 * config/arm/arm-cpu.h: Delete.
937 * config/arm/arm-cpu-cdata.h: Delete.
938 * config/arm/arm-cpu-data.h: Delete.
939
940 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
941
942 * config/arm/arm-cpus.in (cortex-a55): New.
943 (cortex-a75): Likewise.
944 (cortex-a75.cortex-a55): Likewise.
945 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
946 cortex-a75.
947 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
948 * config/arm/arm-cpu-cdata.h: Regenerate.
949 * config/arm/arm-cpu-data.h: Regenerate.
950 * config/arm/arm-cpu.h: Regenerate.
951 * config/arm/arm-tables.opt: Regenerate.
952 * config/arm/arm-tune.md: Regenerate.
953
954 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
955
956 * haifa-sched.c (sched_create_recovery_edges): Update profile.
957
958 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
959
960 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
961 probability.
962
963 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
964
965 PR tree-optimization/81292
966 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
967 full_string_p, also call adjust_related_strinfos if the adjustment
968 is simple, otherwise invalidate related strinfos.
969
970 2017-07-04 Martin Liska <mliska@suse.cz>
971
972 PR sanitizer/81040
973 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
974 newly created variable as DECL_IGNORED_P.
975
976 2017-07-04 Martin Liska <mliska@suse.cz>
977
978 PR ipa/81293
979 * ipa-inline.c (inline_small_functions):
980 Use xstrdup_for_dump.
981
982 2017-07-04 Tom de Vries <tom@codesourcery.com>
983
984 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
985
986 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
987
988 PR target/81033
989 * config/darwin.c (darwin_function_switched_text_sections):
990 Fix spaces.
991
992 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
993
994 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
995
996 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
997
998 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
999
1000 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1001
1002 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
1003 min_profitable_iters, and th as inclusive lower bounds.
1004 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
1005 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
1006 for min_profitable_iters and min_profitable_estimate.
1007 (vect_transform_loop): Treat th as an inclusive lower bound.
1008 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1009
1010 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1011
1012 PR target/81033
1013 * config/darwin.c (darwin_function_switched_text_sections):
1014 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
1015 in two pieces, and suppress the use of buf.
1016
1017 2017-07-03 Nathan Sidwell <nathan@acm.org>
1018
1019 * hash-table.h (hash_table_mod1): Fix indentation.
1020
1021 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1022
1023 PR middle-end/81290
1024 * predict.c (force_edge_cold): Be more careful about propagation
1025 backward.
1026 * profile-count.h (profile_probability::guessed,
1027 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
1028 New.
1029 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
1030
1031 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1032
1033 * doc/invoke.texi (rcpc architecture extension): Document it.
1034
1035 2017-07-03 Richard Biener <rguenther@suse.de>
1036
1037 PR tree-optimization/60510
1038 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
1039 the scalar reduction PHI and use it.
1040 (vectorizable_reduction): Properly guard the single_defuse_cycle
1041 path for non-SLP reduction chains where we cannot use it.
1042 Rework reduc_def/index and vector type deduction. Rework
1043 vector operand gathering during reduction op code-gen.
1044 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
1045 chains dissolve the chain and leave it to non-SLP reduction
1046 handling.
1047
1048 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1049
1050 * tree-data-ref.h (dr_alignment): Declare.
1051 * tree-data-ref.c (dr_alignment): New function.
1052 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
1053 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
1054 set it.
1055 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
1056
1057 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1058
1059 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
1060 and base_misalignment fields.
1061 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
1062 * tree-data-ref.c: Include builtins.h.
1063 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
1064 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
1065 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
1066 * tree-vect-data-refs.c: Include tree-cfg.h.
1067 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
1068 fields instead of calculating an alignment here.
1069 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
1070 innermost_loop_behavior fields.
1071
1072 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1073
1074 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
1075 field.
1076 (DR_STEP_ALIGNMENT): New macro.
1077 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
1078 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
1079 (create_data_ref): Print it.
1080 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
1081 to tell whether the step preserves vector (mis)alignment.
1082 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1083 Move the check for an integer step and generalise to all INTEGER_CST.
1084 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
1085 Print the outer step alignment.
1086
1087 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1088
1089 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
1090 with offset_alignment.
1091 (DR_ALIGNED_TO): Delete.
1092 (DR_OFFSET_ALIGNMENT): New macro.
1093 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
1094 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
1095 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
1096 (create_data_ref): Likewise.
1097 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1098 (vect_analyze_data_refs): Likewise.
1099 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
1100 creating dummy innermost behavior.
1101
1102 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1103
1104 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
1105 with a "innermost_loop_behavior *" and refeence tree.
1106 * tree-data-ref.c (dr_analyze_innermost): Likewise.
1107 (create_data_ref): Update call accordingly.
1108 * tree-predcom.c (find_looparound_phi): Likewise.
1109
1110 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1111
1112 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
1113 fields with dr_wrt_vec_loop.
1114 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
1115 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
1116 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
1117 (vect_dr_behavior): New function.
1118 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
1119 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1120 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
1121 track whether the step preserves the misalignment.
1122 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
1123 Use vect_dr_behavior.
1124 (vect_setup_realignment): Update call accordingly.
1125 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
1126 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
1127 call to vect_create_addr_base_for_vector_ref.
1128 (vect_create_cond_for_align_checks): Likewise.
1129 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
1130 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
1131 (vect_recog_mask_conversion_pattern): Likewise.
1132 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
1133 (new_stmt_vec_info): Remove redundant zeroing.
1134
1135 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
1136
1137 * common/config/arm/arm-common.c (arm_be8_option): New function.
1138 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
1139 (ISA_ARMv6): Add isa_bit_be8.
1140 * config/arm/arm.h (arm_be8_option): Add prototype.
1141 (BE8_SPEC_FUNCTION): New define.
1142 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
1143 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
1144 (mlittle-endian): Similarly.
1145 (mbe8, mbe32): New options.
1146 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
1147 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
1148
1149 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1150
1151 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
1152
1153 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1154
1155 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
1156 (cleanup_tree_cfg_bb): Use it.
1157 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
1158 New functions.
1159 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
1160
1161 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1162
1163 PR bootstrap/81285
1164 * loop-doloop.c (add_test): Update profile.
1165
1166 2017-07-03 Martin Liska <mliska@suse.cz>
1167
1168 PR sanitize/81040
1169 * sanopt.c (rewrite_usage_of_param): New function.
1170 (sanitize_rewrite_addressable_params): Likewise.
1171 (pass_sanopt::execute): Call rewrite_usage_of_param.
1172
1173 2017-07-03 Richard Biener <rguenther@suse.de>
1174
1175 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
1176 back to using VIEW_CONVERT_EXPR.
1177
1178 2017-07-03 Martin Liska <mliska@suse.cz>
1179
1180 PR other/78366
1181 * doc/extend.texi: Document when a resolver function is
1182 generated for target_clones.
1183
1184 2017-07-03 Martin Liska <mliska@suse.cz>
1185
1186 * asan.c (asan_emit_stack_protection): Unpoison just red zones
1187 and shadow memory of auto variables which are subject of
1188 use-after-scope sanitization.
1189 (asan_expand_mark_ifn): Add do set only when is_poison.
1190
1191 2016-07-03 Richard Biener <rguenther@suse.de>
1192
1193 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
1194 reduction PHIs.
1195 (vect_force_simple_reduction): Record reduction def -> phi mapping.
1196 (vectorizable_reduction): Perform reduction PHI creation when
1197 visiting a reduction PHI and adjust and simplify code generation
1198 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
1199 (vect_transform_loop): Visit reduction PHIs.
1200 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
1201 defs into the SLP tree.
1202 (vect_build_slp_tree): Reduction defs terminate the recursion.
1203 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
1204 of reduction defs.
1205 (vect_get_vec_defs_for_stmt_copy): Export.
1206 (vect_get_vec_defs): Likewise.
1207 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
1208 purpose.
1209 (vect_get_vec_defs_for_stmt_copy): Declare.
1210 (vect_get_vec_defs): Likewise.
1211
1212 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
1213
1214 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
1215 parameter with a "loop" parameter and use it instead of the
1216 loop containing DR_STMT. Don't check simple_iv when doing
1217 BB analysis. Describe the two analysis modes in the comment.
1218
1219 2017-07-03 Tom de Vries <tom@codesourcery.com>
1220
1221 PR tree-optimization/69468
1222 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
1223 (find_same_succ_bb): Handle ignore_edge_flags.
1224
1225 2017-07-03 Tom de Vries <tom@codesourcery.com>
1226
1227 PR tree-optimization/81192
1228 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
1229 hash.
1230 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
1231 differs.
1232 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
1233
1234 2017-07-03 Tom de Vries <tom@codesourcery.com>
1235
1236 PR tree-optimization/81192
1237 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
1238 BB_SAME_SUCC (bb) == NULL.
1239
1240 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1241
1242 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
1243 consistency.
1244
1245 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1246
1247 * dumpfile.c: Include profile-count.h
1248 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
1249 update profile.
1250 (insert_cond_bb): Update profile.
1251 * tree-cfg.h (insert_cond_bb): Update prototype.
1252 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
1253 * tree-dump.c: Do not include tree-cfg.
1254
1255 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1256
1257 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
1258
1259 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1260
1261 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
1262 bb.
1263
1264 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
1265
1266 * tree-complex.c (expand_complex_div_wide): update profile.
1267
1268 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1269 Alan Hayward <alan.hayward@arm.com>
1270 David Sherwood <david.sherwood@arm.com>
1271
1272 * Makefile.in (MACHMODE_H): Remove insn-modes.h
1273 (CORETYPES_H): New define.
1274 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
1275 (insn-modes-inline.h, s-modes-inline-h): New rules.
1276 (generated_files): Add insn-modes-inline.h.
1277 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
1278 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
1279 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
1280 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
1281 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
1282 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
1283 (build/gencodes.o, build/genconditions.o): Likewise.
1284 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
1285 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
1286 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
1287 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
1288 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
1289 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
1290 * coretypes.h: Include everything up to real.h for generators.
1291 Include insn-modes.h first. Include wide-int-print.h after
1292 wide-int.h. Include insn-modes-inline.h and then machmode.h.
1293 * machmode.h: Don't include insn-modes.h here.
1294 * function-tests.c: Remove includes of signop.h, machmode.h,
1295 double-int.h and wide-int.h.
1296 * rtl.h: Likewise.
1297 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
1298 and wide-int.h.
1299 * optc-save-gen.awk: Likewise.
1300 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
1301 * godump.c: Remove include of wide-int-print.h.
1302 * pretty-print.h: Likewise.
1303 * wide-int-print.cc: Likewise.
1304 * wide-int.cc: Likewise.
1305 * hash-map-tests.c: Remove include of signop.h.
1306 * hash-set-tests.c: Likewise.
1307 * rtl-tests.c: Likewise.
1308 * mkconfig.sh: Remove include of machmode.h.
1309 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
1310 into...
1311 (emit_insn_modes_inline_h): ...this new function. Emit the code
1312 into an insn-modes-inline.h header file, adding appropriate
1313 include guards and end comments.
1314 (emit_insn_modes_c_header): Remove include of machmode.h.
1315 (emit_min_insn_modes_c_header): Include coretypes.h rather than
1316 machmode.h.
1317 (main): Handle -i flag and call emit_insn_modes_inline_h when
1318 it is passed.
1319
1320 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1321
1322 * tree-ssa-strlen.c (strinfo): Rename the length field to
1323 nonzero_chars. Add a full_string_p field.
1324 (compare_nonzero_chars, zero_length_string_p): New functions.
1325 (get_addr_stridx): Add an offset_out parameter.
1326 Use compare_nonzero_chars.
1327 (get_stridx): Update accordingly. Use compare_nonzero_chars.
1328 (new_strinfo): Update after above changes to strinfo.
1329 (set_endptr_and_length): Set full_string_p.
1330 (get_string_length): Update after above changes to strinfo.
1331 (unshare_strinfo): Update call to new_strinfo.
1332 (maybe_invalidate): Likewise.
1333 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
1334 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
1335 as a uhwi instead of an shwi. Update after above changes to
1336 strinfo and new_strinfo.
1337 (zero_length_string): Assert that chainsi contains full strings.
1338 Use zero_length_string_p. Update call to new_strinfo.
1339 (adjust_related_strinfos): Update after above changes to strinfo.
1340 Copy full_string_p from origsi.
1341 (adjust_last_stmt): Use zero_length_string_p.
1342 (handle_builtin_strlen): Update after above changes to strinfo and
1343 new_strinfo. Install the lhs as the string length if the previous
1344 entry didn't describe a full string.
1345 (handle_builtin_strchr): Update after above changes to strinfo
1346 and new_strinfo.
1347 (handle_builtin_strcpy): Likewise.
1348 (handle_builtin_strcat): Likewise.
1349 (handle_builtin_malloc): Likewise.
1350 (handle_pointer_plus): Likewise.
1351 (handle_builtin_memcpy): Likewise. Track nonzero characters
1352 that aren't necessarily followed by a nul terminator.
1353 (handle_char_store): Likewise.
1354
1355 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1356
1357 PR tree-optimization/80769
1358 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
1359 for malloc and calloc. Document the new invariant that all related
1360 strinfos have delayed lengths or none do.
1361 (verify_related_strinfos): Move earlier in file.
1362 (set_endptr_and_length): New function, split out from...
1363 (get_string_length): ...here. Also set the lengths of related
1364 strinfos.
1365 (zero_length_string): Assert that chainsi has known (rather than
1366 delayed) lengths.
1367 (adjust_related_strinfos): Likewise.
1368
1369 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
1370
1371 PR tree-optimization/81136
1372 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
1373 assert that two references with the same misalignment have the same
1374 compile-time misalignment if those compile-time misalignments
1375 are known.
1376
1377 2017-07-01 Andi Kleen <ak@linux.intel.com>
1378
1379 * print-tree.c (print_node): Print all attributes.
1380
1381 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1382
1383 * cfg.c (scale_bbs_frequencies): New function.
1384 * cfg.h (scale_bbs_frequencies): Declare it.
1385 * cfgloopanal.c (single_likely_exit): Cleanup.
1386 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
1387 as parameter.
1388 (scale_loop_profile): Likewise.
1389 (loop_version): Likewise.
1390 (create_empty_loop_on_edge): Update.
1391 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
1392 scale_loop_frequencies, scale_loop_profile, loopify,
1393 loop_version): Update prototypes.
1394 * modulo-sched.c (sms_schedule): Update.
1395 * predict.c (unlikely_executed_edge_p): Also check probability.
1396 (probably_never_executed_edge_p): Fix typo.
1397 * tree-if-conv.c (version_loop_for_if_conversion): Update.
1398 * tree-parloops.c (gen_parallel_loop): Update.
1399 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
1400 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1401 * tree-ssa-loop-split.c (split_loop): Update.
1402 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1403 * tree-vect-loop-manip.c (vect_do_peeling): Update.
1404 (vect_loop_versioning): Update.
1405 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1406
1407 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1408
1409 * trans-mem.c (split_bb_make_tm_edge): Update profile.
1410
1411 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1412
1413 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
1414 to keep profile consistent.
1415
1416 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1417
1418 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
1419 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1420 * profile-count.h (max_safe_multiplier): Make unsigned.
1421 (profile_count::guessed_zero): New.
1422
1423 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1424
1425 * bb-reorder.c (fix_up_crossing_landing_pad,
1426 fix_crossing_conditional_branches): Use make_single_succ_edge
1427 to keep profile consistent.
1428
1429 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
1430
1431 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
1432 to update profile.
1433
1434 2017-07-01 Jakub Jelinek <jakub@redhat.com>
1435
1436 PR sanitizer/81262
1437 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
1438 the right scopes, make sure cond_jump isn't preserved between multiple
1439 iterations. Search for fallthru edge whenever there are 3+ edges and
1440 use find_fallthru_edge for it.
1441
1442 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1443
1444 Patch by Alexander Monakov <amonakov@ispras.ru>
1445 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
1446 probabilities consistently.
1447
1448 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1449
1450 * pa.c (pa_expand_compare_and_swap_loop): Update call of
1451 emit_cmp_and_jump_insns.
1452
1453 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1454
1455 PR ipa/81261
1456 * tree-inline.c (expand_call_inline): Combine profile statuses.
1457
1458 2017-06-30 Andrew Pinski <apinski@cavium.com>
1459
1460 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
1461 fold_stmt returned true.
1462
1463 2017-06-30 Nathan Sidwell <nathan@acm.org>
1464
1465 * ggc.h (empty_string): Delete.
1466 * cfgexpand.c (expand_asm_stmt): Use plain "".
1467 * optabs.c (expand_asm_memory_barrier): Likewise.
1468 * stringpool.c (empty_string): Delete.
1469 (digit_vector, digit_string): Delete.
1470 (ggc_alloc_string): Use plain "", don't optimize single digit
1471 strings. Use ggc_alloc_atomic.
1472
1473 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
1474
1475 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
1476 comparison set and one other set, use the cost of the non-comparison
1477 set.
1478
1479 2017-06-30 Nathan Sidwell <nathan@acm.org>
1480
1481 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
1482 some formatting.
1483
1484 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
1485
1486 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
1487 loops. Remove now unneeded calls to gimple_switch_set_label() that
1488 just set removed labels to NULL_TREE.
1489
1490 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
1491
1492 * tree-ssanames.c (set_range_info_raw): Abstract from ...
1493 (set_range_info): ...here. Only call set_range_info_raw if domain
1494 is useful.
1495 (set_nonzero_bits): Call set_range_info_raw.
1496 * tree-ssanames.h (set_range_info_raw): New.
1497
1498 2017-06-30 Jakub Jelinek <jakub@redhat.com>
1499
1500 PR target/81225
1501 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
1502 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
1503 of nonimmediate_operand and <store_mask_constraint> instead of m
1504 for the input operand. For V8FI iterator, always split if input
1505 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
1506 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
1507 <store_mask_predicate> instead of register_operand and
1508 <store_mask_constraint> instead of v for the input operand. Make
1509 sure both operands aren't MEMs for if not <mask_applied>.
1510
1511 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
1512
1513 * lto-wrapper.c (copy_file) Close both file descriptors before
1514 exiting normally.
1515
1516 2017-06-30 Martin Liska <mliska@suse.cz>
1517
1518 PR ipa/81214
1519 * multiple_target.c (create_dispatcher_calls): Make ifunc
1520 also for function that don't have calls or are not referenced.
1521
1522 2017-06-30 Richard Biener <rguenther@suse.de>
1523
1524 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
1525 analyze the first scalar stmt. Move vector type computation
1526 for the BB case here from ...
1527 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
1528 live operation processing in the SLP case properly.
1529
1530 2017-06-30 Richard Biener <rguenther@suse.de>
1531
1532 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
1533
1534 2017-06-30 Martin Liska <mliska@suse.cz>
1535
1536 PR sanitizer/81021
1537 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
1538 before BUILT_IN_UNWIND_RESUME when ASAN is used.
1539
1540 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
1541
1542 * doc/invoke.texi (AArch64): Add missing options and remove redundant
1543 ones.
1544
1545 2017-06-30 Richard Biener <rguenther@suse.de>
1546
1547 PR tree-optimization/81249
1548 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
1549 condition reduction result to original scalar type.
1550
1551 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1552
1553 * profile-count.h (enum profile_quality): Fix typos and whitespace
1554 issues.
1555
1556 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1557
1558 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
1559 type for branch probabilities.
1560
1561 2017-06-29 Julian Brown <julian@codesourcery.com>
1562 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1563
1564 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
1565 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
1566 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
1567 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
1568
1569 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1570
1571 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
1572 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
1573 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
1574 CC usage from generic code to here.
1575 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
1576 CC usage into the target macros.
1577
1578 2017-06-29 Maya Rashish <coypu@sdf.org>
1579
1580 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
1581 objects.
1582
1583 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1584
1585 * arm/arm-builtins.c: Include profile-count.h
1586 * except.c (sjlj_emit_function_enter): Use
1587 profile_probability::unlikely.
1588
1589 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1590
1591 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
1592 and tocrel_offset be pointer args rather than implicitly using
1593 static versions.
1594 (legitimate_constant_pool_address_p, rs6000_emit_move,
1595 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
1596 tocrel_offset and use in toc_relative_expr_p call.
1597 (print_operand, print_operand_address): Use static tocrel_base_oac
1598 and tocrel_offset_oac.
1599 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
1600 tocrel_offset_oac.
1601
1602 2017-06-29 Maya Rashish <coypu@sdf.org>
1603
1604 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
1605
1606 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
1607
1608 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
1609 objects, take into account only the alignment of 'op0' and 'mode1' if
1610 'op0' is a MEM.
1611
1612 2017-06-29 Steve Ellcey <sellcey@cavium.com>
1613
1614 * ccmp.c (ccmp_tree_comparison_p): New function.
1615 (ccmp_candidate_p): Update to use above function.
1616 (get_compare_parts): New function.
1617 (expand_ccmp_next): Update to use new functions.
1618 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
1619 new functions.
1620 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
1621 take mode as argument.
1622 * ccmp.h (expand_ccmp_expr): Add mode as argument.
1623 * expr.c (expand_expr_real_1): Pass mode as argument.
1624
1625 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
1626
1627 * combine.c (combine_instructions): Print insns to dump_file, together
1628 with their costs.
1629
1630 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
1631
1632 * asan.c (asan_emit_stack_protection): Update.
1633 (create_cond_insert_point): Update.
1634 * auto-profile.c (afdo_propagate_circuit): Update.
1635 * basic-block.h (struct edge_def): Turn probability to
1636 profile_probability.
1637 (EDGE_FREQUENCY): Update.
1638 * bb-reorder.c (find_traces_1_round): Update.
1639 (better_edge_p): Update.
1640 (sanitize_hot_paths): Update.
1641 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
1642 (make_single_succ_edge): Update.
1643 (check_bb_profile): Update.
1644 (dump_edge_info): Update.
1645 (update_bb_profile_for_threading): Update.
1646 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
1647 probabilitycount to 0.
1648 * cfgbuild.c (compute_outgoing_frequencies): Update.
1649 * cfgcleanup.c (try_forward_edges): Update.
1650 (outgoing_edges_match): Update.
1651 (try_crossjump_to_edge): Update.
1652 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
1653 (expand_gimple_tailcall): Update.
1654 (construct_init_block): Use make_single_succ_edge.
1655 (construct_exit_block): Use make_single_succ_edge.
1656 * cfghooks.c (verify_flow_info): Update.
1657 (redirect_edge_succ_nodup): Update.
1658 (split_edge): Update.
1659 (account_profile_record): Update.
1660 * cfgloopanal.c (single_likely_exit): Update.
1661 * cfgloopmanip.c (scale_loop_profile): Update.
1662 (set_zero_probability): Remove.
1663 (duplicate_loop_to_header_edge): Update.
1664 * cfgloopmanip.h (loop_version): Update prototype.
1665 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
1666 (force_nonfallthru_and_redirect): Update.
1667 (update_br_prob_note): Update.
1668 (rtl_verify_edges): Update.
1669 (purge_dead_edges): Update.
1670 (rtl_lv_add_condition_to_bb): Update.
1671 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
1672 * cgraphunit.c (init_lowered_empty_function): Update.
1673 (cgraph_node::expand_thunk): Update.
1674 * cilk-common.c: Include profile-count.h
1675 * dojump.c (inv): Remove.
1676 (jumpifnot): Update.
1677 (jumpifnot_1): Update.
1678 (do_jump_1): Update.
1679 (do_jump): Update.
1680 (do_jump_by_parts_greater_rtx): Update.
1681 (do_compare_rtx_and_jump): Update.
1682 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
1683 do_jump_1. do_compare_rtx_and_jump): Update prototype.
1684 * dwarf2cfi.c: Include profile-count.h
1685 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
1686 (sjlj_emit_dispatch_table): Likewise.
1687 * explow.c: Include profile-count.h
1688 * expmed.c (emit_store_flag_force): Update.
1689 (do_cmp_and_jump): Update.
1690 * expr.c (compare_by_pieces_d::generate): Update.
1691 (compare_by_pieces_d::finish_mode): Update.
1692 (emit_block_move_via_loop): Update.
1693 (store_expr_with_bounds): Update.
1694 (store_constructor): Update.
1695 (expand_expr_real_2): Update.
1696 (expand_expr_real_1): Update.
1697 * expr.h (try_casesi, try_tablejump): Update prototypes.
1698 * gimple-pretty-print.c (dump_probability): Update.
1699 (dump_profile): New.
1700 (dump_gimple_label): Update.
1701 (dump_gimple_bb_header): Update.
1702 * graph.c (draw_cfg_node_succ_edges): Update.
1703 * hsa-gen.c (convert_switch_statements): Update.
1704 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
1705 (find_if_case_1): Update.
1706 (find_if_case_2): Update.
1707 * internal-fn.c (expand_arith_overflow_result_store): Update.
1708 (expand_addsub_overflow): Update.
1709 (expand_neg_overflow): Update.
1710 (expand_mul_overflow): Update.
1711 (expand_vector_ubsan_overflow): Update.
1712 * ipa-cp.c (good_cloning_opportunity_p): Update.
1713 * ipa-split.c (split_function): Use make_single_succ_edge.
1714 * ipa-utils.c (ipa_merge_profiles): Update.
1715 * loop-doloop.c (add_test): Update.
1716 (doloop_modify): Update.
1717 * loop-unroll.c (compare_and_jump_seq): Update.
1718 (unroll_loop_runtime_iterations): Update.
1719 * lra-constraints.c (lra_inheritance): Update.
1720 * lto-streamer-in.c (input_cfg): Update.
1721 * lto-streamer-out.c (output_cfg): Update.
1722 * mcf.c (adjust_cfg_counts): Update.
1723 * modulo-sched.c (sms_schedule): Update.
1724 * omp-expand.c (expand_omp_for_init_counts): Update.
1725 (extract_omp_for_update_vars): Update.
1726 (expand_omp_ordered_sink): Update.
1727 (expand_omp_for_ordered_loops): Update.
1728 (expand_omp_for_generic): Update.
1729 (expand_omp_for_static_nochunk): Update.
1730 (expand_omp_for_static_chunk): Update.
1731 (expand_cilk_for): Update.
1732 (expand_omp_simd): Update.
1733 (expand_omp_taskloop_for_outer): Update.
1734 (expand_omp_taskloop_for_inner): Update.
1735 * omp-simd-clone.c (simd_clone_adjust): Update.
1736 * optabs.c (expand_doubleword_shift): Update.
1737 (expand_abs): Update.
1738 (emit_cmp_and_jump_insn_1): Update.
1739 (expand_compare_and_swap_loop): Update.
1740 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
1741 * predict.c (predictable_edge_p): Update.
1742 (edge_probability_reliable_p): Update.
1743 (set_even_probabilities): Update.
1744 (combine_predictions_for_insn): Update.
1745 (combine_predictions_for_bb): Update.
1746 (propagate_freq): Update.
1747 (estimate_bb_frequencies): Update.
1748 (force_edge_cold): Update.
1749 * profile-count.c (profile_count::dump): Add missing space into dump.
1750 (profile_count::debug): Add newline.
1751 (profile_count::differs_from_p): Explicitly convert to unsigned.
1752 (profile_count::stream_in): Update.
1753 (profile_probability::dump): New member function.
1754 (profile_probability::debug): New member function.
1755 (profile_probability::differs_from_p): New member function.
1756 (profile_probability::differs_lot_from_p): New member function.
1757 (profile_probability::stream_in): New member function.
1758 (profile_probability::stream_out): New member function.
1759 * profile-count.h (profile_count_quality): Rename to ...
1760 (profile_quality): ... this one.
1761 (profile_probability): New.
1762 (profile_count): Update.
1763 * profile.c (compute_branch_probabilities): Update.
1764 * recog.c (peep2_attempt): Update.
1765 * sched-ebb.c (schedule_ebbs): Update.
1766 * sched-rgn.c (find_single_block_region): Update.
1767 (compute_dom_prob_ps): Update.
1768 (schedule_region): Update.
1769 * sel-sched-ir.c (compute_succs_info): Update.
1770 * stmt.c (struct case_node): Update.
1771 (do_jump_if_equal): Update.
1772 (get_outgoing_edge_probs): Update.
1773 (conditional_probability): Update.
1774 (emit_case_dispatch_table): Update.
1775 (expand_case): Update.
1776 (expand_sjlj_dispatch_table): Update.
1777 (emit_case_nodes): Update.
1778 * targhooks.c: Update.
1779 * tracer.c (better_p): Update.
1780 (find_best_successor): Update.
1781 * trans-mem.c (expand_transaction): Update.
1782 * tree-call-cdce.c: Update.
1783 * tree-cfg.c (gimple_split_edge): Upate.
1784 (move_sese_region_to_fn): Upate.
1785 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
1786 * tree-eh.c (lower_resx): Upate.
1787 (cleanup_empty_eh_move_lp): Upate.
1788 * tree-if-conv.c (version_loop_for_if_conversion): Update.
1789 * tree-inline.c (copy_edges_for_bb): Update.
1790 (copy_cfg_body): Update.
1791 * tree-parloops.c (gen_parallel_loop): Update.
1792 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
1793 (gimple_gen_time_profiler): Update.
1794 * tree-ssa-dce.c (remove_dead_stmt): Update.
1795 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1796 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
1797 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
1798 (unloop_loops): Update.
1799 (try_peel_loop): Update.
1800 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1801 * tree-ssa-loop-split.c (connect_loops): Update.
1802 (split_loop): Update.
1803 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
1804 (hoist_guard): Update.
1805 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
1806 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
1807 (value_replacement): Update.
1808 * tree-ssa-reassoc.c (branch_fixup): Update.
1809 * tree-ssa-tail-merge.c (replace_block_by): Update.
1810 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
1811 (create_edge_and_update_destination_phis): Update.
1812 (compute_path_counts): Update.
1813 (recompute_probabilities): Update.
1814 (update_joiner_offpath_counts): Update.
1815 (freqs_to_counts_path): Update.
1816 (duplicate_thread_path): Update.
1817 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
1818 (struct switch_conv_info): Update.
1819 (gen_inbound_check): Update.
1820 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1821 (vect_do_peeling): Update.
1822 (vect_loop_versioning): Update.
1823 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1824 (optimize_mask_stores): Update.
1825 * ubsan.c (ubsan_expand_null_ifn): Update.
1826 * value-prof.c (gimple_divmod_fixed_value): Update.
1827 (gimple_divmod_fixed_value_transform): Update.
1828 (gimple_mod_pow2): Update.
1829 (gimple_mod_pow2_value_transform): Update.
1830 (gimple_mod_subtract): Update.
1831 (gimple_mod_subtract_transform): Update.
1832 (gimple_ic): Update.
1833 (gimple_stringop_fixed_value): Update.
1834 (gimple_stringops_transform): Update.
1835 * value-prof.h: Update.
1836
1837 2017-06-29 Carl Love <cel@us.ibm.com>
1838
1839 * config/rs6000/rs6000-c.c: Add support for built-in functions
1840 vector signed int vec_signed (vector float);
1841 vector signed long long vec_signed (vector double);
1842 vector signed int vec_signed2 (vector double, vector double);
1843 vector signed int vec_signede (vector double);
1844 vector signed int vec_signedo (vector double);
1845 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
1846 instruction generator.
1847 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1848 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
1849 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
1850 Add define_insn.
1851 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
1852 vunsignede_v2df): Add define_expands.
1853 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
1854 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
1855 VEC_UNSIGNEDO): Add definitions.
1856 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
1857 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
1858 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
1859 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
1860 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
1861 * config/rs6000/altivec.h (vec_signed, vec_signed2,
1862 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
1863 vec_unsignede, vec_unsignedo): Add builtin defines.
1864 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
1865 declaration.
1866 * doc/extend.texi: Update the built-in documentation file for the
1867 new built-in functions.
1868
1869 2017-06-29 Richard Biener <rguenther@suse.de>
1870
1871 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
1872 reduction chains to LOOP_VINFO_REDUCTIONS.
1873 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
1874 SLP reductions after processing reduction chains.
1875
1876 2017-06-29 Nathan Sidwell <nathan@acm.org>
1877
1878 * builtins.c (fold_builtin_FUNCTION): Use
1879 lang_hooks.decl_printable_name.
1880
1881 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
1882
1883 PR middle-end/81194
1884 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
1885 with only one label.
1886 * stmt.c (expand_case): Assert NCASES is greater than one.
1887
1888 2017-06-29 Richard Biener <rguenther@suse.de>
1889
1890 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
1891 anything.
1892 (group_case_labels): Likewise.
1893 (find_taken_edge): Push sanity checking on val to workers...
1894 (find_taken_edge_cond_expr): ... here
1895 (find_taken_edge_switch_expr): ... and here, handle cases
1896 with just a default label.
1897 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
1898 (group_case_labels): Likewise.
1899 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
1900 group_case_labels does anything cleanup the CFG again.
1901
1902 2017-06-29 Bin Cheng <bin.cheng@arm.com>
1903
1904 PR tree-optimization/81196
1905 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
1906 exit condition comparing two IVs.
1907
1908 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
1909
1910 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
1911 profile to the dummy entry at the end of the list of architectures.
1912 * config/arm/arm-cpu-cdata.h: Regenerated.
1913
1914 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1915 Michael Collison <michael.collison@arm.com>
1916
1917 PR target/70119
1918 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
1919 New pattern.
1920 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
1921 (*aarch64_reg_<mode>3_minus_mask): New pattern.
1922 (*aarch64_<optab>_reg_di3_mask2): New pattern.
1923 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
1924 of shift when the shift amount is masked with constant equal to
1925 the size of the mode.
1926 * config/aarch64/predicates.md (subreg_lowpart_operator): New
1927 predicate.
1928
1929 2017-06-29 Martin Liska <mliska@suse.cz>
1930
1931 * config/i386/i386.opt: Change range from [1,5] to [0,5].
1932
1933 2017-06-29 Yury Gribov <tetra2005@gmail.com>
1934
1935 PR bootstrap/80565
1936 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
1937 code.
1938 * ipa-inline.h
1939 (edge_growth_cache_entry::edge_growth_cache_entry): New
1940 function.
1941 (reset_edge_growth_cache): Update to use constructor.
1942
1943 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1944
1945 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
1946 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
1947 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
1948
1949 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
1950
1951 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
1952 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
1953
1954 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
1955
1956 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
1957 (*-linux-uclibc*): Add t-uclibc tmake_file.
1958 * config/t-musl: New.
1959 * config/t-uclibc: New.
1960
1961 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
1962
1963 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
1964 context.
1965 (gen_comm_data): Emit architectural setting of arch_prof.
1966 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
1967 profile.
1968 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
1969 (armv8-m.base, armv8-m.main): Likewise.
1970 * arm-protos.h (arm_build_target): Add profile field.
1971 (arch_option): Likewise.
1972 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
1973 the active target.
1974 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
1975 arm_active_target.profile.
1976
1977 2017-06-28 Richard Biener <rguenther@suse.de>
1978
1979 PR middle-end/81227
1980 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
1981 TYPE_OVERFLOW_WRAPS.
1982 * match.pd (negate_expr_p): Likewise.
1983 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
1984 fold_build2, not fold_binary.
1985
1986 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
1987
1988 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
1989 Convert memory address to Pmode.
1990 (aarch64_print_operand): Assert MEM operands are always Pmode.
1991
1992 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
1993
1994 PR target/79665
1995 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
1996 Remove redundant if.
1997 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
1998 * config/arm/aarch-common-protos.h
1999 (aarch_forward_to_shift_is_not_shifted_re): Remove.
2000 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
2001
2002 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2003
2004 PR ipa/81238
2005 * multiple_target.c (create_dispatcher_calls): Set the default
2006 clone to be static, not public.
2007
2008 2017-06-28 Richard Biener <rguenther@suse.de>
2009
2010 * tree-vect-loop.c (vectorizable_reduction): Move special
2011 cond reduction IV var creation ...
2012 (vect_create_epilog_for_reduction): ... here. Remove induction_index
2013 parameter. Use STMT_VINFO_VECTYPE.
2014 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
2015 constant_p.
2016
2017 2017-06-28 Martin Liska <mliska@suse.cz>
2018
2019 PR ipa/81128
2020 * ipa-visibility.c (non_local_p): Handle visibility.
2021
2022 2017-06-28 Martin Liska <mliska@suse.cz>
2023
2024 PR driver/79659
2025 * common.opt: Add IntegerRange to various options.
2026 * opt-functions.awk (integer_range_info): New function.
2027 * optc-gen.awk: Add integer_range_info to cl_options struct.
2028 * opts-common.c (decode_cmdline_option): Handle
2029 CL_ERR_INT_RANGE_ARG.
2030 (cmdline_handle_error): Likewise.
2031 * opts.c (print_filtered_help): Show valid interval in
2032 when --help is provided.
2033 * opts.h (struct cl_option): Add range_min and range_max fields.
2034 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
2035
2036 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
2037
2038 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
2039 (x * C EQ/NE y * C): New transformation.
2040
2041 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
2042
2043 * genmultilib (combination_space): Accept '+' in option names.
2044
2045 2017-06-28 Martin Liska <mliska@suse.cz>
2046
2047 PR sanitizer/81224
2048 * asan.c (instrument_derefs): Bail out inner references
2049 that are hard register variables.
2050
2051 2017-06-28 Jakub Jelinek <jakub@redhat.com>
2052
2053 PR target/81175
2054 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
2055 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
2056
2057 2017-06-28 Richard Biener <rguenther@suse.de>
2058
2059 * tree-vectorizer.h (vect_get_vec_defs): Remove.
2060 (vect_get_slp_defs): Adjust.
2061 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
2062 out from ...
2063 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
2064 simplify.
2065 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2066 get_initial_defs_for_reduction instead of vect_get_vec_defs.
2067 (vectorizable_reduction): Adjust.
2068 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
2069 handling.
2070 (vect_get_slp_defs): Likewise.
2071 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
2072 (vectorizable_bswap): Adjust.
2073 (vectorizable_call): Likewise.
2074 (vectorizable_conversion): Likewise.
2075 (vectorizable_assignment): Likewise.
2076 (vectorizable_shift): Likewise.
2077 (vectorizable_operation): Likewise.
2078 (vectorizable_store): Likewise.
2079 (vectorizable_condition): Likewise.
2080 (vectorizable_comparison): Likewise.
2081
2082 2017-06-28 Michael Collison <michael.collison@arm.com>
2083
2084 PR target/68535
2085 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
2086 set of base_reg
2087 (arm_gen_movmemqi): Removed unused variable 'i'.
2088 Convert 'for' loop into 'while' loop.
2089 (arm_expand_prologue): Remove last unnecessary set of insn.
2090 (thumb_pop): Remove unused variable 'pushed_words'.
2091 (thumb_exit): Remove last unnecessary set of regs_to_pop.
2092
2093 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2094
2095 * config/s390/predicates.md: Use s390_rel_address_ok_p.
2096 * config/s390/s390-protos.h: Add prototype of
2097 s390_rel_address_ok_p.
2098 * config/s390/s390.c (s390_got_symbol): New function.
2099 (s390_rel_address_ok_p): New function.
2100 (legitimize_pic_address): Use s390_rel_address_ok_p.
2101 (s390_load_got): Use s390_got_symbol.
2102 (s390_option_override): Issue error if
2103 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
2104 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2105 New macro.
2106 * config/s390/s390.opt: New option mpic-data-is-text-relative.
2107
2108 2017-06-27 Andrew Pinski <apinski@cavium.com>
2109
2110 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
2111 (X * copysign (1.0, X)): New pattern.
2112 (X * copysign (1.0, -X)): New pattern.
2113 (copysign (-1.0, CST)): New pattern.
2114
2115 2017-06-27 Joseph Myers <joseph@codesourcery.com>
2116
2117 * genmultilib (combination_space): Remove variable.
2118 Validate reuse rules against regular expression for any sequence
2119 of multilib options in any order.
2120
2121 2017-06-27 Michael Collison <michael.collison@arm.com>
2122
2123 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
2124 call aarch64_split_simd_combine.
2125 * (aarch64_combine_internal<mode>): Delete pattern.
2126 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
2127 Allow register and subreg operands.
2128
2129 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2130
2131 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
2132 specific need, just fallback on defaults.
2133 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
2134
2135 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2136 Olivier Hainque <hainque@adacore.com>
2137
2138 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
2139 map for 64bits.
2140 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
2141 targets. Pick a default if no particular attempt applied.
2142 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
2143 larger contexts.
2144
2145 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2146
2147 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
2148 (x86_64-wrs-vxworks7): Likewise.
2149
2150 2017-06-27 Marek Polacek <polacek@redhat.com>
2151
2152 PR sanitizer/81223
2153 * ubsan.c (instrument_null): Check get_base_address's result for null.
2154
2155 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
2156
2157 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
2158
2159 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
2160
2161 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
2162 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
2163 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
2164 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
2165 New function types.
2166 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
2167 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
2168 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
2169 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
2170 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
2171 BUILT_IN_FEUPDATEENV): New builtins.
2172 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
2173 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
2174 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
2175 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
2176 macros.
2177 (builtin_structptr_types): Adjust size.
2178 * tree.c (builtin_structptr_types): Add four entries.
2179
2180 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2181 Olivier Hainque <hainque@adacore.com>
2182
2183 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
2184 (TLS_SYM): New local macro, forcing reference to __tls__ on
2185 link command lines for VxWorks 7 RTPs, triggering initialization
2186 of tlsLib.
2187 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
2188 OS features TLS support, true for RTPs on VxWorks 7.
2189 * config/vxworks.c (vxworks_override_options): Setup emutls
2190 accordingly.
2191
2192 2017-06-27 Jakub Jelinek <jakub@redhat.com>
2193
2194 * predict.c (test_prediction_value_range): Use -1U instead of -1
2195 to avoid narrowing conversion warning.
2196 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
2197 to avoid narrowing conversion warning.
2198 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
2199 -1.
2200 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
2201
2202 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
2203
2204 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
2205 64bit configurations.
2206 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
2207 (SIZE_TYPE): Likewise.
2208 * config/vxworks.c (vxworks_emutls_var_fields): Use
2209 long_unsigned_type_node instead of unsigned_type_node as the offset
2210 field type, which is "pointer" mode in emutls.c.
2211
2212 2017-06-27 Jakub Jelinek <jakub@redhat.com>
2213
2214 PR sanitizer/81209
2215 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
2216
2217 PR middle-end/81207
2218 * gimple-fold.c (replace_call_with_call_and_fold): Handle
2219 gimple_vuse copying separately from gimple_vdef copying.
2220
2221 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2222
2223 * value-prof.c (free_hist): Remove call to memset and the enclosing if
2224 condition.
2225
2226 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
2227 Olivier Hainque <hainque@adacore.com>
2228
2229 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
2230 for all vxworks7 targets.
2231 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
2232 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
2233 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
2234 variations for VX6/VX7 and 32/64bits later on in ...
2235 (VXWORKS_LIB_SPEC): Leverage new macros.
2236 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
2237 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
2238
2239 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
2240
2241 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
2242 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
2243
2244 2017-06-26 Carl Love <cel@us.ibm.com>
2245
2246 * config/rs6000/rs6000-c.c: Add support for built-in functions
2247 vector bool char vec_reve (vector bool char);
2248 vector signed char vec_reve (vector signed char);
2249 vector unsigned char vec_reve (vector unsigned char);
2250 vector bool int vec_reve (vector bool int);
2251 vector signed int vec_reve (vector signed int);
2252 vector unsigned int vec_reve (vector unsigned int);
2253 vector bool long long vec_reve (vector bool long long);
2254 vector signed long long vec_reve (vector signed long long);
2255 vector unsigned long long vec_reve (vector unsigned long long);
2256 vector bool short vec_reve (vector bool short);
2257 vector signed short vec_reve (vector signed short);
2258 vector double vec_reve (vector double);
2259 vector float vec_reve (vector float);
2260 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
2261 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
2262 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
2263 (altivec_vreve): New pattern.
2264 * config/rs6000/altivec.h (vec_reve): New define.
2265 * doc/extend.texi (vec_rev): Update the built-in documentation file
2266 for the new built-in functions.
2267
2268 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2269
2270 PR tree-optimization/71815
2271 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
2272 function.
2273 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
2274 has_single_use.
2275 (slsr_process_phi): Likewise.
2276 (replace_uncond_cands_and_profitable_phis): Don't replace a
2277 multiply candidate with a stride of 1 (copy or cast).
2278 (phi_incr_cost): Call uses_consumed_by_stmt rather than
2279 has_single_use.
2280 (lowest_cost_path): Likewise.
2281 (total_savings): Likewise.
2282
2283 2017-06-26 Richard Biener <rguenther@suse.de>
2284
2285 PR target/81175
2286 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
2287 Use def_builtin_pure for all gather builtins.
2288
2289 2017-06-26 Richard Biener <rguenther@suse.de>
2290
2291 PR tree-optimization/81203
2292 * tree-tailcall.c (find_tail_calls): Do not move stmts into
2293 non-dominating BBs.
2294
2295 2017-06-26 Marek Polacek <polacek@redhat.com>
2296
2297 PR c/80116
2298 * doc/invoke.texi: Document -Wmultistatement-macros.
2299
2300 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
2301
2302 * doc/sourcebuild.texi (ARM-specific attributes): Document new
2303 arm_neon_ok_no_float_abi effective target.
2304
2305 2017-06-26 Richard Biener <rguenther@suse.de>
2306
2307 PR tree-optimization/80928
2308 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
2309 (copy_bbs): Set BB_DUPLICATED flag early.
2310 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
2311 marked blocks.
2312 (execute_on_shrinking_pred): Likewise.
2313 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
2314 BB_DUPLICATED blocks.
2315 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
2316 iterate over all PHIs considering removal of *gsi.
2317
2318 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
2319
2320 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
2321 qdf24xx.
2322
2323 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2324
2325 * config/rs6000/rs6000-string.c: (expand_block_clear,
2326 do_load_for_compare, select_block_compare_mode,
2327 compute_current_alignment, expand_block_compare,
2328 expand_strncmp_align_check, expand_strn_compare,
2329 expand_block_move, rs6000_output_load_multiple)
2330 Move functions related to string/block move/compare
2331 to a separate file.
2332 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
2333 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
2334 for this function which is now used in two files.
2335 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
2336 * config.gcc: Add rs6000-string.o to extra_objs for
2337 targets powerpc*-*-* and rs6000*-*-*.
2338
2339 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2340
2341 PR target/80510
2342 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
2343 32-bit, since indexed is not valid for DImode.
2344 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
2345 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
2346 (define_peephole2 for Altivec d-form load): Add 32-bit support.
2347 (define_peephole2 for Altivec d-form store): Likewise.
2348
2349 PR ipa/81185
2350 * multiple_target.c (create_dispatcher_calls): Only create the
2351 dispatcher call if the function is the default clone of a
2352 versioned function.
2353
2354 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
2355
2356 PR middle-end/80902
2357 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
2358 a call, force the call to not be a tail call.
2359
2360 2017-06-23 Jeff Law <law@redhat.com>
2361
2362 * doc/contrib.texi: Add entry for Steven Pemberton's work on
2363 enquire.
2364
2365 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
2366
2367 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
2368 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
2369 handling for early expansion of vector shifts (sl,sr,sra,rl).
2370 (builtin_function_type): Add vector shift right instructions
2371 to the unsigned argument list.
2372
2373 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2374
2375 rtl-optimizatoin/79286
2376 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
2377 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
2378 trap. PIC register plus a const unspec without offset can never trap.
2379
2380 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
2381
2382 * tree.h (builtin_structptr_type): New type.
2383 (builtin_structptr_types): Declare new array.
2384 * tree.c (builtin_structptr_types): New array.
2385 (free_lang_data, build_common_tree_nodes): Use it.
2386
2387 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
2388
2389 PR c++/81187
2390 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
2391 -Wnoexcept.
2392
2393 2017-06-22 Matt Turner <mattst88@gmail.com>
2394
2395 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
2396 Lake models to skylake case. Assume skylake for unknown
2397 models with clflushopt.
2398
2399 2017-06-22 Jeff Law <law@redhat.com>
2400
2401 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
2402 frame sizes that do not satisfy aarch64_uimm12_shift.
2403
2404 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
2405
2406 * profile-count.h (apply_probability,
2407 apply_scale, probability_in): Fix checks for zero.
2408
2409 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2410
2411 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
2412 * doc/cppdiropts.texi (-I @var{dir}): Document it.
2413
2414 2016-06-22 Richard Biener <rguenther@suse.de>
2415
2416 * tree-vect-loop.c (vect_model_reduction_cost): Handle
2417 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
2418 REDUC_MAX_EXPR support.
2419 (vectorizable_reduction): Likewise.
2420 (vect_create_epilog_for_reduction): Likewise.
2421
2422 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
2423
2424 * match.pd (A / (1 << B) -> A >> B): New.
2425 * generic-match-head.c: Include optabs-tree.h.
2426 * gimple-match-head.c: Likewise.
2427 * optabs-tree.h (target_supports_op_p): New.
2428 * optabs-tree.c (target_supports_op_p): New.
2429
2430 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2431
2432 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
2433 $gcc_cv_ld --help output.
2434 (gcc_cv_ld_demangle): Likewise.
2435 (gcc_cv_ld_eh_frame_hdr): Likewise.
2436 (gcc_cv_ld_pie): Likewise.
2437 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
2438 (gcc_cv_ld_buildid): Likewise.
2439 (gcc_cv_ld_sysroot): Likewise.
2440 (ld_bndplt_support): Likewise.
2441 (ld_pushpopstate_support): Likewise.
2442 * configure: Regenerate.
2443 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
2444
2445 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR target/81151
2448 * config/i386/sse.md (round<mode>2): Renumber match_dup and
2449 operands indexes to avoid gap between operands and match_dups.
2450
2451 2017-06-21 Andrew Pinski <apinski@cavium.com>
2452
2453 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
2454 Increment Arith_shift and Arith_shift_reg by 1.
2455 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
2456 New tuning flag.
2457 * config/aarch64/aarch64.c (thunderx_tunings): Enable
2458 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
2459 (aarch64_strip_extend): Add new argument and test for it.
2460 (aarch64_cheap_mult_shift_p): New function.
2461 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
2462 add a cost if it is true.
2463 Update calls to aarch64_strip_extend.
2464 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
2465
2466 2017-06-21 Andrew Pinski <apinski@cavium.com>
2467
2468 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
2469 tunings.
2470 (thunderxt88): Likewise.
2471 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
2472 (thunderx_prefetch_tune): New variable.
2473 (thunderx2t99_prefetch_tune): Update for the correct values.
2474 (thunderxt88_tunings): New variable.
2475 (thunderx_tunings): Use thunderx_prefetch_tune instead of
2476 generic_prefetch_tune.
2477 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
2478
2479 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2480
2481 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
2482 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
2483 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
2484 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
2485 (aarch64_atomic_cas<mode>, GPI): Likewise.
2486
2487 2017-06-21 Martin Liska <mliska@suse.cz>
2488
2489 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
2490 statements on cold and hot labels.
2491 * predict.c (tree_estimate_probability_bb): Remove the
2492 prediction from this place.
2493
2494 2017-06-21 Martin Liska <mliska@suse.cz>
2495
2496 PR tree-optimization/79489
2497 * gimplify.c (maybe_add_early_return_predict_stmt): New
2498 function.
2499 (gimplify_return_expr): Call the function.
2500 * predict.c (tree_estimate_probability_bb): Remove handling
2501 of early return.
2502 * predict.def: Update comment about early return predictor.
2503 * gimple-predict.h (is_gimple_predict): New function.
2504 * predict.def: Change default value of early return to 66.
2505 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
2506 statements.
2507 * passes.def: Put pass_strip_predict_hints to the beginning of
2508 IPA passes.
2509
2510 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
2511
2512 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
2513 FUNCTION_DECL declarations.
2514 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
2515 declarations.
2516 (dwaf2out_decl): Likewise.
2517 * godump.c (go_early_global_decl): Skip call to the real debug hook
2518 for FUNCTION_DECL declarations.
2519 * passes.c (rest_of_decl_compilation): Skip call to the
2520 early_global_decl debug hook for FUNCTION_DECL declarations, unless
2521 -fdump-go-spec is passed.
2522
2523 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
2524
2525 * config/i386/i386.c (struct builtin_isa): New field pure_p.
2526 Reorder for compactness.
2527 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
2528 (def_builtin_pure, def_builtin_pure2): New functions.
2529 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
2530
2531 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
2532
2533 * match.pd (nop_convert): New predicate.
2534 ((A +- CST1) +- CST2): Allow some NOP conversions.
2535
2536 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2537
2538 PR c++/81130
2539 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
2540 with ctors/dtors if GOVD_SHARED is set.
2541
2542 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2543
2544 * config/aarch64/aarch64.md (movti_aarch64):
2545 Emit mov rather than orr.
2546 (movtf_aarch64): Likewise.
2547 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
2548 Emit mov rather than orr.
2549
2550 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2551
2552 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
2553 Swap alternatives, make integer dup more expensive.
2554
2555 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
2556
2557 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
2558 Return true for non-tls symbols.
2559
2560 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
2561
2562 * config/aarch64/aarch64-cores.def (cortex-a55): New.
2563 (cortex-a75): Likewise.
2564 (cortex-a75.cortex-a55): Likewise.
2565 * config/aarch64/aarch64-tune.md: Regenerate.
2566 * doc/invoke.texi (-mtune): Document new values for -mtune.
2567
2568 2017-06-21 Tom de Vries <tom@codesourcery.com>
2569
2570 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
2571 stack_size feature.
2572 (Effective-Target Keywords, Other attributes): Suggest using
2573 dg-add-options stack_size feature to get stack limit in stack_size
2574 effective target documentation.
2575
2576 2017-06-21 Julian Brown <julian@codesourcery.com>
2577 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2578
2579 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
2580 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
2581 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
2582 reservation.
2583 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
2584 attribute type list for neon_multiply.
2585 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
2586 attribute type list for neon_multiply.
2587 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
2588 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
2589 attribute type list for neon_multiply.
2590 * config/arm/types.md (crypto_pmull): Add.
2591 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
2592 attribute type list.
2593
2594 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
2595
2596 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
2597 arm1176jzf-s.
2598
2599 2017-06-20 Jakub Jelinek <jakub@redhat.com>
2600
2601 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
2602 to make sure not to dereference a NULL cost_classes_ptr pointer.
2603
2604 2017-06-20 Carl Love <cel@us.ibm.com>
2605
2606 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2607 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
2608 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
2609 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
2610 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
2611 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
2612 VMULOSW): New enum "unspec" values.
2613 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
2614 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
2615 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
2616 altivec_vmulosw): New patterns.
2617 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
2618 VMULOSW): Add definitions.
2619
2620 2017-06-20 Julia Koval <julia.koval@intel.com>
2621
2622 * config/i386/i386.c: Fix rounding expand for new pattern.
2623 * config/i386/subst.md: Fix pattern (parallel -> unspec).
2624
2625 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2626
2627 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
2628 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
2629
2630 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2631
2632 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
2633 feature string.
2634
2635 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
2636
2637 * config/aarch64/aarch64-cores.def: Rearrange to sort by
2638 architecture, then by implementer ID.
2639 * config/aarch64/aarch64-tune.md: Regenerate.
2640
2641 2017-06-20 Richard Biener <rguenther@suse.de>
2642
2643 PR middle-end/81097
2644 * fold-const.c (split_tree): Fold to type before negating.
2645
2646 2017-06-20 David Malcolm <dmalcolm@redhat.com>
2647
2648 * diagnostic-show-locus.c
2649 (selftest::test_fixit_deletion_affecting_newline): New function.
2650 (selftest::diagnostic_show_locus_c_tests): Call it.
2651
2652 2017-06-20 Andreas Schwab <schwab@suse.de>
2653
2654 PR target/80970
2655 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
2656 instead of "+d".
2657
2658 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
2659
2660 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
2661 __ARM_FEATURE_COPROC according to support.
2662
2663 2017-06-20 Jakub Jelinek <jakub@redhat.com>
2664
2665 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
2666 Rewritten to avoid overflow for > 32-bit pointers.
2667
2668 PR sanitizer/81125
2669 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
2670 by removing enum keyword.
2671 (ubsan_type_descriptor): Likewise. Formatting fix.
2672
2673 PR target/81121
2674 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
2675 splitter): Require TARGET_SSE2 in the condition.
2676
2677 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2678
2679 PR target/79799
2680 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
2681 for doing vector set of SFmode on ISA 3.0.
2682 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
2683 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
2684 element.
2685 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
2686 SFmode value into a V4SF variable that was extracted from another
2687 V4SF variable without converting the element to double precision
2688 and back to single precision vector format.
2689 (vsx_insert_extract_v4sf_p9_2): Likewise.
2690
2691 2017-06-19 Jakub Jelinek <jakub@redhat.com>
2692
2693 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
2694 in UWHI to avoid undefined overflow.
2695
2696 PR sanitizer/81125
2697 * ubsan.h (enum ubsan_encode_value_phase): New.
2698 (ubsan_encode_value): Change second argument to
2699 enum ubsan_encode_value_phase with default value of
2700 UBSAN_ENCODE_VALUE_GENERIC.
2701 * ubsan.c (ubsan_encode_value): Change second argument to
2702 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
2703 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
2704 create_tmp_var_raw instead of create_tmp_var and use a
2705 TARGET_EXPR.
2706 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
2707 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2708 ubsan_encode_value callers.
2709
2710 PR sanitizer/81111
2711 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
2712 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
2713 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
2714
2715 2017-06-19 Richard Biener <rguenther@suse.de>
2716
2717 PR middle-end/81118
2718 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
2719 estimates if we changed anything.
2720
2721 2017-06-19 Richard Biener <rguenther@suse.de>
2722
2723 PR tree-optimization/80887
2724 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
2725 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
2726 simplified lookups, then reset mprts_hook.
2727 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
2728 simplifying.
2729 (try_to_simplify): Likewise.
2730
2731 2017-06-19 Martin Liska <mliska@suse.cz>
2732
2733 PR sanitizer/80879
2734 * gimplify.c (gimplify_switch_expr):
2735 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
2736
2737 2017-06-19 Martin Liska <mliska@suse.cz>
2738
2739 * doc/install.texi: Document that PGO runs in 4 stages.
2740
2741 2017-06-19 Martin Liska <mliska@suse.cz>
2742
2743 PR ipa/80732
2744 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
2745 to dispatcher function name.
2746 * multiple_target.c (replace_function_decl): New function.
2747 (create_dispatcher_calls): Redirect both edges and references.
2748
2749 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
2750
2751 * profile-count.c (profile_count::dump): Dump quality.
2752 (profile_count::differs_from_p): Update for unsigned val.
2753 * profile-count.h (profile_count_quality): New enum.
2754 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
2755
2756 2017-06-19 Richard Biener <rguenther@suse.de>
2757
2758 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
2759 struct function as arg.
2760 (estimate_numbers_of_iterations): Export overload with loop arg.
2761 (free_numbers_of_iterations_estimates_loop): Use an overload of
2762 free_numbers_of_iterations_estimates instead.
2763 * tree-cfg.c (remove_bb): Adjust.
2764 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
2765 * tree-parloops.c (gen_parallel_loop): Likewise.
2766 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
2767 Likewise.
2768 (tree_unroll_loops_completely): Likewise.
2769 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2770 Use an overload instead and export.
2771 (estimated_loop_iterations): Adjust.
2772 (max_loop_iterations): Likewise.
2773 (likely_max_loop_iterations): Likewise.
2774 (estimate_numbers_of_iterations): Take struct function as arg
2775 and adjust.
2776 (loop_exits_before_overflow): Adjust.
2777 (free_numbers_of_iterations_estimates_loop): Use an overload.
2778 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
2779 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
2780
2781 2017-06-19 Richard Biener <rguenther@suse.de>
2782
2783 PR ipa/81112
2784 * ipa-prop.c (find_constructor_constant_at_offset): Handle
2785 RANGE_EXPR conservatively.
2786
2787 2017-06-16 Carl Love <cel@us.ibm.com>
2788
2789 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2790 definitions for vec_float, vec_float2, vec_floato,
2791 vec_floate built-ins.
2792 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
2793 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
2794 floate.
2795 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
2796 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
2797 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
2798 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
2799 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
2800 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
2801 vec_floato): Add builtin defines.
2802 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
2803 Update the built-in documentation file for the new built-in
2804 functions.
2805
2806 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2807
2808 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
2809 (mthumb): Mark as the negative of -marm.
2810
2811 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2812
2813 * doc/invoke.texi (ARM Options, -mcpu): Document supported
2814 extension options.
2815 (ARM Options, -mtune): Document that this accepts the same
2816 extension options as -mcpu.
2817 (ARM Options, -mfpu): Document addition of -mfpu=auto.
2818
2819 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2820
2821 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
2822 permitted extensions.
2823
2824 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2825
2826 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
2827 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
2828 (armv8-m.main): Add option +nodsp.
2829 * config/arm/arm-cpu-cdata.h: Regenerated.
2830
2831 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2832
2833 * config/arm/t-fuchsia: New file.
2834 * config.gcc (arm*-*-fuchsia*): Use it.
2835
2836 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2837
2838 * config/arm/t-symbian: Rewrite for new option infrastructure.
2839
2840 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2841
2842 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
2843 (MULTILIB_REQUIRED): Likewise.
2844
2845 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2846
2847 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
2848 (MULTILIB_RESUE): Likewise.
2849 (MULTILIB_MATCHES): Likewise.
2850 (MULTLIB_REQUIRED): Likewise.
2851
2852 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2853
2854 * config/arm/t-rtems: Rewrite for new option framework.
2855
2856 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2857
2858 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
2859 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
2860 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
2861 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
2862 * config/arm/t-multilib: ... here.
2863 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
2864 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
2865 armv7-a and armv8*-a when A-profile libraries have not been built.
2866 * config/arm/t-rmprofile: Rewrite.
2867
2868 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2869
2870 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
2871 with a backslash. Remove the backslash after substituting unescaped
2872 periods.
2873 * doc/fragments.texi (MULTILIB_REUSE): Document it.
2874
2875 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2876
2877 * config.gcc: (arm*-*-*): When building a-profile libraries, force
2878 the driver to pass through the default setting of -mfloat-abi.
2879 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
2880 rather than NULL.
2881 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
2882 (all_feat_combs): New rule.
2883 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
2884 default libraries.
2885 * config/arm/t-aprofile: Rewrite.
2886
2887 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2888
2889 * config/arm/arm.h (FPUTYPE_AUTO): Define.
2890 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
2891 fpu is not specified by the user/command-line.
2892 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
2893 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
2894 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
2895 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
2896 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
2897 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
2898
2899 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2900
2901 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
2902 * config/arm/t-arm-elf: Rewritten.
2903
2904 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2905
2906 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
2907 have some floating-point instructions.
2908 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
2909 (TARGET_MAYBE_HARD_FLOAT): New macro.
2910 * config/arm/arm-builtins.c (arm_init_builtins): Use
2911 TARGET_MAYBE_HARD_FLOAT.
2912 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
2913
2914 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2915
2916 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
2917 (configargs.h): Include it.
2918 (arm_print_hint_for_fpu_option): New function.
2919 (arm_parse_fpu_option): New function.
2920 (candidate_extension): New class.
2921 (arm_canon_for_multilib): New function.
2922 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
2923 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
2924 (ARCH_CANONICAL_SPECS): New macro.
2925 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
2926
2927 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2928
2929 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
2930 are set after handling multilib fragments. Set target_cpu_default2
2931 from with_cpu.
2932
2933 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2934
2935 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
2936 cpu name.
2937 (arm*-*-*): Set target_cpu_default2 to a quoted string.
2938 * config/arm/parsecpu.awk (check_cpu): Validate any extension
2939 options.
2940 (check_arch): Likewise.
2941 * config/arm/arm.c (arm_configure_build_target): Handle
2942 TARGET_CPU_DEFAULT being a string constant. Scan any feature
2943 options in the default.
2944
2945 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2946
2947 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
2948 when an option is an alias of another.
2949 * config/arm/parsecpu.awk (optalias): New parser token.
2950 (gen_comm_data): Mark non-alias options as such. Emit entries
2951 for extension aliases.
2952 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
2953 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
2954 (armv6kz, armv6zk, armv6t2): Likewise.
2955 (armv7): Make vfpv3-d16 an alias.
2956 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
2957 canonical order.
2958 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
2959 Sort in canonical order.
2960 (armv8-a): Sort in canonical order.
2961 (armv8.1-a, armv8.2-a): Likewise.
2962 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
2963 canonical order.
2964 (cortex-a9): Sort in canonical order.
2965 * config/arm/arm.c (selftests.h): Include it.
2966 (arm_test_cpu_arch_data): New function.
2967 (arm_run_self_tests): New function.
2968 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
2969 (targetm): Move declaration to the end of the file.
2970 * arm-cpu-cdata.h: Regenerated.
2971
2972 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2973
2974 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
2975 call to target_mode_check describing the type of option passed.
2976 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
2977 (arm_target_thumb_only): Use arm_parse_arch_option_name or
2978 arm_parse_cpu_option_name to match parameters against list of
2979 available targets.
2980 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
2981 arm_arch_core_flags data structure.
2982 * config/arm/arm-cpu_cdata.h: Regenerated.
2983
2984 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
2985
2986 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
2987 config/arm/arm.c.
2988 (arm_print_hint_for_cpu_option): Likewise.
2989 (arm_print_hint_for_arch_option): Likewise.
2990 (arm_parse_cpu_option_name): Likewise.
2991 (arm_parse_arch_option_name): Likewise.
2992 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
2993 of entries in the all_fpus list.
2994 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
2995 (arm_parse_cpu_option_name): Declare.
2996 (arm_parse_arch_option_name): Declare.
2997 (arm_parse_option_features): Declare.
2998 (arm_intialize_isa): Declare.
2999 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
3000 data tables to ...
3001 (gen_comm_data): ... here. Make definitions non-static.
3002 * config/arm/arm-cpu-data.h: Regenerated.
3003 * config/arm/arm-cpu-cdata.h: Regenerated.
3004
3005 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3006
3007 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
3008 (cpu_arch_extension): New structure.
3009 (cpu_arch_option, arch_option, cpu_option): New structures.
3010 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
3011 architecture types.
3012 (gen_data): Generate new format data tables.
3013 * config/arm/arm.c (cpu_tune): New structure.
3014 (cpu_option, processors): Delete.
3015 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
3016 (arm_print_hint_for_cpu_option): ... this and ...
3017 (arm_print_hint_for_arch_option): ... this.
3018 (arm_parse_arch_cpu_name): Delete. Replace with ...
3019 (arm_parse_cpu_option_name): ... this and ...
3020 (arm_parse_arch_option_name): ... this.
3021 (arm_unrecognized_feature): Change type of target parameter to
3022 cpu_arch_option.
3023 (arm_parse_arch_cpu_features): Delete. Replace with ...
3024 (arm_parse_option_features): ... this.
3025 (arm_configure_build_target): Rework to use new configuration data
3026 tables.
3027 (arm_print_tune_info): Rework for new configuration data tables.
3028 * config/arm/arm-cpu-data.h: Regenerated.
3029 * config/arm/arm-cpu.h: Regenerated.
3030
3031 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3032
3033 * Makefile.in (OBJS): Move sbitmap.o from here ...
3034 (OBJS-libcommon): ... to here.
3035
3036 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3037
3038 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
3039 (ISA_ALL_CRYPTO): New macro.
3040 (ISA_ALL_SIMD): New macro
3041 (ISA_ALL_FP): New macro.
3042 * config/arm/arm.c (fpu_bitlist): Update initializer.
3043 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
3044 simd or fp.
3045 (arm9e): Add fpu. Add option for nofp
3046 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
3047 (arm926ej-s, arm1026ej-s): Likewise.
3048 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
3049 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
3050 neon-fp16, neon-vfpv4, nofp and nosimd.
3051 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
3052 (cortex-a8): Add fpu. Add option for nofp.
3053 (cortex-a9): Add fpu. Add options for nosimd and nofp.
3054 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
3055 (cortex-r4f): Add fpu.
3056 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
3057 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
3058 for nofp.
3059 (cortex-r8): Likewise.
3060 (cortex-m4): Add fpu. Add option for nofp.
3061 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
3062 (cortex-a17.cortex-a7): Likewise.
3063 (cortex-a32): Add fpu. Add options for crypto and nofp.
3064 (cortex-a35, cortex-a53): Likewise.
3065 (cortex-a57): Add fpu. Add option for crypto.
3066 (cortex-a72, cortex-a73): Likewise.
3067 (exynos-m1): Likewise.
3068 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
3069 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
3070 (cortex-m33): Add fpu. Add option for nofp.
3071 * config/arm/arm-cpu-cdata.h: Regenerated
3072 * config/arm/arm-cpu-data.h: Regenerated.
3073
3074 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3075
3076 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
3077 (armv5te, armv5tej): Likewise.
3078 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
3079 (armv7): Add options fp and vfpv3-d16.
3080 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
3081 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
3082 nofp and nosimd.
3083 (armv7ve): Likewise.
3084 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
3085 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
3086 (armv8-a): Add nocrypto option.
3087 (armv8.1-a, armv8.2-a): Likewise.
3088 (armv8-m.main): add options fp, fp.dp and nofp.
3089
3090 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3091
3092 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
3093 nofp.
3094 (armv8-a+crc): Delete.
3095 (armv8.1-a): Add options simd, crypto and nofp.
3096 (armv8.2-a): Add options fp16, simd, crypto and nofp.
3097 (armv8.2-a+fp16): Delete.
3098 (armv8-m.main): Add option dsp.
3099 (armv8-m.main+dsp): Delete.
3100 (cortex-a8): Add fpu. Add nofp option.
3101 (cortex-a9): Add fpu. Add nofp and nosimd options.
3102 * config/arm/parsecpu.awk (gen_data): Generate option tables and
3103 link to main cpu and architecture data structures.
3104 (gen_comm_data): Only put isa attributes from the main architecture
3105 in common tables.
3106 (option): New statement for architecture and CPU entries.
3107 * arm.c (struct cpu_option): New structure.
3108 (struct processors): Add entry for options.
3109 (arm_unrecognized_feature): New function.
3110 (arm_parse_arch_cpu_name): Ignore any characters after the first
3111 '+' character.
3112 (arm_parse_arch_cpu_feature): New function.
3113 (arm_configure_build_target): Separate out any CPU and architecture
3114 features and parse separately. Don't error out if -mfpu=auto is
3115 used with only an architecture string.
3116 (arm_print_asm_arch_directives): New function.
3117 (arm_file_start): Call it.
3118 * config/arm/arm-cpu-cdata.h: Regenerated.
3119 * config/arm/arm-cpu-data.h: Likewise.
3120 * config/arm/arm-tables.opt: Likewise.
3121
3122 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3123
3124 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
3125 assembler when it is not -mfpu=auto.
3126
3127 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3128
3129 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
3130 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
3131 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
3132 (ASM_CPU_SPEC): Rewrite.
3133 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
3134 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
3135 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
3136 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
3137 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
3138 copied string is NUL-terminated. Also strip any characters prefixed
3139 by '+'.
3140 (arm_rewrite_selected_arch): New function.
3141 (arm_rewrite_march): New function.
3142
3143 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
3144
3145 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
3146 (x_arm_cpu_string, x_arm_tune_string): Likewise.
3147 (march, mcpu, mtune): Convert to string-based options.
3148 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
3149 (arm_parse_arch_cpu_name): New function.
3150 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
3151 identify selected architecture or CPU.
3152 (arm_option_save): New function.
3153 (TARGET_OPTION_SAVE): Redefine.
3154 (arm_option_restore): Restore string options.
3155 (arm_option_print): Print string options.
3156
3157 2017-06-16 Martin Sebor <msebor@redhat.com>
3158
3159 PR tree-optimization/80933
3160 PR tree-optimization/80934
3161 * builtins.c (fold_builtin_3): Do not handle bcmp here.
3162 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
3163 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
3164 (gimple_fold_builtin): Call them.
3165
3166 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3167
3168 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
3169 as unlikely; update profile.
3170
3171 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3172
3173 * predict.c (force_edge_cold): Handle declaring edges impossible
3174 more aggresively.
3175
3176 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3177
3178 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
3179 profile.
3180 (try_unroll_loop_completely): Fix reporting.
3181
3182 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3183
3184 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
3185
3186 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
3187
3188 PR target/71778
3189 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
3190 if given a non-constant argument for an intrinsic which requires a
3191 constant.
3192
3193 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3194
3195 * profile.c (compare_freqs): New function.
3196 (branch_prob): Sort edge list.
3197 (find_spanning_tree): Assume that the list is priority sorted.
3198
3199 2017-06-16 Richard Biener <rguenther@suse.de>
3200
3201 PR tree-optimization/81090
3202 * passes.def (pass_record_bounds): Remove.
3203 * tree-pass.h (make_pass_record_bounds): Likewise.
3204 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
3205 make_pass_record_bounds): Likewise.
3206 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
3207 not free niter estimates at the beginning but at the end.
3208 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
3209
3210 2017-06-16 Richard Biener <rguenther@suse.de>
3211
3212 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
3213 initializer to workaround ICE in host GCC 4.8.
3214
3215 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
3216
3217 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
3218 counts.
3219 (clone_inlined_nodes): Update.
3220
3221 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3222
3223 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
3224 prefetch settings, and enable prefetching by default at -O3.
3225
3226 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3227
3228 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3229 Set flag_prefetch_loop_arrays according to tuning data.
3230
3231 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3232
3233 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
3234 New tune structure.
3235 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
3236 [Unrelated to main purpose of the patch] Place the pointer field last
3237 to enable type checking errors when tune structure are wrongly merged.
3238 * config/aarch64/aarch64.c (generic_prefetch_tune,)
3239 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
3240 (thunderx2t99_prefetch_tune): New tune constants.
3241 (tune_params *_tunings): Update all tunings (no functional change).
3242 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
3243 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
3244 from tunings structures.
3245
3246 2017-06-16 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR sanitizer/81094
3249 * ubsan.c (instrument_null): Add T argument, use it instead
3250 of computing it based on IS_LHS.
3251 (instrument_object_size): Likewise.
3252 (pass_ubsan::execute): Adjust instrument_null and
3253 instrument_object_size callers to pass gimple_get_lhs or
3254 gimple_assign_rhs1 result to it. Use instrument_null instead of
3255 calling get_base_address and instrument_mem_ref. Handle
3256 aggregate call arguments for object-size sanitization.
3257
3258 2017-06-16 Yury Gribov <tetra2005@gmail.com>
3259
3260 PR tree-optimization/81089
3261 * tree-vrp.c (is_masked_range_test): Validate operands of
3262 subexpression.
3263
3264 2017-06-15 Martin Sebor <msebor@redhat.com>
3265
3266 PR c++/80560
3267 * dumpfile.c (dump_register): Avoid calling memset to initialize
3268 a class with a default ctor.
3269 * gcc.c (struct compiler): Remove const qualification.
3270 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
3271 * hash-table.h: Ditto.
3272 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
3273 assignment.
3274 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
3275 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
3276 default ctor.
3277 * params.h (struct param_info): Make struct members non-const.
3278 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
3279 with default initialization.
3280 * vec.h (vec_copy_construct, vec_default_construct): New helper
3281 functions.
3282 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
3283 with vec_copy_construct.
3284 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
3285 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
3286 * doc/invoke.texi (-Wclass-memaccess): Document.
3287
3288 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3289
3290 * emit-rtl.h (is_leaf): Update comment about local
3291 register allocator.
3292
3293 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
3294
3295 PR target/78818
3296 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
3297 for a variable to have a section before checking if the section has a
3298 name.
3299 Set section to.persistent if persistent attribute is set.
3300 Warn if .persistent attribute is used on an automatic variable.
3301
3302 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
3303
3304 PR rtl-optimization/80474
3305 * reorg.c (update_block): Do not ignore instructions in a delay slot.
3306
3307 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
3308
3309 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
3310 of REGNO.
3311
3312 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
3313
3314 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
3315 (casesi): Emit bounds checking as RTL.
3316 (casesi_internal_mips16_<mode>): Remove bounds checking.
3317
3318 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
3319
3320 * config/xtensa/xtensa.c (xtensa_option_override): Append
3321 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
3322 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
3323 xtensa_doloop_hooks): Define unconditionally.
3324 (xtensa_reorg_loops): Only call reorg_loops in the presence of
3325 TARGET_LOOPS.
3326 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
3327 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
3328 for it in xtensa_option_override.
3329 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3330 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
3331
3332 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
3333
3334 * doc/cppopts.texi: Document '-' special value to -MF.
3335
3336 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
3337
3338 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
3339 (cortex_a53_fconst): Likewise.
3340 (cortex_a53_fpmul): Likewise.
3341 (cortex_a53_f_load_64): Likewise.
3342 (cortex_a53_f_load_many): Likewise.
3343 (cortex_a53_advsimd_alu): Likewise.
3344 (cortex_a53_advsimd_alu_q): Likewise.
3345 (cortex_a53_advsimd_mul): Likewise.
3346 (cortex_a53_advsimd_mul_q): Likewise.
3347 (fpmac bypass): Add new bypass for fpmac-fpmac case.
3348 Add missing fmul, r2f_cvt and fconst cases.
3349
3350 2017-06-14 Richard Biener <rguenther@suse.de>
3351
3352 PR middle-end/81088
3353 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
3354 literal constants.
3355 (fold_binary_loc): When associating do not treat pre-existing
3356 TREE_OVERFLOW on literal constants as a reason to allow
3357 TREE_OVERFLOW on associated literal constants.
3358
3359 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3360
3361 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
3362 (MASK_FEATURES): New macro.
3363 * config/sparc/sparc.c (sparc_option_override): Remove the special
3364 handling of -mfpu and generalize it to all MASK_FEATURES switches.
3365
3366 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3367
3368 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
3369 a division of 0 if non-call exceptions are enabled.
3370
3371 2017-06-14 Andrew Pinski <apinski@cavium.com>
3372 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
3373
3374 PR target/71663
3375 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
3376 Improve vector initialization code gen for only variable case.
3377
3378 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
3379
3380 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
3381
3382 2017-06-14 Richard Biener <rguenther@suse.de>
3383
3384 PR tree-optimization/81083
3385 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
3386 as values.
3387
3388 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3389
3390 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
3391 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
3392 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
3393 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
3394 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
3395 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
3396
3397 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3398
3399 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
3400 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
3401
3402 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3403
3404 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
3405
3406 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3407
3408 * config/rs6000/t-rtems: Don't handle SPE.
3409
3410 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3411
3412 * config/rs6000/t-linux: Don't handle SPE.
3413
3414 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3415
3416 * config/rs6000/eabispe.h: Delete file.
3417
3418 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3419
3420 * config/rs6000/t-spe: Delete file.
3421
3422 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3423
3424 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
3425 (rs6000_legitimate_offset_address_p): Return false for anything in
3426 V2SImode or V2SFmode.
3427
3428 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
3429
3430 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
3431 except V2SF and V2SI. Rearrange the vector modes, and add comments.
3432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
3433 and V4HImode.
3434 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
3435 (rs6000_legitimate_offset_address_p): Ditto.
3436 (rs6000_emit_move): Ditto.
3437 (rs6000_init_builtins): Remove V4HI_type_node.
3438
3439 2017-06-13 Martin Liska <mliska@suse.cz>
3440
3441 PR sanitize/78204
3442 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
3443 (gate_asan): Likewise.
3444 * asan.h (asan_no_sanitize_address_p): Remove the function.
3445 (sanitize_flags_p): New function.
3446 * builtins.def: Fix coding style.
3447 * common.opt: Use renamed enum value.
3448 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
3449 * doc/extend.texi: Document no_sanitize attribute.
3450 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
3451 to SANITIZE_UNDEFINED_NONDEFAULT.
3452 * gcc.c (sanitize_spec_function): Use the renamed enum value.
3453 * gimple-fold.c (optimize_atomic_compare_exchange_p):
3454 Use sanitize_flags_p.
3455 * gimplify.c (gimplify_function_tree): Likewise.
3456 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
3457 * opts.c (parse_no_sanitize_attribute): New function.
3458 (common_handle_option): Use renamed enum value.
3459 * opts.h (parse_no_sanitize_attribute): Declare.
3460 * tree.c (sanitize_flags_p): New function.
3461 * tree.h: Declared here.
3462 * tsan.c: Use sanitize_flags_p.
3463 * ubsan.c (ubsan_expand_null_ifn): Likewise.
3464 (instrument_mem_ref): Likewise.
3465 (instrument_bool_enum_load): Likewise.
3466 (do_ubsan_in_current_function): Remove the function.
3467 (pass_ubsan::execute): Use sanitize_flags_p.
3468 * ubsan.h: Remove do_ubsan_in_current_function
3469 * tree-cfg.c (print_no_sanitize_attr_value): New function.
3470 (dump_function_to_file): Use it here.
3471
3472 2017-06-13 Martin Jambor <mjambor@suse.cz>
3473
3474 PR tree-optimization/80803
3475 PR tree-optimization/81063
3476 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
3477 (propagate_subaccesses_across_link): Enqueue subtree whenever
3478 necessary instead of relying on the caller.
3479
3480 2017-06-13 Martin Jambor <mjambor@suse.cz>
3481
3482 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
3483 that have a first_link.
3484 (sort_and_splice_var_accesses): Do not check first_link before
3485 enquing.
3486 (subtree_mark_written_and_enqueue): Likewise.
3487 (propagate_all_subaccesses): Likewise and do not stop at first
3488 parent with a first_link.
3489
3490 2017-06-13 Martin Jambor <mjambor@suse.cz>
3491
3492 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
3493 instead of f.
3494
3495 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3496
3497 * match.pd: New pattern.
3498
3499 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3500
3501 * tree-vrp.c (is_masked_range_test): New function.
3502 (register_edge_assert_for): Determine ranges for
3503 some bit tests.
3504
3505 2017-06-13 Yury Gribov <tetra2005@gmail.com>
3506
3507 PR tree-optimization/67328
3508 * fold-const.c (maskable_range_p): New function.
3509 (build_range_check): Generate bittests if possible.
3510
3511 2017-06-13 Martin Liska <mliska@suse.cz>
3512
3513 * gimple-pretty-print.c (dump_probability): Add new argument.
3514 (dump_edge_probability): Dump both probability and count.
3515 (dump_gimple_label): Likewise.
3516 (dump_gimple_bb_header): Likewise.
3517
3518 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
3519
3520 PR target/81072
3521 * config/avr/avr-devices.c: Fix indentation.
3522 * config/avr/gen-avr-mmcu-specs.c: Dito.
3523
3524 2017-06-13 Richard Biener <rguenther@suse.de>
3525
3526 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
3527 instead get vector type from stmt_info.
3528 (vectorizable_reduction): Adjust. Remove dead code.
3529
3530 2017-06-13 Richard Biener <rguenther@suse.de>
3531
3532 PR middle-end/81065
3533 * fold-const.c (extract_muldiv_1): Remove bogus distribution
3534 case of C * (x * C2 + C3).
3535 (fold_addr_of_array_ref_difference): Properly fold index difference.
3536
3537 2017-06-12 David S. Miller <davem@davemloft.net>
3538
3539 PR target/80968
3540 * config/sparc/sparc.md (return expander): Emit frame blockage if
3541 function uses alloca.
3542
3543 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
3544
3545 * combine.c (make_field_assignment): Check len rather than the mode
3546 precision when calling force_to_mode.
3547
3548 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
3549
3550 Support multilibs and devices that see flash in RAM address range.
3551
3552 PR target/81072
3553 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
3554 (avr_mcu_t) <flash_pm_offset>: New field.
3555 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
3556 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
3557 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
3558 (AVR_TINY_PM_OFFSET): Remove macro.
3559 * config/avr/avr.opt (-mshort-calls): New option.
3560 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3561 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
3562 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3563 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
3564 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
3565 instead of avr_arch->have_jmp_call.
3566 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
3567 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
3568 avr_arch->flash_pm_offset to define.
3569 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
3570 new field flash_pm_offset. Add entry for avrxmega3.
3571 (avr_texinfo): Add entry for avrxmega3.
3572 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
3573 attiny212, attiny214,
3574 attiny412, attiny414, attiny416, attiny417,
3575 attiny814, attiny816, attiny817,
3576 attiny1614, attiny1616, attiny1617,
3577 attiny3214, attiny3216, attiny3217.
3578 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
3579 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
3580 (avr_print_operand_address) [AVR_TINY]: Same.
3581 (avr_asm_init_sections) <readonly_data_section>: Only patch
3582 callback if avr_arch->flash_pm_offset = 0.
3583 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
3584 for rodata if avr_arch->flash_pm_offset != 0.
3585 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
3586 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
3587 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
3588 (m_options): Append opt_rcall.
3589 (m_dirnames): Append dir_rcall.
3590 * config/avr/t-multilib: Regenerate.
3591
3592 * configure.ac [target=avr]: Check whether avrxmega3 default
3593 linker description file works as needed.
3594 * configure: Regenerate.
3595 * doc/avr-mmcu.texi: Regenerate.
3596 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
3597 <__AVR_ARCH__>: Document avrxmega3 and 103.
3598 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
3599 <__AVR_SHORT_CALLS__>: Document it.
3600 <__AVR_PM_BASE_ADDRESS__>: Document it.
3601 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
3602 (AVR Variable Attributes) <progmem>: Document this is
3603 not needed for avrxmega3.
3604 (AVR Named Address Spaces) <__flash>: Dito.
3605
3606 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
3607
3608 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
3609
3610 2017-06-12 Doug Rupp <rupp@adacore.com>
3611
3612 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
3613 Append vxworks-stdint.h to the tm_file list.
3614 * config/vxworks-stdint.h: New file.
3615
3616 2017-06-12 Martin Liska <mliska@suse.cz>
3617
3618 PR tree-optimization/81041
3619 * tree-profile.c (gimple_gen_ic_func_profiler):
3620 Create an extra BB in profile-generate
3621 (gimple_gen_time_profiler): Likewise.
3622
3623 2017-06-12 Jakub Jelinek <jakub@redhat.com>
3624
3625 PR tree-optimization/81003
3626 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
3627 (update_range_test): Use it instead of force_gimple_operand_gsi.
3628
3629 2017-06-12 Richard Biener <rguenther@suse.de>
3630
3631 PR tree-optimization/81053
3632 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
3633 with backedge value not defined in loop. Simplify def stmt
3634 compute.
3635
3636 2017-06-11 Tom de Vries <tom@codesourcery.com>
3637
3638 PR target/79939
3639 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
3640 Return true.
3641 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
3642 nvptx_cannot_force_const_mem.
3643
3644 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3645
3646 * opts.c (finish_options): Move test for flag_split_stack after
3647 it has been initialized.
3648
3649 2017-06-11 Jason Merrill <jason@redhat.com>
3650
3651 * tree.h (id_equal): New.
3652 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
3653 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
3654 instead of strcmp of IDENTIFIER_POINTER.
3655
3656 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3657
3658 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
3659 (mark_all_inlined_calls_cdtor): Fix formating.
3660 (inline_transform): Rescale profile before inlining.
3661
3662 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3663
3664 * cgraph.h (cgraph_edge::clone): Update prototype.
3665 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
3666 (cgraph_node::create_clone): Update.
3667 (cgraph_node::create_version_clone): Update.
3668 * tree-inline.c (copy_bb): Update.
3669 (expand_call_inline): Update.
3670
3671 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
3672
3673 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
3674 factored out from ...
3675 (rs6000_emit_prologue): ... here.
3676
3677 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
3678
3679 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
3680 factored out from ...
3681 (rs6000_emit_prologue): ... here.
3682
3683 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3684
3685 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
3686 edge counts.
3687 (handle_missing_profiles): Fix computation of tp_first_run.
3688 (counts_to_freqs): Do not touch freqs when count is 0.
3689
3690 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
3691
3692 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
3693 profile.
3694
3695 2017-06-10 Tom de Vries <tom@codesourcery.com>
3696
3697 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3698 attributes): Document signal effective target.
3699
3700 2017-06-10 Tom de Vries <tom@codesourcery.com>
3701
3702 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
3703 Document effective target stack_size.
3704
3705 2017-06-09 David Malcolm <dmalcolm@redhat.com>
3706
3707 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
3708 to the edit_context if they can be auto-applied.
3709
3710 2017-06-9 Ian Lance Taylor <iant@golang.org>
3711
3712 * opts.c (finish_options): If -fsplit-stack, disable implicit
3713 -forder-blocks-and-partition.
3714 * doc/invoke.texi (Optimize Options): Document that when using
3715 -fsplit-stack -forder-blocks-and-partition is not implicitly
3716 enabled.
3717
3718 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3719
3720 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
3721 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
3722 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
3723 * builtins.def (abort, trap, unreachable): Declare cold.
3724 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
3725 * tree-core.h (ECF_COLD): New.
3726 * tree.c (set_call_expr_flags): Handle ECF_COLD.
3727 (build_common_builtin_nodes): Mark unreachable and abort as cold.
3728
3729 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3730
3731 * predict.c (unlikely_executed_stmt_p): Cleanup.
3732
3733 2017-06-09 Richard Biener <rguenther@suse.de>
3734
3735 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
3736 model if the ref is always written to.
3737
3738 2017-06-09 Tamar Christina <tamar.christina@arm.com>
3739
3740 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
3741
3742 2017-06-09 Tamar Christina <tamar.christina@arm.com>
3743
3744 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
3745 than udiv.
3746
3747 2017-06-09 Tom de Vries <tom@codesourcery.com>
3748
3749 PR target/80855
3750 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
3751 "target cannot support label values" when encountering LABEL_REF.
3752
3753 2017-06-09 Martin Liska <mliska@suse.cz>
3754
3755 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
3756 (gimple_gen_ic_func_profiler): Emit direct comparison
3757 of __gcov_indirect_call_callee with NULL.
3758 (gimple_gen_time_profiler): Change probability from
3759 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
3760
3761 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3762
3763 * profile.c (edge_gcov_counts): Turn to pointer.
3764 (compute_branch_probabilities, compute_branch_probabilities): Update.
3765 (branch_prob): Do not clear edge_gcov_count.
3766 * profile.h (edge_gcov_counts): Turn to pointer.
3767 (edge_gcov_count): Update.
3768
3769 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
3770
3771 * gimple.h (gimple_check_failed): Mark cold.
3772
3773 2017-06-09 Richard Biener <rguenther@suse.de>
3774
3775 PR tree-optimization/66623
3776 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
3777 refactor check_reduction into two parts, properly computing
3778 whether we have to check reduction validity for outer loop
3779 vectorization.
3780
3781 2017-06-09 Richard Biener <rguenther@suse.de>
3782
3783 PR tree-optimization/79483
3784 * graphite-scop-detection.c (order): New global.
3785 (get_order): Compute bb to order mapping that satisfies code
3786 generation constraints.
3787 (cmp_pbbs): New helper.
3788 (build_scops): Start domwalk at entry block, sort generated
3789 pbbs.
3790
3791 2017-06-09 Richard Biener <rguenther@suse.de>
3792
3793 PR middle-end/81007
3794 * ipa-polymorphic-call.c
3795 (ipa_polymorphic_call_context::restrict_to_inner_class):
3796 Skip FIELD_DECLs with error_mark_node type.
3797 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
3798 last again.
3799
3800 2017-06-09 Martin Liska <mliska@suse.cz>
3801
3802 * predict.c (struct branch_predictor): New struct.
3803 (test_prediction_value_range): New test.
3804 (predict_c_tests): New function.
3805 * selftest-run-tests.c (selftest::run_tests): Run the function.
3806 * selftest.h: Declare new tests.
3807
3808 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
3809
3810 PR target/80966
3811 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
3812 gen_add3_insn did not fail.
3813 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
3814 r0, construct that number in a temporary reg and add that reg to r0.
3815 If asked to put the result in r0 as well, fail.
3816
3817 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
3818
3819 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
3820 for early expansion of vec_eqv.
3821
3822 2017-06-08 Jakub Jelinek <jakub@redhat.com>
3823
3824 PR middle-end/81005
3825 * ubsan.c (instrument_null): Avoid pointless code temporary.
3826 (pass_ubsan::execute): Instrument aggregate arguments of calls.
3827
3828 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
3829
3830 PR target/81015
3831 Revert:
3832 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
3833
3834 PR target/59874
3835 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
3836 (*clzhi2): Ditto.
3837
3838 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3839
3840 * predict.c (unlikely_executed_edge_p): Move ahead.
3841 (probably_never_executed_edge_p): Use it.
3842
3843 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3844
3845 PR middle-end/79988
3846 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
3847 gimple_call_builtin_p call.
3848
3849 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3850
3851 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
3852 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
3853 rtl_check_failed_type2, rtl_check_failed_code1,
3854 rtl_check_failed_code2, rtl_check_failed_code_mode,
3855 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
3856 rtvec_check_failed_bounds, rtl_check_failed_flag,
3857 _fatal_insn_not_found, _fatal_insn): Likewise.
3858 * tree.h (tree_contains_struct_check_failed,
3859 tree_check_failed, tree_not_check_failed,
3860 tree_class_check_failed, tree_range_check_failed,
3861 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
3862 tree_vec_elt_check_failed, phi_node_elt_check_failed,
3863 tree_operand_check_failed, omp_clause_check_failed,
3864 omp_clause_operand_check_failed, omp_clause_range_check_failed):
3865 Likewise.
3866
3867 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3868
3869 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
3870 flag_branch_probabilities.
3871 * ipa-inline.c (edge_badness): Likewise.
3872 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
3873 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3874 * predict.c (maybe_hot_frequency_p): Likewise.
3875 (probably_never_executed): Likewise.
3876 * sched-ebb.c (schedule_ebbs): Likewise.
3877 * sched-rgn.c (find_single_block_region): Likewise.
3878 * tracer.c (tail_duplicate): Likewise.
3879
3880 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3881
3882 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
3883 longer requires x_flag_profile_use.
3884
3885 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3886
3887 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
3888 instead of flag_reorder_blocks_and_partition.
3889 * dbxout.c (dbxout_function_end): Likewise.
3890 * dwarf2out.c (gen_subprogram_die): Likewise.
3891 * haifa-sched.c (sched_create_recovery_edges): Likewise.
3892 * hw-doloop.c (reorg_loops): Likewise.
3893 * varasm.c (assemble_start_function,
3894 assemble_end_function): Likewise.
3895 (decide_function_section): Do not check for
3896 flag_reorder_blocks_and_partition.
3897
3898 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3899
3900 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
3901 New function.
3902 (chkp_get_hard_register_fake_addr_expr): Ditto.
3903 (chkp_build_addr_expr): Add check for hard reg case.
3904 (chkp_parse_array_and_component_ref): Ditto.
3905 (chkp_find_bounds_1): Ditto.
3906 (chkp_process_stmt): Don't generate bounds store for
3907 hard reg case.
3908
3909 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3910
3911 * predict.c (maybe_hot_bb_p): Do not check profile status.
3912 (maybe_hot_edge_p): Likewise.
3913 (probably_never_executed): Check for zero counts even if profile
3914 is not read.
3915 (unlikely_executed_edge_p): New function.
3916 (unlikely_executed_stmt_p): New function.
3917 (unlikely_executed_bb_p): New function.
3918 (set_even_probabilities): Use unlikely predicates.
3919 (combine_predictions_for_bb): Likewise.
3920 (predict_paths_for_bb): Likewise.
3921 (predict_paths_leading_to_edge): Likewise.
3922 (determine_unlikely_bbs): New function.
3923 (estimate_bb_frequencies): Use it.
3924 (compute_function_frequency): Use zero counts even if profile is
3925 not read.
3926 * profile-count.h: Fix typo.
3927
3928 2017-08-08 Julia Koval <julia.koval@intel.com>
3929
3930 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
3931 _mm512_mask_cvtsepi16_storeu_epi8,
3932 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
3933 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
3934 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
3935 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
3936 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
3937 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
3938 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
3939 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
3940 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
3941 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
3942 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
3943 __builtin_ia32_pmovuswb256mem_mask,
3944 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
3945 __builtin_ia32_pmovwb512mem_mask): New builtins.
3946
3947 2017-08-08 Julia Koval <julia.koval@intel.com>
3948
3949 PR target/73350,80862
3950 * config/i386/subst.md (round): Fix round pattern.
3951 * config/i386/i386.c (ix86_erase_embedded_rounding):
3952 Fix erasing rounding for the fixed pattern.
3953
3954 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
3955
3956 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
3957
3958 2017-06-08 Martin Liska <mliska@suse.cz>
3959
3960 PR gcov-profile/80911
3961 * gcov.c (block_info::block_info): New constructor.
3962
3963 2017-06-07 Carl Love <cel@us.ibm.com>
3964
3965 * config/rs6000/rs6000-c: The return type of the following
3966 built-in functions was implemented as int not long long. Fix sign
3967 of return value for the unsigned version of vec_mulo and vec_mule.
3968 vector unsigned long long vec_bperm (vector unsigned long long,
3969 vector unsigned char)
3970 vector signed long long vec_mule (vector signed int,
3971 vector signed int)
3972 vector unsigned long long vec_mule (vector unsigned int,
3973 vector unsigned int)
3974 vector signed long long vec_mulo (vector signed int,
3975 vector signed int)
3976 vector unsigned long long vec_mulo (vector unsigned int,
3977 vector unsigned int)
3978 * doc/extend.texi: Fix the documentation for the built-in
3979 functions.
3980
3981 2017-06-07 Carl Love <cel@us.ibm.com>
3982
3983 PR target/80982
3984 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
3985 for BE.
3986
3987 2017-06-07 Carl Love <cel@us.ibm.com>
3988
3989 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
3990 support, Generate doublehv for signed int/float for BE case only.
3991
3992 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
3993
3994 * doc/invoke.texi (mcx16): Rewrite.
3995
3996 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
3997
3998 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
3999 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
4000 *mov<mode>_softfloat, and an anonymous splitter): Use
4001 nonimmediate_operand instead of rs6000_nonimmediate_operand.
4002
4003 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4004
4005 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
4006 SPEFSCR registers.
4007 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
4008 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
4009 (rs6000_debug_reg_global): Adjust.
4010 (rs6000_init_hard_regno_mode_ok): Adjust.
4011 (rs6000_dbx_register_number): Adjust.
4012 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
4013 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4014 Remove SPE_ACC and SPEFSCR.
4015 (REG_ALLOC_ORDER): Ditto.
4016 (FRAME_POINTER_REGNUM): Change to 111.
4017 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
4018 (REG_CLASS_NAMES): Ditto.
4019 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
4020 (REGISTER_NAMES): Ditto.
4021 (ADDITIONAL_REG_NAMES): Ditto.
4022 (rs6000_reg_names): Ditto.
4023 * config/rs6000/rs6000.md: Renumber some register number
4024 define_constants.
4025
4026 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4027
4028 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
4029 registers.
4030 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
4031 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
4032 to 117.
4033 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
4034 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4035 Delete the SPE high registers.
4036 (REG_ALLOC_ORDER): Ditto.
4037 (enum reg_class): Remove SPE_HIGH_REGS.
4038 (REG_CLASS_NAMES): Ditto.
4039 (REG_CLASS_CONTENTS): Delete the SPE high registers.
4040 (REGISTER_NAMES): Ditto.
4041 (rs6000_reg_names): Ditto.
4042 * doc/tm.texi.in: Remove SPE as example.
4043 * doc/tm.texi: Regenerate.
4044
4045 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4046
4047 * config/rs6000/8540.md (ppc8540_brinc): Delete.
4048 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
4049 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
4050 * config/rs6000/rs6000.md (type): Remove "brinc".
4051
4052 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4053
4054 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
4055 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
4056 * config/rs6000/linuxspe.h: Delete file.
4057 * config/rs6000/rs6000.md: Don't include spe.md.
4058 * config/rs6000/spe.h: Delete file.
4059 * config/rs6000/spe.md: Delete file.
4060 * config/rs6000/t-rs6000: Remove spe.md.
4061
4062 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4063
4064 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
4065 (reg_or_none500mem_operand): Delete.
4066 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
4067 instead of reg_or_none500mem_operand.
4068
4069 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4070
4071 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
4072 handling of SPE flags.
4073 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
4074
4075 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4076
4077 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
4078 SPE ABI handling.
4079 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
4080 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
4081 paired_divv2sf3): Similar.
4082 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
4083 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
4084 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
4085 RS6000_BUILTIN_S.
4086 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
4087 Rename the paired_* instruction patterns.
4088 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
4089 define __SPE__.
4090 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
4091 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
4092 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
4093 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
4094 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
4095 PAIRED_VECTOR_MODE.
4096 (struct machine_function): Delete field spe_insn_chain_scanned_p.
4097 (spe_func_has_64bit_regs_p): Delete.
4098 (spe_expand_predicate_builtin): Delete.
4099 (spe_expand_evsel_builtin): Delete.
4100 (TARGET_DWARF_REGISTER_SPAN): Do not define.
4101 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
4102 (invalid_e500_subreg): Delete.
4103 (rs6000_legitimize_address): Always force_reg op2 as well, for
4104 paired single memory accesses.
4105 (rs6000_member_type_forces_blk): Delete.
4106 (rs6000_spe_function_arg): Delete.
4107 (rs6000_expand_unop_builtin): Delete SPE handling.
4108 (rs6000_expand_binop_builtin): Ditto.
4109 (spe_expand_stv_builtin): Delete.
4110 (bdesc_2arg_spe): Delete.
4111 (spe_expand_builtin): Delete.
4112 (spe_expand_predicate_builtin): Delete.
4113 (spe_expand_evsel_builtin): Delete.
4114 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
4115 (spe_init_builtins): Delete.
4116 (spe_func_has_64bit_regs_p): Delete.
4117 (savres_routine_name): Delete "info" parameter. Adjust callers.
4118 (rs6000_emit_stack_reset): Ditto.
4119 (rs6000_dwarf_register_span): Delete.
4120 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
4121 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
4122 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
4123 Delete.
4124 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
4125 Delete.
4126 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
4127 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
4128 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
4129 mulv2sf3, divv2sf3): Delete expanders.
4130
4131 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4132
4133 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
4134
4135 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4136
4137 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
4138 * config/rs6000/rs6000.c: Ditto.
4139
4140 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4141
4142 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
4143 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
4144 comparison_operator.
4145
4146 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4147
4148 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
4149 * config/rs6000/rs6000.opt: Ditto.
4150 * config/rs6000/t-rtems: Ditto.
4151
4152 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4153
4154 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
4155 TARGET_E500_SINGLE by 0, simplify.
4156 * config/rs6000/rs6000.c: Ditto.
4157 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
4158 (spe_build_register_parallel): Delete.
4159 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
4160 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
4161 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
4162 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
4163 (E500_CONVERT): Delete.
4164 * config/rs6000/spe.md: Remove many patterns and all define_constants.
4165
4166 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
4167
4168 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
4169 * config/rs6000/dfp.md: Ditto.
4170 (negdd2, *negdd2_fpr): Merge.
4171 (absdd2, *absdd2_fpr): Merge.
4172 (negtd2, *negtd2_fpr): Merge.
4173 (abstd2, *abstd2_fpr): Merge.
4174 * config/rs6000/e500.h: Delete file.
4175 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
4176 TARGET_FPRS by 1 and simplify.
4177 * config/rs6000/rs6000-c.c: Ditto.
4178 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
4179 TARGET_DF_SPE by 0.
4180 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
4181 TARGET_DF_SPE.
4182 * config/rs6000/rs6000.md: Ditto.
4183 (floatdidf2, *floatdidf2_fpr): Merge.
4184 (move_from_CR_gt_bit): Delete.
4185 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
4186 (E500_CR_IOR_COMPARE): Delete.
4187 (All patterns that require !TARGET_FPRS): Delete.
4188 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
4189
4190 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4191
4192 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
4193
4194 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4195
4196 * graphds.c (add_edge): Intitialize edge's attached data.
4197 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
4198 pointer parameter. Call pointed function on each edge during
4199 graph traversing. Skip traversing the edge when the function
4200 returns true.
4201 (graphds_dfs, graphds_scc): Ditto.
4202 (for_each_edge): New parameter. Pass the new parameter to callback
4203 function.
4204 * graphds.h (skip_edge_callback): New function pointer type.
4205 (graphds_dfs, graphds_scc): New function pointer parameter.
4206 (graphds_edge_callback, for_each_edge): New parameter.
4207
4208 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4209
4210 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
4211 out code checking if runtime alias check is possible to below ...
4212 Call the new function.
4213 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
4214 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
4215
4216 2017-06-07 Marek Polacek <polacek@redhat.com>
4217
4218 PR sanitizer/80932
4219 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
4220 TYPE_OVERFLOW_WRAPS check.
4221
4222 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4223
4224 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
4225 if versioning is required.
4226 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
4227 peeling with the check for versioning.
4228
4229 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4230
4231 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
4232 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
4233 Set true to new parameter if new ssa variable is defined.
4234 (vect_gen_vector_loop_niters): Refactor. Set range information
4235 for the new vector loop bound variable.
4236 (vect_do_peeling): Ditto.
4237
4238 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4239
4240 * tree-affine.c (ssa.h): Include header file.
4241 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
4242 has wrapping overflow behavior.
4243
4244 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4245
4246 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
4247
4248 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4249
4250 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
4251 (tree_to_aff_combination): ... here.
4252
4253 2017-06-07 Bin Cheng <bin.cheng@arm.com>
4254
4255 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
4256 reg_pressure model function.
4257 (ivopts_global_cost_for_size): Delete.
4258 (determine_set_costs, iv_ca_recount_cost): Call new model function
4259 ivopts_estimate_reg_pressure.
4260
4261 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4262
4263 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
4264 expensive than udiv. Remove floating point cases from mod.
4265
4266 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4267
4268 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
4269 Increase idiv cost.
4270
4271 2017-06-07 Tamar Christina <tamar.christina@arm.com>
4272
4273 * config/aarch64/aarch64.md
4274 (copysignsf3): Fix mask generation.
4275
4276 2017-06-07 Jakub Jelinek <jakub@redhat.com>
4277
4278 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
4279 TDI_gimple.
4280 (class dump_manager): Add register_dumps method.
4281 * dumpfile.c: Include langhooks.h.
4282 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
4283 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
4284 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
4285 (dump_manager::dump_register): Start with 512 entries instead of 32.
4286 (dump_manager::register_dumps): New method.
4287 * toplev.c (general_init): Instead of invoking register_dumps
4288 langhook, invoke register_dumps method on the dump manager.
4289 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
4290 TDI_generic.
4291
4292 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
4293
4294 * doc/md.texi: Clarify the restrictions on a define_insn condition.
4295 Say that # requires an associated define_split to exist, and that
4296 the define_split must be suitable for use after register allocation.
4297
4298 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4299
4300 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
4301 (compute_outgoing_frequencies): Also initialize zero counts.
4302 (find_many_sub_basic_blocks): Do not produce uninitialized profile
4303 around loops; preserve more of profile when nothing changes.
4304
4305 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
4306
4307 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
4308 here.
4309 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
4310 * config/arm/arm-cpu-cdata.h: Regenerate.
4311 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
4312 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
4313 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
4314 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
4315 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
4316 support.
4317 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
4318 support.
4319 * config/arm/t-rmprofile: Likewise.
4320 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
4321
4322 2017-06-06 David S. Miller <davem@davemloft.net>
4323
4324 PR target/80968
4325 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
4326 blockage if function uses alloca.
4327
4328 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4329
4330 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
4331 New "uid" fields to hold pretty-print IDs of group and ref.
4332 Memory references are now identified as <group_id>:<ref_id>
4333 instead of using [random] addresses.
4334 (dump_mem_details): Simplify, no functional change.
4335 (dump_mem_ref): Simplify and make output more concise.
4336 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
4337 (find_or_create_group): Initialize group uid.
4338 (record_ref): Initialize ref uid. Improve debug output.
4339 (prune_group_by_reuse, should_issue_prefetch_p,)
4340 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
4341 (mark_nontemporal_store, determine_loop_nest_reuse):
4342 Improve debug output.
4343
4344 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4345
4346 * dbgcnt.def (prefetch): New debug counter.
4347 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
4348 (schedule_prefetches): Stop issueing prefetches if debug counter
4349 tripped.
4350
4351 2017-06-06 Tom de Vries <tom@codesourcery.com>
4352
4353 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
4354 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
4355
4356 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4357
4358 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
4359 Use aarch64_reg_or_zero predicate for operand 4.
4360 (aarch64_compare_and_swap<mode> define_insn_and_split):
4361 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
4362 (aarch64_store_exclusive<mode>): Likewise for operand 2.
4363
4364 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4365
4366 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
4367 (arm_compute_save_core_reg_mask): This.
4368 (thumb1_compute_save_reg_mask): Rename into ...
4369 (thumb1_compute_save_core_reg_mask): This.
4370 (arm_compute_save_reg0_reg12_mask): Adapt comment.
4371 (arm_compute_frame_layout): Likewise.
4372
4373 2017-06-06 Richard Biener <rguenther@suse.de>
4374
4375 PR tree-optimization/80974
4376 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
4377 keep or clear leaders SSA info.
4378
4379 2017-06-06 Tom de Vries <tom@codesourcery.com>
4380
4381 * config/nvptx/nvptx.c (split_mode_p): New function.
4382 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
4383
4384 2017-06-06 Tom de Vries <tom@codesourcery.com>
4385
4386 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
4387
4388 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4389
4390 PR bootstrap/80978
4391 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
4392 profile.
4393
4394 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4395
4396 * shrink-wrap.c (handle_simple_exit): Update profile.
4397 (try_shrink_wrapping): Upate profile.
4398
4399 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4400
4401 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
4402 (tree_guess_outgoing_edge_probabilities): New.
4403 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
4404 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
4405
4406 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4407
4408 * ipa-split.c (split_function): Initialize return bb profile.
4409
4410 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
4411
4412 * profile.c (compute_branch_probabilities): Also initialize
4413 EXIT_BLOCK profile.
4414
4415 2017-06-06 Richard Biener <rguenther@suse.de>
4416
4417 PR tree-optimization/80928
4418 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
4419 (vect_analyze_loop_operations): Properly guard analysis for
4420 pure SLP case.
4421 (vect_transform_loop): Likewise.
4422 (vect_analyze_loop_2): Also reset SLP type on PHIs.
4423 (vect_model_induction_cost): Do not cost for pure SLP.
4424 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
4425 of induction in inner loop vectorization.
4426 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
4427 (vect_get_and_check_slp_defs): Handle vect_induction_def.
4428 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
4429 recursion.
4430 (vect_analyze_slp_cost_1): Cost induction.
4431 (vect_detect_hybrid_slp_stmts): Handle PHIs.
4432 (vect_get_slp_vect_defs): Likewise.
4433 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
4434 (vect_transform_stmt): Handle SLP reductions.
4435 * tree-vectorizer.h (vectorizable_induction): Adjust.
4436
4437 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4438
4439 * config/rs6000/rs6000.c (make_resolver_func): Update
4440 init_lowered_empty_function call.
4441
4442 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4443
4444 * doc/invoke.texi: Document the -fprofile-abs-path option.
4445 * common.opt (fprofile-abs-path): New option.
4446 * gcov-io.h (gcov_write_filename): Declare.
4447 * gcov-io.c (gcov_write_filename): New function.
4448 * coverage.c (coverage_begin_function): Use gcov_write_filename.
4449 * profile.c (output_location): Likewise.
4450
4451 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4452
4453 * shring-wrap.c: Revert accidental commit.
4454
4455 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
4456
4457 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
4458
4459 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4460
4461 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
4462 new edge.
4463 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
4464 profile in callgraph edge.
4465 * profile-count.h (apply_probability): If THIS is 0, then result is 0
4466 (apply_scale): Likewise.
4467 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
4468 Also scale profile when inlining function with zero profile.
4469 (initialize_cfun): Update exit block profile even when it is zero.
4470 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
4471 when profile is read.
4472
4473 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4474
4475 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
4476 (CLONE_*): New constants to define the processors we can generate
4477 code for with the target_clone attribute.
4478 (rs6000_clone_map): New array to identify which clone processors
4479 the current program is running on.
4480 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
4481 target_clone attribute.
4482 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
4483 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
4484 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
4485 (cpu_expand_builtin): Add support for target_clone attribute.
4486 (rs6000_valid_attribute_p): Allow "default" attribute.
4487 (get_decl_name): New debug function to simplify printing the
4488 current function name in debugging statements.
4489 (rs6000_clone_priority): New functions to support the target_clone
4490 attribute, and be able to generate code to switch between ISA 2.05
4491 through ISA 3.0 (power6 through power9).
4492 (rs6000_compare_version_priority): Likewise.
4493 (rs6000_get_function_versions_dispatcher): Likewise.
4494 (make_resolver_func): Likewise.
4495 (add_condition_to_bb): Likewise.
4496 (dispatch_function_versions): Likewise.
4497 (rs6000_generate_version_dispatcher_body): Likewise.
4498 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
4499 (fusion_gpr_load_p): Fix a spacing issue.
4500 * doc/extend.texi (Common Function Attributes): Document that the
4501 PowerPC supports the target_clone attribute.
4502
4503 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
4504
4505 * config/arm/arm.h: explain F symbol found in description of ARM
4506 register allocation in its legend.
4507
4508 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4509
4510 * config/mips/frame-header-opt.c: Include profile-count.h.
4511 * config/riscv/riscv.c: Include profile-count.h
4512
4513 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
4514
4515 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
4516 update profile.
4517 (sm_set_flag_if_changed): Add bbs field.
4518 (execute_sm_if_changed_flag_set): Pass BBS.
4519 (execute_sm): Update.
4520
4521 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4522
4523 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
4524 New pattern.
4525
4526 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4527
4528 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
4529 (peephole2): New peephole2 to emit the above.
4530 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
4531
4532 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4533
4534 * config/aarch64/aarch64.c (define_peephole2 above
4535 *sub_<shift>_<mode>): New peephole.
4536
4537 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
4538
4539 * config/i386/i386.c (make_resolver_func): Update.
4540 * Makefile.in: Add profile-count.h and profile-count.o
4541 * auto-profile.c (afdo_indirect_call): Update to new API.
4542 (afdo_set_bb_count): Update.
4543 (afdo_propagate_edge): Update.
4544 (afdo_propagate_circuit): Update.
4545 (afdo_calculate_branch_prob): Update.
4546 (afdo_annotate_cfg): Update.
4547 * basic-block.h: Include profile-count.h
4548 (struct edge_def): Turn count to profile_count.
4549 (struct basic_block_def): Likewie.
4550 (REG_BR_PROB_BASE): Move to profile-count.h
4551 (RDIV): Move to profile-count.h
4552 * bb-reorder.c (max_entry_count): Turn to profile_count.
4553 (find_traces): Update.
4554 (rotate_loop):Update.
4555 (connect_traces):Update.
4556 (sanitize_hot_paths):Update.
4557 * bt-load.c (migrate_btr_defs): Update.
4558 * cfg.c (RDIV): Remove.
4559 (init_flow): Use alloc_block.
4560 (alloc_block): Uninitialize count.
4561 (unchecked_make_edge): Uninitialize count.
4562 (check_bb_profile): Update.
4563 (dump_edge_info): Update.
4564 (dump_bb_info): Update.
4565 (update_bb_profile_for_threading): Update.
4566 (scale_bbs_frequencies_int): Update.
4567 (scale_bbs_frequencies_gcov_type): Update.
4568 (scale_bbs_frequencies_profile_count): New.
4569 * cfg.h (update_bb_profile_for_threading): Update.
4570 (scale_bbs_frequencies_profile_count): Declare.
4571 * cfgbuild.c (compute_outgoing_frequencies): Update.
4572 (find_many_sub_basic_blocks): Update.
4573 * cfgcleanup.c (try_forward_edges): Update.
4574 (try_crossjump_to_edge): Update.
4575 * cfgexpand.c (expand_gimple_tailcall): Update.
4576 (construct_exit_block): Update.
4577 * cfghooks.c (verify_flow_info): Update.
4578 (dump_bb_for_graph): Update.
4579 (split_edge): Update.
4580 (make_forwarder_block): Update.
4581 (duplicate_block): Update.
4582 (account_profile_record): Update.
4583 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
4584 (get_estimated_loop_iterations): Update.
4585 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
4586 (single_likely_exit): Update.
4587 * cfgloopmanip.c (scale_loop_profile): Update.
4588 (loopify): Update.
4589 (set_zero_probability): Update.
4590 (lv_adjust_loop_entry_edge): Update.
4591 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
4592 (purge_dead_edges): Update.
4593 (rtl_account_profile_record): Update.
4594 * cgraph.c (cgraph_node::create): Uninitialize count.
4595 (symbol_table::create_edge): Uninitialize count.
4596 (cgraph_update_edges_for_call_stmt_node): Update.
4597 (cgraph_edge::dump_edge_flags): Update.
4598 (cgraph_node::dump): Update.
4599 (cgraph_edge::maybe_hot_p): Update.
4600 * cgraph.h: Include profile-count.h
4601 (create_clone), create_edge, create_indirect_edge): Update.
4602 (cgraph_node): Turn count to profile_count.
4603 (cgraph_edge0: Likewise.
4604 (make_speculative, clone): Update.
4605 (create_edge): Update.
4606 (init_lowered_empty_function): Update.
4607 * cgraphclones.c (cgraph_edge::clone): Update.
4608 (duplicate_thunk_for_node): Update.
4609 (cgraph_node::create_clone): Update.
4610 * cgraphunit.c (cgraph_node::analyze): Update.
4611 (cgraph_node::expand_thunk): Update.
4612 * final.c (dump_basic_block_info): Update.
4613 * gimple-streamer-in.c (input_bb): Update.
4614 * gimple-streamer-out.c (output_bb): Update.
4615 * graphite.c (print_global_statistics): Update.
4616 (print_graphite_scop_statistics): Update.
4617 * hsa-brig.c: Include basic-block.h.
4618 * hsa-dump.c: Include basic-block.h.
4619 * hsa-gen.c (T sum_slice): Update.
4620 (convert_switch_statements):Update.
4621 * hsa-regalloc.c: Include basic-block.h.
4622 * ipa-chkp.c (chkp_produce_thunks): Update.
4623 * ipa-cp.c (struct caller_statistics): Update.
4624 (init_caller_stats): Update.
4625 (gather_caller_stats): Update.
4626 (ipcp_cloning_candidate_p): Update.
4627 (good_cloning_opportunity_p): Update.
4628 (get_info_about_necessary_edges): Update.
4629 (dump_profile_updates): Update.
4630 (update_profiling_info): Update.
4631 (update_specialized_profile): Update.
4632 (perhaps_add_new_callers): Update.
4633 (decide_about_value): Update.
4634 (ipa_cp_c_finalize): Update.
4635 * ipa-devirt.c (struct odr_type_warn_count): Update.
4636 (struct decl_warn_count): Update.
4637 (struct final_warning_record): Update.
4638 (possible_polymorphic_call_targets): Update.
4639 (ipa_devirt): Update.
4640 * ipa-fnsummary.c (redirect_to_unreachable): Update.
4641 * ipa-icf.c (sem_function::merge): Update.
4642 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
4643 * ipa-inline.c (compute_uninlined_call_time): Update.
4644 (compute_inlined_call_time): Update.
4645 (want_inline_small_function_p): Update.
4646 (want_inline_self_recursive_call_p): Update.
4647 (edge_badness): Update.
4648 (lookup_recursive_calls): Update.
4649 (recursive_inlining): Update.
4650 (inline_small_functions): Update.
4651 (dump_overall_stats): Update.
4652 (dump_inline_stats): Update.
4653 * ipa-profile.c (ipa_profile_generate_summary): Update.
4654 (ipa_propagate_frequency): Update.
4655 (ipa_profile): Update.
4656 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
4657 * ipa-utils.c (ipa_merge_profiles): Update.
4658 * loop-doloop.c (doloop_modify): Update.
4659 * loop-unroll.c (report_unroll): Update.
4660 (unroll_loop_runtime_iterations): Update.
4661 * lto-cgraph.c (lto_output_edge): Update.
4662 (lto_output_node): Update.
4663 (input_node): Update.
4664 (input_edge): Update.
4665 (merge_profile_summaries): Update.
4666 * lto-streamer-in.c (input_cfg): Update.
4667 * lto-streamer-out.c (output_cfg): Update.
4668 * mcf.c (create_fixup_graph): Update.
4669 (adjust_cfg_counts): Update.
4670 (sum_edge_counts): Update.
4671 * modulo-sched.c (sms_schedule): Update.
4672 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
4673 * predict.c (maybe_hot_count_p): Update.
4674 (probably_never_executed): Update.
4675 (dump_prediction): Update.
4676 (combine_predictions_for_bb): Update.
4677 (propagate_freq): Update.
4678 (handle_missing_profiles): Update.
4679 (counts_to_freqs): Update.
4680 (rebuild_frequencies): Update.
4681 (force_edge_cold): Update.
4682 * predict.h: Include profile-count.h
4683 (maybe_hot_count_p, counts_to_freqs): UPdate.
4684 * print-rtl-function.c: Do not include cfg.h
4685 * print-rtl.c: Include basic-block.h
4686 * profile-count.c: New file.
4687 * profile-count.h: New file.
4688 * profile.c (is_edge_inconsistent): Update.
4689 (correct_negative_edge_counts): Update.
4690 (is_inconsistent): Update.
4691 (set_bb_counts): Update.
4692 (read_profile_edge_counts): Update.
4693 (compute_frequency_overlap): Update.
4694 (compute_branch_probabilities): Update; Initialize and deinitialize
4695 gcov_count tables.
4696 (branch_prob): Update.
4697 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
4698 (edge_gcov_count): New.
4699 (bb_gcov_count): New.
4700 * shrink-wrap.c (try_shrink_wrapping): Update.
4701 * tracer.c (better_p): Update.
4702 * trans-mem.c (expand_transaction): Update.
4703 (ipa_tm_insert_irr_call): Update.
4704 (ipa_tm_insert_gettmclone_call): Update.
4705 * tree-call-cdce.c: Update.
4706 * tree-cfg.c (gimple_duplicate_sese_region): Update.
4707 (gimple_duplicate_sese_tail): Update.
4708 (gimple_account_profile_record): Update.
4709 (execute_fixup_cfg): Update.
4710 * tree-inline.c (copy_bb): Update.
4711 (copy_edges_for_bb): Update.
4712 (initialize_cfun): Update.
4713 (freqs_to_counts): Update.
4714 (copy_cfg_body): Update.
4715 (expand_call_inline): Update.
4716 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
4717 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
4718 (try_unroll_loop_completely): Update.
4719 (try_peel_loop): Update.
4720 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
4721 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
4722 * tree-ssa-loop-split.c (connect_loops): Update.
4723 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
4724 * tree-ssa-reassoc.c (branch_fixup): Update.
4725 * tree-ssa-tail-merge.c (replace_block_by): Update.
4726 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
4727 (compute_path_counts): Update.
4728 (update_profile): Update.
4729 (recompute_probabilities): Update.
4730 (update_joiner_offpath_counts): Update.
4731 (estimated_freqs_path): Update.
4732 (freqs_to_counts_path): Update.
4733 (clear_counts_path): Update.
4734 (ssa_fix_duplicate_block_edges): Update.
4735 (duplicate_thread_path): Update.
4736 * tree-switch-conversion.c (case_bit_test_cmp): Update.
4737 (struct switch_conv_info): Update.
4738 * tree-tailcall.c (decrease_profile): Update.
4739 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
4740 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
4741 * value-prof.c (check_counter): Update.
4742 (gimple_divmod_fixed_value): Update.
4743 (gimple_mod_pow2): Update.
4744 (gimple_mod_subtract): Update.
4745 (gimple_ic_transform): Update.
4746 (gimple_stringop_fixed_value): Update.
4747 * value-prof.h (gimple_ic): Update.
4748
4749 2017-06-02 Carl Love <cel@us.ibm.com>
4750
4751 * config/rs6000/rs6000-c: Add support for built-in functions
4752 vector double vec_doublee (vector signed int);
4753 vector double vec_doublee (vector unsigned int);
4754 vector double vec_doublee (vector float);
4755 vector double vec_doubleh (vector signed int);
4756 vector double vec_doubleh (vector unsigned int);
4757 vector double vec_doubleh (vector float);
4758 vector double vec_doublel (vector signed int);
4759 vector double vec_doublel (vector unsigned int);
4760 vector double vec_doublel (vector float);
4761 vector double vec_doubleo (vector signed int);
4762 vector double vec_doubleo (vector unsigned int);
4763 vector double vec_doubleo (vector float);.
4764 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
4765 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
4766 UNS_DOUBLEL.
4767 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
4768 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
4769 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
4770 VS_sxwsp.
4771 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
4772 vec_doublel, vec_doubleh.
4773 * doc/extend.texi: Update the built-in documentation file for the
4774 new built-in functions.
4775
4776 2017-06-02 David Malcolm <dmalcolm@redhat.com>
4777
4778 PR jit/80954
4779 * ipa-inline-analysis.c (free_growth_caches): Set
4780 edge_removal_hook_holder to NULL after removing it.
4781
4782 2017-06-02 Sudakshina Das <sudi.das@arm.com>
4783
4784 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
4785 comparision with zero.
4786
4787 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
4788 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4789 for early expansion of vec_min and vec_max builtins.
4790 (builtin_function_type): Add min/max unsigned variants to those
4791 identified as having unsigned arguments.
4792
4793 2017-06-02 Olivier Hainque <hainque@adacore.com>
4794
4795 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
4796
4797 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4798
4799 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4800 Use VALL_F16 iterator rather than VALL.
4801
4802 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4803
4804 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
4805 Emit CBNZ inside loop when doing a strong exchange and comparing
4806 against zero. Generate the CC flags after the loop.
4807
4808 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
4809
4810 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
4811 (dl_section_ref): New.
4812 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
4813 On AIX, append an expression to subtract the size of the
4814 section length to dl_section_ref.
4815
4816 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
4817
4818 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4819 for early expansion of vector absolute builtins.
4820
4821 2017-06-02 Richard Biener <rguenther@suse.de>
4822
4823 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
4824 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
4825
4826 2017-06-02 Richard Biener <rguenther@suse.de>
4827
4828 PR tree-optimization/80948
4829 * tree-tailcall.c (find_tail_calls): Track stmts to move in
4830 stmt order as well.
4831
4832 2017-06-02 Richard Biener <rguenther@suse.de>
4833
4834 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
4835 PHIs are ok.
4836 * tree-vect-stmts.c (process_use): Do not mark backedge defs
4837 for inductions as relevant.
4838
4839 2017-06-02 Richard Biener <rguenther@suse.de>
4840
4841 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
4842 (vectorizable_induction): ... this. Remove dead code.
4843
4844 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
4845
4846 * builtins. (expand_builtin_alloca): Remove second parameter and
4847 infer its value from the first parameter instead.
4848 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
4849
4850 2017-06-02 Jakub Jelinek <jakub@redhat.com>
4851
4852 PR rtl-optimization/80903
4853 * loop-doloop.c (add_test): Unshare sequence.
4854
4855 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4856
4857 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
4858
4859 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4860
4861 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
4862 static.
4863 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
4864 xlogue_layout::get_instance, logue_layout::xlogue_layout,
4865 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
4866 (xlogue_layout::get_stub_rtx): Make static.
4867 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
4868 (xlogue_layout::compute_stub_managed_regs): Rename to...
4869 (xlogue_layout::count_stub_managed_regs): ...this.
4870 (xlogue_layout::is_stub_managed_reg): New function.
4871 (xlogue_layout::m_stub_names): Rename to...
4872 (xlogue_layout::s_stub_names): ...this, make static.
4873 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
4874 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
4875 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
4876 xlogue_layout::s_stub_names): Instantiate statics.
4877 (stub_managed_regs): Remove.
4878 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
4879 (disable_call_ms2sysv_xlogues): Rename to...
4880 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
4881 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
4882 warning logic.
4883 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
4884 change after reload_completed.
4885 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
4886 directly.
4887 (ix86_expand_prologue): Likewise.
4888 (ix86_expand_epilogue): Likewise.
4889 (ix86_expand_split_stack_prologue): Likewise.
4890 (ix86_compute_frame_layout): Remove frame parameter ...
4891 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
4892 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
4893 only if necessary.
4894 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
4895 (ix86_frame): Move from here ...
4896 * config/i386/i386.h (ix86_frame): ... to here.
4897 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
4898 complete ix86_frame data structure instead. Remove some_ld_name.
4899
4900 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
4901
4902 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
4903 symbols that hold a DECL_VALUE_EXPR.
4904
4905 2017-06-01 Martin Jambor <mjambor@suse.cz>
4906
4907 PR tree-optimization/80898
4908 * tree-sra.c (process_subtree_disqualification): Removed.
4909 (disqualify_candidate): Do not acll
4910 process_subtree_disqualification.
4911 (subtree_mark_written_and_enqueue): New function.
4912 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
4913 RHS has been disqualified and re-queue LHS if necessary. Apart
4914 from that, ignore disqualified RHS.
4915
4916 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4917
4918 * config/s390/s390.c (s390_emit_epilogue): Disable early return
4919 address fetch for z10 or later.
4920
4921 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4922
4923 * config/arc/arc.md (tst_movb): Add guard when splitting.
4924
4925 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4926
4927 * config/arc/arc.c (arc_can_eliminate): Test against
4928 arc_frame_pointer_needed.
4929
4930 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4931
4932 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
4933 to prevent store reordering.
4934 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
4935 (type): Add block type.
4936 (stack_tie): Define special instruction to be used in
4937 expand_prologue.
4938
4939 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4940
4941 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
4942 constraint. It is not valid for the pattern.
4943 (noncommutative_binary_comparison): Likewise.
4944
4945 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4946
4947 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
4948 scaled addresses.
4949
4950 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4951
4952 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
4953 be used by the reg-alloc.
4954
4955 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4956
4957 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
4958 reg-alloc when having mul64 or mul32x16 instructions.
4959 (mulsidi3): Likewise.
4960 (umulsidi3): Likewise.
4961 (mulsi32x16): New pattern.
4962 (mulsi64): Likewise.
4963 (mulsidi64): Likewise.
4964 (umulsidi64): Likewise.
4965 (MUL32x16_REG): Define.
4966 (mul64_600): Use MUL32x16_REG.
4967 (mac64_600): Likewise.
4968 (umul64_600): Likewise.
4969 (umac64_600): Likewise.
4970
4971 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
4972
4973 * config/arc/arc.md (mulsi3_700): Make it commutative.
4974
4975 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
4976
4977 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
4978 type for movstouw.
4979 (*sign_extendsidi2_insn): Likewise for movstosw.
4980
4981 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
4982
4983 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
4984 the type of the input discriminant value. Convert the
4985 discriminant value of signedness vary.
4986
4987 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
4988
4989 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
4990 Add to -Wall section.
4991
4992 2017-06-01 Richard Biener <rguenther@suse.de>
4993
4994 PR middle-end/66313
4995 * fold-const.c (fold_plusminus_mult_expr): If the factored
4996 factor may be zero use a wrapping type for the inner operation.
4997 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
4998 and handle moved defs.
4999 (process_assignment): Properly guard the unary op case. Return a
5000 tri-state indicating that moving the stmt before the call may allow
5001 to continue. Pass through to_move.
5002 (find_tail_calls): Handle moving unrelated defs before
5003 the call.
5004
5005 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
5006
5007 PR target/80618
5008 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
5009 splitter result in the canonical way.
5010
5011 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
5012
5013 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
5014 also for 32bit target. Update insn attributes.
5015 (zero-extendsidi2 splitter): Allow all registers for operand 1.
5016
5017 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
5018
5019 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
5020 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
5021 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
5022 (_mm_maskz_min_ss): New intrinsics.
5023
5024 2017-05-31 Martin Liska <mliska@suse.cz>
5025
5026 * tree-vect-loop.c (vect_create_epilog_for_reduction):
5027 Change comment style to one we normally use.
5028 (vectorizable_reduction): Likewise.
5029 (vectorizable_induction): Likewise.
5030 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
5031 (vectorizable_call): Likewise.
5032 (vectorizable_simd_clone_call): Likewise.
5033 (vectorizable_conversion): Likewise.
5034 (vectorizable_assignment): Likewise.
5035 (vectorizable_shift): Likewise.
5036 (vectorizable_operation): Likewise.
5037 (vectorizable_store): Likewise.
5038 (vectorizable_load): Likewise.
5039 * tree-vectorizer.h: Likewise.
5040
5041 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
5042
5043 * passes.c (emergency_dump_function): New.
5044 * tree-pass.h (emergency_dump_function): Declare.
5045 * plugin.c (plugins_internal_error_function): Remove.
5046 * plugin.h (plugins_internal_error_function): Remove declaration.
5047 * toplev.c (internal_error_function): New static function. Use it...
5048 (general_init): ...here.
5049
5050 2017-05-31 Graham Markall <graham.markall@embecosm.com>
5051
5052 * config/arc/arc.c (arc_print_operand): Handle constant operands.
5053 (arc_rtx_costs): Add costs for new patterns.
5054 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
5055 * config/arc/predicates.md: Add _1_2_3_operand predicate.
5056
5057 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
5058
5059 * tree-ssa-strlen.c (get_next_strinfo): New function.
5060 (get_stridx_plus_constant): Use it.
5061 (zero_length_string): Likewise.
5062 (adjust_related_strinfos): Likewise.
5063 (adjust_last_stmt): Likewise.
5064
5065 2017-05-31 Richard Biener <rguenther@suse.de>
5066
5067 PR target/80880
5068 * config/i386/i386.c (ix86_expand_builtin): Remove assert
5069 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
5070
5071 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
5072
5073 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
5074 loop_vinfo argument and use of dependence distance vectors.
5075 Check instead whether the two references differ only in their
5076 initial value and assume that they have the same alignment if the
5077 difference is a multiple of the vector alignment.
5078 (vect_analyze_data_refs_alignment): Update call accordingly.
5079
5080 2017-05-31 Martin Liska <mliska@suse.cz>
5081
5082 PR target/79155
5083 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
5084
5085 2017-05-31 Bin Cheng <bin.cheng@arm.com>
5086
5087 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
5088 (create_intersect_range_checks): Move from ...
5089 * tree-data-ref.c (create_intersect_range_checks_index)
5090 (create_intersect_range_checks): ... to here.
5091 (create_runtime_alias_checks): New function factored from ...
5092 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
5093 here. Call above function.
5094 * tree-data-ref.h (create_runtime_alias_checks): New function.
5095
5096 2017-05-31 Bin Cheng <bin.cheng@arm.com>
5097
5098 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
5099 segment length for dr_b and compute it in wide_int.
5100
5101 2017-05-31 Richard Biener <rguenther@suse.de>
5102
5103 PR tree-optimization/80906
5104 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
5105 and pass through iv_map.
5106 (copy_bb_and_scalar_dependences): Adjust.
5107 (translate_pending_phi_nodes): Likewise.
5108 (copy_loop_close_phi_args): Handle code-generating IVs instead
5109 of ICEing.
5110
5111 2017-05-30 David Malcolm <dmalcolm@redhat.com>
5112
5113 * diagnostic-color.c (color_dict): Add "type-diff".
5114 (parse_gcc_colors): Update comment.
5115 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5116 -fdiagnostics-show-template-tree and -fno-elide-type.
5117 (GCC_COLORS): Add type-diff to example.
5118 (type-diff=): New.
5119 (-fdiagnostics-show-template-tree): New.
5120 (-fno-elide-type): New.
5121 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
5122 the pp_format_decoder callback. Call any m_format_postprocessor's
5123 "handle" method.
5124 (pretty_printer::pretty_printer): Initialize
5125 m_format_postprocessor.
5126 (pretty_printer::~pretty_printer): Delete any
5127 m_format_postprocessor.
5128 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
5129 (class format_postprocessor): New class.
5130 (struct pretty_printer::format_decoder): Document the new parameters.
5131 (struct pretty_printer::m_format_postprocessor): New field.
5132 * tree-diagnostic.c (default_tree_printer): Update for new
5133 bool and const char ** params.
5134 * tree-diagnostic.h (default_tree_printer): Likewise.
5135
5136 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
5137
5138 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
5139 (lwa_operand): Delete rs6000_gen_cell_microcode test.
5140 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
5141 rs6000_gen_cell_microcode code.
5142 (rs6000_final_prescan_insn): Delete.
5143 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
5144 "warn-cell-microcode" entries.
5145 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
5146 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
5147 throughout. Change cc_reg_not_micro_cr0_operand to
5148 cc_reg_not_cr0_operand throughout.
5149 (*extendhi<mode>2_noload): Delete.
5150 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
5151 (mwarn-cell-microcode): Delete.
5152 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
5153 -mgen-cell-microcode and -mwarn-cell-microcode.
5154
5155 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
5156
5157 PR target/80833
5158 * config/i386/constraints.md (Yd): New constraint.
5159 (Ye): Ditto.
5160 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
5161 and (?Yd, r) alternatives. Update insn attributes.
5162 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
5163 and (?*Yd, r) alternatives. Update insn attributes.
5164 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
5165
5166 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
5167
5168 * gimplify.c (gimplify_modify_expr): Don't create a
5169 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
5170 function.
5171
5172 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
5173
5174 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
5175
5176 2017-05-30 Richard Biener <rguenther@suse.de>
5177
5178 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
5179 and reduc_def fields.
5180 (STMT_VINFO_REDUC_TYPE): New define.
5181 (STMT_VINFO_REDUC_DEF): Likewise.
5182 (vect_force_simple_reduction): Adjust prototype.
5183 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
5184 (vect_is_simple_reduction): Remove check_reduction argument.
5185 (vect_force_simple_reduction): Adjust and set
5186 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
5187 (vectorizable_reduction): Do not re-do reduction analysis
5188 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
5189 * tree-parloops.c (gather_scalar_reductions): Adjust.
5190
5191 2017-05-30 Richard Biener <rguenther@suse.de>
5192
5193 PR middle-end/80901
5194 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
5195 split_edge code.
5196
5197 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
5198
5199 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
5200 Introduce unknown_misalignment parameter and remove vf.
5201 (vect_peeling_hash_get_lowest_cost):
5202 Pass unknown_misalignment parameter.
5203 (vect_enhance_data_refs_alignment):
5204 Fix unsupportable data ref treatment.
5205
5206 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5207
5208 * tree-vect-data-refs.c (vect_get_data_access_cost):
5209 Workaround for SLP handling.
5210 (vect_enhance_data_refs_alignment):
5211 Compute costs for doing no peeling at all, compare to the best
5212 peeling costs so far and avoid peeling if cheaper.
5213
5214 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5215
5216 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
5217 Return peeling info and set costs to zero for unlimited cost
5218 model.
5219 (vect_enhance_data_refs_alignment): Also inspect all datarefs
5220 with unknown misalignment. Compute and costs for unknown
5221 misalignment, compare them to the costs for known misalignment
5222 and choose the cheapest for peeling.
5223
5224 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5225
5226 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
5227 (vect_get_peeling_costs_all_drs): Create function.
5228 (vect_peeling_hash_get_lowest_cost):
5229 Use vect_get_peeling_costs_all_drs.
5230 (vect_peeling_supportable): Create function.
5231 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
5232
5233 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
5234
5235 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
5236 DR_HAS_NEGATIVE_STEP.
5237 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
5238 (vect_enhance_data_refs_alignment): Use.
5239 (vect_duplicate_ssa_name_ptr_info): Use.
5240 * tree-vectorizer.h (dr_misalignment): Use.
5241 (known_alignment_for_access_p): Use.
5242
5243 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
5244
5245 PR target/78838
5246 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
5247 .lowtext.
5248 (has_section_name): New function.
5249
5250 2017-05-30 Martin Liska <mliska@suse.cz>
5251
5252 PR other/80909
5253 * auto-profile.c (get_function_decl_from_block): Fix
5254 parenthesis.
5255
5256 2017-05-30 Richard Biener <rguenther@suse.de>
5257
5258 PR middle-end/80876
5259 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
5260
5261 2017-05-30 Martin Liska <mliska@suse.cz>
5262
5263 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
5264 * dumpfile.h (struct dump_file_info): Remove ctors.
5265
5266 2017-05-30 Martin Liska <mliska@suse.cz>
5267
5268 * predict.def: Fix GNU coding style.
5269
5270 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
5271
5272 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
5273 Mark 'to' argument with ATTRIBUTE_UNUSED.
5274
5275 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
5276
5277 * config/xtensa/xtensa.c (xtensa_emit_call): Use
5278 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
5279 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
5280 format string.
5281
5282 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
5283
5284 * doc/install.texi (Options specification): Restore entry of
5285 --enable-sjlj-exceptions.
5286
5287 2017-05-27 Michael Eager <eager@eagercon.com>
5288
5289 Revert:
5290 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5291
5292 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
5293
5294 * config/microblaze/microblaze.h
5295 (FIXED_REGISTERS): Update in macro.
5296 (CALL_USED_REGISTERS): Update in macro.
5297
5298 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
5299
5300 * doc/install.texi: Add links to macOS binary distributions.
5301
5302 2017-05-27 Jakub Jelinek <jakub@redhat.com>
5303
5304 PR bootstrap/80887
5305 Revert:
5306 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5307
5308 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
5309
5310 2017-05-26 Martin Liska <mliska@suse.cz>
5311
5312 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
5313
5314 2017-05-26 Martin Liska <mliska@suse.cz>
5315
5316 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
5317 always leading ';; '.
5318 (dump_bb_info): Likewise.
5319 (brief_dump_cfg): Likewise.
5320 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
5321 * dumpfile.c: Remove usage of TDF_VERBOSE.
5322 * dumpfile.h (enum dump_kind): Likewise.
5323 (dump_gimple_bb_header): Do not use TDF_COMMENT.
5324 * print-tree.c (debug_verbose): Remove.
5325 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
5326 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
5327 * tree-diagnostic.c (default_tree_printer): Replace
5328 TDF_DIAGNOSTIC with TDF_SLIM.
5329
5330 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5331
5332 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
5333 in parameter loop, rather than loop_vinfo.
5334 (create_intersect_range_checks): Ditto.
5335 (vect_create_cond_for_alias_checks): Update call to above functions.
5336
5337 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5338
5339 PR tree-optimization/80815
5340 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
5341 for merging runtime alias checks. Handle negative DR_STEPs.
5342
5343 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5344
5345 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
5346 Move from ...
5347 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
5348 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
5349 out code pruning runtime alias checks.
5350 * tree-data-ref.c (prune_runtime_alias_test_list): New function
5351 factored out from above.
5352 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
5353 Move from ...
5354 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
5355 ... to here.
5356 (prune_runtime_alias_test_list): New decalaration.
5357
5358 2017-05-26 Bin Cheng <bin.cheng@arm.com>
5359
5360 * tree-vect-data-refs.c (compare_tree): Rename and move ...
5361 * tree-data-ref.c (data_ref_compare_tree): ... to here.
5362 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
5363 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
5364 (operator==, comp_dr_with_seg_len_pair): Ditto.
5365 (vect_prune_runtime_alias_test_list): Ditto.
5366
5367 2017-05-26 Martin Liska <mliska@suse.cz>
5368
5369 PR ipa/80663
5370 * params.def: Bound partial-inlining-entry-probability param.
5371
5372 2017-05-26 Marek Polacek <polacek@redhat.com>
5373
5374 PR sanitizer/80875
5375 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
5376 can be negated.
5377
5378 2017-05-26 Richard Biener <rguenther@suse.de>
5379
5380 PR tree-optimization/80842
5381 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
5382 value.
5383
5384 2017-05-26 Richard Biener <rguenther@suse.de>
5385
5386 PR tree-optimization/80844
5387 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
5388
5389 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
5390
5391 * doc/md.texi (Machine Constraints): Update x86 family
5392 machine constraints section to match 'config/i386/constraints.md'.
5393
5394 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
5395
5396 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
5397
5398 2017-05-25 Nathan Sidwell <nathan@acm.org>
5399
5400 * doc/invoke.texi (--enable-languages): Update documentation.
5401
5402 2017-05-25 Martin Liska <mliska@suse.cz>
5403
5404 * dumpfile.c: Add TDF_FOLDING.
5405 * dumpfile.h (enum dump_kind): Likewise.
5406 * genmatch.c (dt_simplify::gen_1): Use it.
5407
5408 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5409
5410 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
5411
5412 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5413
5414 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
5415 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
5416
5417 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
5418
5419 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
5420 * match.pd (X == C): Rewrite it here.
5421 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
5422 with_certain_nonzero_bits2): New predicates.
5423 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
5424
5425 2017-05-24 Nathan Sidwell <nathan@acm.org>
5426
5427 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
5428 avoid warning.
5429
5430 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
5431 warning.
5432
5433 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
5434
5435 * config/powerpcspe: New port. Files are copied from the rs6000
5436 port, with "rs6000" in filenames replaced by "powerpcspe".
5437
5438 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
5439
5440 PR rtl-optimization/80754
5441 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
5442
5443 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
5444
5445 * config/sparc/sparc.md (length): Return the correct value for -mflat
5446 sibcalls to match output_sibcall.
5447
5448 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
5449
5450 PR bootstrap/80860
5451 PR bootstrap/80843
5452 * config/rs6000/rs6000.c (struct machine_function): Add new field
5453 n_components.
5454 (rs6000_get_separate_components): Init that field, use it.
5455 (rs6000_components_for_bb): Use the field.
5456
5457 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5458
5459 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
5460
5461 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
5462
5463 PR middle-end/80823
5464 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
5465
5466 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5467
5468 PR target/80725
5469 * config/s390/s390.c (s390_check_qrst_address): Check incoming
5470 address against address_operand predicate.
5471 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
5472
5473 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
5474
5475 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
5476 parameters passed indirectly.
5477
5478 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
5479
5480 * config/i386/i386.md (*movdi_internal): Remove SSE4
5481 alternative 18 (?r, *v). Update insn attributes.
5482 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
5483 Update insn attributes.
5484 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
5485 Update insn attributes.
5486 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
5487 alternative 1 (r, v). Remove isa attribute.
5488 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5489 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
5490 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5491
5492 2017-05-23 Tom de Vries <tom@codesourcery.com>
5493
5494 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
5495 dg-line directive.
5496
5497 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5498
5499 * cgraphunit.c (symbol_table::process_new_functions): Update.
5500 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
5501 (inline_generate_summary): Rename to ...
5502 (ipa_fn_summary_generate): ... this one.
5503 (inline_read_summary): Rename to ...
5504 (ipa_fn_summary_read): ... this one.
5505 (inline_write_summary): Rename to ...
5506 (ipa_fn_summary_write): ... this one.
5507 (inline_free_summary): Rename to ...
5508 (ipa_free_fn_summary): ... this one.
5509 (pass_data_local_fn_summary, pass_local_fn_summary,
5510 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
5511 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
5512 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
5513 make_pass_ipa_fn_summary): New.
5514 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
5515 inline_write_summary, inline_free_summary): Remove.
5516 (ipa_free_fn_summary) : New.
5517 * ipa-inline.c (ipa_inline): Update.
5518 (pass_ipa_inline): Do not generate summaries.
5519 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
5520 Remove.
5521 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
5522 and add pass_ipa_fn_summary.
5523 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
5524 New.
5525 (make_pass_inline_parameters): Remove.
5526
5527 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
5528
5529 * omp-low.c (struct omp_context): Remove "default_kind" member.
5530 Adjust all users.
5531
5532 * omp-offload.c (execute_oacc_device_lower): Remove the
5533 parallelism dimensions function attributes for unparallelized
5534 OpenACC kernels constructs.
5535
5536 2017-05-23 Martin Liska <mliska@suse.cz>
5537
5538 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
5539 functions.
5540 (cgraph_edge::make_speculative): Likewise.
5541 (cgraph_edge::resolve_speculation): Likewise.
5542 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5543 (cgraph_node::dump): Likewise.
5544 * cgraph.h: Likewise.
5545 * cgraphunit.c (analyze_functions): Likewise.
5546 (symbol_table::compile): Likewise.
5547 * ipa-cp.c (print_all_lattices): Likewise.
5548 (determine_versionability): Likewise.
5549 (initialize_node_lattices): Likewise.
5550 (ipcp_verify_propagated_values): Likewise.
5551 (estimate_local_effects): Likewise.
5552 (update_profiling_info): Likewise.
5553 (create_specialized_node): Likewise.
5554 (perhaps_add_new_callers): Likewise.
5555 (decide_about_value): Likewise.
5556 (decide_whether_version_node): Likewise.
5557 (identify_dead_nodes): Likewise.
5558 (ipcp_store_bits_results): Likewise.
5559 * ipa-devirt.c (dump_targets): Likewise.
5560 (ipa_devirt): Likewise.
5561 * ipa-icf.c (sem_item::dump): Likewise.
5562 (sem_function::equals): Likewise.
5563 (sem_variable::equals): Likewise.
5564 (sem_item_optimizer::read_section): Likewise.
5565 (sem_item_optimizer::execute): Likewise.
5566 (congruence_class::dump): Likewise.
5567 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
5568 (dump_inline_summary): Likewise.
5569 (estimate_node_size_and_time): Likewise.
5570 (inline_analyze_function): Likewise.
5571 * ipa-inline-transform.c (inline_call): Likewise.
5572 * ipa-inline.c (report_inline_failed_reason): Likewise.
5573 (want_early_inline_function_p): Likewise.
5574 (edge_badness): Likewise.
5575 (update_edge_key): Likewise.
5576 (inline_small_functions): Likewise.
5577 * ipa-profile.c (ipa_profile): Likewise.
5578 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5579 (ipa_make_edge_direct_to_target): Likewise.
5580 (remove_described_reference): Likewise.
5581 (ipa_impossible_devirt_target): Likewise.
5582 (propagate_controlled_uses): Likewise.
5583 (ipa_print_node_params): Likewise.
5584 (ipcp_transform_function): Likewise.
5585 * ipa-pure-const.c (pure_const_read_summary): Likewise.
5586 (propagate_pure_const): Likewise.
5587 * ipa-reference.c (generate_summary): Likewise.
5588 (read_write_all_from_decl): Likewise.
5589 (propagate): Likewise.
5590 (ipa_reference_read_optimization_summary): Likewise.
5591 * ipa-utils.c (ipa_merge_profiles): Likewise.
5592 * ipa.c (walk_polymorphic_call_targets): Likewise.
5593 (symbol_table::remove_unreachable_nodes): Likewise.
5594 (ipa_single_use): Likewise.
5595 * passes.c (execute_todo): Likewise.
5596 * predict.c (drop_profile): Likewise.
5597 * symtab.c (symtab_node::get_dump_name): New function.
5598 (symtab_node::dump_name): Likewise.
5599 (symtab_node::dump_asm_name): Likewise.
5600 (symtab_node::dump_references): Likewise.
5601 (symtab_node::dump_referring): Likewise.
5602 (symtab_node::dump_base): Likewise.
5603 (symtab_node::debug_symtab): Likewise.
5604 * tree-sra.c (convert_callers_for_node): Likewise.
5605 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5606 * value-prof.c (init_node_map): Likewise.
5607
5608 2017-05-23 Martin Liska <mliska@suse.cz>
5609
5610 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
5611 and symtab_node::debug_symtab to symbol_table::debug.
5612 * cgraphunit.c (analyze_functions): Use the renamed function.
5613 (symbol_table::compile): Likewise.
5614 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
5615 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
5616 * passes.c (execute_todo): Likewise.
5617 * symtab.c (symbol_table::dump): New function.
5618 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
5619
5620 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5621
5622 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
5623 that nonconst implies exec.
5624
5625 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
5626
5627 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5628 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5629 (inline_edge_summary_vec): Turn into ...
5630 (ipa_call_summaries): ... this one.
5631 (redirect_to_unreachable, edge_set_predicate,
5632 evaluate_properties_for_edge, inline_summary_alloc,
5633 reset_ipa_call_summary, reset_inline_summary,
5634 inline_summary_t::duplicate): Update.
5635 (inline_edge_duplication_hook): Turn to ...
5636 (ipa_call_summary_t::duplicate): ... this one.
5637 (inline_edge_removal_hook): Turn to ...
5638 (ipa_call_summary_t::remove): ... this one.
5639 (dump_inline_edge_summary): Turn to ...
5640 (dump_ipa_call_summary): ... this one.
5641 (estimate_function_body_sizes): Update.
5642 (inline_update_callee_summaries): Update.
5643 (remap_edge_change_prob): Update.
5644 (remap_edge_summaries): Update.
5645 (inline_merge_summary): Update.
5646 (do_estimate_edge_time): Update.
5647 (inline_generate_summary): Update.
5648 (inline_read_section): Update.
5649 (inline_read_summary): Update.
5650 (inline_free_summary): Update.
5651 * ipa-inline.c (can_inline_edge_p): Update.
5652 (compute_inlined_call_time): Update.
5653 (want_inline_small_function_p): Update.
5654 (edge_badness): Update.
5655 (early_inliner): Update.
5656 * ipa-inline.h (inline_edge_summary): Turn to ...
5657 (ipa_call_summary): ... this one.
5658 (ipa_call_summary_t): New class.
5659 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
5660 (ipa_call_summaries): New.
5661 (inline_edge_summary): Remove.
5662 (estimate_edge_growth): Update.
5663 * ipa-profile.c (ipa_propagate_frequency_1): Update.
5664 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
5665 * ipa-split.c (execute_split_functions): Update.
5666 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5667
5668 2017-05-23 Tom de Vries <tom@codesourcery.com>
5669
5670 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5671 attributes): Document rdrand effective target.
5672
5673 2017-05-23 Tom de Vries <tom@codesourcery.com>
5674
5675 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
5676 attributes): Sort alphabetically.
5677
5678 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
5679
5680 * config/avr/genmultilib.awk: Use gsub instead of gensub.
5681
5682 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5683
5684 PR target/80718
5685 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
5686 V2DF/V2DI splat into two separate patterns, one that handles
5687 registers, and the other that only handles memory. Drop support
5688 for splatting from a GPR on ISA 2.07 and then splitting the
5689 splat into direct move and splat.
5690 (vsx_splat_<mode>_reg): Likewise.
5691 (vsx_splat_<mode>_mem): Likewise.
5692
5693 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
5694
5695 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
5696
5697 2017-05-22 Jakub Jelinek <jakub@redhat.com>
5698
5699 PR middle-end/80809
5700 * omp-low.c (finish_taskreg_remap): New function.
5701 (finish_taskreg_scan): If unit size of ctx->record_type
5702 is non-constant, unshare the size expression and replace
5703 decls in it with possible outer var refs.
5704
5705 PR middle-end/80809
5706 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
5707 GOVD_SHARED rather than GOVD_PRIVATE with it.
5708 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
5709 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
5710
5711 PR middle-end/80853
5712 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
5713 as last argument to build_outer_var_ref for pointer bases of array
5714 section reductions.
5715
5716 2017-05-19 Martin Sebor <msebor@redhat.com>
5717
5718 * print-tree.c (print_node): Print DECL_READ_P flag.
5719
5720 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5721
5722 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
5723 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
5724 * cgraph.c: Likewise.
5725 * cgraphunit.c: Likewise.
5726 * gengtype.c: Likewise.
5727 * ipa-cp.c: Likewise.
5728 * ipa-devirt.c: Likewise.
5729 * ipa-icf.c: Likewise.
5730 * ipa-predicate.c: Likewise.
5731 * ipa-profile.c: Likewise.
5732 * ipa-prop.c: Likewise.
5733 * ipa-split.c: Likewise.
5734 * ipa.c: Likewise.
5735 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
5736 edge_predicate_pool, dump_inline_hints,
5737 inline_summary::account_size_time, redirect_to_unreachable,
5738 edge_set_predicate, set_hint_predicate,
5739 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
5740 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
5741 inline_summary_t::remove, remap_hint_predicate_after_duplication,
5742 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
5743 ipa_call_summary_t::remove, initialize_growth_caches,
5744 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
5745 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
5746 mark_modified, unmodified_parm_1, unmodified_parm,
5747 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
5748 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
5749 compute_bb_predicates, will_be_nonconstant_expr_predicate,
5750 will_be_nonconstant_predicate, record_modified_bb_info,
5751 get_minimal_bb, record_modified, param_change_prob,
5752 phi_result_unknown_predicate, predicate_for_phi_result,
5753 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
5754 estimate_function_body_sizes, compute_inline_parameters,
5755 compute_inline_parameters_for_curren, pass_data_inline_parameters,
5756 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
5757 inline_update_callee_summaries, remap_edge_change_prob,
5758 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
5759 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
5760 inline_analyze_function, inline_summary_t::insert,
5761 inline_generate_summary, read_ipa_call_summary, inline_read_section,
5762 inline_read_summary, write_ipa_call_summary, inline_write_summary,
5763 inline_free_summary): Move to ipa-fnsummary.h
5764 (predicate_t): Remove.
5765 * ipa-fnsummary.c: New file.
5766 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
5767 (enum inline_hints_vals, inline_hints, agg_position_info,
5768 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
5769 inline_summaries, ipa_call_summary, ipa_call_summary_t,
5770 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
5771 dump_inline_summary, dump_inline_hints, inline_generate_summary,
5772 inline_read_summary, inline_write_summary, inline_free_summary,
5773 inline_analyze_function, initialize_inline_failed,
5774 inline_merge_summary, inline_update_overall_summary,
5775 compute_inline_parameters): Move to ipa-fnsummary.h
5776 * ipa-fnsummary.h: New file.
5777 * ipa-inline-transform.h: Include ipa-inline.h.
5778 * ipa-inline.c: LIkewise.
5779
5780 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5781
5782 * ipa-inline.c (edge_badness): Use inlined_time instead of
5783 inline_summaries->get.
5784
5785 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5786
5787 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
5788
5789 2017-05-22 Nathan Sidwell <nathan@acm.org>
5790
5791 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
5792 (fdump-lang): Document 'raw' option.
5793 * dumpfile.h (TDI_tu): Delete.
5794 * dumpfile.c (dump_files): Remove translation-unit.
5795 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
5796
5797 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
5798
5799 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
5800 command option from $(AWK) call.
5801 * config/avr/genmultilib.awk: Simplify and rewrite so that it
5802 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
5803 [FORMAT]: Remove handling of variable.
5804 * config/avr/t-multilib: Regenerate.
5805
5806 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5807
5808 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
5809 self_time.
5810 (dump_inline_summary): Do not print self_time.
5811 (estimate_function_body_sizes): Do not set self_time.
5812 (compute_inline_parameters): Likewise.
5813 (inline_read_section, inline_write_summary): Do not stream self_time.
5814 * ipa-inline.h (inline_summary): Drop self_time.
5815
5816 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5817
5818 * ipa-inline-analysis.c (account_size_time): Rename to ...
5819 (inline_summary::account_size_time): ... this one.
5820 (reset_ipa_call_summary): Turn to ...
5821 (ipa_call_summary::reset): ... this one.
5822 (reset_inline_summary): Turn to ...
5823 (inline_summary::reset): ... this one.
5824 (inline_summary_t::remove): Update.
5825 (inline_summary_t::duplicate): Update.
5826 (ipa_call_summary_t::remove): Update.
5827 (dump_inline_summary): Update.
5828 (estimate_function_body_sizes): Update.
5829 (compute_inline_parameters): Update.
5830 (estimate_node_size_and_time): Update.
5831 (inline_merge_summary): Update.
5832 (inline_update_overall_summary): Update.
5833 (inline_read_section): Update.
5834 (inline_write_summary): Update.
5835 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
5836 add account_size_time and reset member functions.
5837 (ipa_call_summary): Add reset function.
5838 * ipa-predicate.h (predicate::operator &): Constify.
5839
5840 2017-05-22 Richard Biener <rguenther@suse.de>
5841
5842 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
5843
5844 2017-05-19 Jason Merrill <jason@redhat.com>
5845
5846 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
5847
5848 2017-05-19 Marek Polacek <polacek@redhat.com>
5849
5850 PR sanitizer/80800
5851 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
5852 TYPE_OVERFLOW_WRAPS checks.
5853
5854 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
5855
5856 * tree-core.h (enum omp_clause_default_kind): Add
5857 "OMP_CLAUSE_DEFAULT_PRESENT".
5858 * tree-pretty-print.c (dump_omp_clause): Handle it.
5859 * gimplify.c (enum gimplify_omp_var_data): Add
5860 "GOVD_MAP_FORCE_PRESENT".
5861 (gimplify_adjust_omp_clauses_1): Map it to
5862 "GOMP_MAP_FORCE_PRESENT".
5863 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
5864
5865 * gimplify.c (oacc_default_clause): Clarify.
5866
5867 2017-05-19 Nathan Sidwell <nathan@acm.org>
5868
5869 LANG_HOOK_REGISTER_DUMPS
5870 * toplev.c (general_init): Call register dump lang hook.
5871 * doc/invoke.texi: Document -fdump-lang option family.
5872 * dumpfile.c (dump_files): Remove class dump here.
5873 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
5874 * dumpfile.h (tree_dump_index): Remove TDI_class.
5875 * langhooks-def.h (lhd_register_dumps): Declare.
5876 (LANG_HOOKS_REGISTER_DUMPS): Define.
5877 (LANG_HOOKS_INITIALIZER): Add it.
5878 * langhooks.c (lhd_register_dumps): Define.
5879 * langhooks.h (struct lang_hooks): Add register_dumps.
5880
5881 2017-05-19 Nathan Sidwell <nathan@acm.org>
5882
5883 * context.h (context::set_passes): New.
5884 * context.c (context::context): Do not create pass manager.
5885 * toplev.c (general_init): Create pass manager here.
5886
5887 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
5888
5889 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
5890 use this splitter if two add or or instructions would also work for
5891 the constant we want to generate.
5892
5893 2017-05-19 Richard Biener <rguenther@suse.de>
5894
5895 PR build/80821
5896 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
5897 predicate evaluation.
5898
5899 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
5900
5901 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
5902 add ctor.
5903 * ipa-inline.c (want_inline_small_function_p): Do not cast to
5904 unsigned.
5905
5906 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
5907
5908 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
5909 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
5910 (inline_edge_summary_vec): Turn into ...
5911 (ipa_call_summaries): ... this one.
5912 (redirect_to_unreachable, edge_set_predicate,
5913 evaluate_properties_for_edge, inline_summary_alloc,
5914 reset_ipa_call_summary, reset_inline_summary,
5915 inline_summary_t::duplicate): Update.
5916 (inline_edge_duplication_hook): Turn to ...
5917 (ipa_call_summary_t::duplicate): ... this one.
5918 (inline_edge_removal_hook): Turn to ...
5919 (ipa_call_summary_t::remove): ... this one.
5920 (dump_inline_edge_summary): Turn to ...
5921 (dump_ipa_call_summary): ... this one.
5922 (estimate_function_body_sizes): Update.
5923 (inline_update_callee_summaries): Update.
5924 (remap_edge_change_prob): Update.
5925 (remap_edge_summaries): Update.
5926 (inline_merge_summary): Update.
5927 (do_estimate_edge_time): Update.
5928 (inline_generate_summary): Update.
5929 (inline_read_section): Update.
5930 (inline_read_summary): Update.
5931 (inline_free_summary): Update.
5932 * ipa-inline.c (can_inline_edge_p): Update.
5933 (compute_inlined_call_time): Update.
5934 (want_inline_small_function_p): Update.
5935 (edge_badness): Update.
5936 (early_inliner): Update.
5937 * ipa-inline.h (inline_edge_summary): Turn to ...
5938 (ipa_call_summary): ... this one.
5939 (ipa_call_summary_t): New class.
5940 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
5941 (ipa_call_summaries): New.
5942 (inline_edge_summary): Remove.
5943 (estimate_edge_growth): Update.
5944 * ipa-profile.c (ipa_propagate_frequency_1): Update.
5945 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
5946 * ipa-split.c (execute_split_functions): Update.
5947 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5948
5949 2017-05-19 Richard Biener <rguenther@suse.de>
5950
5951 PR middle-end/80764
5952 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
5953
5954 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
5955
5956 * config/rs6000/rs6000.c (struct machine_function): Add field
5957 fpr_is_wrapped_separately.
5958 (rs6000_get_separate_components): Use 64 components. Handle the
5959 new FPR components.
5960 (rs6000_components_for_bb): Handle the FPR components.
5961 (rs6000_emit_prologue_components): Handle the FPR components.
5962 (rs6000_emit_epilogue_components): Handle the FPR components.
5963 (rs6000_set_handled_components): Handle the FPR components.
5964 (rs6000_emit_prologue): Don't output prologue code for those FPRs
5965 that are already separately shrink-wrapped.
5966 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
5967 that are already separately shrink-wrapped.
5968
5969 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5970
5971 PR target/80510
5972 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
5973 New predicate.
5974
5975 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
5976 (define_peephole2 for Altivec d-form load): Add peepholes to catch
5977 cases where the register allocator uses a move and an offsettable
5978 memory operation to/from a FPR register on ISA 2.06/2.07.
5979 (define_peephole2 for Altivec d-form store): Likewise.
5980
5981 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
5982
5983 PR target/80799
5984 * config/i386/mmx.md (*mov<mode>_internal): Enable
5985 alternatives 11, 12, 13 and 14 also for 32bit targets.
5986 Remove alternatives 15, 16, 17 and 18.
5987 * config/i386/sse.md (vec_concatv2di): Change
5988 alternative (!x, *y) to (x, ?!*Yn).
5989
5990 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
5991
5992 * dumpfile.h (enum dump_kind): Remove stray comma.
5993
5994 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
5995
5996 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
5997 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
5998 predicate::num_conditions
5999 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
6000 (CHANGED): turn into predicate::changed.
6001 (agg_position_info): Move to ipa-predicate.h
6002 (add_condition, predicate::add_clause, predicate::operator &=,
6003 predicate::or_with, predicate::evaluate, predicate::probability,
6004 dump_condition, dump_clause, predicate::dump,
6005 predicate::remap_after_duplication, predicate::remap_after_inlining,
6006 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
6007 (evaluate_conditions_for_known_args): Update.
6008 (set_cond_stmt_execution_predicate): Update.
6009 * ipa-inline.h: Include ipa-predicate.h
6010 (condition, inline_param_summary, conditions, agg_position_info,
6011 predicate): Move to ipa-predicate.h
6012 * ipa-predicate.c: New file.
6013 * ipa-predicate.h: New file.
6014
6015 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
6016
6017 * final.c (leaf_function_p): Check we are not in a sequence.
6018
6019 2017-05-18 Martin Liska <mliska@suse.cz>
6020
6021 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
6022 * dumpfile.c (dump_register): Use new enum dump_kind.
6023 (get_dump_file_name): Likewise.
6024 (dump_enable_all): Likewise.
6025 (dump_switch_p_1): Likewise.
6026 (enable_rtl_dump_file): Remove usage of TDF_RTL.
6027 * dumpfile.h (enum dump_kind): New enum type.
6028 (struct dump_file_info): Create constructor and
6029 format fields and comments.
6030 * passes.c (pass_manager::register_one_dump_file):
6031 Use num dump_kind.
6032 * statistics.c (statistics_early_init): Likewise.
6033 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
6034 TDF_TREE with TDF_SLIM.
6035 (gather_memory_references_ref): Likewise.
6036
6037 2017-05-18 Martin Liska <mliska@suse.cz>
6038
6039 * vec.h (struct vnull): Use it.
6040
6041 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
6042
6043 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
6044 (true_predicate, false_predicate, true_predicate_p,
6045 false_predicate_p): Remove.
6046 (single_cond_predicate, not_inlined_predicate): Turn to member function
6047 in ipa-inline.h
6048 (add_condition): Update.
6049 (add_clause): Turn to...
6050 (predicate::add_clause): ... this one; update; allow passing NULL
6051 as parameter.
6052 (and_predicates): Turn to ...
6053 (predicate::operator &=): ... this one.
6054 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
6055 (or_predicates): Turn to ...
6056 (predicate::or_with): ... this one.
6057 (evaluate_predicate): Turn to ...
6058 (predicate::evaluate): ... this one.
6059 (predicate_probability): Turn to ...
6060 (predicate::probability): ... this one.
6061 (dump_condition): Update.
6062 (dump_predicate): Turn to ...
6063 (predicate::dump): ... this one.
6064 (account_size_time): Update.
6065 (edge_set_predicate): Update.
6066 (set_hint_predicate): UPdate.
6067 (evaluate_conditions_for_known_args): Update.
6068 (evaluate_properties_for_edge): Update.
6069 (remap_predicate_after_duplication): Turn to...
6070 (predicate::remap_after_duplication): ... this one.
6071 (remap_hint_predicate_after_duplication): Update.
6072 (inline_summary_t::duplicate): UPdate.
6073 (dump_inline_edge_summary): Update.
6074 (dump_inline_summary): Update.
6075 (set_cond_stmt_execution_predicate): Update.
6076 (set_switch_stmt_execution_predicate): Update.
6077 (compute_bb_predicates): Update.
6078 (will_be_nonconstant_expr_predicate): Update.
6079 (will_be_nonconstant_predicate): Update.
6080 (phi_result_unknown_predicate): Update.
6081 (predicate_for_phi_result): Update.
6082 (array_index_predicate): Update.
6083 (estimate_function_body_sizes): Update.
6084 (estimate_node_size_and_time): Update.
6085 (estimate_ipcp_clone_size_and_time): Update.
6086 (remap_predicate): Rename to ...
6087 (predicate::remap_after_inlining): ... this one.
6088 (remap_hint_predicate): Update.
6089 (inline_merge_summary): Update.
6090 (inline_update_overall_summary): Update.
6091 (estimate_size_after_inlining): Update.
6092 (read_predicate): Rename to ...
6093 (predicate::stream_in): ... this one.
6094 (read_inline_edge_summary): Update.
6095 (write_predicate): Rename to ...
6096 (predicate::stream_out): ... this one.
6097 (write_inline_edge_summary): Update.
6098 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
6099 (clause_t): Turn to uint32_t
6100 (predicate): Turn to class; implement constructor and operators
6101 ==, !=, &
6102 (size_time_entry): Update.
6103 (inline_summary): Update.
6104 (inline_edge_summary): Update.
6105
6106 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
6107
6108 * fold-const.c (fold_binary_loc): Move transformation...
6109 * match.pd (C - X CMP X): ... here.
6110
6111 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
6112
6113 * config/sparc/sparc.c (sparc_option_override): Set function
6114 alignment for -mcpu=niagara7 to 64 to match the I$ line.
6115 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
6116 latency to 1.
6117 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
6118 latency to 2.
6119 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
6120
6121 2017-05-18 Marek Polacek <polacek@redhat.com>
6122
6123 PR sanitizer/80797
6124 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
6125 (pass_ubsan::execute): Call gimple_assign_single_p instead of
6126 gimple_assign_load_p.
6127
6128 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
6129
6130 PR middle-end/80692
6131 * real.c (do_compare): Give decimal_do_compare preference over
6132 comparing just the signs.
6133
6134 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
6135
6136 * doc/md.texi (Canonicalization of Instructions): Describe the
6137 canonical form of instructions that inherently set a condition
6138 code register.
6139
6140 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
6141
6142 PR middle-end/80775
6143 * tree-cfg.c: Move deletion of unreachable case statements to after
6144 the merging of consecutive case labels.
6145
6146 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6147
6148 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
6149 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
6150 restoring of callee-saved registers.
6151
6152 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
6153
6154 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
6155 * config/visium/visium.c (single_set_and_flags): Likewise.
6156 * config/visium/visium.md (Substitutions): Likewise.
6157
6158 2017-05-17 Martin Liska <mliska@suse.cz>
6159
6160 * cfg.c: Introduce dump_flags_t type and
6161 use it instead of int type.
6162 * cfg.h: Likewise.
6163 * cfghooks.c: Likewise.
6164 * cfghooks.h (struct cfg_hooks): Likewise.
6165 * cfgrtl.c: Likewise.
6166 * cfgrtl.h: Likewise.
6167 * cgraph.c (cgraph_node::get_body): Likewise.
6168 * coretypes.h: Likewise.
6169 * domwalk.c: Likewise.
6170 * domwalk.h: Likewise.
6171 * dumpfile.c (struct dump_option_value_info): Likewise.
6172 (dump_enable_all): Likewise.
6173 (dump_switch_p_1): Likewise.
6174 (opt_info_switch_p): Likewise.
6175 * dumpfile.h (enum tree_dump_index): Likewise.
6176 (struct dump_file_info): Likewise.
6177 * genemit.c: Likewise.
6178 * generic-match-head.c: Likewise.
6179 * gengtype.c (open_base_files): Likewise.
6180 * gimple-pretty-print.c: Likewise.
6181 * gimple-pretty-print.h: Likewise.
6182 * graph.c (print_graph_cfg): Likewise.
6183 * graphite-scop-detection.c (dot_all_sese): Likewise.
6184 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
6185 * loop-unroll.c (report_unroll): Likewise.
6186 * passes.c (pass_manager::register_one_dump_file): Likewise.
6187 * print-tree.c: Likewise.
6188 * statistics.c: Likewise.
6189 * tree-cfg.c: Likewise.
6190 * tree-cfg.h: Likewise.
6191 * tree-dfa.c: Likewise.
6192 * tree-dfa.h: Likewise.
6193 * tree-dump.c (dump_function): Likewise.
6194 * tree-dump.h (struct dump_info): Likewise.
6195 * tree-pretty-print.c: Likewise.
6196 * tree-pretty-print.h: Likewise.
6197 * tree-ssa-live.c: Likewise.
6198 * tree-ssa-live.h: Likewise.
6199 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6200 * tree-vect-loop.c: Likewise.
6201 * tree-vect-slp.c: Likewise.
6202
6203 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
6204 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6205
6206 PR tree-optimization/80457
6207 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
6208 of all arguments to a statement as scalar_to_vec operations.
6209 (vectorizable_call): Adjust call to vect_model_simple_cost for
6210 new parameter.
6211 (vectorizable_conversion): Likewise.
6212 (vectorizable_assignment): Likewise.
6213 (vectorizable_shift): Likewise.
6214 (vectorizable_operation): Likewise.
6215 (vectorizable_comparison): Likewise.
6216 (vect_is_simple_cond): Record the def types for operands.
6217 (vectorizable_condition): Likewise, call vect_model_simple_cost.
6218 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
6219 for statement argument count.
6220
6221 2017-05-16 Carl Love <cel@us.ibm.com>
6222
6223 * config/rs6000/rs6000-c: Add support for built-in functions
6224 vector unsigned long long vec_bperm (vector unsigned long long,
6225 vector unsigned char)
6226 vector signed long long vec_mule (vector signed int,
6227 vector signed int)
6228 vector unsigned long long vec_mule (vector unsigned int,
6229 vector unsigned int)
6230 vector signed long long vec_mulo (vector signed int,
6231 vector signed int)
6232 vector unsigned long long vec_mulo (vector unsigned int,
6233 vector unsigned int)
6234 vector signed char vec_sldw (vector signed char,
6235 vector signed char,
6236 const int)
6237 vector unsigned char vec_sldw (vector unsigned char,
6238 vector unsigned char,
6239 const int)
6240 vector signed short vec_sldw (vector signed short,
6241 vector signed short,
6242 const int)
6243 vector unsigned short vec_sldw (vector unsigned short,
6244 vector unsigned short,
6245 const int)
6246 vector signed int vec_sldw (vector signed int,
6247 vector signed int,
6248 const int)
6249 vector unsigned int vec_sldw (vector unsigned int,
6250 vector unsigned int,
6251 const int)
6252 vector signed long long vec_sldw (vector signed long long,
6253 vector signed long long,
6254 const int)
6255 vector unsigned long long vec_sldw (vector unsigned long long,
6256 vector unsigned long long,
6257 const int)
6258 * config/rs6000/rs6000-c: Add support for built-in functions
6259 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
6260 * config/rs6000/altivec.h: Add defintion for vec_sldw.
6261 * doc/extend.texi: Update the built-in documentation for the
6262 new built-in functions.
6263
6264 2017-05-16 Marek Polacek <polacek@redhat.com>
6265
6266 PR sanitizer/80536
6267 PR sanitizer/80386
6268 * tree.c (save_expr): Don't fold the expression.
6269
6270 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
6271
6272 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
6273 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
6274 and (?*y,m). Update insn attributes.
6275
6276 2017-05-16 Martin Liska <mliska@suse.cz>
6277
6278 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
6279 flags argument of print_gimple_stmt, print_gimple_expr,
6280 print_generic_stmt and print_generic_expr.
6281 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
6282 * coretypes.h: Likewise.
6283 * except.c (dump_eh_tree): Likewise.
6284 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
6285 * gimple-pretty-print.h: Likewise.
6286 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
6287 (backprop::push_to_worklist): Likewise.
6288 (backprop::pop_from_worklist): Likewise.
6289 (backprop::process_use): Likewise.
6290 (backprop::intersect_uses): Likewise.
6291 (note_replacement): Likewise.
6292 * gimple-ssa-store-merging.c
6293 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
6294 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
6295 (pass_store_merging::execute): Likewise.
6296 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
6297 (ssa_base_cand_dump_callback): Likewise.
6298 (dump_incr_vec): Likewise.
6299 (replace_refs): Likewise.
6300 (replace_mult_candidate): Likewise.
6301 (create_add_on_incoming_edge): Likewise.
6302 (create_phi_basis): Likewise.
6303 (insert_initializers): Likewise.
6304 (all_phi_incrs_profitable): Likewise.
6305 (introduce_cast_before_cand): Likewise.
6306 (replace_one_candidate): Likewise.
6307 * gimplify.c (gimplify_expr): Likewise.
6308 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
6309 (set_rename): Likewise.
6310 (rename_uses): Likewise.
6311 (copy_loop_phi_nodes): Likewise.
6312 (add_close_phis_to_merge_points): Likewise.
6313 (copy_loop_close_phi_args): Likewise.
6314 (copy_cond_phi_args): Likewise.
6315 (graphite_copy_stmts_from_block): Likewise.
6316 (translate_pending_phi_nodes): Likewise.
6317 * graphite-poly.c (print_pdr): Likewise.
6318 (dump_gbb_cases): Likewise.
6319 (dump_gbb_conditions): Likewise.
6320 (print_scop_params): Likewise.
6321 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
6322 (build_cross_bb_scalars_use): Likewise.
6323 (gather_bbs::before_dom_children): Likewise.
6324 * hsa-dump.c (dump_hsa_immed): Likewise.
6325 * ipa-cp.c (print_ipcp_constant_value): Likewise.
6326 (get_replacement_map): Likewise.
6327 * ipa-inline-analysis.c (dump_condition): Likewise.
6328 (estimate_function_body_sizes): Likewise.
6329 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
6330 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
6331 * ipa-prop.c (ipa_dump_param): Likewise.
6332 (ipa_print_node_jump_functions_for_edge): Likewise.
6333 (ipa_modify_call_arguments): Likewise.
6334 (ipa_modify_expr): Likewise.
6335 (ipa_dump_param_adjustments): Likewise.
6336 (ipa_dump_agg_replacement_values): Likewise.
6337 (ipcp_modif_dom_walker::before_dom_children): Likewise.
6338 * ipa-pure-const.c (check_stmt): Likewise.
6339 (pass_nothrow::execute): Likewise.
6340 * ipa-split.c (execute_split_functions): Likewise.
6341 * omp-offload.c (dump_oacc_loop_part): Likewise.
6342 (dump_oacc_loop): Likewise.
6343 * trans-mem.c (tm_log_emit): Likewise.
6344 (tm_memopt_accumulate_memops): Likewise.
6345 (dump_tm_memopt_set): Likewise.
6346 (dump_tm_memopt_transform): Likewise.
6347 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6348 (print_loop): Likewise.
6349 * tree-chkp-opt.c (chkp_print_addr): Likewise.
6350 (chkp_gather_checks_info): Likewise.
6351 (chkp_get_check_result): Likewise.
6352 (chkp_remove_check_if_pass): Likewise.
6353 (chkp_use_outer_bounds_if_possible): Likewise.
6354 (chkp_reduce_bounds_lifetime): Likewise.
6355 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
6356 (chkp_mark_completed_bounds): Likewise.
6357 (chkp_register_incomplete_bounds): Likewise.
6358 (chkp_mark_invalid_bounds): Likewise.
6359 (chkp_maybe_copy_and_register_bounds): Likewise.
6360 (chkp_build_returned_bound): Likewise.
6361 (chkp_get_bound_for_parm): Likewise.
6362 (chkp_build_bndldx): Likewise.
6363 (chkp_get_bounds_by_definition): Likewise.
6364 (chkp_generate_extern_var_bounds): Likewise.
6365 (chkp_get_bounds_for_decl_addr): Likewise.
6366 * tree-chrec.c (chrec_apply): Likewise.
6367 * tree-data-ref.c (dump_data_reference): Likewise.
6368 (dump_subscript): Likewise.
6369 (dump_data_dependence_relation): Likewise.
6370 (analyze_overlapping_iterations): Likewise.
6371 * tree-inline.c (expand_call_inline): Likewise.
6372 (tree_function_versioning): Likewise.
6373 * tree-into-ssa.c (dump_defs_stack): Likewise.
6374 (dump_currdefs): Likewise.
6375 (dump_names_replaced_by): Likewise.
6376 (dump_update_ssa): Likewise.
6377 (update_ssa): Likewise.
6378 * tree-object-size.c (pass_object_sizes::execute): Likewise.
6379 * tree-parloops.c (build_new_reduction): Likewise.
6380 (try_create_reduction_list): Likewise.
6381 (ref_conflicts_with_region): Likewise.
6382 (oacc_entry_exit_ok_1): Likewise.
6383 (oacc_entry_exit_single_gang): Likewise.
6384 * tree-pretty-print.h: Likewise.
6385 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
6386 (get_scalar_evolution): Likewise.
6387 (add_to_evolution): Likewise.
6388 (get_loop_exit_condition): Likewise.
6389 (analyze_evolution_in_loop): Likewise.
6390 (analyze_initial_condition): Likewise.
6391 (analyze_scalar_evolution): Likewise.
6392 (instantiate_scev): Likewise.
6393 (number_of_latch_executions): Likewise.
6394 (gather_chrec_stats): Likewise.
6395 (final_value_replacement_loop): Likewise.
6396 (scev_const_prop): Likewise.
6397 * tree-sra.c (dump_access): Likewise.
6398 (disqualify_candidate): Likewise.
6399 (create_access): Likewise.
6400 (reject): Likewise.
6401 (maybe_add_sra_candidate): Likewise.
6402 (create_access_replacement): Likewise.
6403 (analyze_access_subtree): Likewise.
6404 (analyze_all_variable_accesses): Likewise.
6405 (sra_modify_assign): Likewise.
6406 (initialize_constant_pool_replacements): Likewise.
6407 (find_param_candidates): Likewise.
6408 (decide_one_param_reduction): Likewise.
6409 (replace_removed_params_ssa_names): Likewise.
6410 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6411 * tree-ssa-copy.c (dump_copy_of): Likewise.
6412 (copy_prop_visit_cond_stmt): Likewise.
6413 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
6414 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
6415 (record_equivalences_from_stmt): Likewise.
6416 * tree-ssa-dse.c (compute_trims): Likewise.
6417 (delete_dead_call): Likewise.
6418 (delete_dead_assignment): Likewise.
6419 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
6420 (forward_propagate_into_cond): Likewise.
6421 (pass_forwprop::execute): Likewise.
6422 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6423 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
6424 Likewise.
6425 (move_computations_worker): Likewise.
6426 (execute_sm): Likewise.
6427 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
6428 (remove_exits_and_undefined_stmts): Likewise.
6429 (remove_redundant_iv_tests): Likewise.
6430 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
6431 (adjust_iv_update_pos): Likewise.
6432 * tree-ssa-math-opts.c (bswap_replace): Likewise.
6433 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
6434 (value_replacement): Likewise.
6435 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6436 * tree-ssa-pre.c (print_pre_expr): Likewise.
6437 (get_representative_for): Likewise.
6438 (create_expression_by_pieces): Likewise.
6439 (insert_into_preds_of_block): Likewise.
6440 (eliminate_insert): Likewise.
6441 (eliminate_dom_walker::before_dom_children): Likewise.
6442 (eliminate): Likewise.
6443 (remove_dead_inserted_code): Likewise.
6444 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
6445 * tree-ssa-reassoc.c (get_rank): Likewise.
6446 (eliminate_duplicate_pair): Likewise.
6447 (eliminate_plus_minus_pair): Likewise.
6448 (eliminate_not_pairs): Likewise.
6449 (undistribute_ops_list): Likewise.
6450 (eliminate_redundant_comparison): Likewise.
6451 (update_range_test): Likewise.
6452 (optimize_range_tests_var_bound): Likewise.
6453 (optimize_vec_cond_expr): Likewise.
6454 (rewrite_expr_tree): Likewise.
6455 (rewrite_expr_tree_parallel): Likewise.
6456 (linearize_expr): Likewise.
6457 (break_up_subtract): Likewise.
6458 (linearize_expr_tree): Likewise.
6459 (attempt_builtin_powi): Likewise.
6460 (attempt_builtin_copysign): Likewise.
6461 (transform_stmt_to_copy): Likewise.
6462 (transform_stmt_to_multiply): Likewise.
6463 (dump_ops_vector): Likewise.
6464 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
6465 (print_scc): Likewise.
6466 (set_ssa_val_to): Likewise.
6467 (visit_reference_op_store): Likewise.
6468 (visit_use): Likewise.
6469 (sccvn_dom_walker::before_dom_children): Likewise.
6470 (run_scc_vn): Likewise.
6471 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6472 Likewise.
6473 (expr_hash_elt::print): Likewise.
6474 (const_and_copies::pop_to_marker): Likewise.
6475 (const_and_copies::record_const_or_copy_raw): Likewise.
6476 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
6477 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
6478 (dump_predicates): Likewise.
6479 (find_uninit_use): Likewise.
6480 (warn_uninitialized_phi): Likewise.
6481 (pass_late_warn_uninitialized::execute): Likewise.
6482 * tree-ssa.c (verify_vssa): Likewise.
6483 (verify_ssa): Likewise.
6484 (maybe_optimize_var): Likewise.
6485 * tree-vrp.c (dump_value_range): Likewise.
6486 (dump_all_value_ranges): Likewise.
6487 (dump_asserts_for): Likewise.
6488 (register_edge_assert_for_2): Likewise.
6489 (vrp_visit_cond_stmt): Likewise.
6490 (vrp_visit_switch_stmt): Likewise.
6491 (vrp_visit_stmt): Likewise.
6492 (vrp_visit_phi_node): Likewise.
6493 (simplify_cond_using_ranges_1): Likewise.
6494 (fold_predicate_in): Likewise.
6495 (evrp_dom_walker::before_dom_children): Likewise.
6496 (evrp_dom_walker::push_value_range): Likewise.
6497 (evrp_dom_walker::pop_value_range): Likewise.
6498 (execute_early_vrp): Likewise.
6499
6500 2017-05-16 Richard Biener <rguenther@suse.de>
6501
6502 * dwarf2out.c (loc_list_from_tree_1): Do not create
6503 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
6504
6505 2017-05-16 Richard Biener <rguenther@suse.de>
6506
6507 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
6508 just generated.
6509 (note_variable_value_in_expr): If we resolved the decl ref
6510 do not push to the stack.
6511
6512 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
6513
6514 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
6515 operations in fast-math mode.
6516 (vaddq_f16): Likewise.
6517 (vmul_f16): Likewise.
6518 (vmulq_f16): Likewise.
6519 (vsub_f16): Likewise.
6520 (vsubq_f16): Likewise.
6521 * config/arm/neon.md (add<mode>3): New.
6522 (sub<mode>3): New.
6523 (fma:<VH:mode>3): New. Also remove outdated comment.
6524 (mul<mode>3): New.
6525
6526 2017-05-16 Martin Liska <mliska@suse.cz>
6527
6528 PR ipa/79849.
6529 PR ipa/79850.
6530 * ipa-devirt.c (warn_types_mismatch): Fix typo.
6531 (odr_types_equivalent_p): Likewise.
6532
6533 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
6534
6535 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
6536
6537 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
6538
6539 PR target/80425
6540 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
6541 non-interunit SSE move alternatives with '?'.
6542 (zero-extendsidi peephole2): New peephole to skip intermediate
6543 general register in SSE zero-extend sequence.
6544
6545 2017-05-15 Jeff Law <law@redhat.com>
6546
6547 * reorg.c (relax_delay_slots): Create a new variable to hold
6548 the temporary target rather than clobbering TARGET_LABEL.
6549
6550 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
6551 missing argument to extract_bit_field call.
6552 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6553
6554 2017-05-15 Martin Liska <mliska@suse.cz>
6555
6556 PR driver/31468
6557 * gcc.c (process_command): Do not allow empty argument of -o option.
6558
6559 2017-05-15 Renlin Li <renlin.li@arm.com>
6560
6561 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
6562 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
6563 * config/aarch64/constraints.md (Usf): Add long call check.
6564 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
6565 (call_value): Likewise.
6566 (sibcall): Likewise.
6567 (sibcall_value): Likewise.
6568 (call_insn): New.
6569 (call_value_insn): New.
6570 (sibcall_insn): Update rtx pattern.
6571 (sibcall_value_insn): Likewise.
6572 (call_internal): Remove.
6573 (call_value_internal): Likewise.
6574 (sibcall_internal): Likewise.
6575 (sibcall_value_internal): Likewise.
6576 (call_reg): Likewise.
6577 (call_symbol): Likewise.
6578 (call_value_reg): Likewise.
6579 (call_value_symbol): Likewise.
6580
6581 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
6582
6583 PR target/80600
6584 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
6585
6586 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
6587
6588 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
6589 compatible with CCGOCmode and with CCZmode.
6590
6591 2017-05-14 Martin Sebor <msebor@redhat.com>
6592
6593 PR middle-end/77671
6594 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
6595 (gimple_fold_builtin_snprintf): Same.
6596 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
6597 (gimple_fold_builtin_snprintf): Same.
6598 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
6599 of character types.
6600 (is_call_safe): New function.
6601 (try_substitute_return_value): Call it.
6602 (try_simplify_call): New function.
6603 (pass_sprintf_length::handle_gimple_call): Call it.
6604
6605 2017-05-14 Martin Sebor <msebor@redhat.com>
6606
6607 PR middle-end/80669
6608 * builtins.c (expand_builtin_stpncpy): Simplify.
6609
6610 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
6611
6612 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
6613 * config/i386/i386.h
6614 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
6615 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
6616 (struct machine_function): Add new members call_ms2sysv,
6617 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
6618 (struct machine_frame_state): New fields sp_realigned and
6619 sp_realigned_offset.
6620 * config/i386/i386.c
6621 (enum xlogue_stub): New enum.
6622 (enum xlogue_stub_sets): New enum.
6623 (class xlogue_layout): New class.
6624 (struct ix86_frame): New fields stack_realign_allocate_offset,
6625 stack_realign_offset and outlined_save_offset. Modify comments to
6626 detail stack layout when using out-of-line stubs.
6627 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
6628 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
6629 -mcall-ms2sysv-xlogues.
6630 (stub_managed_regs): New static variable.
6631 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
6632 registers managed by out-of-line stub.
6633 (disable_call_ms2sysv_xlogues): New function.
6634 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
6635 m->call_ms2sysv when appropriate and compute frame layout for
6636 out-of-line stubs.
6637 (sp_valid_at, fp_valid_at): New inline functions.
6638 (choose_basereg): New function.
6639 (choose_baseaddr): Add align parameter, use choose_basereg and modify
6640 all callers.
6641 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
6642 Use align parameter of choose_baseaddr to generated aligned SSE movs
6643 when possible.
6644 (pro_epilogue_adjust_stack): Modify to track
6645 machine_frame_state::sp_realigned.
6646 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
6647 (ix86_nsaved_sseregs): Likewise.
6648 (ix86_emit_save_regs): Likewise.
6649 (ix86_emit_save_regs_using_mov): Likewise.
6650 (ix86_emit_save_sse_regs_using_mov): Likewise.
6651 (get_scratch_register_on_entry): Likewise.
6652 (gen_frame_set): New function.
6653 (gen_frame_load): Likewise.
6654 (gen_frame_store): Likewise.
6655 (emit_outlined_ms2sysv_save): Likewise.
6656 (emit_outlined_ms2sysv_restore): Likewise.
6657 (ix86_expand_prologue): Modify stack re-alignment code and call
6658 emit_outlined_ms2sysv_save when appropriate.
6659 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
6660 parameter rtx_insn *insn, which allows the function to be used to only
6661 generate the notes.
6662 (ix86_expand_epilogue): Modify validity checks of frame and stack
6663 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
6664 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
6665 * config/i386/predicates.md
6666 (save_multiple): New predicate.
6667 (restore_multiple): Likewise.
6668 * config/i386/sse.md
6669 (save_multiple<mode>): New pattern.
6670 (save_multiple_realign<mode>): Likewise.
6671 (restore_multiple<mode>): Likewise.
6672 (restore_multiple_and_return<mode>): Likewise.
6673 (restore_multiple_leave_return<mode>): Likewise.
6674 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
6675
6676 2017-05-14 Julia Koval <julia.koval@intel.com>
6677
6678 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
6679 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
6680 (__builtin_ia32_xsetbv): New builtins.
6681 * config/i386/i386.c (ix86_expand_special_args_builtin):
6682 Process new types.
6683 (ix86_expand_builtin): Special expand for new intrinsics.
6684 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
6685 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
6686 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
6687
6688 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6689
6690 * cfganal.c (inverted_post_order_compute): Change argument type
6691 to vec *.
6692 * cfganal.h (inverted_post_order_compute): Adjust prototype.
6693 * df-core.c (rest_of_handle_df_initialize): Adjust.
6694 (rest_of_handle_df_finish): Likewise.
6695 (df_analyze_1): Likewise.
6696 (df_analyze): Likewise.
6697 (loop_inverted_post_order_compute): Change argument to be a vec *.
6698 (df_analyze_loop): Adjust.
6699 (df_get_n_blocks): Likewise.
6700 (df_get_postorder): Likewise.
6701 * df.h (struct df_d): Change field to be a vec.
6702 * lcm.c (compute_laterin): Adjust.
6703 (compute_available): Likewise.
6704 * lra-lives.c (lra_create_live_ranges_1): Likewise.
6705 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6706 * tree-ssa-pre.c (compute_antic): Likewise.
6707
6708 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6709
6710 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
6711 (depth_first_search::depth_first_search): Change structure init
6712 function to this constructor.
6713 (depth_first_search::add_bb): Rename function to this member.
6714 (depth_first_search::execute): Likewise.
6715 (flow_dfs_compute_reverse_finish): Adjust.
6716
6717 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6718
6719 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
6720 (longest_simple_path): Likewise.
6721 * shrink-wrap.c (spread_components): Likewise.
6722 (disqualify_problematic_components): Likewise.
6723 (emit_common_heads_for_components): Likewise.
6724 (emit_common_tails_for_components): Likewise.
6725 (insert_prologue_epilogue_for_components): Likewise.
6726
6727 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6728
6729 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
6730 auto_sbitmap.
6731
6732 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6733
6734 * df-core.c (df_set_blocks): Start using auto_bitmap.
6735 (df_compact_blocks): Likewise.
6736 * df-problems.c (df_rd_confluence_n): Likewise.
6737 * df-scan.c (df_insn_rescan_all): Likewise.
6738 (df_process_deferred_rescans): Likewise.
6739 (df_update_entry_block_defs): Likewise.
6740 (df_update_exit_block_uses): Likewise.
6741 (df_entry_block_bitmap_verify): Likewise.
6742 (df_exit_block_bitmap_verify): Likewise.
6743 (df_scan_verify): Likewise.
6744 * lra-constraints.c (lra_constraints): Likewise.
6745 (undo_optional_reloads): Likewise.
6746 (lra_undo_inheritance): Likewise.
6747 * lra-remat.c (calculate_gen_cands): Likewise.
6748 (do_remat): Likewise.
6749 * lra-spills.c (assign_spill_hard_regs): Likewise.
6750 (spill_pseudos): Likewise.
6751 * tree-ssa-pre.c (bitmap_set_and): Likewise.
6752 (bitmap_set_subtract_values): Likewise.
6753
6754 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6755
6756 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
6757 management with auto_bitmap.
6758 (fix_inter_tick): Likewise.
6759 (fix_recovery_deps): Likewise.
6760 * ira.c (add_store_equivs): Likewise.
6761 (find_moveable_pseudos): Likewise.
6762 (split_live_ranges_for_shrink_wrap): Likewise.
6763 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
6764 (rtx_reuse_manager::seen_def_p): Likewise.
6765 (rtx_reuse_manager::set_seen_def): Likewise.
6766 * print-rtl.h (class rtx_reuse_manager): Likewise.
6767
6768 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6769
6770 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
6771 lifetime.
6772 (migrate_btr_def): Likewise.
6773 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
6774 * df-core.c (loop_post_order_compute): Likewise.
6775 (loop_inverted_post_order_compute): Likewise.
6776 * hsa-common.h: Likewise.
6777 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
6778 * init-regs.c (initialize_uninitialized_regs): Likewise.
6779 * ipa-inline.c (resolve_noninline_speculation): Likewise.
6780 (inline_small_functions): Likewise.
6781 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
6782 * ira.c (combine_and_move_insns): Likewise.
6783 (build_insn_chain): Likewise.
6784 * loop-invariant.c (find_invariants): Likewise.
6785 * lower-subreg.c (propagate_pseudo_copies): Likewise.
6786 * predict.c (tree_predict_by_opcode): Likewise.
6787 (predict_paths_leading_to): Likewise.
6788 (predict_paths_leading_to_edge): Likewise.
6789 (estimate_loops_at_level): Likewise.
6790 (estimate_loops): Likewise.
6791 * shrink-wrap.c (try_shrink_wrapping): Likewise.
6792 (spread_components): Likewise.
6793 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
6794 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
6795 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6796 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
6797 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
6798 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
6799 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
6800 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
6801 (mark_threaded_blocks): Likewise.
6802 (thread_through_all_blocks): Likewise.
6803 * tree-ssa.c (verify_ssa): Likewise.
6804 (execute_update_addresses_taken): Likewise.
6805 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
6806
6807 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6808
6809 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
6810 auto_vec.
6811 (post_order_compute): Likewise.
6812 (inverted_post_order_compute): Likewise.
6813 (pre_and_rev_post_order_compute_fn): Likewise.
6814
6815 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6816
6817 * genrecog.c (int_set::int_set): Explicitly construct our
6818 auto_vec base class.
6819 * vec.h (auto_vec::auto_vec): New constructor.
6820
6821 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6822
6823 * bitmap.h (class auto_bitmap): New constructor taking
6824 bitmap_obstack * argument.
6825
6826 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6827
6828 * bitmap.h (class auto_bitmap): Change type of m_bits to
6829 bitmap_head, and adjust ctor / dtor and member operators.
6830
6831 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
6832
6833 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
6834 when returned register mode doesn't match original mode.
6835
6836 2017-05-12 Jeff Law <law@redhat.com>
6837 Jakub Jelinek <jakub@redhat.com>
6838
6839 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
6840 we look for cc setter after the compare-elim changes.
6841 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
6842 within the vector to match what compare-elim now expects.
6843 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
6844 (xorsi3_flags, one_cmplsi2_flags): Likewise.
6845
6846 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
6847 after the compare-elim changes.
6848 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
6849 the vector to match what compare-elim now expects.
6850 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
6851 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
6852 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
6853 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
6854 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
6855
6856 * config/visium/visium.c (single_set_and_flags): Fix where
6857 we look for cc setter after the compare-elim changes.
6858 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
6859 with the vector to match what compare-elim now expects.
6860 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
6861 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
6862 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
6863 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
6864 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
6865 (neg<mode>2_insn_set_overflow): Likewise.
6866
6867 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
6868
6869 PR middle-end/79794
6870 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
6871 maybe_expand_insn call, set ops[0].target. If still set after call,
6872 set alt_rtl. Add extra arg to recursive calls.
6873 (extract_bit_field): Add alt_rtl argument. Pass to
6874 extract_bit_field.
6875 * expmed.h (extract_bit_field): Fix prototype.
6876 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
6877 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
6878 to extract_bit_field_calls.
6879 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
6880 Pass alt_rtl to extract_bit_field calls.
6881 * calls.c (store_unaligned_arguments_into_psuedos)
6882 load_register_parameters): Pass extra NULL to extract_bit_field calls.
6883 * optabs.c (maybe_legitimize_operand): Clear op->target when call
6884 gen_reg_rtx.
6885 * optabs.h (struct expand_operand): Add target bitfield.
6886
6887 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
6888
6889 * compare-elim.c (try_eliminate_compare): Canonicalize
6890 operation with embedded compare to
6891 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
6892 (set (reg) (operation)].
6893
6894 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
6895
6896 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
6897
6898 PR target/80723
6899 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
6900 cost of adding a carry flag for ADC instruction.
6901 [case MINUS]: Ignore the cost of subtracting a carry flag
6902 for SBB instruction.
6903
6904 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
6905
6906 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
6907 and x86intrin.h
6908 * config/rs6000/bmiintrin.h: New file.
6909 * config/rs6000/bmi2intrin.h: New file.
6910 * config/rs6000/x86intrin.h: New file.
6911
6912 2017-05-12 Jeff Law <law@redhat.com>
6913
6914 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
6915 markers.
6916
6917 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
6918
6919 PR middle-end/80707
6920 * tree-cfg.c: Remove cfg edges of unreachable case statements.
6921
6922 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
6923
6924 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
6925 early expansion of vector divide builtins.
6926 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
6927 builtins identified as having unsigned arguments.
6928
6929 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
6930
6931 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
6932 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
6933 expansion of vector logical operations (and, andc, or, xor,
6934 nor, orc, nand).
6935
6936 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
6937
6938 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
6939 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
6940
6941 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
6942
6943 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
6944 early GIMPLE expansion of vector multiplies.
6945
6946 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6947
6948 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
6949 TARGET_HAVE_MOVT conditional.
6950 (movt splitter): Likewise.
6951
6952 2017-05-12 Richard Biener <rguenther@suse.de>
6953
6954 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
6955 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6956 Fold all stmts not inplace.
6957
6958 2017-05-12 Richard Biener <rguenther@suse.de>
6959
6960 PR tree-optimization/80713
6961 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
6962 inserted_exprs bit for not removed stmts.
6963
6964 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
6965
6966 PR middle-end/69921
6967 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
6968 parallelized" attribute for parallelized OpenACC kernels.
6969 * omp-offload.c (execute_oacc_device_lower): Use it.
6970
6971 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
6972 Set "oacc kernels" attribute.
6973 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
6974 parameter. Adjust all users.
6975 (oacc_fn_attrib_kernels_p): Remove function.
6976 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
6977 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
6978 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
6979 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
6980 assert "oacc kernels" attribute is set.
6981
6982 2017-05-11 Carl Love <cel@us.ibm.com>
6983
6984 * config/rs6000/rs6000-c: Add support for built-in functions
6985 vector unsigned char vec_popcnt (vector signed char)
6986 vector unsigned char vec_popcnt (vector unsigned char)
6987 vector unsigned short vec_popcnt (vector signed short)
6988 vector unsigned short vec_popcnt (vector unsigned short)
6989 vector unsigned int vec_popcnt (vector signed int)
6990 vector unsigned int vec_popcnt (vector unsigned int)
6991 vector unsigned long long vec_popcnt (vector signed long long)
6992 vector unsigned long long vec_popcnt (vector unsigned long long)
6993 vector signed long long vec_slo (vector signed long long,
6994 vector signed char)
6995 vector signed long long vec_slo (vector signed long long,
6996 vector unsigned char)
6997 vector unsigned long long vec_slo (vector unsigned long long,
6998 vector signed char)
6999 vector unsigned long long vec_slo (vector unsigned long long,
7000 vector unsigned char)
7001 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
7002 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
7003 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
7004 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
7005 * doc/extend.texi: Update the built-in documentation file for the
7006 new built-in functions.
7007
7008 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7009
7010 * attribs.h (sorted_attr_string): Move machine independent
7011 functions for target clone support from the i386 port to common
7012 code. Rename ix86_function_versions to common_function_versions.
7013 Rename make_name to make_unique_name.
7014 (common_function_versions): Likewise.
7015 (make_unique_name): Likewise.
7016 (make_dispatcher_decl): Likewise.
7017 (is_function_default_version): Likewise.
7018 * attribs.c (attr_strcmp): Likewise.
7019 (sorted_attr_string): Likewise.
7020 (common_function_versions): Likewise.
7021 (make_unique_name): Likewise.
7022 (make_dispatcher_decl): Likewise.
7023 (is_function_default_version): Likewise.
7024 * config/i386/i386.c (attr_strcmp): Likewise.
7025 (sorted_attr_string): Likewise.
7026 (ix86_function_versions): Likewise.
7027 (make_name): Likewise.
7028 (make_dispatcher_decl): Likewise.
7029 (is_function_default_version): Likewise.
7030 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
7031
7032 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7033
7034 PR target/80695
7035 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7036 Account for direct move costs for vec_construct of integer
7037 vectors.
7038
7039 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
7040
7041 PR target/80706
7042 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
7043 (UNSPEC_STX_ATOMIC): Ditto.
7044 (loaddi_via_sse): New insn.
7045 (storedi_via_sse): Ditto.
7046 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
7047 Update corresponding peephole2 patterns.
7048 (atomic_storedi_fpu): Ditto.
7049
7050 2017-05-11 Julia Koval <julia.koval@intel.com>
7051
7052 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
7053 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
7054 New intrinsics.
7055 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
7056 (__builtin_ia32_rsqrt14ss_mask): New builtins.
7057 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
7058
7059 2017-05-11 Nathan Sidwell <nathan@acm.org>
7060
7061 * graphite-poly.c: Include dumpfile.h.
7062
7063 * dumpfle.h (dump_function): Declare here ...
7064 * tree-dump.h (dump_function): ... not here.
7065 * dumpfile.c: #include tree-cfg.h.
7066 (dump_function): Move here from ...
7067 * tree-dump.c (dump_function): ... here.
7068 * gimplify.c: #include splay-tree.h, not tree-dump.h.
7069 * graphite-poly.c: Don't include tree-dump.h.
7070 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
7071 * print-tree.c: Likewise.
7072 * stor-layout.c: Likewise.
7073 * tree-nested.c: Likewise.
7074
7075 * dumpfile.c (dump_start): Use TDF_FLAGS.
7076 (dump_enable_all): Fix TDF_KIND check thinko.
7077
7078 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
7079
7080 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7081 array entries to represent two legal parameterizations of the
7082 overloaded __builtin_cmpb function, as represented by the
7083 P6_OV_BUILTIN_CMPB constant.
7084 (altivec_resolve_overloaded_builtin): Add special case handling
7085 for the __builtin_cmpb function, as represented by the
7086 P6_OV_BUILTIN_CMPB constant.
7087 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
7088 (BU_P6_64BIT_2): New macro.
7089 (BU_P6_OVERLOAD_2): New macro
7090 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
7091 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
7092 (CMPB): Add overload support to represent both 32-bit and 64-bit
7093 compare-bytes function.
7094 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7095 support for TARGET_CMPB.
7096 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
7097 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
7098 documentation of the __builtin_cmpb overloaded built-in function.
7099
7100 2017-05-11 Richard Biener <rguenther@suse.de>
7101
7102 PR tree-optimization/80705
7103 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
7104 bases are not vectorizable.
7105
7106 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7107
7108 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
7109 when counting register pressure.
7110
7111 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7112
7113 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
7114 (iv_ca_more_deps): Renamed to ...
7115 (iv_ca_compare_deps): ... this.
7116 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
7117
7118 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7119
7120 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
7121 to ...
7122 (determine_group_iv_costs): ... here.
7123 (find_inv_vars_cb): Record inv var if it's not recorded before.
7124
7125 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7126
7127 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
7128 (get_shiftadd_cost): Ditto.
7129
7130 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7131
7132 * tree-ssa-address.c: Include header file.
7133 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
7134 address.
7135 (add_to_parts): Refactor.
7136 (addr_to_parts): New parameter. Update use of move_hint_to_base.
7137 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
7138 in new order.
7139
7140 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7141
7142 PR tree-optimization/53090
7143 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
7144 COMP_IV_EXPR_2.
7145 (extract_cond_operands): Detect condition with IV on both sides
7146 and return COMP_IV_EXPR_2.
7147 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
7148 (rewrite_use_compare): Simplify by removing call to function
7149 extract_cond_operands.
7150
7151 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7152
7153 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
7154 (extract_cond_operands): Detect condition comparing against non-
7155 invariant bound and return appropriate enum value.
7156 (find_interesting_uses_cond): Update use of extract_cond_operands.
7157 Handle its return value accordingly.
7158 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
7159
7160 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7161
7162 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
7163 nonlinear iv_use computation in loop invariant sensitive way.
7164
7165 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7166
7167 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
7168 (find_iv_candidates): Call relate_compare_use_with_all_cands.
7169
7170 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7171
7172 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
7173 (dump_cand): Support iv_cand.inv_exprs.
7174 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
7175 for candidates.
7176 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
7177 iv_cand.inv_exprs.
7178
7179 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7180
7181 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
7182 from ...
7183 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
7184 as local function. Include necessary header files.
7185 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
7186
7187 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7188
7189 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
7190
7191 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7192
7193 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
7194 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
7195 RSHIFT_EXPR and BIT_NOT_EXPR.
7196
7197 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7198
7199 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
7200 (adjust_setup_cost): New parameter supporting round up adjustment.
7201 (struct address_cost_data): Delete.
7202 (force_expr_to_var_cost): Don't bound cost with spill_cost.
7203 (split_address_cost, ptr_difference_cost): Delete.
7204 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
7205 (struct ainc_cost_data): New struct.
7206 (get_address_cost_ainc): New function.
7207 (get_address_cost, get_computation_cost): Reimplement.
7208 (determine_group_iv_cost_address): Record inv_expr for all uses of
7209 a group.
7210 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
7211 (iv_ca_has_deps): Reimplemented to ...
7212 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
7213 than OLD_CP.
7214 (iv_ca_extend): Call iv_ca_more_deps.
7215
7216 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7217
7218 * tree-ssa-address.c (struct mem_address): Move to header file.
7219 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
7220 * tree-ssa-address.h (struct mem_address): Move from C file.
7221 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
7222
7223 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7224
7225 * tree-affine.h (aff_combination_type): New interface.
7226 (aff_combination_zero_p): Remove static.
7227 (aff_combination_const_p): New interface.
7228 (aff_combination_singleton_var_p): New interfaces.
7229
7230 2017-05-11 Richard Biener <rguenther@suse.de>
7231
7232 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7233 Skip unreachable blocks and destinations.
7234 (eliminate): Move stmt removal and fixup ...
7235 (fini_eliminate): ... here. Skip inserted exprs.
7236 (pass_pre::execute): Move fini_pre after fini_eliminate.
7237 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
7238 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
7239 PRE to get rid of dead code that has invalid SSA form and
7240 split critical edges again.
7241
7242 2017-05-11 Bin Cheng <bin.cheng@arm.com>
7243
7244 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
7245
7246 2017-05-11 Richard Biener <rguenther@suse.de>
7247
7248 * passes.c (execute_function_todo): Verify loops if they are
7249 said to be up-to-date.
7250 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
7251 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
7252
7253 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
7254
7255 PR target/80090
7256 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
7257 handle calling assemble_external ourself.
7258
7259 PR target/79027
7260 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
7261 modes with zero size. Enhance comment.
7262
7263 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7264
7265 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
7266 built-ins for vec_xl and vec_xst with short and char pointer
7267 arguments.
7268
7269 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
7270
7271 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
7272 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
7273 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
7274 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
7275 (_mm_maskz_min_round_ss): New intrinsics.
7276 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
7277 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
7278 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
7279 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
7280 (__builtin_ia32_minss_mask_round): New builtins.
7281 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7282 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7283 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
7284 Rename to ...
7285 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
7286 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
7287 Change to ...
7288 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
7289 ... this.
7290
7291 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
7292
7293 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
7294 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
7295 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
7296 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
7297 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
7298 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
7299 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
7300 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7301 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
7302 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
7303 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
7304 (__builtin_ia32_mulss_mask_round): New builtins.
7305 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
7306 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
7307 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
7308 Rename to ...
7309 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
7310 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
7311 Change to ...
7312 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
7313 ... this.
7314
7315 2017-05-10 Julia Koval <julia.koval@intel.com>
7316
7317 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
7318 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
7319 (_mm256_setr_m128i): New intrinsics.
7320
7321 2017-05-10 Julia Koval <julia.koval@intel.com>
7322
7323 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
7324 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
7325 (_mm_maskz_rcp14_ss): New intrinsics.
7326 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
7327 (__builtin_ia32_rcp14ss_mask): New builtins.
7328 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
7329
7330 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
7331
7332 PR tree-optimization/51513
7333 * tree-cfg.c (gimple_seq_unreachable_p): New function.
7334 (assert_unreachable_fallthru_edge_p): Use it.
7335 (group_case_labels_stmt): Likewise.
7336 * tree-cfg.h: Prototype it.
7337 * stmt.c: Include cfghooks.h and tree-cfg.h.
7338 (emit_case_dispatch_table) <gap_label>: New local variable.
7339 Use it to fill dispatch table gaps.
7340 Test for default_label before updating probabilities.
7341 (expand_case) <default_label>: Remove unneeded initialization.
7342 Test for unreachable default case statement and remove its edge.
7343 Set default_label accordingly.
7344 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
7345
7346 2017-05-10 Carl Love <cel@us.ibm.com>
7347
7348 * config/rs6000/rs6000-c: Add support for built-in functions
7349 vector signed char vec_neg (vector signed char)
7350 vector signed short int vec_neg (vector short int)
7351 vector signed int vec_neg (vector signed int)
7352 vector signed long long vec_neg (vector signed long long)
7353 vector float vec_neg (vector float)
7354 vector double vec_neg (vector double)
7355 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
7356 overload.
7357 * config/rs6000/altivec.h: Add define for vec_neg
7358 * doc/extend.texi: Update the built-in documentation for the
7359 new built-in functions.
7360
7361 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7362
7363 PR tree-optimization/77644
7364 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
7365
7366 2017-05-10 Nathan Sidwell <nathan@acm.org>
7367
7368 * dumpfile.h (TDI_lang_all): New.
7369 (TDF_KIND): New. Renumber others
7370 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
7371 than bits.
7372 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
7373 lang-all.
7374 (get_dump_file_name): Adjust suffix generation.
7375 (dump_enable_all): Use TDF_KIND.
7376 * doc/invoke.texi (-fdump-lang-all): Document.
7377
7378 * dumpfile.h: Tabify.
7379
7380 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
7381
7382 PR target/80671
7383 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
7384 Move member access before delete.
7385
7386 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
7387
7388 * tree-inline.c (expand_call_inline): Split block at stmt
7389 before the call.
7390
7391 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7392
7393 PR target/68163
7394 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
7395 are now unused after splitting mov{sf,sd}_hardfloat.
7396 (f32_lr2): Likewise.
7397 (f32_lm): Likewise.
7398 (f32_lm2): Likewise.
7399 (f32_li): Likewise.
7400 (f32_li2): Likewise.
7401 (f32_lv): Likewise.
7402 (f32_sr): Likewise.
7403 (f32_sr2): Likewise.
7404 (f32_sm): Likewise.
7405 (f32_sm2): Likewise.
7406 (f32_si): Likewise.
7407 (f32_si2): Likewise.
7408 (f32_sv): Likewise.
7409 (f32_dm): Likewise.
7410 (f32_vsx): Likewise.
7411 (f32_av): Likewise.
7412 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
7413 For movsf, order stores so the VSX stores occur before the GPR
7414 store which encourages the register allocator to use a traditional
7415 FPR instead of a GPR. For movsd, order the stores so that the GPR
7416 store comes before the VSX stores to allow the power6 to work.
7417 This is due to the power6 not having a 32-bit integer store
7418 instruction from a FPR.
7419 (movsf_hardfloat): Likewise.
7420 (movsd_hardfloat): Likewise.
7421
7422 2017-05-09 Martin Sebor <msebor@redhat.com>
7423
7424 PR translation/80280
7425 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
7426 added in r247778.
7427
7428 PR translation/80280
7429 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
7430 data member added in r247778.
7431 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
7432
7433 2017-05-09 Nathan Sidwell <nathan@acm.org>
7434
7435 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
7436
7437 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
7438 typedefs.
7439
7440 2017-05-09 Marek Polacek <polacek@redhat.com>
7441
7442 * doc/invoke.texi: Fix typo.
7443
7444 2017-05-09 Richard Biener <rguenther@suse.de>
7445
7446 * tree-vrp.c (vrp_val_is_max): Adjust comment.
7447 (vrp_val_is_min): Likewise.
7448 (set_value_range_to_value): Likewise.
7449 (set_value_range_to_nonnegative): Likewise.
7450 (gimple_assign_nonzero_p): Likewise.
7451 (gimple_stmt_nonzero_p): Likewise.
7452 (vrp_int_const_binop): Likewise. Remove unreachable case.
7453 (adjust_range_with_scev): Adjust comments.
7454 (compare_range_with_value): Likewise.
7455 (extract_range_from_phi_node): Likewise.
7456 (test_for_singularity): Likewise.
7457
7458 2017-05-09 Richard Biener <rguenther@suse.de>
7459
7460 * tree-vrp.c (get_single_symbol): Add assert that we don't
7461 get overflowed constants as invariant part.
7462 (compare_values_warnv): Add comment before the TREE_NO_WARNING
7463 checks. Use wi::cmp instead of recursing for integer constants.
7464 (compare_values): Just ignore whether we assumed undefined
7465 overflow instead of failing the compare.
7466 (extract_range_for_var_from_comparison_expr): Add comment before the
7467 TREE_NO_WARNING sets.
7468 (test_for_singularity): Likewise.
7469 (extract_range_from_comparison): Do not disable optimization
7470 when we assumed undefined overflow.
7471 (extract_range_basic): Remove init of unused var.
7472
7473 2017-05-09 Richard Biener <rguenther@suse.de>
7474
7475 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
7476 (extract_range_from_multiplicative_op_1): Adjust.
7477 (extract_range_from_binary_expr_1): Use int_const_binop.
7478
7479 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
7480
7481 PR target/80101
7482 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
7483 rs6000_store_data_bypass_p in seven define_bypass directives and
7484 in several comments.
7485 * config/rs6000/rs6000-protos.h: Add prototype for
7486 rs6000_store_data_bypass_p function.
7487 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
7488 function implements slightly different (rs6000-specific) semantics
7489 than store_data_bypass_p, returning false rather than aborting
7490 with assertion error when arguments do not satisfy the
7491 requirements of store data bypass.
7492 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
7493 rs6000_store_data_bypass_p.
7494
7495 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
7496
7497 * config/xtensa/xtensa-protos.h
7498 (xtensa_initial_elimination_offset): New declaration.
7499 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
7500 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
7501 macro definition, add case for FRAME_POINTER_REGNUM when
7502 FRAME_GROWS_DOWNWARD.
7503 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
7504 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
7505 xtensa_initial_elimination_offset.
7506
7507 2017-05-08 Nathan Sidwell <nathan@acm.org>
7508
7509 * doc/invoke.texi: Alphabetize -fdump options.
7510
7511 2017-05-08 Martin Sebor <msebor@redhat.com>
7512
7513 PR translation/80280
7514 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
7515
7516 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
7517
7518 * target.def (compute_frame_layout): New optional target hook.
7519 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
7520 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
7521 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
7522 target hook.
7523 * reload1.c (verify_initial_elim_offsets): Likewise.
7524 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
7525 (use_simple_return_p): Call arm_compute_frame_layout if needed.
7526 (arm_get_frame_offsets): Split up into this ...
7527 (arm_compute_frame_layout): ... and this function.
7528
7529 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
7530
7531 * config/aarch64/constraints.md (Usa): New constraint.
7532 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
7533
7534 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
7535
7536 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
7537 with_multilib_list after it has been checked.
7538
7539 2017-05-08 Richard Biener <rguenther@suse.de>
7540
7541 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
7542 (bitmap_set_subtract_values): Likewise.
7543
7544 2017-05-08 Richard Biener <rguenther@suse.de>
7545
7546 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
7547 (gimple_assign_nonzero): ... this and remove strict_overflow_p
7548 argument.
7549 (gimple_stmt_nonzero_warnv_p): Rename to ...
7550 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
7551 argument.
7552 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
7553 (extract_range_basic): Adjust, do not disable propagation on
7554 strict overflow sensitive simplification.
7555 (vrp_visit_cond_stmt): Likewise.
7556
7557 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
7558
7559 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
7560 body size unconditionally.
7561
7562 2017-05-07 Jeff Law <law@redhat.com>
7563
7564 Revert:
7565 2017-05-06 Jeff Law <law@redhat.com>
7566 PR tree-optimization/78496
7567 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7568 code.
7569
7570 PR tree-optimization/78496
7571 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7572 (simplify_stmt_using_ranges): Call it.
7573 (vrp_dom_walker::before_dom_children): Extract equivalences
7574 from an ASSERT_EXPR with an equality comparison against a
7575 constant.
7576
7577 2017-05-06 Jeff Law <law@redhat.com>
7578
7579 PR tree-optimization/78496
7580 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
7581 code.
7582
7583 PR tree-optimization/78496
7584 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
7585 (simplify_stmt_using_ranges): Call it.
7586 (vrp_dom_walker::before_dom_children): Extract equivalences
7587 from an ASSERT_EXPR with an equality comparison against a
7588 constant.
7589
7590 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
7591
7592 * lra-constraints.c (lra_copy_reg_equiv): New function.
7593 (split_reg): Use it to copy equivalence information from the
7594 original register to the spill register.
7595
7596 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
7597
7598 PR rtl-optimization/75964
7599 * simplify-rtx.c (simplify_const_relational_operation): Remove
7600 invalid handling of comparisons of integer ABS.
7601
7602 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
7603
7604 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
7605 initialize to zero.
7606 (init_regs): Remove declaration.
7607 (function_arg_advance_32): Initialize error_p as boolean variable.
7608
7609 2017-05-05 Nathan Sidwell <nathan@acm.org>
7610
7611 * store-motion.c (remove_reachable_equiv_notes): Reformat long
7612 lines. Use for (;;).
7613
7614 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7615
7616 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
7617 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
7618 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
7619 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
7620 VF=2 that require versioning.
7621
7622 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7623
7624 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
7625 int.
7626
7627 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7628
7629 * diagnostic.h (diagnostic_override_option_index): Convert from
7630 macro to inline function.
7631
7632 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7633
7634 * diagnostic.c (last_module_changed_p): New function.
7635 (set_last_module): New function.
7636 (diagnostic_report_current_module): Convert macro usage to
7637 the above functions.
7638 * diagnostic.h (diagnostic_context::last_module): Strengthen
7639 from const line_map * to const line_map_ordinary *.
7640 (diagnostic_last_module_changed): Delete macro.
7641 (diagnostic_set_last_module): Delete macro.
7642
7643 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7644
7645 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
7646 with diagnostic_report_diagnostic.
7647 (diagnostic_n_impl_richloc): Likewise.
7648 * diagnostic.h (report_diagnostic): Delete macro.
7649 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
7650 with diagnostic_report_diagnostic.
7651 * substring-locations.c (format_warning_va): Likewise.
7652
7653 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7654
7655 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
7656 save/restor of format_spec. Move option-printing code to...
7657 (print_option_information): ...this new function, and
7658 reimplement by simply printing to the pretty_printer,
7659 rather than appending to the format string.
7660
7661 2017-05-05 David Malcolm <dmalcolm@redhat.com>
7662
7663 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
7664 handling logic into...
7665 (update_effective_level_from_pragmas): ...this new function.
7666
7667 2017-05-04 Andrew Waterman <andrew@sifive.com>
7668
7669 * config/riscv/riscv.opt (mstrict-align): New option.
7670 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
7671 (SLOW_UNALIGNED_ACCESS): Define.
7672 (riscv_slow_unaligned_access): Declare.
7673 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
7674 field.
7675 (riscv_slow_unaligned_access): New variable.
7676 (rocket_tune_info): Set slow_unaligned_access to true.
7677 (optimize_size_tune_info): Set slow_unaligned_access to false.
7678 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
7679 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
7680 (riscv_option_override): Set riscv_slow_unaligned_access.
7681 * doc/invoke.texi: Add -mstrict-align to RISC-V.
7682
7683 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
7684
7685 * config/riscv/riscv.md: Unify indentation.
7686
7687 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7688
7689 PR target/79038
7690 PR target/79202
7691 PR target/79203
7692 * config/rs6000/rs6000.md (u code attribute): Add FIX and
7693 UNSIGNED_FIX.
7694 (extendsi<mode>2): Add support for doing sign extension via
7695 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
7696 don't have ISA 3.0 instructions.
7697 (extendsi<mode>2 splitter): Likewise.
7698 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
7699 generate the normal insns since SImode can now go in vector
7700 registers. Disallow the special UNSPECs needed for previous
7701 machines to hide SImode being used. Add new insns
7702 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
7703 (fix_trunc<mode>si2_stfiwx): Likewise.
7704 (fix_trunc<mode>si2_internal): Likewise.
7705 (fixuns_trunc<mode>si2): Likewise.
7706 (fixuns_trunc<mode>si2_stfiwx): Likewise.
7707 (fctiw<u>z_<mode>_smallint): Likewise.
7708 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
7709 of floating point to 32-bit integer from doing a direct move to
7710 the GPR registers to do a store.
7711 (fctiwz_<mode>): Break long line.
7712
7713 2017-05-05 Bin Cheng <bin.cheng@arm.com>
7714
7715 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
7716 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
7717 (addr_list, addr_offset_valid_p): New.
7718 (split_address_groups): Check offset validity with above function.
7719 (gt-tree-ssa-loop-ivopts.h): Include header file.
7720
7721 2017-05-05 Nathan Sidwell <nathan@acm.org>
7722
7723 * config.gcc (arm*-*-*): Add missing 'fi'.
7724
7725 2017-05-05 Steve Ellcey <sellcey@cavium.com>
7726
7727 * doc/invoke.texi (-fopt-info): Explicitly say order of options
7728 included in -fopt-info does not matter.
7729 * doc/optinfo.texi (-fopt-info): Fix description of default
7730 behavour. Explicitly say order of options included in -fopt-info
7731 does not matter.
7732
7733 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
7734
7735 * config.gcc: Allow combinations of aprofile and rmprofile values for
7736 --with-multilib-list.
7737 * config/arm/t-multilib: New file.
7738 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
7739 variables. Remove setting of ISA and floating-point ABI in
7740 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
7741 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
7742 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
7743 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
7744 CPU options.
7745 * config/arm/t-rmprofile: Likewise except for the matches changes.
7746 * doc/install.texi (--with-multilib-list): Document the combination of
7747 aprofile and rmprofile values and warn about pitfalls in doing that.
7748
7749 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
7750
7751 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
7752 (movdi_aarch64): Likewise.
7753
7754 2017-05-05 Jakub Jelinek <jakub@redhat.com>
7755
7756 PR tree-optimization/80632
7757 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
7758 field.
7759 (build_arrays): Initialize it for virtual phis.
7760 (fix_phi_nodes): Use it for virtual phis.
7761
7762 PR tree-optimization/80558
7763 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
7764 [x, y] op z into [x op, y op z] for op & or | if conditions
7765 are met.
7766
7767 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
7768 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7769
7770 PR target/71607
7771 * config/arm/arm.md (use_literal_pool): Remove.
7772 (64-bit immediate split): No longer takes cost into consideration
7773 if arm_disable_literal_pool is enabled.
7774 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
7775 used when arm_disable_literal_pool is enabled.
7776 (arm_max_const_double_inline_cost): Remove use of
7777 arm_disable_literal_pool.
7778 (push_minipool_fix): Add assert.
7779 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
7780 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
7781 (no_literal_pool_sf_immediate): New.
7782
7783 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7784
7785 PR tree-optimization/80613
7786 * tree-ssa-dce.c (propagate_necessity): Remove cases for
7787 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
7788
7789 2017-05-05 Richard Biener <rguenther@suse.de>
7790
7791 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
7792
7793 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
7794
7795 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
7796 of this flag from insn conditions due to removal from r247495.
7797
7798 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
7799
7800 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
7801 New function.
7802 (arm_early_store_addr_dep_ptr): Likewise.
7803 * config/arm/aarch-common-protos.h
7804 (arm_early_load_addr_dep_ptr): Add prototype.
7805 (arm_early_store_addr_dep_ptr): Likewise.
7806 * config/arm/cortex-a53.md: Add new bypasses.
7807
7808 2017-05-05 Jakub Jelinek <jakub@redhat.com>
7809
7810 * tree.c (next_type_uid): Change type to unsigned.
7811 (type_hash_canon): Decrement back next_type_uid if
7812 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
7813 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
7814 if possible.
7815
7816 2017-05-04 Martin Sebor <msebor@redhat.com>
7817
7818 * builtins.c: Fix a trivial typo in a comment.
7819
7820 PR middle-end/79234
7821 * builtins.c (check_sizes): Adjust to handle reading past the end.
7822 Avoid printing excessive upper bound of ranges. Use %E to print
7823 tree nodes instead of converting them to %wu.
7824 (expand_builtin_memchr): New function.
7825 (compute_dest_size): Rename...
7826 (compute_objsize): ...to this.
7827 (expand_builtin_memcpy): Adjust.
7828 (expand_builtin_mempcpy): Adjust.
7829 (expand_builtin_strcat): Adjust.
7830 (expand_builtin_strcpy): Adjust.
7831 (check_strncat_sizes): Adjust.
7832 (expand_builtin_strncat): Adjust.
7833 (expand_builtin_strncpy): Adjust and simplify.
7834 (expand_builtin_memset): Adjust.
7835 (expand_builtin_bzero): Adjust.
7836 (expand_builtin_memcmp): Adjust.
7837 (expand_builtin): Handle memcmp.
7838 (maybe_emit_chk_warning): Check strncat just once.
7839
7840 2017-05-04 Martin Sebor <msebor@redhat.com>
7841
7842 PR preprocessor/79214
7843 PR middle-end/79222
7844 PR middle-end/79223
7845 * builtins.c (check_sizes): Add inlining context and issue
7846 warnings even when -Wno-system-headers is set.
7847 (check_strncat_sizes): Same.
7848 (expand_builtin_strncat): Same.
7849 (expand_builtin_memmove): New function.
7850 (expand_builtin_stpncpy): Same.
7851 (expand_builtin): Handle memmove and stpncpy.
7852
7853 2017-05-04 Bin Cheng <bin.cheng@arm.com>
7854
7855 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
7856 which is not used any more.
7857
7858 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7859
7860 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
7861
7862 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7863
7864 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
7865 (cortexa53_tunings): Likewise.
7866 (cortexa57_tunings): Likewise.
7867 (cortexa72_tunings): Likewise.
7868 (cortexa73_tunings): Likewise.
7869
7870 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7871
7872 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
7873 Set loop alignment to 8.
7874
7875 2017-05-04 Martin Sebor <msebor@redhat.com>
7876
7877 PR translation/80280
7878 * builtins.c (expand_builtin_object_size): Add missing quoting to
7879 %D and like directives.
7880 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
7881 (hsa_type_for_tree_type): Same.
7882 (verify_function_arguments): Same.
7883 * symtab.c (symbol_table::change_decl_assembler_name): Same.
7884 * varasm.c (get_section): Same.
7885 (mark_weak): Same.
7886
7887 2017-05-04 Martin Sebor <msebor@redhat.com>
7888
7889 PR translation/80280
7890 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
7891
7892 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
7893
7894 * config/aarch64/aarch64.c (generic_addrcost_table):
7895 Change HI/TI mode setting.
7896
7897 2017-05-04 Martin Jambor <mjambor@suse.cz>
7898
7899 PR tree-optimization/80622
7900 * tree-sra.c (comes_initialized_p): New function.
7901 (build_accesses_from_assign): Only set write lazily when
7902 comes_initialized_p is false.
7903 (analyze_access_subtree): Use comes_initialized_p.
7904 (propagate_subaccesses_across_link): Assert !comes_initialized_p
7905 instead of testing for PARM_DECL.
7906
7907 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7908
7909 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
7910 constraint on operand 0 to allow more general addressing modes.
7911 Adjust output template.
7912 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
7913 New function.
7914 * config/aarch64/aarch64-protos.h
7915 (aarch64_address_valid_for_prefetch_p): Declare prototype.
7916 * config/aarch64/constraints.md (Dp): New address constraint.
7917 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
7918 predicate.
7919
7920 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
7921
7922 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
7923 update use of estimate_ipcp_clone_size_and_time.
7924 (estimate_local_effects): Update use of
7925 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
7926 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
7927 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
7928 Return nonspecialized time.
7929
7930 2017-05-04 Richard Biener <rguenther@suse.de>
7931
7932 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
7933 for the last VUSE which def dominates the PHI. Directly call
7934 maybe_skip_until.
7935 (get_continuation_for_phi_1): Remove.
7936
7937 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7938
7939 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
7940 to explain the use of truncating division. Cap the number of
7941 iterations to the maximum given by nb_iterations_upper_bound,
7942 if defined.
7943
7944 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7945
7946 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
7947 * configure: Regenerate.
7948 * config.in: Regenerate.
7949 * config/i386/driver-mingw32.c: new file.
7950 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
7951 * config.host: Link driver-mingw32.o on MinGW host.
7952 * doc/install.texi: Document new --enable-mingw-wildcard configure
7953 option.
7954
7955 2017-05-04 Marek Polacek <polacek@redhat.com>
7956
7957 PR tree-optimization/80612
7958 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
7959
7960 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7961 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
7962
7963 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
7964 (movt splitter): Likewise.
7965 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
7966 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
7967 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
7968 block for Thumb-1 with MOVT.
7969 (thumb2_legitimate_address_p): Move code block ...
7970 (can_avoid_literal_pool_for_label_p): ... into this new function.
7971 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
7972 literal pool.
7973 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
7974 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
7975 "M-profile targets with the MOVT instruction".
7976
7977 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
7978
7979 * config/arm/arm-builtins.c (arm_init_builtins): Rename
7980 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
7981 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
7982
7983 2017-05-04 Martin Liska <mliska@suse.cz>
7984
7985 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
7986 variable cond_code.
7987
7988 2017-05-04 Richard Biener <rguenther@suse.de>
7989
7990 * tree.c (array_at_struct_end_p): Handle arrays at struct
7991 end with flexarrays more conservatively. Refactor and treat
7992 arrays of arrays or aggregates more strict. Fix
7993 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
7994 * tree.c (array_at_struct_end_p): Adjust prototype.
7995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
7996 * gimple-fold.c (get_range_strlen): Likewise.
7997 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
7998
7999 2017-05-04 Richard Biener <rguenther@suse.de>
8000
8001 PR tree-optimization/31130
8002 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
8003 false.
8004 (supports_overflow_infinity): Likewise.
8005 (is_negative_overflow_infinity): Likewise.
8006 (is_positive_overflow_infinity): Likewise.
8007 (is_overflow_infinity): Likewise.
8008 (stmt_overflow_infinity): Likewise.
8009 (overflow_infinity_range_p): Likewise.
8010 (usable_range_p): Remove as always returning true.
8011 (make_overflow_infinity): Remove.
8012 (negative_overflow_infinity): Likewise.
8013 (positive_overflow_infinity): Likewise.
8014 (avoid_overflow_infinity): Likewise.
8015 (set_value_range): Adjust accordingly.
8016 (set_value_range_to_nonnegative): Likewise, remove now unused
8017 overflow_infinity arg.
8018 (vrp_operand_equal_p): Adjust.
8019 (update_value_range): Likewise.
8020 (range_int_cst_singleton_p): Likewise.
8021 (operand_less_p): Likewise.
8022 (compare_values_warnv): Likewise.
8023 (extract_range_for_var_from_comparison_expr): Likewise.
8024 (vrp_int_const_binop): Likewise.
8025 (zero_nonzero_bits_from_vr): Likewise.
8026 (extract_range_from_multiplicative_op_1): Likewise.
8027 (extract_range_from_binary_expr_1): Likewise.
8028 (extract_range_from_unary_expr): Likewise.
8029 (extract_range_from_comparison): Likewise.
8030 (extract_range_basic): Likewise.
8031 (adjust_range_with_scev): Likewise.
8032 (compare_ranges): Likewise.
8033 (compare_range_with_value): Likewise.
8034 (dump_value_range): Likewise.
8035 (test_for_singularity): Likewise, remove strict_overflow_p parameter
8036 never used.
8037 (simplify_cond_using_ranges): Adjust.
8038
8039 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
8040
8041 * brig-builtins.def: Added a builtin for class_f64.
8042 * builtin-types.def: Added a builtin type needed by class_f64.
8043
8044 2017-05-03 Jason Merrill <jason@redhat.com>
8045
8046 * timevar.def: Add TV_CONSTEXPR.
8047
8048 2017-05-03 David Malcolm <dmalcolm@redhat.com>
8049
8050 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
8051
8052 2017-05-03 Martin Jambor <mjambor@suse.cz>
8053
8054 * ipa-prop.c (ipa_update_after_lto_read): Removed.
8055 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
8056 * ipa-cp.c (ipcp_propagate_stage): Do not call
8057 ipa_update_after_lto_read.
8058 * ipa-inline.c (ipa_inline): Likewise.
8059
8060 2017-05-03 Martin Jambor <mjambor@suse.cz>
8061
8062 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
8063 tag. Added a default constructor and a destructor.
8064 (ipa_edge_args_sum_t): New class;
8065 (ipa_edge_args_sum): Declare.
8066 (ipa_edge_args_vector): Remove declaration.
8067 (IPA_EDGE_REF): Use ipa_edge_args_sum.
8068 (ipa_free_edge_args_substructures): Remove declaration.
8069 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
8070 (ipa_edge_args_info_available_for_edge_p): Likewise.
8071 * ipa-prop.c (ipa_edge_args_vector): Removed.
8072 (edge_removal_hook_holder): Likewise.
8073 (edge_duplication_hook_holder): Likewise.
8074 (ipa_edge_args_sum): New variable.
8075 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
8076 ipa_edge_args_vector.
8077 (ipa_free_edge_args_substructures): Likewise.
8078 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
8079 ipa_edge_args_vector.
8080 (ipa_edge_removal_hook): Turned into method
8081 ipa_edge_args_sum_t::remove.
8082 (ipa_edge_duplication_hook): Turned into method
8083 ipa_edge_args_sum_t::duplicate.
8084 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
8085 registering edge hooks.
8086 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
8087 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
8088 ipa_edge_args_sum instead of ipa_edge_args_vector.
8089 * ipa-profile.c (ipa_profile): Likewise.
8090
8091 2017-05-03 Martin Jambor <mjambor@suse.cz>
8092
8093 * symbol-summary.h (function_summary): New method exists.
8094 (function_summary::symtab_removal): Deallocate through release.
8095 (call_summary): New class.
8096 (gt_ggc_mx): New overload.
8097 (gt_pch_nx): Likewise.
8098 (gt_pch_nx): Likewise.
8099
8100 2017-05-03 Jeff Law <law@redhat.com>
8101
8102 PR tree-optimization/78496
8103 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
8104 from simplify_cond_using_ranges. Split off code to walk
8105 backwards through casts into ...
8106 (simplify_cond_using_ranges_2): New function.
8107 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
8108 (execute_vrp): After identifying jump threads, call
8109 simplify_cond_using_ranges_2.
8110
8111 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
8112
8113 PR bootstrap/80609
8114 * ipa-inline.h (inline_summary): Add ctor.
8115 (create_ggc): Do not use ggc_cleared_alloc.
8116
8117 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
8118 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8119
8120 * gcc.c (handle_braces): Support escaping in switch matching
8121 text.
8122 * doc/invoke.texi (Spec Files): Document it.
8123 Remove superfluous @code markup in items.
8124
8125 2017-05-03 David Malcolm <dmalcolm@redhat.com>
8126
8127 * diagnostic-show-locus.c (struct column_range): New struct.
8128 (get_affected_columns): New function.
8129 (get_printed_columns): New function.
8130 (struct correction): New struct.
8131 (correction::ensure_capacity): New function.
8132 (correction::ensure_terminated): New function.
8133 (struct line_corrections): New struct.
8134 (line_corrections::~line_corrections): New dtor.
8135 (line_corrections::add_hint): New function.
8136 (layout::print_trailing_fixits): Reimplement in terms of the new
8137 classes.
8138 (selftest::test_overlapped_fixit_printing): New function.
8139 (selftest::diagnostic_show_locus_c_tests): Call it.
8140
8141 2017-05-03 Nathan Sidwell <nathan@acm.org>
8142
8143 Canonicalize canonical type hashing
8144 * tree.h (type_hash_canon_hash): Declare.
8145 * tree.c (type_hash_list, attribute_hash_list): Move into
8146 type_hash_canon_hash.
8147 (build_type_attribute_qual_variant): Break out hash code calc into
8148 type_hash_canon_hash.
8149 (type_hash_canon_hash): New. Generic type hash computation.
8150 (build_range_type_1, build_array_type_1, build_function_type,
8151 build_method_type_directly, build_offset_type, build_complex_type,
8152 make_vector_type): Call it.
8153
8154 2017-05-03 Richard Biener <rguenther@suse.de>
8155
8156 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8157 When all DRs have unknown misaligned do not always peel
8158 when there is a store but apply the same costing model as if
8159 there were only loads.
8160
8161 2017-05-03 Richard Biener <rguenther@suse.de>
8162
8163 Revert
8164 PR tree-optimization/80492
8165 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
8166 compare_base_decls returning dont-know properly.
8167
8168 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8169
8170 * config/arm/iterators.md (CCSI): New mode iterator.
8171 (arch): New mode attribute.
8172 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
8173 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
8174 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
8175 code iterator for success result mode.
8176 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
8177 the corresponding new insn generators.
8178
8179 2017-05-03 Bin Cheng <bin.cheng@arm.com>
8180
8181 Revert r247509
8182 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8183 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
8184
8185 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8186
8187 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
8188 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
8189 (DDR_A): Wrap DDR argument in brackets.
8190 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
8191 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
8192 (DDR_REVERSED_P): Likewise.
8193
8194 2017-05-03 Jakub Jelinek <jakub@redhat.com>
8195
8196 PR tree-optimization/79472
8197 * tree-switch-conversion.c (struct switch_conv_info): Add
8198 contiguous_range and default_case_nonstandard fields.
8199 (collect_switch_conv_info): Compute contiguous_range and
8200 default_case_nonstandard fields, don't clear final_bb if
8201 contiguous_range and only the default case doesn't have the required
8202 structure.
8203 (check_all_empty_except_final): Set default_case_nonstandard instead
8204 of failing if contiguous_range and the default case doesn't have empty
8205 block.
8206 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
8207 and only the default case doesn't have the required constants. Skip
8208 virtual phis.
8209 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
8210 if default_case_nonstandard.
8211 (build_constructors): Build constant 1 just once. Assert that default
8212 values aren't inserted in between cases if contiguous_range. Skip
8213 virtual phis.
8214 (build_arrays): Skip virtual phis.
8215 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
8216 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
8217 Handle virtual phis.
8218 (gen_inbound_check): Handle default_case_nonstandard case.
8219 (process_switch): Adjust check_final_bb caller. Call
8220 gather_default_values with the first non-default case instead of
8221 default case if default_case_nonstandard.
8222
8223 2017-05-02 Nathan Sidwell <nathan@acm.org>
8224
8225 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
8226 check. Fix formatting.
8227
8228 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
8229
8230 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
8231 errors when comparing specialized and unspecialized times.
8232
8233 2017-05-02 David Malcolm <dmalcolm@redhat.com>
8234
8235 * diagnostic-show-locus.c
8236 (layout::should_print_annotation_line_p): Make private.
8237 (layout::print_annotation_line): Make private.
8238 (layout::annotation_line_showed_range_p): Make private.
8239 (layout::show_ruler): Make private.
8240 (layout::print_source_line): Make private. Pass in line and
8241 line_width, rather than calling location_get_source_line. Drop
8242 returned value.
8243 (layout::print_leading_fixits): New method.
8244 (layout::print_any_fixits): Rename to...
8245 (layout::print_trailing_fixits): ...this, and make private.
8246 Don't print newline fixits.
8247 (diagnostic_show_locus): Move logic for printing one row into...
8248 (layout::print_line): ...this new function. Move the
8249 location_get_source_line call and error-handling from
8250 print_source_line to here. Call print_leading_fixits, and rename
8251 print_any_fixits to print_trailing_fixits.
8252 (selftest::test_fixit_insert_containing_newline): Update now that
8253 newlines are partially supported.
8254 (selftest::test_fixit_insert_containing_newline_2): New test.
8255 (selftest::test_fixit_replace_containing_newline): Update comments.
8256 (selftest::diagnostic_show_locus_c_tests): Call the new test.
8257 * edit-context.c (class added_line): New class.
8258 (class edited_line): Describe newline handling in comment.
8259 (edited_line::actually_edited_p): New method.
8260 (edited_line::print_content): Delete redundant decl.
8261 (edited_line::m_predecessors): New field.
8262 (edited_file::print_content): Call edited_line::print_content.
8263 (edited_file::print_diff): Update to support newlines.
8264 (edited_file::print_diff_hunk): Likewise.
8265 (edited_file::print_run_of_changed_lines): New function.
8266 (edited_file::print_diff_line): Convert to...
8267 (print_diff_line): ...this.
8268 (edited_file::get_effective_line_count): New function.
8269 (edited_line::edited_line): Initialize new field m_predecessors.
8270 (edited_line::~edited_line): Clean up m_predecessors.
8271 (edited_line::apply_fixit): Handle newlines.
8272 (edited_line::get_effective_line_count): New function.
8273 (edited_line::print_content): New function.
8274 (edited_line::print_diff_lines): New function.
8275 (selftest::test_applying_fixits_insert_containing_newline): New
8276 test.
8277 (selftest::test_applying_fixits_replace_containing_newline): New
8278 test.
8279 (selftest::insert_line): New function.
8280 (selftest::test_applying_fixits_multiple_lines): Add example of
8281 inserting a line.
8282 (selftest::edit_context_c_tests): Call the new tests.
8283
8284 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8285
8286 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
8287 parameter cand. Update dump information.
8288 (get_computation_cost): Update uses.
8289
8290 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8291
8292 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
8293 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
8294 (get_computation_at, rewrite_use_address): Update use of
8295 get_computation_aff.
8296
8297 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8298
8299 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
8300 (get_computation): Delete.
8301 (get_computation_cost): Implement like get_computation_cost_at.
8302 Use get_computation_at.
8303 (get_computation_cost_at): Delete.
8304 (rewrite_use_nonlinear_expr): Use get_computation_at.
8305 (rewrite_use_compare, remove_unused_ivs): Ditto.
8306
8307 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8308
8309 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
8310
8311 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8312
8313 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
8314 (ivopts_global_cost_for_size): Rename parameter and update uses.
8315 (iv_ca_recount_cost): Update uses.
8316 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
8317 candidates seperately in n_invs and n_cands.
8318 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
8319
8320 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8321
8322 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
8323 (find_inv_vars_cb): New.
8324 (find_depends): Renamed to ...
8325 (find_inv_vars): ... this.
8326 (add_candidate_1, force_var_cost): Call find_inv_vars.
8327 (split_address_cost, determine_group_iv_cost_cond): Ditto.
8328
8329 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8330
8331 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
8332 inv_vars. Add inv_exprs.
8333 (struct iv_cand): Rename depends_on to inv_vars.
8334 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
8335 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
8336 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
8337 (dump_cand): Dump inv_vars.
8338 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
8339 (record_invariant, find_depends, add_candidate_1): Ditto.
8340 (set_group_iv_cost, force_var_cost): Ditto.
8341 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
8342 (get_computation_cost_at, get_computation_cost): Ditto.
8343 (determine_group_iv_cost_generic): Ditto.
8344 (determine_group_iv_cost_address): Ditto.
8345 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
8346 (determine_group_iv_costs): Ditto.
8347 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
8348 (iv_ca_set_remove_invariants): Renamed to ...
8349 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
8350 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
8351 (iv_ca_set_add_invariants): Renamed to ...
8352 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
8353 (iv_ca_set_cp): Use iv_ca_set_add_invs.
8354 (iv_ca_has_deps): Support inv_vars and inv_exprs.
8355 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
8356 (create_new_ivs): Remove useless dump.
8357
8358 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8359
8360 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
8361 iv_cand code.
8362 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
8363 (iv_ca_set_no_cp, create_new_iv): Ditto.
8364
8365 2017-05-02 Bin Cheng <bin.cheng@arm.com>
8366
8367 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
8368
8369 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
8370
8371 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
8372 function tree_check2.
8373
8374 2017-05-02 Martin Liska <mliska@suse.cz>
8375
8376 * doc/gcov.texi: Add missing preposition.
8377 * gcov.c (function_info::function_info): Properly fill up
8378 all member variables.
8379
8380 2017-05-02 Tamar Christina <tamar.christina@arm.com>
8381
8382 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
8383
8384 2017-05-02 Tamar Christina <tamar.christina@arm.com>
8385
8386 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
8387
8388 2017-05-02 Martin Liska <mliska@suse.cz>
8389
8390 PR lto/77954.
8391 * lto-streamer-in.c (lto_read_tree_1): Remove
8392 LTO_STREAMER_DEBUG.
8393 * lto-streamer.c (struct tree_hash_entry): Likewise.
8394 (struct tree_entry_hasher): Likewise.
8395 (tree_entry_hasher::hash): Likewise.
8396 (tree_entry_hasher::equal): Likewise.
8397 (lto_streamer_init): Likewise.
8398 (lto_orig_address_map): Likewise.
8399 (lto_orig_address_get): Likewise.
8400 (lto_orig_address_remove): Likewise.
8401 * lto-streamer.h: Likewise.
8402 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
8403 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
8404
8405 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
8406
8407 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
8408 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
8409 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
8410 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
8411 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
8412 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
8413 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
8414 (mm_maskz_sub_ss): New intrinsics.
8415 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8416 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
8417 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
8418 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
8419 (__builtin_ia32_subss_mask_round): New builtins.
8420 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
8421 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
8422 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
8423 Renamed to ...
8424 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
8425 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
8426 Changed to ...
8427 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
8428 ... this.
8429
8430 2017-05-02 Martin Jambor <mjambor@suse.cz>
8431
8432 PR tree-optimization/78687
8433 * tree-sra.c (access): New field parent.
8434 (process_subtree_disqualification): New function.
8435 (disqualify_candidate): Call it.
8436 (build_accesses_from_assign): Reset write flag if creating an
8437 assighnment link.
8438 (build_access_subtree): Fill in parent field and also prpagate
8439 down grp_write flag.
8440 (create_artificial_child_access): New parameter set_grp_write, set
8441 grp_write to its value.
8442 (propagate_subaccesses_across_link): Also propagate grp_write flag
8443 values.
8444 (propagate_all_subaccesses): Push the closest parent back to work
8445 queue if add_access_to_work_queue returned true.
8446
8447 2017-05-02 Richard Biener <rguenther@suse.de>
8448
8449 * common.opt (fstrict-overflow): Alias negative to fwrapv.
8450 * doc/invoke.texi (fstrict-overflow): Remove all traces of
8451 -fstrict-overflow documentation.
8452 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
8453 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
8454 flag_strict_overflow.
8455 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
8456 * lto-opts.c (lto_write_options): Do not stream it.
8457 * lto-wrapper.c (merge_and_complain): Do not handle it.
8458 * opts.c (default_options_table): Do not set -fstrict-overflow.
8459 (finish_options): Likewise do not clear it when sanitizing.
8460 * simplify-rtx.c (simplify_const_relational_operation): Do not
8461 test flag_strict_overflow.
8462
8463 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
8464
8465 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
8466 using enabled attribute.
8467 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
8468 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
8469 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
8470 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
8471 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
8472 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
8473 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
8474 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
8475 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
8476 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
8477
8478 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
8479
8480 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
8481
8482 2017-05-02 Richard Biener <rguenther@suse.de>
8483
8484 PR tree-optimization/80591
8485 Revert
8486 2017-04-10 Richard Biener <rguenther@suse.de>
8487
8488 * tree-ssa-structalias.c (find_func_aliases): Properly handle
8489 asm inputs.
8490
8491 2017-05-02 Richard Biener <rguenther@suse.de>
8492
8493 PR tree-optimization/80549
8494 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
8495 (cleanup_tree_cfg_noloop): Create forwarders to known loop
8496 headers if they do not have a preheader.
8497
8498 2017-05-02 Martin Liska <mliska@suse.cz>
8499
8500 PR other/80589
8501 * common.opt: Fix typo.
8502 * doc/invoke.texi: Likewise.
8503
8504 2017-05-01 Jan Beulich <jbeulich@suse.com>
8505
8506 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
8507 swapping, add (x,x,m,x,n) alternative.
8508
8509 2017-05-01 Nathan Sidwell <nathan@acm.org>
8510
8511 * calls.c (combine_pending_stack_adjustment_and_call): Remove
8512 unnecessary unadjusted_alignment check.
8513
8514 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
8515
8516 PR c++/80038
8517 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
8518 operations here.
8519 * gimplify.c (gimplify_cilk_detach): New function.
8520 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
8521 * tree-core.h: Document EXPR_CILK_SPAWN.
8522 * tree.h (EXPR_CILK_SPAWN): Define.
8523
8524 2017-05-01 David Malcolm <dmalcolm@redhat.com>
8525
8526 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
8527 to use new fixit_hint representation, using the "replace" logic.
8528 (get_line_span_for_fixit_hint): Likewise.
8529 (layout::print_any_fixits): Likewise.
8530 (selftest::test_one_liner_many_fixits): Rename to...
8531 (selftest::test_one_liner_many_fixits_1): ...this, and update
8532 comment and expected output to reflect that the multiple fix-it
8533 hints are now consolidated into one insertion.
8534 (selftest::test_one_liner_many_fixits_2): New test.
8535 (selftest::test_diagnostic_show_locus_one_liner): Update for
8536 above.
8537 (selftest::test_fixit_consolidation): Update for fix-it API
8538 change.
8539 * diagnostic.c (print_parseable_fixits): Likewise.
8540 * edit-context.c (edited_line::m_line_events): Convert from
8541 auto_vec <line_event *> to auto_vec <line_event>.
8542 (class line_event): Convert from abstract base class to a concrete
8543 class, taking over the role of replace_event.
8544 (class insert_event): Delete.
8545 (class replace_event): Rename to class line_event. Convert to
8546 half-open range.
8547 (edit_context::add_fixits): Reimplement.
8548 (edit_context::apply_insert): Delete.
8549 (edit_context::apply_replace): Rename to...
8550 (edit_context::apply_fixit): ...this. Convert to half-open range.
8551 (edited_file::apply_insert): Delete.
8552 (edited_file::apply_replace): Rename to...
8553 (edited_file::apply_fixit): ...this.
8554 (edited_line::~edited_line): Drop deletion of events.
8555 (edited_line::apply_insert): Delete.
8556 (edited_line::apply_replace): Rename to...
8557 (edited_line::apply_fixit): ...this. Convert to half-open range.
8558 Update for change to type of m_line_events.
8559 * edit-context.h (edit_context::apply_insert): Delete.
8560 (edit_context::apply_replace): Rename to...
8561 (edit_context::apply_fixit): ...this.
8562
8563 2017-05-01 Martin Sebor <msebor@redhat.com>
8564
8565 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
8566 known.
8567
8568 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
8569
8570 PR target/68491
8571 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
8572 __get_cpuid_max returns 0.
8573 (__get_cpuid_count): Ditto.
8574
8575 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
8576
8577 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
8578 replacement expression is another instance of one of its arguments.
8579
8580 2017-05-01 Jakub Jelinek <jakub@redhat.com>
8581
8582 PR target/79430
8583 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
8584 check for stack push/pop autoinc.
8585 * config/i386/i386.c (ix86_agi_dependent): Return false
8586 if the only reason why modified_in_p returned true is that
8587 addr is SP based and set_insn is a push or pop.
8588
8589 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
8590
8591 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
8592 overflow check.
8593
8594 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
8595
8596 PR ipa/79224
8597 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
8598 (account_size_time): Use two predicates - exec_pred and
8599 nonconst_pred_ptr.
8600 (evaluate_conditions_for_known_args): Compute both clause and
8601 nonspec_clause.
8602 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
8603 (inline_summary_t::duplicate): Update.
8604 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
8605 separately.
8606 (compute_inline_parameters): Likewise.
8607 (estimate_edge_size_and_time): Update caluclation of time.
8608 (estimate_node_size_and_time): Compute both time and nonspecialized
8609 time.
8610 (estimate_ipcp_clone_size_and_time): Update.
8611 (inline_merge_summary): Update.
8612 (do_estimate_edge_time): Update.
8613 (do_estimate_edge_size): Update.
8614 (do_estimate_edge_hints): Update.
8615 (inline_read_section, inline_write_summary): Stream both new predicates.
8616 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
8617 as argument.
8618 (compute_inlined_call_time): Cleanup.
8619 (big_speedup_p): Update.
8620 (edge_badness): Update.
8621 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
8622 (size_time_entry): Replace predicate by exec_predicate and
8623 nonconst_predicate.
8624 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
8625 (estimate_edge_time): Return also nonspec_time.
8626 (reset_edge_growth_cache): Update.
8627
8628 2017-04-29 Jakub Jelinek <jakub@redhat.com>
8629
8630 PR rtl-optimization/80491
8631 * ifcvt.c (noce_process_if_block): When looking for x setter
8632 with missing else_bb, don't check only the insn right before
8633 cond_earliest, but look for the last insn that x is modified in
8634 within the same bb.
8635
8636 PR rtl-optimization/80491
8637 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
8638
8639 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
8640
8641 PR tree-optimization/80487
8642 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
8643
8644 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8645
8646 PR tree-optimization/79697
8647 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
8648 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
8649 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
8650 BUILT_IN_STRNDUP.
8651 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
8652 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
8653
8654 2017-04-28 Martin Sebor <msebor@redhat.com>
8655
8656 PR tree-optimization/80523
8657 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
8658 (init_target_to_host_charmap, target_to_host, target_strtol10): New
8659 functions.
8660 (maybe_warn, format_directive, parse_directive): Use new functions.
8661 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
8662
8663 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
8664
8665 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
8666
8667 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8668
8669 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
8670 target_header_dir): Set correctly.
8671 * configure: Regenerated.
8672 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
8673 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
8674 instead of SYSTEM_HEADER_DIR.
8675
8676 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
8677
8678 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
8679 (estimate_local_effects): Likewise.
8680 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
8681 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
8682 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
8683 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
8684 do_estimate_edge_time, estimate_edge_time): Likewise.
8685 * ipa-inline-analysis.c (estimate_node_size_and_time,
8686 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
8687 (estimate_time_after_inlining): Remove.
8688
8689 2017-04-28 Martin Liska <mliska@suse.cz>
8690
8691 * doc/gcov.texi: Enhance documentation of gcov.
8692
8693 2017-04-28 Martin Liska <mliska@suse.cz>
8694
8695 * doc/gcov.texi: Sort options in alphabetic order.
8696 * doc/gcov-dump.texi: Likewise.
8697 * doc/gcov-tool.texi: Likewise.
8698 * gcov.c (print_usage): Likewise.
8699 * gcov-dump.c (print_usage): Likewise.
8700 * gcov-tool.c (print_merge_usage_message): Likewise.
8701 (print_rewrite_usage_message): Likewise.
8702 (print_overlap_usage_message): Likewise.
8703
8704 2017-04-28 Martin Liska <mliska@suse.cz>
8705
8706 PR gcov-profile/53915
8707 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
8708
8709 2017-04-28 Martin Liska <mliska@suse.cz>
8710
8711 PR gcov-profile/79891
8712 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
8713 is marked by compiler as living on a line.
8714 (get_cycles_count): Remove usage of the union.
8715 (output_intermediate_file): Likewise.
8716 (find_source): Fix GNU coding style.
8717 (accumulate_line_counts): Remove old non-all block mode.
8718 (output_lines): Remove usage of the union.
8719 * profile.c (output_location): Include all BBs, even if
8720 belonging to a same line (and file) as a previous BB.
8721
8722 2017-04-28 Martin Liska <mliska@suse.cz>
8723
8724 * gcov.c (process_args): Handle new argument 'w'.
8725 (read_graph_file): Assign ID to BBs.
8726 (output_branch_count): Display BB # if verbose flag is set.
8727 (output_lines): Likewise for arcs.
8728 (print_usage): Add '--verbose' option help.
8729 * doc/gcov.texi: Document --verbose (-w) option.
8730
8731 2017-04-28 Martin Liska <mliska@suse.cz>
8732
8733 * gcov.c (struct block_location_info): New struct.
8734 (process_file): Fill up the new structure.
8735 (read_graph_file): Replace usage of encoding by the newly added
8736 struct.
8737 (add_line_counts): Likewise.
8738 (accumulate_line_counts): Remove usage of the union.
8739 (function_info::function_info): New function.
8740 (function_info::~function_info): Likewise.
8741 (process_file): Call delete instead of release_function.
8742 (release_function): Release the function.
8743 (release_structures): Call delete instead of release_function.
8744 (solve_flow_graph): Replace usage of num_blocks.
8745 (find_exception_blocks): Likewise.
8746 (output_lines): Fix GNU coding style.
8747
8748 2017-04-28 Martin Liska <mliska@suse.cz>
8749
8750 PR driver/56469
8751 * coverage.c (coverage_remove_note_file): New function.
8752 * coverage.h: Declare the function.
8753 * toplev.c (finalize): Clean if an error has been seen.
8754
8755 2017-04-28 Martin Liska <mliska@suse.cz>
8756
8757 PR gcov-profile/80031
8758 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
8759 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
8760 * gcov.c (read_graph_file): Read just number of blocks.
8761 * profile.c (branch_prob): Do not stream 0 flags per a basic
8762 block.
8763
8764 2017-04-28 Martin Liska <mliska@suse.cz>
8765
8766 * gcov-dump.c (tag_*): Add new argument to declarations.
8767 (dump_gcov_file): Likewise.
8768 (tag_blocks): Add and use new argument depth.
8769 (tag_arcs): Likewise.
8770 (tag_lines): Likewise.
8771 (tag_counters): Likewise.
8772 (tag_summary): Likewise.
8773 (dump_working_sets): Use depth to do a proper indentation.
8774
8775 2017-04-28 Jakub Jelinek <jakub@redhat.com>
8776
8777 PR bootstrap/80531
8778 * cgraph.h (symtab_node::debug_symtab): No longer inline.
8779 * symtab.c (symtab_node::debug_symtab): Move definition here.
8780
8781 2017-04-28 Richard Biener <rguenther@suse.de>
8782
8783 * lto-streamer.h (LTO_major_version): Bump to 7.
8784
8785 2017-04-28 Richard Biener <rguenther@suse.de>
8786
8787 * tree-vrp.c (assert_info): New struct.
8788 (add_assert_info): New helper.
8789 (register_edge_assert_for_2): Refactor to add asserts to a vector
8790 of assert_info.
8791 (register_edge_assert_for_1): Likewise.
8792 (register_edge_assert_for): Likewise.
8793 (finish_register_edge_assert_for): New helper actually registering
8794 asserts where live on edge.
8795 (find_conditional_asserts): Adjust.
8796 (find_switch_asserts): Likewise.
8797 (evrp_dom_walker::try_find_new_range): Generalize.
8798 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
8799
8800 2017-04-27 Marek Polacek <polacek@redhat.com>
8801
8802 PR sanitizer/80349
8803 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
8804 arg10 and arg11 to itype.
8805
8806 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
8807
8808 * doc/extend.texi (Object Size Checking): Improve grammar.
8809
8810 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
8811
8812 PR target/80530
8813 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
8814 that the logic for permitting reciprocal estimates matches that
8815 in use_rsqrt_p.
8816
8817 2017-04-27 Jakub Jelinek <jakub@redhat.com>
8818
8819 PR c++/80534
8820 * tree.c (type_cache_hasher::equal): Only compare
8821 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
8822 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
8823 non-aggregate element types.
8824 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
8825 about the flag on ARRAY_TYPEs in the comment, formatting fix.
8826
8827 2017-04-27 Richard Biener <rguenther@suse.de>
8828
8829 PR middle-end/80533
8830 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
8831 stripping ARRAY_REFs from MEM_EXPR make sure we're not
8832 keeping a reference to a trailing array.
8833
8834 2017-04-27 Richard Biener <rguenther@suse.de>
8835
8836 PR middle-end/80539
8837 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
8838 being in loop-closed SSA form conservatively.
8839 (chrec_fold_multiply_poly_poly): Likewise.
8840
8841 2017-04-27 Tamar Christina <tamar.christina@arm.com>
8842
8843 PR middle-end/79665
8844 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
8845 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
8846
8847 2017-04-27 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR target/77728
8850 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
8851 (aarch64_function_arg_alignment): Return unsigned int again, but still
8852 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
8853 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
8854 Don't emit -Wpsabi note.
8855 (aarch64_function_arg_boundary): Likewise.
8856 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
8857 caller.
8858
8859 2017-04-26 Nathan Sidwell <nathan@acm.org>
8860
8861 * tree.h (crc32_unsigned_n): Declare.
8862 (crc32_unsigned, crc32_unsigned): Make inline.
8863 * tree.c (crc32_unsigned_bits): Replace with ...
8864 (crc32_unsigned_n): ... this.
8865 (crc32_unsigned, crc32_byte): Remove.
8866 (crc32_string): Remove unnecessary braces.
8867
8868 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
8869
8870 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
8871 * ipa-inline-analysis.c (MAX_TIME): Remove.
8872 (account_size_time): Use sreal for time.
8873 (dump_inline_summary): Update.
8874 (estimate_function_body_sizes): Update.
8875 (estimate_edge_size_and_time): Update.
8876 (estimate_calls_size_and_time): Update.
8877 (estimate_node_size_and_time): Update.
8878 (inline_merge_summary): Update.
8879 (inline_update_overall_summary): Update.
8880 (estimate_time_after_inlining): Update.
8881 (inline_read_section): Update.
8882 (inline_write_summary): Update.
8883 * ipa-inline.c (compute_uninlined_call_time): Update.
8884 (compute_inlined_call_time): Update.
8885 (recursive_inlining): Update.
8886 (inline_small_functions): Update.
8887 (dump_overall_stats): Update.
8888 * ipa-inline.h: Include sreal.h.
8889 (size_time_entry): Turn time to sreal.
8890 (inline_summary): Turn self_time nad time to sreal.
8891
8892 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
8893
8894 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
8895 data-streamer.h
8896 (sreal::stream_out, sreal::stream_in): New.
8897 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
8898
8899 2017-04-25 Jakub Jelinek <jakub@redhat.com>
8900
8901 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
8902 environment.
8903
8904 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
8905
8906 PR target/70799
8907 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
8908 Handle ASHIFTRT.
8909 (dimode_scalar_chain::compute_convert_gain): Ditto.
8910 (dimode_scalar_chain::make_vector_copies): Ditto.
8911 (dimode_scalar_chain::convert_reg): Ditto.
8912 (dimode_scalar_chain::convert_insn): Ditto.
8913 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
8914 (VI248_AVX512BW_1): New mode iterator.
8915 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
8916 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
8917 mode iterator.
8918
8919 2017-04-25 Martin Sebor <msebor@redhat.com>
8920
8921 PR tree-optimization/80497
8922 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
8923 constants are representable in HOST_WIDE_INT.
8924 (parse_directive): Ditto.
8925
8926 2017-04-25 Martin Sebor <msebor@redhat.com>
8927
8928 PR bootstrap/80486
8929 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
8930 (new_zero_array): Adjust signature.
8931 (dom_info::dom_init): Used unsigned rather that size_t.
8932 (dom_info::dom_info): Same.
8933
8934 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8935 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR target/77728
8938 * config/arm/arm.c: Include gimple.h.
8939 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
8940 returns negative, increment ncrn only if it returned positive.
8941 (arm_needs_doubleword_align): Return int instead of bool,
8942 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
8943 members, but if there is any such non-FIELD_DECL
8944 > PARM_BOUNDARY aligned decl, return -1 instead of false.
8945 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
8946 returns negative, increment nregs only if it returned positive.
8947 (arm_setup_incoming_varargs): Likewise.
8948 (arm_function_arg_boundary): Emit -Wpsabi note if
8949 arm_needs_doubleword_align returns negative, return
8950 DOUBLEWORD_ALIGNMENT only if it returned positive.
8951
8952 2017-04-25 Marek Polacek <polacek@redhat.com>
8953
8954 PR sanitizer/80349
8955 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
8956 first argument to type.
8957
8958 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8959
8960 PR target/80482
8961 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
8962 type checks to test for compatibility instead of equality.
8963
8964 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8965 Jakub Jelinek <jakub@redhat.com>
8966
8967 PR target/77728
8968 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
8969 type.
8970 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
8971 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
8972 the alignment computation, but return their maximum in warn_alignment.
8973 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
8974 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
8975 is smaller.
8976 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
8977 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
8978 caller.
8979
8980 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
8981
8982 * config/arc/simdext.md (dmpyh): Fix typo.
8983
8984 2017-04-25 Richard Biener <rguenther@suse.de>
8985
8986 PR tree-optimization/80492
8987 * alias.c (compare_base_decls): Handle registers with asm
8988 specification conservatively.
8989 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
8990 compare_base_decls returning dont-know properly.
8991
8992 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
8993
8994 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
8995 (legitimate_offset_address_p): New function.
8996 (arc_legitimate_address_p): Use above function.
8997
8998 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
8999
9000 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
9001
9002 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9003
9004 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
9005 ACCH registers whenever they are available.
9006
9007 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9008
9009 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
9010 double regs fix when not used.
9011
9012 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9013
9014 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
9015 core registers.
9016 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
9017 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
9018
9019 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9020
9021 * config/arc/arc.c (arc_output_addsi): Check for h-register class
9022 when emitting short ADD instructions.
9023
9024 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
9025
9026 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
9027 constraint.
9028 (cmpsi_cc_c_insn): Likewise.
9029 (cbranchsi4_scratch): Compute proper instruction length using
9030 compact_hreg_operand.
9031 * config/arc/predicates.md (compact_hreg_operand): New predicate.
9032
9033 2017-04-25 Richard Biener <rguenther@suse.de>
9034
9035 PR middle-end/80509
9036 * passes.c (pass_manager::pass_manager): Initialize
9037 m_name_to_pass_map.
9038
9039 2017-04-25 Richard Biener <rguenther@suse.de>
9040
9041 PR tree-optimization/79201
9042 * tree-ssa-sink.c (statement_sink_location): Handle calls.
9043
9044 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9045
9046 PR target/80464
9047 * config/s390/vector.md: Split MEM->GPR vector moves for
9048 non-s_operand addresses.
9049
9050 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9051
9052 PR target/79895
9053 * config/s390/predicates.md (reload_const_wide_int_operand): New
9054 predicate.
9055 * config/s390/s390.md ("movti"): Remove d/P alternative.
9056 ("movti_bigconst"): New pattern definition.
9057
9058 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9059
9060 PR target/80080
9061 * s390-protos.h (s390_expand_cs_hqi): Removed.
9062 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
9063 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
9064 modes as well as CCZ1mode and CCZmode.
9065 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
9066 signature of s390_emit_compare_and_swap.
9067 (s390_expand_cs_hqi): Likewise, make static.
9068 (s390_expand_cs_tdsi): Generate an explicit compare before trying
9069 compare-and-swap, in some cases.
9070 (s390_expand_cs): Wrapper function.
9071 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
9072 atomic_exchange.
9073 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
9074 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
9075 patterns for small and large integers. Forbid symref memory operands.
9076 Move expander to s390.c. Require cc register.
9077 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
9078 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
9079 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
9080 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
9081 symref memory operands. Remove CC mode and call s390_match_ccmode
9082 instead.
9083 ("atomic_exchange<mode>"): Allow and implement all integer modes.
9084
9085 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9086
9087 * config/s390/s390.md (define_peephole2): New peephole to help
9088 combining the load-and-test pattern with volatile memory.
9089
9090 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
9091
9092 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
9093 with CCZmode for TARGET_Z196.
9094
9095 2017-04-25 Jakub Jelinek <jakub@redhat.com>
9096
9097 PR rtl-optimization/80501
9098 * combine.c (make_compound_operation_int): Set subreg_code to SET
9099 even for AND with mask of the sign bit of mode.
9100
9101 PR rtl-optimization/80500
9102 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
9103 sum's initial value.
9104
9105 2017-04-25 Julian Brown <julian@codesourcery.com>
9106 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9107
9108 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
9109
9110 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
9111
9112 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
9113
9114 2017-04-25 Julian Brown <julian@codesourcery.com>
9115 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9116
9117 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
9118 (thunderx2t99_sha): New Reservation.
9119
9120 2017-04-25 Julian Brown <julian@codesourcery.com>
9121 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
9122
9123 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
9124 type for 1-element load.
9125
9126 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
9127
9128 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
9129
9130 2017-04-24 Martin Jambor <mjambor@suse.cz>
9131
9132 PR tree-optimization/80293
9133 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
9134 char arrays not totally scalarizable if it is false.
9135 (analyze_all_variable_accesses): Pass correct value in the new
9136 parameter. Add a statistics counter.
9137
9138 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
9139
9140 PR middle-end/79931
9141 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
9142
9143 2017-04-24 Richard Biener <rguenther@suse.de>
9144
9145 PR tree-optimization/80494
9146 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
9147 out for complex types.
9148
9149 2017-04-24 Richard Biener <rguenther@suse.de>
9150
9151 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
9152 * tree-ssa-sccvn.c (print_scc): Print SCC size.
9153 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
9154 (DFS): Adjust and never fail.
9155 (sccvn_dom_walker::fail): Remove.
9156 (sccvn_dom_walker::before_dom_children): Adjust.
9157 (run_scc_vn): Likewise and never fail.
9158 * tree-ssa-pre.c (pass_pre::execute): Adjust.
9159 (pass_fre::execute): Likewise.
9160
9161 2017-04-24 Richard Biener <rguenther@suse.de>
9162
9163 PR tree-optimization/79725
9164 * tree-ssa-sink.c (statement_sink_location): Return whether
9165 failure reason was zero uses. Move that check later.
9166 (sink_code_in_bb): Deal with zero uses by removing the stmt
9167 if possible.
9168
9169 2017-04-24 Richard Biener <rguenther@suse.de>
9170
9171 PR c++/2972
9172 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
9173 pointer-based references.
9174
9175 2017-04-24 Richard Biener <rguenther@suse.de>
9176
9177 PR bootstrap/79814
9178 * pass_manager.h (pass_manager::operator new): Remove.
9179 (pass_manager::operator delete): Likewise.
9180 * passes.c (pass_manager::operator new): Remove.
9181 (pass_manager::operator delete): Likewise.
9182 (pass_manager::pass_manager): Zero individual pass members.
9183
9184 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
9185
9186 PR target/70799
9187 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
9188 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
9189 Check "XEXP (src, 1)" operand here.
9190 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
9191 Check "XEXP (src, 1)" operand here.
9192 (dimode_scalar_chain::make_vector_copies): Detect count register
9193 of a shift instruction. Zero extend count register from QImode
9194 to DImode to satisfy vector shift pattern count operand predicate.
9195 Substitute vector shift count operand with a DImode copy.
9196 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
9197 vector register.
9198
9199 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
9200
9201 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
9202 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
9203 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
9204 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
9205 (UNSPEC_NOREX_MEM): Remove definition.
9206
9207 2017-04-21 Richard Biener <rguenther@suse.de>
9208
9209 PR tree-optimization/79547
9210 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9211 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
9212 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
9213 without any constraints.
9214
9215 2017-04-21 Richard Biener <rguenther@suse.de>
9216
9217 PR tree-optimization/78847
9218 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
9219
9220 2017-04-21 Richard Biener <rguenther@suse.de>
9221
9222 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
9223 (build_distinct_type_copy): Likewise.
9224 (build_variant_type_copy): Likewise.
9225 * tree.c (build_qualified_type): Pass down mem-stat info.
9226 (build_distinct_type_copy): Likewise.
9227 (build_variant_type_copy): Likewise.
9228
9229 2017-04-21 Richard Biener <rguenther@suse.de>
9230
9231 PR tree-optimization/80237
9232 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
9233 defaulted to NULL.
9234 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
9235 for a simplified result.
9236
9237 2016-04-21 Richard Biener <rguenther@suse.de>
9238
9239 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
9240 sth as strict as a simple_iv but a chrec without symbols and an
9241 operand defined in the loop we are peeling (and not some subloop).
9242 (propagate_constants_for_unrolling): Propagate all constants.
9243
9244 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
9245
9246 PR target/79804
9247 * config/i386/i386.c (print_reg): Remove assert for disalowed
9248 regno values, call output_operand_lossage instead.
9249
9250 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
9251
9252 PR target/78090
9253 * config/i386/constraints.md (Yc): New register constraint.
9254 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
9255 Use Yc constraint for alternative 2 of operand 0. Remove
9256 preferred_for_speed attribute.
9257
9258 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9259
9260 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
9261 lastprivate clauses in SIMT case.
9262
9263 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
9264
9265 * doc/invoke.texi (-Wextra-semi): Document new warning option.
9266
9267 2017-04-20 Richard Biener <rguenther@suse.de>
9268
9269 PR tree-optimization/57796
9270 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
9271 as N scalar stores.
9272 (vect_model_load_cost): Cost gathers as N scalar loads.
9273
9274 2017-04-20 Richard Biener <rguenther@suse.de>
9275
9276 * ggc-page.c (ggc_allocated_p): Rename to ...
9277 (safe_lookup_page_table_entry): ... this and return the lookup
9278 result.
9279 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
9280
9281 2017-04-20 Richard Biener <rguenther@suse.de>
9282
9283 PR tree-optimization/80453
9284 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
9285 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
9286 from the conditions.
9287 (vn_phi_eq): Pass them down.
9288 (vn_phi_lookup): Record them.
9289 (vn_phi_insert): Likewise.
9290
9291 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
9292
9293 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
9294 uninitialized variable warning to avoid buffer overrun.
9295
9296 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
9297
9298 PR other/71250
9299 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
9300 is suppressed for '{ 0 }' in C.
9301
9302 2017-04-20 Jakub Jelinek <jakub@redhat.com>
9303
9304 * BASE-VER: Set to 8.0.0.
9305
9306 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
9307
9308 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
9309 priority .init_array and .fini_array section with SECTION_NOTYPE
9310 flag.
9311
9312 2017-04-20 Jakub Jelinek <jakub@redhat.com>
9313
9314 PR middle-end/80423
9315 * tree.h (build_array_type): Add typeless_storage default argument.
9316 * tree.c (type_cache_hasher::equal): Also compare
9317 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
9318 (build_array_type): Add typeless_storage argument, set
9319 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
9320 recursive call.
9321 (build_nonshared_array_type): Adjust build_array_type_1 caller.
9322 (build_array_type): Likewise. Add typeless_storage argument.
9323
9324 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
9325 Jakub Jelinek <jakub@redhat.com>
9326
9327 PR tree-optimization/80426
9328 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
9329 operation on symbolic operands, also compute the overflow for the
9330 invariant part when the operation degenerates into a negation.
9331
9332 2017-04-19 Jakub Jelinek <jakub@redhat.com>
9333
9334 PR debug/80461
9335 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
9336 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
9337
9338 PR debug/80436
9339 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
9340
9341 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
9342
9343 PR target/80462
9344 * config/avr/avr.c (tree.h): Include it.
9345 (cgraph.h): Include it.
9346 (avr_encode_section_info): Don't warn for uninitialized progmem
9347 variable if it's just an alias.
9348
9349 2017-04-19 Richard Biener <rguenther@suse.de>
9350
9351 PR ipa/65972
9352 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
9353 when needed by AutoPGO.
9354
9355 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
9356
9357 PR lto/50345
9358 * doc/lto.texi: Remove an extra 'that'.
9359
9360 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
9361
9362 PR rtl-optimization/80429
9363 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
9364 are only used in debug insns.
9365
9366 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
9367 Vladimir Makarov <vmakarov@redhat.com>
9368
9369 * config/sparc/predicates.md (input_operand): Add comment. Return
9370 true for any memory operand when LRA is in progress.
9371 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
9372
9373 2017-04-18 Jeff Law <law@redhat.com>
9374
9375 PR target/74563
9376 * mips.md ({return,simple_return}_internal): Do not overwrite
9377 operands[0].
9378
9379 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9380
9381 PR tree-optimization/80443
9382 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
9383 instead of adding 1, subtract -1 and similarly instead of subtracting
9384 1 add -1.
9385
9386 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
9387
9388 PR rtl-optimization/80357
9389 * haifa-sched.c (tmp_bitmap): New variable.
9390 (model_recompute): Handle duplicate use records.
9391 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
9392 (free_global_sched_pressure_data): Free it.
9393
9394 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9395
9396 Revert:
9397 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9398 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
9399 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
9400 instead of SYSTEM_HEADER_DIR.
9401
9402 2017-04-18 Jeff Law <law@redhat.com>
9403
9404 PR middle-end/80422
9405 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
9406 predecessors after walking up the insn chain.
9407
9408 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9409
9410 PR debug/80263
9411 * dwarf2out.c (modified_type_die): Try harder not to emit internal
9412 sizetype type into debug info.
9413
9414 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9415
9416 PR target/80099
9417 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
9418 unneeded test for TARGET_UPPER_REGS_SF.
9419 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
9420
9421 2017-04-18 Jakub Jelinek <jakub@redhat.com>
9422
9423 PR sanitizer/80444
9424 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
9425 instead of gsi_after_labels.
9426
9427 2017-04-18 Jeff Law <law@redhat.com>
9428
9429 * regcprop.c (maybe_mode_change): Avoid creating copies of the
9430 stack pointer.
9431
9432 Revert:
9433 2017-04-13 Jeff Law <law@redhat.com>
9434 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9435 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9436
9437 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
9438
9439 PR target/79453
9440 * config/avr/avr.c (intl.h): Include it.
9441 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
9442
9443 2017-04-18 Martin Liska <mliska@suse.cz>
9444
9445 PR gcov-profile/78783
9446 * gcov-tool.c (gcov_output_files): Validate that destination
9447 file is either removed by the tool or by a user.
9448
9449 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
9450 Guy Benyei <guybe@mellanox.com>
9451
9452 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
9453 block, and do not negate it, the stored id is already negative.
9454
9455 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
9456
9457 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
9458
9459 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9460
9461 PR target/80098
9462 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
9463 masks of options that should be turned off if the VSX vector
9464 options are turned off.
9465 (OTHER_P8_VECTOR_MASKS): Likewise.
9466 (OTHER_VSX_VECTOR_MASKS): Likewise.
9467 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
9468 rs6000_disable_incompatible_switches to validate no type switches
9469 like -mvsx.
9470 (rs6000_incompatible_switch): New function to disallow turning on
9471 other vector options if -mno-vsx, -mno-power8-vector, or
9472 -mno-power9-vector are specified.
9473
9474 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9475
9476 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
9477
9478 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9479
9480 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
9481 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
9482 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
9483 (ARG_POINTER_CFA_OFFSET): Likewise.
9484
9485 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
9486
9487 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
9488 conditions to take advantage of various optimizations.
9489
9490 2017-04-13 Jeff Law <law@redhat.com>
9491
9492 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
9493 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
9494 (zero_extendsidi2_dext): Likewise.
9495
9496 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9497
9498 PR sanitizer/80403
9499 * fold-const.c (fold_ternary_loc): Revert
9500 use op0 instead of fold_convert_loc (loc, type, arg0) part of
9501 2017-04-12 change.
9502
9503 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
9504
9505 PR rtl-optimization/80343
9506 * lra-remat.c (update_scratch_ops): Assign original hard reg to
9507 new scratch pseudo.
9508
9509 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
9510
9511 PR sanitizer/80414
9512 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
9513 to ubsan_encode_value.
9514
9515 2017-04-13 Jeff Law <law@redhat.com>
9516
9517 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
9518 appearing in DEBUG_INSNs.
9519
9520 2017-04-13 Martin Liska <mliska@suse.cz>
9521
9522 PR gcov-profile/80413
9523 * gcov-io.c (gcov_write_string): Copy to buffer just when
9524 allocated size is greater than zero.
9525
9526 2017-04-13 Jakub Jelinek <jakub@redhat.com>
9527
9528 PR debug/80321
9529 * dwarf2out.c (decls_for_scope): Ignore declarations of
9530 current_function_decl in BLOCK_NONLOCALIZED_VARS.
9531
9532 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
9533
9534 PR lto/69953
9535 * ipa-visibility.c (non_local_p): Fix typos.
9536 (localize_node): When localizing symbol in same comdat group,
9537 dissolve the group only when we know external symbols are going
9538 to be privatized.
9539 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
9540
9541 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9542
9543 PR tree-optimization/79390
9544 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
9545 order does not result in usable sequence, retry with reversed operand
9546 order.
9547
9548 PR sanitizer/80403
9549 PR sanitizer/80404
9550 PR sanitizer/80405
9551 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
9552 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
9553 op0 instead of fold_convert_loc (loc, type, arg0).
9554
9555 2017-04-12 Jeff Law <law@redhat.com>
9556
9557 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
9558 has a delay slot in the generated code.
9559
9560 * config/cris/cris.md (cris_preferred_reload_class): Return
9561 GENNONACR_REGS rather than GENERAL_REGS.
9562
9563 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9564
9565 PR c/80163
9566 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
9567 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
9568 signedness of the result type.
9569
9570 2017-04-12 Richard Biener <rguenther@suse.de>
9571 Jeff Law <law@redhat.com>
9572
9573 PR tree-optimization/80359
9574 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
9575 trim stores to TARGET_MEM_REFs.
9576
9577 2017-04-12 Richard Biener <rguenther@suse.de>
9578
9579 PR tree-optimization/79390
9580 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
9581 threading case even more.
9582
9583 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
9584
9585 PR target/80382
9586 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
9587 for quad_address_p for TImode, instead of just not indexed_address.
9588
9589 2017-04-12 Richard Biener <rguenther@suse.de>
9590 Bernd Edlinger <bernd.edlinger@hotmail.de>
9591
9592 PR middle-end/79671
9593 * alias.c (component_uses_parent_alias_set_from): Handle
9594 TYPE_TYPELESS_STORAGE.
9595 (get_alias_set): Likewise.
9596 * tree-core.h (tree_type_common): Add typeless_storage flag.
9597 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
9598 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
9599 for types containing members with TYPE_TYPELESS_STORAGE.
9600 (place_field): Likewise.
9601 (layout_type): Likewise for ARRAY_TYPE.
9602 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
9603 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
9604 TYPE_TYPELESS_STORAGE.
9605 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
9606
9607 2017-04-12 Jakub Jelinek <jakub@redhat.com>
9608
9609 PR sanitizer/80349
9610 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
9611 first argument to type.
9612
9613 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9614
9615 PR target/80376
9616 PR target/80315
9617 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9618 CONST0_RTX (mode) rather than const0_rtx where appropriate.
9619 (rs6000_expand_binop_builtin): Likewise.
9620 (rs6000_expand_ternop_builtin): Likewise; also add missing
9621 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
9622 vshasigma built-ins.
9623 * doc/extend.texi: Document that vec_xxpermdi's third argument
9624 must be a constant.
9625
9626 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
9627
9628 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
9629 Use shift_const cost parameter when calculating gain of STV shifts.
9630
9631 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
9632
9633 PR rtl-optimization/70478
9634 * lra-constraints.c (process_alt_operands): Check memory for
9635 disfavoring memory insn operand.
9636
9637 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9638
9639 PR middle-end/80100
9640 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
9641 left shift in unsigned HOST_WIDE_INT type.
9642
9643 PR rtl-optimization/80385
9644 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
9645 (not (neg X)) into (plus X -1) for complex or non-integral modes.
9646
9647 PR libgomp/80394
9648 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
9649 if they have any depend clauses.
9650
9651 2017-04-11 Martin Liska <mliska@suse.cz>
9652
9653 PR ipa/80212
9654 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
9655 * ipa-split.c (split_function): Create a local comdat symbol
9656 if caller is in a comdat group.
9657
9658 2017-04-11 Martin Liska <mliska@suse.cz>
9659
9660 PR ipa/80212
9661 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
9662 flags.
9663
9664 2017-04-11 Martin Sebor <msebor@redhat.com>
9665
9666 PR middle-end/80364
9667 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
9668 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
9669 for INTEGER_TYPE.
9670 (directive::set_width, directive::set_precision, format_character):
9671 Adjust.
9672 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
9673 INTEGER_TYPE.
9674
9675 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
9676
9677 PR target/80389
9678 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
9679 conflict, set target->arch_name instead of target->cpu_name.
9680
9681 2017-04-11 Richard Biener <rguenther@suse.de>
9682
9683 PR tree-optimization/80374
9684 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
9685 build_zero_cst, remove fold_convertible_p check again.
9686
9687 2017-04-11 Martin Liska <mliska@suse.cz>
9688
9689 PR sanitizer/70878
9690 * ubsan.c (instrument_object_size): Do not instrument register
9691 variables.
9692
9693 2017-04-11 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR target/80381
9696 * config/i386/i386-builtin-types.def
9697 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
9698 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
9699 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
9700 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
9701 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
9702 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
9703 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
9704 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
9705 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
9706 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
9707 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
9708 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
9709 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
9710 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
9711 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
9712 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
9713 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
9714 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
9715 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
9716 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
9717 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
9718 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
9719 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
9720 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
9721 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
9722 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
9723 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
9724 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
9725 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
9726 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
9727 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
9728 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
9729 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
9730 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
9731 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
9732 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
9733 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
9734 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
9735 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
9736 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
9737 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
9738 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
9739 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
9740 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
9741 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9742 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
9743 aliases.
9744 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
9745 flag to second_arg_count, handle 4 argument function type _COUNT
9746 aliases, handle second_arg_count on second argument rather than last.
9747
9748 2017-04-10 Jeff Law <law@redhat.com>
9749
9750 PR tree-optimization/80374
9751 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
9752 record anything if we can not convert integer_zero_node to the
9753 desired type.
9754
9755 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
9756
9757 PR target/80108
9758 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9759 Enhance special handling given to the TARGET_P9_MINMAX option in
9760 relation to certain other options.
9761
9762 2017-04-10 Bin Cheng <bin.cheng@arm.com>
9763
9764 PR tree-optimization/80153
9765 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
9766 remove POINTER_PLUS_EXPR's base part directly, rather than through
9767 aff_tree.
9768
9769 2017-04-10 Richard Biener <rguenther@suse.de>
9770 Bin Cheng <bin.cheng@arm.com>
9771
9772 PR tree-optimization/80153
9773 * tree-affine.c (aff_combination_to_tree): Get base pointer from
9774 the first element of pointer type aff_tree. Build result expr in
9775 aff_tree's type.
9776 (add_elt_to_tree): Convert to type unconditionally. Remove other
9777 fold_convert calls.
9778 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
9779 (rewrite_use_nonlinear_expr): Check invariant using iv information.
9780
9781 2017-04-10 Richard Biener <rguenther@suse.de>
9782
9783 * tree-ssa-structalias.c (find_func_aliases): Properly handle
9784 asm inputs.
9785
9786 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
9787
9788 PR rtl-optimization/70478
9789 * lra-constraints.c (curr_small_class_check): New.
9790 (update_and_check_small_class_inputs): New.
9791 (process_alt_operands): Update curr_small_class_check. Disfavor
9792 alternative insn memory operands. Check available regs for small
9793 class operands.
9794
9795 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
9796
9797 PR target/80057
9798 * config/mips/mips.opt (-mvirt): Update description.
9799 * doc/invoke.texi (-mvirt): Likewise.
9800
9801 2017-04-10 Richard Biener <rguenther@suse.de>
9802
9803 PR middle-end/80362
9804 * fold-const.c (fold_binary_loc): Look at unstripped ops when
9805 looking for NEGATE_EXPR in -A / -B to A / B folding.
9806
9807 2017-04-10 Martin Liska <mliska@suse.cz>
9808
9809 PR gcov-profile/80224
9810 * gcov.c (print_usage): Fix usage string.
9811 (get_gcov_intermediate_filename): Remove.
9812 (output_gcov_file): Use both for normal and intermediate format.
9813 (generate_results): Do not initialize special file for
9814 intermediate format.
9815
9816 2017-04-10 Richard Biener <rguenther@suse.de>
9817
9818 PR tree-optimization/80304
9819 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
9820 for safelen.
9821
9822 2017-04-10 Nathan Sidwell <nathan@acm.org>
9823
9824 PR target/79905
9825 * config/rs6000/rs6000.c (rs6000_vector_type): New.
9826 (rs6000_init_builtins): Use it.
9827
9828 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9829
9830 * config/arm/arm.md (<mrc>): Add mode to SET source.
9831 (<mrrc>): Likewise.
9832
9833 2017-04-10 Richard Biener <rguenther@suse.de>
9834
9835 PR middle-end/80344
9836 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
9837
9838 2017-04-10 Jakub Jelinek <jakub@redhat.com>
9839
9840 PR target/80324
9841 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
9842 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
9843 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
9844 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
9845 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
9846 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
9847 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
9848 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
9849 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
9850 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
9851 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
9852 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
9853 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
9854 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
9855 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
9856 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
9857 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
9858 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
9859 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
9860 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
9861 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
9862 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
9863 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
9864
9865 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
9866
9867 PR rtl-optimization/70478
9868 * lra-constraints.c: Reverse the last patch.
9869
9870 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
9871
9872 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
9873 Add comment for WCHAR_T.
9874
9875 2017-04-08 Martin Liska <mliska@suse.cz>
9876
9877 Revert:
9878 2017-04-07 Martin Liska <mliska@suse.cz>
9879
9880 PR ipa/80212
9881 * ipa-split.c (split_function): Add function part to a same comdat
9882 group.
9883
9884 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9885
9886 PR target/80358
9887 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
9888
9889 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
9890
9891 * rs6000/rs6000.c (vec_load_pendulum): Rename...
9892 (vec_pairing): ...to this.
9893 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
9894 (rs6000_sched_init): Adjust for name change.
9895 (struct rs6000_sched_context): Likewise.
9896 (rs6000_init_sched_context): Likewise.
9897 (rs6000_set_sched_context): Likewise.
9898
9899 2017-04-07 Jakub Jelinek <jakub@redhat.com>
9900
9901 PR target/80322
9902 PR target/80323
9903 PR target/80325
9904 PR target/80326
9905 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
9906 intrinsics.
9907 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
9908 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
9909 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
9910
9911 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
9912
9913 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
9914
9915 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
9916
9917 PR rtl-optimization/70703
9918 * ira-color.c (update_conflict_hard_regno_costs): Use
9919 int64_t instead of HOST_WIDE_INT.
9920
9921 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
9922
9923 PR rtl-optimization/70478
9924 * lra-constraints.c (process_alt_operands): Disfavor alternative
9925 insn memory operands.
9926
9927 2017-04-07 Jeff Law <law@redhat.com>
9928
9929 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
9930 CALL and NOTE_INSN_CALL_ARG_LOCATION.
9931
9932 2017-04-07 Martin Liska <mliska@suse.cz>
9933
9934 PR target/79889
9935 * config/aarch64/aarch64.c (aarch64_process_target_attr):
9936 Show error message instead of an ICE.
9937
9938 2017-04-07 Martin Liska <mliska@suse.cz>
9939
9940 PR ipa/80212
9941 * ipa-split.c (split_function): Add function part to a same comdat
9942 group.
9943
9944 2017-04-07 Richard Biener <rguenther@suse.de>
9945
9946 PR middle-end/80341
9947 * tree.c (get_unwidened): Also handle ! for_type case for
9948 INTEGER_CSTs.
9949 * convert.c (do_narrow): Split out from ...
9950 (convert_to_integer_1): ... here. Do not pass final truncation
9951 type to get_unwidened for TRUNC_DIV_EXPR.
9952
9953 2017-04-07 Richard Biener <rguenther@suse.de>
9954
9955 * tree-affine.c (wide_int_ext_for_comb): Take type rather
9956 than aff_tree.
9957 (aff_combination_const): Adjust.
9958 (aff_combination_scale): Likewise.
9959 (aff_combination_add_elt): Likewise.
9960 (aff_combination_add_cst): Likewise.
9961 (aff_combination_convert): Likewise.
9962 (add_elt_to_tree): Likewise. Remove unused argument.
9963 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
9964
9965 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
9966
9967 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
9968 definition.
9969 * config/arm/arm.c (arm_default_short_enums): Use
9970 ARM_DEFAULT_SHORT_ENUMS.
9971 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
9972
9973 2017-04-06 Jakub Jelinek <jakub@redhat.com>
9974
9975 PR debug/80234
9976 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
9977 members with redundant out-of-class redeclaration.
9978
9979 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
9980
9981 PR target/80286
9982 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
9983 * config/i386/i386.md (*zero_extendsidi2):
9984 Add (?*x,*x) and (?*v,*v) alternatives.
9985
9986 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
9987
9988 PR target/79733
9989 * config/i386/i386.c (ix86_expand_builtin)
9990 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
9991 mode from insn data. Convert operands to insn operand mode.
9992 Copy operands that don't satisfy insn predicate to a register.
9993
9994 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
9995
9996 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
9997 Update comments.
9998
9999 2017-04-06 Richard Biener <rguenther@suse.de>
10000
10001 PR tree-optimization/80334
10002 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
10003 preserve alignment of accesses.
10004
10005 2017-04-06 Richard Biener <rguenther@suse.de>
10006
10007 PR tree-optimization/80262
10008 * tree-sra.c (build_ref_for_offset): Preserve address-space
10009 information.
10010 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10011 Drop useless address-space information on MEM_REF offsets.
10012
10013 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
10014
10015 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
10016
10017 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
10018
10019 PR rtl-optimization/70703
10020 * ira-color.c (update_conflict_hard_regno_costs): Use
10021 HOST_WIDE_INT instead of long.
10022
10023 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
10024
10025 PR target/80298
10026 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
10027 not defined for x86_64 target. Add -mmmx target option when __SSE2__
10028 is not defined.
10029 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
10030 for x86_64 target. Handle -m3dnowa option.
10031
10032 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
10033
10034 PR rtl-optimization/70703
10035 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
10036 (update_conflict_hard_regno_costs): Use long instead of unsigned
10037 arithmetic for cost calculation.
10038
10039 2017-04-05 Jakub Jelinek <jakub@redhat.com>
10040 Bernd Edlinger <bernd.edlinger@hotmail.de>
10041
10042 PR sanitizer/80308
10043 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
10044 for big endian.
10045
10046 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
10047
10048 PR target/78002
10049 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
10050 ptr_mode with Pmode throughout.
10051 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
10052 into probe_stack_range and use DImode.
10053
10054 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10055
10056 PR target/79890
10057 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
10058 call_eh_return is true.
10059
10060 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10061
10062 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
10063 Initialize last_match_fntype_index.
10064
10065 2017-04-05 Jakub Jelinek <jakub@redhat.com>
10066
10067 PR target/80310
10068 * tree-nvr.c: Include internal-fn.h.
10069 (pass_return_slot::execute): Ignore internal calls without
10070 direct optab.
10071
10072 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10073 Richard Biener <rguenther@suse.de>
10074
10075 PR c++/80297
10076 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
10077 captures used multiple times, except for the last use.
10078 * generic-match-head.c: Include gimplify.h.
10079
10080 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10081
10082 PR tree-optimization/79390
10083 * target.h (struct noce_if_info): Declare.
10084 * targhooks.h (default_noce_conversion_profitable_p): Declare.
10085 * target.def (noce_conversion_profitable_p): New target hook.
10086 * ifcvt.h (struct noce_if_info): New type, moved from ...
10087 * ifcvt.c (struct noce_if_info): ... here.
10088 (noce_conversion_profitable_p): Renamed to ...
10089 (default_noce_conversion_profitable_p): ... this. No longer
10090 static nor inline.
10091 (noce_try_store_flag_constants, noce_try_addcc,
10092 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
10093 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
10094 instead of noce_conversion_profitable_p.
10095 * config/i386/i386.c: Include ifcvt.h.
10096 (ix86_option_override_internal): Don't override
10097 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
10098 (ix86_noce_conversion_profitable_p): New function.
10099 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
10100 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
10101 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
10102 * doc/tm.texi: Regenerated.
10103
10104 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10105
10106 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
10107 correction.
10108
10109 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10110
10111 PR target/80307
10112 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
10113 instructions for small multiply cores.
10114
10115 2017-04-04 Jeff Law <law@redhat.com>
10116
10117 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
10118 added member.
10119 (mips_expand_vec_perm_const): Initialize elements in orig_perm
10120 that are not set by the loop over the elements.
10121
10122 2017-04-04 Jakub Jelinek <jakub@redhat.com>
10123
10124 PR target/80286
10125 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
10126 int mode, convert_modes it to mode as unsigned, otherwise use
10127 lowpart_subreg to mode rather than SImode.
10128 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
10129 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
10130 Use DImode instead of SImode for the shift count operand.
10131 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
10132 Likewise.
10133
10134 2017-04-04 Richard Biener <rguenther@suse.de>
10135
10136 PR middle-end/80281
10137 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
10138 arithmetic done for the negate or the plus. Simplify.
10139 (A - (-B) -> A + B): Likewise.
10140 * fold-const.c (split_tree): Make sure to not negate pointers.
10141
10142 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
10143
10144 PR rtl-optimization/60818
10145 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
10146 a compare of comparisons with the thing compared if this results
10147 in a different machine mode.
10148
10149 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
10150
10151 * alias.c (base_alias_check): Fix typo in comment.
10152 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
10153 * cgraphunit.c (symbol_table::compile): Likewise.
10154 * collect2.c (maybe_run_lto_and_relink): Likewise.
10155 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
10156 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
10157 * config/avr/avr.c (avr_map_op_t): Likewise.
10158 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
10159 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
10160 * config/epiphany/epiphany.md (movcc): Likewise.
10161 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
10162 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
10163 Likewise.
10164 * config/mips/mips.c (mips_save_restore_reg): Likewise.
10165 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
10166 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
10167 * config/sh/sh.c (sh_rtx_costs): Likewise.
10168 * fold-const.c (fold_truth_andor): Likewise.
10169 * genautomata.c (collapse_flag): Likewise.
10170 * gengtype.h (struct type::u::s): Likewise.
10171 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
10172 * input.c (FORMAT_AMOUNT): Likewise.
10173 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
10174 (known_aggs_to_agg_replacement_list): Likewise.
10175 * ipa-inline-analysis.c: Likewise.
10176 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
10177 * ipa-polymorphic-call.c
10178 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
10179 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
10180 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
10181 Likewise.
10182 * modulo-sched.c (apply_reg_moves): Likewise.
10183 * omp-expand.c (build_omp_regions_1): Likewise.
10184 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
10185 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
10186 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
10187 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
10188 * value-prof.c: Likewise.
10189 * var-tracking.c (val_reset): Likewise.
10190
10191 2017-04-03 Richard Biener <rguenther@suse.de>
10192
10193 PR tree-optimization/80275
10194 * fold-const.c (split_address_to_core_and_offset): Handle
10195 POINTER_PLUS_EXPR.
10196
10197 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
10200 descriptors is at least equal to that of functions.
10201
10202 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
10203
10204 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
10205
10206 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
10207
10208 PR target/80250
10209 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
10210 (mov<IMOD4:mode>): New expander.
10211 (*mov<IMOD4:mode>_internal): New insn and split pattern.
10212
10213 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
10214
10215 PR rtl-optimization/79405
10216 * fwprop.c (propagations_left): New variable.
10217 (forward_propagate_into): Decrement it.
10218 (fwprop_init): Initialize it.
10219 (fw_prop): If the variable has reached zero, stop propagating.
10220 (fwprop_addr): Ditto.
10221
10222 2017-03-31 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR debug/79255
10225 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
10226 a FUNCTION_DECL, pass it as decl instead of origin to
10227 process_scope_var.
10228
10229 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
10230
10231 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
10232 string.
10233
10234 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
10235
10236 PR target/80107
10237 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
10238 TARGET_VSX_SMALL_INTEGER.
10239
10240 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10241
10242 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
10243 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
10244
10245 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
10246
10247 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
10248 extraction from odd-numbered MSA register.
10249
10250 2017-03-31 Jakub Jelinek <jakub@redhat.com>
10251
10252 PR middle-end/80173
10253 * expmed.c (store_bit_field_1): Don't attempt to create
10254 a word subreg out of hard registers wider than word if they
10255 have HARD_REGNO_NREGS of 1 for their mode.
10256
10257 PR middle-end/80163
10258 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
10259 conversions to integer types wider than word and pointer.
10260
10261 PR debug/80025
10262 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
10263 (rtx_equal_for_cselib_p): Pass 0 to it.
10264 * cselib.c (cselib_hasher::equal): Likewise.
10265 (rtx_equal_for_cselib_1): Add depth argument. If depth
10266 is 128, don't look up VALUE locs and punt. Increment
10267 depth in recursive calls when walking VALUE locs.
10268
10269 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
10270
10271 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
10272 (make_gcov_file_name): Use the canonical path name for generating
10273 the MD5 value.
10274 (read_line): Fix handling of files with ascii null bytes.
10275
10276 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
10277
10278 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
10279 to initialise a vector register instead
10280 of using a const_int.
10281
10282 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10283
10284 PR translation/80189
10285 * gimplify.c (omp_default_clause): Use %qs instead of %s in
10286 diagnostic messages.
10287
10288 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
10289
10290 PR target/80246
10291 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
10292 (dfp_diex_<mode>): Update mode of operand 1.
10293 * doc/extend.texi (dxex, dxexq): Document change to return type.
10294 (diex, diexq): Document change to argument type.
10295
10296 2017-03-30 Martin Jambor <mjambor@suse.cz>
10297
10298 PR ipa/77333
10299 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
10300 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
10301 it reflects the signature changes performed at the callee side.
10302 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
10303 to cgraph_build_function_type_skip_args.
10304 (build_function_decl_skip_args): Adjust call to the above function.
10305
10306 2017-03-30 Jakub Jelinek <jakub@redhat.com>
10307
10308 PR target/80206
10309 * config/i386/sse.md
10310 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
10311 register as dest whenever it is a MEM not rtx_equal_p to the
10312 corresponding dup operand, and when forcing into reg move the
10313 reg into the memory afterwards.
10314 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
10315 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
10316 for the force_reg mode.
10317 (avx512vl_vextractf128<mode>): Use register as dest either
10318 always when a MEM, or when it is a MEM not rtx_equal_p to the
10319 corresponding dup operand, or even not when it is a CONST_VECTOR
10320 depending on the mode and lo vs. hi.
10321 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
10322 parens.
10323 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
10324 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
10325 Likewise. Require that operands[2] is even.
10326 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
10327 Remove extraneous parens. Require that operands[2] is a multiple
10328 of 4.
10329 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
10330 operands[0] is a MEM if <mask_applied>, the predicates/constraints
10331 disallow memory then.
10332
10333 2017-03-30 Richard Biener <rguenther@suse.de>
10334
10335 PR tree-optimization/77498
10336 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
10337 to non-constants over backedges.
10338
10339 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
10340
10341 PR rtl-optimization/80233
10342 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
10343 as last_combined_insn. Do not test for BARRIER_P separately.
10344
10345 2017-03-29 Andreas Schwab <schwab@suse.de>
10346
10347 PR ada/80146
10348 * calls.c (prepare_call_address): Convert funexp to Pmode before
10349 copying to temp reg.
10350
10351 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10352
10353 PR tree-optimization/80158
10354 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
10355 Handle possible future case of more than one alternate
10356 interpretation.
10357 (replace_rhs_if_not_dup): Likewise.
10358 (replace_one_candidate): Likewise.
10359
10360 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
10361
10362 PR rtl-optimization/80193
10363 * ira.c (ira): Do not check allocation for LRA.
10364
10365 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
10366
10367 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
10368 (nvptx_output_simt_exit): Declare.
10369 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
10370 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
10371 (init_softstack_frame): Move initialization of crtl->is_leaf to...
10372 (nvptx_declare_function_name): ...here. Emit declaration of local
10373 memory space buffer for omp_simt_enter insn.
10374 (nvptx_output_unisimt_switch): New.
10375 (nvptx_output_softstack_switch): New.
10376 (nvptx_output_simt_enter): New.
10377 (nvptx_output_simt_exit): New.
10378 * config/nvptx/nvptx.h (struct machine_function): New fields
10379 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
10380 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
10381 (UNSPECV_SIMT_EXIT): Ditto.
10382 (omp_simt_enter_insn): New insn.
10383 (omp_simt_enter): New expansion.
10384 (omp_simt_exit): New insn.
10385 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
10386
10387 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
10388 (expand_GOMP_SIMT_ENTER_ALLOC): New.
10389 (expand_GOMP_SIMT_EXIT): New.
10390 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
10391 (GOMP_SIMT_ENTER_ALLOC): Ditto.
10392 (GOMP_SIMT_EXIT): Ditto.
10393 * target-insns.def (omp_simt_enter): New insn.
10394 (omp_simt_exit): Ditto.
10395 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
10396 simt_dlist.
10397 (lower_rec_simd_input_clauses): Implement SIMT privatization.
10398 (lower_rec_input_clauses): Likewise.
10399 (lower_lastprivate_clauses): Handle SIMT privatization.
10400
10401 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
10402 (ompdevlow_adjust_simt_enter): New.
10403 (find_simtpriv_var_op): New.
10404 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
10405 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
10406
10407 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
10408 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
10409 (copy_decl_for_dup_finish): Ditto.
10410
10411 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
10412
10413 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
10414
10415 PR target/53383
10416 * config/i386/i386.c (ix86_option_override_internal): Always
10417 allow -mpreferred-stack-boundary=3 for 64-bit targets.
10418
10419 2017-03-28 Bin Cheng <bin.cheng@arm.com>
10420
10421 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
10422
10423 2017-03-28 Bin Cheng <bin.cheng@arm.com>
10424
10425 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
10426 mark new edge's irreducible flag accordign to it.
10427 (vect_do_peeling): Check loop preheader edge's irreducible flag
10428 and pass it to function slpeel_add_loop_guard.
10429
10430 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
10431
10432 PR tree-optimization/80218
10433 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
10434 Update block frequencies and counts.
10435
10436 2017-03-28 Richard Biener <rguenther@suse.de>
10437
10438 PR tree-optimization/78644
10439 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
10440 of a simplification result we may not use it at all.
10441
10442 2017-03-28 Richard Biener <rguenther@suse.de>
10443
10444 PR ipa/80205
10445 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
10446 without arguments, generate default definition of a SSA name.
10447
10448 2017-03-28 Richard Biener <rguenther@suse.de>
10449
10450 PR middle-end/80222
10451 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
10452 TYPE_REF_CAN_ALIAS_ALL references.
10453 * fold-const.c (fold_indirect_ref_1): Likewise.
10454
10455 2017-03-28 Martin Liska <mliska@suse.cz>
10456
10457 PR ipa/80104
10458 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
10459 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
10460
10461 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
10462 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10463
10464 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
10465 (EXTRA_SPECS): Define.
10466 (SUBTARGET_EXTRA_SPECS): Likewise.
10467 (SUBTARGET_CPP_SPEC): Likewise.
10468 * config/arc/elf.h (EXTRA_SPECS): Renamed to
10469 SUBTARGET_EXTRA_SPECS.
10470 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
10471
10472 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
10473
10474 * config/arc/simdext.md (vst64_insn): Update pattern.
10475 (vld32wh_insn): Likewise.
10476 (vld32wl_insn): Likewise.
10477 (vld64_insn): Likewise.
10478 (vld32_insn): Likewise.
10479
10480 2017-03-28 Marek Polacek <polacek@redhat.com>
10481
10482 PR sanitizer/80067
10483 * fold-const.c (fold_comparison): Use protected_set_expr_location
10484 instead of SET_EXPR_LOCATION.
10485
10486 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10487
10488 * tree.c (add_expr): Avoid name lookup warning.
10489
10490 2017-03-27 Jeff Law <law@redhat.com>
10491
10492 PR tree-optimization/80216
10493 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
10494 function name. Limit recursion depth.
10495 (record_temporary_equivalences): Corresponding changes.
10496
10497 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
10498
10499 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
10500 covered first.
10501
10502 2017-03-27 Jakub Jelinek <jakub@redhat.com>
10503
10504 PR target/80102
10505 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
10506 notes.
10507 * cfgcleanup.c (reg_note_cfa_p): New array.
10508 (insns_have_identical_cfa_notes): New function.
10509 (old_insns_match_p): Don't cross-jump in between /f
10510 and non-/f instructions. If both i1 and i2 are frame related,
10511 verify all CFA notes, their order and content.
10512
10513 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
10514
10515 PR target/78543
10516 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
10517 HImode and SImode with zero extend to DImode to one insn.
10518 (bswap<mode>2_extenddi): Likewise.
10519 (bswapsi2_extenddi): Likewise.
10520 (bswaphi2_extendsi): Likewise.
10521 (bswaphi2): Combine bswap HImode and SImode into one insn.
10522 Separate memory insns from swapping register.
10523 (bswapsi2): Likewise.
10524 (bswap<mode>2): Likewise.
10525 (bswaphi2_internal): Delete, no longer used.
10526 (bswapsi2_internal): Likewise.
10527 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
10528 store, and gpr<-gpr swap insns.
10529 (bswap<mode>2_store): Likewise.
10530 (bswaphi2_reg): Register only splitter, combine with the splitter.
10531 (bswaphi2 splitter): Likewise.
10532 (bswapsi2_reg): Likewise.
10533 (bswapsi2 splitter): Likewise.
10534 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
10535 the insns into load, store, and register/register insns.
10536 (bswapdi2_ldbrx): Likewise.
10537 (bswapdi2_load): Likewise.
10538 (bswapdi2_store): Likewise.
10539 (bswapdi2_reg): Likewise.
10540
10541 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
10542
10543 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
10544 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
10545
10546 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
10547
10548 PR target/80103
10549 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
10550 add comments.
10551 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10552 special handling for target option conflicts between dform
10553 options (-mpower9-dform, -mpower9-dform-vector,
10554 -mpower9-dform-scalar) and -mno-direct-move.
10555
10556 2017-03-27 Richard Biener <rguenther@suse.de>
10557
10558 PR tree-optimization/80181
10559 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
10560
10561 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10562
10563 * config/arc/predicates.md (move_double_src_operand): Replace the
10564 call to move_double_src_operand with a call to address_operand.
10565
10566 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10567
10568 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
10569 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
10570 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
10571
10572 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10573
10574 * config/arc/predicates.md (long_immediate_loadstore_operand):
10575 Consider scaled addresses cases.
10576
10577 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
10578
10579 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
10580 restored when in interrupt.
10581 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
10582 doesn't have delay slot.
10583
10584 2017-03-27 Richard Biener <rguenther@suse.de>
10585
10586 PR ipa/79776
10587 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
10588 inlined thunk clones.
10589
10590 2017-03-27 Jakub Jelinek <jakub@redhat.com>
10591
10592 PR sanitizer/80168
10593 * asan.c (instrument_derefs): Copy over last operand from
10594 original COMPONENT_REF to the new COMPONENT_REF with
10595 DECL_BIT_FIELD_REPRESENTATIVE.
10596 * ubsan.c (instrument_object_size): Likewise.
10597
10598 2017-03-27 Richard Biener <rguenther@suse.de>
10599
10600 PR tree-optimization/80170
10601 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
10602 sure DR/SCEV didnt fold in constants we do not see when looking
10603 at the reference base alignment.
10604
10605 2017-03-27 Richard Biener <rguenther@suse.de>
10606
10607 PR middle-end/80171
10608 * gimple-fold.c (fold_ctor_reference): Properly guard against
10609 NULL return value from canonicalize_constructor_val.
10610
10611 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
10612
10613 PR target/80180
10614 * config/i386/i386.c (ix86_expand_builtin)
10615 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
10616 flags reg setting and flags reg using instructions.
10617 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
10618 clobbering instructions to zero extend op2.
10619
10620 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
10621
10622 * doc/install.texi (Configuration) <--with-aix-soname>:
10623 Update link to AIX ld.
10624
10625 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
10626
10627 PR rtl-optimization/80160
10628 PR rtl-optimization/80159
10629 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
10630 reg_alternate_class into account.
10631
10632 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
10633
10634 PR target/80148
10635 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
10636 to consider in curr_insn_transform.
10637
10638 2017-03-24 Jakub Jelinek <jakub@redhat.com>
10639
10640 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
10641 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
10642 and emit_mode_inner.
10643
10644 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10645
10646 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
10647 argument to the overloaded builtin variants. Use the new flag to
10648 deprecate certain builtin variants.
10649 * config/s390/s390-builtin-types.def: Add new builtin types.
10650 * config/s390/s390-builtins.h: Support new flags field for
10651 overloaded builtins.
10652 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
10653 (s390_macro_to_expand): Enable vector float data type.
10654 (s390_cpu_cpp_builtins_internal): Indicate support of the new
10655 builtins by incrementing the __VEC__ version number.
10656 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
10657 vec_xst.
10658 (s390_resolve_overloaded_builtin): Emit error messages depending
10659 on the builtin flags.
10660 * config/s390/s390.c (s390_expand_builtin): Support additional
10661 flags argument. Change error message to match the messages
10662 emitted in s390-c.c.
10663 * config/s390/s390.md: New UNSPEC_* constants.
10664 (op_type): Add new instruction types.
10665 * config/s390/vecintrin.h: Add new builtins and test data class
10666 constants.
10667 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
10668 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
10669 (VEC_INEXACT, VEC_NOINEXACT): New constants.
10670 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
10671 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
10672 ("vec_mergel<mode>"): V_HW -> VEC_HW.
10673
10674 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
10675 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
10676 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
10677 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
10678
10679 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
10680 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
10681 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
10682 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
10683
10684 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
10685 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
10686 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
10687 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
10688 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
10689 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
10690 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
10691
10692 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
10693 ("vec_scatter_element<V_HW_4:mode>_DI")
10694 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
10695 ("vec_fpint<mode>", "vflls")
10696 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
10697 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
10698 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
10699 ("*vec_cmphe<mode>_cc"): ... these.
10700
10701 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
10702 mode constant instead of magic value.
10703
10704 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10705
10706 * config/s390/s390.c (s390_expand_vec_compare): Support other
10707 vector floating point modes than just V2DF.
10708 (s390_expand_vcond): Likewise.
10709 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
10710 (s390_cannot_change_mode_class): Prevent mode changes between TF
10711 and V1TF in vector registers.
10712 * config/s390/s390.md (DF, SF): New mode attributes.
10713 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
10714 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
10715 SFmode support for VRs.
10716 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
10717 vector fp modes.
10718 (VFT, VF_HW): New mode iterators.
10719 (vw, sdx): New mode attributes.
10720 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
10721 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
10722 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
10723 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
10724 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
10725 also the new vector floating point modes. Renaming to ...
10726
10727 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
10728 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
10729 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
10730 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
10731 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
10732 ("vec_unordered<mode>"): ... these.
10733
10734 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
10735 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
10736 ("*vec_extendv2df"): New insn definitions.
10737
10738 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10739
10740 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
10741 ("mulditi3_2", "*muldi3_sign"): New patterns.
10742 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
10743 rename the pattern definition.
10744
10745 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10746
10747 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
10748 expander.
10749 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
10750
10751 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10752
10753 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
10754 instruction if possible.
10755 * config/s390/vector.md (vec_halfnumelts): New mode
10756 attribute.
10757 ("*vec_vllezlf<mode>"): New pattern.
10758
10759 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10760
10761 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
10762 ("popcountv4si2", "popcountv2di2"): Rename to ...
10763 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
10764 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
10765 condition.
10766 ("popcount<mode>2_vxe"): New pattern.
10767
10768 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10769
10770 * common/config/s390/s390-common.c (processor_flags_table): Add
10771 arch12.
10772 * config.gcc: Add arch12.
10773 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10774 Default to arch12 for unknown CPU model numbers.
10775 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
10776 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
10777 PROCESSOR_max sanity check.
10778 * config/s390/s390-opts.h (enum processor_type): Add
10779 PROCESSOR_ARCH12.
10780 * config/s390/s390.c (processor_table): Add arch12.
10781 (s390_expand_builtin): Add check for B_VXE flag.
10782 (s390_issue_rate): Add PROCESSOR_ARCH12.
10783 (s390_get_sched_attrmask): Likewise.
10784 (s390_get_unit_mask): Likewise.
10785 (s390_sched_score): Enable z13 scheduling for arch12.
10786 (s390_sched_reorder): Likewise.
10787 (s390_sched_variable_issue): Likewise.
10788 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
10789 PF_VXE.
10790 (s390_tune_attr): Use z13 scheduling also for arch12.
10791 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
10792 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
10793 (TARGET_VXE_P): New macros.
10794 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
10795 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
10796 * config/s390/s390.opt: Add arch12 as processor_type.
10797
10798 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10799
10800 * config/s390/s390.md
10801 ("fixuns_truncdddi2", "fixuns_trunctddi2")
10802 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
10803 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
10804
10805 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
10806 Rename expanders to ...
10807
10808 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
10809 ("fixuns_truncdddi2_emu"): ... these.
10810
10811 ("fixuns_trunc<mode>si2_emu"): New expander.
10812
10813 ("*fixuns_truncdfdi2_z13"): Rename to ...
10814 ("*fixuns_truncdfdi2_vx"): ... this.
10815
10816 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10817
10818 * config/s390/2964.md: Remove the single element vector compare
10819 instructions which are no longer used.
10820 * config/s390/s390.c (s390_select_ccmode): Remove handling of
10821 vector CCmodes.
10822 (s390_canonicalize_comparison): Remove handling of DFmode
10823 compares.
10824 (s390_expand_vec_compare_scalar): Remove function.
10825 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
10826 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
10827 pattern.
10828 ("*cmp<mode>_ccs"): Add wfcdb instruction.
10829
10830 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10831
10832 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
10833 FP zero.
10834 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
10835 will anyway by matched by mov<mode>_64dfp.
10836
10837 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10838
10839 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
10840 vlef/vstef. Add missing operand to vleif.
10841
10842 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10843
10844 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
10845 pair for all vector types with 64 bit elements.
10846 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
10847 * config/s390/vector.md (V_HW_64): ... here.
10848 (V_128_NOSINGLE): New mode iterator.
10849 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
10850 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
10851 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
10852 ("*vec_load_pairv2di"): Change to ...
10853 ("*vec_load_pair<mode>"): ... this one.
10854
10855 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10856
10857 * config/s390/constraints.md: Add comments.
10858 (jKK): Reject element sizes > 8 bytes.
10859 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
10860 s_operands.
10861 * config/s390/s390.md: Add the s_operand checks formerly in
10862 s390_split_ok_p to various splitters where they are still
10863 required.
10864 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
10865 for 128 bit vectors. Plus two splitters.
10866
10867 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10868
10869 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
10870 the file.
10871
10872 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10873
10874 PR target/79893
10875 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
10876 error if the boundary argument is not constant.
10877
10878 2017-03-24 Jakub Jelinek <jakub@redhat.com>
10879
10880 PR rtl-optimization/80112
10881 * loop-doloop.c (doloop_condition_get): Don't check condition
10882 if cmp isn't SET with IF_THEN_ELSE src.
10883
10884 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10885
10886 PR tree-optimization/80158
10887 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
10888 replacing a candidate statement, also replace it for the
10889 candidate's alternate interpretation.
10890 (replace_rhs_if_not_dup): Likewise.
10891 (replace_one_candidate): Likewise.
10892
10893 2017-03-24 Richard Biener <rguenther@suse.de>
10894
10895 PR tree-optimization/80167
10896 * graphite-isl-ast-to-gimple.c
10897 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
10898 properly.
10899 (translate_isl_ast_to_gimple::get_rename): Likewise.
10900
10901 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
10902
10903 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
10904 handling of certain combinations of target options, including the
10905 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
10906 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
10907
10908 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10909
10910 PR target/71436
10911 * config/arm/arm.md (*load_multiple): Add reload_completed to
10912 matching condition.
10913
10914 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10915 Richard Biener <rguenth@suse.de>
10916
10917 PR tree-optimization/79908
10918 PR tree-optimization/80136
10919 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
10920 been cast away, gimplify_and_add suffices.
10921
10922 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
10923
10924 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
10925
10926 2017-03-23 Richard Biener <rguenther@suse.de>
10927
10928 PR tree-optimization/80032
10929 * gimplify.c (gimple_push_cleanup): Forced unconditional
10930 cleanups still have to go to the conditional_cleanups
10931 sequence.
10932
10933 2017-03-22 Jakub Jelinek <jakub@redhat.com>
10934
10935 PR tree-optimization/80072
10936 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
10937 to unsigned int.
10938 (next_operand_entry_id): Change type to unsigned int.
10939 (sort_by_operand_rank): Make sure to return the right return value
10940 even if unsigned fields are bigger than INT_MAX.
10941 (struct oecount): Change cnt and id type to unsigned int.
10942 (oecount_hasher::equal): Formatting fix.
10943 (oecount_cmp): Make sure to return the right return value
10944 even if unsigned fields are bigger than INT_MAX.
10945 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
10946
10947 PR c++/80129
10948 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
10949 TREE_READONLY on result if writing it more than once.
10950
10951 PR sanitizer/80110
10952 * doc/invoke.texi (-fsanitize=thread): Document that with
10953 -fnon-call-exceptions atomics are not able to throw
10954 exceptions.
10955
10956 PR sanitizer/80110
10957 * tsan.c: Include tree-eh.h.
10958 (instrument_builtin_call): Call maybe_clean_eh_stmt or
10959 maybe_clean_or_replace_eh_stmt where needed.
10960 (instrument_memory_accesses): Add cfg_changed argument.
10961 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
10962 if it returned true.
10963 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
10964
10965 PR rtl-optimization/63191
10966 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
10967 wrapper function, moved the whole old content into ...
10968 (ix86_delegitimize_address_1): ... this. New inline function.
10969 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
10970 true as last argument instead of ix86_delegitimize_address.
10971
10972 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
10973
10974 * config/aarch64/aarch64.c (generic_branch_cost): Copy
10975 cortexa57_branch_cost.
10976
10977 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
10978
10979 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
10980
10981 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10982
10983 PR target/80123
10984 * doc/md.texi (Constraints): Document wA constraint.
10985 * config/rs6000/constraints.md (wA): New.
10986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
10987 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
10988 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
10989 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
10990
10991 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
10992
10993 PR c++/80029
10994 * gimplify.c (is_oacc_declared): New function.
10995 (oacc_default_clause): Use it to set default flags for acc declared
10996 variables inside parallel regions.
10997 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
10998 declared variables.
10999 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
11000 declare attribute to any decl as necessary.
11001
11002 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
11003
11004 PR target/80082
11005 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
11006 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
11007 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
11008 (arm_arch_lpae): This.
11009 * config/arm/arm.c (arm_arch7ve): Rename into ...
11010 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
11011 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
11012 arm_arch_lpae.
11013
11014 2017-03-22 Martin Liska <mliska@suse.cz>
11015
11016 PR target/79906
11017 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
11018 error message instead of an ICE.
11019
11020 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11021
11022 * doc/extend.texi (6.11 Additional Floating Types): Revise.
11023
11024 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11025
11026 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
11027 comments.
11028 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11029 comments.
11030
11031 2017-03-21 Martin Sebor <msebor@redhat.com>
11032
11033 * doc/extend.texi: Use "cannot" instead of "can't."
11034 * doc/hostconfig.texi: Same.
11035 * doc/install.texi: Same.
11036 * doc/invoke.texi: Same.
11037 * doc/loop.texi: Same.
11038 * doc/md.texi: Same.
11039 * doc/objc.texi: Same.
11040 * doc/rtl.texi: Same.
11041 * doc/tm.texi: Same.
11042 * doc/tm.texi.in: Same.
11043 * doc/trouble.texi: Same.
11044
11045 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
11046
11047 PR debug/63238
11048 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
11049 (collect_checksum_attributes): Set it.
11050 (die_checksum_ordered): Use it.
11051
11052 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11053
11054 PR tree-optimization/79908
11055 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
11056 change: For a VA_ARG whose LHS has been cast away, use
11057 force_gimple_operand to construct the side effects.
11058
11059 2017-03-21 David Malcolm <dmalcolm@redhat.com>
11060
11061 PR translation/80001
11062 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
11063 more amenable to translation.
11064 (oacc_loop_auto_partitions): Likewise.
11065
11066 2017-03-21 Marek Polacek <polacek@redhat.com>
11067 Martin Sebor <msebor@redhat.com>
11068
11069 PR tree-optimization/80109
11070 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
11071 on INTEGRAL_TYPE_P.
11072
11073 2017-03-21 Jakub Jelinek <jakub@redhat.com>
11074 Segher Boessenkool <segher@kernel.crashing.org>
11075
11076 PR target/80125
11077 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
11078 check reg_used_between_p between insn and one of succ or succ2
11079 depending on if succ is artificial insn not inserted into insn
11080 stream.
11081
11082 2017-03-21 Martin Liska <mliska@suse.cz>
11083
11084 PR gcov-profile/80081
11085 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
11086 * doc/gcc.texi: Include gcov-dump stuff.
11087 * doc/gcov-dump.texi: New file.
11088
11089 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
11090
11091 PR rtl-optimization/79150
11092 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
11093 conditional jump, if the jump is the last insn of the loop.
11094
11095 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11096 Richard Biener <rguenth@suse.de>
11097
11098 PR tree-optimization/79908
11099 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
11100 been cast away, use force_gimple_operand to construct the side
11101 effects.
11102
11103 2017-03-21 Martin Liska <mliska@suse.cz>
11104
11105 PR libfortran/79956
11106 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
11107 to NULL.
11108
11109 2017-03-21 Brad Spengler <spender@grsecurity.net>
11110
11111 PR plugins/80094
11112 * plugin.c (htab_hash_plugin): New function.
11113 (add_new_plugin): Use it and adjust.
11114 (parse_plugin_arg_opt): Adjust.
11115 (init_one_plugin): Likewise.
11116
11117 2017-03-21 Richard Biener <rguenther@suse.de>
11118
11119 PR tree-optimization/80032
11120 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
11121 if set force the cleanup to happen unconditionally.
11122 (gimplify_target_expr): Push inserted clobbers with force_uncond
11123 to avoid them being removed by control-dependent DCE.
11124
11125 2017-03-21 Richard Biener <rguenther@suse.de>
11126
11127 PR tree-optimization/80122
11128 * tree-inline.c (copy_bb): Do not expans va-arg packs or
11129 va_arg_pack_len when the inlined call stmt requires pack
11130 expansion itself.
11131 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
11132
11133 2017-03-21 Jakub Jelinek <jakub@redhat.com>
11134
11135 PR sanitizer/78158
11136 * tsan.c (instrument_builtin_call): If the memory model argument
11137 is not a constant, assume it is valid.
11138
11139 PR c/67338
11140 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
11141 avoid UB.
11142
11143 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
11144
11145 PR rtl-optimization/79910
11146 * combine.c (can_combine_p): Do not allow combining an I0 or I1
11147 if its dest is used by an insn before I2 (other than the combined
11148 insns themselves, which are properly handled already).
11149
11150 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
11151
11152 Revert:
11153 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
11154
11155 * combine.c (record_used_regs): New static function.
11156 (try_combine): Handle situations where there is an additional
11157 instruction between I2 and I3 which needs to have a LOG_LINK
11158 updated.
11159
11160 Revert:
11161 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
11162
11163 * combine.c (try_combine): Delete redundant i1 test. Call
11164 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
11165
11166 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11167
11168 PR target/80083
11169 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
11170 alternatives 13/14.
11171
11172 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11173
11174 PR tree-optimization/80054
11175 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
11176 the optimization if a PHI or any of its arguments is not dominated
11177 by the candidate's basis. Use gphi* rather than gimple* as
11178 appropriate.
11179 (replace_profitable_candidates): Clean up a gimple* variable that
11180 should be a gphi* variable.
11181
11182 2017-03-20 Martin Sebor <msebor@redhat.com>
11183
11184 PR c++/52477
11185 * doc/extend.texi (attribute constructor): Document present limitation.
11186
11187 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
11188
11189 PR target/79963
11190 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
11191 __POWER9_VECTOR__ #ifdef control, change template definition to
11192 use Power9-specific built-in function.
11193 (vec_any_eq): Likewise.
11194 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
11195 to control outcomes from this test.
11196 (vector_ae_<mode>p): For VEC_F modes, likewise.
11197
11198 2017-03-20 Ian Lance Taylor <iant@google.com>
11199
11200 * config/i386/i386.c (ix86_function_regparm): Save an extra
11201 register for -fsplit-stack with DECL_STATIC_CHAIN.
11202
11203 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
11204
11205 PR target/79912
11206 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
11207 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
11208
11209 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
11210
11211 * config/riscv/riscv.c (riscv_print_operand): Use "fence
11212 iorw,ow".
11213 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
11214 iorw,iorw".
11215
11216 2017-03-20 Marek Polacek <polacek@redhat.com>
11217
11218 PR sanitizer/80063
11219 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
11220
11221 2017-03-20 Richard Biener <rguenther@suse.de>
11222
11223 PR tree-optimization/80113
11224 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
11225 allocate extra SSA name for PHI def.
11226 (add_close_phis_to_outer_loops): Likewise.
11227 (add_close_phis_to_merge_points): Likewise.
11228 (copy_loop_close_phi_args): Likewise.
11229 (copy_cond_phi_nodes): Likewise.
11230
11231 2017-03-20 Martin Liska <mliska@suse.cz>
11232
11233 PR middle-end/79753
11234 * tree-chkp.c (chkp_build_returned_bound): Do not build
11235 returned bounds for a LHS that's not a BOUNDED_P type.
11236
11237 2017-03-20 Martin Liska <mliska@suse.cz>
11238
11239 PR target/79769
11240 PR target/79770
11241 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
11242 COMPLEX_CST and VECTOR_CST.
11243
11244 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11245
11246 PR target/78857
11247 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
11248 target operand. A new splitter adds the clobber statement in case
11249 the target operand is dead anyway.
11250
11251 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
11252
11253 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
11254 to age-old versions of binutils and glibc.
11255
11256 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
11257
11258 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
11259
11260 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
11261
11262 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
11263
11264 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
11265
11266 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
11267 requirement for binutils 2.13.
11268
11269 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
11270
11271 * combine.c (try_combine): Delete redundant i1 test. Call
11272 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
11273
11274 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
11275
11276 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
11277 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
11278 contents.
11279 <riscv64-*-elf>: Re-arrange section
11280 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
11281 <riscv32-*-linux>: Likewise.
11282 <riscv64-*-elf>: Likewise
11283 <riscv64-*-linux>: Likewise.
11284
11285 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
11286
11287 PR target/80052
11288 * aarch64.opt(verbose-cost-dump): Fix typo.
11289
11290 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
11291
11292 PR target/79951
11293 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
11294 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
11295
11296 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
11297
11298 * reload.c (find_reloads): When reloading a nonoffsettable address,
11299 use RELOAD_OTHER for it and its address reloads.
11300
11301 PR rtl-optimization/79910
11302 * combine.c (record_used_regs): New static function.
11303 (try_combine): Handle situations where there is an additional
11304 instruction between I2 and I3 which needs to have a LOG_LINK
11305 updated.
11306
11307 2017-03-17 Jeff Law <law@redhat.com>
11308
11309 PR tree-optimization/71437
11310 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
11311 conditional in the hash table first.
11312 (vrp_dom_walker::before_dom_children): Extract condition from
11313 ASSERT_EXPR. Record condition, its inverion and any implied
11314 conditions as well.
11315
11316 2017-03-17 Marek Polacek <polacek@redhat.com>
11317 Markus Trippelsdorf <markus@trippelsdorf.de>
11318
11319 PR tree-optimization/80079
11320 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
11321 m_stores_head.
11322
11323 2017-03-17 Richard Biener <rguenther@suse.de>
11324
11325 PR middle-end/80075
11326 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
11327 Properly verify the LHS before the RHS possibly claims to be
11328 handled.
11329 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
11330 do not throw.
11331
11332 2017-03-17 Martin Jambor <mjambor@suse.cz>
11333
11334 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
11335 (List of -O2 options): Likewise.
11336 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
11337 (-fipa-vrp) New.
11338
11339 2017-03-17 Tom de Vries <tom@codesourcery.com>
11340
11341 * gcov-dump.c (print_usage): Print bug_report_url.
11342
11343 2017-03-17 Richard Biener <rguenther@suse.de>
11344
11345 PR middle-end/80050
11346 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
11347 (parser::peek): Likewise.
11348
11349 2017-03-17 Richard Biener <rguenther@suse.de>
11350
11351 PR tree-optimization/80048
11352 * sese.c (free_sese_info): Properly release rename_map and
11353 copied_bb_map elements.
11354
11355 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
11356
11357 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
11358 Add linked-list forward and backlinks. Insert on
11359 construction, remove on destruction.
11360 (class pass_store_merging): Add m_stores_head field.
11361 (pass_store_merging::terminate_and_process_all_chains):
11362 Iterate over m_stores_head list.
11363 (pass_store_merging::terminate_all_aliasing_chains):
11364 Likewise.
11365 (pass_store_merging::execute): Check for debug stmts first.
11366 Push new chains onto the m_stores_head stack.
11367
11368 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
11369
11370 PR target/71294
11371 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
11372 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
11373 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
11374
11375 2017-03-16 Jeff Law <law@redhat.com>
11376
11377 PR tree-optimization/71437
11378 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
11379 member function. Implementation moved into after_dom_children
11380 member function and into the threader's thread_outgoing_edges
11381 function.
11382 (dom_opt_dom_walker::after_dom_children): Simplify by moving
11383 some code into new thread_outgoing_edges.
11384 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
11385 definition. Simplify marker handling (do it here). Assume we always
11386 have the available expression and the const/copies tables.
11387 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
11388 and tree-vrp.c
11389 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
11390 * tree-vrp.c (equiv_stack): No longer file scoped.
11391 (vrp_dom_walker): New class.
11392 (vrp_dom_walker::before_dom_children): New member function.
11393 (vrp_dom_walker::after_dom_children): Likewise.
11394 (identify_jump_threads): Setup domwalker. Use it rather than
11395 walking edges in a random order by hand. Simplify setup/finalization.
11396 (finalize_jump_threads): Remove.
11397 (vrp_finalize): Do not call identify_jump_threads here.
11398 (execute_vrp): Do it here instead and call thread_through_all_blocks
11399 here too.
11400
11401 PR tree-optimization/71437
11402 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
11403 callers changed.
11404 (simplify_stmt_for_jump_threading): Add basic_block argument. All
11405 callers changed.
11406 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
11407 (dom_opt_dom_walker::thread_across_edge): Remove
11408 handle_dominating_asserts argument. All callers changed.
11409 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
11410 changes. Remove calls to lhs_of_dominating_assert. Other
11411 uses of handle_dominating_asserts turn into unconditional code
11412 (simplify_control_stmt_condition_1): Likewise.
11413 (simplify_control_stmt_condition): Likewise.
11414 (thread_through_normal_block, thread_across_edge): Likewise.
11415 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
11416 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
11417 object if it is not an SSA_NAME.
11418 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
11419 before calling into the VRP specific simplifiers.
11420 (identify_jump_threads): Remove handle_dominating_asserts
11421 argument.
11422
11423 2017-03-16 Jakub Jelinek <jakub@redhat.com>
11424
11425 PR fortran/79886
11426 * tree-diagnostic.c (default_tree_printer): No longer static.
11427 * tree-diagnostic.h (default_tree_printer): New prototype.
11428
11429 2017-03-16 Tamar Christina <tamar.christina@arm.com>
11430
11431 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
11432 Change ins into fmov.
11433
11434 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11435
11436 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
11437 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
11438 Use h_con constraint for operand 1.
11439 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
11440 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
11441
11442 2017-03-15 Jeff Law <law@redhat.com>
11443
11444 PR tree-optimization/71437
11445 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
11446 (record_temporary_equivalences): Use it.
11447
11448 PR tree-optimization/71437
11449 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
11450 tree-ssa-scopedtables.
11451 (lookup_avail_expr, build_and_record_new_cond): Likewise.
11452 (record_conditions, record_cond, vuse_eq): Likewise.
11453 (record_edge_info): Adjust to API tweak of record_conditions.
11454 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
11455 (record_temporary_equivalences, optimize_stmt): Likewise.
11456 (eliminate_redundant_computations): Likewise.
11457 (record_equivalences_from_stmt): Likewise.
11458 * tree-ssa-scopedtables.c: Include options.h and params.h.
11459 (vuse_eq): New function, moved from tree-ssa-dom.c
11460 (build_and_record_new_cond): Likewise.
11461 (record_conditions): Likewise. Accept vector of conditions rather
11462 than edge_equivalence structure for first argument.
11463 for the first argument.
11464 (avail_exprs_stack::lookup_avail_expr): New member function, moved
11465 from tree-ssa-dom.c.
11466 (avail_exprs_stack::record_cond): Likewise.
11467 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
11468 from tree-ssa-dom.c.
11469 (avail_exprs_stack): Add new member functions lookup_avail_expr
11470 and record_cond.
11471 (record_conditions): Declare.
11472
11473 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
11474
11475 PR target/80017
11476 * lra-constraints.c (process_alt_operands): Increase reject for
11477 reloading an input/output operand.
11478
11479 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11480
11481 PR target/79038
11482 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
11483 insns to convert from signed/unsigned char/short to IEEE 128-bit
11484 floating point.
11485 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
11486
11487 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
11488
11489 PR target/80019
11490 * config/i386/i386.c (ix86_vector_duplicate_value): Create
11491 subreg of inner mode for values already in registers.
11492
11493 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
11494
11495 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
11496 iteration reg is used after the loop.
11497
11498 2017-03-14 Martin Sebor <msebor@redhat.com>
11499
11500 PR tree-optimization/79800
11501 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
11502 precision in negative-positive range.
11503 (format_floating): Call non-const overload with adjusted precision.
11504
11505 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11506
11507 PR target/79947
11508 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
11509 -mpowerpc-gfxopt.
11510
11511 2017-03-14 Martin Sebor <msebor@redhat.com>
11512
11513 PR middle-end/80020
11514 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
11515 * builtins.def (aligned_alloc): Use it.
11516
11517 PR c/79936
11518 * Makefile.in (GTFILES): Add calls.c.
11519 * calls.c: Include "gt-calls.h".
11520
11521 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
11522
11523 PR rtl-optimization/79728
11524 * regs.h (struct target_regs): New field
11525 x_contains_allocatable_regs_of_mode.
11526 (contains_allocatable_regs_of_mode): New macro.
11527 * reginfo.c (init_reg_sets_1): Initialize it, and change
11528 contains_reg_of_mode so it includes global regs as well.
11529 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
11530 rather than contains_regs_of_mode.
11531
11532 2017-03-14 Martin Liska <mliska@suse.cz>
11533
11534 * doc/invoke.texi: Document options that can't be combined with
11535 -fcheck-pointer-bounds.
11536
11537 2017-03-14 Martin Liska <mliska@suse.cz>
11538
11539 PR middle-end/79831
11540 * doc/invoke.texi (-Wchkp): Document the option.
11541
11542 2017-03-14 Martin Liska <mliska@suse.cz>
11543
11544 * Makefile.in: Install gcov-dump.
11545
11546 2017-03-14 Martin Liska <mliska@suse.cz>
11547
11548 * multiple_target.c (expand_target_clones): Bail out for
11549 an invalid attribute.
11550
11551 2017-03-14 Richard Biener <rguenther@suse.de>
11552
11553 * alias.c (struct alias_set_entry): Pack properly.
11554 * cfgloop.h (struct loop): Likewise.
11555 * cse.c (struct set): Likewise.
11556 * ipa-utils.c (struct searchc_env): Likewise.
11557 * loop-invariant.c (struct invariant): Likewise.
11558 * lra-remat.c (struct cand): Likewise.
11559 * recog.c (struct change_t): Likewise.
11560 * rtl.h (struct address_info): Likewise.
11561 * symbol-summary.h (function_summary): Likewise.
11562 * tree-loop-distribution.c (struct partition): Likewise.
11563 * tree-object-size.c (struct object_size_info): Likewise.
11564 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
11565 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
11566 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
11567 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
11568 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
11569 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
11570 (struct _stmt_vec_info): Likewise.
11571
11572 2017-03-14 Martin Liska <mliska@suse.cz>
11573
11574 PR target/79892
11575 * multiple_target.c (create_dispatcher_calls): Check that
11576 a target can create a function dispatcher.
11577
11578 2017-03-14 Martin Liska <mliska@suse.cz>
11579
11580 PR lto/66295
11581 * multiple_target.c (expand_target_clones): Drop local.local
11582 flag for default implementation.
11583
11584 2017-03-14 Richard Biener <rguenther@suse.de>
11585
11586 PR tree-optimization/80030
11587 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
11588
11589 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
11590
11591 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
11592 gcc_fallthrough() instead of __attribute__((fallthrough));
11593
11594 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
11595
11596 * doc/gcc.texi: Remove "up" link to (DIR).
11597 * doc/gccint.texi: Ditto.
11598
11599 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
11600
11601 * doc/install.texi (Specific) <avr>: Remove reference to
11602 binutils 2.13.
11603
11604 2017-03-13 Jeff Law <law@redhat.com>
11605
11606 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
11607 attribute rather than comments.
11608
11609 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
11610 match_scratch operand is highest.
11611
11612 2017-03-13 Martin Liska <mliska@suse.cz>
11613
11614 PR middle-end/78339
11615 * ipa-pure-const.c (warn_function_noreturn): If the declarations
11616 is a CHKP clone, use original declaration.
11617
11618 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11619
11620 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
11621 (arc_conditional_register_usage): Use a different allocation order
11622 when optimizing for size.
11623 * common/config/arc/arc-common.c (arc_option_optimization_table):
11624 Section anchors default on when optimizing for size.
11625
11626 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11627
11628 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
11629
11630 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11631
11632 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
11633 * config/arc/arc.md (cpu_facility): Add cd variant.
11634 (*movqi_insn): Add code density variant.
11635 (*movhi_insn): Likewise.
11636 (*movqi_insn): Likewise.
11637 (*addsi3_mixed): Likewise.
11638 (subsi3_insn): Likewise.
11639
11640 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11641
11642 * config/arc/arc.md (movsi_cond_exec): Update constraint.
11643
11644 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
11645
11646 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
11647 expressions with MINUS and UNARY ops.
11648
11649 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11650
11651 PR target/79911
11652 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
11653 Rename to...
11654 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
11655 between vec_select and vector argument.
11656 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
11657 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
11658 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
11659 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
11660 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
11661 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
11662
11663 2017-03-13 Richard Biener <rguenther@suse.de>
11664
11665 PR other/79991
11666 * params.def (vect-max-peeling-for-alignment): Fix typo.
11667
11668 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11669
11670 * doc/install.texi (Specific) <mips-*-*>: Remove description of
11671 issue that only occurred with binutils below 2.18.
11672
11673 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11674
11675 * doc/install.texi (Specific) <cris-axis-elf>: No longer
11676 refer to binutils 2.11/2.12 minimum.
11677
11678 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
11679
11680 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
11681 ftp.kernel.org and simplify binutils requirement.
11682
11683 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
11684
11685 * doc/invoke.texi (Warning Options): Fix spelling of link-time
11686 optimization.
11687 (Optimize Options): Ditto. Also remove redundancy.
11688
11689 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11690
11691 PR translation/79848
11692 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
11693 "%qs".
11694 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
11695 to G_ to avoid double translation.
11696
11697 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11698
11699 PR translation/79923
11700 * auto-profile.c (get_combined_location): Convert leading
11701 character of diagnostics to lower case and remove trailing period.
11702 (read_profile): Likewise for various diagnostics.
11703 * config/arm/arm.c (arm_option_override): Remove trailing period
11704 from various diagnostics.
11705 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
11706 (msp430_expand_delay_cycles): Likewise.
11707
11708 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11709
11710 PR target/79925
11711 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
11712 full command-line argument, rather than just "str".
11713 (aarch64_validate_march): Likewise.
11714 (aarch64_validate_mtune): Likewise.
11715
11716 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
11717
11718 PR rtl-optimization/78911
11719 * lra-assigns.c (must_not_spill_p): New function.
11720 (spill_for): Use it.
11721
11722 2017-03-10 Jakub Jelinek <jakub@redhat.com>
11723
11724 PR tree-optimization/79981
11725 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
11726 ATOMIC_COMPARE_EXCHANGE ifn result.
11727 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
11728 IFN_ATOMIC_COMPARE_EXCHANGE.
11729
11730 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11731
11732 PR driver/79875
11733 * opts.c (parse_sanitizer_options): Add missing question mark to
11734 "did you mean" message.
11735
11736 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11737
11738 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
11739 built-in.
11740 (VMULEUH_UNS): Likewise.
11741 (VMULOUB_UNS): Likewise.
11742 (VMULOUH_UNS): Likewise.
11743 * config/rs6000/rs6000.c (builtin_function_type): Remove
11744 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
11745
11746 2017-03-10 David Malcolm <dmalcolm@redhat.com>
11747
11748 PR bootstrap/79952
11749 * read-rtl-function.c (function_reader::read_rtx_operand): Update
11750 x with result of extra_parsing_for_operand_code_0.
11751 (function_reader::extra_parsing_for_operand_code_0): Convert
11752 return type from void to rtx, returning x. When reading
11753 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
11754 larger size containing struct block_symbol.
11755
11756 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
11757
11758 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
11759 -mfloat128-hardware without -m64.
11760
11761 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
11762
11763 PR target/79941
11764 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
11765 entries to the case statement that marks unsigned arguments to
11766 overloaded functions.
11767
11768 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11769
11770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
11771 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
11772
11773 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
11774
11775 PR target/79907
11776 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
11777 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
11778
11779 2017-03-10 Martin Liska <mliska@suse.cz>
11780
11781 PR target/65705
11782 PR target/69804
11783 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
11784 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
11785 FIELD != NULL.
11786
11787 2017-03-10 Olivier Hainque <hainque@adacore.com>
11788
11789 * tree-switch-conversion (array_value_type): Start by resetting
11790 candidate type to it's main variant.
11791
11792 2017-03-10 Jakub Jelinek <jakub@redhat.com>
11793
11794 PR rtl-optimization/79909
11795 * combine.c (try_combine): Use simplify_replace_rtx on individual
11796 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
11797 of the whole CALL_INSN_FUNCTION_USAGE.
11798
11799 PR tree-optimization/79972
11800 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
11801 get_range_info on SSA_NAMEs. Formatting fixes.
11802
11803 2017-03-10 Richard Biener <rguenther@suse.de>
11804 Jakub Jelinek <jakub@redhat.com>
11805
11806 PR tree-optimization/77975
11807 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
11808 edge to be constant.
11809 (get_val_for): For constant x return it. Formatting fix.
11810 (loop_niter_by_eval): Avoid pointless looping if the next iteration
11811 would use the same bases as the current one.
11812
11813 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11814
11815 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
11816 instead of vec_select for V1TImode.
11817 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
11818 longer needed.
11819 (VSX_LE_128): Add V1TI to this mode iterator.
11820 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
11821 (*vsx_le_perm_store_<mode>): Likewise.
11822 (pre-reload splitter for VSX stores): Likewise.
11823 (post-reload splitter for VSX stores): Likewise.
11824 (*vsx_xxpermdi2_le_<mode>): Likewise.
11825 (*vsx_lxvd2x2_le_<mode>): Likewise.
11826 (*vsx_stxvd2x2_le_<mode>): Likewise.
11827
11828 2017-03-09 Michael Eager <eager@eagercon.com>
11829
11830 Correct failures with --enable-checking=yes,rtl.
11831
11832 * config/microblaze/microblaze.c (microblaze_expand_shift):
11833 Replace GET_CODE test with CONST_INT_P and INTVAL test with
11834 test for const0_rtx.
11835 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
11836 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
11837
11838 2017-03-09 Richard Biener <rguenther@suse.de>
11839
11840 PR tree-optimization/79977
11841 * graphite-scop-detection.c (scop_detection::merge_sese):
11842 Handle the case of extra exits to blocks dominating the entry.
11843
11844 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
11845
11846 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
11847 Document rdynamic.
11848
11849 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
11850
11851 PR rtl-optimization/79949
11852 * lra-constraints.c (process_alt_operands): Check memory when
11853 trying to predict a cycle. Print about the overall increase.
11854
11855 2017-03-09 Richard Biener <rguenther@suse.de>
11856
11857 PR middle-end/79971
11858 * gimple-expr.c (useless_type_conversion_p): Preserve
11859 TYPE_SATURATING for fixed-point types.
11860
11861 2017-03-09 Richard Biener <rguenther@suse.de>
11862
11863 PR ipa/79970
11864 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
11865 alignment of BLKmode params.
11866
11867 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11868
11869 PR target/79913
11870 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
11871 (VALL_NO_V2Q): Likewise.
11872 (VDQF_DF): Delete.
11873 * config/aarch64/aarch64-simd.md
11874 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
11875 iterator.
11876 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
11877 VALL_NO_V2Q mode iterator.
11878 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
11879
11880 2017-03-09 Martin Liska <mliska@suse.cz>
11881
11882 PR tree-optimization/79631
11883 * tree-chkp-opt.c (chkp_is_constant_addr): Call
11884 tree_int_cst_sign_bit just for INTEGER constants.
11885
11886 2017-03-09 Martin Liska <mliska@suse.cz>
11887
11888 PR target/65705
11889 PR target/69804
11890 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
11891 sanitizers.
11892
11893 2017-03-09 Marek Polacek <polacek@redhat.com>
11894
11895 PR c++/79672
11896 * tree.c (inchash::add_expr): Handle TREE_VEC.
11897
11898 2017-03-09 Martin Liska <mliska@suse.cz>
11899
11900 PR ipa/79764
11901 (chkp_narrow_size_and_offset): New function.
11902 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
11903 (void chkp_parse_bit_field_ref): New function.
11904 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
11905 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
11906
11907 2017-03-09 Martin Liska <mliska@suse.cz>
11908
11909 PR ipa/79761
11910 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
11911 (chkp_find_bounds_1): Remove gcc_unreachable.
11912
11913 2017-03-09 Jakub Jelinek <jakub@redhat.com>
11914
11915 PR sanitizer/79944
11916 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
11917 BUILT_IN_SYNC*, determine the access type from the size suffix and
11918 always build a MEM_REF with that type. Handle forgotten
11919 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
11920
11921 PR target/79932
11922 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
11923 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
11924 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
11925 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
11926 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
11927 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
11928 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
11929 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
11930 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
11931 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
11932 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
11933 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
11934 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
11935 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
11936 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
11937 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
11938 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
11939 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
11940 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
11941 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
11942 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
11943 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
11944 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
11945 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
11946 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
11947 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
11948 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
11949 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
11950 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
11951 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
11952 definitions outside of __OPTIMIZE__ guarded section.
11953
11954 PR target/79932
11955 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
11956 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
11957 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
11958 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
11959 guarded section.
11960
11961 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11962
11963 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
11964 ("vfenez<mode>"): Add missing constraints.
11965
11966 2017-03-08 Martin Sebor <msebor@redhat.com>
11967
11968 PR target/79928
11969 * config/nds32/nds32.c (nds32_option_override):
11970 Fix misspelled diagnostic.
11971
11972 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11973
11974 PR c/79940
11975 * gimplify.c (gimplify_omp_for): Replace index var in outer
11976 taskloop statement with an artificial variable and add
11977 OMP_CLAUSE_PRIVATE clause for it.
11978
11979 2017-03-08 Richard Biener <rguenther@suse.de>
11980
11981 PR tree-optimization/79955
11982 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
11983 for accesses that are completely outside of the variable.
11984
11985 2017-03-08 Andrew Haley <aph@redhat.com>
11986
11987 PR tree-optimization/79943
11988 * tree-ssa-loop-split.c (compute_new_first_bound): When
11989 calculating the new upper bound, (END-BEG) should be added, not
11990 subtracted.
11991
11992 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11993
11994 * config/avr/avr.md (setmemhi): Make sure match_dup
11995 operand number comes before match_scratch.
11996
11997 2017-03-08 Richard Biener <rguenther@suse.de>
11998
11999 PR tree-optimization/79920
12000 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
12001 with ncopies == 1 to ...
12002 (vect_transform_slp_perm_load): ... here. Properly compute
12003 all element loads by iterating VF times over the group. Do
12004 not handle ncopies (computed in a broken way) in
12005 vect_create_mask_and_perm.
12006
12007 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12008
12009 PR sanitizer/79904
12010 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
12011 is a uniform vector, use uniform_vector_p return value instead of
12012 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
12013
12014 2017-03-07 Marek Polacek <polacek@redhat.com>
12015
12016 PR middle-end/79809
12017 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
12018 (alloca_call_type): Likewise.
12019
12020 2017-03-07 Martin Liska <mliska@suse.cz>
12021
12022 * gcov.c (process_args): Put comment to correct location.
12023
12024 2017-03-07 Martin Liska <mliska@suse.cz>
12025
12026 PR middle-end/68270
12027 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
12028 Use array_at_struct_end_p instead of DECL_CHAIN (field).
12029 (chkp_narrow_bounds_for_field): Likewise.
12030 (chkp_parse_array_and_component_ref): Pass one more argument to
12031 call.
12032
12033 2017-03-07 Richard Biener <rguenther@suse.de>
12034
12035 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
12036 preheaders.
12037
12038 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
12039
12040 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
12041 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
12042
12043 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12044
12045 PR c/79855
12046 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
12047 to end of description.
12048 (PARAM_MAX_STORES_TO_MERGE): Likewise.
12049
12050 2017-03-07 Jakub Jelinek <jakub@redhat.com>
12051
12052 PR rtl-optimization/79901
12053 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
12054 ...
12055 (*avx512f_<code><mode>3<mask_name>): ... this.
12056 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
12057 iterator instead of VI8_AVX2_AVX512BW.
12058
12059 PR rtl-optimization/79901
12060 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
12061 min/max expander, expand it using expand_vec_cond_expr.
12062
12063 PR sanitizer/79897
12064 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
12065 temporary.
12066
12067 2017-03-06 Jakub Jelinek <jakub@redhat.com>
12068
12069 PR c++/79821
12070 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
12071 to void * for PCH reasons.
12072 * dwarf2out.c (output_loc_operands, output_die): Cast
12073 v.val_vec.array to unsigned char *.
12074
12075 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
12076
12077 PR target/77850
12078 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
12079 vector types.
12080
12081 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
12082
12083 PR rtl-optimization/79571
12084 * lra-constraints.c (process_alt_operands): Calculate static
12085 reject and subtract it from overall when only addresses will be
12086 reloaded.
12087
12088 2017-03-06 Julia Koval <julia.koval@intel.com>
12089
12090 PR target/79793
12091 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
12092 incoming stack boundary to 128 for 64-bit targets.
12093
12094 2017-03-06 Richard Biener <rguenther@suse.de>
12095
12096 PR tree-optimization/79894
12097 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
12098 to NULL after folding it.
12099
12100 2017-03-06 Richard Biener <rguenther@suse.de>
12101
12102 PR tree-optimization/79824
12103 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
12104 check disabling peeling for gaps.
12105
12106 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
12107
12108 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
12109 attributes): Document gettimeofday.
12110
12111 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
12112
12113 * config/s390/s390.c (s390_option_override_internal): Set
12114 PARAM_MIN_VECT_LOOP_BOUND
12115
12116 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
12117
12118 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
12119 * config/s390/s390.md: Likewise.
12120
12121 2017-03-06 Jakub Jelinek <jakub@redhat.com>
12122
12123 PR target/79812
12124 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
12125 (<avx2_avx512>_perm<mode>): Rename to ...
12126 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
12127 of VI8F_256_512.
12128 (<avx512>_perm<mode>_mask): Rename to ...
12129 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
12130 of VI8F_256_512.
12131 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
12132 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
12133 instead of VI8F_256_512.
12134 (avx512f_perm<mode>): New define_expand.
12135 (avx512f_perm<mode>_mask): Likewise.
12136 (avx512f_perm<mode>_1<mask_name>): New define_insn.
12137 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
12138
12139 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12140
12141 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
12142 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
12143 if_then_else.
12144 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
12145
12146 2017-03-06 Martin Liska <mliska@suse.cz>
12147
12148 PR sanitize/79783
12149 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
12150 when having a SSA NAME w/o VAR_DECL assigned to it.
12151
12152 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12153
12154 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
12155 msa_dpsub_<su>_d): Fix MODE for vec_select.
12156
12157 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
12158
12159 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
12160 argument.
12161 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
12162
12163 2017-03-06 Richard Biener <rguenther@suse.de>
12164
12165 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
12166 * plugin.c (register_plugin_info): Likewise.
12167 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
12168
12169 2017-03-05 Jakub Jelinek <jakub@redhat.com>
12170
12171 * config/i386/sse.md (sse_storehps, sse_storelps,
12172 avx_<castmode><avxsizesuffix>_<castmode>,
12173 avx512f_<castmode><avxsizesuffix>_<castmode>,
12174 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
12175 in condition that at least one operand is not a MEM.
12176
12177 2017-03-03 Jakub Jelinek <jakub@redhat.com>
12178
12179 PR middle-end/79805
12180 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
12181 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
12182 ECF_NOTHROW.
12183 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
12184 gimple_call_nothrow_p flag based on whether original builtin can throw.
12185 If it can, emit following stmts on the fallthrough edge.
12186 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
12187 don't create new bb if inserting just debug stmts on the edge, try to
12188 insert them on the fallthru bb or just reset debug stmts.
12189
12190 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
12191
12192 PR target/43763
12193 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
12194 restore recog_data (including the operand rtxes inside it) around
12195 the call to get_insn_template.
12196
12197 2017-03-03 Martin Sebor <msebor@redhat.com>
12198
12199 PR tree-optimization/79699
12200 * context.c (context::~context): Free MPFR caches to avoid
12201 a memory leak on program exit.
12202
12203 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12204
12205 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
12206 Use wide_int::ulow () instead of .elt (0).
12207
12208 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
12209
12210 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
12211 (*pushxf): Limit oF constraint to 32bit targets and add oC
12212 constraint for 64bit targets.
12213 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
12214 (*pushdf): Change rmF constraint to rmC.
12215
12216 2017-03-03 Martin Liska <mliska@suse.cz>
12217
12218 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
12219 Remove unused variable.
12220
12221 2017-03-03 Jakub Jelinek <jakub@redhat.com>
12222
12223 PR target/79807
12224 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
12225 is a memory operand, increase num_memory.
12226 (ix86_expand_args_builtin): Likewise.
12227
12228 2017-03-03 Jan Hubicka <jh@suse.cz>
12229
12230 PR lto/79760
12231 * ipa-devirt.c (maybe_record_node): Properly handle
12232 __cxa_pure_virtual visibility.
12233
12234 2017-03-03 Martin Liska <mliska@suse.cz>
12235
12236 PR tree-optimization/79803
12237 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
12238 assert.
12239 (pass_loop_prefetch::execute): Disabled optimization if an
12240 assumption about L1 cache size is not met.
12241
12242 2017-03-03 Martin Liska <mliska@suse.cz>
12243
12244 PR rtl-optimization/79574
12245 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
12246 (hash_scan_set): Likewise.
12247 (dump_hash_table): Likewise.
12248 (hoist_code): Likewise.
12249
12250 2017-03-03 Richard Biener <rguenther@suse.de>
12251
12252 * fixed-value.c (fixed_from_string): Restore use of elt (1)
12253 in place of uhigh ().
12254 (fixed_convert_from_real): Likewise.
12255
12256 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
12257
12258 PR target/79514
12259 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
12260
12261 2017-03-03 Richard Biener <rguenther@suse.de>
12262
12263 PR middle-end/79818
12264 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
12265 TYPE_OVERFLOW_UNDEFINED check.
12266
12267 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12268
12269 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
12270 numbers.
12271 (vector_ae_<mode>_p): Likewise.
12272 (vector_nez_<mode>_p): Likewise.
12273 (vector_ne_v2di_p): Likewise.
12274 (vector_ae_v2di_p): Likewise.
12275 (vector_ne_<mode>_p): Likewise.
12276 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
12277 numbers.
12278 (vsx_tsqrt<mode>2_fe): Likewise.
12279
12280 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
12281
12282 PR target/79514
12283 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
12284
12285 2017-03-02 Jakub Jelinek <jakub@redhat.com>
12286
12287 PR rtl-optimization/79780
12288 * cprop.c (one_cprop_pass): When second and further conditional trap
12289 in a single basic block is turned into an unconditional trap, turn it
12290 into a deleted note to avoid RTL verification failures.
12291
12292 2017-03-02 Richard Biener <rguenther@suse.de>
12293
12294 * fold-const.c (const_binop): Use ulow () instead of elt (0).
12295
12296 2017-03-02 Richard Biener <rguenther@suse.de>
12297
12298 PR tree-optimization/79345
12299 PR c++/42000
12300 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
12301 param and abort the walk, returning -1 if it is hit.
12302 (walk_aliased_vdefs): Take a limit param and pass it on.
12303 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
12304 defaulting to 0 and return a signed int.
12305 * tree-ssa-uninit.c (struct check_defs_data): New struct.
12306 (check_defs): New helper.
12307 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
12308 about uninitialized memory.
12309 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
12310 bogus uninitialized warning.
12311 (fixed_convert_from_real): Likewise.
12312
12313 2017-03-02 Bin Cheng <bin.cheng@arm.com>
12314
12315 PR tree-optimization/66768
12316 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
12317 iv_use if base object can't be determined.
12318
12319 2017-03-02 Jakub Jelinek <jakub@redhat.com>
12320
12321 PR tree-optimization/79345
12322 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
12323 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
12324 (get_pattern_stats): Initialize it.
12325 * genemit.c (gen_expand): Verify match_scratch numbers come after
12326 match_operand/match_dup numbers.
12327 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
12328 match_scratch numbers.
12329 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
12330 Likewise.
12331 * config/s390/s390.md (trunctdsd2): Likewise.
12332
12333 2017-03-02 Richard Biener <rguenther@suse.de>
12334
12335 * wide-int.h (wide_int_storage::operator=): Implement in terms
12336 of wi::copy.
12337
12338 2017-03-02 Richard Biener <rguenther@suse.de>
12339
12340 PR tree-optimization/79777
12341 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
12342 the to insert expression to sth existing.
12343
12344 2017-03-01 Martin Sebor <msebor@redhat.com>
12345
12346 PR middle-end/79692
12347 * gimple-ssa-sprintf.c
12348 (directive::known_width_and_precision): New function.
12349 (format_integer): Use it.
12350 (get_mpfr_format_length): Consider the full range of precision
12351 when computing %g output with the # flag. Set the likely byte
12352 count to 3 rather than 1 when precision is indeterminate.
12353 (format_floating): Correct the lower bound of precision.
12354
12355 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12356
12357 * doc/invoke.texi: Document default code model for 64-bit Linux.
12358
12359 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
12360
12361 PR target/79752
12362 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
12363 udiv rather than div since input pattern is unsigned.
12364
12365 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
12366
12367 * config/i386/i386.c (print_reg): Warn for values of
12368 unsupported size in integer register.
12369
12370 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12371
12372 PR target/79439
12373 * config/rs6000/predicates.md (current_file_function_operand): Do
12374 not allow self calls to be local if the function is replaceable.
12375
12376 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
12377
12378 PR target/79395
12379 * config/rs6000/altivec.h (vec_ctz and others): Change the
12380 preprocessor macro that controls conditional compilation from
12381 _ARCH_PWR9 to __POWER9_VECTOR__.
12382 (vec_all_ne): Change parameterization of __altivec_scalar_pred
12383 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
12384 control (instead of _ARCH_PWR9 control) so that template
12385 definition uses power9-specific function.
12386 (vec_any_eq): Likewise.
12387 (vec_all_ne): Change macro definition to use a power9-specific
12388 expansion under #ifdef __POWER9_VECTOR__ control (instead of
12389 _ARCH_PWR9 control).
12390 (vec_any_eq) Likewise.
12391 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
12392 expansion for CMPNEF to remove support for xvcmpnesp instruction.
12393 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
12394 support for xvcmpnedp instruction.
12395 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
12396 macro expansion so that Power9 implementation of vec_all_ne does
12397 not use the AltiVec predicate framework.
12398 (VCMPNEH_P): Likewise.
12399 (VCMPNEW_P): Likewise.
12400 (VCMPNED_P): Likewise.
12401 (VCMPNEFP_P): Likewise.
12402 (VCMPNEDP_P): Likewise.
12403 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
12404 implementation of vec_any_eq to not use AltiVec predicate
12405 framework.
12406 (VCMPAEH_P): Likewise.
12407 (VCMPAEW_P): Likewise.
12408 (VCMPAED_P): Likewise.
12409 (VCMPAEFP_P): Likewise.
12410 (VCMPAEDP_P): Likewise.
12411 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
12412 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
12413 not use the AltiVec predicate framework.
12414 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
12415 of vec_any_eq to not use AltiVec predicate framework.
12416 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
12417 support for predefined __POWER9_VECTOR__ macro to indicate that
12418 Power9 instruction selection is enabled.
12419 (altivec_overloaded_builtins): Remove extraneous
12420 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
12421 function argument types RS6000_BTI_bool_V16QI and
12422 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
12423 entry for overloaded function argument types RS6000_BTI_bool_V4SI
12424 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
12425 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
12426 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
12427 Power9 for implementations of vec_cmpne. Change the signature for
12428 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
12429 (representing vec_all_ne) to remove the previously described first
12430 argument of type RS6000_BTI_INTSI, as this was an artifact of
12431 reliance on the AltiVec predicate framework, which is no longer
12432 used in the implementation of these functions. Add
12433 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
12434 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
12435 since, unlike the AltiVec predicate framework implementation, we
12436 do not share function descriptors between vec_alle and vec_anyeq.
12437 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
12438 set of modes that receive special treatment even when
12439 TARGET_P9_VECTOR is true. The special treatment emits code that
12440 does not depend on Power9 instructions.
12441 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
12442 define_expand to not rely on AltiVec predicate framework.
12443 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12444 function.
12445 (vector_ne_v2di_p): Change this define_expand to not rely on
12446 AltiVec predicate framework.
12447 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
12448 function.
12449 (vector_ne_<mode>_p): Change this define_expand to not rely on
12450 AltiVec predicate framework.
12451 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
12452 function.
12453 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
12454 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
12455 define_insn pattern.
12456 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
12457 define_insn pattern because the xvcmpne<VSs>. instruction is not
12458 supported.
12459 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
12460 instruction is not supported.
12461
12462 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12463
12464 * config/nvptx/nvptx.c: Include intl.h.
12465
12466 2017-03-01 Martin Jambor <mjambor@suse.cz>
12467
12468 PR lto/78140
12469 * ipa-prop.h (ipa_bits): Removed field known.
12470 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
12471 to pointers. Adjusted their comments to warn about their sharing.
12472 (ipcp_transformation_summary): Change bits to a vector of pointers.
12473 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
12474 (ipa_get_ipa_bits_for_value): Declare.
12475 * tree-vrp.h (value_range): Mark as GTY((for_user)).
12476 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
12477 (ipa_bits_hash_table): Likewise.
12478 (ipa_vr_ggc_hash_traits): Likewise.
12479 (ipa_vr_hash_table): Likewise.
12480 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
12481 being pointers and vr_known being removed.
12482 (ipa_set_jf_unknown): Likewise.
12483 (ipa_get_ipa_bits_for_value): New function.
12484 (ipa_set_jfunc_bits): Likewise.
12485 (ipa_get_value_range): New overloaded functions.
12486 (ipa_set_jfunc_vr): Likewise.
12487 (ipa_compute_jump_functions_for_edge): Use the above functions to
12488 construct bits and vr parts of jump functions.
12489 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
12490 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12491 exist.
12492 (ipcp_grow_transformations_if_necessary): Also allocate
12493 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
12494 exist.
12495 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
12496 them. Fix too long lines.
12497 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
12498 vr_known being removed.
12499 (ipa_read_jump_function): Use new setter functions to construct bits
12500 and vr parts of jump functions or set them to NULL.
12501 (write_ipcp_transformation_info): Adjust for bits being pointers.
12502 (read_ipcp_transformation_info): Likewise.
12503 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
12504 space.
12505 Include gt-ipa-prop.h.
12506 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
12507 being pointers.
12508 (ipcp_store_bits_results): Likewise.
12509 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
12510 Do not write to existing jump functions but use a temporary instead.
12511
12512 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12513
12514 PR c++/79681
12515 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
12516 attempt to use its first operand as BIT_FIELD_REF base.
12517
12518 2017-03-01 Richard Biener <rguenther@suse.de>
12519
12520 PR middle-end/79721
12521 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
12522 interpolating formula in wrapping arithmetic.
12523 (chrec_apply): Convert chrec_evaluate return value to wanted type.
12524
12525 2017-03-01 Jakub Jelinek <jakub@redhat.com>
12526
12527 PR tree-optimization/79734
12528 * tree-vect-generic.c (expand_vector_condition): Optimize
12529 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
12530 Handle VEC_COND_EXPR where comparison has different inner width from
12531 type's inner width.
12532
12533 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
12534
12535 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
12536 markup, and similar issues. Remove @opindex entries for things
12537 that aren't options. Add missing -mmpy-option entries.
12538
12539 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12540
12541 PR tree-optimization/79737
12542 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
12543 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
12544 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
12545 instead of byte_size. Formatting fix.
12546 (shift_bytes_in_array_right): Formatting fix.
12547
12548 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
12549
12550 PR target/79749
12551 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
12552 condition on optimize for the leaf function test.
12553
12554 2017-02-28 Martin Liska <mliska@suse.cz>
12555
12556 PR lto/79625
12557 * read-rtl-function.c (function_reader::handle_unknown_directive):
12558 Bail out when one uses -flto.
12559
12560 2017-02-28 Martin Liska <mliska@suse.cz>
12561
12562 * common.opt: Replace space with tabular for options of <number>
12563 type.
12564 * config/i386/i386.opt: Show <number> value for
12565 -mlarge-data-threshold.
12566 * opts.c (print_filtered_help): Do not display number in hexadecimal
12567 format.
12568
12569 2017-02-28 Martin Liska <mliska@suse.cz>
12570
12571 * common.opt: Fix --help=option -Q for options which are of
12572 an enum type.
12573
12574 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
12575
12576 * config/i386/i386.c (print_reg): Error out for values
12577 of 8-bit size in invalid integer register.
12578
12579 2017-02-28 Martin Sebor <msebor@redhat.com>
12580
12581 PR tree-optimization/79691
12582 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
12583
12584 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12585
12586 PR target/79729
12587 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
12588 gcc_unreachable with output_operand_lossage.
12589
12590 2017-02-28 Richard Biener <rguenther@suse.de>
12591
12592 PR tree-optimization/79740
12593 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
12594 inserts.
12595 (visit_nary_op): Insert the nary into the hashtable if we
12596 pattern-matched sth.
12597 * tree-ssa-pre.c (eliminate_insert): Robustify.
12598
12599 2017-02-28 Richard Biener <rguenther@suse.de>
12600
12601 PR middle-end/79731
12602 * fold-const.c (decode_field_reference): Reject out-of-bound
12603 accesses.
12604
12605 2017-02-28 Jakub Jelinek <jakub@redhat.com>
12606
12607 * config/i386/i386.c: Include intl.h.
12608 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
12609 instead of just cond ? "..." : "...".
12610 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
12611 * coverage.c (read_counts_file): Likewise.
12612 * omp-offload.c: Include intl.h.
12613 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
12614 of just cond ? "..." : "...".
12615 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
12616 of just cond ? "..." : "...".
12617
12618 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
12619
12620 PR target/79742
12621 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
12622 entry, if present.
12623 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
12624 'tune for' CPU name.
12625 * config/arm/arm-cpu-data.h: Regenerated.
12626
12627 2017-02-28 Richard Biener <rguenther@suse.de>
12628
12629 PR tree-optimization/79732
12630 * tree-inline.c (expand_call_inline): Do not shadow var.
12631
12632 2017-02-28 Richard Biener <rguenther@suse.de>
12633
12634 PR tree-optimization/79723
12635 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
12636 address-space properly.
12637
12638 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
12639
12640 * doc/optinfo.texi (Optimization groups): Fix option used for
12641 OPTGROUP_ALL.
12642 * doc/invoke.texi (-fopt-info): Document "omp".
12643 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
12644 (OPTGROUP_ALL): Add OPTGROUP_OMP.
12645 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
12646 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
12647 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
12648
12649 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
12650 all users.
12651 * dumpfile.c (optgroup_options): Instead of "openmp", associate
12652 OPTGROUP_OMP with "omp".
12653
12654 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
12655
12656 PR target/79544
12657 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
12658 for arithmetic shift of unsigned V2DI.
12659
12660 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
12661
12662 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
12663 arc/linux.h headers.
12664 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
12665 (LINK_SPEC): Likewise.
12666 (ARC_TLS_EXTRA_START_SPEC): Likewise.
12667 (EXTRA_SPECS): Likewise.
12668 (STARTFILE_SPEC): Likewise.
12669 (ENDFILE_SPEC): Likewise.
12670 (LIB_SPEC): Likewise.
12671 (TARGET_SDATA_DEFAULT): Likewise.
12672 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
12673 (MULTILIB_DEFAULTS): Likewise.
12674 (DWARF2_UNWIND_INFO): Likewise.
12675 * config/arc/big.h: New file.
12676 * config/arc/elf.h: Likewise.
12677 * config/arc/linux.h: Likewise.
12678 * config/arc/t-uClibc: Remove.
12679
12680 2017-02-27 Bin Cheng <bin.cheng@arm.com>
12681
12682 PR tree-optimization/77536
12683 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
12684 (tree_transform_and_unroll_loop): Use above function to compute the
12685 estimated niter of unrolled loop and use it when scaling profile.
12686 Also use count info rather than frequency if it's non-zero.
12687 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
12688 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
12689 (vect_transform_loop): Call above function.
12690
12691 2017-02-27 Richard Biener <rguenther@suse.de>
12692
12693 PR tree-optimization/45397
12694 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
12695 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
12696 (visit_nary_op): Add pattern matching for CSEing sign-changed
12697 or truncated operations with wider ones.
12698
12699 2017-02-27 Richard Biener <rguenther@suse.de>
12700
12701 PR tree-optimization/79690
12702 * tree-vect-stmts.c (vectorizable_store): Use vector type
12703 built from the DR with address-space.
12704
12705 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12706
12707 * doc/invoke.texi (Optimize Options): Refine the description
12708 of asan-use-after-return.
12709
12710 2017-02-25 Alan Modra <amodra@gmail.com>
12711
12712 PR rtl-optimization/79584
12713 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
12714 base, not ad->base_term, the reg within base. Remove assertion
12715 that ad->base == ad->base_term. Replace gen_int_mode using
12716 bogus mode with const0_rtx.
12717
12718 2017-02-25 Jakub Jelinek <jakub@redhat.com>
12719
12720 PR middle-end/79396
12721 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
12722 FMA_EXPR like tcc_binary or tcc_unary.
12723
12724 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
12725
12726 PR debug/77589
12727 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
12728 bitfield.
12729 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
12730 (output_loc_operands): Handle DW_OP_call_ref and
12731 DW_OP_GNU_variable_value.
12732 (struct variable_value_struct): New type.
12733 (struct variable_value_hasher): Likewise.
12734 (variable_value_hash): New variable.
12735 (string_types): Remove.
12736 (copy_loc_descr): New function.
12737 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
12738 (prepend_loc_descr_to_each): New function.
12739 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
12740 instead of add_loc_descr_to_each if the first argument is single
12741 location list and the second has multiple.
12742 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
12743 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
12744 when looking for variable value which doesn't have other location info.
12745 (loc_list_from_tree): Formatting fix.
12746 (gen_array_type_die): Simplify DW_AT_string_length handling.
12747 (adjust_string_types): Remove.
12748 (gen_subprogram_die): Don't call adjust_string_types nor test/set
12749 string_types. Call resolve_variable_values.
12750 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
12751 (resolve_addr_in_expr): Likewise. Add A argument.
12752 (copy_deref_exprloc): Remove deref argument. Adjust for the
12753 original expression being DW_OP_GNU_variable_value with optionally
12754 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
12755 optionally after it.
12756 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
12757 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
12758 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
12759 (variable_value_hasher::hash, variable_value_hasher::equal): New
12760 methods.
12761 (resolve_variable_value_in_expr, resolve_variable_value,
12762 resolve_variable_values, note_variable_value_in_expr,
12763 note_variable_value): New functions.
12764 (dwarf2out_early_finish): Call note_variable_value on all toplevel
12765 DIEs.
12766
12767 2017-02-24 Jakub Jelinek <jakub@redhat.com>
12768
12769 PR c/79677
12770 * opts.h (handle_generated_option): Add GENERATED_P argument.
12771 * opts-common.c (handle_option): Adjust function comment.
12772 (handle_generated_option): Add GENERATED_P argument, pass it to
12773 handle_option.
12774 (control_warning_option): Pass false to handle_generated_option
12775 GENERATED_P.
12776 * opts.c (maybe_default_option): Pass true to handle_generated_option
12777 GENERATED_P.
12778 * optc-gen.awk: Likewise.
12779
12780 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12781
12782 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
12783 a REG, look at the REG it is a SUBREG of.
12784 (splitter for cmpeqsi_t): Ditto.
12785
12786 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12787
12788 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
12789 the special USEs with the pattern of the insn, not the insn itself.
12790
12791 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
12792
12793 PR target/79473
12794 * doc/invoke.texi: Document -mload-store-pairs.
12795
12796 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12797 Sandra Loosemore <sandra@codesourcery.com>
12798
12799 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
12800 argument isn't a CONST_INT.
12801 (nios2_alternate_compare_const): Assert op is a CONST_INT.
12802 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
12803 (nios2_validate_compare): Bypass alternate compare logic if *op2
12804 is not a CONST_INT.
12805 (ldstwm_operation_p): Return false if first_base is not a REG or
12806 if first_offset is not a CONST_INT.
12807
12808 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12809
12810 * config/cris/cris.md: Use correct operand in a define_peephole2.
12811
12812 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12813
12814 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
12815
12816 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
12817
12818 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
12819 this_insn if it is an INSN or JUMP_INSN.
12820 (force_offsettable): Look at base, not at addr.
12821 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
12822 on things that aren't necessarily CONST_INTs.
12823
12824 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
12825
12826 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
12827 -mfpmath=sse is the default also for x86-32 targets with SSE2
12828 instruction set when @option{-ffast-math} is enabled
12829
12830 2017-02-24 Jeff Law <law@redhat.com>
12831
12832 PR rtl-optimizatoin/79286
12833 * ira.c (update_equiv_regs): Drop may_trap_p exception to
12834 dominance test.
12835
12836 2017-02-24 Richard Biener <rguenther@suse.de>
12837
12838 PR tree-optimization/79389
12839 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
12840 debug insns.
12841
12842 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
12843
12844 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
12845 function comment to reflect reality.
12846 (loop_exits_before_overflow): Fix typo in function description.
12847
12848 2017-02-24 Richard Biener <rguenther@suse.de>
12849
12850 PR tree-optimization/79389
12851 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
12852 properly that a threading opportunity exists. Detect conditional
12853 copy/constant propagation opportunities.
12854
12855 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
12856
12857 * config/visium/visium.md (type): Add trap.
12858 (b): New mode attribute.
12859 (*btst): Rename into...
12860 (*btst<mode>): ...this and adjust.
12861 (*cbranchsi4_btst_insn): Rename into...
12862 (*cbranch<mode>4_btst_insn): ...this and adjust.
12863 (trap): New define_insn.
12864
12865 2017-02-23 Jakub Jelinek <jakub@redhat.com>
12866
12867 PR tree-optimization/79389
12868 * ifcvt.c (struct noce_if_info): Add rev_cond field.
12869 (noce_reversed_cond_code): New function.
12870 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
12871 reversed_comparison_code. Formatting fix.
12872 (noce_try_store_flag): Test rev_cond != NULL in addition to
12873 reversed_comparison_code.
12874 (noce_try_store_flag_constants): Likewise.
12875 (noce_try_store_flag_mask): Likewise.
12876 (noce_try_addcc): Use rev_cond if non-NULL instead of
12877 reversed_comparison_code.
12878 (noce_try_cmove_arith): Likewise. Formatting fixes.
12879 (noce_try_minmax, noce_try_abs): Clear rev_cond.
12880 (noce_find_if_block): Initialize rev_cond.
12881 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
12882 instead of false as last argument never attempt to reverse it
12883 afterwards.
12884
12885 2017-02-23 Bin Cheng <bin.cheng@arm.com>
12886
12887 PR tree-optimization/79663
12888 * tree-predcom.c (combine_chains): Process refs in reverse order
12889 only for ZERO length chains, and add explaining comment.
12890
12891 2017-02-23 Jeff Law <law@redhat.com>
12892
12893 PR tree-optimization/79578
12894 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
12895 in call to operand_equal_p.
12896
12897 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
12898
12899 PR target/71017
12900 * config/i386/cpuid.h: Fix another undefined behavior.
12901
12902 2017-02-23 Richard Biener <rguenther@suse.de>
12903
12904 PR tree-optimization/79683
12905 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
12906 vector types for data-refs.
12907
12908 2017-02-23 Martin Liska <mliska@suse.cz>
12909
12910 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
12911
12912 2017-02-23 Jakub Jelinek <jakub@redhat.com>
12913
12914 PR middle-end/79665
12915 * internal-fn.c (get_range_pos_neg): Moved to ...
12916 * tree.c (get_range_pos_neg): ... here. No longer static.
12917 * tree.h (get_range_pos_neg): New prototype.
12918 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
12919 are known to be in between 0 and signed maximum inclusive, try to
12920 expand both unsigned and signed divmod and use the cheaper one from
12921 those.
12922
12923 2017-02-22 Jeff Law <law@redhat.com>
12924
12925 PR tree-optimization/79578
12926 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
12927 to compare base operands.
12928
12929 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
12930
12931 PR target/79211
12932 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
12933 gpc_reg_operand instead of fpr_reg_operand.
12934
12935 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
12936
12937 * config/mips/mips.c (mips_return_in_memory): Force FP
12938 vector types to be returned in memory for o32 ABI.
12939
12940 2017-02-22 Jakub Jelinek <jakub@redhat.com>
12941
12942 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
12943 instead of DW_TAG_member for static data member declarations and don't
12944 set no_linkage_name for static inline data members.
12945 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
12946 to DW_TAG_member.
12947
12948 2017-02-22 Martin Liska <mliska@suse.cz>
12949
12950 * doc/invoke.texi: Replace inequality signs with square brackets
12951 for -Wnormalized.
12952
12953 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12954
12955 PR tree-optimization/68644
12956 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
12957
12958 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
12959
12960 PR target/78660
12961 * lra-constraints.c (simplify_operand_subreg): Handle
12962 WORD_REGISTER_OPERATIONS targets.
12963
12964 2017-02-22 Jakub Jelinek <jakub@redhat.com>
12965
12966 PR target/70465
12967 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
12968 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
12969 elimination by swapping fld*.
12970
12971 2017-02-22 Richard Biener <rguenther@suse.de>
12972
12973 PR tree-optimization/79673
12974 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
12975 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
12976 irrelevant address-space qualifiers and avoiding a
12977 ADDR_SPACE_CONVERT_EXPR from fold_convert.
12978
12979 2017-02-22 Richard Biener <rguenther@suse.de>
12980
12981 PR tree-optimization/79666
12982 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
12983 to not symbolically negate if that may introduce undefined
12984 overflow.
12985
12986 2017-02-22 Martin Liska <mliska@suse.cz>
12987
12988 PR lto/79587
12989 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
12990 * data-streamer-out.c (streamer_write_gcov_count_stream):
12991 Likewise.
12992 * value-prof.c (stream_out_histogram_value): Make assert more
12993 precise based on type of counter.
12994
12995 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
12996
12997 PR target/79593
12998 * config/i386/i386.md (standard_x87sse_constant_load splitter):
12999 Use nonimmediate_operand instead of memory_operand for operand 1.
13000 (float-extend standard_x87sse_constant_load splitter): Ditto.
13001
13002 2017-02-21 Jeff Law <law@redhat.com>
13003
13004 PR tree-optimization/79621
13005 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
13006 blocks with edges to themselves.
13007
13008 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13009
13010 PR target/79633
13011 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
13012 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
13013 Use gimple_call_builtin_p.
13014
13015 PR target/79570
13016 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
13017 on temporarily removed DEBUG_INSNs.
13018
13019 PR tree-optimization/79649
13020 * tree-loop-distribution.c (classify_partition): Give up on
13021 non-generic address space loads/stores.
13022
13023 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
13024
13025 * doc/loop.texi (Loop manipulation): Remove nonexistent
13026 tree_ssa_loop_version from the documentation.
13027 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
13028
13029 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13030
13031 PR target/79494
13032 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
13033 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
13034 * config/rs6000/rs6000.c: Include except.h.
13035 (rs6000_expand_split_stack_prologue): Call
13036 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
13037
13038 2017-02-21 Martin Jambor <mjambor@suse.cz>
13039
13040 PR lto/79579
13041 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
13042 have been analyzed.
13043
13044 2017-02-21 Martin Jambor <mjambor@suse.cz>
13045
13046 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
13047 for backward compatibility only.
13048 * doc/invoke.texi (Option Summary): Remove all references to
13049 -fipa-cp-alignment.
13050
13051 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
13052
13053 PR target/78660
13054 Revert:
13055 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13056
13057 * lra-constraints.c (curr_insn_transform): Handle
13058 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
13059
13060 2017-02-21 Martin Liska <mliska@suse.cz>
13061
13062 * config/i386/i386.opt: Replace -masm-dialect with -masm.
13063
13064 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
13065
13066 PR translation/79638
13067 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
13068
13069 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
13070
13071 PR ada/67205
13072 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
13073 (arm_function_ok_for_sibcall): Return false for an indirect call by
13074 descriptor if all the argument registers are used.
13075 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
13076 alignment of the function.
13077
13078 2017-02-21 Jakub Jelinek <jakub@redhat.com>
13079
13080 PR tree-optimization/61441
13081 * simplify-rtx.c (simplify_const_unary_operation): For
13082 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
13083 the sNaN unmodified.
13084
13085 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13086
13087 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
13088 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
13089 instead of SYSTEM_HEADER_DIR.
13090
13091 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
13092 Martin Liška <mliska@suse.cz>
13093
13094 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
13095 Fix typos and grammar, use active voice, and clarify.
13096
13097 2017-02-20 Marek Polacek <polacek@redhat.com>
13098
13099 PR middle-end/79537
13100 * gimplify.c (gimplify_expr): Handle unused *&&L;.
13101
13102 PR sanitizer/79558
13103 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
13104
13105 2017-02-20 Jakub Jelinek <jakub@redhat.com>
13106
13107 PR target/79568
13108 * config/i386/i386.c (ix86_expand_builtin): Handle
13109 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
13110 ix86_builtins_isa[fcode].isa as a requirement of those
13111 flags and any other flag in the bitmask.
13112 (ix86_init_mmx_sse_builtins): Use 0 instead of
13113 ~OPTION_MASK_ISA_64BIT as mask.
13114 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
13115 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
13116 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
13117 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
13118
13119 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13120
13121 PR target/78012
13122 * lra-constraints.c (split_reg): Check requested split mode
13123 is supported by the register.
13124
13125 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13126
13127 * lra-constraints.c (simplify_operand_subreg): Remove early
13128 return false.
13129
13130 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13131
13132 PR target/78660
13133 * lra-constraints.c (curr_insn_transform): Tighten condition
13134 for converting SUBREG reloads from OP_OUT to OP_INOUT.
13135
13136 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
13137
13138 PR target/78660
13139 * lra-constraints.c (curr_insn_transform): Handle
13140 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
13141
13142 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
13143
13144 Revert:
13145 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13146
13147 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13148
13149 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
13150
13151 PR c++/69523
13152 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
13153 description.
13154
13155 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13156
13157 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
13158 for FMA_EXPR.
13159
13160 2017-02-18 Jakub Jelinek <jakub@redhat.com>
13161
13162 * final.c (last_columnnum, override_columnnum): New variables.
13163 (final_start_function): Set last_columnnum, pass it to begin_prologue
13164 hook and pass 0 to dwarf2out_begin_prologue.
13165 (final_scan_insn): Update override_columnnum. Pass last_columnnum
13166 to source_line debug hook.
13167 (notice_source_line): Compute last_columnnum and for debug_column_info
13168 return true on column changes.
13169 * debug.h (struct gcc_debug_hooks): Add column argument to
13170 source_line and begin_prologue hooks.
13171 (debug_nothing_int_charstar_int_bool): Remove prototype.
13172 (debug_nothing_int_int_charstar,
13173 debug_nothing_int_int_charstar_int_bool): New prototypes.
13174 (dwarf2out_begin_prologue): Add column argument.
13175 * debug.c (do_nothing_debug_hooks): Adjust source_line and
13176 begin_prologue hooks.
13177 (debug_nothing_int_charstar_int_bool): Remove.
13178 (debug_nothing_int_int_charstar,
13179 debug_nothing_int_int_charstar_int_bool): New functions.
13180 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
13181 through to dwarf2out_source_line.
13182 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
13183 (dwarf2out_source_line): Add column argument, emit it if requested.
13184 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
13185 arguments.
13186 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
13187 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
13188 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
13189 through to dwarf2out_begin_prologue.
13190 (vmsdbgout_source_line): Add column argument, pass it through to
13191 dwarf2out_source_line.
13192 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
13193 dbxout_source_line caller.
13194 (dbxout_source_line): Add column argument.
13195
13196 * common.opt (gno-column-info, gcolumn-info): New options.
13197 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
13198 (check_die): Also test for multiple DW_AT_decl_column attributes.
13199 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
13200 DW_AT_decl_column if requested.
13201 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
13202 if requested.
13203 (gen_variable_die): Likewise.
13204 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
13205 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
13206
13207 PR target/79569
13208 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
13209 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
13210 (ix86_handle_option): Handle OPT_m3dnowa.
13211 * doc/invoke.texi (-m3dnowa): Document.
13212 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
13213 -m3dnowa instead of -m3dnow -march=athlon.
13214
13215 PR target/79559
13216 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
13217 instead of gcc_assert for K, r and R code checks. Formatting fixes.
13218
13219 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13220
13221 PR target/79261
13222 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13223 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
13224 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
13225 generator for vsx_xxpermdi_<mode>_be.
13226 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
13227 force big-endian semantics.
13228 (vsx_xxpermdi_<mode>_be): New define_expand with same
13229 implementation as previous version of vsx_xxpermdi_<mode>.
13230
13231 2017-02-17 Jakub Jelinek <jakub@redhat.com>
13232
13233 PR tree-optimization/79327
13234 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
13235 variable, its initialization and use.
13236
13237 2017-02-17 Julia Koval <julia.koval@intel.com>
13238
13239 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
13240 (OPTION_MASK_ISA_PKU_UNSET): New.
13241 (ix86_handle_option): Handle -mrdpid.
13242 * config/i386/cpuid.h (bit_RDPID): New.
13243 * config/i386/driver-i386.c (host_detect_local_cpu):
13244 Detect RDPID feature.
13245 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
13246 * config/i386/i386-c.c (ix86_target_macros_internal):
13247 Handle RDPID flag.
13248 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
13249 (ix86_valid_target_attribute_inner_p): Add "rdpid".
13250 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
13251 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
13252 * config/i386/i386.md (define_insn "rdpid"): New.
13253 * config/i386/i386.opt Add -mrdpid.
13254 * config/i386/immintrin.h (_rdpid_u32): New.
13255
13256 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
13257
13258 PR rtl-optimization/79541
13259 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
13260 instead of transforming it into USE.
13261
13262 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
13263
13264 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
13265 If HONOR_SNANS (SFmode) force the input to a register.
13266 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
13267 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
13268 an frsp or similar insn.
13269
13270 2017-02-17 Martin Liska <mliska@suse.cz>
13271
13272 PR rtl-optimization/79577
13273 * params.def (selsched-max-sched-times): Increase minimum to 1.
13274
13275 2017-02-17 Martin Liska <mliska@suse.cz>
13276
13277 PR rtl-optimization/79574
13278 * gcse.c (want_to_gcse_p): Prevent integer overflow.
13279
13280 2017-02-17 Martin Liska <mliska@suse.cz>
13281
13282 PR tree-optimization/79529
13283 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
13284 ssa_defined_default_def_p to handle cases which are implicitly
13285 defined.
13286 * tree-ssa.c (ssa_defined_default_def_p): New function.
13287 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
13288 which are implicitly defined.
13289 * tree-ssa.h (ssa_defined_default_def_p): Declare.
13290
13291 2017-02-17 Richard Biener <rguenther@suse.de>
13292
13293 PR middle-end/79576
13294 * params.def (max-ssa-name-query-depth): Limit to 10.
13295
13296 2017-02-17 Richard Biener <rguenther@suse.de>
13297
13298 PR tree-optimization/79552
13299 * tree-ssa-structalias.c (visit_loadstore): Properly verify
13300 default defs.
13301
13302 2017-02-17 Richard Biener <rguenther@suse.de>
13303
13304 PR bootstrap/79567
13305 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
13306
13307 2017-02-17 Marek Polacek <polacek@redhat.com>
13308
13309 PR middle-end/79536
13310 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
13311 (fold_negate_expr): New wrapper.
13312
13313 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
13314
13315 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
13316 Correct terminology and de-emphasize pre-standard behavior.
13317
13318 2017-02-16 Alan Modra <amodra@gmail.com>
13319
13320 PR rtl-optimization/79286
13321 * ira.c (def_dominates_uses): New function.
13322 (update_equiv_regs): Don't create an equivalence for insns that
13323 may trap where the register def does not dominate the use.
13324
13325 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
13326
13327 PR rtl-optimization/78127
13328 * lra.c (lra): Call lra_eliminate before finish the loop after
13329 lra_constraint.
13330
13331 2017-02-16 Richard Biener <rguenther@suse.de>
13332
13333 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
13334 isl/isl_val.h.
13335 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
13336 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
13337 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
13338 (isl_val_int_from_wi): New function.
13339 (extract_affine_gmp): Rename to ...
13340 (extract_affine_wi): ... this, take a widest_int.
13341 (extract_affine_int): Just wrap extract_affine_wi.
13342 (add_param_constraints): Use isl_val_int_from_wi.
13343 (add_loop_constraints): Likewise, and extract_affine_wi.
13344
13345 2017-02-15 Jeff Law <law@redhat.com>
13346
13347 PR middle-end/79521
13348 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
13349 ira_init_register_move_cost_if_necessary.
13350
13351 2017-02-15 Martin Sebor <msebor@redhat.com>
13352
13353 PR middle-end/32003
13354 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
13355 removed in a prior commit.
13356
13357 2017-02-15 Bin Cheng <bin.cheng@arm.com>
13358
13359 PR tree-optimization/79347
13360 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
13361 counters during peeling.
13362
13363 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
13364
13365 * Makefile.in (site.exp): Remove "set ISLVER".
13366
13367 2017-02-15 Jakub Jelinek <jakub@redhat.com>
13368
13369 PR target/79487
13370 * real.c (real_from_integer): Call real_convert even for decimal.
13371
13372 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
13373
13374 PR target/79421
13375 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
13376
13377 2017-02-14 Andrew Pinski <apinski@cavium.com>
13378
13379 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
13380 cores and change the partno/implementer to be correct.
13381 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
13382 the 'B" as the implementer.
13383 * config/aarch64/aarch64-tune.md: Regenerate.
13384
13385 2017-02-14 Carl Love <cel@us.ibm.com>
13386
13387 * config/rs6000/rs6000.c: Add case statement entry to make the
13388 xvcvuxdsp built-in argument unsigned.
13389 * config/rs6000/vsx.md: Fix the source and return operand types so they
13390 match the instruction definitions from the ISA document. Fix typo
13391 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
13392 statement.
13393
13394 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
13395
13396 PR target/79282
13397 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
13398 member early_clobber_alts.
13399 * lra-lives.c (reg_early_clobber_p): New.
13400 (process_bb_lives): Use it.
13401 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
13402 (debug_operand_data): Initialize early_clobber_alts.
13403 (setup_operand_alternative): Set up early_clobber_alts.
13404 (collect_non_operand_hard_regs): Ditto. Pass early clobber
13405 alternatives to new_insn_reg.
13406 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
13407 it.
13408 (lra_update_insn_regno_info): Pass the new arg.
13409
13410 2017-02-14 Jakub Jelinek <jakub@redhat.com>
13411
13412 PR middle-end/79505
13413 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
13414 (new_oacc_loop_raw): Don't clear already cleared fields.
13415
13416 PR target/79481
13417 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
13418 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
13419 _mm512_prefetch_i64gather_ps): New inline functions and macros.
13420
13421 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
13422
13423 PR target/79495
13424 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
13425
13426 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
13427
13428 PR target/79498
13429 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
13430 the extra instruction to the right place to store 128-bit constant
13431 when needed.
13432
13433 2017-02-14 Martin Sebor <msebor@redhat.com>
13434
13435 PR middle-end/79448
13436 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
13437 warning for strings of unknown length.
13438
13439 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
13440
13441 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
13442
13443 2017-02-14 Jeff Law <law@redhat.com>
13444
13445 PR target/79404
13446 * ira-costs.c (scan_one_insn): Initialize register move costs
13447 for pseudos seen in USE/CLOBBER insns.
13448
13449 PR tree-optimization/79095
13450 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
13451 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
13452 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
13453 if the operands are known to be not equal, then the resulting range
13454 is ~[0,0].
13455 (intersect_ranges): If the new range is ~[0,0] and the old range is
13456 wide, then prefer ~[0,0].
13457 * tree-vrp.c (overflow_comparison_p_1): New function.
13458 (overflow_comparison_p): New function.
13459 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
13460 if NAME is used in an overflow test.
13461 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
13462 overflow check that can be expressed as an equality test, then adjust
13463 ops to be that equality test.
13464
13465 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13466
13467 * config/s390/s390-builtin-types.def: Remove flags argument.
13468 * config/s390/s390.c (s390_init_builtins): Likewise.
13469
13470 2017-02-14 Martin Liska <mliska@suse.cz>
13471
13472 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
13473 vector. Fix trailing white spaces.
13474
13475 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
13476
13477 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
13478 HFmode.
13479
13480 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13481
13482 PR rtl-optimization/68664
13483 * config/arm/arm.c (arm_sched_can_speculate_insn):
13484 New function. Declare prototype.
13485 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13486
13487 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13488
13489 PR rtl-optimization/68664
13490 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
13491 New function.
13492 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
13493
13494 2017-02-14 Amit Pawar <amit.pawar@amd.com>
13495
13496 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
13497 max skip bytes for function, loop and jump.
13498
13499 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13500
13501 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
13502 ABS_EXPR for gimple dump.
13503
13504 2017-02-14 Jakub Jelinek <jakub@redhat.com>
13505
13506 PR target/79462
13507 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
13508
13509 PR tree-optimization/79408
13510 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
13511 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
13512 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
13513 also if rhs1 is INTEGER_CST.
13514
13515 2017-02-14 Richard Biener <rguenther@suse.de>
13516
13517 PR middle-end/79432
13518 * tree-into-ssa.c (insert_phi_nodes): When the function can
13519 have abnormal edges rewrite SSA names with broken use-def
13520 dominance out of SSA and register them for PHI insertion.
13521
13522 2017-02-13 Martin Sebor <msebor@redhat.com>
13523
13524 PR middle-end/79496
13525 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
13526 clearing info.nowrite flag when snprintf size argument is a range.
13527
13528 2017-02-13 Jakub Jelinek <jakub@redhat.com>
13529
13530 * cprop.c (cprop_jump): Add missing space in string literal.
13531 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
13532 (get_constraint_for_component_ref): Likewise.
13533 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
13534 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
13535 * lra-constraints.c (process_alt_operands): Likewise.
13536 * ipa-inline.c (inline_small_functions): Likewise.
13537 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
13538 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
13539 * trans-mem.c (diagnose_tm_1_op): Likewise.
13540 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
13541 (grid_parallel_clauses_gridifiable): Likewise.
13542
13543 * config/nvptx/mkoffload.c (process): Add space in between
13544 , and %d.
13545
13546 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
13547 "MOD4_SSE_REGS" and "ALL_REGS".
13548
13549 * spellcheck.c (test_data): Add , in between "foo" and "food".
13550
13551 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13552
13553 PR target/79449
13554 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
13555 boundary crossing check and subsequent code generation agree.
13556
13557 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13558
13559 * config/aarch64/aarch64.c (has_memory_op): Delete.
13560 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
13561 has_memory_op.
13562
13563 2017-02-13 Jakub Jelinek <jakub@redhat.com>
13564
13565 PR rtl-optimization/79388
13566 PR rtl-optimization/79450
13567 * combine.c (distribute_notes): When removing TEM_INSN for which
13568 corresponding dest has last value recorded, invalidate that last
13569 value.
13570
13571 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13572
13573 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
13574 of explicit '@'. Add missing assembly comment marker on branch costs
13575 printout.
13576
13577 2017-02-13 Nathan Sidwell <nathan@acm.org>
13578
13579 * gengtype-lex.l (<in_struct>): Add '/'.
13580
13581 2017-02-13 Martin Liska <mliska@suse.cz>
13582
13583 PR c/79471
13584 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
13585
13586 2017-02-13 Richard Biener <rguenther@suse.de>
13587
13588 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
13589 Remove.
13590 * configure: Re-generate.
13591 * config.in: Likewise.
13592 * graphite-dependences.c: Simplify as if
13593 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
13594 * graphite-isl-ast-to-gimple.c: Likewise.
13595 * graphite-optimize-isl.c: Likewise.
13596 * graphite-poly.c: Likewise.
13597 * graphite-sese-to-poly.c: Likewise.
13598 * graphite.h: Likewise.
13599 * toplev.c: Include isl/version.h and use isl_version () for
13600 printing the ISL version.
13601 * doc/install.texi: Update ISL requirement.
13602
13603 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13604
13605 * doc/standards.texi (Standards): Update reference to
13606 Objective-C 2.0.
13607
13608 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
13609
13610 * doc/extend.texi (Named Address Spaces): sourceware.org now
13611 defaults to https.
13612 * doc/install.texi (Binaries): Ditto.
13613 (Specific): Ditto.
13614
13615 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
13616
13617 * doc/cpp.texi: Replace "stringify"/"stringification" with C
13618 standard terminology "stringize"/"stringizing" throughout.
13619 * doc/cppinternals.texi: Likewise.
13620
13621 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
13622
13623 * doc/extend.texi: Fix some spelling mistakes and typos.
13624 * doc/invoke.texi: Likewise.
13625
13626 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
13627
13628 PR ipa/79224
13629 * params.def (inline-min-speedup) Change from 10 to 8.
13630
13631 2017-02-11 Jakub Jelinek <jakub@redhat.com>
13632
13633 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
13634 4.5.
13635
13636 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
13637
13638 PR ipa/79224
13639 * ipa-inline-analysis.c (get_minimal_bb): New function.
13640 (record_modified): Use it.
13641 (remap_edge_change_prob): Handle also ancestor functions.
13642
13643 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
13644
13645 * doc/contrib.texi (Contributors): Remove broken link into
13646 the Mauve CVS repository.
13647
13648 2017-02-11 Jakub Jelinek <jakub@redhat.com>
13649
13650 PR middle-end/79454
13651 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
13652 result computation whenever lhs doesn't have vector mode, not
13653 just when it has BLKmode.
13654
13655 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
13656
13657 * doc/makefile.texi (profiledbootstrap): Refer to the
13658 installation instructions only in textual form.
13659
13660 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13661
13662 PR target/79295
13663 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
13664
13665 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
13666
13667 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
13668 (Specific): Update mingw-w64 reference.
13669 (Binaries): Ditto.
13670 (Specific): Remove broken link to Renesas RX processor.
13671
13672 2017-02-10 Richard Biener <rguenther@suse.de>
13673
13674 * toplev.c (process_options): Do not mention obsolete graphite
13675 options when printing sorry message about missing graphite support.
13676 Mention -floop-nest-optimize.
13677
13678 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
13679
13680 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
13681 (vtst_p16): Likewise.
13682 (vtstq_p8): Likewise.
13683 (vtstq_p16): Likewise.
13684 (vtst_p64): New.
13685 (vtstq_p64): Likewise.
13686 * config/arm/arm_neon.h (vgetq_lane_p64): New.
13687 (vset_lane_p64): New.
13688 (vsetq_lane_p64): New.
13689
13690 2017-02-10 Jakub Jelinek <jakub@redhat.com>
13691
13692 PR tree-optimization/79411
13693 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
13694 stmt operands are SSA_NAMEs used in abnormal phis.
13695 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
13696 phis.
13697
13698 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
13699
13700 PR ipa/70795
13701 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
13702 flag if needed.
13703
13704 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
13705
13706 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
13707
13708 2017-02-09 Jakub Jelinek <jakub@redhat.com>
13709
13710 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
13711 to avoid warning.
13712
13713 PR c/79413
13714 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
13715 not arbitrary TREE_CONSTANT.
13716
13717 PR c/79431
13718 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
13719 "omp declare target link" attribute unless is_global_var.
13720 * omp-offload.c (find_link_var_op): Likewise.
13721
13722 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
13723 Chung-Lin Tang <cltang@codesourcery.com>
13724
13725 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
13726 OMP_CLAUSE_TILE.
13727 (gimplify_adjust_omp_clauses): Don't delete TILE.
13728 (gimplify_omp_for): Deal with TILE.
13729 * internal-fn.c (expand_GOACC_TILE): New function.
13730 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
13731 (GOACC_TILE): New.
13732 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
13733 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
13734 element fields.
13735 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
13736 avoid DIV for outermost collapse var.
13737 (expand_oacc_for): Insert tile element loop as needed. Adjust.
13738 Remove out of date comments, fix whitespace.
13739 * omp-general.c (omp_extract_for_data): Deal with tiling.
13740 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
13741 adjust OLF_DIM_BASE value.
13742 (struct omp_for_data): Add tiling field.
13743 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
13744 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
13745 for auto loops. Remove default auto determining, moved to
13746 oacc_loop_fixed_partitions.
13747 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
13748 stmts, add e_mask field.
13749 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
13750 (oacc_thread_numbers): Use oacc_dim_call.
13751 (oacc_xform_tile): New.
13752 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
13753 (finish_oacc_loop): Adjust for ifns vector.
13754 (oacc_loop_discover_walk): Append loop abstraction sites to list,
13755 add case for GOACC_TILE fns.
13756 (oacc_loop_xform_loop): Delete.
13757 (oacc_loop_process): Iterate over call list directly, and add
13758 handling for GOACC_TILE fns.
13759 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
13760 dump partitioning.
13761 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
13762 vector partitioning to outer loops. Assign 2 partitions to loops
13763 when available. Add TILE handling.
13764 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
13765 (execite_oacc_device_lower): Process GOACC_TILE fns,
13766 ignore unknown specs.
13767 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
13768 * tree.c (omp_clause_num_ops): Adjust TILE ops.
13769 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
13770
13771 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
13772
13773 * configure.ac (ACX_BUGURL): Update.
13774 * configure: Regenerate.
13775
13776 2017-02-09 Richard Biener <rguenther@suse.de>
13777
13778 PR tree-optimization/69823
13779 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13780 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
13781
13782 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
13783
13784 * config/arc/arc-c.def: Add __NPS400__ definition.
13785 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
13786 (TARGET_NPS400): Define.
13787
13788 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
13789
13790 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
13791 file.
13792 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
13793 pointer, arch_info.
13794 (arc_cpu_types): Fill the arch_info field with a pointer into the
13795 arc_arch_types table.
13796 (arc_selected_cpu): Declare.
13797 * config/arc/arc.c (arc_selected_cpu): Make global.
13798 (arc_selected_arch): Delete.
13799 (arc_base_cpu): Delete.
13800 (arc_override_options): Remove references to deleted variables,
13801 update access to arch information.
13802 (ARC_OPT): Update access to arch information.
13803 (ARC_OPTX): Likewise.
13804 * config/arc/arc.h (arc_base_cpu): Remove declaration.
13805 (TARGET_ARC600): Update access to arch information.
13806 (TARGET_ARC601): Likewise.
13807 (TARGET_ARC700): Likewise.
13808 (TARGET_EM): Likewise.
13809 (TARGET_HS): Likewise.
13810 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
13811 information.
13812
13813 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
13814
13815 PR target/78604
13816 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
13817 condition/operands for integer GE/LE/GEU/LEU operations.
13818
13819 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
13820
13821 PR translation/79397
13822 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
13823 of AltiVec.
13824
13825 2017-02-08 Martin Jambor <mjambor@suse.cz>
13826
13827 PR ipa/79375
13828 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
13829 whether allocation happened.
13830 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
13831 nothing was allocated.
13832
13833 2017-02-08 Jakub Jelinek <jakub@redhat.com>
13834
13835 PR tree-optimization/79408
13836 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
13837 constant, but SSA_NAME with a known integer range, use the minimum
13838 of that range instead of op1 to determine if modulo can be replaced
13839 with its first operand.
13840
13841 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13842
13843 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
13844
13845 2017-02-08 Richard Biener <rguenther@suse.de>
13846
13847 PR tree-optimization/71824
13848 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
13849 Check all loops contained in the merged region.
13850
13851 2017-02-07 Andrew Pinski <apinski@cavium.com>
13852
13853 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
13854
13855 2017-02-07 Andrew Pinski <apinski@cavium.com>
13856
13857 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
13858 (thunderxt88): Likewise.
13859 (thunderxt81): Disable LSE and change v8.1 to v8.
13860 (thunderxt83): Likewise.
13861
13862 2017-02-07 Jakub Jelinek <jakub@redhat.com>
13863 Richard Biener <rguenther@suse.de>
13864
13865 PR middle-end/79399
13866 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
13867 type from int to size_t.
13868 * ira-costs.c (struct_costs_size): Change type from int to size_t.
13869
13870 2017-02-07 Jakub Jelinek <jakub@redhat.com>
13871
13872 PR rtl-optimization/79386
13873 * cprop.c (bypass_conditional_jumps): Initialize
13874 bypass_last_basic_block already before splitting bbs after
13875 unconditional traps...
13876 (bypass_conditional_jumps): ... rather than here.
13877
13878 PR target/79299
13879 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
13880 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
13881 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
13882 fix -masm=intel patterns.
13883
13884 2017-02-07 Richard Biener <rguenther@suse.de>
13885
13886 PR tree-optimization/79256
13887 PR middle-end/79278
13888 * builtins.c (get_object_alignment_2): Use min_align_of_type
13889 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
13890 and ADJUST_FIELD_ALIGN.
13891
13892 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
13893 type parameter.
13894 * doc/tm.texi: Regenerate.
13895 * stor-layout.c (layout_decl): Adjust.
13896 (update_alignment_for_field): Likewise.
13897 (place_field): Likewise.
13898 (min_align_of_type): Likewise.
13899 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
13900 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
13901 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
13902 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
13903 * config/frv/frv.c (frv_adjust_field_align): Likewise.
13904 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
13905 * config/i386/i386.c (x86_field_alignment): Likewise.
13906 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13907 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
13908 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
13909 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13910 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
13911 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
13912 Likewise.
13913
13914 Revert
13915 2017-01-30 Richard Biener <rguenther@suse.de>
13916
13917 PR tree-optimization/79256
13918 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
13919 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
13920 alignment on TYPE.
13921
13922 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
13923
13924 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
13925 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
13926 builtins to SImode and emit a zero-extend, if necessary.
13927
13928 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
13929
13930 * docs/invoke.texi (RISC-V Options): Alphabetize.
13931
13932 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
13933
13934 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
13935 options.
13936
13937 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
13938
13939 * config/riscv/riscv.c: New file.
13940 * gcc/common/config/riscv/riscv-common.c: Likewise.
13941 * config.gcc: Likewise.
13942 * config/riscv/constraints.md: Likewise.
13943 * config/riscv/elf.h: Likewise.
13944 * config/riscv/generic.md: Likewise.
13945 * config/riscv/linux.h: Likewise.
13946 * config/riscv/multilib-generator: Likewise.
13947 * config/riscv/peephole.md: Likewise.
13948 * config/riscv/pic.md: Likewise.
13949 * config/riscv/predicates.md: Likewise.
13950 * config/riscv/riscv-builtins.c: Likewise.
13951 * config/riscv/riscv-c.c: Likewise.
13952 * config/riscv/riscv-ftypes.def: Likewise.
13953 * config/riscv/riscv-modes.def: Likewise.
13954 * config/riscv/riscv-opts.h: Likewise.
13955 * config/riscv/riscv-protos.h: Likewise.
13956 * config/riscv/riscv.h: Likewise.
13957 * config/riscv/riscv.md: Likewise.
13958 * config/riscv/riscv.opt: Likewise.
13959 * config/riscv/sync.md: Likewise.
13960 * config/riscv/t-elf-multilib: Likewise.
13961 * config/riscv/t-linux: Likewise.
13962 * config/riscv/t-linux-multilib: Likewise.
13963 * config/riscv/t-riscv: Likewise.
13964 * configure.ac: Likewise.
13965 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
13966 Waterman as RISC-V maintainers.
13967 * doc/install.texi: Add RISC-V entries.
13968 * doc/invoke.texi: Add RISC-V options section.
13969 * doc/md.texi: Add RISC-V constraints section.
13970 * configure: Regenerated.
13971
13972 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13973
13974 PR target/66144
13975 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
13976 false values to be constant vectors with all 0 or all 1 bits set.
13977 (vcondu<mode><mode>): Likewise.
13978 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
13979 predicate.
13980 (fpmask_comparison_operator): Update comment.
13981 (vecint_comparison_operator): New predicate.
13982 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
13983 vector conditionals when the true and false values are constant
13984 vectors with all 0 bits or all 1 bits set.
13985
13986 2017-02-06 Martin Sebor <msebor@redhat.com>
13987
13988 PR tree-optimization/79376
13989 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
13990
13991 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
13992
13993 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
13994 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
13995 to simplify split condition.
13996
13997 2017-02-06 Jakub Jelinek <jakub@redhat.com>
13998
13999 * omp-expand.c (oxpand_omp_atomic_fetch_op,
14000 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
14001 false.
14002
14003 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
14004
14005 PR rtl-optimization/68664
14006 * target.def (can_speculate_insn): New hook.
14007 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
14008 * doc/tm.texi: Regenerate.
14009 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
14010 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
14011 (rs6000_sched_can_speculate_insn): New function.
14012
14013 2017-02-06 Jakub Jelinek <jakub@redhat.com>
14014
14015 PR tree-optimization/79284
14016 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
14017 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
14018 vectorizable_mask_load_store, vectorizable_operation,
14019 vect_is_simple_cond, get_same_sized_vectype): Use it instead
14020 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
14021 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
14022 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
14023 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14024 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
14025 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
14026 is_gimple_assign (stmt). Replace another such test with
14027 is_gimple_assign (stmt).
14028
14029 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
14030
14031 PR target/78883
14032 * config/avr/avr.c (rtl-iter.h): Include it.
14033 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
14034 (avr_legitimate_combined_insn): ...and implementation.
14035
14036 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
14037
14038 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
14039 * config/s390/s390.c (s390_const_operand_ok)
14040 (s390_canonicalize_comparison, s390_extract_part)
14041 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
14042 (s390_contiguous_bitmask_p, s390_rtx_costs)
14043 (legitimize_pic_address): Likewise.
14044 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
14045 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
14046 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
14047 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
14048 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
14049
14050 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
14051
14052 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
14053 REGNO($0) == REGNO($1).
14054
14055 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14056
14057 * config/s390/linux.h(SIZE_TYPE): Add comment.
14058
14059 2017-02-06 Julian Brown <julian@codesourcery.com>
14060 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14061 Virendra Pathak <virendra.pathak@broadcom.com>
14062
14063 * config/aarch64/aarch64-cores.def: Change the scheduler
14064 to Thunderx2t99.
14065 * config/aarch64/aarch64.md: Include thunderx2t99.md.
14066 * config/aarch64/thunderx2t99.md: New file.
14067
14068 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14069
14070 * doc/standards.texi (Go Language): Update link to language
14071 standard.
14072
14073 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
14074
14075 * tree-eh.c (lower_resx): Sanitize profile.
14076 (cleanup_empty_eh_move_lp): Likewise.
14077
14078 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
14079
14080 PR tree-ssa/79347
14081 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
14082 ELSE_PROB.
14083 * cfgloopmanip.h (loop_version): Update prototype.
14084 * modulo-sched.c (sms_schedule): Update call of loop_version.
14085 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
14086 * tree-parloops.c (gen_parallel_loop): Likewise.
14087 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
14088 * tree-ssa-loop-split.c (split_loop): Likewise.
14089 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
14090 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
14091
14092 2017-02-05 Martin Liska <mliska@suse.cz>
14093
14094 PR bootstrap/78985
14095 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
14096 variable to NULL.
14097 (print_operand_address): Initialize a struct to zero.
14098
14099 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14100
14101 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
14102 garbage collector only in textual form.
14103
14104 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
14105
14106 * doc/extend.texi (x86 specific memory model extensions for
14107 transactional memory): Simplify a phrase.
14108
14109 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
14110
14111 PR target/79353
14112 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
14113 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
14114 (atomic_storedi_1): Likewise.
14115
14116 2017-02-04 Jakub Jelinek <jakub@redhat.com>
14117
14118 PR tree-optimization/79338
14119 * tree-parloops.c (gather_scalar_reductions): Don't call
14120 vect_analyze_loop_form for loop->inner before destroying loop's
14121 loop_vinfo.
14122
14123 2017-02-03 Martin Sebor <msebor@redhat.com>
14124
14125 PR tree-optimization/79327
14126 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
14127 when precision has resulted in leading zeros.
14128 (format_integer): Adjust the likely counter to assume an unknown
14129 argument that may be zero is non-zero.
14130
14131 2017-02-03 Jason Merrill <jason@redhat.com>
14132
14133 PR c++/78689
14134 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
14135 avoid copying non-taken branch.
14136
14137 2017-02-03 Jakub Jelinek <jakub@redhat.com>
14138
14139 PR tree-optimization/79340
14140 * tree-vect-loop.c (vectorizable_reduction): Release
14141 vec_defs elements after safe_splicing them into other vectors.
14142 Formatting fixes.
14143
14144 PR tree-optimization/79327
14145 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
14146 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
14147 dirtype.
14148 (format_integer): Use wide_int_to_tree instead of build_int_cst
14149 + to_?hwi. If argmin is NULL, just set argmin and argmax to
14150 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
14151 of shortest and longest sequence.
14152
14153 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
14154
14155 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14156 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
14157
14158 2017-02-03 Walter Lee <walt@tilera.com>
14159
14160 PR target/78862
14161 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
14162 after initial stackframe link reg save.
14163 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
14164
14165 2017-02-03 Jakub Jelinek <jakub@redhat.com>
14166
14167 PR target/79354
14168 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
14169 wu for stxssp alternative.
14170
14171 2017-02-03 Martin Sebor <msebor@redhat.com>
14172
14173 PR tree-optimization/79352
14174 * gimple-fold.c (get_range_strlen): Add argument.
14175 (get_range_strlen): Change return type to bool.
14176 (get_maxval_strlen): Pass in a dummy argument.
14177 * gimple-fold.h (get_range_strlen): Change return type to bool.
14178 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
14179 * tree.h (array_at_struct_end_p): Add argument.
14180 * tree.c (array_at_struct_end_p): Handle it.
14181
14182 2017-02-03 Martin Liska <mliska@suse.cz>
14183
14184 PR lto/66295
14185 * multiple_target.c (create_dispatcher_calls): Redirect edge
14186 from a caller of a dispatcher.
14187 (expand_target_clones): Make the clones local.
14188 (ipa_target_clone): Do both target clones and resolvers.
14189 (ipa_dispatcher_calls): Remove the pass.
14190 (pass_dispatcher_calls::gate): Likewise.
14191 (make_pass_dispatcher_calls): Likewise.
14192 * passes.def (pass_target_clone): Put as very first IPA early
14193 pass.
14194
14195 2017-02-03 Martin Liska <mliska@suse.cz>
14196
14197 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
14198 in case of a function with ifunc attribute.
14199
14200 2017-02-03 Martin Liska <mliska@suse.cz>
14201
14202 * cgraph.c (cgraph_node::dump): Dump function version info.
14203 * symtab.c (symtab_node::dump_base): Add missing new line.
14204
14205 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
14206
14207 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
14208 (ifcombine_ifandif): Use it.
14209
14210 2017-02-03 Martin Liska <mliska@suse.cz>
14211
14212 * doc/invoke.texi: Document default value for
14213 use-after-scope-direct-emission-threshold.
14214
14215 2017-02-03 Martin Liska <mliska@suse.cz>
14216
14217 PR tree-optimization/79339
14218 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
14219 (format_floating): Likewise.
14220
14221 2017-02-03 Martin Liska <mliska@suse.cz>
14222
14223 PR ipa/79337
14224 * ipa-prop.c (ipa_node_params_t::insert): Remove current
14225 implementation.
14226 (ipa_node_params_t::remove): Likewise.
14227 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
14228 initialization from removed ipa_node_params_t::insert.
14229 (ipa_node_params::~ipa_node_params): Move from removed
14230 ipa_node_params_t::release.
14231 * symbol-summary.h (symbol_summary::m_released): New member.
14232 Do not release a summary twice. Do not allow to call finalizer
14233 for types of a summary that live in GGC memory.
14234
14235 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
14236
14237 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
14238 cmp_branch fusion.
14239
14240 2017-02-02 Martin Sebor <msebor@redhat.com>
14241
14242 PR middle-end/79275
14243 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
14244 (format_string): Tighten up the range of output for non-constant
14245 strings and correct the expected range for wide non-constant strings.
14246
14247 2017-02-02 Martin Sebor <msebor@redhat.com>
14248
14249 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
14250
14251 PR middle-end/32003
14252 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
14253 index.
14254 (-fdump-tree-@var): Add to index and document how to come up
14255 with pass-specific option and dump file names.
14256 (-fdump-passes): Clarify where to look for output.
14257
14258 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
14259
14260 PR middle-end/77445
14261 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
14262 statistics of the analyzed path; allow threading for speed when
14263 any of BBs along the path are optimized for speed.
14264
14265 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
14266
14267 PR middle-end/78468
14268 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
14269 settings of the virtual registers.
14270
14271 Revert again
14272 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14273
14274 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14275 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14276 needed.
14277
14278 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14279
14280 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
14281 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
14282
14283 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14284
14285 * config/s390/s390.md: Add missing comments with the expanded
14286 mnemonics.
14287 * config/s390/vector.md: Likewise.
14288 * config/s390/vx-builtins.md: Likewise.
14289
14290 2017-02-02 Jakub Jelinek <jakub@redhat.com>
14291
14292 PR target/79197
14293 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
14294 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
14295 conditions on a single line.
14296
14297 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14298
14299 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
14300 __S390_VX__ to __VX__.
14301
14302 2017-02-01 Andrew Pinski <apinski@cavium.com>
14303
14304 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
14305 stmt_info to record_stmt_cost.
14306 (vect_get_known_peeling_cost): Pass stmt_info if known to
14307 record_stmt_cost.
14308 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
14309 cpu_vector_cost field into
14310 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
14311 field into vec_int_stmt_cost and vec_fp_stmt_cost.
14312 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
14313 splitting of scalar_stmt_cost and vec_stmt_cost.
14314 (thunderx_vector_cost): Likewise.
14315 (cortexa57_vector_cost): LIkewise.
14316 (exynosm1_vector_cost): Likewise.
14317 (xgene1_vector_cost): Likewise.
14318 (thunderx2t99_vector_cost): Improve after the splitting of the two
14319 fields.
14320 (aarch64_builtin_vectorization_cost): Update for the splitting of
14321 scalar_stmt_cost and vec_stmt_cost.
14322
14323 2017-02-01 Torvald Riegel <triegel@redhat.com>
14324 Richard Henderson <rth@redhat.com>
14325
14326 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
14327 conditional on existance of a fast atomic load.
14328 * optabs-query.c (can_atomic_load_p): New function.
14329 * optabs-query.h (can_atomic_load_p): Declare it.
14330 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
14331 no fast atomic load is available for the particular size of access.
14332 (expand_atomic_compare_and_swap): Likewise.
14333 (expand_atomic_load): Likewise.
14334 (expand_atomic_store): Likewise.
14335 (expand_atomic_fetch_op): Likewise.
14336 * testsuite/lib/target-supports.exp
14337 (check_effective_target_sync_int_128): Remove x86 because it provides
14338 no fast atomic load.
14339 (check_effective_target_sync_int_128_runtime): Likewise.
14340
14341 2017-02-01 Richard Biener <rguenther@suse.de>
14342
14343 * graphite.c: Include tree-vectorizer.h for find_loop_location.
14344 (graphite_transform_loops): Provide opt-info for optimized nests.
14345 * tree-parloop.c (parallelize_loops): Provide opt-info for
14346 parallelized loops.
14347
14348 2017-02-01 Richard Biener <rguenther@suse.de>
14349
14350 PR middle-end/79315
14351 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
14352 was not set before.
14353
14354 2017-02-01 Richard Biener <rguenther@suse.de>
14355
14356 PR tree-optimization/71824
14357 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
14358 Verify the loops are valid in the merged SESE region.
14359 (scop_detection::can_represent_loop_1): Check analyzing the
14360 evolution of the number of iterations in the region succeeds.
14361
14362 2017-01-31 Ian Lance Taylor <iant@golang.org>
14363
14364 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
14365 REG_ARGS_SIZE note to 32-bit push insns and call insn.
14366
14367 2017-01-31 David Malcolm <dmalcolm@redhat.com>
14368
14369 PR preprocessor/79210
14370 * input.c (get_substring_ranges_for_loc): Replace line_width
14371 assertion with error-handling.
14372
14373 2017-01-31 Richard Biener <rguenther@suse.de>
14374
14375 PR tree-optimization/77318
14376 * graphite-sese-to-poly.c (extract_affine): Fix assert.
14377 (create_pw_aff_from_tree): Take loop parameter.
14378 (add_condition_to_pbb): Pass loop of the condition to
14379 create_pw_aff_from_tree.
14380
14381 2017-01-31 Jakub Jelinek <jakub@redhat.com>
14382
14383 * config/s390/s390.c (s390_asan_shadow_offset): New function.
14384 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
14385
14386 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
14387
14388 PR target/78597
14389 PR target/79038
14390 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
14391 no longer used.
14392 (convert_int_to_float128): Likewise.
14393 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
14394 (convert_int_to_float128): Likewise.
14395 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
14396 (UNSPEC_IEEE128_CONVERT): Likewise.
14397 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
14398 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
14399 Use local variables for IBM extended format.
14400 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
14401 (fix_trunc<mode>si2_fprs): Likewise.
14402 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
14403 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
14404 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
14405 to know that we can now have integers of all sizes in vector
14406 registers.
14407 (fix<uns>_<mode>di2_hw): Likewise.
14408 (float<uns>_<mode>si2_hw): Likewise.
14409 (fix_<mode>si2_hw): Likewise.
14410 (fixuns_<mode>si2_hw): Likewise.
14411 (float<uns>_<mode>di2_hw): Likewise.
14412 (float_<mode>di2_hw): Likewise.
14413 (float_<mode>si2_hw): Likewise.
14414 (floatuns_<mode>di2_hw): Likewise.
14415 (floatuns_<mode>si2_hw): Likewise.
14416 (xscvqp<su>wz_<mode>): Delete, no longer used.
14417 (xscvqp<su>dz_<mode>): Likewise.
14418 (xscv<su>dqp_<mode>): Likewise.
14419 (ieee128_mfvsrd_64bit): Likewise.
14420 (ieee128_mfvsrd_32bit): Likewise.
14421 (ieee128_mfvsrwz): Likewise.
14422 (ieee128_mtvsrw): Likewise.
14423 (ieee128_mtvsrd_64bit): Likewise.
14424 (ieee128_mtvsrd_32bit): Likewise.
14425
14426 2017-01-31 Martin Liska <mliska@suse.cz>
14427
14428 PR ipa/79285
14429 * ipa-prop.c (ipa_free_all_node_params): Call release method
14430 instead of ~sumbol_summary to not to trigger double times
14431 dtor of hash_map.
14432
14433 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
14434
14435 PR tree-optimization/71691
14436 * bitmap.h (class auto_bitmap): New.
14437 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
14438 is_maybe_undefined instead of ssa_undefined_value_p.
14439
14440 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14441
14442 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
14443 __S390_ARCH_LEVEL__ to __ARCH__.
14444
14445 2017-01-31 Jakub Jelinek <jakub@redhat.com>
14446
14447 PR tree-optimization/79267
14448 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
14449 if should_remove_lhs_p is true.
14450
14451 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
14452
14453 PR debug/63238
14454 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
14455 (add_alignment_attribute): New.
14456 (base_type_die): Add alignment attribute.
14457 (subrange_type_die): Likewise.
14458 (modified_type_die): Likewise.
14459 (gen_array_type_die): Likewise.
14460 (gen_descr_array_type_die: Likewise.
14461 (gen_enumeration_type_die): Likewise.
14462 (gen_subprogram_die): Likewise.
14463 (gen_variable_die): Likewise.
14464 (gen_field_die): Likewise.
14465 (gen_ptr_to_mbr_type_die): Likewise.
14466 (gen_struct_or_union_type_die): Likewise.
14467 (gen_subroutine_type_die): Likewise.
14468 (gen_typedef_die): Likewise.
14469 (base_type_cmp): Compare alignment attribute.
14470
14471 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14472
14473 PR target/79170
14474 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
14475 (setb_unsigned) New pattern for setb with CCUNS.
14476 * config/rs6000/rs6000.c (expand_block_compare): Use a different
14477 subfc./subfe sequence to avoid overflow problems. Generate a
14478 shorter sequence with cmpld/setb for power9.
14479 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
14480 for generating subfc. instruction.
14481 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
14482 now uses this instruction.
14483
14484 2017-01-30 Ian Lance Taylor <iant@google.com>
14485
14486 PR debug/79289
14487 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
14488 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
14489
14490 2017-01-30 Martin Sebor <msebor@redhat.com>
14491
14492 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
14493 Move constant to the right of a relational operator.
14494 (get_mpfr_format_length, format_character, format_string): Ditto.
14495 (should_warn_p, maybe_warn): Same.
14496
14497 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
14498
14499 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
14500
14501 PR lto/79061
14502 * asan.c (get_translation_unit_decl): Remove function.
14503 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
14504
14505 2017-01-30 Martin Liska <mliska@suse.cz>
14506
14507 PR gcov-profile/79259
14508 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
14509 -fprofile-generate.
14510
14511 2017-01-30 Martin Liska <mliska@suse.cz>
14512
14513 PR bootstrap/78985
14514 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
14515 Initialize variables with NULL value.
14516
14517 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
14518
14519 PR target/79260
14520 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
14521 tm_p_file.
14522 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
14523
14524 2017-01-30 Richard Biener <rguenther@suse.de>
14525
14526 PR tree-optimization/79276
14527 * tree-vrp.c (process_assert_insertions): Properly adjust common
14528 when removing a duplicate.
14529
14530 * gcc.dg/torture/pr79276.c: New testcase.
14531
14532 2017-01-30 Richard Biener <rguenther@suse.de>
14533
14534 PR tree-optimization/79256
14535 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
14536 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
14537 alignment on TYPE.
14538 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
14539
14540 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
14541
14542 PR target/79240
14543 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
14544 ("*r<noxa>sbg_<mode>_sll_bitmask")
14545 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
14546 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
14547 Use contiguous_bitmask_nowrap_operand.
14548
14549 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14550
14551 PR target/79268
14552 * config/rs6000/altivec.h (vec_xl): Revise #define.
14553 (vec_xst): Likewise.
14554
14555 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
14556
14557 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
14558
14559 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
14560
14561 PR rtl-optimization/79194
14562 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
14563 traps before call to bypass_conditional_jumps.
14564
14565 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
14566
14567 PR tree-optimization/71374
14568 * lra-constraints.c (check_conflict_input_operands): New.
14569 (match_reload): Use it.
14570
14571 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
14572
14573 PR target/79131
14574 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
14575 account to calculate conflict_set.
14576
14577 2017-01-27 Bin Cheng <bin.cheng@arm.com>
14578
14579 PR rtl-optimization/78559
14580 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
14581 other_insn in combine.
14582
14583 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
14584
14585 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
14586 uint16_type_node for BT_UINT16.
14587
14588 2017-01-27 David Malcolm <dmalcolm@redhat.com>
14589
14590 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
14591 "RTL Tests" to menu.
14592 (GIMPLE Tests): New node.
14593 (RTL Tests): New node.
14594
14595 2017-01-27 Richard Biener <rguenther@suse.de>
14596
14597 PR tree-optimization/79245
14598 * tree-loop-distribution.c (distribute_loop): Apply cost
14599 modeling also to detected patterns.
14600
14601 2017-01-27 Richard Biener <rguenther@suse.de>
14602
14603 PR tree-optimization/71433
14604 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
14605 (compare_assert_loc): New function.
14606 (process_assert_insertions): Sort and optimize assert locations
14607 to remove duplicates and push down identical assertions on
14608 edges to their destination block.
14609
14610 2017-01-27 Richard Biener <rguenther@suse.de>
14611
14612 PR tree-optimization/79244
14613 * tree-vrp.c (remove_range_assertions): Forcefully propagate
14614 out SSA names even if abnormal.
14615
14616 2017-01-27 Jakub Jelinek <jakub@redhat.com>
14617
14618 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
14619 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
14620 instead of MPFR_RNDN.
14621
14622 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
14623
14624 PR target/79239
14625 * arm.c (arm_option_override): Don't call build_target_option_node
14626 until after doing all option overrides.
14627 (arm_valid_target_attribute_tree): Likewise.
14628
14629 2017-01-27 Martin Liska <mliska@suse.cz>
14630
14631 * doc/invoke.texi (-fprofile-arcs): Document profiling support
14632 for {cd}tors and C++ {cd}tors.
14633
14634 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
14635
14636 * config/s390/s390.md ("*setmem_long_and")
14637 ("*setmem_long_and_31z"): Use zero_extend instead of and.
14638
14639 2017-01-26 Martin Sebor <msebor@redhat.com>
14640
14641 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
14642 of precision.
14643
14644 2017-01-26 Martin Sebor <msebor@redhat.com>
14645
14646 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
14647 HAVE_DFmode before using XFmode or DFmode.
14648 (parse_directive): Avoid using the z length modifier to avoid
14649 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
14650
14651 PR middle-end/78703
14652 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
14653 to accept adjustment as an array.
14654 (get_int_range): New function.
14655 (struct directive): Make width and prec arrays.
14656 (directive::set_width, directive::set_precision): Call get_int_range.
14657 (format_integer, format_floating): Handle width and precision ranges.
14658 (format_string, parse_directive): Same.
14659
14660 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR debug/79129
14663 * dwarf2out.c (generate_skeleton_bottom_up): For children with
14664 comdat_type_p set, just clone them, but keep the children in the
14665 original DIE.
14666
14667 PR debug/78835
14668 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
14669 which have direct callers with -fvar-tracking-assignments enabled
14670 in the current TU.
14671 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
14672 inside of type units.
14673
14674 2017-01-26 Martin Sebor <msebor@redhat.com>
14675
14676 PR middle-end/78703
14677 * gimple-ssa-sprintf.c (struct result_range): Add likely and
14678 unlikely counters.
14679 (struct format_result): Replace number_chars, number_chars_min,
14680 and number_chars_max with a single member of struct result_range.
14681 Remove bounded.
14682 (format_result::operator+=): Adjust.
14683 (struct fmtresult): Remove bounded. Handle likely and unlikely
14684 counters.
14685 (fmtresult::adjust_for_width_or_precision): New function.
14686 (fmtresult:type_max_digits): New function.
14687 (bytes_remaining): Handle likely and unlikely counters.
14688 (min_bytes_remaining): Remove.
14689 (format_percent): Simplify.
14690 (format_integer, format_floating): Set likely and unlikely counters.
14691 (get_string_length, format_character, format_string): Same.
14692 (format_plain, should_warn_p): New function.
14693 (maybe_warn): Call should_warn_p. Update diagnostic messages
14694 and handle those for all directives, including plain strings.
14695 (format_directive): Handle likely and unlikely counters.
14696 Remove unnecessary quoting from diagnostics. Add an informational
14697 note.
14698 (add_bytes): Remove.
14699 (pass_sprintf_length::compute_format_length): Simplify.
14700 (try_substitute_return_value): Handle likely and unlikely counters.
14701
14702 2017-01-26 Carl Love <cel@us.ibm.com>
14703
14704 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
14705 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
14706
14707 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
14708
14709 PR target/79131
14710 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
14711 endianess for subregs into account.
14712 * lra-constraints.c (lra_constraints): Do risky transformations
14713 always on the first iteration.
14714 * lra-lives.c (check_pseudos_live_through_calls): Add arg
14715 last_call_used_reg_set.
14716 (process_bb_lives): Define and use last_call_used_reg_set.
14717 * lra.c (lra): Always continue after lra_constraints on the first
14718 iteration.
14719
14720 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
14721
14722 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
14723 constant.
14724 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
14725
14726 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14727
14728 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
14729 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
14730 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
14731 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
14732 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
14733 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
14734 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
14735 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
14736 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
14737
14738 2017-01-26 Marek Polacek <polacek@redhat.com>
14739
14740 PR c/79199
14741 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
14742 for the third operand.
14743
14744 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14745
14746 PR middle-end/79236
14747 * omp-low.c (struct omp_context): Add simt_stmt field.
14748 (scan_omp_for): Return omp_context *.
14749 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
14750 context to the _simt_ SIMD stmt.
14751 (lower_omp_for): For combined SIMD with sibling _simt_
14752 SIMD, make sure to use the same decls in _looptemp_
14753 clauses as in the sibling.
14754
14755 2017-01-26 David Sherwood <david.sherwood@arm.com>
14756
14757 PR middle-end/79212
14758 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
14759 all contexts.
14760
14761 2017-01-26 Jakub Jelinek <jakub@redhat.com>
14762
14763 PR target/70465
14764 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
14765 emit fld b; fld a; if possible.
14766
14767 * brig-builtins.def: Update copyright years.
14768 * config/arm/arm_acle_builtins.def: Update copyright years.
14769
14770 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
14771
14772 PR target/79179
14773 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
14774 constraint instead of o for the stxsd instruction.
14775
14776 2017-01-25 Carl Love <cel@us.ibm.com>
14777
14778 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
14779 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
14780
14781 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
14782
14783 * doc/invoke.texi (C++ Dialect Options): Fix typo.
14784
14785 2017-01-25 Richard Biener <rguenther@suse.de>
14786
14787 PR tree-optimization/69264
14788 * target.def (vector_alignment_reachable): Improve documentation.
14789 * doc/tm.texi: Regenerate.
14790 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
14791 and add a comment.
14792 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
14793 earlier changes with respect to TYPE_USER_ALIGN.
14794 (vector_alignment_reachable_p): Likewise. Improve dumping.
14795
14796 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14797
14798 PR target/79145
14799 * config/arm/arm.md (xordi3): Force constant operand into a register
14800 for TARGET_IWMMXT.
14801
14802 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14803
14804 * doc/invoke.texi (-fstore-merging): Correct default optimization
14805 levels at which it is enabled.
14806 (-O): Move -fstore-merging from list to...
14807 (-O2): ... Here.
14808
14809 2017-01-25 Richard Biener <rguenther@suse.de>
14810
14811 PR debug/78363
14812 * omp-expand.c: Include debug.h.
14813 (expand_omp_taskreg): Make sure to generate early debug before
14814 outlining anything from a function.
14815 (expand_omp_target): Likewise.
14816 (grid_expand_target_grid_body): Likewise.
14817
14818 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
14819
14820 PR lto/79061
14821 * asan.c (get_translation_unit_decl): New function.
14822 (asan_add_global): Extract modules file name from globals
14823 TRANSLATION_UNIT_DECL name.
14824
14825 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
14826
14827 PR target/77439
14828 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
14829 for long calls with APCS frame and VFP.
14830
14831 2017-01-24 David Malcolm <dmalcolm@redhat.com>
14832
14833 * cfg.c (original_copy_tables_initialized_p): New function.
14834 * cfg.h (original_copy_tables_initialized_p): New decl.
14835 * cfgrtl.c (relink_block_chain): Guard the call to
14836 free_original_copy_tables with a call to
14837 original_copy_tables_initialized_p.
14838 * cgraph.h (symtab_node::native_rtl_p): New decl.
14839 * cgraphunit.c (symtab_node::native_rtl_p): New function.
14840 (symtab_node::needed_p): Don't assert for early assembly output
14841 for __RTL functions.
14842 (cgraph_node::finalize_function): Set "force_output" for __RTL
14843 functions.
14844 (cgraph_node::analyze): Bail out early for __RTL functions.
14845 (analyze_functions): Update assertion to support __RTL functions.
14846 (cgraph_node::expand): Bail out early for __RTL functions.
14847 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
14848 __RTL functions.
14849 * function.h (struct function): Update comment for field
14850 "pass_startwith".
14851 * gimple-expr.c: Include "tree-pass.h".
14852 (gimple_has_body_p): Return false for __RTL functions.
14853 * Makefile.in (OBJS): Add run-rtl-passes.o.
14854 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
14855 accessor.
14856 (gcc::pass_manager::get_clean_slate): New accessor.
14857 * passes.c: Include "insn-addr.h".
14858 (should_skip_pass_p): Add logging. Update logic for running
14859 "expand" to be compatible with both __GIMPLE and __RTL. Guard
14860 property-provider override so it is only done for gimple passes.
14861 Don't skip dfinit.
14862 (skip_pass): New function.
14863 (execute_one_pass): Call skip_pass when skipping passes.
14864 * read-md.c (md_reader::read_char): Support filtering
14865 the input to a subset of line numbers.
14866 (md_reader::md_reader): Initialize fields
14867 m_first_line and m_last_line.
14868 (md_reader::read_file_fragment): New function.
14869 * read-md.h (md_reader::read_file_fragment): New decl.
14870 (md_reader::m_first_line): New field.
14871 (md_reader::m_last_line): New field.
14872 * read-rtl-function.c (function_reader::create_function): Only
14873 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
14874 curr_properties. Set DECL_INITIAL to a dummy block.
14875 (read_rtl_function_body_from_file_range): New function.
14876 * read-rtl-function.h (read_rtl_function_body_from_file_range):
14877 New decl.
14878 * run-rtl-passes.c: New file.
14879 * run-rtl-passes.h: New file.
14880
14881 2017-01-24 Jeff Law <law@redhat.com>
14882
14883 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
14884 buffer size.
14885
14886 2017-01-24 Bin Cheng <bin.cheng@arm.com>
14887
14888 PR tree-optimization/79159
14889 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
14890 (record_nonwrapping_iv): Improve boundary using above function if no
14891 value range information.
14892
14893 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
14894 Martin Jambor <mjambor@suse.cz>
14895
14896 * brig-builtins.def: New file.
14897 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
14898 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
14899 (DEF_HSAIL_SAT_BUILTIN): Likewise.
14900 (DEF_HSAIL_INTR_BUILTIN): Likewise.
14901 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
14902 * builtin-types.def (BT_INT8): New.
14903 (BT_INT16): Likewise.
14904 (BT_UINT8): Likewise.
14905 (BT_UINT16): Likewise.
14906 (BT_FN_ULONG): Likewise.
14907 (BT_FN_UINT_INT): Likewise.
14908 (BT_FN_UINT_ULONG): Likewise.
14909 (BT_FN_UINT_LONG): Likewise.
14910 (BT_FN_UINT_PTR): Likewise.
14911 (BT_FN_ULONG_PTR): Likewise.
14912 (BT_FN_INT8_FLOAT): Likewise.
14913 (BT_FN_INT16_FLOAT): Likewise.
14914 (BT_FN_UINT32_FLOAT): Likewise.
14915 (BT_FN_UINT16_FLOAT): Likewise.
14916 (BT_FN_UINT8_FLOAT): Likewise.
14917 (BT_FN_UINT64_FLOAT): Likewise.
14918 (BT_FN_UINT16_UINT32): Likewise.
14919 (BT_FN_UINT32_UINT16): Likewise.
14920 (BT_FN_UINT16_UINT16_UINT16): Likewise.
14921 (BT_FN_INT_PTR_INT): Likewise.
14922 (BT_FN_UINT_PTR_UINT): Likewise.
14923 (BT_FN_LONG_PTR_LONG): Likewise.
14924 (BT_FN_ULONG_PTR_ULONG): Likewise.
14925 (BT_FN_VOID_UINT64_UINT64): Likewise.
14926 (BT_FN_UINT8_UINT8_UINT8): Likewise.
14927 (BT_FN_INT8_INT8_INT8): Likewise.
14928 (BT_FN_INT16_INT16_INT16): Likewise.
14929 (BT_FN_INT_INT_INT): Likewise.
14930 (BT_FN_UINT_FLOAT_UINT): Likewise.
14931 (BT_FN_FLOAT_UINT_UINT): Likewise.
14932 (BT_FN_ULONG_UINT_UINT): Likewise.
14933 (BT_FN_ULONG_UINT_PTR): Likewise.
14934 (BT_FN_ULONG_ULONG_ULONG): Likewise.
14935 (BT_FN_UINT_UINT_UINT): Likewise.
14936 (BT_FN_VOID_UINT_PTR): Likewise.
14937 (BT_FN_UINT_UINT_PTR: Likewise.
14938 (BT_FN_UINT32_UINT64_PTR): Likewise.
14939 (BT_FN_INT_INT_UINT_UINT): Likewise.
14940 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
14941 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
14942 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
14943 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
14944 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
14945 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
14946 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
14947 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
14948 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
14949 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
14950 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
14951 * doc/frontends.texi: List BRIG FE.
14952 * doc/install.texi (Testing): Add BRIG tesring requirements.
14953 * doc/invoke.texi (Overall Options): Mention BRIG.
14954 * doc/standards.texi (Standards): Doucment BRIG HSA version.
14955
14956 2017-01-24 Richard Biener <rguenther@suse.de>
14957
14958 PR translation/79208
14959 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
14960
14961 2017-01-24 Martin Jambor <mjambor@suse.cz>
14962
14963 PR bootstrap/79198
14964 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
14965 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
14966 and known_contexts.
14967
14968 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
14969
14970 PR middle-end/79123
14971 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
14972 casts from signed to unsigned really don't have a range.
14973
14974 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
14975
14976 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
14977 GMP_RNDx for compatiblity.
14978
14979 2017-01-24 Martin Liska <mliska@suse.cz>
14980
14981 PR bootstrap/79132
14982 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
14983 that would prevent us to call alloca with -1 as argument.
14984
14985 2017-01-24 Jakub Jelinek <jakub@redhat.com>
14986
14987 * dwarf2out.c (output_compilation_unit_header, output_file_names):
14988 Avoid -Wformat-security warning.
14989
14990 2017-01-23 Andrew Pinski <apinski@cavium.com>
14991
14992 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
14993 cost table.
14994
14995 2017-01-23 Martin Sebor <msebor@redhat.com>
14996
14997 PR middle-end/78703
14998 * gimple-ssa-sprintf.c (warn_level): New global.
14999 (format_integer): Use it here and throughout the rest of the file.
15000 Use the same switch to compute sign as base.
15001 (maybe_warn): New function.
15002 (format_directive): Factor out warnings into maybe_warn.
15003 Add debugging output. Use warn_level.
15004 (add_bytes): Use warn_level.
15005 (pass_sprintf_length::compute_format_length): Add debugging output.
15006 (try_substitute_return_value): Same.
15007 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
15008
15009 PR middle-end/78703
15010 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
15011 (struct fmtresult, format_integer, format_floating): Adjust.
15012 (fmtresult::fmtresult): Set max correctly in two argument ctor.
15013 (get_string_length, format_string,format_directive): Same.
15014 (pass_sprintf_length::compute_format_length): Same.
15015 (try_substitute_return_value): Simplify slightly.
15016
15017 PR middle-end/78703
15018 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
15019 (fmtresult::operator+=): Outlined.
15020 (struct fmtresult): Add ctors.
15021 (struct conversion_spec): Rename...
15022 (struct directive): ...to this. Add and remove data members.
15023 (directive::set_width, directive::set_precision): New functions.
15024 (format_percent): Use fmtresult ctor.
15025 (get_width_and_precision): Remove.
15026 (format_integer): Make naming changes. Avoid computing width and
15027 precision.
15028 (format_floating): Same. Adjust indentation.
15029 (format_character, format_none): New functions.
15030 (format_string): Moved character handling to format_character.
15031 (format_directive): Remove arguments, change return type.
15032 (parse_directive): New function.
15033 (pass_sprintf_length::compute_format_length): Move directive
15034 parsing to parse_directive.
15035
15036 2017-01-23 Jakub Jelinek <jakub@redhat.com>
15037
15038 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
15039 (assign_assembler_name_if_needed): ... this.
15040 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
15041 (assign_assembler_name_if_needed): ... this.
15042 (free_lang_data_in_cgraph): Adjust callers.
15043 * cgraphunit.c (cgraph_node::analyze): Likewise.
15044 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
15045 Likewise.
15046
15047 2017-01-23 Richard Biener <rguenther@suse.de>
15048
15049 PR tree-optimization/79088
15050 PR tree-optimization/79188
15051 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
15052 resetting loop bounds after last path deletion. Reset loop
15053 bounds of the target loop, make code match the comments.
15054 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
15055 Make sure loops need no fixups.
15056
15057 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
15058
15059 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
15060 exponent support with double type for first argument.
15061 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
15062 type returned by __builtin_vec_extract_sig,
15063 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
15064 functions from "vector int" to "vector unsigned int" or from
15065 "vector long long int" to "vector unsigned long long int".
15066 Changed type returned by __builtin_vec_extract_exp,
15067 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
15068 functions from "vector int" to "vector unsigned int" or from
15069 "vector long long int" to "vector unsigned long long int".
15070 Changed return type of __builtin_vec_test_data_class,
15071 __builtin_vec_test_data_class_sp, and
15072 __builtin_vec_test_data_class_dp from "vector int" to
15073 "vector bool int" or from "vector long long int" to "vector bool
15074 long long int" and changed second argument type from "unsigned
15075 int" to "int". Added new overloaded function forms "vector float
15076 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
15077 "vector float __builtin_vec_insert_exp_sp (vector float, vector
15078 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
15079 double, vector unsigned long long int)" and "vector double
15080 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
15081 long int)". Changed return type of
15082 __builtin_scalar_test_data_class and
15083 __builtin_scalar_test_data_class_sp and
15084 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
15085 int" and changed second argument from "unsigned int" to "int".
15086 Changed type returned by __builtin_scalar_test_neg,
15087 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
15088 from "int" to "bool int". Added new overloaded function form
15089 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
15090 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
15091 exponent double-precision with floating point first argument.
15092 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
15093 documentation of scalar_test_data_class, scalar_test_neg,
15094 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
15095 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
15096 vec_test_data_class built-in functions to reflect refinements in
15097 their type signatures.
15098
15099 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
15100
15101 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
15102 size of buf.
15103 (aarch64_elf_asm_destructor): Likewise.
15104
15105 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
15106
15107 PR rtl-optimization/78634
15108 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
15109 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
15110 * ifcvt.c (noce_try_cmove): Add missing cost check.
15111
15112 PR rtl-optimization/71724
15113 * combine.c (if_then_else_cond): Look for situations where it is
15114 beneficial to undo the work of one of the recursive calls.
15115
15116 2017-01-23 Bin Cheng <bin.cheng@arm.com>
15117
15118 PR tree-optimization/70754
15119 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
15120 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
15121 combined stmt before it if not NULL.
15122 (combine_chains): Process refs reversely and compute dominance point
15123 for root ref.
15124
15125 2017-01-23 Martin Liska <mliska@suse.cz>
15126
15127 PR tree-optimization/79196
15128 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
15129 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
15130 instead of memcmp.
15131 (strlen_optimize_stmt): Call the renamed function.
15132
15133 2017-01-23 Michael Matz <matz@suse.de>
15134
15135 PR tree-optimization/78384
15136 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
15137
15138 2017-01-23 Richard Biener <rguenther@suse.de>
15139
15140 PR tree-optimization/79186
15141 * tree-vrp.c (register_new_assert_for): Make sure we've seen
15142 both incoming edges before moving an assert.
15143
15144 2017-01-23 Martin Jambor <mjambor@suse.cz>
15145
15146 * ipa-prop.c (load_from_param_1): Removed.
15147 (load_from_unmodified_param): Bits from load_from_param_1 put back
15148 here.
15149 (load_from_param): Removed.
15150 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
15151 with stmt. Reverted back to use of load_from_unmodified_param.
15152
15153 2017-01-23 Martin Jambor <mjambor@suse.cz>
15154
15155 PR ipa/79108
15156 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
15157 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
15158 field a pointer to garbage collected vector, mark lattices and
15159 ipcp_orig_node with GTY((skip)).
15160 (ipa_get_param_count): Adjust to descriptors being a pointer.
15161 (ipa_get_param): Likewise.
15162 (ipa_get_type): Likewise.
15163 (ipa_get_param_move_cost): Likewise.
15164 (ipa_set_param_used): Likewise.
15165 (ipa_get_controlled_uses): Likewise.
15166 (ipa_set_controlled_uses): Likewise.
15167 (ipa_is_param_used): Likewise.
15168 (ipa_node_params_t): Move into garbage collector. New methods insert
15169 and remove.
15170 (ipa_node_params_sum): Annotate wth GTY(()).
15171 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
15172 garbage collected.
15173 (ipa_load_from_parm_agg): Adjust declaration.
15174 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
15175 * ipa-profile.c (ipa_profile): Likewise.
15176 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
15177 (ipa_populate_param_decls): Make descriptors parameter garbage
15178 collected.
15179 (ipa_dump_param): Adjust to descriptors being a pointer.
15180 (ipa_alloc_node_params): Likewise.
15181 (ipa_initialize_node_params): Likewise.
15182 (load_from_param_1): Make descriptors parameter garbage collected.
15183 (load_from_unmodified_param): Likewise.
15184 (load_from_param): Likewise.
15185 (ipa_load_from_parm_agg): Likewise.
15186 (ipa_node_params::~ipa_node_params): Removed.
15187 (ipa_free_all_node_params): Remove call to delete operator.
15188 (ipa_node_params_t::insert): New.
15189 (ipa_node_params_t::remove): Likewise.
15190 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
15191 copy known_csts and known_contexts vectors.
15192 (ipa_read_node_info): Adjust to descriptors being a pointer.
15193 (ipcp_modif_dom_walker): Make m_descriptors field garbage
15194 collected.
15195 (ipcp_transform_function): Make descriptors variable garbage
15196 collected.
15197
15198 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
15199
15200 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
15201 * config/i386/avx512dqintrin.h: Ditto.
15202 * config/i386/avx512fintrin.h: Ditto.
15203 * gcc/config/i386/i386.c: Handle new builtins.
15204 * config/i386/i386-builtin.def: Add new builtins.
15205 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
15206 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
15207
15208 2017-01-23 Jakub Jelinek <jakub@redhat.com>
15209 Martin Liska <mliska@suse.cz>
15210
15211 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
15212 * asan.c (asan_expand_poison_ifn): Support stores and use
15213 appropriate ASAN report function.
15214 * internal-fn.c (expand_ASAN_POISON_USE): New function.
15215 * internal-fn.def (ASAN_POISON_USE): Declare.
15216 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
15217 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
15218 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
15219 ASAN_POISON calls w/o LHS.
15220 * tree-ssa.c (execute_update_addresses_taken): Create clobber
15221 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
15222 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
15223 * gimplify.c (asan_poison_variables): Add attribute
15224 use_after_scope_memory to variables that really needs to live
15225 in memory.
15226 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
15227 having the attribute.
15228
15229 2017-01-23 Martin Liska <mliska@suse.cz>
15230
15231 * asan.c (create_asan_shadow_var): New function.
15232 (asan_expand_poison_ifn): Likewise.
15233 * asan.h (asan_expand_poison_ifn): New declaration.
15234 * internal-fn.c (expand_ASAN_POISON): Likewise.
15235 * internal-fn.def (ASAN_POISON): New builtin.
15236 * sanopt.c (pass_sanopt::execute): Expand
15237 asan_expand_poison_ifn.
15238 * tree-inline.c (copy_decl_for_dup_finish): Make function
15239 external.
15240 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
15241 * tree-ssa.c (is_asan_mark_p): New function.
15242 (execute_update_addresses_taken): Rewrite local variables
15243 (identified just by use-after-scope as addressable) into SSA.
15244
15245 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
15246
15247 * doc/install.texi (Specific): opensource.apple.com uses https
15248 now. Remove trailing slash.
15249
15250 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
15251
15252 * README.Portability: Remove note on an Irix compatibility issue.
15253
15254 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
15255
15256 * gcov.c (INCLUDE_ALGORITHM): Define.
15257 (INCLUDE_VECTOR): Define.
15258 No longer include <vector> and <algorithm> directly.
15259
15260 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
15261
15262 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
15263 to https.
15264 * doc/invoke.texi (Code Gen Options): Ditto.
15265
15266 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
15267
15268 PR lto/78407
15269 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
15270
15271 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
15272
15273 rtl-optimization/79125
15274 * cprop.c (local_cprop_pass): Handle cases where we make an
15275 unconditional trap.
15276
15277 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
15278
15279 PR target/61729
15280 PR target/77850
15281 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
15282 read from, for big endian.
15283
15284 2017-01-20 Jiong Wang <jiong.wang@arm.com>
15285
15286 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
15287 register pauth builtins for LP64 only.
15288
15289 2017-01-20 Marek Polacek <polacek@redhat.com>
15290
15291 PR c/79152
15292 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
15293 non-case labels.
15294
15295 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
15296
15297 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
15298 of safelen status.
15299 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
15300 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
15301 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
15302
15303 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15304
15305 PR target/71270
15306 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
15307 in big-endian mode when they are not a single duplicated value.
15308
15309 2017-01-20 Richard Biener <rguenther@suse.de>
15310
15311 * BASE-VER: Bump to 7.0.1.
15312
15313 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
15314
15315 * omp-low.c (omplow_simd_context): New struct. Use it...
15316 (lower_rec_simd_input_clauses): ...here and...
15317 (lower_rec_input_clauses): ...here to hold common data. Adjust all
15318 references to idx, lane, max_vf, is_simt.
15319
15320 2017-01-20 Graham Markall <graham.markall@embecosm.com>
15321
15322 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
15323 mcpu=nps400.
15324
15325 2017-01-20 Martin Jambor <mjambor@suse.cz>
15326
15327 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
15328 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
15329 gt-hsa-common.h.
15330 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
15331 (GTFILES): Rename hsa.c to hsa-common.c.
15332 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
15333 * hsa-dump.c: Likewise.
15334 * hsa-gen.c: Likewise.
15335 * hsa-regalloc.c: Likewise.
15336 * ipa-hsa.c: Likewise.
15337 * omp-expand.c: Likewise.
15338 * omp-low.c: Likewise.
15339 * toplev.c: Likewise.
15340
15341 2017-01-20 Marek Polacek <polacek@redhat.com>
15342
15343 PR c/64279
15344 * doc/invoke.texi: Document -Wduplicated-branches.
15345 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
15346 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
15347 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
15348 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
15349 return 0 only when not OEP_LEXICOGRAPHIC.
15350 (fold_build_cleanup_point_expr): Use the expression
15351 location when building CLEANUP_POINT_EXPR.
15352 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
15353 * tree.c (add_expr): Handle error_mark_node.
15354
15355 2017-01-20 Martin Liska <mliska@suse.cz>
15356
15357 PR lto/69188
15358 * tree-profile.c (init_ic_make_global_vars): Do not call
15359 finalize_decl.
15360 (gimple_init_gcov_profiler): Likewise.
15361
15362 2017-01-20 Martin Liska <mliska@suse.cz>
15363
15364 PR ipa/71190
15365 * cgraph.h (maybe_create_reference): Remove argument and
15366 update comment.
15367 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
15368 argument.
15369 * ipa-cp.c (create_specialized_node): Likewise.
15370 * symtab.c (symtab_node::maybe_create_reference): Handle
15371 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
15372
15373 2017-01-20 Martin Liska <mliska@suse.cz>
15374
15375 * read-rtl-function.c (function_reader::create_function): Use
15376 build_decl instread of build_decl_stat.
15377
15378 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
15379
15380 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
15381 * config/i386/avx512dqintrin.h: Ditto.
15382 * config/i386/avx512fintrin.h: Ditto.
15383 * config/i386/i386-builtin-types.def: Add new types.
15384 * gcc/config/i386/i386.c: Handle new types.
15385 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
15386 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
15387 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
15388 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
15389 (__builtin_ia32_kshiftridi): New.
15390 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
15391
15392 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
15393
15394 PR target/78875
15395 PR target/79140
15396 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
15397 define to rs6000_init_stack_protect_guard.
15398 (rs6000_init_stack_protect_guard): New function.
15399
15400 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15401 Yunqiang Su <yunqiang.su@imgtec.com>
15402
15403 * config.gcc (supported_defaults): Add madd4.
15404 (with_madd4): Add validation.
15405 (all_defaults): Add madd4.
15406 * config/mips/mips.opt (mmadd4): New option.
15407 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15408 mmadd4.
15409 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15410 __mips_no_madd4.
15411 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
15412 (ISA_HAS_FUSED_MADD4): Likewise.
15413 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
15414 * gcc/doc/install.texi (--with-madd4): Document the new option.
15415
15416 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15417
15418 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
15419 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
15420 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
15421 (aarch64_init_pauth_hint_builtins): New.
15422 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
15423 (aarch64_expand_builtin): Expand new builtins.
15424
15425 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15426
15427 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
15428 * combine-stack-adj.c (no_unhandled_cfa): Handle
15429 REG_CFA_TOGGLE_RA_MANGLE.
15430 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
15431 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
15432 info for return address signing.
15433 (aarch64_expand_epilogue): Likewise.
15434
15435 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15436
15437 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
15438 * config/aarch64/aarch64-protos.h
15439 (aarch64_return_address_signing_enabled): New declaration.
15440 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
15441 New function.
15442 (aarch64_expand_prologue): Sign return address before it's pushed onto
15443 stack.
15444 (aarch64_expand_epilogue): Authenticate return address fetched from
15445 stack.
15446 (aarch64_override_options): Sanity check for ILP32 and ISA level.
15447 (aarch64_attributes): New function attributes for "sign-return-address".
15448 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
15449 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
15450 ("*do_return"): Generate combined instructions according to key index.
15451 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
15452 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
15453 iterators.
15454 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
15455 * config/aarch64/aarch64.opt (msign-return-address=): New.
15456 * doc/extend.texi (AArch64 Function Attributes): Documents
15457 "sign-return-address=".
15458 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
15459
15460 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
15461
15462 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
15463 overall option summary.
15464
15465 2017-01-19 Jiong Wang <jiong.wang@arm.com>
15466
15467 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
15468 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
15469 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
15470 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
15471
15472 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15473
15474 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
15475 -mpower9-minmax by default for -mcpu=power9.
15476 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
15477 128-bit floating point.
15478
15479 2017-01-20 Alan Modra <amodra@gmail.com>
15480
15481 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
15482 optimizing for size.
15483
15484 2017-01-20 Alan Modra <amodra@gmail.com>
15485
15486 PR target/79144
15487 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
15488 for strcmp and strncmp from corresponding builtin decl.
15489
15490 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
15491
15492 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
15493 instead of i386/rtems-64.h.
15494 * config/i386/rtems-64.h: Remove.
15495
15496 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
15497
15498 PR target/78478
15499 Revert:
15500 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
15501
15502 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
15503
15504 2017-01-19 Tamar Christina <tamar.christina@arm.com>
15505
15506 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
15507 Change int to HOST_WIDE_INT.
15508 * config/aarch64/aarch64-protos.h
15509 (aarch64_simd_gen_const_vector_dup): Likewise.
15510 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
15511
15512 2017-01-19 David Malcolm <dmalcolm@redhat.com>
15513
15514 * langhooks-def.h (lhd_type_for_size): New decl.
15515 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
15516 * langhooks.c (lhd_type_for_size): New function, taken from
15517 lto_type_for_size.
15518
15519 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
15520
15521 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
15522 define_bypass for CR latency.
15523 (power9-cracked-alu): Update bypass latency and remove power9-branch.
15524 (power9-alu2): Add define_bypass for CR latency.
15525 (power9-cmp): New.
15526 (power9-mul): Update insn latency.
15527 (power9-mul-compare): Update insn latency, bypass latency and remove
15528 power9-branch.
15529
15530 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15531
15532 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
15533 Delete.
15534 * config/aarch64/aarch64.md
15535 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
15536 aarch64_nopcrelative_literal_loads.
15537 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15538
15539 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
15540
15541 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
15542 TARGET_LOONGSON_3A.
15543 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
15544
15545 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
15546
15547 PR target/78176
15548 * config.gcc (supported_defaults): Add lxc1-sxc1.
15549 (with_lxc1_sxc1): Add validation.
15550 (all_defaults): Add lxc1-sxc1.
15551 * config/mips/mips.opt (mlxc1-sxc1): New option.
15552 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
15553 mlxc1-sxc1.
15554 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
15555 __mips_no_lxc1_sxc1.
15556 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
15557 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
15558 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
15559
15560 2017-01-19 Richard Biener <rguenther@suse.de>
15561
15562 PR tree-optimization/72488
15563 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
15564 sure to restore SSA info.
15565 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
15566
15567 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
15568
15569 PR rtl-optimization/79121
15570 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
15571 of the inner type when shifting an extended value.
15572
15573 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
15574
15575 PR lto/78407
15576 * symtab.c (symtab_node::equal_address_to): Fix comparing of
15577 interposable aliases.
15578
15579 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
15580
15581 PR target/78516
15582 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
15583 Use the evmergelohi instruction.
15584 (mov_si<mode>_e500_subreg4_2_le): Likewise.
15585 (mov_sitf_e500_subreg8_2_be): Likewise.
15586 (mov_sitf_e500_subreg12_2_le): Likewise.
15587 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
15588 (mov_si<mode>_e500_subreg4_2_be): Likewise.
15589 (mov_sitf_e500_subreg8_2_le): Likewise.
15590 (mov_sitf_e500_subreg12_2_be): Likewise.
15591
15592 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15593
15594 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
15595 attribute from vecsimple to vecperm.
15596 (altivec_vbpermq2): Likewise.
15597
15598 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15599
15600 PR target/79040
15601 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
15602
15603 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15604 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
15605 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
15606 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
15607 case where N arg is SIZE_MAX.
15608 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
15609 (cmpstrsi): Add pattern.
15610
15611 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
15612
15613 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15614 __builtin_vec_revb builtins.
15615 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
15616 built-in functions to support generation of the ISA 3.0 XXBR<x>
15617 vector byte reverse instructions.
15618 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
15619 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
15620 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
15621 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
15622 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
15623 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
15624 (P9V_BUILTIN_VEC_REVB): Likewise.
15625 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
15626 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
15627 (p9_xxbrq_v16qi): Likewise.
15628 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
15629 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
15630 (p9_xxbrh_v8hi): Likewise.
15631 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
15632 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
15633 vec_revb built-in functions.
15634
15635 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
15636
15637 PR rtl-optimization/78952
15638 * config/i386/i386.md (any_extract): New code iterator.
15639 (*insvqi_2): Use any_extract for source operand.
15640 (*insvqi_3): Use any_shiftrt for source operand.
15641
15642 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
15643
15644 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
15645 New function.
15646 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
15647
15648 2017-01-18 Matthias Klose <doko@ubuntu.com>
15649
15650 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
15651
15652 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15653
15654 * config/rs6000/altivec.h (vec_bperm): Change #define.
15655 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
15656 (altivec_vbpermq2): New define_insn.
15657 (altivec_vbpermd): Likewise.
15658 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
15659 function interface.
15660 (VBPERMD): Likewise.
15661 (VBPERM): New polymorphic function interface.
15662 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
15663 Add entries for P9V_BUILTIN_VEC_VBPERM.
15664 * doc/extend.texi: Add interfaces for vec_bperm.
15665
15666 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15667
15668 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
15669 first letter of error messages.
15670 (s390_resolve_overloaded_builtin): Likewise.
15671 * config/s390/s390.c (s390_expand_builtin): Likewise.
15672 (s390_invalid_arg_for_unprototyped_fn): Likewise.
15673 (s390_valid_target_attribute_inner_p): Likewise.
15674 * config/s390/s390.md ("tabort"): Likewise.
15675
15676 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
15677
15678 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
15679 (ISA_AVOID_DIV_HILO): New macro.
15680 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
15681 (ISA_HAS_DDIV): Likewise.
15682
15683 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15684
15685 * doc/invoke.texi (fabi-version): Correct number of occurrences.
15686
15687 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15688
15689 * doc/invoke.texi (fabi-version): Spelling fix.
15690
15691 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15692
15693 PR c++/70182
15694 * doc/invoke.texi (fabi-version): Mention mangling fix for
15695 operator names.
15696
15697 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
15698
15699 PR c++/77489
15700 * doc/invoke.texi (fabi-version): Document discriminator mangling.
15701
15702 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
15703
15704 PR target/78875
15705 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
15706 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
15707 the new options.
15708 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
15709 flexible settings.
15710 (stack_protect_test): Ditto.
15711 * config/rs6000/rs6000.opt (mstack-protector-guard=,
15712 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
15713 options.
15714 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
15715 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
15716 -mstack-protector-guard-offset=.
15717 (RS/6000 and PowerPC Options): Ditto.
15718
15719 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
15720
15721 * config/i386/i386.h (MASK_CLASS_P): New define.
15722 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
15723 there are no registers from different register sets also when
15724 mask registers are used. Update function comment.
15725 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
15726 to (*k/*r) and (*k/*km) alternatives.
15727
15728 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
15729
15730 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
15731 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
15732 (EH_RETURN_HANDLER_RTX): New define.
15733 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
15734 Force frame pointer in EH return functions.
15735 (aarch64_expand_epilogue): Add barrier for eh_return.
15736 (aarch64_final_eh_return_addr): Remove.
15737 (aarch64_eh_return_handler_rtx): New function.
15738 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
15739 Remove.
15740 (aarch64_eh_return_handler_rtx): New prototype.
15741
15742 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15743
15744 * config/rs6000/altivec.h (vec_rlmi): New #define.
15745 (vec_vrlnm): Likewise.
15746 (vec_rlnm): Likewise.
15747 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
15748 (UNSPEC_VRLNM): Likewise.
15749 (VIlong): New mode iterator.
15750 (altivec_vrl<VI_char>mi): New define_insn.
15751 (altivec_vrl<VI_char>nm): Likewise.
15752 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
15753 function entry.
15754 (VRLDNM): Likewise.
15755 (RLNM): New polymorphic function entry.
15756 (VRLWMI): New monomorphic function entry.
15757 (VRLDMI): Likewise.
15758 (RLMI): New polymorphic function entry.
15759 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
15760 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
15761 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
15762 vec_vrlnm.
15763
15764 2017-01-17 Jakub Jelinek <jakub@redhat.com>
15765
15766 PR debug/78839
15767 * dwarf2out.c (field_byte_offset): Restore the
15768 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
15769 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
15770 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
15771 of build2 + fold.
15772
15773 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
15774
15775 PR ada/67205
15776 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
15777
15778 2017-01-17 Jakub Jelinek <jakub@redhat.com>
15779
15780 PR debug/71669
15781 * dwarf2out.c (add_data_member_location_attribute): For constant
15782 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
15783 instead of DW_AT_data_member_location, DW_AT_bit_offset and
15784 DW_AT_byte_size attributes.
15785
15786 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
15787
15788 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
15789 after forcing to constant memory when the code model is medium.
15790
15791 2017-01-17 Julia Koval <julia.koval@intel.com>
15792
15793 PR target/76731
15794 * config/i386/avx512fintrin.h
15795 (_mm512_i32gather_ps): Change __addr type to void const*.
15796 (_mm512_mask_i32gather_ps): Ditto.
15797 (_mm512_i32gather_pd): Ditto.
15798 (_mm512_mask_i32gather_pd): Ditto.
15799 (_mm512_i64gather_ps): Ditto.
15800 (_mm512_mask_i64gather_ps): Ditto.
15801 (_mm512_i64gather_pd): Ditto.
15802 (_mm512_mask_i64gather_pd): Ditto.
15803 (_mm512_i32gather_epi32): Ditto.
15804 (_mm512_mask_i32gather_epi32): Ditto.
15805 (_mm512_i32gather_epi64): Ditto.
15806 (_mm512_mask_i32gather_epi64): Ditto.
15807 (_mm512_i64gather_epi32): Ditto.
15808 (_mm512_mask_i64gather_epi32): Ditto.
15809 (_mm512_i64gather_epi64): Ditto.
15810 (_mm512_mask_i64gather_epi64): Ditto.
15811 (_mm512_i32scatter_ps): Change __addr type to void*.
15812 (_mm512_mask_i32scatter_ps): Ditto.
15813 (_mm512_i32scatter_pd): Ditto.
15814 (_mm512_mask_i32scatter_pd): Ditto.
15815 (_mm512_i64scatter_ps): Ditto.
15816 (_mm512_mask_i64scatter_ps): Ditto.
15817 (_mm512_i64scatter_pd): Ditto.
15818 (_mm512_mask_i64scatter_pd): Ditto.
15819 (_mm512_i32scatter_epi32): Ditto.
15820 (_mm512_mask_i32scatter_epi32): Ditto.
15821 (_mm512_i32scatter_epi64): Ditto.
15822 (_mm512_mask_i32scatter_epi64): Ditto.
15823 (_mm512_i64scatter_epi32): Ditto.
15824 (_mm512_mask_i64scatter_epi32): Ditto.
15825 (_mm512_i64scatter_epi64): Ditto.
15826 (_mm512_mask_i64scatter_epi64): Ditto.
15827 * config/i386/avx512pfintrin.h
15828 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
15829 (_mm512_mask_prefetch_i32gather_ps): Ditto.
15830 (_mm512_mask_prefetch_i64gather_pd): Ditto.
15831 (_mm512_mask_prefetch_i64gather_ps): Ditto.
15832 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
15833 (_mm512_prefetch_i32scatter_ps): Ditto.
15834 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
15835 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
15836 (_mm512_prefetch_i64scatter_pd): Ditto.
15837 (_mm512_prefetch_i64scatter_ps): Ditto.
15838 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
15839 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
15840 * config/i386/avx512vlintrin.h
15841 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
15842 (_mm_mmask_i32gather_ps): Ditto.
15843 (_mm256_mmask_i32gather_pd): Ditto.
15844 (_mm_mmask_i32gather_pd): Ditto.
15845 (_mm256_mmask_i64gather_ps): Ditto.
15846 (_mm_mmask_i64gather_ps): Ditto.
15847 (_mm256_mmask_i64gather_pd): Ditto.
15848 (_mm_mmask_i64gather_pd): Ditto.
15849 (_mm256_mmask_i32gather_epi32): Ditto.
15850 (_mm_mmask_i32gather_epi32): Ditto.
15851 (_mm256_mmask_i32gather_epi64): Ditto.
15852 (_mm_mmask_i32gather_epi64): Ditto.
15853 (_mm256_mmask_i64gather_epi32): Ditto.
15854 (_mm_mmask_i64gather_epi32): Ditto.
15855 (_mm256_mmask_i64gather_epi64): Ditto.
15856 (_mm_mmask_i64gather_epi64): Ditto.
15857 (_mm256_i32scatter_ps): Change __addr type to void*.
15858 (_mm256_mask_i32scatter_ps): Ditto.
15859 (_mm_i32scatter_ps): Ditto.
15860 (_mm_mask_i32scatter_ps): Ditto.
15861 (_mm256_i32scatter_pd): Ditto.
15862 (_mm256_mask_i32scatter_pd): Ditto.
15863 (_mm_i32scatter_pd): Ditto.
15864 (_mm_mask_i32scatter_pd): Ditto.
15865 (_mm256_i64scatter_ps): Ditto.
15866 (_mm256_mask_i64scatter_ps): Ditto.
15867 (_mm_i64scatter_ps): Ditto.
15868 (_mm_mask_i64scatter_ps): Ditto.
15869 (_mm256_i64scatter_pd): Ditto.
15870 (_mm256_mask_i64scatter_pd): Ditto.
15871 (_mm_i64scatter_pd): Ditto.
15872 (_mm_mask_i64scatter_pd): Ditto.
15873 (_mm256_i32scatter_epi32): Ditto.
15874 (_mm256_mask_i32scatter_epi32): Ditto.
15875 (_mm_i32scatter_epi32): Ditto.
15876 (_mm_mask_i32scatter_epi32): Ditto.
15877 (_mm256_i32scatter_epi64): Ditto.
15878 (_mm256_mask_i32scatter_epi64): Ditto.
15879 (_mm_i32scatter_epi64): Ditto.
15880 (_mm_mask_i32scatter_epi64): Ditto.
15881 (_mm256_i64scatter_epi32): Ditto.
15882 (_mm256_mask_i64scatter_epi32): Ditto.
15883 (_mm_i64scatter_epi32): Ditto.
15884 (_mm_mask_i64scatter_epi32): Ditto.
15885 (_mm256_i64scatter_epi64): Ditto.
15886 (_mm256_mask_i64scatter_epi64): Ditto.
15887 (_mm_i64scatter_epi64): Ditto.
15888 (_mm_mask_i64scatter_epi64): Ditto.
15889 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
15890 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
15891 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
15892 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
15893 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
15894 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
15895 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
15896 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
15897 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
15898 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
15899 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
15900 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
15901 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
15902 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
15903 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
15904 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
15905 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
15906 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
15907 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
15908 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
15909 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
15910 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
15911 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
15912 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
15913 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
15914 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
15915 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
15916 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
15917 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
15918 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
15919 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
15920 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
15921 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
15922 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
15923 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
15924 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
15925 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
15926 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
15927 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
15928 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
15929 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
15930 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
15931 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
15932 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
15933 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
15934 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
15935 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
15936 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
15937 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
15938 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
15939 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
15940 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
15941 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
15942 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
15943 definitions accordingly.
15944
15945 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
15946 Kuan-Lin Chen <kuanlinchentw@gmail.com>
15947
15948 PR target/79079
15949 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
15950 gen_lowpart.
15951
15952 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
15953
15954 PR target/79058
15955 * ira-conflicts.c (ira_build_conflicts): Update total conflict
15956 hard regs for inner regno.
15957
15958 2017-01-17 Martin Liska <mliska@suse.cz>
15959
15960 PR ipa/71207
15961 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
15962 assumption and add comment.
15963
15964 2017-01-17 Nathan Sidwell <nathan@acm.org>
15965
15966 * ipa-visibility.c (localize_node): New function, broken out of ...
15967 (function_and_variable_visibility): ... here. Call it.
15968
15969 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
15970
15971 PR middle-end/77445
15972 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
15973 correctly set frequency of oudgoing edge.
15974 (duplicate_thread_path): Fix profile updating.
15975
15976 2017-01-17 Jakub Jelinek <jakub@redhat.com>
15977
15978 PR other/79046
15979 * configure.ac: Add GCC_BASE_VER.
15980 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
15981 version from BASE-VER file.
15982 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
15983 (gcc.o): Depend on $(BASEVER).
15984 * common.opt (dumpfullversion): New option.
15985 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
15986 * doc/invoke.texi: Document -dumpfullversion.
15987 * doc/install.texi: Document --with-gcc-major-version-only.
15988 * configure: Regenerated.
15989
15990 2017-01-17 Richard Biener <rguenther@suse.de>
15991
15992 PR tree-optimization/71433
15993 * tree-vrp.c (register_new_assert_for): Merge same asserts
15994 on all incoming edges.
15995 (process_assert_insertions_for): Handle insertions at the
15996 beginning of BBs.
15997
15998 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
15999
16000 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
16001 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
16002
16003 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
16004
16005 PR target/78633
16006 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
16007 RTL sharing.
16008
16009 2017-01-17 Alan Modra <amodra@gmail.com>
16010
16011 PR target/79066
16012 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
16013 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
16014 symbolic stack limit when pic.
16015
16016 2017-01-16 Martin Sebor <msebor@redhat.com>
16017
16018 PR tree-optimization/78608
16019 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
16020
16021 2017-01-16 Jeff Law <law@redhat.com>
16022
16023 Revert:
16024 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
16025 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
16026 for several include directories that may be relative to sysroot.
16027 * config/i386/x-mingw32 (gplus_includedir): Define.
16028 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
16029 (native_system_includedir): Likewise.
16030 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
16031 override if TARGET_SYSTEM_ROOT is defined.
16032 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
16033
16034 PR tree-optimization/79090
16035 PR tree-optimization/33562
16036 PR tree-optimization/61912
16037 PR tree-optimization/77485
16038 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
16039 and computed trims into the dump file.
16040
16041 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
16042
16043 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
16044
16045 2017-01-16 Jakub Jelinek <jakub@redhat.com>
16046
16047 PR c/79089
16048 * gimplify.c (gimplify_init_constructor): If want_value and
16049 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
16050 fix.
16051
16052 PR target/79080
16053 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
16054 sequence. Formatting fixes.
16055 (doloop_optimize): Formatting fixes.
16056
16057 PR driver/49726
16058 * gcc.c (debug_level_greater_than_spec_func): New function.
16059 (static_spec_functions): Add debug-level-gt spec function.
16060 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
16061 !g0.
16062 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
16063 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
16064 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
16065 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
16066 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
16067 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
16068
16069 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
16070
16071 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
16072 QImode fixups to general and mask registers only.
16073
16074 2017-01-16 Carl Love <cel@us.ibm.com>
16075
16076 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
16077 for built-in functions
16078 vector signed char vec_nabs (vector signed char)
16079 vector signed short vec_nabs (vector signed short)
16080 vector signed int vec_nabs (vector signed int)
16081 vector signed long long vec_nabs (vector signed long long)
16082 vector float vec_nabs (vector float)
16083 vector double vec_nabs (vector double)
16084 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
16085 and NABS overload.
16086 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
16087 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
16088 * doc/extend.texi: Update the documentation file for the new built-in
16089 functions.
16090
16091 2017-01-16 Martin Sebor <msebor@redhat.com>
16092
16093 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
16094 message.
16095
16096 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16097
16098 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
16099 UNSPEC_VSX__XXSPLTD to require special splat handling.
16100
16101 2017-01-16 David Malcolm <dmalcolm@redhat.com>
16102
16103 PR bootstrap/78616
16104 * system.h: Poison strndup.
16105
16106 2017-01-16 Alan Modra <amodra@gmail.com>
16107
16108 PR target/79098
16109 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
16110 use a switch.
16111
16112 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
16113
16114 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
16115
16116 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
16117
16118 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
16119 call recog here. Assert that INSN_CODE (insn) is non-negative.
16120
16121 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
16122
16123 PR target/72749
16124 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
16125 fallthrough.
16126 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
16127 in the currently scheduled RTL fragment.
16128
16129 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
16130
16131 PR rtl-optimization/78751
16132 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
16133 give up.
16134
16135 2017-01-14 Jeff Law <law@redhat.com>
16136
16137 PR tree-optimization/79090
16138 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
16139 variable length stores.
16140 (compute_trims): Delete dead assignment to *trim_tail.
16141 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
16142 zero length.
16143
16144 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
16145
16146 PR rtl-optimization/78626
16147 PR rtl-optimization/78727
16148 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
16149 of a block, and split such blocks after everything else is finished.
16150
16151 2017-01-14 Alan Modra <amodra@gmail.com>
16152
16153 PR target/72749
16154 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
16155 target legitimate_combined_insn.
16156 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
16157 (rs6000_legitimate_combined_insn): New function.
16158 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
16159 all uses.
16160 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
16161 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
16162 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
16163
16164 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
16165
16166 * doc/frontends.texi (G++ and GCC): Remove references to Java.
16167
16168 2017-01-13 Jeff Law <law@redhat.com>
16169
16170 PR tree-optimization/33562
16171 PR tree-optimization/61912
16172 PR tree-optimization/77485
16173 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
16174 a statement.
16175 (delete_dead_assignment): Likewise.
16176 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
16177 statement to delete_dead_call and delete_dead_assignment.
16178
16179 2017-01-13 David Malcolm <dmalcolm@redhat.com>
16180
16181 PR c/78304
16182 * substring-locations.c (format_warning_va): Strengthen case 1 so
16183 that both endpoints of the substring must be within the format
16184 range for just the substring to be printed.
16185
16186 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
16187
16188 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
16189 * config/i386/i386.c (ix86_target_string): Add missing options
16190 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
16191 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
16192 flags_other and ix86_target_other to flags2_other. Display unknown
16193 isa2 options.
16194 (ix86_valid_target_attribute_inner_p): Add missing options and
16195 reorder options by implied ISAs, as in ix86_target_string.
16196
16197 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
16198
16199 * hash-table.h (hash_table::too_empty_p): New function.
16200 (hash_table::expand): Use it.
16201 (hash_table::traverse): Likewise.
16202 (hash_table::empty_slot): Use sizeof (value_type) instead of
16203 sizeof (PTR) to convert bytes to elements. Shrink the table
16204 if the current size is excessive for the current number of
16205 elements.
16206
16207 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
16208
16209 * ira-costs.c (record_reg_classes): Break from the inner loop
16210 early once alt_fail is known to be true. Update outer loop
16211 handling accordingly.
16212
16213 2017-01-13 Jeff Law <law@redhat.com>
16214
16215 * tree-ssa-dse.c (decrement_count): New function.
16216 (increment_start_addr, maybe_trim_memstar_call): Likewise.
16217 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
16218 when we know the partially dead statement is a mem* function.
16219
16220 PR tree-optimization/61912
16221 PR tree-optimization/77485
16222 * tree-ssa-dse.c: Include expr.h.
16223 (maybe_trim_constructor_store): New function.
16224 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
16225
16226 PR tree-optimization/33562
16227 PR tree-optimization/61912
16228 PR tree-optimization/77485
16229 * doc/invoke.texi: Document new dse-max-object-size param.
16230 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
16231 * tree-ssa-dse.c: Include params.h.
16232 (dse_store_status): New enum.
16233 (initialize_ao_ref_for_dse): New, partially extracted from
16234 dse_optimize_stmt.
16235 (valid_ao_ref_for_dse, normalize_ref): New.
16236 (setup_live_bytes_from_ref, compute_trims): Likewise.
16237 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
16238 (maybe_trim_partially_dead_store): Likewise.
16239 (maybe_trim_complex_store): Likewise.
16240 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
16241 Track what bytes live from the original store. Return tri-state
16242 for dead, partially dead or live.
16243 (dse_dom_walker): Add constructor, destructor and new private members.
16244 (delete_dead_call, delete_dead_assignment): New extracted from
16245 dse_optimize_stmt.
16246 (dse_optimize_stmt): Make a member of dse_dom_walker.
16247 Use initialize_ao_ref_for_dse.
16248
16249 PR tree-optimization/33562
16250 PR tree-optimization/61912
16251 PR tree-optimization/77485
16252 * sbitmap.h (bitmap_count_bits): Prototype.
16253 (bitmap_clear_range, bitmap_set_range): Likewise.
16254 * sbitmap.c (bitmap_clear_range): New function.
16255 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
16256
16257 2017-01-13 Martin Liska <mliska@suse.cz>
16258
16259 PR ipa/79043
16260 * function.c (set_cfun): Add new argument force.
16261 * function.h (set_cfun): Likewise.
16262 * ipa-inline-transform.c (inline_call): Use the function when
16263 strict alising from is dropped for function we inline to.
16264
16265 2017-01-13 Richard Biener <rguenther@suse.de>
16266
16267 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
16268 for dumping GIMPLE INTEGER_CSTs.
16269
16270 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16271
16272 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
16273 to 201112L since C++17.
16274
16275 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
16276
16277 PR sanitizer/78887
16278 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
16279 if -fsanitize=kernel-address is present.
16280
16281 2017-01-13 Richard Biener <rguenther@suse.de>
16282
16283 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
16284 as _Literal ( type ) number in case usual suffixes do not
16285 preserve all information.
16286
16287 2017-01-13 Richard Biener <rguenther@suse.de>
16288
16289 PR tree-optimization/77283
16290 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
16291 and ssa-iterators.h.
16292 (is_feasible_trace): Implement a cost model based on joiner
16293 PHI node uses.
16294
16295 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16296
16297 PR target/79004
16298 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
16299 char or short to __float128/_Float128 directly.
16300
16301 2017-01-12 Martin Sebor <msebor@redhat.com>
16302
16303 to -Wformat-overflow.
16304 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
16305 (min_bytes_remaining): Same.
16306 (get_string_length): Same.
16307 (format_string): Same.
16308 (format_directive): Same.
16309 (add_bytes): Same.
16310 (pass_sprintf_length::handle_gimple_call): Same.
16311
16312 2017-01-12 Jakub Jelinek <jakub@redhat.com>
16313
16314 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
16315 info.nowrite calls with no lhs that can't throw. Return bool
16316 whether gsi_remove has been called or not.
16317 (pass_sprintf_length::handle_gimple_call): Return bool whether
16318 try_substitute_return_value called gsi_remove. Formatting fix.
16319 (pass_sprintf_length::execute): Don't use gsi_remove if
16320 handle_gimple_call returned true.
16321
16322 PR bootstrap/79069
16323 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
16324 be removed due to side-effects, don't remove following barrier nor
16325 turn the successor edge into fallthru edge.
16326
16327 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16328
16329 PR target/79044
16330 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
16331 element-reversing loads and stores as not swappable.
16332
16333 2017-01-12 Nathan Sidwell <nathan@acm.org>
16334 Nicolai Stange <nicstange@gmail.com>
16335
16336 * combine.c (try_combine): Don't ignore result of overlap checking
16337 loop. Combine overlap & asm check into single loop.
16338
16339 2017-01-12 Richard Biener <rguenther@suse.de>
16340
16341 * tree-pretty-print.c (dump_generic_node): Provide -gimple
16342 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
16343
16344 2017-01-12 Richard Biener <rguenther@suse.de>
16345
16346 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
16347 and TS_TARGET_OPTION directly derive from TS_BASE.
16348 * tree-core.h (tree_optimization_option): Derive from tree_base.
16349 (tree_target_option): Likewise.
16350
16351 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
16352
16353 * config/i386/i386.c (memory_address_length): Increase len
16354 only when rip_relative_addr_p returns false.
16355
16356 2017-01-11 Julia Koval <julia.koval@intel.com>
16357
16358 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
16359 (OPTION_MASK_ISA_SGX_SET): New.
16360 (ix86_handle_option): Handle OPT_msgx.
16361 * config.gcc: Added sgxintrin.h.
16362 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
16363 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
16364 * config/i386/i386.c (ix86_target_string): Add -msgx.
16365 (PTA_SGX): New.
16366 (ix86_option_override_internal): Handle new options.
16367 (ix86_valid_target_attribute_inner_p): Add sgx.
16368 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
16369 * config/i386/i386.opt: Add msgx.
16370 * config/i386/sgxintrin.h: New file.
16371 * config/i386/x86intrin.h: Add sgxintrin.h.
16372
16373 2017-01-11 Jakub Jelinek <jakub@redhat.com>
16374
16375 PR c++/71537
16376 * fold-const.c (maybe_nonzero_address): Return 1 for function
16377 local objects.
16378 (tree_single_nonzero_warnv_p): Don't handle function local objects
16379 here.
16380
16381 PR c++/72813
16382 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
16383 of c-header.
16384
16385 2017-01-11 David Malcolm <dmalcolm@redhat.com>
16386
16387 PR driver/78877
16388 * opts.c: Include "spellcheck.h"
16389 (struct string_fragment): New struct.
16390 (struct edit_distance_traits<const string_fragment &>): New
16391 struct.
16392 (get_closest_sanitizer_option): New function.
16393 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
16394
16395 2017-01-11 Jakub Jelinek <jakub@redhat.com>
16396
16397 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
16398 by 12.
16399 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
16400 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
16401 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
16402 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
16403 for initial die_offset if dwarf_split_debug_info.
16404 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
16405 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
16406 fields.
16407 (output_skeleton_debug_sections): Formatting fix. Use
16408 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
16409 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
16410
16411 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
16412
16413 * config/arm/cortex-a53.md: Add bypasses for
16414 cortex_a53_r2f_cvt.
16415 (cortex_a53_r2f): Only use for transfers.
16416 (cortex_a53_f2r): Likewise.
16417 (cortex_a53_r2f_cvt): Add reservation for conversions.
16418 (cortex_a53_f2r_cvt): Likewise.
16419
16420 2017-01-11 Tamar Christina <tamar.christina@arm.com>
16421
16422 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
16423 to all inlined functions, change static to extern.
16424
16425 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
16426
16427 PR target/78253
16428 * config/arm/arm.c (legitimize_pic_address): Handle reference to
16429 weak symbol.
16430 (arm_assemble_integer): Likewise.
16431
16432 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
16433
16434 * config.gcc: Use new awk script to check CPU, FPU and architecture
16435 parameters for --with-... options.
16436 * config/arm/parsecpu.awk: New file
16437 * config/arm/arm-cpus.in: New file.
16438 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
16439 files.
16440 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
16441 files.
16442 * config/arm/t-arm: Update dependency rules.
16443 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
16444 of processing .def files.
16445 * config/arm/genopt.sh: Deleted.
16446 * config/arm/gentune.sh: Deleted.
16447 * config/arm/arm-cores.def: Deleted.
16448 * config/arm/arm-arches.def: Deleted.
16449 * config/arm/arm-fpus.def: Deleted.
16450 * config/arm/arm-tune.md: Regenerated.
16451 * config/arm/arm-tables.opt: Regenerated.
16452 * config/arm/arm-cpu.h: New generated file.
16453 * config/arm/arm-cpu-data.h: New generated file.
16454 * config/arm/arm-cpu-cdata.h: New generated file.
16455
16456 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
16457
16458 PR lto/79042
16459 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
16460 bit.
16461 (input_varpool_node): Unpack dynamically_initialized bit.
16462
16463 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
16464
16465 PR rtl-optimization/79032
16466 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
16467 the alignment of the adjusted memory reference against that of MODE,
16468 instead of the alignment of the original memory reference.
16469
16470 2017-01-11 Martin Jambor <mjambor@suse.cz>
16471
16472 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
16473 test.
16474 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
16475 decorated functions.
16476
16477 2017-01-11 Richard Biener <rguenther@suse.de>
16478
16479 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
16480 set range/nonnull info for PHI results. Do not set it on
16481 stmts marked for removal.
16482
16483 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
16484
16485 * expr.c (store_field): In the bitfield case, fetch the return value
16486 from the registers before applying a single big-endian adjustment.
16487 Always do a final load for a BLKmode value not larger than a word.
16488
16489 2017-01-10 David Malcolm <dmalcolm@redhat.com>
16490
16491 PR c++/77949
16492 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16493 that we correctly handle column numbers greater than
16494 LINE_MAP_MAX_COLUMN_NUMBER.
16495
16496 2017-01-10 Martin Sebor <msebor@redhat.com>
16497
16498 PR middle-end/78245
16499 * gimple-ssa-sprintf.c (get_destination_size): Call
16500 {init,fini}object_sizes.
16501 * tree-object-size.c (addr_object_size): Adjust.
16502 (pass_through_call): Adjust.
16503 (pass_object_sizes::execute): Adjust.
16504 * tree-object-size.h (fini_object_sizes): Declare.
16505
16506 2017-01-10 Martin Sebor <msebor@redhat.com>
16507
16508 PR tree-optimization/78775
16509 * builtins.c (get_size_range): Move...
16510 * calls.c: ...to here.
16511 (alloc_max_size): Accept zero argument.
16512 (operand_signed_p): Remove.
16513 (maybe_warn_alloc_args_overflow): Call get_size_range.
16514 * calls.h (get_size_range): Declare.
16515
16516 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
16517
16518 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
16519 from TI's devices.csv file as of September 2016.
16520 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
16521
16522 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
16523
16524 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
16525 * doc/invoke.texi: Likewise.
16526 * doc/md.texi: Likewise.
16527 * doc/objc.texi: Likewise.
16528
16529 2017-01-10 Joshua Conner <joshconner@google.com>
16530
16531 * config/arm/fuchsia-elf.h: New file.
16532 * config/fuchsia.h: New file.
16533 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
16534 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
16535 targets.
16536 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
16537
16538 2016-01-10 Richard Biener <rguenther@suse.de>
16539
16540 PR tree-optimization/79034
16541 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
16542 Propagate out degenerate PHIs in the joiner.
16543
16544 2017-01-10 Martin Liska <mliska@suse.cz>
16545
16546 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
16547 (sort_congruence_classes_by_decl_uid): Likewise.
16548 (sort_congruence_class_groups_by_decl_uid): Likewise.
16549 (sem_item_optimizer::merge_classes): Sort class, groups in these
16550 classes and members in the groups by DECL_UID of declarations.
16551 This would make merge operations stable.
16552
16553 2017-01-10 Martin Liska <mliska@suse.cz>
16554
16555 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
16556 usage of m_classes_vec.
16557 (sem_item_optimizer::~sem_item_optimizer): Likewise.
16558 (sem_item_optimizer::get_group_by_hash): Likewise.
16559 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
16560 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
16561 (sem_item_optimizer::verify_classes): Likewise.
16562 (sem_item_optimizer::process_cong_reduction): Likewise.
16563 (sem_item_optimizer::dump_cong_classes): Likewise.
16564 (sem_item_optimizer::merge_classes): Likewise.
16565 * ipa-icf.h (congruence_class_hash): Rename from
16566 congruence_class_group_hash. Remove declaration of m_classes_vec.
16567
16568 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
16569
16570 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
16571 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
16572 * config.gcc: Add avx512vpopcntdqintrin.h.
16573 * config/i386/avx512vpopcntdqintrin.h: New.
16574 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
16575 * config/i386/i386-builtin-types.def: Add new types.
16576 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
16577 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
16578 __builtin_ia32_vpopcountq_v8di_mask): New.
16579 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16580 __AVX512VPOPCNTDQ__.
16581 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
16582 (PTA_AVX512VPOPCNTDQ): Define.
16583 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
16584 TARGET_AVX512VPOPCNTDQ_P): Define.
16585 * config/i386/i386.opt: Add mavx512vpopcntdq.
16586 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
16587 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
16588
16589 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16590
16591 PR middle-end/77484
16592 * predict.def (PRED_CALL): Set to 67.
16593
16594 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
16595
16596 * expr.c (store_field): In the bitfield case, if the value comes from
16597 a function call and is of an aggregate type returned in registers, do
16598 not modify the field mode; extract the value in all cases if the mode
16599 is BLKmode and the size is not larger than a word.
16600
16601 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
16602
16603 PR target/71017
16604 * config/i386/cpuid.h: Fix undefined behavior.
16605
16606 2017-01-04 Jeff Law <law@redhat.com>
16607
16608 PR tree-optimization/79007
16609 PR tree-optimization/67955
16610 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
16611 conservative for pt.null when flag_non_call_exceptions is on.
16612
16613 2017-01-09 Jakub Jelinek <jakub@redhat.com>
16614
16615 PR translation/79019
16616 PR translation/79020
16617 * params.def (PARAM_INLINE_MIN_SPEEDUP,
16618 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
16619 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
16620 in descriptions.
16621 * config/avr/avr.opt (maccumulate-args): Likewise.
16622 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
16623 * common.opt (freport-bug): Likewise.
16624 * cif-code.def (CIF_FINAL_ERROR): Likewise.
16625 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
16626 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
16627 translatable string.
16628 * config/i386/i386.c (function_value_32): Likewise.
16629 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
16630 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
16631 Likewise.
16632 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
16633 * common/config/msp430/msp430-common.c (msp430_handle_option):
16634 Likewise.
16635 * symtab.c (symtab_node::verify_base): Likewise.
16636 * opts.c (set_debug_level): Likewise.
16637 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
16638 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16639 missing whitespace to translatable strings.
16640 * config/avr/avr.md (bswapsi2): Fix typo in comment.
16641 * config/sh/superh.h: Likewise.
16642 * config/i386/xopintrin.h: Likewise.
16643 * config/i386/znver1.md: Likewise.
16644 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
16645 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
16646 * double-int.h (struct double_int): Likewise.
16647 * double-int.c (div_and_round_double): Likewise.
16648 * wide-int.cc: Likewise.
16649 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16650 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
16651 * cfgcleanup.c (crossjumps_occured): Renamed to ...
16652 (crossjumps_occurred): ... this.
16653 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
16654 Adjust all uses.
16655
16656 PR tree-optimization/78899
16657 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
16658 returning bool return struct loop *, NULL for failure and the new
16659 loop on success.
16660 (versionable_outer_loop_p): Don't version outer loop if it has
16661 dont_vectorized bit set.
16662 (tree_if_conversion): When versioning outer loop, ensure
16663 tree_if_conversion is performed also on the inner loop of the
16664 non-vectorizable outer loop copy.
16665 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
16666 LOOP_VECTORIZED in inner loop of the scalar outer loop and
16667 prevent vectorization of it.
16668 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
16669 the outer loop vectorization of the non-scalar version is attempted
16670 before vectorization of the inner loop in scalar version. If
16671 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
16672 vectorization of its inner loop.
16673 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
16674 has 2 inner loops, rename also on edges from bb whose single pred
16675 is outer_loop->header. Fix typo in function comment.
16676
16677 2017-01-09 Martin Sebor <msebor@redhat.com>
16678
16679 PR bootstrap/79033
16680 * asan.c (asan_emit_stack_protection): Increase local buffer size
16681 to avoid snprintf truncation warning.
16682
16683 2017-01-09 Andrew Pinski <apinski@cavium.com>
16684
16685 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
16686 to reference thunderx2t99 for the tuning structure
16687 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
16688 Rename to ...
16689 (thunderx2t99_extra_costs): This.
16690 * config/aarch64/aarch64-tune.md: Regenerate.
16691 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
16692 (vulcan_addrcost_table): This.
16693 (vulcan_regmove_cost): Rename to ...
16694 (thunderx2t99_regmove_cost): This.
16695 (vulcan_vector_cost): Rename to ...
16696 (thunderx2t99_vector_cost): this.
16697 (vulcan_branch_cost): Rename to ...
16698 (thunderx2t99_branch_cost): This.
16699 (vulcan_tunings): Rename to ...
16700 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
16701 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
16702
16703 2017-01-09 Martin Jambor <mjambor@suse.cz>
16704
16705 PR ipa/78365
16706 PR ipa/78599
16707 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
16708 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
16709 (propagate_vr_accross_jump_function): Use the above function for all
16710 value range computations for pass-through jump functions and type
16711 converasion from explicit value range values.
16712 (ipcp_propagate_stage): Do not attempt to deduce types of formal
16713 parameters from TYPE_ARG_TYPES.
16714 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
16715 (ipa_write_node_info): Stream type of the actual argument.
16716 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
16717
16718 2017-01-09 Martin Liska <mliska@suse.cz>
16719
16720 PR pch/78970
16721 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
16722 (lookup_compiler): Do not show error message with have_E.
16723
16724 2017-01-09 Jakub Jelinek <jakub@redhat.com>
16725
16726 PR tree-optimization/78938
16727 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
16728 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
16729 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
16730 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
16731 fixes.
16732
16733 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16734
16735 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
16736 is const0_rtx.
16737
16738 2017-01-09 Richard Biener <rguenther@suse.de>
16739
16740 PR tree-optimization/78997
16741 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
16742 name condition properly.
16743
16744 2017-01-09 Richard Biener <rguenther@suse.de>
16745
16746 PR debug/79000
16747 * dwarf2out.c (is_cxx): New overload with context.
16748 (is_naming_typedef_decl): Use it.
16749
16750 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16751
16752 * invoke.texi (Option Summary): Correct spacing in option lists
16753 and add line breaks to fix over-long lines.
16754
16755 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16756
16757 PR middle-end/17660
16758
16759 * extend.texi (Common Variable Attributes): Add xref to GCC
16760 Internals manual to explain mode attribute keywords.
16761
16762 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
16763
16764 PR other/16519
16765 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
16766 and Preprocessor Options.
16767 (Options for Linking): Document -pthread here....
16768 (RS/6000 and PowerPC Options): ...not here.
16769 (Solaris 2 Options): ...or here.
16770 * doc/cppopts.texi: Document -pthread.
16771
16772 2017-01-08 Martin Sebor <msebor@redhat.com>
16773
16774 PR middle-end/77708
16775 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
16776 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
16777 New member functions.
16778 (format_directive): Used them.
16779 (add_bytes): Same.
16780 (pass_sprintf_length::handle_gimple_call): Same.
16781 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
16782 to avoid truncation for any argument.
16783 (extract_affine_mul): Same.
16784 * tree.c (get_file_function_name): Same.
16785
16786 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
16787
16788 PR middle-end/77484
16789 * predict.def (PRED_INDIR_CALL): Set to 86.
16790
16791 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16792
16793 PR preprocessor/54124
16794 * doc/cppopts.texi: Reformat -d subtable to list the full name
16795 of the options. Add cross-reference to the docs for the general
16796 compiler -d options.
16797 * doc/invoke.texi (Developer Options): Add cross-reference to the
16798 preprocessor-specific -d option documentation.
16799
16800 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16801
16802 PR preprocessor/13498
16803 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
16804 redudant material, and reflect new command-line options.
16805 (System Headers): Likewise.
16806
16807 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
16808
16809 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
16810 -isystem, and -idirafter. Copy-edit.
16811 * doc/cppopts.texi: Copy-edit. Remove contradiction about
16812 default for -ftrack-macro-expansion. Delete obsolete and
16813 badly-formatted implementation details about -fdebug-cpp output.
16814 * doc/cppwarnopts.texi: Copy-edit.
16815
16816 2017-01-07 David Malcolm <dmalcolm@redhat.com>
16817
16818 PR c++/72803
16819 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
16820 that the transition from a max line width >= 1<<10 to narrower
16821 lines works correctly.
16822
16823 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
16824
16825 * doc/options.texi (PerFunction): New.
16826 * opt-functions.awk (switch_flags): Map both Optimization and
16827 PerFunction to CL_OPTIMIZATION.
16828 * opth-gen.awk: Test for PerFunction flag along with
16829 Optimization.
16830 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
16831 it only when the latter is present. Skip those that don't in
16832 the hash function generator.
16833 * common.opt (fvar-tracking): Mark as PerFunction instead of
16834 Optimization.
16835 (fvar-tracking-assignments): Likewise.
16836 (fvar-tracking-assignments-toggle): Likewise.
16837 (fvar-tracking-uninit): Likewise.
16838
16839 2017-01-07 Jakub Jelinek <jakub@redhat.com>
16840
16841 PR translation/79018
16842 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
16843 the and store.
16844
16845 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
16846
16847 PR target/57583
16848 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
16849 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
16850 TARGET_LONG_JUMP_TABLE_OFFSETS.
16851 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
16852 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
16853 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
16854 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
16855 * config/m68k/m68k.md (tablejump expander): Likewise.
16856 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
16857 TARGET_LONG_JUMP_TABLE_OFFSETS.
16858 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
16859 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
16860
16861 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
16862 David Holsgrove <david.holsgrove@xilinx.com>
16863
16864 * common/config/microblaze/microblaze-common.c
16865 (TARGET_EXCEPT_UNWIND_INFO): Remove.
16866 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
16867 New prototype.
16868 * config/microblaze/microblaze.c (microblaze_must_save_register)
16869 (microblaze_expand_epilogue, microblaze_return_addr): Handle
16870 calls_eh_return.
16871 (microblaze_eh_return): New function.
16872 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
16873 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
16874 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
16875 * config/microblaze/microblaze.md (eh_return): New pattern.
16876
16877 2017-01-06 Jakub Jelinek <jakub@redhat.com>
16878
16879 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
16880 GCC_DIAGNOSTIC_STRINGIFY): Define.
16881
16882 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
16883
16884 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16885
16886 * config/arm/arm.md (<mcrr>): New.
16887 (<mrrc>): New.
16888 * config/arm/arm.c (arm_arch5te): New.
16889 (arm_option_override): Set arm_arch5te.
16890 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
16891 and mrrc2.
16892 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
16893 (arm_mcrr_qualifiers): ... this. New.
16894 (MRRC_QUALIFIERS): Define to...
16895 (arm_mrrc_qualifiers): ... this. New.
16896 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
16897 __arm_mrrc2): New.
16898 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
16899 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
16900 (MRRCI, mrrc, MRRC): New.
16901 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
16902 VUNSPEC_MRRC2): New.
16903
16904 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16905
16906 * config/arm/arm.md (<mcr>): New.
16907 (<mrc>): New.
16908 * config/arm/arm.c (arm_coproc_builtin_available): Add
16909 support for mcr, mrc, mcr2 and mrc2.
16910 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
16911 (arm_mcr_qualifiers): ... this. New.
16912 (MRC_QUALIFIERS): Define to ...
16913 (arm_mrc_qualifiers): ... this. New.
16914 (MCR_QUALIFIERS): Define to ...
16915 (arm_mcr_qualifiers): ... this. New.
16916 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
16917 __arm_mrc2): New.
16918 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
16919 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
16920 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
16921 VUNSPEC_MRC2): New.
16922
16923 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16924
16925 * config/arm/arm.md (*ldc): New.
16926 (*stc): New.
16927 (<ldc>): New.
16928 (<stc>): New.
16929 * config/arm/arm.c (arm_coproc_builtin_available): Add
16930 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
16931 (arm_coproc_ldc_stc_legitimate_address): New.
16932 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
16933 'qualifier_const_pointer'.
16934 (LDC_QUALIFIERS): Define to...
16935 (arm_ldc_qualifiers): ... this. New.
16936 (STC_QUALIFIERS): Define to...
16937 (arm_stc_qualifiers): ... this. New.
16938 * config/arm/arm-protos.h
16939 (arm_coproc_ldc_stc_legitimate_address): New.
16940 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
16941 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
16942 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
16943 stc2, stcl, stc2l): New.
16944 * config/arm/constraints.md (Uz): New.
16945 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
16946 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
16947 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
16948 VUNSPEC_STC2L): New.
16949
16950 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16951
16952 * config/arm/arm.md (<cdp>): New.
16953 * config/arm/arm.c (neon_const_bounds): Rename this ...
16954 (arm_const_bounds): ... this.
16955 (arm_coproc_builtin_available): New.
16956 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
16957 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
16958 (CDP_QUALIFIERS): Define to...
16959 (arm_cdp_qualifiers): ... this. New.
16960 (void_UP): Define.
16961 (arm_expand_builtin_args): Add case for 6 arguments.
16962 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
16963 (arm_const_bounds): ... this.
16964 (arm_coproc_builtin_available): New.
16965 * config/arm/arm_acle.h (__arm_cdp): New.
16966 (__arm_cdp2): New.
16967 * config/arm/arm_acle_builtins.def (cdp): New.
16968 (cdp2): New.
16969 * config/arm/iterators.md (CDPI,CDP,cdp): New.
16970 * config/arm/neon.md: Rename all 'neon_const_bounds' to
16971 'arm_const_bounds'.
16972 * config/arm/types.md (coproc): New.
16973 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
16974 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
16975 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
16976 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
16977
16978 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
16979
16980 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
16981 (UBINOP_QUALIFIERS): New.
16982 (si_UP): Define.
16983 (acle_builtin_data): New. Change comment.
16984 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
16985 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
16986 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
16987 arm_acle_builtins.def.
16988 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
16989 (arm_init_acle_builtins): New.
16990 (CRC32_BUILTIN): Remove.
16991 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
16992 crc32cb, crc32ch and crc32cw.
16993 (arm_init_crc32_builtins): Remove.
16994 (arm_init_builtins): Use arm_init_acle_builtins rather
16995 than arm_init_crc32_builtins.
16996 (arm_expand_acle_builtin): New.
16997 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
16998 * config/arm/arm_acle_builtins.def: New.
16999
17000 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
17001
17002 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
17003 (arm_builtin_datum): ... this.
17004 (arm_init_neon_builtin): Rename to ...
17005 (arm_init_builtin): ... this. Add a new parameters PREFIX
17006 and USE_SIG_IN_NAME.
17007 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
17008 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
17009 'arm_builtin_datum'.
17010 (arm_init_vfp_builtins): Likewise.
17011 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
17012 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
17013 (arm_expand_neon_args): Rename to ...
17014 (arm_expand_builtin_args): ... this. Rename builtin_arg
17015 enum values and differentiate between ARG_BUILTIN_MEMORY
17016 and ARG_BUILTIN_NEON_MEMORY.
17017 (arm_expand_neon_builtin_1): Rename to ...
17018 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
17019 values, arm_expand_builtin_args and add bool parameter NEON.
17020 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
17021 (arm_expand_vfp_builtin): Likewise.
17022 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
17023
17024 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17025
17026 PR middle-end/77484
17027 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
17028 * predict.c (tree_estimate_probability_bb): Reverse direction of
17029 polymorphic call predictor.
17030
17031 2017-01-06 David Malcolm <dmalcolm@redhat.com>
17032
17033 * passes.c (execute_one_pass): Split out pass-skipping logic into...
17034 (determine_pass_name_match): ...this new function and...
17035 (should_skip_pass_p): ...this new function.
17036
17037 2017-01-06 Nathan Sidwell <nathan@acm.org>
17038
17039 * ipa-visibility.c (function_and_variable_visibility): Reformat
17040 comments and long lines. Remove extrneous if.
17041 * symtab.c (symtab_node::make_decl_local): Fix code format.
17042 (symtab_node::set_section_for_node): Fix comment typo.
17043
17044 2017-01-06 Martin Liska <mliska@suse.cz>
17045
17046 PR bootstrap/79003
17047 * lra-constraints.c: Rename invariant to lra_invariant.
17048 * predict.c (set_even_probabilities): Initialize e to NULL.
17049
17050 2017-01-05 Martin Sebor <msebor@redhat.com>
17051
17052 PR tree-optimization/78910
17053 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
17054 (format_integer): Correct off-by-one error in the handling
17055 of precision with negative numbers in signed conversions..
17056
17057 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
17058
17059 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
17060
17061 2017-01-05 Jakub Jelinek <jakub@redhat.com>
17062
17063 PR tree-optimization/71016
17064 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
17065 factor_out_conditional_conversion. Formatting fix.
17066 (factor_out_conditional_conversion): Add cond_stmt argument.
17067 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
17068 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
17069 Formatting fix.
17070
17071 2017-01-05 David Malcolm <dmalcolm@redhat.com>
17072
17073 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
17074 read-rtl-function.o, and selftest-rtl.o.
17075 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
17076 (selftest::aarch64_test_loading_full_dump): New function.
17077 (selftest::aarch64_run_selftests): New function.
17078 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
17079 selftest::aarch64_run_selftests.
17080 * config/i386/i386.c
17081 (selftest::ix86_test_loading_dump_fragment_1): New function.
17082 (selftest::ix86_test_loading_call_insn): New function.
17083 (selftest::ix86_test_loading_full_dump): New function.
17084 (selftest::ix86_test_loading_unspec): New function.
17085 (selftest::ix86_run_selftests): Call the new functions.
17086 * emit-rtl.c (maybe_set_max_label_num): New function.
17087 * emit-rtl.h (maybe_set_max_label_num): New decl.
17088 * function.c (instantiate_decls): Guard call to
17089 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
17090 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
17091 "static".
17092 * gensupport.c (gen_reader::gen_reader): Pass "false"
17093 for new "compact" param of rtx_reader.
17094 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
17095 rather than an empty string for NULL strings.
17096 * read-md.c: Potentially include config.h rather than bconfig.h.
17097 Wrap include of errors.h with #ifdef GENERATOR_FILE.
17098 (have_error): New global, copied from errors.c.
17099 (md_reader::read_name): Rename to...
17100 (md_reader::read_name_1): ...this, adding "out_loc" param,
17101 and converting "missing name or number" to returning false, rather
17102 than failing.
17103 (md_reader::read_name): Reimplement in terms of read_name_1.
17104 (md_reader::read_name_or_nil): New function.
17105 (md_reader::read_string): Handle "(nil)" by returning NULL.
17106 (md_reader::md_reader): Add new param "compact".
17107 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
17108 (md_reader::read_file): New method.
17109 * read-md.h (md_reader::md_reader): Add new param "compact".
17110 (md_reader::read_file): New method.
17111 (md_reader::is_compact): New accessor.
17112 (md_reader::read_name): Convert return type from void to file_location.
17113 (md_reader::read_name_or_nil): New decl.
17114 (md_reader::read_name_1): New decl.
17115 (md_reader::m_compact): New field.
17116 (noop_reader::noop_reader): Pass "false" for new "compact" param
17117 of rtx_reader.
17118 (rtx_reader::rtx_reader): Add new "compact" param.
17119 (rtx_reader::read_rtx_operand): Make virtual and convert return
17120 type from void to rtx.
17121 (rtx_reader::read_until): New decl.
17122 (rtx_reader::handle_any_trailing_information): New virtual function.
17123 (rtx_reader::postprocess): New virtual function.
17124 (rtx_reader::finalize_string): New virtual function.
17125 (rtx_reader::m_in_call_function_usage): New field.
17126 (rtx_reader::m_reuse_rtx_by_id): New field.
17127 * read-rtl-function.c: New file.
17128 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
17129 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
17130 (selftest::verify_three_block_rtl_cfg): New decl.
17131 * read-rtl-function.h: New file.
17132 * read-rtl.c: Potentially include config.h rather than bconfig.h.
17133 For host, include function.h, memmodel.h, and emit-rtl.h.
17134 (one_time_initialization): New function.
17135 (struct compact_insn_name): New struct.
17136 (compact_insn_names): New array.
17137 (find_code): Handle insn codes in compact dumps.
17138 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
17139 (bind_subst_iter_and_attr): Likewise.
17140 (add_condition_to_string): Likewise.
17141 (add_condition_to_rtx): Likewise.
17142 (apply_attribute_uses): Likewise.
17143 (add_current_iterators): Likewise.
17144 (apply_iterators): Likewise.
17145 (initialize_iterators): Guard usage of apply_subst_iterator with
17146 #ifdef GENERATOR_FILE.
17147 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
17148 (md_reader::read_mapping): Likewise.
17149 (add_define_attr_for_define_subst): Likewise.
17150 (add_define_subst_attr): Likewise.
17151 (read_subst_mapping): Likewise.
17152 (check_code_iterator): Likewise.
17153 (rtx_reader::read_rtx): Likewise. Move one-time initialization
17154 logic to...
17155 (one_time_initialization): New function.
17156 (rtx_reader::read_until): New method.
17157 (read_flags): New function.
17158 (parse_reg_note_name): New function.
17159 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
17160 Handle reuse_rtx ids.
17161 Wrap iterator lookup within #ifdef GENERATOR_FILE.
17162 Add parsing support for RTL dumps, mirroring the special-cases in
17163 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
17164 values, and calling handle_any_trailing_information.
17165 (rtx_reader::read_rtx_operand): Convert return type from void
17166 to rtx, returning return_rtx. Handle case 'e'. Call
17167 finalize_string on XSTR and XTMPL fields.
17168 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
17169 "(nil)" values were omitted. Call the postprocess vfunc on the
17170 return_rtx.
17171 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
17172 class ctor. Initialize m_in_call_function_usage. Call
17173 one_time_initialization.
17174 * rtl-tests.c (selftest::test_uncond_jump): Call
17175 set_new_first_and_last_insn.
17176 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
17177 * selftest-rtl.c: New file.
17178 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
17179 (selftest::get_insn_by_uid): New decl.
17180 * selftest-run-tests.c (selftest::run_tests): Call
17181 read_rtl_function_c_tests.
17182 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
17183 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
17184 dumps.
17185
17186 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
17187
17188 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
17189 operands in a special way. Assert that pos+len <= mode precision.
17190
17191 2017-01-05 Jakub Jelinek <jakub@redhat.com>
17192
17193 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
17194 3 argument Alias with unlimited for the negative form.
17195 (fno-vect-cost-model): Removed.
17196
17197 2017-01-05 Martin Liska <mliska@suse.cz>
17198
17199 * hsa-gen.c (gen_hsa_divmod): New function.
17200 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
17201
17202 2017-01-05 Martin Liska <mliska@suse.cz>
17203
17204 PR pch/78970
17205 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
17206 header.
17207
17208 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17209
17210 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
17211 small constant length operands.
17212
17213 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17214
17215 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
17216 between loop iterations.
17217
17218 2017-01-05 Martin Liska <mliska@suse.cz>
17219
17220 PR sanitizer/78815
17221 * gimplify.c (gimplify_decl_expr): Compare to
17222 asan_poisoned_variables instread of checking flags.
17223 (gimplify_target_expr): Likewise.
17224 (gimplify_expr): Likewise.
17225 (gimplify_function_tree): Conditionally initialize
17226 asan_poisoned_variables.
17227
17228 2017-01-04 Jeff Law <law@redhat.com>
17229
17230 PR tree-optimizatin/78812
17231 * rtl.h (contains_mem_rtx_p): Prototype.
17232 * ifcvt.c (containts_mem_rtx_p): Move from here to...
17233 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
17234 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
17235 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
17236 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
17237
17238 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17239
17240 * input.c (assert_char_at_range): Default-initialize actual_range.
17241
17242 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17243
17244 * df-scan.c (df_ref_create_structure): Make regno unsigned,
17245 to match the caller.
17246
17247 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17248
17249 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
17250 insns after final jump in test to emit dummy move.
17251
17252 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17253
17254 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
17255 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
17256
17257 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
17258
17259 * multiple_target.c (create_dispatcher_calls): Init e_next.
17260 * tree-ssa-loop-split.c (split_loop): Init border.
17261 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
17262 scalar_type.
17263
17264 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
17265
17266 PR target/71977
17267 PR target/70568
17268 PR target/78823
17269 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
17270 (altivec_register_operand): Do not return true if the operand
17271 contains a SUBREG mixing SImode and SFmode.
17272 (vsx_register_operand): Likewise.
17273 (vsx_reg_sfsubreg_ok): New predicate.
17274 (vfloat_operand): Do not return true if the operand contains a
17275 SUBREG mixing SImode and SFmode.
17276 (vint_operand): Likewise.
17277 (vlogical_operand): Likewise.
17278 (gpc_reg_operand): Likewise.
17279 (int_reg_operand): Likewise.
17280 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
17281 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
17282 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
17283 SImode and SFmode.
17284 (rs6000_emit_move_si_sf_subreg): New helper function.
17285 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
17286 fixup SUBREGs involving SImode and SFmode.
17287 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
17288 numbers for the new peephole2 optimization.
17289 (peephole2 for SFmode unions): New peephole2 to optimize cases in
17290 the GLIBC math library that do AND/IOR/XOR operations on single
17291 precision floating point.
17292 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
17293 target macros to say whether we need to avoid SUBREGs mixing
17294 SImode and SFmode.
17295 (TARGET_ALLOW_SF_SUBREG): Likewise.
17296 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
17297 (UNSPEC_SI_FROM_SF): Likewise.
17298 (iorxor): Change spacing.
17299 (and_ior_xor): New iterator for AND, IOR, and XOR.
17300 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
17301 (movdi_from_sf_zero_ext): Likewise.
17302 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
17303 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
17304 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
17305 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
17306 (fms<mode>4): Likewise.
17307 (fnma<mode>4): Likewise.
17308 (fnms<mode>4): Likewise.
17309 (nfma<mode>4): Likewise.
17310 (nfms<mode>4): Likewise.
17311
17312 2017-01-04 Marek Polacek <polacek@redhat.com>
17313
17314 PR c++/64767
17315 * doc/invoke.texi: Document -Wpointer-compare.
17316
17317 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17318
17319 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
17320 RejectNegative.
17321
17322 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
17323 descriptions for -gdwarf-5 and emit them as uleb128 instead of
17324 2-byte data.
17325
17326 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
17327
17328 PR target/78056
17329 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
17330 documentation of the powerpc_popcntb_ok attribute.
17331 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17332 code to issue warning messages if a requested CPU configuration is
17333 not supported by the binary (assembler and loader) toolchain.
17334 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
17335 made to define a built-in function that has been disabled.
17336 (paired_init_builtins): Add assertion to prevent ICE if attempt is
17337 made to define a built-in function that has been disabled.
17338 (altivec_init_builtins): Add comment explaining why definition
17339 of the DST built-in functions is not preceded by an assertion
17340 check. Add assertions to prevent ICE if attempts are made to
17341 define an altivec predicate or an abs* built-in function that has
17342 been disabled.
17343 (htm_init_builtins): Add comment explaining why definition of the
17344 htm built-in functions is not preceded by an assertion check.
17345
17346 2017-01-04 Jeff Law <law@redhat.com>
17347
17348 PR tree-optimizatin/67955
17349 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
17350 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
17351 the points-to solution does not include pt_null. Use DECL_PT_UID
17352 unconditionally.
17353
17354 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
17355
17356 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
17357 Use gen_int_mode instead of gen_lopwart for const_int operands.
17358
17359 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17360
17361 PR tree-optimization/71563
17362 * match.pd: Simplify X << Y into X if Y is known to be 0 or
17363 out of range value - has low bits known to be zero.
17364
17365 2017-01-04 Alan Modra <amodra@gmail.com>
17366
17367 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
17368 * configure: Regenerate.
17369 * config.in: Regenerate.
17370
17371 2017-01-04 Jakub Jelinek <jakub@redhat.com>
17372
17373 PR bootstrap/77569
17374 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
17375 a substring of the message, but strcmp with the whole message. Ifdef
17376 ENABLE_NLS, translate the message first using dgettext.
17377
17378 2017-01-03 Jeff Law <law@redhat.com>
17379
17380 PR tree-optimizatin/78856
17381 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
17382 (mark_threaded_blocks): Remove code to truncate thread paths that
17383 cross multiple loop headers. Instead invalidate the cached loop
17384 iteration information and handle case of a thread path walking
17385 into an irreducible region.
17386
17387 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17388
17389 PR target/78900
17390 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
17391 assertions. Add support for doing the signbit if the IEEE 128-bit
17392 floating point value is in a GPR.
17393 * config/rs6000/rs6000.md (Fsignbit): Delete.
17394 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
17395 Update the length attribute if the value is in a GPR.
17396 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
17397 the sign or zero extension instruction, since the value is always 0/1.
17398 (signbit<mode>2_dm2): Delete using <Fsignbit>.
17399
17400 PR target/78953
17401 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
17402 extracting SImode to a GPR register so that we can generate a
17403 store, limit the vector to be in a traditional Altivec register
17404 for the vextuwrx instruction.
17405
17406 2017-01-03 Ian Lance Taylor <iant@google.com>
17407
17408 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
17409
17410 2017-01-03 Martin Sebor <msebor@redhat.com>
17411
17412 PR tree-optimization/78696
17413 * gimple-ssa-sprintf.c (format_floating): Correct handling of
17414 precision. Use MPFR for %f for greater fidelity. Correct handling
17415 of %g.
17416 (pass_sprintf_length::compute_format_length): Set width and precision
17417 specified by asrerisk to void_node for vararg functions.
17418 (try_substitute_return_value): Adjust dump output.
17419
17420 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
17421
17422 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
17423
17424 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
17425
17426 * doc/invoke.texi (SPARC options): Document -mlra as the default.
17427 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
17428 -mlra/-mno-lra was passed to the compiler.
17429
17430 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
17431
17432 PR rtl-optimization/65618
17433 * emit-rtl.c (try_split): Move initialization of "before" and
17434 "after" to just before the call to emit_insn_after_setloc.
17435
17436 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
17437
17438 * doc/md.texi (Standard Names): Remove reference to Java frontend.
17439
17440 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
17441
17442 * dwarf2out.c (gen_enumeration_type_die): When
17443 -gno-strict-dwarf, add a DW_AT_encoding attribute.
17444
17445 2017-01-03 Jakub Jelinek <jakub@redhat.com>
17446
17447 PR tree-optimization/78965
17448 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
17449 Change first argument from const call_info & to call_info &. For %n
17450 set info.nowrite to false.
17451
17452 PR middle-end/78901
17453 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
17454 possibly throwing calls.
17455
17456 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
17457 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
17458 and fns handling, rather than in a separate case SSA_NAME.
17459
17460 2017-01-02 Jeff Law <law@redhat.com>
17461
17462 * config/darwin-driver.c (darwin_driver_init): Const-correctness
17463 fixes for first_period and second_period variables.
17464
17465 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
17466
17467 PR target/78967
17468 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
17469 (*insvqi_1): New insn pattern.
17470 (*insvqi_1_mem_rex64): Ditto.
17471 (*insvqi_2): Ditto.
17472 (*insvqi_3): Rename from *insvqi.
17473
17474 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
17475
17476 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
17477
17478 * doc/cfg.texi (Edges): Remove reference to Java.
17479 (Maintaining the CFG): Ditto.
17480
17481 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17482
17483 PR middle-end/77674
17484 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
17485 transparent aliases.
17486
17487 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
17488
17489 PR middle-end/77484
17490 * predict.def (PRED_CALL): Update hitrate.
17491 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
17492 * predict.c (tree_estimate_probability_bb): Split CALL predictor
17493 into direct/indirect/polymorphic variants.
17494
17495 2017-01-01 Jakub Jelinek <jakub@redhat.com>
17496
17497 Update copyright years.
17498
17499 * gcc.c (process_command): Update copyright notice dates.
17500 * gcov-dump.c (print_version): Ditto.
17501 * gcov.c (print_version): Ditto.
17502 * gcov-tool.c (print_version): Ditto.
17503 * gengtype.c (create_file): Ditto.
17504 * doc/cpp.texi: Bump @copying's copyright year.
17505 * doc/cppinternals.texi: Ditto.
17506 * doc/gcc.texi: Ditto.
17507 * doc/gccint.texi: Ditto.
17508 * doc/gcov.texi: Ditto.
17509 * doc/install.texi: Ditto.
17510 * doc/invoke.texi: Ditto.
17511 \f
17512 Copyright (C) 2017 Free Software Foundation, Inc.
17513
17514 Copying and distribution of this file, with or without modification,
17515 are permitted in any medium without royalty provided the copyright
17516 notice and this notice are preserved.