2017-06-21 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / gcc / ChangeLog
blobea97b0badff28cf4af7506053322c8432b8c43f0
1 2017-06-21  Andrew Pinski  <apinski@cavium.com>
3         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
4         Increment Arith_shift and Arith_shift_reg by 1.
5         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
6         New tuning flag.
7         * config/aarch64/aarch64.c (thunderx_tunings): Enable
8         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
9         (aarch64_strip_extend): Add new argument and test for it.
10         (aarch64_cheap_mult_shift_p): New function.
11         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
12         add a cost if it is true.
13         Update calls to aarch64_strip_extend.
14         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
16 2017-06-21  Andrew Pinski  <apinski@cavium.com>
18         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
19         tunings.
20         (thunderxt88): Likewise.
21         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
22         (thunderx_prefetch_tune): New variable.
23         (thunderx2t99_prefetch_tune): Update for the correct values.
24         (thunderxt88_tunings): New variable.
25         (thunderx_tunings): Use thunderx_prefetch_tune instead of
26         generic_prefetch_tune.
27         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
29 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
32         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
33         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
34         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
35         (aarch64_atomic_cas<mode>, GPI): Likewise.
37 2017-06-21  Martin Liska  <mliska@suse.cz>
39         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
40         statements on cold and hot labels.
41         * predict.c (tree_estimate_probability_bb): Remove the
42         prediction from this place.
44 2017-06-21  Martin Liska  <mliska@suse.cz>
46         PR tree-optimization/79489
47         * gimplify.c (maybe_add_early_return_predict_stmt): New
48         function.
49         (gimplify_return_expr): Call the function.
50         * predict.c (tree_estimate_probability_bb): Remove handling
51         of early return.
52         * predict.def: Update comment about early return predictor.
53         * gimple-predict.h (is_gimple_predict): New function.
54         * predict.def: Change default value of early return to 66.
55         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
56         statements.
57         * passes.def: Put pass_strip_predict_hints to the beginning of
58         IPA passes.
60 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
62         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
63         FUNCTION_DECL declarations.
64         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
65         declarations.
66         (dwaf2out_decl): Likewise.
67         * godump.c (go_early_global_decl): Skip call to the real debug hook
68         for FUNCTION_DECL declarations.
69         * passes.c (rest_of_decl_compilation): Skip call to the
70         early_global_decl debug hook for FUNCTION_DECL declarations, unless
71         -fdump-go-spec is passed.
73 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
75         * config/i386/i386.c (struct builtin_isa): New field pure_p.
76         Reorder for compactness.
77         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
78         (def_builtin_pure, def_builtin_pure2): New functions.
79         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
81 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
83         * match.pd (nop_convert): New predicate.
84         ((A +- CST1) +- CST2): Allow some NOP conversions.
86 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
88         PR c++/81130
89         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
90         with ctors/dtors if GOVD_SHARED is set.
92 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
94         * config/aarch64/aarch64.md (movti_aarch64):
95         Emit mov rather than orr.
96         (movtf_aarch64): Likewise.
97         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
98         Emit mov rather than orr.
100 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
102         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
103         Swap alternatives, make integer dup more expensive.
105 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
107         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
108         Return true for non-tls symbols.
110 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
112         * config/aarch64/aarch64-cores.def (cortex-a55): New.
113         (cortex-a75): Likewise.
114         (cortex-a75.cortex-a55): Likewise.
115         * config/aarch64/aarch64-tune.md: Regenerate.
116         * doc/invoke.texi (-mtune): Document new values for -mtune.
118 2017-06-21  Tom de Vries  <tom@codesourcery.com>
120         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
121         stack_size feature.
122         (Effective-Target Keywords, Other attributes): Suggest using
123         dg-add-options stack_size feature to get stack limit in stack_size
124         effective target documentation.
126 2017-06-21  Julian Brown  <julian@codesourcery.com>
127             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
129         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
130         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
131         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
132         reservation.
133         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
134         attribute type list for neon_multiply.
135         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
136         attribute type list for neon_multiply.
137         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
138         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
139         attribute type list for neon_multiply.
140         * config/arm/types.md (crypto_pmull): Add.
141         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
142         attribute type list.    
144 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
146         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
147         arm1176jzf-s.
149 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
151         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
152         to make sure not to dereference a NULL cost_classes_ptr pointer.
154 2017-06-20  Carl Love  <cel@us.ibm.com>
156         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
157         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
158         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
159         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
160         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
161         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
162         VMULOSW): New enum "unspec" values.
163         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
164         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
165         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
166         altivec_vmulosw): New patterns.
167         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
168         VMULOSW): Add definitions.
170 2017-06-20  Julia Koval  <julia.koval@intel.com>
172         * config/i386/i386.c: Fix rounding expand for new pattern.
173         * config/i386/subst.md: Fix pattern (parallel -> unspec).
175 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
177         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
178         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
180 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
182         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
183         feature string.
185 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
187         * config/aarch64/aarch64-cores.def: Rearrange to sort by
188         architecture, then by implementer ID.
189         * config/aarch64/aarch64-tune.md: Regenerate.
191 2017-06-20  Richard Biener  <rguenther@suse.de>
193         PR middle-end/81097
194         * fold-const.c (split_tree): Fold to type before negating.
196 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
198         * diagnostic-show-locus.c
199         (selftest::test_fixit_deletion_affecting_newline): New function.
200         (selftest::diagnostic_show_locus_c_tests): Call it.
202 2017-06-20  Andreas Schwab  <schwab@suse.de>
204         PR target/80970
205         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
206         instead of "+d".
208 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
210         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
211         __ARM_FEATURE_COPROC according to support.
213 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
215         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
216         Rewritten to avoid overflow for > 32-bit pointers.
218         PR sanitizer/81125
219         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
220         by removing enum keyword.
221         (ubsan_type_descriptor): Likewise.  Formatting fix.
223         PR target/81121
224         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
225         splitter): Require TARGET_SSE2 in the condition.
227 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
229         PR target/79799
230         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
231         for doing vector set of SFmode on ISA 3.0.
232         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
233         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
234         element.
235         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
236         SFmode value into a V4SF variable that was extracted from another
237         V4SF variable without converting the element to double precision
238         and back to single precision vector format.
239         (vsx_insert_extract_v4sf_p9_2): Likewise.
241 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
243         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
244         in UWHI to avoid undefined overflow.
246         PR sanitizer/81125
247         * ubsan.h (enum ubsan_encode_value_phase): New.
248         (ubsan_encode_value): Change second argument to
249         enum ubsan_encode_value_phase with default value of
250         UBSAN_ENCODE_VALUE_GENERIC.
251         * ubsan.c (ubsan_encode_value): Change second argument to
252         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
253         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
254         create_tmp_var_raw instead of create_tmp_var and use a
255         TARGET_EXPR.
256         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
257         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
258         ubsan_encode_value callers.
260         PR sanitizer/81111
261         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
262         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
263         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
265 2017-06-19  Richard Biener  <rguenther@suse.de>
267         PR middle-end/81118
268         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
269         estimates if we changed anything.
271 2017-06-19  Richard Biener  <rguenther@suse.de>
273         PR tree-optimization/80887
274         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
275         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
276         simplified lookups, then reset mprts_hook.
277         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
278         simplifying.
279         (try_to_simplify): Likewise.
281 2017-06-19  Martin Liska  <mliska@suse.cz>
283         PR sanitizer/80879
284         * gimplify.c (gimplify_switch_expr):
285         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
287 2017-06-19  Martin Liska  <mliska@suse.cz>
289         * doc/install.texi: Document that PGO runs in 4 stages.
291 2017-06-19  Martin Liska  <mliska@suse.cz>
293         PR ipa/80732
294         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
295         to dispatcher function name.
296         * multiple_target.c (replace_function_decl): New function.
297         (create_dispatcher_calls): Redirect both edges and references.
299 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
301         * profile-count.c (profile_count::dump): Dump quality.
302         (profile_count::differs_from_p): Update for unsigned val.
303         * profile-count.h (profile_count_quality): New enum.
304         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
306 2017-06-19  Richard Biener  <rguenther@suse.de>
308         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
309         struct function as arg.
310         (estimate_numbers_of_iterations): Export overload with loop arg.
311         (free_numbers_of_iterations_estimates_loop): Use an overload of
312         free_numbers_of_iterations_estimates instead.
313         * tree-cfg.c (remove_bb): Adjust.
314         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
315         * tree-parloops.c (gen_parallel_loop): Likewise.
316         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
317         Likewise.
318         (tree_unroll_loops_completely): Likewise.
319         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
320         Use an overload instead and export.
321         (estimated_loop_iterations): Adjust.
322         (max_loop_iterations): Likewise.
323         (likely_max_loop_iterations): Likewise.
324         (estimate_numbers_of_iterations): Take struct function as arg
325         and adjust.
326         (loop_exits_before_overflow): Adjust.
327         (free_numbers_of_iterations_estimates_loop): Use an overload.
328         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
329         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
331 2017-06-19  Richard Biener  <rguenther@suse.de>
333         PR ipa/81112
334         * ipa-prop.c (find_constructor_constant_at_offset): Handle
335         RANGE_EXPR conservatively.
337 2017-06-16  Carl Love  <cel@us.ibm.com>
339         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
340         definitions for vec_float, vec_float2, vec_floato,
341         vec_floate built-ins.
342         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
343         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
344         floate.
345         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
346         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
347         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
348         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
349         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
350         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
351         vec_floato): Add builtin defines.
352         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
353         Update the built-in documentation file for the new built-in
354         functions.
356 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
358         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
359         (mthumb): Mark as the negative of -marm.
361 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
363         * doc/invoke.texi (ARM Options, -mcpu): Document supported
364         extension options.
365         (ARM Options, -mtune): Document that this accepts the same
366         extension options as -mcpu.
367         (ARM Options, -mfpu): Document addition of -mfpu=auto.
369 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
371         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
372         permitted extensions.
374 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
376         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
377         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
378         (armv8-m.main): Add option +nodsp.
379         * config/arm/arm-cpu-cdata.h: Regenerated.
381 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
383         * config/arm/t-fuchsia: New file.
384         * config.gcc (arm*-*-fuchsia*): Use it.
386 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
388         * config/arm/t-symbian: Rewrite for new option infrastructure.
390 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
392         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
393         (MULTILIB_REQUIRED): Likewise.
395 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
397         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
398         (MULTILIB_RESUE): Likewise.
399         (MULTILIB_MATCHES): Likewise.
400         (MULTLIB_REQUIRED): Likewise.
402 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
404         * config/arm/t-rtems: Rewrite for new option framework.
406 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
408         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
409         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
410         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
411         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
412         * config/arm/t-multilib: ... here.
413         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
414         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
415         armv7-a and armv8*-a when A-profile libraries have not been built.
416         * config/arm/t-rmprofile: Rewrite.
418 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
420         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
421         with a backslash.  Remove the backslash after substituting unescaped
422         periods.
423         * doc/fragments.texi (MULTILIB_REUSE): Document it.
425 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
427         * config.gcc: (arm*-*-*): When building a-profile libraries, force
428         the driver to pass through the default setting of -mfloat-abi.
429         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
430         rather than NULL.
431         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
432         (all_feat_combs): New rule.
433         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
434         default libraries.
435         * config/arm/t-aprofile: Rewrite.
437 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
439         * config/arm/arm.h (FPUTYPE_AUTO): Define.
440         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
441         fpu is not specified by the user/command-line.
442         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
443         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
444         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
445         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
446         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
447         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
449 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
451         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
452         * config/arm/t-arm-elf: Rewritten.
454 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
456         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
457         have some floating-point instructions.
458         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
459         (TARGET_MAYBE_HARD_FLOAT): New macro.
460         * config/arm/arm-builtins.c (arm_init_builtins): Use
461         TARGET_MAYBE_HARD_FLOAT.
462         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
464 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
466         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
467         (configargs.h): Include it.
468         (arm_print_hint_for_fpu_option): New function.
469         (arm_parse_fpu_option): New function.
470         (candidate_extension): New class.
471         (arm_canon_for_multilib): New function.
472         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
473         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
474         (ARCH_CANONICAL_SPECS): New macro.
475         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
477 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
479         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
480         are set after handling multilib fragments.  Set target_cpu_default2
481         from with_cpu.
483 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
485         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
486         cpu name.
487         (arm*-*-*): Set target_cpu_default2 to a quoted string.
488         * config/arm/parsecpu.awk (check_cpu): Validate any extension
489         options.
490         (check_arch): Likewise.
491         * config/arm/arm.c (arm_configure_build_target): Handle
492         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
493         options in the default.
495 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
497         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
498         when an option is an alias of another.
499         * config/arm/parsecpu.awk (optalias): New parser token.
500         (gen_comm_data): Mark non-alias options as such.  Emit entries
501         for extension aliases.
502         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
503         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
504         (armv6kz, armv6zk, armv6t2): Likewise.
505         (armv7): Make vfpv3-d16 an alias.
506         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
507         canonical order.
508         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
509         Sort in canonical order.
510         (armv8-a): Sort in canonical order.
511         (armv8.1-a, armv8.2-a):  Likewise.
512         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
513         canonical order.
514         (cortex-a9): Sort in canonical order.
515         * config/arm/arm.c (selftests.h): Include it.
516         (arm_test_cpu_arch_data): New function.
517         (arm_run_self_tests): New function.
518         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
519         (targetm): Move declaration to the end of the file.
520         * arm-cpu-cdata.h: Regenerated.
522 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
524         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
525         call to target_mode_check describing the type of option passed.
526         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
527         (arm_target_thumb_only): Use arm_parse_arch_option_name or
528         arm_parse_cpu_option_name to match parameters against list of
529         available targets.
530         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
531         arm_arch_core_flags data structure.
532         * config/arm/arm-cpu_cdata.h: Regenerated.
534 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
536         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
537         config/arm/arm.c.
538         (arm_print_hint_for_cpu_option): Likewise.
539         (arm_print_hint_for_arch_option): Likewise.
540         (arm_parse_cpu_option_name): Likewise.
541         (arm_parse_arch_option_name): Likewise.
542         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
543         of entries in the all_fpus list.
544         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
545         (arm_parse_cpu_option_name): Declare.
546         (arm_parse_arch_option_name): Declare.
547         (arm_parse_option_features): Declare.
548         (arm_intialize_isa): Declare.
549         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
550         data tables to ...
551         (gen_comm_data): ... here.  Make definitions non-static.
552         * config/arm/arm-cpu-data.h: Regenerated.
553         * config/arm/arm-cpu-cdata.h: Regenerated.
555 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
557         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
558         (cpu_arch_extension): New structure.
559         (cpu_arch_option, arch_option, cpu_option): New structures.
560         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
561         architecture types.
562         (gen_data): Generate new format data tables.
563         * config/arm/arm.c (cpu_tune): New structure.
564         (cpu_option, processors): Delete.
565         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
566         (arm_print_hint_for_cpu_option): ... this and ...
567         (arm_print_hint_for_arch_option): ... this.
568         (arm_parse_arch_cpu_name): Delete.  Replace with ...
569         (arm_parse_cpu_option_name): ... this and ...
570         (arm_parse_arch_option_name): ... this.
571         (arm_unrecognized_feature): Change type of target parameter to
572         cpu_arch_option.
573         (arm_parse_arch_cpu_features): Delete.  Replace with ...
574         (arm_parse_option_features): ... this.
575         (arm_configure_build_target): Rework to use new configuration data
576         tables.
577         (arm_print_tune_info): Rework for new configuration data tables.
578         * config/arm/arm-cpu-data.h: Regenerated.
579         * config/arm/arm-cpu.h: Regenerated.
581 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
583         * Makefile.in (OBJS): Move sbitmap.o from here ...
584         (OBJS-libcommon): ... to here.
586 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
588         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
589         (ISA_ALL_CRYPTO): New macro.
590         (ISA_ALL_SIMD): New macro
591         (ISA_ALL_FP): New macro.
592         * config/arm/arm.c (fpu_bitlist): Update initializer.
593         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
594         simd or fp.
595         (arm9e): Add fpu.  Add option for nofp
596         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
597         (arm926ej-s, arm1026ej-s): Likewise.
598         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
599         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
600         neon-fp16, neon-vfpv4, nofp and nosimd.
601         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
602         (cortex-a8): Add fpu.  Add option for nofp.
603         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
604         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
605         (cortex-r4f): Add fpu.
606         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
607         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
608         for nofp.
609         (cortex-r8): Likewise.
610         (cortex-m4): Add fpu.  Add option for nofp.
611         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
612         (cortex-a17.cortex-a7): Likewise.
613         (cortex-a32): Add fpu.  Add options for crypto and nofp.
614         (cortex-a35, cortex-a53): Likewise.
615         (cortex-a57): Add fpu.  Add option for crypto.
616         (cortex-a72, cortex-a73): Likewise.
617         (exynos-m1): Likewise.
618         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
619         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
620         (cortex-m33): Add fpu.  Add option for nofp.
621         * config/arm/arm-cpu-cdata.h: Regenerated
622         * config/arm/arm-cpu-data.h: Regenerated.
624 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
626         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
627         (armv5te, armv5tej): Likewise.
628         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
629         (armv7): Add options fp and vfpv3-d16.
630         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
631         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
632         nofp and nosimd.
633         (armv7ve): Likewise.
634         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
635         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
636         (armv8-a): Add nocrypto option.
637         (armv8.1-a, armv8.2-a): Likewise.
638         (armv8-m.main): add options fp, fp.dp and nofp.
640 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
642         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
643         nofp.
644         (armv8-a+crc): Delete.
645         (armv8.1-a): Add options simd, crypto and nofp.
646         (armv8.2-a): Add options fp16, simd, crypto and nofp.
647         (armv8.2-a+fp16): Delete.
648         (armv8-m.main): Add option dsp.
649         (armv8-m.main+dsp): Delete.
650         (cortex-a8): Add fpu.  Add nofp option.
651         (cortex-a9): Add fpu.  Add nofp and nosimd options.
652         * config/arm/parsecpu.awk (gen_data): Generate option tables and
653         link to main cpu and architecture data structures.
654         (gen_comm_data): Only put isa attributes from the main architecture
655         in common tables.
656         (option): New statement for architecture and CPU entries.
657         * arm.c (struct cpu_option): New structure.
658         (struct processors): Add entry for options.
659         (arm_unrecognized_feature): New function.
660         (arm_parse_arch_cpu_name): Ignore any characters after the first
661         '+' character.
662         (arm_parse_arch_cpu_feature): New function.
663         (arm_configure_build_target): Separate out any CPU and architecture
664         features and parse separately.  Don't error out if -mfpu=auto is
665         used with only an architecture string.
666         (arm_print_asm_arch_directives): New function.
667         (arm_file_start): Call it.
668         * config/arm/arm-cpu-cdata.h: Regenerated.
669         * config/arm/arm-cpu-data.h: Likewise.
670         * config/arm/arm-tables.opt: Likewise.
672 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
674         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
675         assembler when it is not -mfpu=auto.
677 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
679         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
680         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
681         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
682         (ASM_CPU_SPEC): Rewrite.
683         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
684         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
685         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
686         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
687         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
688         copied string is NUL-terminated.  Also strip any characters prefixed
689         by '+'.
690         (arm_rewrite_selected_arch): New function.
691         (arm_rewrite_march): New function.
693 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
695         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
696         (x_arm_cpu_string, x_arm_tune_string): Likewise.
697         (march, mcpu, mtune): Convert to string-based options.
698         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
699         (arm_parse_arch_cpu_name): New function.
700         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
701         identify selected architecture or CPU.
702         (arm_option_save): New function.
703         (TARGET_OPTION_SAVE): Redefine.
704         (arm_option_restore): Restore string options.
705         (arm_option_print): Print string options.
707 2017-06-16  Martin Sebor  <msebor@redhat.com>
709         PR tree-optimization/80933
710         PR tree-optimization/80934
711         * builtins.c (fold_builtin_3): Do not handle bcmp here.
712         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
713         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
714         (gimple_fold_builtin): Call them.
716 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
718         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
719         as unlikely; update profile.
721 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
723         * predict.c (force_edge_cold): Handle declaring edges impossible
724         more aggresively.
726 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
728         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
729         profile.
730         (try_unroll_loop_completely): Fix reporting.
732 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
734         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
736 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
738         PR target/71778
739         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
740         if given a non-constant argument for an intrinsic which requires a
741         constant.
743 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
745         * profile.c (compare_freqs): New function.
746         (branch_prob): Sort edge list.
747         (find_spanning_tree): Assume that the list is priority sorted.
749 2017-06-16  Richard Biener  <rguenther@suse.de>
751         PR tree-optimization/81090
752         * passes.def (pass_record_bounds): Remove.
753         * tree-pass.h (make_pass_record_bounds): Likewise.
754         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
755         make_pass_record_bounds): Likewise.
756         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
757         not free niter estimates at the beginning but at the end.
758         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
760 2017-06-16  Richard Biener  <rguenther@suse.de>
762         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
763         initializer to workaround ICE in host GCC 4.8.
765 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
767         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
768         counts.
769         (clone_inlined_nodes): Update.
771 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
773         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
774         prefetch settings, and enable prefetching by default at -O3.
776 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
778         * config/aarch64/aarch64.c (aarch64_override_options_internal):
779         Set flag_prefetch_loop_arrays according to tuning data.
781 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
783         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
784         New tune structure.
785         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
786         [Unrelated to main purpose of the patch] Place the pointer field last
787         to enable type checking errors when tune structure are wrongly merged.
788         * config/aarch64/aarch64.c (generic_prefetch_tune,)
789         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
790         (thunderx2t99_prefetch_tune): New tune constants.
791         (tune_params *_tunings): Update all tunings (no functional change).
792         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
793         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
794         from tunings structures.
796 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
798         PR sanitizer/81094
799         * ubsan.c (instrument_null): Add T argument, use it instead
800         of computing it based on IS_LHS.
801         (instrument_object_size): Likewise.
802         (pass_ubsan::execute): Adjust instrument_null and
803         instrument_object_size callers to pass gimple_get_lhs or
804         gimple_assign_rhs1 result to it.  Use instrument_null instead of
805         calling get_base_address and instrument_mem_ref.  Handle
806         aggregate call arguments for object-size sanitization.
808 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
810         PR tree-optimization/81089
811         * tree-vrp.c (is_masked_range_test): Validate operands of
812         subexpression.
814 2017-06-15  Martin Sebor  <msebor@redhat.com>
816         PR c++/80560
817         * dumpfile.c (dump_register): Avoid calling memset to initialize
818         a class with a default ctor.
819         * gcc.c (struct compiler): Remove const qualification.
820         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
821         * hash-table.h: Ditto.
822         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
823           assignment.
824         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
825         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
826         default ctor.
827         * params.h (struct param_info): Make struct members non-const.
828         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
829         with default initialization.
830         * vec.h (vec_copy_construct, vec_default_construct): New helper
831         functions.
832         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
833         with vec_copy_construct.
834         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
835         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
836         * doc/invoke.texi (-Wclass-memaccess): Document.
838 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
840         * emit-rtl.h (is_leaf): Update comment about local
841         register allocator.
843 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
845         PR target/78818
846         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
847         for a variable to have a section before checking if the section has a
848         name.
849         Set section to.persistent if persistent attribute is set.
850         Warn if .persistent attribute is used on an automatic variable.
852 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
854         PR rtl-optimization/80474
855         * reorg.c (update_block): Do not ignore instructions in a delay slot.
857 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
859         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
860         of REGNO.
862 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
864         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
865         (casesi): Emit bounds checking as RTL.
866         (casesi_internal_mips16_<mode>): Remove bounds checking.
868 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
870         * config/xtensa/xtensa.c (xtensa_option_override): Append
871         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
872         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
873          xtensa_doloop_hooks): Define unconditionally.
874         (xtensa_reorg_loops): Only call reorg_loops in the presence of
875         TARGET_LOOPS.
876         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
877         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
878         for it in xtensa_option_override.
879         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
880          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
882 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
884         * doc/cppopts.texi: Document '-' special value to -MF.
886 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
888         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
889         (cortex_a53_fconst): Likewise.
890         (cortex_a53_fpmul): Likewise.
891         (cortex_a53_f_load_64): Likewise.
892         (cortex_a53_f_load_many): Likewise.
893         (cortex_a53_advsimd_alu): Likewise.
894         (cortex_a53_advsimd_alu_q): Likewise.
895         (cortex_a53_advsimd_mul): Likewise.
896         (cortex_a53_advsimd_mul_q): Likewise.
897         (fpmac bypass): Add new bypass for fpmac-fpmac case.
898         Add missing fmul, r2f_cvt and fconst cases.
900 2017-06-14  Richard Biener  <rguenther@suse.de>
902         PR middle-end/81088
903         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
904         literal constants.
905         (fold_binary_loc): When associating do not treat pre-existing
906         TREE_OVERFLOW on literal constants as a reason to allow
907         TREE_OVERFLOW on associated literal constants.
909 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
911         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
912         (MASK_FEATURES): New macro.
913         * config/sparc/sparc.c (sparc_option_override): Remove the special
914         handling of -mfpu and generalize it to all MASK_FEATURES switches.
916 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
918         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
919         a division of 0 if non-call exceptions are enabled.
921 2017-06-14  Andrew Pinski  <apinski@cavium.com>
922             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
924         PR target/71663
925         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
926         Improve vector initialization code gen for only variable case. 
928 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
930         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
932 2017-06-14  Richard Biener  <rguenther@suse.de>
934         PR tree-optimization/81083
935         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
936         as values.
938 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
940         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
941         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
942         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
943         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
944         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
945         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
947 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
949         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
950         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
952 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
954         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
956 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
958         * config/rs6000/t-rtems: Don't handle SPE.
960 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
962         * config/rs6000/t-linux: Don't handle SPE.
964 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
966         * config/rs6000/eabispe.h: Delete file.
968 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
970         * config/rs6000/t-spe: Delete file.
972 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
974         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
975         (rs6000_legitimate_offset_address_p): Return false for anything in
976         V2SImode or V2SFmode.
978 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
980         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
981         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
982         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
983         and V4HImode.
984         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
985         (rs6000_legitimate_offset_address_p): Ditto.
986         (rs6000_emit_move): Ditto.
987         (rs6000_init_builtins): Remove V4HI_type_node.
989 2017-06-13  Martin Liska  <mliska@suse.cz>
991         PR sanitize/78204
992         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
993         (gate_asan): Likewise.
994         * asan.h (asan_no_sanitize_address_p): Remove the function.
995         (sanitize_flags_p): New function.
996         * builtins.def: Fix coding style.
997         * common.opt: Use renamed enum value.
998         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
999         * doc/extend.texi: Document no_sanitize attribute.
1000         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
1001         to SANITIZE_UNDEFINED_NONDEFAULT.
1002         * gcc.c (sanitize_spec_function): Use the renamed enum value.
1003         * gimple-fold.c (optimize_atomic_compare_exchange_p):
1004         Use sanitize_flags_p.
1005         * gimplify.c (gimplify_function_tree): Likewise.
1006         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
1007         * opts.c (parse_no_sanitize_attribute): New function.
1008         (common_handle_option): Use renamed enum value.
1009         * opts.h (parse_no_sanitize_attribute): Declare.
1010         * tree.c (sanitize_flags_p): New function.
1011         * tree.h: Declared here.
1012         * tsan.c: Use sanitize_flags_p.
1013         * ubsan.c (ubsan_expand_null_ifn): Likewise.
1014         (instrument_mem_ref): Likewise.
1015         (instrument_bool_enum_load): Likewise.
1016         (do_ubsan_in_current_function): Remove the function.
1017         (pass_ubsan::execute): Use sanitize_flags_p.
1018         * ubsan.h: Remove do_ubsan_in_current_function
1019         * tree-cfg.c (print_no_sanitize_attr_value): New function.
1020         (dump_function_to_file): Use it here.
1022 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1024         PR tree-optimization/80803
1025         PR tree-optimization/81063
1026         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
1027         (propagate_subaccesses_across_link): Enqueue subtree whenever
1028         necessary instead of relying on the caller.
1030 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1032         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
1033         that have a first_link.
1034         (sort_and_splice_var_accesses): Do not check first_link before
1035         enquing.
1036         (subtree_mark_written_and_enqueue): Likewise.
1037         (propagate_all_subaccesses): Likewise and do not stop at first
1038         parent with a first_link.
1040 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1042         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
1043         instead of f.
1045 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1047         * match.pd: New pattern.
1049 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1051         * tree-vrp.c (is_masked_range_test): New function.
1052         (register_edge_assert_for): Determine ranges for
1053         some bit tests.
1055 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1057         PR tree-optimization/67328
1058         * fold-const.c (maskable_range_p): New function.
1059         (build_range_check): Generate bittests if possible.
1061 2017-06-13  Martin Liska  <mliska@suse.cz>
1063         * gimple-pretty-print.c (dump_probability): Add new argument.
1064         (dump_edge_probability): Dump both probability and count.
1065         (dump_gimple_label): Likewise.
1066         (dump_gimple_bb_header): Likewise.
1068 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
1070         PR target/81072
1071         * config/avr/avr-devices.c: Fix indentation.
1072         * config/avr/gen-avr-mmcu-specs.c: Dito.
1074 2017-06-13  Richard Biener  <rguenther@suse.de>
1076         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
1077         instead get vector type from stmt_info.
1078         (vectorizable_reduction): Adjust.  Remove dead code.
1080 2017-06-13  Richard Biener  <rguenther@suse.de>
1082         PR middle-end/81065
1083         * fold-const.c (extract_muldiv_1): Remove bogus distribution
1084         case of C * (x * C2 + C3).
1085         (fold_addr_of_array_ref_difference): Properly fold index difference.
1087 2017-06-12  David S. Miller  <davem@davemloft.net>
1089         PR target/80968
1090         * config/sparc/sparc.md (return expander): Emit frame blockage if
1091         function uses alloca.
1093 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
1095         * combine.c (make_field_assignment): Check len rather than the mode
1096         precision when calling force_to_mode.
1098 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
1100         Support multilibs and devices that see flash in RAM address range.
1102         PR target/81072
1103         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
1104         (avr_mcu_t) <flash_pm_offset>: New field.
1105         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
1106         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
1107         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
1108         (AVR_TINY_PM_OFFSET): Remove macro.
1109         * config/avr/avr.opt (-mshort-calls): New option.
1110         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1111         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
1112         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
1113         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
1114         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
1115         instead of avr_arch->have_jmp_call.
1116         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
1117         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
1118         avr_arch->flash_pm_offset to define.
1119         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
1120         new field flash_pm_offset.  Add entry for avrxmega3.
1121         (avr_texinfo): Add entry for avrxmega3.
1122         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
1123         attiny212, attiny214,
1124         attiny412, attiny414, attiny416, attiny417,
1125         attiny814, attiny816, attiny817,
1126         attiny1614, attiny1616, attiny1617,
1127         attiny3214, attiny3216, attiny3217.
1128         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
1129         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
1130         (avr_print_operand_address) [AVR_TINY]: Same.
1131         (avr_asm_init_sections) <readonly_data_section>: Only patch
1132         callback if avr_arch->flash_pm_offset = 0.
1133         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
1134         for rodata if avr_arch->flash_pm_offset != 0.
1135         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
1136         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
1137         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
1138         (m_options): Append opt_rcall.
1139         (m_dirnames): Append dir_rcall.
1140         * config/avr/t-multilib: Regenerate.
1142         * configure.ac [target=avr]: Check whether avrxmega3 default
1143         linker description file works as needed.
1144         * configure: Regenerate.
1145         * doc/avr-mmcu.texi: Regenerate.
1146         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
1147         <__AVR_ARCH__>: Document avrxmega3 and 103.
1148         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
1149         <__AVR_SHORT_CALLS__>: Document it.
1150         <__AVR_PM_BASE_ADDRESS__>: Document it.
1151         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
1152         (AVR Variable Attributes) <progmem>: Document this is
1153         not needed for avrxmega3.
1154         (AVR Named Address Spaces) <__flash>: Dito.
1156 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
1158         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
1160 2017-06-12  Doug Rupp  <rupp@adacore.com>
1162         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
1163         Append vxworks-stdint.h to the tm_file list.
1164         * config/vxworks-stdint.h: New file.
1166 2017-06-12  Martin Liska  <mliska@suse.cz>
1168         PR tree-optimization/81041
1169         * tree-profile.c (gimple_gen_ic_func_profiler):
1170         Create an extra BB in profile-generate
1171         (gimple_gen_time_profiler): Likewise.
1173 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
1175         PR tree-optimization/81003
1176         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
1177         (update_range_test): Use it instead of force_gimple_operand_gsi.
1179 2017-06-12  Richard Biener  <rguenther@suse.de>
1181         PR tree-optimization/81053
1182         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
1183         with backedge value not defined in loop.  Simplify def stmt
1184         compute.
1186 2017-06-11  Tom de Vries  <tom@codesourcery.com>
1188         PR target/79939
1189         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
1190         Return true.
1191         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
1192         nvptx_cannot_force_const_mem.
1194 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1196         * opts.c (finish_options): Move test for flag_split_stack after
1197         it has been initialized.
1199 2017-06-11  Jason Merrill  <jason@redhat.com>
1201         * tree.h (id_equal): New.
1202         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
1203         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
1204         instead of strcmp of IDENTIFIER_POINTER.
1206 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1208         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
1209         (mark_all_inlined_calls_cdtor): Fix formating.
1210         (inline_transform): Rescale profile before inlining.
1212 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1214         * cgraph.h (cgraph_edge::clone): Update prototype.
1215         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
1216         (cgraph_node::create_clone): Update.
1217         (cgraph_node::create_version_clone): Update.
1218         * tree-inline.c (copy_bb): Update.
1219         (expand_call_inline): Update.
1221 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
1223         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
1224         factored out from ...
1225         (rs6000_emit_prologue): ... here.
1227 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
1229         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
1230         factored out from ...
1231         (rs6000_emit_prologue): ... here.
1233 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1235         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
1236         edge counts.
1237         (handle_missing_profiles): Fix computation of tp_first_run.
1238         (counts_to_freqs): Do not touch freqs when count is 0.
1240 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1242         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
1243         profile.
1245 2017-06-10  Tom de Vries  <tom@codesourcery.com>
1247         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1248         attributes): Document signal effective target.
1250 2017-06-10  Tom de Vries  <tom@codesourcery.com>
1252         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
1253         Document effective target stack_size.
1255 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
1257         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
1258         to the edit_context if they can be auto-applied.
1260 2017-06-9  Ian Lance Taylor  <iant@golang.org>
1262         * opts.c (finish_options): If -fsplit-stack, disable implicit
1263         -forder-blocks-and-partition.
1264         * doc/invoke.texi (Optimize Options): Document that when using
1265         -fsplit-stack -forder-blocks-and-partition is not implicitly
1266         enabled.
1268 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1270         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
1271         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
1272         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
1273         * builtins.def (abort, trap, unreachable): Declare cold.
1274         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
1275         * tree-core.h (ECF_COLD): New.
1276         * tree.c (set_call_expr_flags): Handle ECF_COLD.
1277         (build_common_builtin_nodes): Mark unreachable and abort as cold.
1279 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1281         * predict.c (unlikely_executed_stmt_p): Cleanup.
1283 2017-06-09  Richard Biener  <rguenther@suse.de>
1285         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
1286         model if the ref is always written to.
1288 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
1290         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
1292 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
1294         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
1295         than udiv.
1297 2017-06-09  Tom de Vries  <tom@codesourcery.com>
1299         PR target/80855
1300         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
1301         "target cannot support label values" when encountering LABEL_REF.
1303 2017-06-09  Martin Liska  <mliska@suse.cz>
1305         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
1306         (gimple_gen_ic_func_profiler): Emit direct comparison
1307         of __gcov_indirect_call_callee with NULL.
1308         (gimple_gen_time_profiler): Change probability from
1309         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
1311 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1313         * profile.c (edge_gcov_counts): Turn to pointer.
1314         (compute_branch_probabilities, compute_branch_probabilities): Update.
1315         (branch_prob): Do not clear edge_gcov_count.
1316         * profile.h (edge_gcov_counts): Turn to pointer.
1317         (edge_gcov_count): Update.
1319 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1321         * gimple.h (gimple_check_failed): Mark cold.
1323 2017-06-09  Richard Biener  <rguenther@suse.de>
1325         PR tree-optimization/66623
1326         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
1327         refactor check_reduction into two parts, properly computing
1328         whether we have to check reduction validity for outer loop
1329         vectorization.
1331 2017-06-09  Richard Biener  <rguenther@suse.de>
1333         PR tree-optimization/79483
1334         * graphite-scop-detection.c (order): New global.
1335         (get_order): Compute bb to order mapping that satisfies code
1336         generation constraints.
1337         (cmp_pbbs): New helper.
1338         (build_scops): Start domwalk at entry block, sort generated
1339         pbbs.
1341 2017-06-09  Richard Biener  <rguenther@suse.de>
1343         PR middle-end/81007
1344         * ipa-polymorphic-call.c
1345         (ipa_polymorphic_call_context::restrict_to_inner_class):
1346         Skip FIELD_DECLs with error_mark_node type.
1347         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
1348         last again.
1350 2017-06-09  Martin Liska  <mliska@suse.cz>
1352         * predict.c (struct branch_predictor): New struct.
1353         (test_prediction_value_range): New test.
1354         (predict_c_tests): New function.
1355         * selftest-run-tests.c (selftest::run_tests): Run the function.
1356         * selftest.h: Declare new tests.
1358 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
1360         PR target/80966
1361         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
1362         gen_add3_insn did not fail.
1363         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
1364         r0, construct that number in a temporary reg and add that reg to r0.
1365         If asked to put the result in r0 as well, fail.
1367 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
1369         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1370         for early expansion of vec_eqv.
1372 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
1374         PR middle-end/81005
1375         * ubsan.c (instrument_null): Avoid pointless code temporary.
1376         (pass_ubsan::execute): Instrument aggregate arguments of calls.
1378 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
1380         PR target/81015
1381         Revert:
1382         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
1384         PR target/59874
1385         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
1386         (*clzhi2): Ditto.
1388 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1390         * predict.c (unlikely_executed_edge_p): Move ahead.
1391         (probably_never_executed_edge_p): Use it.
1393 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1395         PR middle-end/79988
1396         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
1397         gimple_call_builtin_p call.
1399 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1401         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
1402         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
1403         rtl_check_failed_type2, rtl_check_failed_code1,
1404         rtl_check_failed_code2, rtl_check_failed_code_mode,
1405         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
1406         rtvec_check_failed_bounds, rtl_check_failed_flag,
1407         _fatal_insn_not_found, _fatal_insn): Likewise.
1408         * tree.h (tree_contains_struct_check_failed,
1409         tree_check_failed, tree_not_check_failed,
1410         tree_class_check_failed, tree_range_check_failed,
1411         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
1412         tree_vec_elt_check_failed, phi_node_elt_check_failed,
1413         tree_operand_check_failed, omp_clause_check_failed,
1414         omp_clause_operand_check_failed, omp_clause_range_check_failed):
1415         Likewise.
1417 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1419         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
1420         flag_branch_probabilities.
1421         * ipa-inline.c (edge_badness): Likewise.
1422         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
1423         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1424         * predict.c (maybe_hot_frequency_p): Likewise.
1425         (probably_never_executed): Likewise.
1426         * sched-ebb.c (schedule_ebbs): Likewise.
1427         * sched-rgn.c (find_single_block_region): Likewise.
1428         * tracer.c (tail_duplicate): Likewise.
1430 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1432         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
1433         longer requires x_flag_profile_use.
1435 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1437         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
1438         instead of flag_reorder_blocks_and_partition.
1439         * dbxout.c (dbxout_function_end): Likewise.
1440         * dwarf2out.c (gen_subprogram_die): Likewise.
1441         * haifa-sched.c (sched_create_recovery_edges): Likewise.
1442         * hw-doloop.c (reorg_loops): Likewise.
1443         * varasm.c (assemble_start_function,
1444         assemble_end_function): Likewise.
1445         (decide_function_section): Do not check for
1446         flag_reorder_blocks_and_partition.
1448 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1450         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
1451         New function.
1452         (chkp_get_hard_register_fake_addr_expr): Ditto.
1453         (chkp_build_addr_expr): Add check for hard reg case.
1454         (chkp_parse_array_and_component_ref): Ditto.
1455         (chkp_find_bounds_1): Ditto.
1456         (chkp_process_stmt): Don't generate bounds store for
1457         hard reg case.
1459 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1461         * predict.c (maybe_hot_bb_p): Do not check profile status.
1462         (maybe_hot_edge_p): Likewise.
1463         (probably_never_executed): Check for zero counts even if profile
1464         is not read.
1465         (unlikely_executed_edge_p): New function.
1466         (unlikely_executed_stmt_p): New function.
1467         (unlikely_executed_bb_p): New function.
1468         (set_even_probabilities): Use unlikely predicates.
1469         (combine_predictions_for_bb): Likewise.
1470         (predict_paths_for_bb): Likewise.
1471         (predict_paths_leading_to_edge): Likewise.
1472         (determine_unlikely_bbs): New function.
1473         (estimate_bb_frequencies): Use it.
1474         (compute_function_frequency): Use zero counts even if profile is
1475         not read.
1476         * profile-count.h: Fix typo.
1478 2017-08-08  Julia Koval  <julia.koval@intel.com>
1480         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
1481         _mm512_mask_cvtsepi16_storeu_epi8,
1482         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
1483         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
1484         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
1485         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
1486         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
1487         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
1488         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
1489         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
1490         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
1491         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
1492         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
1493         __builtin_ia32_pmovuswb256mem_mask,
1494         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
1495         __builtin_ia32_pmovwb512mem_mask): New builtins.
1497 2017-08-08  Julia Koval  <julia.koval@intel.com>
1499         PR target/73350,80862
1500         * config/i386/subst.md (round): Fix round pattern.
1501         * config/i386/i386.c (ix86_erase_embedded_rounding):
1502         Fix erasing rounding for the fixed pattern.
1504 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1506         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
1508 2017-06-08  Martin Liska  <mliska@suse.cz>
1510         PR gcov-profile/80911
1511         * gcov.c (block_info::block_info): New constructor.
1513 2017-06-07  Carl Love  <cel@us.ibm.com>
1515         * config/rs6000/rs6000-c: The return type of the following
1516         built-in functions was implemented as int not long long.  Fix sign
1517         of return value for the unsigned version of vec_mulo and vec_mule.
1518         vector unsigned long long vec_bperm (vector unsigned long long,
1519                                              vector unsigned char)
1520         vector signed long long vec_mule (vector signed int,
1521                                           vector signed int)
1522         vector unsigned long long vec_mule (vector unsigned int,
1523                                             vector unsigned int)
1524         vector signed long long vec_mulo (vector signed int,
1525                                           vector signed int)
1526         vector unsigned long long vec_mulo (vector unsigned int,
1527                                             vector unsigned int)
1528         * doc/extend.texi: Fix the documentation for the built-in
1529         functions.
1531 2017-06-07  Carl Love  <cel@us.ibm.com>
1533         PR target/80982
1534         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
1535         for BE.
1537 2017-06-07  Carl Love  <cel@us.ibm.com>
1539         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
1540         support, Generate       doublehv for signed int/float for BE case only.
1542 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
1544         * doc/invoke.texi (mcx16): Rewrite.
1546 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1548         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
1549         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
1550         *mov<mode>_softfloat, and an anonymous splitter): Use
1551         nonimmediate_operand instead of rs6000_nonimmediate_operand.
1553 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1555         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
1556         SPEFSCR registers.
1557         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
1558         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
1559         (rs6000_debug_reg_global): Adjust.
1560         (rs6000_init_hard_regno_mode_ok): Adjust.
1561         (rs6000_dbx_register_number): Adjust.
1562         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
1563         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1564         Remove SPE_ACC and SPEFSCR.
1565         (REG_ALLOC_ORDER): Ditto.
1566         (FRAME_POINTER_REGNUM): Change to 111.
1567         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
1568         (REG_CLASS_NAMES): Ditto.
1569         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
1570         (REGISTER_NAMES): Ditto.
1571         (ADDITIONAL_REG_NAMES): Ditto.
1572         (rs6000_reg_names): Ditto.
1573         * config/rs6000/rs6000.md: Renumber some register number
1574         define_constants.
1576 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1578         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
1579         registers.
1580         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
1581         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
1582         to 117.
1583         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
1584         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1585         Delete the SPE high registers.
1586         (REG_ALLOC_ORDER): Ditto.
1587         (enum reg_class): Remove SPE_HIGH_REGS.
1588         (REG_CLASS_NAMES): Ditto.
1589         (REG_CLASS_CONTENTS): Delete the SPE high registers.
1590         (REGISTER_NAMES): Ditto.
1591         (rs6000_reg_names): Ditto.
1592         * doc/tm.texi.in: Remove SPE as example.
1593         * doc/tm.texi: Regenerate.
1595 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1597         * config/rs6000/8540.md (ppc8540_brinc): Delete.
1598         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
1599         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
1600         * config/rs6000/rs6000.md (type): Remove "brinc".
1602 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1604         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
1605         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
1606         * config/rs6000/linuxspe.h: Delete file.
1607         * config/rs6000/rs6000.md: Don't include spe.md.
1608         * config/rs6000/spe.h: Delete file.
1609         * config/rs6000/spe.md: Delete file.
1610         * config/rs6000/t-rs6000: Remove spe.md.
1612 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1614         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
1615         (reg_or_none500mem_operand): Delete.
1616         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
1617         instead of reg_or_none500mem_operand.
1619 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1621         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
1622         handling of SPE flags.
1623         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
1625 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1627         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
1628         SPE ABI handling.
1629         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
1630         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
1631         paired_divv2sf3): Similar.
1632         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
1633         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
1634         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
1635         RS6000_BUILTIN_S.
1636         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
1637         Rename the paired_* instruction patterns.
1638         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
1639         define __SPE__.
1640         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
1641         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
1642         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
1643         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
1644         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
1645         PAIRED_VECTOR_MODE.
1646         (struct machine_function): Delete field spe_insn_chain_scanned_p.
1647         (spe_func_has_64bit_regs_p): Delete.
1648         (spe_expand_predicate_builtin): Delete.
1649         (spe_expand_evsel_builtin): Delete.
1650         (TARGET_DWARF_REGISTER_SPAN): Do not define.
1651         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
1652         (invalid_e500_subreg): Delete.
1653         (rs6000_legitimize_address): Always force_reg op2 as well, for
1654         paired single memory accesses.
1655         (rs6000_member_type_forces_blk): Delete.
1656         (rs6000_spe_function_arg): Delete.
1657         (rs6000_expand_unop_builtin): Delete SPE handling.
1658         (rs6000_expand_binop_builtin): Ditto.
1659         (spe_expand_stv_builtin): Delete.
1660         (bdesc_2arg_spe): Delete.
1661         (spe_expand_builtin): Delete.
1662         (spe_expand_predicate_builtin): Delete.
1663         (spe_expand_evsel_builtin): Delete.
1664         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
1665         (spe_init_builtins): Delete.
1666         (spe_func_has_64bit_regs_p): Delete.
1667         (savres_routine_name): Delete "info" parameter.  Adjust callers.
1668         (rs6000_emit_stack_reset): Ditto.
1669         (rs6000_dwarf_register_span): Delete.
1670         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
1671         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
1672         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
1673         Delete.
1674         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
1675         Delete.
1676         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
1677         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
1678         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
1679         mulv2sf3, divv2sf3): Delete expanders.
1681 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1683         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
1685 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1687         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
1688         * config/rs6000/rs6000.c: Ditto.
1690 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1692         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
1693         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
1694         comparison_operator.
1696 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1698         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
1699         * config/rs6000/rs6000.opt: Ditto.
1700         * config/rs6000/t-rtems: Ditto.
1702 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1704         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
1705         TARGET_E500_SINGLE by 0, simplify.
1706         * config/rs6000/rs6000.c: Ditto.
1707         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
1708         (spe_build_register_parallel): Delete.
1709         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
1710         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
1711         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
1712         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
1713         (E500_CONVERT): Delete.
1714         * config/rs6000/spe.md: Remove many patterns and all define_constants.
1716 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1718         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
1719         * config/rs6000/dfp.md: Ditto.
1720         (negdd2, *negdd2_fpr): Merge.
1721         (absdd2, *absdd2_fpr): Merge.
1722         (negtd2, *negtd2_fpr): Merge.
1723         (abstd2, *abstd2_fpr): Merge.
1724         * config/rs6000/e500.h: Delete file.
1725         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
1726         TARGET_FPRS by 1 and simplify.
1727         * config/rs6000/rs6000-c.c: Ditto.
1728         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
1729         TARGET_DF_SPE by 0.
1730         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
1731         TARGET_DF_SPE.
1732         * config/rs6000/rs6000.md: Ditto.
1733         (floatdidf2, *floatdidf2_fpr): Merge.
1734         (move_from_CR_gt_bit): Delete.
1735         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
1736         (E500_CR_IOR_COMPARE): Delete.
1737         (All patterns that require !TARGET_FPRS): Delete.
1738         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
1740 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1742         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
1744 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1746         * graphds.c (add_edge): Intitialize edge's attached data.
1747         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
1748         pointer parameter.  Call pointed function on each edge during
1749         graph traversing.  Skip traversing the edge when the function
1750         returns true.
1751         (graphds_dfs, graphds_scc): Ditto.
1752         (for_each_edge): New parameter.  Pass the new parameter to callback
1753         function.
1754         * graphds.h (skip_edge_callback): New function pointer type.
1755         (graphds_dfs, graphds_scc): New function pointer parameter.
1756         (graphds_edge_callback, for_each_edge): New parameter.
1758 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1760         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
1761         out code checking if runtime alias check is possible to below ...
1762         Call the new function.
1763         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
1764         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
1766 2017-06-07  Marek Polacek  <polacek@redhat.com>
1768         PR sanitizer/80932
1769         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
1770         TYPE_OVERFLOW_WRAPS check. 
1772 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1774         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
1775         if versioning is required.
1776         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
1777         peeling with the check for versioning.
1779 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1781         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
1782         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
1783         Set true to new parameter if new ssa variable is defined.
1784         (vect_gen_vector_loop_niters): Refactor.  Set range information
1785         for the new vector loop bound variable.
1786         (vect_do_peeling): Ditto.
1788 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1790         * tree-affine.c (ssa.h): Include header file.
1791         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
1792         has wrapping overflow behavior.
1794 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1796         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
1798 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1800         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
1801         (tree_to_aff_combination): ... here.
1803 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1805         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
1806         reg_pressure model function.
1807         (ivopts_global_cost_for_size): Delete.
1808         (determine_set_costs, iv_ca_recount_cost): Call new model function
1809         ivopts_estimate_reg_pressure.
1811 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
1813         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
1814         Remove floating point cases from mod.
1816 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
1818         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
1820 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
1822         * config/aarch64/aarch64.md
1823         (copysignsf3): Fix mask generation.
1825 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
1827         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
1828         TDI_gimple.
1829         (class dump_manager): Add register_dumps method.
1830         * dumpfile.c: Include langhooks.h.
1831         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
1832         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
1833         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
1834         (dump_manager::dump_register): Start with 512 entries instead of 32.
1835         (dump_manager::register_dumps): New method.
1836         * toplev.c (general_init): Instead of invoking register_dumps
1837         langhook, invoke register_dumps method on the dump manager.
1838         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
1839         TDI_generic.
1841 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
1843         * doc/md.texi: Clarify the restrictions on a define_insn condition.
1844         Say that # requires an associated define_split to exist, and that
1845         the define_split must be suitable for use after register allocation.
1847 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1849         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
1850         (compute_outgoing_frequencies): Also initialize zero counts.
1851         (find_many_sub_basic_blocks): Do not produce uninitialized profile
1852         around loops; preserve more of profile when nothing changes.
1854 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
1856         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
1857         here.
1858         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
1859         * config/arm/arm-cpu-cdata.h: Regenerate.
1860         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
1861         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
1862         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
1863         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
1864         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
1865         support.
1866         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
1867         support.
1868         * config/arm/t-rmprofile: Likewise.
1869         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
1871 2017-06-06  David S. Miller  <davem@davemloft.net>
1873         PR target/80968
1874         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
1875         blockage if function uses alloca.
1877 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1879         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
1880         New "uid" fields to hold pretty-print IDs of group and ref.
1881         Memory references are now identified as <group_id>:<ref_id>
1882         instead of using [random] addresses.
1883         (dump_mem_details): Simplify, no functional change.
1884         (dump_mem_ref): Simplify and make output more concise.
1885         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
1886         (find_or_create_group): Initialize group uid.
1887         (record_ref): Initialize ref uid.  Improve debug output.
1888         (prune_group_by_reuse, should_issue_prefetch_p,)
1889         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
1890         (mark_nontemporal_store, determine_loop_nest_reuse):
1891         Improve debug output.
1893 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1895         * dbgcnt.def (prefetch): New debug counter.
1896         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
1897         (schedule_prefetches): Stop issueing prefetches if debug counter
1898         tripped.
1900 2017-06-06  Tom de Vries  <tom@codesourcery.com>
1902         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
1903         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
1905 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1907         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
1908         Use aarch64_reg_or_zero predicate for operand 4.
1909         (aarch64_compare_and_swap<mode> define_insn_and_split):
1910         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
1911         (aarch64_store_exclusive<mode>): Likewise for operand 2.
1913 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1915         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
1916         (arm_compute_save_core_reg_mask): This.
1917         (thumb1_compute_save_reg_mask): Rename into ...
1918         (thumb1_compute_save_core_reg_mask): This.
1919         (arm_compute_save_reg0_reg12_mask): Adapt comment.
1920         (arm_compute_frame_layout): Likewise.
1922 2017-06-06  Richard Biener  <rguenther@suse.de>
1924         PR tree-optimization/80974
1925         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
1926         keep or clear leaders SSA info.
1928 2017-06-06  Tom de Vries  <tom@codesourcery.com>
1930         * config/nvptx/nvptx.c (split_mode_p): New function.
1931         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
1933 2017-06-06  Tom de Vries  <tom@codesourcery.com>
1935         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
1937 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1939         PR bootstrap/80978
1940         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
1941         profile.
1943 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1945         * shrink-wrap.c (handle_simple_exit): Update profile.
1946         (try_shrink_wrapping): Upate profile.
1948 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1950         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
1951         (tree_guess_outgoing_edge_probabilities): New.
1952         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
1953         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
1955 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1957         * ipa-split.c (split_function): Initialize return bb profile.
1959 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
1961         * profile.c (compute_branch_probabilities): Also initialize
1962         EXIT_BLOCK profile.
1964 2017-06-06  Richard Biener  <rguenther@suse.de>
1966         PR tree-optimization/80928
1967         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
1968         (vect_analyze_loop_operations): Properly guard analysis for
1969         pure SLP case.
1970         (vect_transform_loop): Likewise.
1971         (vect_analyze_loop_2): Also reset SLP type on PHIs.
1972         (vect_model_induction_cost): Do not cost for pure SLP.
1973         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
1974         of induction in inner loop vectorization.
1975         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
1976         (vect_get_and_check_slp_defs): Handle vect_induction_def.
1977         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
1978         recursion.
1979         (vect_analyze_slp_cost_1): Cost induction.
1980         (vect_detect_hybrid_slp_stmts): Handle PHIs.
1981         (vect_get_slp_vect_defs): Likewise.
1982         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
1983         (vect_transform_stmt): Handle SLP reductions.
1984         * tree-vectorizer.h (vectorizable_induction): Adjust.
1986 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1988         * config/rs6000/rs6000.c (make_resolver_func): Update
1989         init_lowered_empty_function call.
1991 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1993         * doc/invoke.texi: Document the -fprofile-abs-path option.
1994         * common.opt (fprofile-abs-path): New option.
1995         * gcov-io.h (gcov_write_filename): Declare.
1996         * gcov-io.c (gcov_write_filename): New function.
1997         * coverage.c (coverage_begin_function): Use gcov_write_filename.
1998         * profile.c (output_location): Likewise.
2000 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2002         * shring-wrap.c: Revert accidental commit.
2004 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
2006         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
2008 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2010         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
2011         new edge.
2012         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
2013         profile in callgraph edge.
2014         * profile-count.h (apply_probability): If THIS is 0, then result is 0
2015         (apply_scale): Likewise.
2016         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
2017         Also scale profile when inlining function with zero profile.
2018         (initialize_cfun): Update exit block profile even when it is zero.
2019         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
2020         when profile is read.
2022 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2024         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
2025         (CLONE_*): New constants to define the processors we can generate
2026         code for with the target_clone attribute.
2027         (rs6000_clone_map): New array to identify which clone processors
2028         the current program is running on.
2029         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
2030         target_clone attribute.
2031         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
2032         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
2033         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
2034         (cpu_expand_builtin): Add support for target_clone attribute.
2035         (rs6000_valid_attribute_p): Allow "default" attribute.
2036         (get_decl_name): New debug function to simplify printing the
2037         current function name in debugging statements.
2038         (rs6000_clone_priority): New functions to support the target_clone
2039         attribute, and be able to generate code to switch between ISA 2.05
2040         through ISA 3.0 (power6 through power9).
2041         (rs6000_compare_version_priority): Likewise.
2042         (rs6000_get_function_versions_dispatcher): Likewise.
2043         (make_resolver_func): Likewise.
2044         (add_condition_to_bb): Likewise.
2045         (dispatch_function_versions): Likewise.
2046         (rs6000_generate_version_dispatcher_body): Likewise.
2047         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
2048         (fusion_gpr_load_p): Fix a spacing issue.
2049         * doc/extend.texi (Common Function Attributes): Document that the
2050         PowerPC supports the target_clone attribute.
2052 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2054         * config/arm/arm.h: explain F symbol found in description of ARM
2055         register allocation in its legend.
2057 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2059         * config/mips/frame-header-opt.c: Include profile-count.h.
2060         * config/riscv/riscv.c: Include profile-count.h
2062 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2064         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
2065         update profile.
2066         (sm_set_flag_if_changed): Add bbs field.
2067         (execute_sm_if_changed_flag_set): Pass BBS.
2068         (execute_sm): Update.
2070 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2072         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
2073         New pattern.
2075 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2077         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
2078         (peephole2): New peephole2 to emit the above.
2079         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
2081 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2083         * config/aarch64/aarch64.c (define_peephole2 above
2084         *sub_<shift>_<mode>): New peephole.
2086 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
2088         * config/i386/i386.c (make_resolver_func): Update.
2089         * Makefile.in: Add profile-count.h and profile-count.o
2090         * auto-profile.c (afdo_indirect_call): Update to new API.
2091         (afdo_set_bb_count): Update.
2092         (afdo_propagate_edge): Update.
2093         (afdo_propagate_circuit): Update.
2094         (afdo_calculate_branch_prob): Update.
2095         (afdo_annotate_cfg): Update.
2096         * basic-block.h: Include profile-count.h
2097         (struct edge_def): Turn count to profile_count.
2098         (struct basic_block_def): Likewie.
2099         (REG_BR_PROB_BASE): Move to profile-count.h
2100         (RDIV): Move to profile-count.h
2101         * bb-reorder.c (max_entry_count): Turn to profile_count.
2102         (find_traces): Update.
2103         (rotate_loop):Update.
2104         (connect_traces):Update.
2105         (sanitize_hot_paths):Update.
2106         * bt-load.c (migrate_btr_defs): Update.
2107         * cfg.c (RDIV): Remove.
2108         (init_flow): Use alloc_block.
2109         (alloc_block): Uninitialize count.
2110         (unchecked_make_edge): Uninitialize count.
2111         (check_bb_profile): Update.
2112         (dump_edge_info): Update.
2113         (dump_bb_info): Update.
2114         (update_bb_profile_for_threading): Update.
2115         (scale_bbs_frequencies_int): Update.
2116         (scale_bbs_frequencies_gcov_type): Update.
2117         (scale_bbs_frequencies_profile_count): New.
2118         * cfg.h (update_bb_profile_for_threading): Update.
2119         (scale_bbs_frequencies_profile_count): Declare.
2120         * cfgbuild.c (compute_outgoing_frequencies): Update.
2121         (find_many_sub_basic_blocks): Update.
2122         * cfgcleanup.c (try_forward_edges): Update.
2123         (try_crossjump_to_edge): Update.
2124         * cfgexpand.c (expand_gimple_tailcall): Update.
2125         (construct_exit_block): Update.
2126         * cfghooks.c (verify_flow_info): Update.
2127         (dump_bb_for_graph): Update.
2128         (split_edge): Update.
2129         (make_forwarder_block): Update.
2130         (duplicate_block): Update.
2131         (account_profile_record): Update.
2132         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
2133         (get_estimated_loop_iterations): Update.
2134         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
2135         (single_likely_exit): Update.
2136         * cfgloopmanip.c (scale_loop_profile): Update.
2137         (loopify): Update.
2138         (set_zero_probability): Update.
2139         (lv_adjust_loop_entry_edge): Update.
2140         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
2141         (purge_dead_edges): Update.
2142         (rtl_account_profile_record): Update.
2143         * cgraph.c (cgraph_node::create): Uninitialize count.
2144         (symbol_table::create_edge): Uninitialize count.
2145         (cgraph_update_edges_for_call_stmt_node): Update.
2146         (cgraph_edge::dump_edge_flags): Update.
2147         (cgraph_node::dump): Update.
2148         (cgraph_edge::maybe_hot_p): Update.
2149         * cgraph.h: Include profile-count.h
2150         (create_clone), create_edge, create_indirect_edge): Update.
2151         (cgraph_node): Turn count to profile_count.
2152         (cgraph_edge0: Likewise.
2153         (make_speculative, clone): Update.
2154         (create_edge): Update.
2155         (init_lowered_empty_function): Update.
2156         * cgraphclones.c (cgraph_edge::clone): Update.
2157         (duplicate_thunk_for_node): Update.
2158         (cgraph_node::create_clone): Update.
2159         * cgraphunit.c (cgraph_node::analyze): Update.
2160         (cgraph_node::expand_thunk): Update.
2161         * final.c (dump_basic_block_info): Update.
2162         * gimple-streamer-in.c (input_bb): Update.
2163         * gimple-streamer-out.c (output_bb): Update.
2164         * graphite.c (print_global_statistics): Update.
2165         (print_graphite_scop_statistics): Update.
2166         * hsa-brig.c: Include basic-block.h.
2167         * hsa-dump.c: Include basic-block.h.
2168         * hsa-gen.c (T sum_slice): Update.
2169         (convert_switch_statements):Update.
2170         * hsa-regalloc.c: Include basic-block.h.
2171         * ipa-chkp.c (chkp_produce_thunks): Update.
2172         * ipa-cp.c (struct caller_statistics): Update.
2173         (init_caller_stats): Update.
2174         (gather_caller_stats): Update.
2175         (ipcp_cloning_candidate_p): Update.
2176         (good_cloning_opportunity_p): Update.
2177         (get_info_about_necessary_edges): Update.
2178         (dump_profile_updates): Update.
2179         (update_profiling_info): Update.
2180         (update_specialized_profile): Update.
2181         (perhaps_add_new_callers): Update.
2182         (decide_about_value): Update.
2183         (ipa_cp_c_finalize): Update.
2184         * ipa-devirt.c (struct odr_type_warn_count): Update.
2185         (struct decl_warn_count): Update.
2186         (struct final_warning_record): Update.
2187         (possible_polymorphic_call_targets): Update.
2188         (ipa_devirt): Update.
2189         * ipa-fnsummary.c (redirect_to_unreachable): Update.
2190         * ipa-icf.c (sem_function::merge): Update.
2191         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
2192         * ipa-inline.c (compute_uninlined_call_time): Update.
2193         (compute_inlined_call_time): Update.
2194         (want_inline_small_function_p): Update.
2195         (want_inline_self_recursive_call_p): Update.
2196         (edge_badness): Update.
2197         (lookup_recursive_calls): Update.
2198         (recursive_inlining): Update.
2199         (inline_small_functions): Update.
2200         (dump_overall_stats): Update.
2201         (dump_inline_stats): Update.
2202         * ipa-profile.c (ipa_profile_generate_summary): Update.
2203         (ipa_propagate_frequency): Update.
2204         (ipa_profile): Update.
2205         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2206         * ipa-utils.c (ipa_merge_profiles): Update.
2207         * loop-doloop.c (doloop_modify): Update.
2208         * loop-unroll.c (report_unroll): Update.
2209         (unroll_loop_runtime_iterations): Update.
2210         * lto-cgraph.c (lto_output_edge): Update.
2211         (lto_output_node): Update.
2212         (input_node): Update.
2213         (input_edge): Update.
2214         (merge_profile_summaries): Update.
2215         * lto-streamer-in.c (input_cfg): Update.
2216         * lto-streamer-out.c (output_cfg): Update.
2217         * mcf.c (create_fixup_graph): Update.
2218         (adjust_cfg_counts): Update.
2219         (sum_edge_counts): Update.
2220         * modulo-sched.c (sms_schedule): Update.
2221         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
2222         * predict.c (maybe_hot_count_p): Update.
2223         (probably_never_executed): Update.
2224         (dump_prediction): Update.
2225         (combine_predictions_for_bb): Update.
2226         (propagate_freq): Update.
2227         (handle_missing_profiles): Update.
2228         (counts_to_freqs): Update.
2229         (rebuild_frequencies): Update.
2230         (force_edge_cold): Update.
2231         * predict.h: Include profile-count.h
2232         (maybe_hot_count_p, counts_to_freqs): UPdate.
2233         * print-rtl-function.c: Do not include cfg.h
2234         * print-rtl.c: Include basic-block.h
2235         * profile-count.c: New file.
2236         * profile-count.h: New file.
2237         * profile.c (is_edge_inconsistent): Update.
2238         (correct_negative_edge_counts): Update.
2239         (is_inconsistent): Update.
2240         (set_bb_counts): Update.
2241         (read_profile_edge_counts): Update.
2242         (compute_frequency_overlap): Update.
2243         (compute_branch_probabilities): Update; Initialize and deinitialize
2244         gcov_count tables.
2245         (branch_prob): Update.
2246         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
2247         (edge_gcov_count): New.
2248         (bb_gcov_count): New.
2249         * shrink-wrap.c (try_shrink_wrapping): Update.
2250         * tracer.c (better_p): Update.
2251         * trans-mem.c (expand_transaction): Update.
2252         (ipa_tm_insert_irr_call): Update.
2253         (ipa_tm_insert_gettmclone_call): Update.
2254         * tree-call-cdce.c: Update.
2255         * tree-cfg.c (gimple_duplicate_sese_region): Update.
2256         (gimple_duplicate_sese_tail): Update.
2257         (gimple_account_profile_record): Update.
2258         (execute_fixup_cfg): Update.
2259         * tree-inline.c (copy_bb): Update.
2260         (copy_edges_for_bb): Update.
2261         (initialize_cfun): Update.
2262         (freqs_to_counts): Update.
2263         (copy_cfg_body): Update.
2264         (expand_call_inline): Update.
2265         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
2266         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
2267         (try_unroll_loop_completely): Update.
2268         (try_peel_loop): Update.
2269         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
2270         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
2271         * tree-ssa-loop-split.c (connect_loops): Update.
2272         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
2273         * tree-ssa-reassoc.c (branch_fixup): Update.
2274         * tree-ssa-tail-merge.c (replace_block_by): Update.
2275         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
2276         (compute_path_counts): Update.
2277         (update_profile): Update.
2278         (recompute_probabilities): Update.
2279         (update_joiner_offpath_counts): Update.
2280         (estimated_freqs_path): Update.
2281         (freqs_to_counts_path): Update.
2282         (clear_counts_path): Update.
2283         (ssa_fix_duplicate_block_edges): Update.
2284         (duplicate_thread_path): Update.
2285         * tree-switch-conversion.c (case_bit_test_cmp): Update.
2286         (struct switch_conv_info): Update.
2287         * tree-tailcall.c (decrease_profile): Update.
2288         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
2289         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
2290         * value-prof.c (check_counter): Update.
2291         (gimple_divmod_fixed_value): Update.
2292         (gimple_mod_pow2): Update.
2293         (gimple_mod_subtract): Update.
2294         (gimple_ic_transform): Update.
2295         (gimple_stringop_fixed_value): Update.
2296         * value-prof.h (gimple_ic): Update.
2298 2017-06-02  Carl Love  <cel@us.ibm.com>
2300         * config/rs6000/rs6000-c: Add support for built-in functions
2301         vector double vec_doublee (vector signed int);
2302         vector double vec_doublee (vector unsigned int);
2303         vector double vec_doublee (vector float);
2304         vector double vec_doubleh (vector signed int);
2305         vector double vec_doubleh (vector unsigned int);
2306         vector double vec_doubleh (vector float);
2307         vector double vec_doublel (vector signed int);
2308         vector double vec_doublel (vector unsigned int);
2309         vector double vec_doublel (vector float);
2310         vector double vec_doubleo (vector signed int);
2311         vector double vec_doubleo (vector unsigned int);
2312         vector double vec_doubleo (vector float);.
2313         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
2314         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
2315         UNS_DOUBLEL.
2316         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
2317         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
2318         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
2319         VS_sxwsp.
2320         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
2321         vec_doublel, vec_doubleh.
2322         * doc/extend.texi: Update the built-in documentation file for the
2323         new built-in functions.
2325 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
2327         PR jit/80954
2328         * ipa-inline-analysis.c (free_growth_caches): Set
2329         edge_removal_hook_holder to NULL after removing it.
2331 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
2333         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2334         comparision with zero.
2336 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
2337         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2338         for early expansion of vec_min and vec_max builtins.
2339         (builtin_function_type): Add min/max unsigned variants to those
2340         identified as having unsigned arguments.
2342 2017-06-02  Olivier Hainque  <hainque@adacore.com>
2344         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
2346 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2348         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2349         Use VALL_F16 iterator rather than VALL.
2351 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2353         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
2354         Emit CBNZ inside loop when doing a strong exchange and comparing
2355         against zero.  Generate the CC flags after the loop.
2357 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
2359         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
2360         (dl_section_ref): New.
2361         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
2362         On AIX, append an expression to subtract the size of the
2363         section length to dl_section_ref.
2365 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
2367         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2368         for early expansion of vector absolute builtins.
2370 2017-06-02  Richard Biener  <rguenther@suse.de>
2372         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
2373         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
2375 2017-06-02  Richard Biener  <rguenther@suse.de>
2377         PR tree-optimization/80948
2378         * tree-tailcall.c (find_tail_calls): Track stmts to move in
2379         stmt order as well.
2381 2017-06-02  Richard Biener  <rguenther@suse.de>
2383         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
2384         PHIs are ok.
2385         * tree-vect-stmts.c (process_use): Do not mark backedge defs
2386         for inductions as relevant.
2388 2017-06-02  Richard Biener  <rguenther@suse.de>
2390         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
2391         (vectorizable_induction): ... this.  Remove dead code.
2393 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2395         * builtins. (expand_builtin_alloca): Remove second parameter and
2396         infer its value from the first parameter instead.
2397         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
2399 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
2401         PR rtl-optimization/80903
2402         * loop-doloop.c (add_test): Unshare sequence.
2404 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2406         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
2408 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2410         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
2411         static.
2412         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
2413         xlogue_layout::get_instance, logue_layout::xlogue_layout,
2414         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
2415         (xlogue_layout::get_stub_rtx): Make static.
2416         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
2417         (xlogue_layout::compute_stub_managed_regs): Rename to...
2418         (xlogue_layout::count_stub_managed_regs): ...this.
2419         (xlogue_layout::is_stub_managed_reg): New function.
2420         (xlogue_layout::m_stub_names): Rename to...
2421         (xlogue_layout::s_stub_names): ...this, make static.
2422         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
2423         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
2424         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
2425         xlogue_layout::s_stub_names): Instantiate statics.
2426         (stub_managed_regs): Remove.
2427         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
2428         (disable_call_ms2sysv_xlogues): Rename to...
2429         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
2430         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
2431         warning logic.
2432         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
2433         change after reload_completed.
2434         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
2435         directly.
2436         (ix86_expand_prologue): Likewise.
2437         (ix86_expand_epilogue): Likewise.
2438         (ix86_expand_split_stack_prologue): Likewise.
2439         (ix86_compute_frame_layout): Remove frame parameter ...
2440         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
2441         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
2442         only if necessary.
2443         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
2444         (ix86_frame): Move from here ...
2445         * config/i386/i386.h (ix86_frame): ... to here.
2446         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
2447         complete ix86_frame data structure instead.  Remove some_ld_name.
2449 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2451         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
2452         symbols that hold a DECL_VALUE_EXPR.
2454 2017-06-01  Martin Jambor  <mjambor@suse.cz>
2456         PR tree-optimization/80898
2457         * tree-sra.c (process_subtree_disqualification): Removed.
2458         (disqualify_candidate): Do not acll
2459         process_subtree_disqualification.
2460         (subtree_mark_written_and_enqueue): New function.
2461         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
2462         RHS has been disqualified and re-queue LHS if necessary.  Apart
2463         from that, ignore disqualified RHS.
2465 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2467         * config/s390/s390.c (s390_emit_epilogue): Disable early return
2468         address fetch for z10 or later.
2470 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2472         * config/arc/arc.md (tst_movb): Add guard when splitting.
2474 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2476         * config/arc/arc.c (arc_can_eliminate): Test against
2477         arc_frame_pointer_needed.
2479 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2481         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
2482         to prevent store reordering.
2483         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
2484         (type): Add block type.
2485         (stack_tie): Define special instruction to be used in
2486         expand_prologue.
2488 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2490         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
2491         constraint. It is not valid for the pattern.
2492         (noncommutative_binary_comparison): Likewise.
2494 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2496         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
2497         scaled addresses.
2499 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2501         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
2502         be used by the reg-alloc.
2504 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2506         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
2507         reg-alloc when having mul64 or mul32x16 instructions.
2508         (mulsidi3): Likewise.
2509         (umulsidi3): Likewise.
2510         (mulsi32x16): New pattern.
2511         (mulsi64): Likewise.
2512         (mulsidi64): Likewise.
2513         (umulsidi64): Likewise.
2514         (MUL32x16_REG): Define.
2515         (mul64_600): Use MUL32x16_REG.
2516         (mac64_600): Likewise.
2517         (umul64_600): Likewise.
2518         (umac64_600): Likewise.
2520 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2522         * config/arc/arc.md (mulsi3_700): Make it commutative.
2524 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
2526         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
2527         type for movstouw.
2528         (*sign_extendsidi2_insn): Likewise for movstosw.
2530 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2532         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
2533         the type of the input discriminant value.  Convert the
2534         discriminant value of signedness vary.
2536 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
2538         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
2539         Add to -Wall section.
2541 2017-06-01  Richard Biener  <rguenther@suse.de>
2543         PR middle-end/66313
2544         * fold-const.c (fold_plusminus_mult_expr): If the factored
2545         factor may be zero use a wrapping type for the inner operation.
2546         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
2547         and handle moved defs.
2548         (process_assignment): Properly guard the unary op case.  Return a
2549         tri-state indicating that moving the stmt before the call may allow
2550         to continue.  Pass through to_move.
2551         (find_tail_calls): Handle moving unrelated defs before
2552         the call.
2554 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2556         PR target/80618
2557         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
2558         splitter result in the canonical way.
2560 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
2562         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
2563         also for 32bit target.  Update insn attributes.
2564         (zero-extendsidi2 splitter): Allow all registers for operand 1.
2566 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
2568         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
2569         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
2570         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
2571         (_mm_maskz_min_ss): New intrinsics.
2573 2017-05-31  Martin Liska  <mliska@suse.cz>
2575         * tree-vect-loop.c (vect_create_epilog_for_reduction):
2576         Change comment style to one we normally use.
2577         (vectorizable_reduction): Likewise.
2578         (vectorizable_induction): Likewise.
2579         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
2580         (vectorizable_call): Likewise.
2581         (vectorizable_simd_clone_call): Likewise.
2582         (vectorizable_conversion): Likewise.
2583         (vectorizable_assignment): Likewise.
2584         (vectorizable_shift): Likewise.
2585         (vectorizable_operation): Likewise.
2586         (vectorizable_store): Likewise.
2587         (vectorizable_load): Likewise.
2588         * tree-vectorizer.h: Likewise.
2590 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
2592         * passes.c (emergency_dump_function): New.
2593         * tree-pass.h (emergency_dump_function): Declare.
2594         * plugin.c (plugins_internal_error_function): Remove.
2595         * plugin.h (plugins_internal_error_function): Remove declaration.
2596         * toplev.c (internal_error_function): New static function.  Use it...
2597         (general_init): ...here.
2599 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
2601         * config/arc/arc.c (arc_print_operand): Handle constant operands.
2602         (arc_rtx_costs): Add costs for new patterns.
2603         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
2604         * config/arc/predicates.md: Add _1_2_3_operand predicate.
2606 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
2608         * tree-ssa-strlen.c (get_next_strinfo): New function.
2609         (get_stridx_plus_constant): Use it.
2610         (zero_length_string): Likewise.
2611         (adjust_related_strinfos): Likewise.
2612         (adjust_last_stmt): Likewise.
2614 2017-05-31  Richard Biener  <rguenther@suse.de>
2616         PR target/80880
2617         * config/i386/i386.c (ix86_expand_builtin): Remove assert
2618         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
2620 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
2622         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
2623         loop_vinfo argument and use of dependence distance vectors.
2624         Check instead whether the two references differ only in their
2625         initial value and assume that they have the same alignment if the
2626         difference is a multiple of the vector alignment.
2627         (vect_analyze_data_refs_alignment): Update call accordingly.
2629 2017-05-31  Martin Liska  <mliska@suse.cz>
2631         PR target/79155
2632         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
2634 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
2636         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
2637         (create_intersect_range_checks): Move from ...
2638         * tree-data-ref.c (create_intersect_range_checks_index)
2639         (create_intersect_range_checks): ... to here.
2640         (create_runtime_alias_checks): New function factored from ...
2641         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
2642         here.  Call above function.
2643         * tree-data-ref.h (create_runtime_alias_checks): New function.
2645 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
2647         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
2648         segment length for dr_b and compute it in wide_int.
2650 2017-05-31  Richard Biener  <rguenther@suse.de>
2652         PR tree-optimization/80906
2653         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
2654         and pass through iv_map.
2655         (copy_bb_and_scalar_dependences): Adjust.
2656         (translate_pending_phi_nodes): Likewise.
2657         (copy_loop_close_phi_args): Handle code-generating IVs instead
2658         of ICEing.
2660 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
2662         * diagnostic-color.c (color_dict): Add "type-diff".
2663         (parse_gcc_colors): Update comment.
2664         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2665         -fdiagnostics-show-template-tree and -fno-elide-type.
2666         (GCC_COLORS): Add type-diff to example.
2667         (type-diff=): New.
2668         (-fdiagnostics-show-template-tree): New.
2669         (-fno-elide-type): New.
2670         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
2671         the pp_format_decoder callback.  Call any m_format_postprocessor's
2672         "handle" method.
2673         (pretty_printer::pretty_printer): Initialize
2674         m_format_postprocessor.
2675         (pretty_printer::~pretty_printer): Delete any
2676         m_format_postprocessor.
2677         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
2678         (class format_postprocessor): New class.
2679         (struct pretty_printer::format_decoder): Document the new parameters.
2680         (struct pretty_printer::m_format_postprocessor): New field.
2681         * tree-diagnostic.c (default_tree_printer): Update for new
2682         bool and const char ** params.
2683         * tree-diagnostic.h (default_tree_printer): Likewise.
2685 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
2687         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
2688         (lwa_operand): Delete rs6000_gen_cell_microcode test.
2689         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
2690         rs6000_gen_cell_microcode code.
2691         (rs6000_final_prescan_insn): Delete.
2692         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
2693         "warn-cell-microcode" entries.
2694         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
2695         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
2696         throughout.  Change cc_reg_not_micro_cr0_operand to
2697         cc_reg_not_cr0_operand throughout.
2698         (*extendhi<mode>2_noload): Delete.
2699         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
2700         (mwarn-cell-microcode): Delete.
2701         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
2702         -mgen-cell-microcode and -mwarn-cell-microcode.
2704 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
2706         PR target/80833
2707         * config/i386/constraints.md (Yd): New constraint.
2708         (Ye): Ditto.
2709         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
2710         and (?Yd, r) alternatives.  Update insn attributes.
2711         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
2712         and (?*Yd, r) alternatives.  Update insn attributes.
2713         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
2715 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
2717         * gimplify.c (gimplify_modify_expr): Don't create a
2718         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
2719         function.
2721 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
2723         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
2725 2017-05-30  Richard Biener  <rguenther@suse.de>
2727         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
2728         and reduc_def fields.
2729         (STMT_VINFO_REDUC_TYPE): New define.
2730         (STMT_VINFO_REDUC_DEF): Likewise.
2731         (vect_force_simple_reduction): Adjust prototype.
2732         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
2733         (vect_is_simple_reduction): Remove check_reduction argument.
2734         (vect_force_simple_reduction): Adjust and set
2735         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
2736         (vectorizable_reduction): Do not re-do reduction analysis
2737         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
2738         * tree-parloops.c (gather_scalar_reductions): Adjust.
2740 2017-05-30  Richard Biener  <rguenther@suse.de>
2742         PR middle-end/80901
2743         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
2744         split_edge code.
2746 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2748         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
2749         Introduce unknown_misalignment parameter and remove vf.
2750         (vect_peeling_hash_get_lowest_cost):
2751         Pass unknown_misalignment parameter.
2752         (vect_enhance_data_refs_alignment):
2753         Fix unsupportable data ref treatment.
2755 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2757         * tree-vect-data-refs.c (vect_get_data_access_cost):
2758         Workaround for SLP handling.
2759         (vect_enhance_data_refs_alignment):
2760         Compute costs for doing no peeling at all, compare to the best
2761         peeling costs so far and avoid peeling if cheaper.
2763 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2765         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
2766         Return peeling info and set costs to zero for unlimited cost
2767         model.
2768         (vect_enhance_data_refs_alignment): Also inspect all datarefs
2769         with unknown misalignment. Compute and costs for unknown
2770         misalignment, compare them to the costs for known misalignment
2771         and choose the cheapest for peeling.
2773 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2775         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
2776         (vect_get_peeling_costs_all_drs): Create function.
2777         (vect_peeling_hash_get_lowest_cost):
2778         Use vect_get_peeling_costs_all_drs.
2779         (vect_peeling_supportable): Create function.
2780         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
2782 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2784         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
2785         DR_HAS_NEGATIVE_STEP.
2786         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
2787         (vect_enhance_data_refs_alignment): Use.
2788         (vect_duplicate_ssa_name_ptr_info): Use.
2789         * tree-vectorizer.h (dr_misalignment): Use.
2790         (known_alignment_for_access_p): Use.
2792 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
2794         PR target/78838
2795         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
2796         .lowtext.
2797         (has_section_name): New function.
2799 2017-05-30  Martin Liska  <mliska@suse.cz>
2801         PR other/80909
2802         * auto-profile.c (get_function_decl_from_block): Fix
2803         parenthesis.
2805 2017-05-30  Richard Biener  <rguenther@suse.de>
2807         PR middle-end/80876
2808         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
2810 2017-05-30  Martin Liska  <mliska@suse.cz>
2812         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
2813         * dumpfile.h (struct dump_file_info): Remove ctors.
2815 2017-05-30  Martin Liska  <mliska@suse.cz>
2817         * predict.def: Fix GNU coding style.
2819 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
2821         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
2822         Mark 'to' argument with ATTRIBUTE_UNUSED.
2824 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
2826         * config/xtensa/xtensa.c (xtensa_emit_call): Use
2827         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
2828         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
2829         format string.
2831 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
2833         * doc/install.texi (Options specification): Restore entry of
2834         --enable-sjlj-exceptions.
2836 2017-05-27  Michael Eager  <eager@eagercon.com>
2838         Revert:
2839         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
2841         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
2843         * config/microblaze/microblaze.h
2844         (FIXED_REGISTERS): Update in macro.
2845         (CALL_USED_REGISTERS): Update in macro.
2847 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
2849         * doc/install.texi: Add links to macOS binary distributions.
2851 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
2853         PR bootstrap/80887
2854         Revert:
2855         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
2857         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
2859 2017-05-26  Martin Liska  <mliska@suse.cz>
2861         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
2863 2017-05-26  Martin Liska  <mliska@suse.cz>
2865         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
2866         always leading ';; '.
2867         (dump_bb_info): Likewise.
2868         (brief_dump_cfg): Likewise.
2869         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
2870         * dumpfile.c: Remove usage of TDF_VERBOSE.
2871         * dumpfile.h (enum dump_kind): Likewise.
2872         (dump_gimple_bb_header): Do not use TDF_COMMENT.
2873         * print-tree.c (debug_verbose): Remove.
2874         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
2875         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
2876         * tree-diagnostic.c (default_tree_printer): Replace
2877         TDF_DIAGNOSTIC with TDF_SLIM.
2879 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
2881         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
2882         in parameter loop, rather than loop_vinfo.
2883         (create_intersect_range_checks): Ditto.
2884         (vect_create_cond_for_alias_checks): Update call to above functions.
2886 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
2888         PR tree-optimization/80815
2889         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
2890         for merging runtime alias checks.  Handle negative DR_STEPs.
2892 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
2894         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
2895         Move from ...
2896         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
2897         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
2898         out code pruning runtime alias checks.
2899         * tree-data-ref.c (prune_runtime_alias_test_list): New function
2900         factored out from above.
2901         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
2902         Move from ...
2903         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
2904         ... to here.
2905         (prune_runtime_alias_test_list): New decalaration.
2907 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
2909         * tree-vect-data-refs.c (compare_tree): Rename and move ...
2910         * tree-data-ref.c (data_ref_compare_tree): ... to here.
2911         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
2912         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
2913         (operator==, comp_dr_with_seg_len_pair): Ditto.
2914         (vect_prune_runtime_alias_test_list): Ditto.
2916 2017-05-26  Martin Liska  <mliska@suse.cz>
2918         PR ipa/80663
2919         * params.def: Bound partial-inlining-entry-probability param.
2921 2017-05-26  Marek Polacek  <polacek@redhat.com>
2923         PR sanitizer/80875
2924         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
2925         can be negated.
2927 2017-05-26  Richard Biener  <rguenther@suse.de>
2929         PR tree-optimization/80842
2930         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
2931         value.
2933 2017-05-26  Richard Biener  <rguenther@suse.de>
2935         PR tree-optimization/80844
2936         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
2938 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
2940         * doc/md.texi (Machine Constraints): Update x86 family
2941         machine constraints section to match 'config/i386/constraints.md'.
2943 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
2945         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
2947 2017-05-25  Nathan Sidwell  <nathan@acm.org>
2949         * doc/invoke.texi (--enable-languages): Update documentation.
2951 2017-05-25  Martin Liska  <mliska@suse.cz>
2953         * dumpfile.c: Add TDF_FOLDING.
2954         * dumpfile.h (enum dump_kind): Likewise.
2955         * genmatch.c (dt_simplify::gen_1): Use it.
2957 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
2959         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
2961 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
2963         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
2964         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
2966 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
2968         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
2969         * match.pd (X == C): Rewrite it here.
2970         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
2971         with_certain_nonzero_bits2): New predicates.
2972         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
2974 2017-05-24  Nathan Sidwell  <nathan@acm.org>
2976         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
2977         avoid warning.
2979         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
2980         warning.
2982 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
2984         * config/powerpcspe: New port.  Files are copied from the rs6000
2985         port, with "rs6000" in filenames replaced by "powerpcspe".
2987 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
2989         PR rtl-optimization/80754
2990         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
2992 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
2994         * config/sparc/sparc.md (length): Return the correct value for -mflat
2995         sibcalls to match output_sibcall.
2997 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
2999         PR bootstrap/80860
3000         PR bootstrap/80843
3001         * config/rs6000/rs6000.c (struct machine_function): Add new field
3002         n_components.
3003         (rs6000_get_separate_components): Init that field, use it.
3004         (rs6000_components_for_bb): Use the field.
3006 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3008         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
3010 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
3012         PR middle-end/80823
3013         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
3015 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3017         PR target/80725
3018         * config/s390/s390.c (s390_check_qrst_address): Check incoming
3019         address against address_operand predicate.
3020         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
3022 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3024         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
3025         parameters passed indirectly.
3027 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
3029         * config/i386/i386.md (*movdi_internal): Remove SSE4
3030         alternative 18 (?r, *v).  Update insn attributes.
3031         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
3032         Update insn attributes.
3033         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
3034         Update insn attributes.
3035         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
3036         alternative 1 (r, v). Remove isa attribute.
3037         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3038         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
3039         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3041 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3043         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
3044         dg-line directive.
3046 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3048         * cgraphunit.c (symbol_table::process_new_functions): Update.
3049         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
3050         (inline_generate_summary): Rename to ...
3051         (ipa_fn_summary_generate): ... this one.
3052         (inline_read_summary): Rename to ...
3053         (ipa_fn_summary_read): ... this one.
3054         (inline_write_summary): Rename to ...
3055         (ipa_fn_summary_write): ... this one.
3056         (inline_free_summary): Rename to ...
3057         (ipa_free_fn_summary): ... this one.
3058         (pass_data_local_fn_summary, pass_local_fn_summary,
3059         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
3060         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
3061         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
3062         make_pass_ipa_fn_summary): New.
3063         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
3064         inline_write_summary, inline_free_summary): Remove.
3065         (ipa_free_fn_summary) : New.
3066         * ipa-inline.c (ipa_inline): Update.
3067         (pass_ipa_inline): Do not generate summaries.
3068         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
3069         Remove.
3070         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
3071         and add pass_ipa_fn_summary.
3072         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
3073         New.
3074         (make_pass_inline_parameters): Remove.
3076 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3078         * omp-low.c (struct omp_context): Remove "default_kind" member.
3079         Adjust all users.
3081         * omp-offload.c (execute_oacc_device_lower): Remove the
3082         parallelism dimensions function attributes for unparallelized
3083         OpenACC kernels constructs.
3085 2017-05-23  Martin Liska  <mliska@suse.cz>
3087         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
3088         functions.
3089         (cgraph_edge::make_speculative): Likewise.
3090         (cgraph_edge::resolve_speculation): Likewise.
3091         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3092         (cgraph_node::dump): Likewise.
3093         * cgraph.h: Likewise.
3094         * cgraphunit.c (analyze_functions): Likewise.
3095         (symbol_table::compile): Likewise.
3096         * ipa-cp.c (print_all_lattices): Likewise.
3097         (determine_versionability): Likewise.
3098         (initialize_node_lattices): Likewise.
3099         (ipcp_verify_propagated_values): Likewise.
3100         (estimate_local_effects): Likewise.
3101         (update_profiling_info): Likewise.
3102         (create_specialized_node): Likewise.
3103         (perhaps_add_new_callers): Likewise.
3104         (decide_about_value): Likewise.
3105         (decide_whether_version_node): Likewise.
3106         (identify_dead_nodes): Likewise.
3107         (ipcp_store_bits_results): Likewise.
3108         * ipa-devirt.c (dump_targets): Likewise.
3109         (ipa_devirt): Likewise.
3110         * ipa-icf.c (sem_item::dump): Likewise.
3111         (sem_function::equals): Likewise.
3112         (sem_variable::equals): Likewise.
3113         (sem_item_optimizer::read_section): Likewise.
3114         (sem_item_optimizer::execute): Likewise.
3115         (congruence_class::dump): Likewise.
3116         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
3117         (dump_inline_summary): Likewise.
3118         (estimate_node_size_and_time): Likewise.
3119         (inline_analyze_function): Likewise.
3120         * ipa-inline-transform.c (inline_call): Likewise.
3121         * ipa-inline.c (report_inline_failed_reason): Likewise.
3122         (want_early_inline_function_p): Likewise.
3123         (edge_badness): Likewise.
3124         (update_edge_key): Likewise.
3125         (inline_small_functions): Likewise.
3126         * ipa-profile.c (ipa_profile): Likewise.
3127         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
3128         (ipa_make_edge_direct_to_target): Likewise.
3129         (remove_described_reference): Likewise.
3130         (ipa_impossible_devirt_target): Likewise.
3131         (propagate_controlled_uses): Likewise.
3132         (ipa_print_node_params): Likewise.
3133         (ipcp_transform_function): Likewise.
3134         * ipa-pure-const.c (pure_const_read_summary): Likewise.
3135         (propagate_pure_const): Likewise.
3136         * ipa-reference.c (generate_summary): Likewise.
3137         (read_write_all_from_decl): Likewise.
3138         (propagate): Likewise.
3139         (ipa_reference_read_optimization_summary): Likewise.
3140         * ipa-utils.c (ipa_merge_profiles): Likewise.
3141         * ipa.c (walk_polymorphic_call_targets): Likewise.
3142         (symbol_table::remove_unreachable_nodes): Likewise.
3143         (ipa_single_use): Likewise.
3144         * passes.c (execute_todo): Likewise.
3145         * predict.c (drop_profile): Likewise.
3146         * symtab.c (symtab_node::get_dump_name): New function.
3147         (symtab_node::dump_name): Likewise.
3148         (symtab_node::dump_asm_name): Likewise.
3149         (symtab_node::dump_references): Likewise.
3150         (symtab_node::dump_referring): Likewise.
3151         (symtab_node::dump_base): Likewise.
3152         (symtab_node::debug_symtab): Likewise.
3153         * tree-sra.c (convert_callers_for_node): Likewise.
3154         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3155         * value-prof.c (init_node_map): Likewise.
3157 2017-05-23  Martin Liska  <mliska@suse.cz>
3159         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
3160         and symtab_node::debug_symtab to symbol_table::debug.
3161         * cgraphunit.c (analyze_functions): Use the renamed function.
3162         (symbol_table::compile): Likewise.
3163         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
3164         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3165         * passes.c (execute_todo): Likewise.
3166         * symtab.c (symbol_table::dump): New function.
3167         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
3169 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3171         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
3172         that nonconst implies exec.
3174 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3176         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
3177         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
3178         (inline_edge_summary_vec): Turn into ...
3179         (ipa_call_summaries): ... this one.
3180         (redirect_to_unreachable, edge_set_predicate,
3181         evaluate_properties_for_edge, inline_summary_alloc,
3182         reset_ipa_call_summary, reset_inline_summary,
3183         inline_summary_t::duplicate): Update.
3184         (inline_edge_duplication_hook): Turn to ...
3185         (ipa_call_summary_t::duplicate): ... this one.
3186         (inline_edge_removal_hook): Turn to ...
3187         (ipa_call_summary_t::remove): ... this one.
3188         (dump_inline_edge_summary): Turn to ...
3189         (dump_ipa_call_summary): ... this one.
3190         (estimate_function_body_sizes): Update.
3191         (inline_update_callee_summaries): Update.
3192         (remap_edge_change_prob): Update.
3193         (remap_edge_summaries): Update.
3194         (inline_merge_summary): Update.
3195         (do_estimate_edge_time): Update.
3196         (inline_generate_summary): Update.
3197         (inline_read_section): Update.
3198         (inline_read_summary): Update.
3199         (inline_free_summary): Update.
3200         * ipa-inline.c (can_inline_edge_p): Update.
3201         (compute_inlined_call_time): Update.
3202         (want_inline_small_function_p): Update.
3203         (edge_badness): Update.
3204         (early_inliner): Update.
3205         * ipa-inline.h (inline_edge_summary): Turn to ...
3206         (ipa_call_summary): ... this one.
3207         (ipa_call_summary_t): New class.
3208         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
3209         (ipa_call_summaries): New.
3210         (inline_edge_summary): Remove.
3211         (estimate_edge_growth): Update.
3212         * ipa-profile.c (ipa_propagate_frequency_1): Update.
3213         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3214         * ipa-split.c (execute_split_functions): Update.
3215         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
3217 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3219         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
3220         attributes): Document rdrand effective target.
3222 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3224         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
3225         attributes): Sort alphabetically.
3227 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
3229         * config/avr/genmultilib.awk: Use gsub instead of gensub.
3231 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3233         PR target/80718
3234         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
3235         V2DF/V2DI splat into two separate patterns, one that handles
3236         registers, and the other that only handles memory.  Drop support
3237         for splatting from a GPR on ISA 2.07 and then splitting the
3238         splat into direct move and splat.
3239         (vsx_splat_<mode>_reg): Likewise.
3240         (vsx_splat_<mode>_mem): Likewise.
3242 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
3244         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
3246 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
3248         PR middle-end/80809
3249         * omp-low.c (finish_taskreg_remap): New function.
3250         (finish_taskreg_scan): If unit size of ctx->record_type
3251         is non-constant, unshare the size expression and replace
3252         decls in it with possible outer var refs.
3254         PR middle-end/80809
3255         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
3256         GOVD_SHARED rather than GOVD_PRIVATE with it.
3257         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
3258         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
3260         PR middle-end/80853
3261         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
3262         as last argument to build_outer_var_ref for pointer bases of array
3263         section reductions.
3265 2017-05-19  Martin Sebor  <msebor@redhat.com>
3267         * print-tree.c (print_node): Print DECL_READ_P flag.
3269 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3271         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
3272         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
3273         * cgraph.c: Likewise.
3274         * cgraphunit.c: Likewise.
3275         * gengtype.c: Likewise.
3276         * ipa-cp.c: Likewise.
3277         * ipa-devirt.c: Likewise.
3278         * ipa-icf.c: Likewise.
3279         * ipa-predicate.c: Likewise.
3280         * ipa-profile.c: Likewise.
3281         * ipa-prop.c: Likewise.
3282         * ipa-split.c: Likewise.
3283         * ipa.c: Likewise.
3284         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
3285         edge_predicate_pool, dump_inline_hints,
3286         inline_summary::account_size_time, redirect_to_unreachable,
3287         edge_set_predicate, set_hint_predicate,
3288         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
3289         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
3290         inline_summary_t::remove, remap_hint_predicate_after_duplication,
3291         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
3292         ipa_call_summary_t::remove, initialize_growth_caches,
3293         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
3294         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
3295         mark_modified, unmodified_parm_1, unmodified_parm,
3296         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
3297         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
3298         compute_bb_predicates, will_be_nonconstant_expr_predicate,
3299         will_be_nonconstant_predicate, record_modified_bb_info,
3300         get_minimal_bb, record_modified, param_change_prob,
3301         phi_result_unknown_predicate, predicate_for_phi_result,
3302         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
3303         estimate_function_body_sizes, compute_inline_parameters,
3304         compute_inline_parameters_for_curren, pass_data_inline_parameters,
3305         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
3306         inline_update_callee_summaries, remap_edge_change_prob,
3307         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
3308         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
3309         inline_analyze_function, inline_summary_t::insert,
3310         inline_generate_summary, read_ipa_call_summary, inline_read_section,
3311         inline_read_summary, write_ipa_call_summary, inline_write_summary,
3312         inline_free_summary): Move to ipa-fnsummary.h
3313         (predicate_t): Remove.
3314         * ipa-fnsummary.c: New file.
3315         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
3316         (enum inline_hints_vals, inline_hints, agg_position_info,
3317         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
3318         inline_summaries, ipa_call_summary, ipa_call_summary_t,
3319         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
3320         dump_inline_summary, dump_inline_hints, inline_generate_summary,
3321         inline_read_summary, inline_write_summary, inline_free_summary,
3322         inline_analyze_function, initialize_inline_failed,
3323         inline_merge_summary, inline_update_overall_summary,
3324         compute_inline_parameters): Move to ipa-fnsummary.h
3325         * ipa-fnsummary.h: New file.
3326         * ipa-inline-transform.h: Include ipa-inline.h.
3327         * ipa-inline.c: LIkewise.
3329 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3331         * ipa-inline.c (edge_badness): Use inlined_time instead of
3332         inline_summaries->get.
3334 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3336         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
3338 2017-05-22  Nathan Sidwell  <nathan@acm.org>
3340         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
3341         (fdump-lang): Document 'raw' option.
3342         * dumpfile.h (TDI_tu): Delete.
3343         * dumpfile.c (dump_files): Remove translation-unit.
3344         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
3346 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
3348         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
3349         command option from $(AWK) call.
3350         * config/avr/genmultilib.awk: Simplify and rewrite so that it
3351         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
3352         [FORMAT]: Remove handling of variable.
3353         * config/avr/t-multilib: Regenerate.
3355 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3357         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
3358         self_time.
3359         (dump_inline_summary): Do not print self_time.
3360         (estimate_function_body_sizes): Do not set self_time.
3361         (compute_inline_parameters): Likewise.
3362         (inline_read_section, inline_write_summary): Do not stream self_time.
3363         * ipa-inline.h (inline_summary): Drop self_time.
3365 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3367         * ipa-inline-analysis.c (account_size_time): Rename to ...
3368         (inline_summary::account_size_time): ... this one.
3369         (reset_ipa_call_summary): Turn to ...
3370         (ipa_call_summary::reset): ... this one.
3371         (reset_inline_summary): Turn to ...
3372         (inline_summary::reset): ... this one.
3373         (inline_summary_t::remove): Update.
3374         (inline_summary_t::duplicate): Update.
3375         (ipa_call_summary_t::remove): Update.
3376         (dump_inline_summary): Update.
3377         (estimate_function_body_sizes): Update.
3378         (compute_inline_parameters): Update.
3379         (estimate_node_size_and_time): Update.
3380         (inline_merge_summary): Update.
3381         (inline_update_overall_summary): Update.
3382         (inline_read_section): Update.
3383         (inline_write_summary): Update.
3384         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
3385         add account_size_time and reset member functions.
3386         (ipa_call_summary): Add reset function.
3387         * ipa-predicate.h (predicate::operator &): Constify.
3389 2017-05-22  Richard Biener  <rguenther@suse.de>
3391         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
3393 2017-05-19  Jason Merrill  <jason@redhat.com>
3395         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
3397 2017-05-19  Marek Polacek  <polacek@redhat.com>
3399         PR sanitizer/80800
3400         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
3401         TYPE_OVERFLOW_WRAPS checks.
3403 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
3405         * tree-core.h (enum omp_clause_default_kind): Add
3406         "OMP_CLAUSE_DEFAULT_PRESENT".
3407         * tree-pretty-print.c (dump_omp_clause): Handle it.
3408         * gimplify.c (enum gimplify_omp_var_data): Add
3409         "GOVD_MAP_FORCE_PRESENT".
3410         (gimplify_adjust_omp_clauses_1): Map it to
3411         "GOMP_MAP_FORCE_PRESENT".
3412         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
3414         * gimplify.c (oacc_default_clause): Clarify.
3416 2017-05-19  Nathan Sidwell  <nathan@acm.org>
3418         LANG_HOOK_REGISTER_DUMPS
3419         * toplev.c (general_init): Call register dump lang hook.
3420         * doc/invoke.texi: Document -fdump-lang option family.
3421         * dumpfile.c (dump_files): Remove class dump here.
3422         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
3423         * dumpfile.h (tree_dump_index): Remove TDI_class.
3424         * langhooks-def.h (lhd_register_dumps): Declare.
3425         (LANG_HOOKS_REGISTER_DUMPS): Define.
3426         (LANG_HOOKS_INITIALIZER): Add it.
3427         * langhooks.c (lhd_register_dumps): Define.
3428         * langhooks.h (struct lang_hooks): Add register_dumps.
3430 2017-05-19  Nathan Sidwell  <nathan@acm.org>
3432         * context.h (context::set_passes): New.
3433         * context.c (context::context): Do not create pass manager.
3434         * toplev.c (general_init): Create pass manager here.
3436 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3438         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
3439         use this splitter if two add or or instructions would also work for
3440         the constant we want to generate.
3442 2017-05-19  Richard Biener  <rguenther@suse.de>
3444         PR build/80821
3445         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
3446         predicate evaluation.
3448 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
3450         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
3451         add ctor.
3452         * ipa-inline.c (want_inline_small_function_p): Do not cast to
3453         unsigned.
3455 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
3457         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
3458         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
3459         (inline_edge_summary_vec): Turn into ...
3460         (ipa_call_summaries): ... this one.
3461         (redirect_to_unreachable, edge_set_predicate,
3462         evaluate_properties_for_edge, inline_summary_alloc,
3463         reset_ipa_call_summary, reset_inline_summary,
3464         inline_summary_t::duplicate): Update.
3465         (inline_edge_duplication_hook): Turn to ...
3466         (ipa_call_summary_t::duplicate): ... this one.
3467         (inline_edge_removal_hook): Turn to ...
3468         (ipa_call_summary_t::remove): ... this one.
3469         (dump_inline_edge_summary): Turn to ...
3470         (dump_ipa_call_summary): ... this one.
3471         (estimate_function_body_sizes): Update.
3472         (inline_update_callee_summaries): Update.
3473         (remap_edge_change_prob): Update.
3474         (remap_edge_summaries): Update.
3475         (inline_merge_summary): Update.
3476         (do_estimate_edge_time): Update.
3477         (inline_generate_summary): Update.
3478         (inline_read_section): Update.
3479         (inline_read_summary): Update.
3480         (inline_free_summary): Update.
3481         * ipa-inline.c (can_inline_edge_p): Update.
3482         (compute_inlined_call_time): Update.
3483         (want_inline_small_function_p): Update.
3484         (edge_badness): Update.
3485         (early_inliner): Update.
3486         * ipa-inline.h (inline_edge_summary): Turn to ...
3487         (ipa_call_summary): ... this one.
3488         (ipa_call_summary_t): New class.
3489         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
3490         (ipa_call_summaries): New.
3491         (inline_edge_summary): Remove.
3492         (estimate_edge_growth): Update.
3493         * ipa-profile.c (ipa_propagate_frequency_1): Update.
3494         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3495         * ipa-split.c (execute_split_functions): Update.
3496         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
3498 2017-05-19  Richard Biener  <rguenther@suse.de>
3500         PR middle-end/80764
3501         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
3503 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3505         * config/rs6000/rs6000.c (struct machine_function): Add field
3506         fpr_is_wrapped_separately.
3507         (rs6000_get_separate_components): Use 64 components.  Handle the
3508         new FPR components.
3509         (rs6000_components_for_bb): Handle the FPR components.
3510         (rs6000_emit_prologue_components): Handle the FPR components.
3511         (rs6000_emit_epilogue_components): Handle the FPR components.
3512         (rs6000_set_handled_components): Handle the FPR components.
3513         (rs6000_emit_prologue): Don't output prologue code for those FPRs
3514         that are already separately shrink-wrapped.
3515         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
3516         that are already separately shrink-wrapped.
3518 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3520         PR target/80510
3521         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
3522         New predicate.
3524         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
3525         (define_peephole2 for Altivec d-form load): Add peepholes to catch
3526         cases where the register allocator uses a move and an offsettable
3527         memory operation to/from a FPR register on ISA 2.06/2.07.
3528         (define_peephole2 for Altivec d-form store): Likewise.
3530 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
3532         PR target/80799
3533         * config/i386/mmx.md (*mov<mode>_internal): Enable
3534         alternatives 11, 12, 13 and 14 also for 32bit targets.
3535         Remove alternatives 15, 16, 17 and 18.
3536         * config/i386/sse.md (vec_concatv2di): Change
3537         alternative (!x, *y) to (x, ?!*Yn).
3539 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
3541         * dumpfile.h (enum dump_kind): Remove stray comma.
3543 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
3545         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
3546         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
3547         predicate::num_conditions
3548         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
3549         (CHANGED): turn into predicate::changed.
3550         (agg_position_info): Move to ipa-predicate.h
3551         (add_condition, predicate::add_clause, predicate::operator &=,
3552         predicate::or_with, predicate::evaluate, predicate::probability,
3553         dump_condition, dump_clause, predicate::dump,
3554         predicate::remap_after_duplication, predicate::remap_after_inlining,
3555         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
3556         (evaluate_conditions_for_known_args): Update.
3557         (set_cond_stmt_execution_predicate): Update.
3558         * ipa-inline.h: Include ipa-predicate.h
3559         (condition, inline_param_summary, conditions, agg_position_info,
3560         predicate): Move to ipa-predicate.h
3561         * ipa-predicate.c: New file.
3562         * ipa-predicate.h: New file.
3564 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
3566         * final.c (leaf_function_p): Check we are not in a sequence.
3568 2017-05-18  Martin Liska  <mliska@suse.cz>
3570         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
3571         * dumpfile.c (dump_register): Use new enum dump_kind.
3572         (get_dump_file_name): Likewise.
3573         (dump_enable_all): Likewise.
3574         (dump_switch_p_1): Likewise.
3575         (enable_rtl_dump_file): Remove usage of TDF_RTL.
3576         * dumpfile.h (enum dump_kind): New enum type.
3577         (struct dump_file_info): Create constructor and
3578         format fields and comments.
3579         * passes.c (pass_manager::register_one_dump_file):
3580         Use num dump_kind.
3581         * statistics.c (statistics_early_init): Likewise.
3582         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
3583         TDF_TREE with TDF_SLIM.
3584         (gather_memory_references_ref): Likewise.
3586 2017-05-18  Martin Liska  <mliska@suse.cz>
3588         * vec.h (struct vnull): Use it.
3590 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
3592         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
3593         (true_predicate, false_predicate, true_predicate_p,
3594         false_predicate_p): Remove.
3595         (single_cond_predicate, not_inlined_predicate): Turn to member function
3596         in ipa-inline.h
3597         (add_condition): Update.
3598         (add_clause): Turn to...
3599         (predicate::add_clause): ... this one; update; allow passing NULL
3600         as parameter.
3601         (and_predicates): Turn to ...
3602         (predicate::operator &=): ... this one.
3603         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
3604         (or_predicates): Turn to ...
3605         (predicate::or_with): ... this one.
3606         (evaluate_predicate): Turn to ...
3607         (predicate::evaluate): ... this one.
3608         (predicate_probability): Turn to ...
3609         (predicate::probability): ... this one.
3610         (dump_condition): Update.
3611         (dump_predicate): Turn to ...
3612         (predicate::dump): ... this one.
3613         (account_size_time): Update.
3614         (edge_set_predicate): Update.
3615         (set_hint_predicate): UPdate.
3616         (evaluate_conditions_for_known_args): Update.
3617         (evaluate_properties_for_edge): Update.
3618         (remap_predicate_after_duplication): Turn to...
3619         (predicate::remap_after_duplication): ... this one.
3620         (remap_hint_predicate_after_duplication): Update.
3621         (inline_summary_t::duplicate): UPdate.
3622         (dump_inline_edge_summary): Update.
3623         (dump_inline_summary): Update.
3624         (set_cond_stmt_execution_predicate): Update.
3625         (set_switch_stmt_execution_predicate): Update.
3626         (compute_bb_predicates): Update.
3627         (will_be_nonconstant_expr_predicate): Update.
3628         (will_be_nonconstant_predicate): Update.
3629         (phi_result_unknown_predicate): Update.
3630         (predicate_for_phi_result): Update.
3631         (array_index_predicate): Update.
3632         (estimate_function_body_sizes): Update.
3633         (estimate_node_size_and_time): Update.
3634         (estimate_ipcp_clone_size_and_time): Update.
3635         (remap_predicate): Rename to ...
3636         (predicate::remap_after_inlining): ... this one.
3637         (remap_hint_predicate): Update.
3638         (inline_merge_summary): Update.
3639         (inline_update_overall_summary): Update.
3640         (estimate_size_after_inlining): Update.
3641         (read_predicate): Rename to ...
3642         (predicate::stream_in): ... this one.
3643         (read_inline_edge_summary): Update.
3644         (write_predicate): Rename to ...
3645         (predicate::stream_out): ... this one.
3646         (write_inline_edge_summary): Update.
3647         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
3648         (clause_t): Turn to uint32_t
3649         (predicate): Turn to class; implement constructor and operators
3650         ==, !=, &
3651         (size_time_entry): Update.
3652         (inline_summary): Update.
3653         (inline_edge_summary): Update.
3655 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
3657         * fold-const.c (fold_binary_loc): Move transformation...
3658         * match.pd (C - X CMP X): ... here.
3660 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
3662         * config/sparc/sparc.c (sparc_option_override): Set function
3663         alignment for -mcpu=niagara7 to 64 to match the I$ line.
3664         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
3665         latency to 1.
3666         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
3667         latency to 2.
3668         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
3670 2017-05-18  Marek Polacek  <polacek@redhat.com>
3672         PR sanitizer/80797
3673         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
3674         (pass_ubsan::execute): Call gimple_assign_single_p instead of
3675         gimple_assign_load_p.
3677 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
3679         PR middle-end/80692
3680         * real.c (do_compare): Give decimal_do_compare preference over
3681         comparing just the signs.
3683 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
3685         * doc/md.texi (Canonicalization of Instructions): Describe the
3686         canonical form of instructions that inherently set a condition
3687         code register.
3689 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
3691         PR middle-end/80775
3692         * tree-cfg.c: Move deletion of unreachable case statements to after
3693         the merging of consecutive case labels.
3695 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3697         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
3698         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
3699         restoring of callee-saved registers.
3701 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3703         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
3704         * config/visium/visium.c (single_set_and_flags): Likewise.
3705         * config/visium/visium.md (Substitutions): Likewise.
3707 2017-05-17  Martin Liska  <mliska@suse.cz>
3709         * cfg.c: Introduce dump_flags_t type and
3710         use it instead of int type.
3711         * cfg.h: Likewise.
3712         * cfghooks.c: Likewise.
3713         * cfghooks.h (struct cfg_hooks): Likewise.
3714         * cfgrtl.c: Likewise.
3715         * cfgrtl.h: Likewise.
3716         * cgraph.c (cgraph_node::get_body): Likewise.
3717         * coretypes.h: Likewise.
3718         * domwalk.c: Likewise.
3719         * domwalk.h: Likewise.
3720         * dumpfile.c (struct dump_option_value_info): Likewise.
3721         (dump_enable_all): Likewise.
3722         (dump_switch_p_1): Likewise.
3723         (opt_info_switch_p): Likewise.
3724         * dumpfile.h (enum tree_dump_index): Likewise.
3725         (struct dump_file_info): Likewise.
3726         * genemit.c: Likewise.
3727         * generic-match-head.c: Likewise.
3728         * gengtype.c (open_base_files): Likewise.
3729         * gimple-pretty-print.c: Likewise.
3730         * gimple-pretty-print.h: Likewise.
3731         * graph.c (print_graph_cfg): Likewise.
3732         * graphite-scop-detection.c (dot_all_sese): Likewise.
3733         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
3734         * loop-unroll.c (report_unroll): Likewise.
3735         * passes.c (pass_manager::register_one_dump_file): Likewise.
3736         * print-tree.c: Likewise.
3737         * statistics.c: Likewise.
3738         * tree-cfg.c: Likewise.
3739         * tree-cfg.h: Likewise.
3740         * tree-dfa.c: Likewise.
3741         * tree-dfa.h: Likewise.
3742         * tree-dump.c (dump_function): Likewise.
3743         * tree-dump.h (struct dump_info): Likewise.
3744         * tree-pretty-print.c: Likewise.
3745         * tree-pretty-print.h: Likewise.
3746         * tree-ssa-live.c: Likewise.
3747         * tree-ssa-live.h: Likewise.
3748         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3749         * tree-vect-loop.c: Likewise.
3750         * tree-vect-slp.c: Likewise.
3752 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
3753             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3755         PR tree-optimization/80457
3756         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
3757         of all arguments to a statement as scalar_to_vec operations.
3758         (vectorizable_call): Adjust call to vect_model_simple_cost for
3759         new parameter.
3760         (vectorizable_conversion): Likewise.
3761         (vectorizable_assignment): Likewise.
3762         (vectorizable_shift): Likewise.
3763         (vectorizable_operation): Likewise.
3764         (vectorizable_comparison): Likewise.
3765         (vect_is_simple_cond): Record the def types for operands.
3766         (vectorizable_condition): Likewise, call vect_model_simple_cost.
3767         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
3768         for statement argument count.
3770 2017-05-16  Carl Love  <cel@us.ibm.com>
3772         * config/rs6000/rs6000-c: Add support for built-in functions
3773         vector unsigned long long vec_bperm (vector unsigned long long,
3774                                              vector unsigned char)
3775         vector signed long long vec_mule (vector signed int,
3776                                           vector signed int)
3777         vector unsigned long long vec_mule (vector unsigned int,
3778                                             vector unsigned int)
3779         vector signed long long vec_mulo (vector signed int,
3780                                           vector signed int)
3781         vector unsigned long long vec_mulo (vector unsigned int,
3782                                             vector unsigned int)
3783         vector signed char vec_sldw (vector signed char,
3784                                      vector signed char,
3785                                      const int)
3786         vector unsigned char vec_sldw (vector unsigned char,
3787                                        vector unsigned char,
3788                                        const int)
3789         vector signed short vec_sldw (vector signed short,
3790                                       vector signed short,
3791                                       const int)
3792         vector unsigned short vec_sldw (vector unsigned short,
3793                                         vector unsigned short,
3794                                         const int)
3795         vector signed int vec_sldw (vector signed int,
3796                                     vector signed int,
3797                                     const int)
3798         vector unsigned int vec_sldw (vector unsigned int,
3799                                       vector unsigned int,
3800                                       const int)
3801         vector signed long long vec_sldw (vector signed long long,
3802                                           vector signed long long,
3803                                           const int)
3804         vector unsigned long long vec_sldw (vector unsigned long long,
3805                                             vector unsigned long long,
3806                                             const int)
3807         * config/rs6000/rs6000-c: Add support for built-in functions
3808         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
3809         * config/rs6000/altivec.h: Add defintion for vec_sldw.
3810         * doc/extend.texi: Update the built-in documentation for the
3811         new built-in functions.
3813 2017-05-16  Marek Polacek  <polacek@redhat.com>
3815         PR sanitizer/80536
3816         PR sanitizer/80386
3817         * tree.c (save_expr): Don't fold the expression.
3819 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
3821         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
3822         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
3823         and (?*y,m).  Update insn attributes.
3825 2017-05-16  Martin Liska  <mliska@suse.cz>
3827         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
3828         flags argument of print_gimple_stmt, print_gimple_expr,
3829         print_generic_stmt and print_generic_expr.
3830         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3831         * coretypes.h: Likewise.
3832         * except.c (dump_eh_tree): Likewise.
3833         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3834         * gimple-pretty-print.h: Likewise.
3835         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
3836         (backprop::push_to_worklist): Likewise.
3837         (backprop::pop_from_worklist): Likewise.
3838         (backprop::process_use): Likewise.
3839         (backprop::intersect_uses): Likewise.
3840         (note_replacement): Likewise.
3841         * gimple-ssa-store-merging.c
3842         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
3843         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3844         (pass_store_merging::execute): Likewise.
3845         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
3846         (ssa_base_cand_dump_callback): Likewise.
3847         (dump_incr_vec): Likewise.
3848         (replace_refs): Likewise.
3849         (replace_mult_candidate): Likewise.
3850         (create_add_on_incoming_edge): Likewise.
3851         (create_phi_basis): Likewise.
3852         (insert_initializers): Likewise.
3853         (all_phi_incrs_profitable): Likewise.
3854         (introduce_cast_before_cand): Likewise.
3855         (replace_one_candidate): Likewise.
3856         * gimplify.c (gimplify_expr): Likewise.
3857         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
3858         (set_rename): Likewise.
3859         (rename_uses): Likewise.
3860         (copy_loop_phi_nodes): Likewise.
3861         (add_close_phis_to_merge_points): Likewise.
3862         (copy_loop_close_phi_args): Likewise.
3863         (copy_cond_phi_args): Likewise.
3864         (graphite_copy_stmts_from_block): Likewise.
3865         (translate_pending_phi_nodes): Likewise.
3866         * graphite-poly.c (print_pdr): Likewise.
3867         (dump_gbb_cases): Likewise.
3868         (dump_gbb_conditions): Likewise.
3869         (print_scop_params): Likewise.
3870         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
3871         (build_cross_bb_scalars_use): Likewise.
3872         (gather_bbs::before_dom_children): Likewise.
3873         * hsa-dump.c (dump_hsa_immed): Likewise.
3874         * ipa-cp.c (print_ipcp_constant_value): Likewise.
3875         (get_replacement_map): Likewise.
3876         * ipa-inline-analysis.c (dump_condition): Likewise.
3877         (estimate_function_body_sizes): Likewise.
3878         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
3879         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
3880         * ipa-prop.c (ipa_dump_param): Likewise.
3881         (ipa_print_node_jump_functions_for_edge): Likewise.
3882         (ipa_modify_call_arguments): Likewise.
3883         (ipa_modify_expr): Likewise.
3884         (ipa_dump_param_adjustments): Likewise.
3885         (ipa_dump_agg_replacement_values): Likewise.
3886         (ipcp_modif_dom_walker::before_dom_children): Likewise.
3887         * ipa-pure-const.c (check_stmt): Likewise.
3888         (pass_nothrow::execute): Likewise.
3889         * ipa-split.c (execute_split_functions): Likewise.
3890         * omp-offload.c (dump_oacc_loop_part): Likewise.
3891         (dump_oacc_loop): Likewise.
3892         * trans-mem.c (tm_log_emit): Likewise.
3893         (tm_memopt_accumulate_memops): Likewise.
3894         (dump_tm_memopt_set): Likewise.
3895         (dump_tm_memopt_transform): Likewise.
3896         * tree-cfg.c (gimple_verify_flow_info): Likewise.
3897         (print_loop): Likewise.
3898         * tree-chkp-opt.c (chkp_print_addr): Likewise.
3899         (chkp_gather_checks_info): Likewise.
3900         (chkp_get_check_result): Likewise.
3901         (chkp_remove_check_if_pass): Likewise.
3902         (chkp_use_outer_bounds_if_possible): Likewise.
3903         (chkp_reduce_bounds_lifetime): Likewise.
3904         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
3905         (chkp_mark_completed_bounds): Likewise.
3906         (chkp_register_incomplete_bounds): Likewise.
3907         (chkp_mark_invalid_bounds): Likewise.
3908         (chkp_maybe_copy_and_register_bounds): Likewise.
3909         (chkp_build_returned_bound): Likewise.
3910         (chkp_get_bound_for_parm): Likewise.
3911         (chkp_build_bndldx): Likewise.
3912         (chkp_get_bounds_by_definition): Likewise.
3913         (chkp_generate_extern_var_bounds): Likewise.
3914         (chkp_get_bounds_for_decl_addr): Likewise.
3915         * tree-chrec.c (chrec_apply): Likewise.
3916         * tree-data-ref.c (dump_data_reference): Likewise.
3917         (dump_subscript): Likewise.
3918         (dump_data_dependence_relation): Likewise.
3919         (analyze_overlapping_iterations): Likewise.
3920         * tree-inline.c (expand_call_inline): Likewise.
3921         (tree_function_versioning): Likewise.
3922         * tree-into-ssa.c (dump_defs_stack): Likewise.
3923         (dump_currdefs): Likewise.
3924         (dump_names_replaced_by): Likewise.
3925         (dump_update_ssa): Likewise.
3926         (update_ssa): Likewise.
3927         * tree-object-size.c (pass_object_sizes::execute): Likewise.
3928         * tree-parloops.c (build_new_reduction): Likewise.
3929         (try_create_reduction_list): Likewise.
3930         (ref_conflicts_with_region): Likewise.
3931         (oacc_entry_exit_ok_1): Likewise.
3932         (oacc_entry_exit_single_gang): Likewise.
3933         * tree-pretty-print.h: Likewise.
3934         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
3935         (get_scalar_evolution): Likewise.
3936         (add_to_evolution): Likewise.
3937         (get_loop_exit_condition): Likewise.
3938         (analyze_evolution_in_loop): Likewise.
3939         (analyze_initial_condition): Likewise.
3940         (analyze_scalar_evolution): Likewise.
3941         (instantiate_scev): Likewise.
3942         (number_of_latch_executions): Likewise.
3943         (gather_chrec_stats): Likewise.
3944         (final_value_replacement_loop): Likewise.
3945         (scev_const_prop): Likewise.
3946         * tree-sra.c (dump_access): Likewise.
3947         (disqualify_candidate): Likewise.
3948         (create_access): Likewise.
3949         (reject): Likewise.
3950         (maybe_add_sra_candidate): Likewise.
3951         (create_access_replacement): Likewise.
3952         (analyze_access_subtree): Likewise.
3953         (analyze_all_variable_accesses): Likewise.
3954         (sra_modify_assign): Likewise.
3955         (initialize_constant_pool_replacements): Likewise.
3956         (find_param_candidates): Likewise.
3957         (decide_one_param_reduction): Likewise.
3958         (replace_removed_params_ssa_names): Likewise.
3959         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3960         * tree-ssa-copy.c (dump_copy_of): Likewise.
3961         (copy_prop_visit_cond_stmt): Likewise.
3962         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
3963         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
3964         (record_equivalences_from_stmt): Likewise.
3965         * tree-ssa-dse.c (compute_trims): Likewise.
3966         (delete_dead_call): Likewise.
3967         (delete_dead_assignment): Likewise.
3968         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
3969         (forward_propagate_into_cond): Likewise.
3970         (pass_forwprop::execute): Likewise.
3971         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3972         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
3973         Likewise.
3974         (move_computations_worker): Likewise.
3975         (execute_sm): Likewise.
3976         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
3977         (remove_exits_and_undefined_stmts): Likewise.
3978         (remove_redundant_iv_tests): Likewise.
3979         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
3980         (adjust_iv_update_pos): Likewise.
3981         * tree-ssa-math-opts.c (bswap_replace): Likewise.
3982         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
3983         (value_replacement): Likewise.
3984         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3985         * tree-ssa-pre.c (print_pre_expr): Likewise.
3986         (get_representative_for): Likewise.
3987         (create_expression_by_pieces): Likewise.
3988         (insert_into_preds_of_block): Likewise.
3989         (eliminate_insert): Likewise.
3990         (eliminate_dom_walker::before_dom_children): Likewise.
3991         (eliminate): Likewise.
3992         (remove_dead_inserted_code): Likewise.
3993         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3994         * tree-ssa-reassoc.c (get_rank): Likewise.
3995         (eliminate_duplicate_pair): Likewise.
3996         (eliminate_plus_minus_pair): Likewise.
3997         (eliminate_not_pairs): Likewise.
3998         (undistribute_ops_list): Likewise.
3999         (eliminate_redundant_comparison): Likewise.
4000         (update_range_test): Likewise.
4001         (optimize_range_tests_var_bound): Likewise.
4002         (optimize_vec_cond_expr): Likewise.
4003         (rewrite_expr_tree): Likewise.
4004         (rewrite_expr_tree_parallel): Likewise.
4005         (linearize_expr): Likewise.
4006         (break_up_subtract): Likewise.
4007         (linearize_expr_tree): Likewise.
4008         (attempt_builtin_powi): Likewise.
4009         (attempt_builtin_copysign): Likewise.
4010         (transform_stmt_to_copy): Likewise.
4011         (transform_stmt_to_multiply): Likewise.
4012         (dump_ops_vector): Likewise.
4013         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
4014         (print_scc): Likewise.
4015         (set_ssa_val_to): Likewise.
4016         (visit_reference_op_store): Likewise.
4017         (visit_use): Likewise.
4018         (sccvn_dom_walker::before_dom_children): Likewise.
4019         (run_scc_vn): Likewise.
4020         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
4021         Likewise.
4022         (expr_hash_elt::print): Likewise.
4023         (const_and_copies::pop_to_marker): Likewise.
4024         (const_and_copies::record_const_or_copy_raw): Likewise.
4025         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
4026         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
4027         (dump_predicates): Likewise.
4028         (find_uninit_use): Likewise.
4029         (warn_uninitialized_phi): Likewise.
4030         (pass_late_warn_uninitialized::execute): Likewise.
4031         * tree-ssa.c (verify_vssa): Likewise.
4032         (verify_ssa): Likewise.
4033         (maybe_optimize_var): Likewise.
4034         * tree-vrp.c (dump_value_range): Likewise.
4035         (dump_all_value_ranges): Likewise.
4036         (dump_asserts_for): Likewise.
4037         (register_edge_assert_for_2): Likewise.
4038         (vrp_visit_cond_stmt): Likewise.
4039         (vrp_visit_switch_stmt): Likewise.
4040         (vrp_visit_stmt): Likewise.
4041         (vrp_visit_phi_node): Likewise.
4042         (simplify_cond_using_ranges_1): Likewise.
4043         (fold_predicate_in): Likewise.
4044         (evrp_dom_walker::before_dom_children): Likewise.
4045         (evrp_dom_walker::push_value_range): Likewise.
4046         (evrp_dom_walker::pop_value_range): Likewise.
4047         (execute_early_vrp): Likewise.
4049 2017-05-16  Richard Biener  <rguenther@suse.de>
4051         * dwarf2out.c (loc_list_from_tree_1): Do not create
4052         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
4054 2017-05-16  Richard Biener  <rguenther@suse.de>
4056         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
4057         just generated.
4058         (note_variable_value_in_expr): If we resolved the decl ref
4059         do not push to the stack.
4061 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4063         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
4064         operations in fast-math mode.
4065         (vaddq_f16): Likewise.
4066         (vmul_f16): Likewise.
4067         (vmulq_f16): Likewise.
4068         (vsub_f16): Likewise.
4069         (vsubq_f16): Likewise.
4070         * config/arm/neon.md (add<mode>3): New.
4071         (sub<mode>3): New.
4072         (fma:<VH:mode>3): New.  Also remove outdated comment.
4073         (mul<mode>3): New.
4075 2017-05-16  Martin Liska  <mliska@suse.cz>
4077         PR ipa/79849.
4078         PR ipa/79850.
4079         * ipa-devirt.c (warn_types_mismatch): Fix typo.
4080         (odr_types_equivalent_p): Likewise.
4082 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
4084         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
4086 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
4088         PR target/80425
4089         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
4090         non-interunit SSE move alternatives with '?'.
4091         (zero-extendsidi peephole2): New peephole to skip intermediate
4092         general register in SSE zero-extend sequence.
4094 2017-05-15  Jeff Law  <law@redhat.com>
4096         * reorg.c (relax_delay_slots): Create a new variable to hold
4097         the temporary target rather than clobbering TARGET_LABEL.
4099         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
4100         missing argument to extract_bit_field call.
4101         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4103 2017-05-15  Martin Liska  <mliska@suse.cz>
4105         PR driver/31468
4106         * gcc.c (process_command): Do not allow empty argument of -o option.
4108 2017-05-15  Renlin Li  <renlin.li@arm.com>
4110         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
4111         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
4112         * config/aarch64/constraints.md (Usf): Add long call check.
4113         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
4114         (call_value): Likewise.
4115         (sibcall): Likewise.
4116         (sibcall_value): Likewise.
4117         (call_insn): New.
4118         (call_value_insn): New.
4119         (sibcall_insn): Update rtx pattern.
4120         (sibcall_value_insn): Likewise.
4121         (call_internal): Remove.
4122         (call_value_internal): Likewise.
4123         (sibcall_internal): Likewise.
4124         (sibcall_value_internal): Likewise.
4125         (call_reg): Likewise.
4126         (call_symbol): Likewise.
4127         (call_value_reg): Likewise.
4128         (call_value_symbol): Likewise.
4130 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
4132         PR target/80600
4133         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
4135 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
4137         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
4138         compatible with CCGOCmode and with CCZmode.
4140 2017-05-14  Martin Sebor  <msebor@redhat.com>
4142         PR middle-end/77671
4143         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
4144         (gimple_fold_builtin_snprintf): Same.
4145         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
4146         (gimple_fold_builtin_snprintf): Same.
4147         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
4148         of character types.
4149         (is_call_safe): New function.
4150         (try_substitute_return_value): Call it.
4151         (try_simplify_call): New function.
4152         (pass_sprintf_length::handle_gimple_call): Call it.
4154 2017-05-14  Martin Sebor  <msebor@redhat.com>
4156         PR middle-end/80669
4157         * builtins.c (expand_builtin_stpncpy): Simplify.
4159 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
4161         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
4162         * config/i386/i386.h
4163         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
4164         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
4165         (struct machine_function): Add new members call_ms2sysv,
4166         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
4167         (struct machine_frame_state): New fields sp_realigned and
4168         sp_realigned_offset.
4169         * config/i386/i386.c
4170         (enum xlogue_stub): New enum.
4171         (enum xlogue_stub_sets): New enum.
4172         (class xlogue_layout): New class.
4173         (struct ix86_frame): New fields stack_realign_allocate_offset,
4174         stack_realign_offset and outlined_save_offset.  Modify comments to
4175         detail stack layout when using out-of-line stubs.
4176         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
4177         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
4178         -mcall-ms2sysv-xlogues.
4179         (stub_managed_regs): New static variable.
4180         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
4181         registers managed by out-of-line stub.
4182         (disable_call_ms2sysv_xlogues): New function.
4183         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
4184         m->call_ms2sysv when appropriate and compute frame layout for
4185         out-of-line stubs.
4186         (sp_valid_at, fp_valid_at): New inline functions.
4187         (choose_basereg): New function.
4188         (choose_baseaddr): Add align parameter, use choose_basereg and modify
4189         all callers.
4190         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
4191         Use align parameter of choose_baseaddr to generated aligned SSE movs
4192         when possible.
4193         (pro_epilogue_adjust_stack): Modify to track
4194         machine_frame_state::sp_realigned.
4195         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
4196         (ix86_nsaved_sseregs): Likewise.
4197         (ix86_emit_save_regs): Likewise.
4198         (ix86_emit_save_regs_using_mov): Likewise.
4199         (ix86_emit_save_sse_regs_using_mov): Likewise.
4200         (get_scratch_register_on_entry): Likewise.
4201         (gen_frame_set): New function.
4202         (gen_frame_load): Likewise.
4203         (gen_frame_store): Likewise.
4204         (emit_outlined_ms2sysv_save): Likewise.
4205         (emit_outlined_ms2sysv_restore): Likewise.
4206         (ix86_expand_prologue): Modify stack re-alignment code and call
4207         emit_outlined_ms2sysv_save when appropriate.
4208         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
4209         parameter rtx_insn *insn, which allows the function to be used to only
4210         generate the notes.
4211         (ix86_expand_epilogue): Modify validity checks of frame and stack
4212         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
4213         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
4214         * config/i386/predicates.md
4215         (save_multiple): New predicate.
4216         (restore_multiple): Likewise.
4217         * config/i386/sse.md
4218         (save_multiple<mode>): New pattern.
4219         (save_multiple_realign<mode>): Likewise.
4220         (restore_multiple<mode>): Likewise.
4221         (restore_multiple_and_return<mode>): Likewise.
4222         (restore_multiple_leave_return<mode>): Likewise.
4223         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
4225 2017-05-14  Julia Koval  <julia.koval@intel.com>
4227         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
4228         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
4229         (__builtin_ia32_xsetbv): New builtins.
4230         * config/i386/i386.c (ix86_expand_special_args_builtin):
4231         Process new types.
4232         (ix86_expand_builtin): Special expand for new intrinsics.
4233         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
4234         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
4235         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
4237 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4239         * cfganal.c (inverted_post_order_compute): Change argument type
4240         to vec *.
4241         * cfganal.h (inverted_post_order_compute): Adjust prototype.
4242         * df-core.c (rest_of_handle_df_initialize): Adjust.
4243         (rest_of_handle_df_finish): Likewise.
4244         (df_analyze_1): Likewise.
4245         (df_analyze): Likewise.
4246         (loop_inverted_post_order_compute): Change argument to be a vec *.
4247         (df_analyze_loop): Adjust.
4248         (df_get_n_blocks): Likewise.
4249         (df_get_postorder): Likewise.
4250         * df.h (struct df_d): Change field to be a vec.
4251         * lcm.c (compute_laterin): Adjust.
4252         (compute_available): Likewise.
4253         * lra-lives.c (lra_create_live_ranges_1): Likewise.
4254         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
4255         * tree-ssa-pre.c (compute_antic): Likewise.
4257 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4259         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
4260         (depth_first_search::depth_first_search): Change structure init
4261         function to this constructor.
4262         (depth_first_search::add_bb): Rename function to this member.
4263         (depth_first_search::execute): Likewise.
4264         (flow_dfs_compute_reverse_finish): Adjust.
4266 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4268         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
4269         (longest_simple_path): Likewise.
4270         * shrink-wrap.c (spread_components): Likewise.
4271         (disqualify_problematic_components): Likewise.
4272         (emit_common_heads_for_components): Likewise.
4273         (emit_common_tails_for_components): Likewise.
4274         (insert_prologue_epilogue_for_components): Likewise.
4276 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4278         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
4279         auto_sbitmap.
4281 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4283         * df-core.c (df_set_blocks): Start using auto_bitmap.
4284         (df_compact_blocks): Likewise.
4285         * df-problems.c (df_rd_confluence_n): Likewise.
4286         * df-scan.c (df_insn_rescan_all): Likewise.
4287         (df_process_deferred_rescans): Likewise.
4288         (df_update_entry_block_defs): Likewise.
4289         (df_update_exit_block_uses): Likewise.
4290         (df_entry_block_bitmap_verify): Likewise.
4291         (df_exit_block_bitmap_verify): Likewise.
4292         (df_scan_verify): Likewise.
4293         * lra-constraints.c (lra_constraints): Likewise.
4294         (undo_optional_reloads): Likewise.
4295         (lra_undo_inheritance): Likewise.
4296         * lra-remat.c (calculate_gen_cands): Likewise.
4297         (do_remat): Likewise.
4298         * lra-spills.c (assign_spill_hard_regs): Likewise.
4299         (spill_pseudos): Likewise.
4300         * tree-ssa-pre.c (bitmap_set_and): Likewise.
4301         (bitmap_set_subtract_values): Likewise.
4303 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4305         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
4306         management with auto_bitmap.
4307         (fix_inter_tick): Likewise.
4308         (fix_recovery_deps): Likewise.
4309         * ira.c (add_store_equivs): Likewise.
4310         (find_moveable_pseudos): Likewise.
4311         (split_live_ranges_for_shrink_wrap): Likewise.
4312         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
4313         (rtx_reuse_manager::seen_def_p): Likewise.
4314         (rtx_reuse_manager::set_seen_def): Likewise.
4315         * print-rtl.h (class rtx_reuse_manager): Likewise.
4317 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4319         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
4320         lifetime.
4321         (migrate_btr_def): Likewise.
4322         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
4323         * df-core.c (loop_post_order_compute): Likewise.
4324         (loop_inverted_post_order_compute): Likewise.
4325         * hsa-common.h: Likewise.
4326         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
4327         * init-regs.c (initialize_uninitialized_regs): Likewise.
4328         * ipa-inline.c (resolve_noninline_speculation): Likewise.
4329         (inline_small_functions): Likewise.
4330         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
4331         * ira.c (combine_and_move_insns): Likewise.
4332         (build_insn_chain): Likewise.
4333         * loop-invariant.c (find_invariants): Likewise.
4334         * lower-subreg.c (propagate_pseudo_copies): Likewise.
4335         * predict.c (tree_predict_by_opcode): Likewise.
4336         (predict_paths_leading_to): Likewise.
4337         (predict_paths_leading_to_edge): Likewise.
4338         (estimate_loops_at_level): Likewise.
4339         (estimate_loops): Likewise.
4340         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4341         (spread_components): Likewise.
4342         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
4343         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
4344         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
4345         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
4346         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
4347         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
4348         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4349         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
4350         (mark_threaded_blocks): Likewise.
4351         (thread_through_all_blocks): Likewise.
4352         * tree-ssa.c (verify_ssa): Likewise.
4353         (execute_update_addresses_taken): Likewise.
4354         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
4356 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4358         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
4359         auto_vec.
4360         (post_order_compute): Likewise.
4361         (inverted_post_order_compute): Likewise.
4362         (pre_and_rev_post_order_compute_fn): Likewise.
4364 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4366         * genrecog.c (int_set::int_set): Explicitly construct our
4367         auto_vec base class.
4368         * vec.h (auto_vec::auto_vec): New constructor.
4370 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4372         * bitmap.h (class auto_bitmap): New constructor taking
4373         bitmap_obstack * argument.
4375 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4377         * bitmap.h (class auto_bitmap): Change type of m_bits to
4378         bitmap_head, and adjust ctor / dtor and member operators.
4380 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
4382         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
4383         when returned register mode doesn't match original mode.
4385 2017-05-12  Jeff Law  <law@redhat.com>
4386             Jakub Jelinek  <jakub@redhat.com>
4388         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
4389         we look for cc setter after the compare-elim changes.
4390         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
4391         within the vector to match what compare-elim now expects.
4392         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
4393         (xorsi3_flags, one_cmplsi2_flags): Likewise.
4395         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
4396         after the compare-elim changes.
4397         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
4398         the vector to match what compare-elim now expects.
4399         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
4400         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
4401         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
4402         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
4403         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
4405         * config/visium/visium.c (single_set_and_flags): Fix where
4406         we look for cc setter after the compare-elim changes.
4407         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
4408         with the vector to match what compare-elim now expects.
4409         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
4410         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
4411         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
4412         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
4413         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
4414         (neg<mode>2_insn_set_overflow): Likewise.
4416 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
4418         PR middle-end/79794
4419         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
4420         maybe_expand_insn call, set ops[0].target.  If still set after call,
4421         set alt_rtl.  Add extra arg to recursive calls.
4422         (extract_bit_field): Add alt_rtl argument.  Pass to
4423         extract_bit_field.
4424         * expmed.h (extract_bit_field): Fix prototype.
4425         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
4426         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
4427         to extract_bit_field_calls.
4428         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
4429         Pass alt_rtl to extract_bit_field calls.
4430         * calls.c (store_unaligned_arguments_into_psuedos)
4431         load_register_parameters): Pass extra NULL to extract_bit_field calls.
4432         * optabs.c (maybe_legitimize_operand): Clear op->target when call
4433         gen_reg_rtx.
4434         * optabs.h (struct expand_operand): Add target bitfield.
4436 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
4438         * compare-elim.c (try_eliminate_compare): Canonicalize
4439         operation with embedded compare to
4440         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
4441          (set (reg) (operation)].
4443         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
4445 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
4447         PR target/80723
4448         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
4449         cost of adding a carry flag for ADC instruction.
4450         [case MINUS]: Ignore the cost of subtracting a carry flag
4451         for SBB instruction.
4453 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
4455         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
4456         and x86intrin.h
4457         * config/rs6000/bmiintrin.h: New file.
4458         * config/rs6000/bmi2intrin.h: New file.
4459         * config/rs6000/x86intrin.h: New file.
4461 2017-05-12  Jeff Law  <law@redhat.com>
4463         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
4464         markers.
4466 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
4468         PR middle-end/80707
4469         * tree-cfg.c: Remove cfg edges of unreachable case statements.
4471 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4473         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
4474         early expansion of vector divide builtins.
4475         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
4476         builtins identified as having unsigned arguments.
4478 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4480         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
4481         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
4482         expansion of vector logical operations (and, andc, or, xor,
4483         nor, orc, nand).
4485 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4487         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
4488         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
4490 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4492         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
4493         early GIMPLE expansion of vector multiplies.
4495 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4497         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
4498         TARGET_HAVE_MOVT conditional.
4499         (movt splitter): Likewise.
4501 2017-05-12  Richard Biener  <rguenther@suse.de>
4503         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
4504         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4505         Fold all stmts not inplace.
4507 2017-05-12  Richard Biener  <rguenther@suse.de>
4509         PR tree-optimization/80713
4510         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
4511         inserted_exprs bit for not removed stmts.
4513 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4515         PR middle-end/69921
4516         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
4517         parallelized" attribute for parallelized OpenACC kernels.
4518         * omp-offload.c (execute_oacc_device_lower): Use it.
4520         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
4521         Set "oacc kernels" attribute.
4522         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
4523         parameter.  Adjust all users.
4524         (oacc_fn_attrib_kernels_p): Remove function.
4525         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
4526         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
4527         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4528         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
4529         assert "oacc kernels" attribute is set.
4531 2017-05-11  Carl Love  <cel@us.ibm.com>
4533         * config/rs6000/rs6000-c: Add support for built-in functions
4534         vector unsigned char vec_popcnt (vector signed char)
4535         vector unsigned char vec_popcnt (vector unsigned char)
4536         vector unsigned short vec_popcnt (vector signed short)
4537         vector unsigned short vec_popcnt (vector unsigned short)
4538         vector unsigned int vec_popcnt (vector signed int)
4539         vector unsigned int vec_popcnt (vector unsigned int)
4540         vector unsigned long long vec_popcnt (vector signed long long)
4541         vector unsigned long long vec_popcnt (vector unsigned long long)
4542         vector signed long long vec_slo (vector signed long long,
4543                                          vector signed char)
4544         vector signed long long vec_slo (vector signed long long,
4545                                          vector unsigned char)
4546         vector unsigned long long vec_slo (vector unsigned long long,
4547                                            vector signed char)
4548         vector unsigned long long vec_slo (vector unsigned long long,
4549                                            vector unsigned char)
4550         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
4551         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
4552         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
4553         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
4554         * doc/extend.texi: Update the built-in documentation file for the
4555         new built-in functions.
4557 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4559         * attribs.h (sorted_attr_string): Move machine independent
4560         functions for target clone support from the i386 port to common
4561         code.  Rename ix86_function_versions to common_function_versions.
4562         Rename make_name to make_unique_name.
4563         (common_function_versions): Likewise.
4564         (make_unique_name): Likewise.
4565         (make_dispatcher_decl): Likewise.
4566         (is_function_default_version): Likewise.
4567         * attribs.c (attr_strcmp): Likewise.
4568         (sorted_attr_string): Likewise.
4569         (common_function_versions): Likewise.
4570         (make_unique_name): Likewise.
4571         (make_dispatcher_decl): Likewise.
4572         (is_function_default_version): Likewise.
4573         * config/i386/i386.c (attr_strcmp): Likewise.
4574         (sorted_attr_string): Likewise.
4575         (ix86_function_versions): Likewise.
4576         (make_name): Likewise.
4577         (make_dispatcher_decl): Likewise.
4578         (is_function_default_version): Likewise.
4579         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
4581 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4583         PR target/80695
4584         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4585         Account for direct move costs for vec_construct of integer
4586         vectors.
4588 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
4590         PR target/80706
4591         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
4592         (UNSPEC_STX_ATOMIC): Ditto.
4593         (loaddi_via_sse): New insn.
4594         (storedi_via_sse): Ditto.
4595         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
4596         Update corresponding peephole2 patterns.
4597         (atomic_storedi_fpu): Ditto.
4599 2017-05-11  Julia Koval  <julia.koval@intel.com>
4601         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
4602         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
4603         New intrinsics.
4604         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
4605         (__builtin_ia32_rsqrt14ss_mask): New builtins.
4606         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
4608 2017-05-11  Nathan Sidwell  <nathan@acm.org>
4610         * graphite-poly.c: Include dumpfile.h.
4612         * dumpfle.h (dump_function): Declare here ...
4613         * tree-dump.h (dump_function): ... not here.
4614         * dumpfile.c: #include tree-cfg.h.
4615         (dump_function): Move here from ...
4616         * tree-dump.c (dump_function): ... here.
4617         * gimplify.c: #include splay-tree.h, not tree-dump.h.
4618         * graphite-poly.c: Don't include tree-dump.h.
4619         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
4620         * print-tree.c: Likewise.
4621         * stor-layout.c: Likewise.
4622         * tree-nested.c: Likewise.
4624         * dumpfile.c (dump_start): Use TDF_FLAGS.
4625         (dump_enable_all): Fix TDF_KIND check thinko.
4627 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4629         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4630         array entries to represent two legal parameterizations of the
4631         overloaded __builtin_cmpb function, as represented by the
4632         P6_OV_BUILTIN_CMPB constant.
4633         (altivec_resolve_overloaded_builtin): Add special case handling
4634         for the __builtin_cmpb function, as represented by the
4635         P6_OV_BUILTIN_CMPB constant.
4636         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
4637         (BU_P6_64BIT_2): New macro.
4638         (BU_P6_OVERLOAD_2): New macro
4639         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
4640         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
4641         (CMPB): Add overload support to represent both 32-bit and 64-bit
4642         compare-bytes function.
4643         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
4644         support for TARGET_CMPB.
4645         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
4646         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4647         documentation of the __builtin_cmpb overloaded built-in function.
4649 2017-05-11  Richard Biener  <rguenther@suse.de>
4651         PR tree-optimization/80705
4652         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
4653         bases are not vectorizable.
4655 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4657         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
4658         when counting register pressure.
4660 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4662         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
4663         (iv_ca_more_deps): Renamed to ...
4664         (iv_ca_compare_deps): ... this.
4665         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
4667 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4669         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
4670         to ...
4671         (determine_group_iv_costs): ... here.
4672         (find_inv_vars_cb): Record inv var if it's not recorded before.
4674 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4676         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
4677         (get_shiftadd_cost): Ditto.
4679 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4681         * tree-ssa-address.c: Include header file.
4682         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
4683         address.
4684         (add_to_parts): Refactor.
4685         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
4686         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
4687         in new order.
4689 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4691         PR tree-optimization/53090
4692         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
4693         COMP_IV_EXPR_2.
4694         (extract_cond_operands): Detect condition with IV on both sides
4695         and return COMP_IV_EXPR_2.
4696         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
4697         (rewrite_use_compare): Simplify by removing call to function
4698         extract_cond_operands.
4700 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4702         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
4703         (extract_cond_operands): Detect condition comparing against non-
4704         invariant bound and return appropriate enum value.
4705         (find_interesting_uses_cond): Update use of extract_cond_operands.
4706         Handle its return value accordingly.
4707         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
4709 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4711         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
4712         nonlinear iv_use computation in loop invariant sensitive way.
4714 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4716         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
4717         (find_iv_candidates): Call relate_compare_use_with_all_cands.
4719 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4721         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
4722         (dump_cand): Support iv_cand.inv_exprs.
4723         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
4724         for candidates.
4725         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
4726         iv_cand.inv_exprs.
4728 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4730         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
4731         from ...
4732         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
4733         as local function.  Include necessary header files.
4734         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
4736 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4738         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
4740 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4742         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
4743         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
4744         RSHIFT_EXPR and BIT_NOT_EXPR.
4746 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4748         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
4749         (adjust_setup_cost): New parameter supporting round up adjustment.
4750         (struct address_cost_data): Delete.
4751         (force_expr_to_var_cost): Don't bound cost with spill_cost.
4752         (split_address_cost, ptr_difference_cost): Delete.
4753         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
4754         (struct ainc_cost_data): New struct.
4755         (get_address_cost_ainc): New function.
4756         (get_address_cost, get_computation_cost): Reimplement.
4757         (determine_group_iv_cost_address): Record inv_expr for all uses of
4758         a group.
4759         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
4760         (iv_ca_has_deps): Reimplemented to ...
4761         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
4762         than OLD_CP.
4763         (iv_ca_extend): Call iv_ca_more_deps.
4765 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4767         * tree-ssa-address.c (struct mem_address): Move to header file.
4768         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
4769         * tree-ssa-address.h (struct mem_address): Move from C file.
4770         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
4772 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4774         * tree-affine.h (aff_combination_type): New interface.
4775         (aff_combination_zero_p): Remove static.
4776         (aff_combination_const_p): New interface.
4777         (aff_combination_singleton_var_p): New interfaces.
4779 2017-05-11  Richard Biener  <rguenther@suse.de>
4781         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4782         Skip unreachable blocks and destinations.
4783         (eliminate): Move stmt removal and fixup ...
4784         (fini_eliminate): ... here.  Skip inserted exprs.
4785         (pass_pre::execute): Move fini_pre after fini_eliminate.
4786         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
4787         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
4788         PRE to get rid of dead code that has invalid SSA form and
4789         split critical edges again.
4791 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4793         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
4795 2017-05-11  Richard Biener  <rguenther@suse.de>
4797         * passes.c (execute_function_todo): Verify loops if they are
4798         said to be up-to-date.
4799         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
4800         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
4802 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
4804         PR target/80090
4805         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
4806         handle calling assemble_external ourself.
4808         PR target/79027
4809         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
4810         modes with zero size.  Enhance comment.
4812 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4814         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
4815         built-ins for vec_xl and vec_xst with short and char pointer
4816         arguments.
4818 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
4820         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
4821         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
4822         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
4823         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
4824         (_mm_maskz_min_round_ss): New intrinsics.
4825         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
4826         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
4827         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
4828         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
4829         (__builtin_ia32_minss_mask_round): New builtins.
4830         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4831         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4832         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
4833         Rename to ...
4834         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
4835         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
4836         Change to ...
4837         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
4838         ... this.
4840 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
4842         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
4843         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
4844         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
4845         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
4846         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
4847         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
4848         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
4849         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4850         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
4851         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
4852         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
4853         (__builtin_ia32_mulss_mask_round): New builtins.
4854         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
4855         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
4856         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
4857         Rename to ...
4858         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
4859         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
4860         Change to ...
4861         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
4862         ... this.
4864 2017-05-10  Julia Koval  <julia.koval@intel.com>
4866         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
4867         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
4868         (_mm256_setr_m128i): New intrinsics.
4870 2017-05-10  Julia Koval  <julia.koval@intel.com>
4872         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
4873         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
4874         (_mm_maskz_rcp14_ss): New intrinsics.
4875         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
4876         (__builtin_ia32_rcp14ss_mask): New builtins.
4877         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
4879 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
4881         PR tree-optimization/51513
4882         * tree-cfg.c (gimple_seq_unreachable_p): New function.
4883         (assert_unreachable_fallthru_edge_p): Use it.
4884         (group_case_labels_stmt): Likewise.
4885         * tree-cfg.h: Prototype it.
4886         * stmt.c: Include cfghooks.h and tree-cfg.h.
4887         (emit_case_dispatch_table) <gap_label>: New local variable.
4888         Use it to fill dispatch table gaps.
4889         Test for default_label before updating probabilities.
4890         (expand_case) <default_label>: Remove unneeded initialization.
4891         Test for unreachable default case statement and remove its edge.
4892         Set default_label accordingly.
4893         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
4895 2017-05-10  Carl Love  <cel@us.ibm.com>
4897         * config/rs6000/rs6000-c: Add support for built-in functions
4898         vector signed char      vec_neg (vector signed char)
4899         vector signed short int vec_neg (vector short int)
4900         vector signed int       vec_neg (vector signed int)
4901         vector signed long long vec_neg (vector signed long long)
4902         vector float            vec_neg (vector float)
4903         vector double           vec_neg (vector double)
4904         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
4905         overload.
4906         * config/rs6000/altivec.h: Add define for vec_neg
4907         * doc/extend.texi: Update the built-in documentation for the
4908         new built-in functions.
4910 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4912         PR tree-optimization/77644
4913         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
4915 2017-05-10  Nathan Sidwell  <nathan@acm.org>
4917         * dumpfile.h (TDI_lang_all): New.
4918         (TDF_KIND): New. Renumber others
4919         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
4920         than bits.
4921         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
4922         lang-all.
4923         (get_dump_file_name): Adjust suffix generation.
4924         (dump_enable_all): Use TDF_KIND.
4925         * doc/invoke.texi (-fdump-lang-all): Document.
4927         * dumpfile.h: Tabify.
4929 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
4931         PR target/80671
4932         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
4933         Move member access before delete.
4935 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
4937         * tree-inline.c (expand_call_inline): Split block at stmt
4938         before the call.
4940 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4942         PR target/68163
4943         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
4944         are now unused after splitting mov{sf,sd}_hardfloat.
4945         (f32_lr2): Likewise.
4946         (f32_lm): Likewise.
4947         (f32_lm2): Likewise.
4948         (f32_li): Likewise.
4949         (f32_li2): Likewise.
4950         (f32_lv): Likewise.
4951         (f32_sr): Likewise.
4952         (f32_sr2): Likewise.
4953         (f32_sm): Likewise.
4954         (f32_sm2): Likewise.
4955         (f32_si): Likewise.
4956         (f32_si2): Likewise.
4957         (f32_sv): Likewise.
4958         (f32_dm): Likewise.
4959         (f32_vsx): Likewise.
4960         (f32_av): Likewise.
4961         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
4962         For movsf, order stores so the VSX stores occur before the GPR
4963         store which encourages the register allocator to use a traditional
4964         FPR instead of a GPR.  For movsd, order the stores so that the GPR
4965         store comes before the VSX stores to allow the power6 to work.
4966         This is due to the power6 not having a 32-bit integer store
4967         instruction from a FPR.
4968         (movsf_hardfloat): Likewise.
4969         (movsd_hardfloat): Likewise.
4971 2017-05-09  Martin Sebor  <msebor@redhat.com>
4973         PR translation/80280
4974         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
4975         added in r247778.
4977         PR translation/80280
4978         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
4979         data member added in r247778.
4980         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
4982 2017-05-09  Nathan Sidwell  <nathan@acm.org>
4984         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
4986         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
4987         typedefs.
4989 2017-05-09  Marek Polacek  <polacek@redhat.com>
4991         * doc/invoke.texi: Fix typo.
4993 2017-05-09  Richard Biener  <rguenther@suse.de>
4995         * tree-vrp.c (vrp_val_is_max): Adjust comment.
4996         (vrp_val_is_min): Likewise.
4997         (set_value_range_to_value): Likewise.
4998         (set_value_range_to_nonnegative): Likewise.
4999         (gimple_assign_nonzero_p): Likewise.
5000         (gimple_stmt_nonzero_p): Likewise.
5001         (vrp_int_const_binop): Likewise.  Remove unreachable case.
5002         (adjust_range_with_scev): Adjust comments.
5003         (compare_range_with_value): Likewise.
5004         (extract_range_from_phi_node): Likewise.
5005         (test_for_singularity): Likewise.
5007 2017-05-09  Richard Biener  <rguenther@suse.de>
5009         * tree-vrp.c (get_single_symbol): Add assert that we don't
5010         get overflowed constants as invariant part.
5011         (compare_values_warnv): Add comment before the TREE_NO_WARNING
5012         checks.  Use wi::cmp instead of recursing for integer constants.
5013         (compare_values): Just ignore whether we assumed undefined
5014         overflow instead of failing the compare.
5015         (extract_range_for_var_from_comparison_expr): Add comment before the
5016         TREE_NO_WARNING sets.
5017         (test_for_singularity): Likewise.
5018         (extract_range_from_comparison): Do not disable optimization
5019         when we assumed undefined overflow.
5020         (extract_range_basic): Remove init of unused var.
5022 2017-05-09  Richard Biener  <rguenther@suse.de>
5024         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
5025         (extract_range_from_multiplicative_op_1): Adjust.
5026         (extract_range_from_binary_expr_1): Use int_const_binop.
5028 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5030         PR target/80101
5031         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
5032         rs6000_store_data_bypass_p in seven define_bypass directives and
5033         in several comments.
5034         * config/rs6000/rs6000-protos.h: Add prototype for
5035         rs6000_store_data_bypass_p function.
5036         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
5037         function implements slightly different (rs6000-specific) semantics
5038         than store_data_bypass_p, returning false rather than aborting
5039         with assertion error when arguments do not satisfy the
5040         requirements of store data bypass.
5041         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
5042         rs6000_store_data_bypass_p.
5044 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
5046         * config/xtensa/xtensa-protos.h
5047         (xtensa_initial_elimination_offset): New declaration.
5048         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
5049         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
5050         macro definition, add case for FRAME_POINTER_REGNUM when
5051         FRAME_GROWS_DOWNWARD.
5052         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
5053         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
5054         xtensa_initial_elimination_offset.
5056 2017-05-08  Nathan Sidwell  <nathan@acm.org>
5058         * doc/invoke.texi: Alphabetize -fdump options.
5060 2017-05-08  Martin Sebor  <msebor@redhat.com>
5062         PR translation/80280
5063         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
5065 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5067         * target.def (compute_frame_layout): New optional target hook.
5068         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
5069         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
5070         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
5071         target hook.
5072         * reload1.c (verify_initial_elim_offsets): Likewise.
5073         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
5074         (use_simple_return_p): Call arm_compute_frame_layout if needed.
5075         (arm_get_frame_offsets): Split up into this ...
5076         (arm_compute_frame_layout): ... and this function.
5078 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
5080         * config/aarch64/constraints.md (Usa): New constraint.
5081         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
5083 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5085         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
5086         with_multilib_list after it has been checked.
5088 2017-05-08  Richard Biener  <rguenther@suse.de>
5090         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
5091         (bitmap_set_subtract_values): Likewise.
5093 2017-05-08  Richard Biener  <rguenther@suse.de>
5095         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
5096         (gimple_assign_nonzero): ... this and remove strict_overflow_p
5097         argument.
5098         (gimple_stmt_nonzero_warnv_p): Rename to ...
5099         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
5100         argument.
5101         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
5102         (extract_range_basic): Adjust, do not disable propagation on
5103         strict overflow sensitive simplification.
5104         (vrp_visit_cond_stmt): Likewise.
5106 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
5108         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
5109         body size unconditionally.
5111 2017-05-07  Jeff Law  <law@redhat.com>
5113         Revert:
5114         2017-05-06  Jeff Law  <law@redhat.com>
5115         PR tree-optimization/78496
5116         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
5117         code.
5119         PR tree-optimization/78496
5120         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
5121         (simplify_stmt_using_ranges): Call it.
5122         (vrp_dom_walker::before_dom_children): Extract equivalences
5123         from an ASSERT_EXPR with an equality comparison against a
5124         constant.
5126 2017-05-06  Jeff Law  <law@redhat.com>
5128         PR tree-optimization/78496
5129         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
5130         code.
5132         PR tree-optimization/78496
5133         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
5134         (simplify_stmt_using_ranges): Call it.
5135         (vrp_dom_walker::before_dom_children): Extract equivalences
5136         from an ASSERT_EXPR with an equality comparison against a
5137         constant.
5139 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
5141         * lra-constraints.c (lra_copy_reg_equiv): New function.
5142         (split_reg): Use it to copy equivalence information from the
5143         original register to the spill register.
5145 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
5147         PR rtl-optimization/75964
5148         * simplify-rtx.c (simplify_const_relational_operation): Remove
5149         invalid handling of comparisons of integer ABS.
5151 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
5153         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
5154         initialize to zero.
5155         (init_regs): Remove declaration.
5156         (function_arg_advance_32): Initialize error_p as boolean variable.
5158 2017-05-05  Nathan Sidwell  <nathan@acm.org>
5160         * store-motion.c (remove_reachable_equiv_notes): Reformat long
5161         lines.  Use for (;;).
5163 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5165         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
5166         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
5167         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
5168         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
5169         VF=2 that require versioning.
5171 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5173         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
5174         int.
5176 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5178         * diagnostic.h (diagnostic_override_option_index): Convert from
5179         macro to inline function.
5181 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5183         * diagnostic.c (last_module_changed_p): New function.
5184         (set_last_module): New function.
5185         (diagnostic_report_current_module): Convert macro usage to
5186         the above functions.
5187         * diagnostic.h (diagnostic_context::last_module): Strengthen
5188         from const line_map * to const line_map_ordinary *.
5189         (diagnostic_last_module_changed): Delete macro.
5190         (diagnostic_set_last_module): Delete macro.
5192 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5194         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
5195         with diagnostic_report_diagnostic.
5196         (diagnostic_n_impl_richloc): Likewise.
5197         * diagnostic.h (report_diagnostic): Delete macro.
5198         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
5199         with diagnostic_report_diagnostic.
5200         * substring-locations.c (format_warning_va): Likewise.
5202 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5204         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
5205         save/restor of format_spec.  Move option-printing code to...
5206         (print_option_information): ...this new function, and
5207         reimplement by simply printing to the pretty_printer,
5208         rather than appending to the format string.
5210 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5212         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
5213         handling logic into...
5214         (update_effective_level_from_pragmas): ...this new function.
5216 2017-05-04  Andrew Waterman  <andrew@sifive.com>
5218         * config/riscv/riscv.opt (mstrict-align): New option.
5219         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
5220         (SLOW_UNALIGNED_ACCESS): Define.
5221         (riscv_slow_unaligned_access): Declare.
5222         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
5223         field.
5224         (riscv_slow_unaligned_access): New variable.
5225         (rocket_tune_info): Set slow_unaligned_access to true.
5226         (optimize_size_tune_info): Set slow_unaligned_access to false.
5227         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
5228         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
5229         (riscv_option_override): Set riscv_slow_unaligned_access.
5230         * doc/invoke.texi: Add -mstrict-align to RISC-V.
5232 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
5234         * config/riscv/riscv.md: Unify indentation.
5236 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5238         PR target/79038
5239         PR target/79202
5240         PR target/79203
5241         * config/rs6000/rs6000.md (u code attribute): Add FIX and
5242         UNSIGNED_FIX.
5243         (extendsi<mode>2): Add support for doing sign extension via
5244         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
5245         don't have ISA 3.0 instructions.
5246         (extendsi<mode>2 splitter): Likewise.
5247         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
5248         generate the normal insns since SImode can now go in vector
5249         registers.  Disallow the special UNSPECs needed for previous
5250         machines to hide SImode being used.  Add new insns
5251         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
5252         (fix_trunc<mode>si2_stfiwx): Likewise.
5253         (fix_trunc<mode>si2_internal): Likewise.
5254         (fixuns_trunc<mode>si2): Likewise.
5255         (fixuns_trunc<mode>si2_stfiwx): Likewise.
5256         (fctiw<u>z_<mode>_smallint): Likewise.
5257         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
5258         of floating point to 32-bit integer from doing a direct move to
5259         the GPR registers to do a store.
5260         (fctiwz_<mode>): Break long line.
5262 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
5264         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
5265         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
5266         (addr_list, addr_offset_valid_p): New.
5267         (split_address_groups): Check offset validity with above function.
5268         (gt-tree-ssa-loop-ivopts.h): Include header file.
5270 2017-05-05  Nathan Sidwell  <nathan@acm.org>
5272         * config.gcc (arm*-*-*): Add missing 'fi'.
5274 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
5276         * doc/invoke.texi (-fopt-info): Explicitly say order of options
5277         included in -fopt-info does not matter.
5278         * doc/optinfo.texi (-fopt-info): Fix description of default
5279         behavour. Explicitly say order of options included in -fopt-info
5280         does not matter.
5282 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5284         * config.gcc: Allow combinations of aprofile and rmprofile values for
5285         --with-multilib-list.
5286         * config/arm/t-multilib: New file.
5287         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
5288         variables.  Remove setting of ISA and floating-point ABI in
5289         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
5290         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
5291         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
5292         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
5293         CPU options.
5294         * config/arm/t-rmprofile: Likewise except for the matches changes.
5295         * doc/install.texi (--with-multilib-list): Document the combination of
5296         aprofile and rmprofile values and warn about pitfalls in doing that.
5298 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
5300         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
5301         (movdi_aarch64): Likewise.
5303 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
5305         PR tree-optimization/80632
5306         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
5307         field.
5308         (build_arrays): Initialize it for virtual phis.
5309         (fix_phi_nodes): Use it for virtual phis.
5311         PR tree-optimization/80558
5312         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
5313         [x, y] op z into [x op, y op z] for op & or | if conditions
5314         are met.
5316 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5317             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5319         PR target/71607
5320         * config/arm/arm.md (use_literal_pool): Remove.
5321         (64-bit immediate split): No longer takes cost into consideration
5322         if arm_disable_literal_pool is enabled.
5323         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
5324         used when arm_disable_literal_pool is enabled.
5325         (arm_max_const_double_inline_cost): Remove use of
5326         arm_disable_literal_pool.
5327         (push_minipool_fix): Add assert.
5328         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
5329         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
5330         (no_literal_pool_sf_immediate): New.
5332 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5334         PR tree-optimization/80613
5335         * tree-ssa-dce.c (propagate_necessity): Remove cases for
5336         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5338 2017-05-05  Richard Biener  <rguenther@suse.de>
5340         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
5342 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
5344         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
5345         of this flag from insn conditions due to removal from r247495.
5347 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
5349         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
5350         New function.
5351         (arm_early_store_addr_dep_ptr): Likewise.
5352         * config/arm/aarch-common-protos.h
5353         (arm_early_load_addr_dep_ptr): Add prototype.
5354         (arm_early_store_addr_dep_ptr): Likewise.
5355         * config/arm/cortex-a53.md: Add new bypasses.
5357 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
5359         * tree.c (next_type_uid): Change type to unsigned.
5360         (type_hash_canon): Decrement back next_type_uid if
5361         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
5362         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
5363         if possible.
5365 2017-05-04  Martin Sebor  <msebor@redhat.com>
5367         * builtins.c: Fix a trivial typo in a comment.
5369         PR middle-end/79234
5370         * builtins.c (check_sizes): Adjust to handle reading past the end.
5371         Avoid printing excessive upper bound of ranges.  Use %E to print
5372         tree nodes instead of converting them to %wu.
5373         (expand_builtin_memchr): New function.
5374         (compute_dest_size): Rename...
5375         (compute_objsize): ...to this.
5376         (expand_builtin_memcpy): Adjust.
5377         (expand_builtin_mempcpy): Adjust.
5378         (expand_builtin_strcat): Adjust.
5379         (expand_builtin_strcpy): Adjust.
5380         (check_strncat_sizes): Adjust.
5381         (expand_builtin_strncat): Adjust.
5382         (expand_builtin_strncpy): Adjust and simplify.
5383         (expand_builtin_memset): Adjust.
5384         (expand_builtin_bzero): Adjust.
5385         (expand_builtin_memcmp): Adjust.
5386         (expand_builtin): Handle memcmp.
5387         (maybe_emit_chk_warning): Check strncat just once.
5389 2017-05-04  Martin Sebor  <msebor@redhat.com>
5391         PR preprocessor/79214
5392         PR middle-end/79222
5393         PR middle-end/79223
5394         * builtins.c (check_sizes): Add inlining context and issue
5395         warnings even when -Wno-system-headers is set.
5396         (check_strncat_sizes): Same.
5397         (expand_builtin_strncat): Same.
5398         (expand_builtin_memmove): New function.
5399         (expand_builtin_stpncpy): Same.
5400         (expand_builtin): Handle memmove and stpncpy.
5402 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
5404         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
5405         which is not used any more.
5407 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5409         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
5411 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5413         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
5414         (cortexa53_tunings): Likewise.
5415         (cortexa57_tunings): Likewise.
5416         (cortexa72_tunings): Likewise.
5417         (cortexa73_tunings): Likewise.
5419 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5421         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
5422         Set loop alignment to 8.
5424 2017-05-04  Martin Sebor  <msebor@redhat.com>
5426         PR translation/80280
5427         * builtins.c (expand_builtin_object_size): Add missing quoting to
5428         %D and like directives.
5429         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
5430         (hsa_type_for_tree_type): Same.
5431         (verify_function_arguments): Same.
5432         * symtab.c (symbol_table::change_decl_assembler_name): Same.
5433         * varasm.c (get_section): Same.
5434         (mark_weak): Same.
5436 2017-05-04  Martin Sebor  <msebor@redhat.com>
5438         PR translation/80280
5439         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
5441 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5443         * config/aarch64/aarch64.c (generic_addrcost_table):
5444         Change HI/TI mode setting.
5446 2017-05-04  Martin Jambor  <mjambor@suse.cz>
5448         PR tree-optimization/80622
5449         * tree-sra.c (comes_initialized_p): New function.
5450         (build_accesses_from_assign): Only set write lazily when
5451         comes_initialized_p is false.
5452         (analyze_access_subtree): Use comes_initialized_p.
5453         (propagate_subaccesses_across_link): Assert !comes_initialized_p
5454         instead of testing for PARM_DECL.
5456 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5458         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
5459         constraint on operand 0 to allow more general addressing modes.
5460         Adjust output template.
5461         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
5462         New function.
5463         * config/aarch64/aarch64-protos.h
5464         (aarch64_address_valid_for_prefetch_p): Declare prototype.
5465         * config/aarch64/constraints.md (Dp): New address constraint.
5466         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
5467         predicate.
5469 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
5471         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
5472         update use of estimate_ipcp_clone_size_and_time.
5473         (estimate_local_effects): Update use of
5474         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
5475         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
5476         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
5477         Return nonspecialized time.
5479 2017-05-04  Richard Biener  <rguenther@suse.de>
5481         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
5482         for the last VUSE which def dominates the PHI.  Directly call
5483         maybe_skip_until.
5484         (get_continuation_for_phi_1): Remove.
5486 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
5488         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
5489         to explain the use of truncating division.  Cap the number of
5490         iterations to the maximum given by nb_iterations_upper_bound,
5491         if defined.
5493 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5495         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
5496         * configure: Regenerate.
5497         * config.in: Regenerate.
5498         * config/i386/driver-mingw32.c: new file.
5499         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
5500         * config.host: Link driver-mingw32.o on MinGW host.
5501         * doc/install.texi: Document new --enable-mingw-wildcard configure
5502         option.
5504 2017-05-04  Marek Polacek  <polacek@redhat.com>
5506         PR tree-optimization/80612
5507         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
5509 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5510             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
5512         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
5513         (movt splitter): Likewise.
5514         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
5515         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
5516         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
5517         block for Thumb-1 with MOVT.
5518         (thumb2_legitimate_address_p): Move code block ...
5519         (can_avoid_literal_pool_for_label_p): ... into this new function.
5520         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
5521         literal pool.
5522         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
5523         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
5524         "M-profile targets with the MOVT instruction".
5526 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5528         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
5529         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
5530         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
5532 2017-05-04  Martin Liska  <mliska@suse.cz>
5534         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
5535         variable cond_code.
5537 2017-05-04  Richard Biener  <rguenther@suse.de>
5539         * tree.c (array_at_struct_end_p): Handle arrays at struct
5540         end with flexarrays more conservatively.  Refactor and treat
5541         arrays of arrays or aggregates more strict.  Fix
5542         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
5543         * tree.c (array_at_struct_end_p): Adjust prototype.
5544         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
5545         * gimple-fold.c (get_range_strlen): Likewise.
5546         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
5548 2017-05-04  Richard Biener  <rguenther@suse.de>
5550         PR tree-optimization/31130
5551         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
5552         false.
5553         (supports_overflow_infinity): Likewise.
5554         (is_negative_overflow_infinity): Likewise.
5555         (is_positive_overflow_infinity): Likewise.
5556         (is_overflow_infinity): Likewise.
5557         (stmt_overflow_infinity): Likewise.
5558         (overflow_infinity_range_p): Likewise.
5559         (usable_range_p): Remove as always returning true.
5560         (make_overflow_infinity): Remove.
5561         (negative_overflow_infinity): Likewise.
5562         (positive_overflow_infinity): Likewise.
5563         (avoid_overflow_infinity): Likewise.
5564         (set_value_range): Adjust accordingly.
5565         (set_value_range_to_nonnegative): Likewise, remove now unused
5566         overflow_infinity arg.
5567         (vrp_operand_equal_p): Adjust.
5568         (update_value_range): Likewise.
5569         (range_int_cst_singleton_p): Likewise.
5570         (operand_less_p): Likewise.
5571         (compare_values_warnv): Likewise.
5572         (extract_range_for_var_from_comparison_expr): Likewise.
5573         (vrp_int_const_binop): Likewise.
5574         (zero_nonzero_bits_from_vr): Likewise.
5575         (extract_range_from_multiplicative_op_1): Likewise.
5576         (extract_range_from_binary_expr_1): Likewise.
5577         (extract_range_from_unary_expr): Likewise.
5578         (extract_range_from_comparison): Likewise.
5579         (extract_range_basic): Likewise.
5580         (adjust_range_with_scev): Likewise.
5581         (compare_ranges): Likewise.
5582         (compare_range_with_value): Likewise.
5583         (dump_value_range): Likewise.
5584         (test_for_singularity): Likewise, remove strict_overflow_p parameter
5585         never used.
5586         (simplify_cond_using_ranges): Adjust.
5588 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
5590         * brig-builtins.def: Added a builtin for class_f64.
5591         * builtin-types.def: Added a builtin type needed by class_f64.
5593 2017-05-03  Jason Merrill  <jason@redhat.com>
5595         * timevar.def: Add TV_CONSTEXPR.
5597 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
5599         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
5601 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5603         * ipa-prop.c (ipa_update_after_lto_read): Removed.
5604         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
5605         * ipa-cp.c (ipcp_propagate_stage): Do not call
5606         ipa_update_after_lto_read.
5607         * ipa-inline.c (ipa_inline): Likewise.
5609 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5611         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
5612         tag.  Added a default constructor and a destructor.
5613         (ipa_edge_args_sum_t): New class;
5614         (ipa_edge_args_sum): Declare.
5615         (ipa_edge_args_vector): Remove declaration.
5616         (IPA_EDGE_REF): Use ipa_edge_args_sum.
5617         (ipa_free_edge_args_substructures): Remove declaration.
5618         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
5619         (ipa_edge_args_info_available_for_edge_p): Likewise.
5620         * ipa-prop.c (ipa_edge_args_vector): Removed.
5621         (edge_removal_hook_holder): Likewise.
5622         (edge_duplication_hook_holder): Likewise.
5623         (ipa_edge_args_sum): New variable.
5624         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
5625         ipa_edge_args_vector.
5626         (ipa_free_edge_args_substructures): Likewise.
5627         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
5628         ipa_edge_args_vector.
5629         (ipa_edge_removal_hook): Turned into method
5630         ipa_edge_args_sum_t::remove.
5631         (ipa_edge_duplication_hook): Turned into method
5632         ipa_edge_args_sum_t::duplicate.
5633         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
5634         registering edge hooks.
5635         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
5636         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
5637         ipa_edge_args_sum instead of ipa_edge_args_vector.
5638         * ipa-profile.c (ipa_profile): Likewise.
5640 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5642         * symbol-summary.h (function_summary): New method exists.
5643         (function_summary::symtab_removal): Deallocate through release.
5644         (call_summary): New class.
5645         (gt_ggc_mx): New overload.
5646         (gt_pch_nx): Likewise.
5647         (gt_pch_nx): Likewise.
5649 2017-05-03  Jeff Law  <law@redhat.com>
5651         PR tree-optimization/78496
5652         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
5653         from simplify_cond_using_ranges.  Split off code to walk
5654         backwards through casts into ...
5655         (simplify_cond_using_ranges_2): New function.
5656         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
5657         (execute_vrp): After identifying jump threads, call
5658         simplify_cond_using_ranges_2.
5660 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
5662         PR bootstrap/80609
5663         * ipa-inline.h (inline_summary): Add ctor.
5664         (create_ggc): Do not use ggc_cleared_alloc.
5666 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
5667             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5669         * gcc.c (handle_braces): Support escaping in switch matching
5670         text.
5671         * doc/invoke.texi (Spec Files): Document it.
5672         Remove superfluous @code markup in items.
5674 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
5676         * diagnostic-show-locus.c (struct column_range): New struct.
5677         (get_affected_columns): New function.
5678         (get_printed_columns): New function.
5679         (struct correction): New struct.
5680         (correction::ensure_capacity): New function.
5681         (correction::ensure_terminated): New function.
5682         (struct line_corrections): New struct.
5683         (line_corrections::~line_corrections): New dtor.
5684         (line_corrections::add_hint): New function.
5685         (layout::print_trailing_fixits): Reimplement in terms of the new
5686         classes.
5687         (selftest::test_overlapped_fixit_printing): New function.
5688         (selftest::diagnostic_show_locus_c_tests): Call it.
5690 2017-05-03  Nathan Sidwell  <nathan@acm.org>
5692         Canonicalize canonical type hashing
5693         * tree.h (type_hash_canon_hash): Declare.
5694         * tree.c (type_hash_list, attribute_hash_list): Move into
5695         type_hash_canon_hash.
5696         (build_type_attribute_qual_variant): Break out hash code calc into
5697         type_hash_canon_hash.
5698         (type_hash_canon_hash): New.  Generic type hash computation.
5699         (build_range_type_1, build_array_type_1, build_function_type,
5700         build_method_type_directly, build_offset_type, build_complex_type,
5701         make_vector_type): Call it.
5703 2017-05-03  Richard Biener  <rguenther@suse.de>
5705         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5706         When all DRs have unknown misaligned do not always peel
5707         when there is a store but apply the same costing model as if
5708         there were only loads.
5710 2017-05-03  Richard Biener  <rguenther@suse.de>
5712         Revert
5713         PR tree-optimization/80492
5714         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
5715         compare_base_decls returning dont-know properly.
5717 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5719         * config/arm/iterators.md (CCSI): New mode iterator.
5720         (arch): New mode attribute.
5721         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
5722         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
5723         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
5724         code iterator for success result mode.
5725         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
5726         the corresponding new insn generators.
5728 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
5730         Revert r247509
5731         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5732         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
5734 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
5736         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
5737         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
5738         (DDR_A): Wrap DDR argument in brackets.
5739         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
5740         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
5741         (DDR_REVERSED_P): Likewise.
5743 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
5745         PR tree-optimization/79472
5746         * tree-switch-conversion.c (struct switch_conv_info): Add
5747         contiguous_range and default_case_nonstandard fields.
5748         (collect_switch_conv_info): Compute contiguous_range and
5749         default_case_nonstandard fields, don't clear final_bb if
5750         contiguous_range and only the default case doesn't have the required
5751         structure.
5752         (check_all_empty_except_final): Set default_case_nonstandard instead
5753         of failing if contiguous_range and the default case doesn't have empty
5754         block.
5755         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
5756         and only the default case doesn't have the required constants.  Skip
5757         virtual phis.
5758         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
5759         if default_case_nonstandard.
5760         (build_constructors): Build constant 1 just once.  Assert that default
5761         values aren't inserted in between cases if contiguous_range.  Skip
5762         virtual phis.
5763         (build_arrays): Skip virtual phis.
5764         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
5765         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
5766         Handle virtual phis.
5767         (gen_inbound_check): Handle default_case_nonstandard case.
5768         (process_switch): Adjust check_final_bb caller.  Call
5769         gather_default_values with the first non-default case instead of
5770         default case if default_case_nonstandard.
5772 2017-05-02  Nathan Sidwell  <nathan@acm.org>
5774         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
5775         check.  Fix formatting.
5777 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
5779         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
5780         errors when comparing specialized and unspecialized times.
5782 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
5784         * diagnostic-show-locus.c
5785         (layout::should_print_annotation_line_p): Make private.
5786         (layout::print_annotation_line): Make private.
5787         (layout::annotation_line_showed_range_p): Make private.
5788         (layout::show_ruler): Make private.
5789         (layout::print_source_line): Make private.  Pass in line and
5790         line_width, rather than calling location_get_source_line.  Drop
5791         returned value.
5792         (layout::print_leading_fixits): New method.
5793         (layout::print_any_fixits): Rename to...
5794         (layout::print_trailing_fixits): ...this, and make private.
5795         Don't print newline fixits.
5796         (diagnostic_show_locus): Move logic for printing one row into...
5797         (layout::print_line): ...this new function.  Move the
5798         location_get_source_line call and error-handling from
5799         print_source_line to here.  Call print_leading_fixits, and rename
5800         print_any_fixits to print_trailing_fixits.
5801         (selftest::test_fixit_insert_containing_newline): Update now that
5802         newlines are partially supported.
5803         (selftest::test_fixit_insert_containing_newline_2): New test.
5804         (selftest::test_fixit_replace_containing_newline): Update comments.
5805         (selftest::diagnostic_show_locus_c_tests): Call the new test.
5806         * edit-context.c (class added_line): New class.
5807         (class edited_line): Describe newline handling in comment.
5808         (edited_line::actually_edited_p): New method.
5809         (edited_line::print_content): Delete redundant decl.
5810         (edited_line::m_predecessors): New field.
5811         (edited_file::print_content): Call edited_line::print_content.
5812         (edited_file::print_diff): Update to support newlines.
5813         (edited_file::print_diff_hunk): Likewise.
5814         (edited_file::print_run_of_changed_lines): New function.
5815         (edited_file::print_diff_line): Convert to...
5816         (print_diff_line): ...this.
5817         (edited_file::get_effective_line_count): New function.
5818         (edited_line::edited_line): Initialize new field m_predecessors.
5819         (edited_line::~edited_line): Clean up m_predecessors.
5820         (edited_line::apply_fixit): Handle newlines.
5821         (edited_line::get_effective_line_count): New function.
5822         (edited_line::print_content): New function.
5823         (edited_line::print_diff_lines): New function.
5824         (selftest::test_applying_fixits_insert_containing_newline): New
5825         test.
5826         (selftest::test_applying_fixits_replace_containing_newline): New
5827         test.
5828         (selftest::insert_line): New function.
5829         (selftest::test_applying_fixits_multiple_lines): Add example of
5830         inserting a line.
5831         (selftest::edit_context_c_tests): Call the new tests.
5833 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5835         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
5836         parameter cand.  Update dump information.
5837         (get_computation_cost): Update uses.
5839 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5841         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
5842         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
5843         (get_computation_at, rewrite_use_address): Update use of
5844         get_computation_aff.
5846 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5848         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
5849         (get_computation): Delete.
5850         (get_computation_cost): Implement like get_computation_cost_at.
5851         Use get_computation_at.
5852         (get_computation_cost_at): Delete.
5853         (rewrite_use_nonlinear_expr): Use get_computation_at.
5854         (rewrite_use_compare, remove_unused_ivs): Ditto.
5856 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5858         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
5860 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5862         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
5863         (ivopts_global_cost_for_size): Rename parameter and update uses.
5864         (iv_ca_recount_cost): Update uses.
5865         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
5866         candidates seperately in n_invs and n_cands.
5867         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
5869 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5871         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
5872         (find_inv_vars_cb): New.
5873         (find_depends): Renamed to ...
5874         (find_inv_vars): ... this.
5875         (add_candidate_1, force_var_cost): Call find_inv_vars.
5876         (split_address_cost, determine_group_iv_cost_cond): Ditto.
5878 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5880         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
5881         inv_vars.  Add inv_exprs.
5882         (struct iv_cand): Rename depends_on to inv_vars.
5883         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
5884         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
5885         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
5886         (dump_cand): Dump inv_vars.
5887         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
5888         (record_invariant, find_depends, add_candidate_1): Ditto.
5889         (set_group_iv_cost, force_var_cost): Ditto.
5890         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
5891         (get_computation_cost_at, get_computation_cost): Ditto.
5892         (determine_group_iv_cost_generic): Ditto.
5893         (determine_group_iv_cost_address): Ditto.
5894         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
5895         (determine_group_iv_costs): Ditto.
5896         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
5897         (iv_ca_set_remove_invariants): Renamed to ...
5898         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
5899         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
5900         (iv_ca_set_add_invariants):  Renamed to ...
5901         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
5902         (iv_ca_set_cp): Use iv_ca_set_add_invs.
5903         (iv_ca_has_deps): Support inv_vars and inv_exprs.
5904         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
5905         (create_new_ivs): Remove useless dump.
5907 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5909         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
5910         iv_cand code.
5911         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
5912         (iv_ca_set_no_cp, create_new_iv): Ditto.
5914 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5916         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
5918 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
5920         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
5921         function tree_check2.
5923 2017-05-02  Martin Liska  <mliska@suse.cz>
5925         * doc/gcov.texi: Add missing preposition.
5926         * gcov.c (function_info::function_info): Properly fill up
5927         all member variables.
5929 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
5931         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
5933 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
5935         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
5937 2017-05-02  Martin Liska  <mliska@suse.cz>
5939         PR lto/77954.
5940         * lto-streamer-in.c (lto_read_tree_1): Remove
5941         LTO_STREAMER_DEBUG.
5942         * lto-streamer.c (struct tree_hash_entry): Likewise.
5943         (struct tree_entry_hasher): Likewise.
5944         (tree_entry_hasher::hash): Likewise.
5945         (tree_entry_hasher::equal): Likewise.
5946         (lto_streamer_init): Likewise.
5947         (lto_orig_address_map): Likewise.
5948         (lto_orig_address_get): Likewise.
5949         (lto_orig_address_remove): Likewise.
5950         * lto-streamer.h: Likewise.
5951         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
5952         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
5954 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
5956         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
5957         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
5958         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
5959         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
5960         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
5961         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
5962         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
5963         (mm_maskz_sub_ss): New intrinsics.
5964         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5965         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
5966         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
5967         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
5968         (__builtin_ia32_subss_mask_round): New builtins.
5969         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5970         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
5971         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
5972         Renamed to ...
5973         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
5974         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
5975         Changed to ...
5976         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
5977         ... this.
5979 2017-05-02  Martin Jambor  <mjambor@suse.cz>
5981         PR tree-optimization/78687
5982         * tree-sra.c (access): New field parent.
5983         (process_subtree_disqualification): New function.
5984         (disqualify_candidate): Call it.
5985         (build_accesses_from_assign): Reset write flag if creating an
5986         assighnment link.
5987         (build_access_subtree): Fill in parent field and also prpagate
5988         down grp_write flag.
5989         (create_artificial_child_access): New parameter set_grp_write, set
5990         grp_write to its value.
5991         (propagate_subaccesses_across_link): Also propagate grp_write flag
5992         values.
5993         (propagate_all_subaccesses): Push the closest parent back to work
5994         queue if add_access_to_work_queue returned true.
5996 2017-05-02  Richard Biener  <rguenther@suse.de>
5998         * common.opt (fstrict-overflow): Alias negative to fwrapv.
5999         * doc/invoke.texi (fstrict-overflow): Remove all traces of
6000         -fstrict-overflow documentation.
6001         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
6002         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
6003         flag_strict_overflow.
6004         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
6005         * lto-opts.c (lto_write_options): Do not stream it.
6006         * lto-wrapper.c (merge_and_complain): Do not handle it.
6007         * opts.c (default_options_table): Do not set -fstrict-overflow.
6008         (finish_options): Likewise do not clear it when sanitizing.
6009         * simplify-rtx.c (simplify_const_relational_operation): Do not
6010         test flag_strict_overflow.
6012 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
6014         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
6015         using enabled attribute.
6016         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
6017         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
6018         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
6019         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
6020         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
6021         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
6022         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
6023         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
6024         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
6025         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
6027 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
6029         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
6031 2017-05-02  Richard Biener  <rguenther@suse.de>
6033         PR tree-optimization/80591
6034         Revert
6035         2017-04-10  Richard Biener  <rguenther@suse.de>
6037         * tree-ssa-structalias.c (find_func_aliases): Properly handle
6038         asm inputs.
6040 2017-05-02  Richard Biener  <rguenther@suse.de>
6042         PR tree-optimization/80549
6043         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
6044         (cleanup_tree_cfg_noloop): Create forwarders to known loop
6045         headers if they do not have a preheader.
6047 2017-05-02  Martin Liska  <mliska@suse.cz>
6049         PR other/80589
6050         * common.opt: Fix typo.
6051         * doc/invoke.texi: Likewise.
6053 2017-05-01  Jan Beulich  <jbeulich@suse.com>
6055         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
6056         swapping, add (x,x,m,x,n) alternative.
6058 2017-05-01  Nathan Sidwell  <nathan@acm.org>
6060         * calls.c (combine_pending_stack_adjustment_and_call): Remove
6061         unnecessary unadjusted_alignment check.
6063 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
6065         PR c++/80038
6066         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
6067         operations here.
6068         * gimplify.c (gimplify_cilk_detach): New function.
6069         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
6070         * tree-core.h: Document EXPR_CILK_SPAWN.
6071         * tree.h (EXPR_CILK_SPAWN): Define.
6073 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
6075         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
6076         to use new fixit_hint representation, using the "replace" logic.
6077         (get_line_span_for_fixit_hint): Likewise.
6078         (layout::print_any_fixits): Likewise.
6079         (selftest::test_one_liner_many_fixits): Rename to...
6080         (selftest::test_one_liner_many_fixits_1): ...this, and update
6081         comment and expected output to reflect that the multiple fix-it
6082         hints are now consolidated into one insertion.
6083         (selftest::test_one_liner_many_fixits_2): New test.
6084         (selftest::test_diagnostic_show_locus_one_liner): Update for
6085         above.
6086         (selftest::test_fixit_consolidation): Update for fix-it API
6087         change.
6088         * diagnostic.c (print_parseable_fixits): Likewise.
6089         * edit-context.c (edited_line::m_line_events): Convert from
6090         auto_vec <line_event *> to auto_vec <line_event>.
6091         (class line_event): Convert from abstract base class to a concrete
6092         class, taking over the role of replace_event.
6093         (class insert_event): Delete.
6094         (class replace_event): Rename to class line_event.  Convert to
6095         half-open range.
6096         (edit_context::add_fixits): Reimplement.
6097         (edit_context::apply_insert): Delete.
6098         (edit_context::apply_replace): Rename to...
6099         (edit_context::apply_fixit): ...this.  Convert to half-open range.
6100         (edited_file::apply_insert): Delete.
6101         (edited_file::apply_replace): Rename to...
6102         (edited_file::apply_fixit): ...this.
6103         (edited_line::~edited_line): Drop deletion of events.
6104         (edited_line::apply_insert): Delete.
6105         (edited_line::apply_replace): Rename to...
6106         (edited_line::apply_fixit): ...this.  Convert to half-open range.
6107         Update for change to type of m_line_events.
6108         * edit-context.h (edit_context::apply_insert): Delete.
6109         (edit_context::apply_replace): Rename to...
6110         (edit_context::apply_fixit): ...this.
6112 2017-05-01  Martin Sebor  <msebor@redhat.com>
6114         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
6115         known.
6117 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
6119         PR target/68491
6120         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
6121         __get_cpuid_max returns 0.
6122         (__get_cpuid_count): Ditto.
6124 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6126         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
6127         replacement expression is another instance of one of its arguments.
6129 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
6131         PR target/79430
6132         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
6133         check for stack push/pop autoinc.
6134         * config/i386/i386.c (ix86_agi_dependent): Return false
6135         if the only reason why modified_in_p returned true is that
6136         addr is SP based and set_insn is a push or pop.
6138 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
6140         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
6141         overflow check.
6143 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
6145         PR ipa/79224
6146         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
6147         (account_size_time): Use two predicates - exec_pred and
6148         nonconst_pred_ptr.
6149         (evaluate_conditions_for_known_args): Compute both clause and
6150         nonspec_clause.
6151         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
6152         (inline_summary_t::duplicate): Update.
6153         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
6154         separately.
6155         (compute_inline_parameters): Likewise.
6156         (estimate_edge_size_and_time): Update caluclation of time.
6157         (estimate_node_size_and_time): Compute both time and nonspecialized
6158         time.
6159         (estimate_ipcp_clone_size_and_time): Update.
6160         (inline_merge_summary): Update.
6161         (do_estimate_edge_time): Update.
6162         (do_estimate_edge_size): Update.
6163         (do_estimate_edge_hints): Update.
6164         (inline_read_section, inline_write_summary): Stream both new predicates.
6165         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
6166         as argument.
6167         (compute_inlined_call_time): Cleanup.
6168         (big_speedup_p): Update.
6169         (edge_badness): Update.
6170         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
6171         (size_time_entry): Replace predicate by exec_predicate and
6172         nonconst_predicate.
6173         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
6174         (estimate_edge_time): Return also nonspec_time.
6175         (reset_edge_growth_cache): Update.
6177 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
6179         PR rtl-optimization/80491
6180         * ifcvt.c (noce_process_if_block): When looking for x setter
6181         with missing else_bb, don't check only the insn right before
6182         cond_earliest, but look for the last insn that x is modified in
6183         within the same bb.
6185         PR rtl-optimization/80491
6186         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
6188 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
6190         PR tree-optimization/80487
6191         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
6193 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6195         PR tree-optimization/79697
6196         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
6197         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
6198         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
6199         BUILT_IN_STRNDUP.
6200         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
6201         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
6203 2017-04-28  Martin Sebor  <msebor@redhat.com>
6205         PR tree-optimization/80523
6206         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
6207         (init_target_to_host_charmap, target_to_host, target_strtol10): New
6208         functions.
6209         (maybe_warn, format_directive, parse_directive): Use new functions.
6210         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
6212 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
6214         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
6216 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6218         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
6219         target_header_dir): Set correctly.
6220         * configure: Regenerated.
6221         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
6222         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
6223         instead of SYSTEM_HEADER_DIR.
6225 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
6227         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
6228         (estimate_local_effects): Likewise.
6229         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
6230         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
6231         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
6232         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
6233         do_estimate_edge_time, estimate_edge_time): Likewise.
6234         * ipa-inline-analysis.c (estimate_node_size_and_time,
6235         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
6236         (estimate_time_after_inlining): Remove.
6238 2017-04-28  Martin Liska  <mliska@suse.cz>
6240         * doc/gcov.texi: Enhance documentation of gcov.
6242 2017-04-28  Martin Liska  <mliska@suse.cz>
6244         * doc/gcov.texi: Sort options in alphabetic order.
6245         * doc/gcov-dump.texi: Likewise.
6246         * doc/gcov-tool.texi: Likewise.
6247         * gcov.c (print_usage): Likewise.
6248         * gcov-dump.c (print_usage): Likewise.
6249         * gcov-tool.c (print_merge_usage_message): Likewise.
6250         (print_rewrite_usage_message): Likewise.
6251         (print_overlap_usage_message): Likewise.
6253 2017-04-28  Martin Liska  <mliska@suse.cz>
6255         PR gcov-profile/53915
6256         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
6258 2017-04-28  Martin Liska  <mliska@suse.cz>
6260         PR gcov-profile/79891
6261         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
6262         is marked by compiler as living on a line.
6263         (get_cycles_count): Remove usage of the union.
6264         (output_intermediate_file): Likewise.
6265         (find_source): Fix GNU coding style.
6266         (accumulate_line_counts): Remove old non-all block mode.
6267         (output_lines): Remove usage of the union.
6268         * profile.c (output_location): Include all BBs, even if
6269         belonging to a same line (and file) as a previous BB.
6271 2017-04-28  Martin Liska  <mliska@suse.cz>
6273         * gcov.c (process_args): Handle new argument 'w'.
6274         (read_graph_file): Assign ID to BBs.
6275         (output_branch_count): Display BB # if verbose flag is set.
6276         (output_lines): Likewise for arcs.
6277         (print_usage): Add '--verbose' option help.
6278         * doc/gcov.texi: Document --verbose (-w) option.
6280 2017-04-28  Martin Liska  <mliska@suse.cz>
6282         * gcov.c (struct block_location_info): New struct.
6283         (process_file): Fill up the new structure.
6284         (read_graph_file): Replace usage of encoding by the newly added
6285         struct.
6286         (add_line_counts): Likewise.
6287         (accumulate_line_counts): Remove usage of the union.
6288         (function_info::function_info): New function.
6289         (function_info::~function_info): Likewise.
6290         (process_file): Call delete instead of release_function.
6291         (release_function): Release the function.
6292         (release_structures): Call delete instead of release_function.
6293         (solve_flow_graph): Replace usage of num_blocks.
6294         (find_exception_blocks): Likewise.
6295         (output_lines): Fix GNU coding style.
6297 2017-04-28  Martin Liska  <mliska@suse.cz>
6299         PR driver/56469
6300         * coverage.c (coverage_remove_note_file): New function.
6301         * coverage.h: Declare the function.
6302         * toplev.c (finalize): Clean if an error has been seen.
6304 2017-04-28  Martin Liska  <mliska@suse.cz>
6306         PR gcov-profile/80031
6307         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
6308         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
6309         * gcov.c (read_graph_file): Read just number of blocks.
6310         * profile.c (branch_prob): Do not stream 0 flags per a basic
6311         block.
6313 2017-04-28  Martin Liska  <mliska@suse.cz>
6315         * gcov-dump.c (tag_*): Add new argument to declarations.
6316         (dump_gcov_file): Likewise.
6317         (tag_blocks): Add and use new argument depth.
6318         (tag_arcs): Likewise.
6319         (tag_lines): Likewise.
6320         (tag_counters): Likewise.
6321         (tag_summary): Likewise.
6322         (dump_working_sets): Use depth to do a proper indentation.
6324 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
6326         PR bootstrap/80531
6327         * cgraph.h (symtab_node::debug_symtab): No longer inline.
6328         * symtab.c (symtab_node::debug_symtab): Move definition here.
6330 2017-04-28  Richard Biener  <rguenther@suse.de>
6332         * lto-streamer.h (LTO_major_version): Bump to 7.
6334 2017-04-28  Richard Biener  <rguenther@suse.de>
6336         * tree-vrp.c (assert_info): New struct.
6337         (add_assert_info): New helper.
6338         (register_edge_assert_for_2): Refactor to add asserts to a vector
6339         of assert_info.
6340         (register_edge_assert_for_1): Likewise.
6341         (register_edge_assert_for): Likewise.
6342         (finish_register_edge_assert_for): New helper actually registering
6343         asserts where live on edge.
6344         (find_conditional_asserts): Adjust.
6345         (find_switch_asserts): Likewise.
6346         (evrp_dom_walker::try_find_new_range): Generalize.
6347         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
6349 2017-04-27  Marek Polacek  <polacek@redhat.com>
6351         PR sanitizer/80349
6352         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
6353         arg10 and arg11 to itype.
6355 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
6357         * doc/extend.texi (Object Size Checking): Improve grammar.
6359 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
6361         PR target/80530
6362         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
6363         that the logic for permitting reciprocal estimates matches that
6364         in use_rsqrt_p.
6366 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6368         PR c++/80534
6369         * tree.c (type_cache_hasher::equal): Only compare
6370         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
6371         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
6372         non-aggregate element types.
6373         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
6374         about the flag on ARRAY_TYPEs in the comment, formatting fix.
6376 2017-04-27  Richard Biener  <rguenther@suse.de>
6378         PR middle-end/80533
6379         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
6380         stripping ARRAY_REFs from MEM_EXPR make sure we're not
6381         keeping a reference to a trailing array.
6383 2017-04-27  Richard Biener  <rguenther@suse.de>
6385         PR middle-end/80539
6386         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
6387         being in loop-closed SSA form conservatively.
6388         (chrec_fold_multiply_poly_poly): Likewise.
6390 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
6392         PR middle-end/79665
6393         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
6394         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
6396 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6398         PR target/77728
6399         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
6400         (aarch64_function_arg_alignment): Return unsigned int again, but still
6401         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
6402         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
6403         Don't emit -Wpsabi note.
6404         (aarch64_function_arg_boundary): Likewise.
6405         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
6406         caller.
6408 2017-04-26  Nathan Sidwell  <nathan@acm.org>
6410         * tree.h (crc32_unsigned_n): Declare.
6411         (crc32_unsigned, crc32_unsigned): Make inline.
6412         * tree.c (crc32_unsigned_bits): Replace with ...
6413         (crc32_unsigned_n): ... this.
6414         (crc32_unsigned, crc32_byte): Remove.
6415         (crc32_string): Remove unnecessary braces.
6417 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
6419         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
6420         * ipa-inline-analysis.c (MAX_TIME): Remove.
6421         (account_size_time): Use sreal for time.
6422         (dump_inline_summary): Update.
6423         (estimate_function_body_sizes): Update.
6424         (estimate_edge_size_and_time): Update.
6425         (estimate_calls_size_and_time): Update.
6426         (estimate_node_size_and_time): Update.
6427         (inline_merge_summary): Update.
6428         (inline_update_overall_summary): Update.
6429         (estimate_time_after_inlining): Update.
6430         (inline_read_section): Update.
6431         (inline_write_summary): Update.
6432         * ipa-inline.c (compute_uninlined_call_time): Update.
6433         (compute_inlined_call_time): Update.
6434         (recursive_inlining): Update.
6435         (inline_small_functions): Update.
6436         (dump_overall_stats): Update.
6437         * ipa-inline.h: Include sreal.h.
6438         (size_time_entry): Turn time to sreal.
6439         (inline_summary): Turn self_time nad time to sreal.
6441 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
6443         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
6444         data-streamer.h
6445         (sreal::stream_out, sreal::stream_in): New.
6446         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
6448 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
6450         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
6451         environment.
6453 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
6455         PR target/70799
6456         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6457         Handle ASHIFTRT.
6458         (dimode_scalar_chain::compute_convert_gain): Ditto.
6459         (dimode_scalar_chain::make_vector_copies): Ditto.
6460         (dimode_scalar_chain::convert_reg): Ditto.
6461         (dimode_scalar_chain::convert_insn): Ditto.
6462         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
6463         (VI248_AVX512BW_1): New mode iterator.
6464         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
6465         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
6466         mode iterator.
6468 2017-04-25  Martin Sebor  <msebor@redhat.com>
6470         PR tree-optimization/80497
6471         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
6472         constants are representable in HOST_WIDE_INT.
6473         (parse_directive): Ditto.
6475 2017-04-25  Martin Sebor  <msebor@redhat.com>
6477         PR bootstrap/80486
6478         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
6479         (new_zero_array): Adjust signature.
6480         (dom_info::dom_init): Used unsigned rather that size_t.
6481         (dom_info::dom_info): Same.
6483 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6484             Jakub Jelinek  <jakub@redhat.com>
6486         PR target/77728
6487         * config/arm/arm.c: Include gimple.h.
6488         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
6489         returns negative, increment ncrn only if it returned positive.
6490         (arm_needs_doubleword_align): Return int instead of bool,
6491         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
6492         members, but if there is any such non-FIELD_DECL
6493         > PARM_BOUNDARY aligned decl, return -1 instead of false.
6494         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
6495         returns negative, increment nregs only if it returned positive.
6496         (arm_setup_incoming_varargs): Likewise.
6497         (arm_function_arg_boundary): Emit -Wpsabi note if
6498         arm_needs_doubleword_align returns negative, return
6499         DOUBLEWORD_ALIGNMENT only if it returned positive.
6501 2017-04-25  Marek Polacek  <polacek@redhat.com>
6503         PR sanitizer/80349
6504         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
6505         first argument to type.
6507 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
6509         PR target/80482
6510         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
6511         type checks to test for compatibility instead of equality.
6513 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6514             Jakub Jelinek  <jakub@redhat.com>
6516         PR target/77728
6517         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
6518         type.
6519         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
6520         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
6521         the alignment computation, but return their maximum in warn_alignment.
6522         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
6523         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
6524         is smaller.
6525         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
6526         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
6527         caller.
6529 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6531         * config/arc/simdext.md (dmpyh): Fix typo.
6533 2017-04-25  Richard Biener  <rguenther@suse.de>
6535         PR tree-optimization/80492
6536         * alias.c (compare_base_decls): Handle registers with asm
6537         specification conservatively.
6538         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
6539         compare_base_decls returning dont-know properly.
6541 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6543         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
6544         (legitimate_offset_address_p): New function.
6545         (arc_legitimate_address_p): Use above function.
6547 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6549         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
6551 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6553         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
6554         ACCH registers whenever they are available.
6556 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6558         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
6559         double regs fix when not used.
6561 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6563         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
6564         core registers.
6565         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
6566         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
6568 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6570         * config/arc/arc.c (arc_output_addsi): Check for h-register class
6571         when emitting short ADD instructions.
6573 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6575         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
6576         constraint.
6577         (cmpsi_cc_c_insn): Likewise.
6578         (cbranchsi4_scratch): Compute proper instruction length using
6579         compact_hreg_operand.
6580         * config/arc/predicates.md (compact_hreg_operand): New predicate.
6582 2017-04-25  Richard Biener  <rguenther@suse.de>
6584         PR middle-end/80509
6585         * passes.c (pass_manager::pass_manager): Initialize
6586         m_name_to_pass_map.
6588 2017-04-25  Richard Biener  <rguenther@suse.de>
6590         PR tree-optimization/79201
6591         * tree-ssa-sink.c (statement_sink_location): Handle calls.
6593 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6595         PR target/80464
6596         * config/s390/vector.md: Split MEM->GPR vector moves for
6597         non-s_operand addresses.
6599 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6601         PR target/79895
6602         * config/s390/predicates.md (reload_const_wide_int_operand): New
6603         predicate.
6604         * config/s390/s390.md ("movti"): Remove d/P alternative.
6605         ("movti_bigconst"): New pattern definition.
6607 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6609         PR target/80080
6610         * s390-protos.h (s390_expand_cs_hqi): Removed.
6611         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
6612         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
6613         modes as well as CCZ1mode and CCZmode.
6614         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
6615         signature of s390_emit_compare_and_swap.
6616         (s390_expand_cs_hqi): Likewise, make static.
6617         (s390_expand_cs_tdsi): Generate an explicit compare before trying
6618         compare-and-swap, in some cases.
6619         (s390_expand_cs): Wrapper function.
6620         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
6621         atomic_exchange.
6622         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
6623         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
6624         patterns for small and large integers.  Forbid symref memory operands.
6625         Move expander to s390.c.  Require cc register.
6626         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
6627         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
6628         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
6629         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
6630         symref memory operands.  Remove CC mode and call s390_match_ccmode
6631         instead.
6632         ("atomic_exchange<mode>"): Allow and implement all integer modes.
6634 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6636         * config/s390/s390.md (define_peephole2): New peephole to help
6637         combining the load-and-test pattern with volatile memory.
6639 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6641         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
6642         with CCZmode for TARGET_Z196.
6644 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
6646         PR rtl-optimization/80501
6647         * combine.c (make_compound_operation_int): Set subreg_code to SET
6648         even for AND with mask of the sign bit of mode.
6650         PR rtl-optimization/80500
6651         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
6652         sum's initial value.
6654 2017-04-25  Julian Brown  <julian@codesourcery.com>
6655             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6657         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
6659 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
6661         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
6663 2017-04-25  Julian Brown  <julian@codesourcery.com>
6664             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6666         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
6667         (thunderx2t99_sha): New Reservation.
6669 2017-04-25  Julian Brown  <julian@codesourcery.com>
6670             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6672         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
6673         type for 1-element load.
6675 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
6677         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
6679 2017-04-24  Martin Jambor  <mjambor@suse.cz>
6681         PR tree-optimization/80293
6682         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
6683         char arrays not totally scalarizable if it is false.
6684         (analyze_all_variable_accesses): Pass correct value in the new
6685         parameter.  Add a statistics counter.
6687 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
6689         PR middle-end/79931
6690         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
6692 2017-04-24  Richard Biener  <rguenther@suse.de>
6694         PR tree-optimization/80494
6695         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
6696         out for complex types.
6698 2017-04-24  Richard Biener  <rguenther@suse.de>
6700         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
6701         * tree-ssa-sccvn.c (print_scc): Print SCC size.
6702         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
6703         (DFS): Adjust and never fail.
6704         (sccvn_dom_walker::fail): Remove.
6705         (sccvn_dom_walker::before_dom_children): Adjust.
6706         (run_scc_vn): Likewise and never fail.
6707         * tree-ssa-pre.c (pass_pre::execute): Adjust.
6708         (pass_fre::execute): Likewise.
6710 2017-04-24  Richard Biener  <rguenther@suse.de>
6712         PR tree-optimization/79725
6713         * tree-ssa-sink.c (statement_sink_location): Return whether
6714         failure reason was zero uses.  Move that check later.
6715         (sink_code_in_bb): Deal with zero uses by removing the stmt
6716         if possible.
6718 2017-04-24  Richard Biener  <rguenther@suse.de>
6720         PR c++/2972
6721         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
6722         pointer-based references.
6724 2017-04-24  Richard Biener  <rguenther@suse.de>
6726         PR bootstrap/79814
6727         * pass_manager.h (pass_manager::operator new): Remove.
6728         (pass_manager::operator delete): Likewise.
6729         * passes.c (pass_manager::operator new): Remove.
6730         (pass_manager::operator delete): Likewise.
6731         (pass_manager::pass_manager): Zero individual pass members.
6733 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
6735         PR target/70799
6736         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
6737         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
6738         Check "XEXP (src, 1)" operand here.
6739         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
6740         Check "XEXP (src, 1)" operand here.
6741         (dimode_scalar_chain::make_vector_copies): Detect count register
6742         of a shift instruction.  Zero extend count register from QImode
6743         to DImode to satisfy vector shift pattern count operand predicate.
6744         Substitute vector shift count operand with a DImode copy.
6745         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
6746         vector register.
6748 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
6750         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
6751         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
6752         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
6753         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
6754         (UNSPEC_NOREX_MEM): Remove definition.
6756 2017-04-21  Richard Biener  <rguenther@suse.de>
6758         PR tree-optimization/79547
6759         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6760         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
6761         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
6762         without any constraints.
6764 2017-04-21  Richard Biener  <rguenther@suse.de>
6766         PR tree-optimization/78847
6767         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
6769 2017-04-21  Richard Biener  <rguenther@suse.de>
6771         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
6772         (build_distinct_type_copy): Likewise.
6773         (build_variant_type_copy): Likewise.
6774         * tree.c (build_qualified_type): Pass down mem-stat info.
6775         (build_distinct_type_copy): Likewise.
6776         (build_variant_type_copy): Likewise.
6778 2017-04-21  Richard Biener  <rguenther@suse.de>
6780         PR tree-optimization/80237
6781         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
6782         defaulted to NULL.
6783         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
6784         for a simplified result.
6786 2016-04-21  Richard Biener  <rguenther@suse.de>
6788         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
6789         sth as strict as a simple_iv but a chrec without symbols and an
6790         operand defined in the loop we are peeling (and not some subloop).
6791         (propagate_constants_for_unrolling): Propagate all constants.
6793 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
6795         PR target/79804
6796         * config/i386/i386.c (print_reg): Remove assert for disalowed
6797         regno values, call output_operand_lossage instead.
6799 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
6801         PR target/78090
6802         * config/i386/constraints.md (Yc): New register constraint.
6803         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
6804         Use Yc constraint for alternative 2 of operand 0.  Remove
6805         preferred_for_speed attribute.
6807 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
6809         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
6810         lastprivate clauses in SIMT case.
6812 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
6814         * doc/invoke.texi (-Wextra-semi): Document new warning option.
6816 2017-04-20  Richard Biener  <rguenther@suse.de>
6818         PR tree-optimization/57796
6819         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
6820         as N scalar stores.
6821         (vect_model_load_cost): Cost gathers as N scalar loads.
6823 2017-04-20  Richard Biener  <rguenther@suse.de>
6825         * ggc-page.c (ggc_allocated_p): Rename to ...
6826         (safe_lookup_page_table_entry): ... this and return the lookup
6827         result.
6828         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
6830 2017-04-20  Richard Biener  <rguenther@suse.de>
6832         PR tree-optimization/80453
6833         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
6834         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
6835         from the conditions.
6836         (vn_phi_eq): Pass them down.
6837         (vn_phi_lookup): Record them.
6838         (vn_phi_insert): Likewise.
6840 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
6842         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
6843         uninitialized variable warning to avoid buffer overrun.
6845 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
6847         PR other/71250
6848         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
6849         is suppressed for '{ 0 }' in C.
6851 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
6853         * BASE-VER: Set to 8.0.0.
6855 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6857         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
6858         priority .init_array and .fini_array section with SECTION_NOTYPE
6859         flag.
6861 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
6863         PR middle-end/80423
6864         * tree.h (build_array_type): Add typeless_storage default argument.
6865         * tree.c (type_cache_hasher::equal): Also compare
6866         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
6867         (build_array_type): Add typeless_storage argument, set
6868         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
6869         recursive call.
6870         (build_nonshared_array_type): Adjust build_array_type_1 caller.
6871         (build_array_type): Likewise.  Add typeless_storage argument.
6873 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6874             Jakub Jelinek  <jakub@redhat.com>
6876         PR tree-optimization/80426
6877         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
6878         operation on symbolic operands, also compute the overflow for the
6879         invariant part when the operation degenerates into a negation.
6881 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
6883         PR debug/80461
6884         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
6885         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
6887         PR debug/80436
6888         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
6890 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
6892         PR target/80462
6893         * config/avr/avr.c (tree.h): Include it.
6894         (cgraph.h): Include it.
6895         (avr_encode_section_info): Don't warn for uninitialized progmem
6896         variable if it's just an alias.
6898 2017-04-19  Richard Biener  <rguenther@suse.de>
6900         PR ipa/65972
6901         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
6902         when needed by AutoPGO.
6904 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
6906         PR lto/50345
6907         * doc/lto.texi: Remove an extra 'that'.
6909 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
6911         PR rtl-optimization/80429
6912         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
6913         are only used in debug insns.
6915 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6916             Vladimir Makarov  <vmakarov@redhat.com>
6918         * config/sparc/predicates.md (input_operand): Add comment.  Return
6919         true for any memory operand when LRA is in progress.
6920         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
6922 2017-04-18  Jeff Law  <law@redhat.com>
6924         PR target/74563
6925         * mips.md ({return,simple_return}_internal): Do not overwrite
6926         operands[0].
6928 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
6930         PR tree-optimization/80443
6931         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
6932         instead of adding 1, subtract -1 and similarly instead of subtracting
6933         1 add -1.
6935 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
6937         PR rtl-optimization/80357
6938         * haifa-sched.c (tmp_bitmap): New variable.
6939         (model_recompute): Handle duplicate use records.
6940         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
6941         (free_global_sched_pressure_data): Free it.
6943 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6945         Revert:
6946         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6947         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
6948         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
6949         instead of SYSTEM_HEADER_DIR.
6951 2017-04-18  Jeff Law  <law@redhat.com>
6953         PR middle-end/80422
6954         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
6955         predecessors after walking up the insn chain.
6957 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
6959         PR debug/80263
6960         * dwarf2out.c (modified_type_die): Try harder not to emit internal
6961         sizetype type into debug info.
6963 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6965         PR target/80099
6966         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
6967         unneeded test for TARGET_UPPER_REGS_SF.
6968         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
6970 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
6972         PR sanitizer/80444
6973         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
6974         instead of gsi_after_labels.
6976 2017-04-18  Jeff Law  <law@redhat.com>
6978         * regcprop.c (maybe_mode_change): Avoid creating copies of the
6979         stack pointer.
6981         Revert:
6982         2017-04-13  Jeff Law  <law@redhat.com>
6983         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
6984         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
6986 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
6988         PR target/79453
6989         * config/avr/avr.c (intl.h): Include it.
6990         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
6992 2017-04-18  Martin Liska  <mliska@suse.cz>
6994         PR gcov-profile/78783
6995         * gcov-tool.c (gcov_output_files): Validate that destination
6996         file is either removed by the tool or by a user.
6998 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
6999             Guy Benyei  <guybe@mellanox.com>
7001         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
7002         block, and do not negate it, the stored id is already negative.
7004 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
7006         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
7008 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7010         PR target/80098
7011         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
7012         masks of options that should be turned off if the VSX vector
7013         options are turned off.
7014         (OTHER_P8_VECTOR_MASKS): Likewise.
7015         (OTHER_VSX_VECTOR_MASKS): Likewise.
7016         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
7017         rs6000_disable_incompatible_switches to validate no type switches
7018         like -mvsx.
7019         (rs6000_incompatible_switch): New function to disallow turning on
7020         other vector options if -mno-vsx, -mno-power8-vector, or
7021         -mno-power9-vector are specified.
7023 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7025         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
7027 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7029         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
7030         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
7031         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
7032         (ARG_POINTER_CFA_OFFSET): Likewise.
7034 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7036         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
7037         conditions to take advantage of various optimizations.
7039 2017-04-13  Jeff Law  <law@redhat.com>
7041         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
7042         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
7043         (zero_extendsidi2_dext): Likewise.
7045 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7047         PR sanitizer/80403
7048         * fold-const.c (fold_ternary_loc): Revert
7049         use op0 instead of fold_convert_loc (loc, type, arg0) part of
7050         2017-04-12 change.
7052 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
7054         PR rtl-optimization/80343
7055         * lra-remat.c (update_scratch_ops): Assign original hard reg to
7056         new scratch pseudo.
7058 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
7060         PR sanitizer/80414
7061         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
7062         to ubsan_encode_value.
7064 2017-04-13  Jeff Law  <law@redhat.com>
7066         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
7067         appearing in DEBUG_INSNs.
7069 2017-04-13  Martin Liska  <mliska@suse.cz>
7071         PR gcov-profile/80413
7072         * gcov-io.c (gcov_write_string): Copy to buffer just when
7073         allocated size is greater than zero.
7075 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7077         PR debug/80321
7078         * dwarf2out.c (decls_for_scope): Ignore declarations of
7079         current_function_decl in BLOCK_NONLOCALIZED_VARS.
7081 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
7083         PR lto/69953
7084         * ipa-visibility.c (non_local_p): Fix typos.
7085         (localize_node): When localizing symbol in same comdat group,
7086         dissolve the group only when we know external symbols are going
7087         to be privatized.
7088         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
7090 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7092         PR tree-optimization/79390
7093         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
7094         order does not result in usable sequence, retry with reversed operand
7095         order.
7097         PR sanitizer/80403
7098         PR sanitizer/80404
7099         PR sanitizer/80405
7100         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
7101         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
7102         op0 instead of fold_convert_loc (loc, type, arg0).
7104 2017-04-12  Jeff Law  <law@redhat.com>
7106         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
7107         has a delay slot in the generated code.
7109         * config/cris/cris.md (cris_preferred_reload_class): Return
7110         GENNONACR_REGS rather than GENERAL_REGS.
7112 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7114         PR c/80163
7115         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
7116         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
7117         signedness of the result type.
7119 2017-04-12  Richard Biener  <rguenther@suse.de>
7120             Jeff Law  <law@redhat.com>
7122         PR tree-optimization/80359
7123         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
7124         trim stores to TARGET_MEM_REFs.
7126 2017-04-12  Richard Biener  <rguenther@suse.de>
7128         PR tree-optimization/79390
7129         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
7130         threading case even more.
7132 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
7134         PR target/80382
7135         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
7136         for quad_address_p for TImode, instead of just not indexed_address.
7138 2017-04-12  Richard Biener  <rguenther@suse.de>
7139             Bernd Edlinger  <bernd.edlinger@hotmail.de>
7141         PR middle-end/79671
7142         * alias.c (component_uses_parent_alias_set_from): Handle
7143         TYPE_TYPELESS_STORAGE.
7144         (get_alias_set): Likewise.
7145         * tree-core.h (tree_type_common): Add typeless_storage flag.
7146         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
7147         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
7148         for types containing members with TYPE_TYPELESS_STORAGE.
7149         (place_field): Likewise.
7150         (layout_type): Likewise for ARRAY_TYPE.
7151         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
7152         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
7153         TYPE_TYPELESS_STORAGE.
7154         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
7156 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7158         PR sanitizer/80349
7159         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
7160         first argument to type.
7162 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7164         PR target/80376
7165         PR target/80315
7166         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
7167         CONST0_RTX (mode) rather than const0_rtx where appropriate.
7168         (rs6000_expand_binop_builtin): Likewise.
7169         (rs6000_expand_ternop_builtin): Likewise; also add missing
7170         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
7171         vshasigma built-ins.
7172         * doc/extend.texi: Document that vec_xxpermdi's third argument
7173         must be a constant.
7175 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
7177         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
7178         Use shift_const cost parameter when calculating gain of STV shifts.
7180 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
7182         PR rtl-optimization/70478
7183         * lra-constraints.c (process_alt_operands): Check memory for
7184         disfavoring memory insn operand.
7186 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7188         PR middle-end/80100
7189         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
7190         left shift in unsigned HOST_WIDE_INT type.
7192         PR rtl-optimization/80385
7193         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
7194         (not (neg X)) into (plus X -1) for complex or non-integral modes.
7196         PR libgomp/80394
7197         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
7198         if they have any depend clauses.
7200 2017-04-11  Martin Liska  <mliska@suse.cz>
7202         PR ipa/80212
7203         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
7204         * ipa-split.c (split_function): Create a local comdat symbol
7205         if caller is in a comdat group.
7207 2017-04-11  Martin Liska  <mliska@suse.cz>
7209         PR ipa/80212
7210         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
7211         flags.
7213 2017-04-11  Martin Sebor  <msebor@redhat.com>
7215         PR middle-end/80364
7216         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
7217         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
7218         for INTEGER_TYPE.
7219         (directive::set_width, directive::set_precision, format_character):
7220         Adjust.
7221         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
7222         INTEGER_TYPE.
7224 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
7226         PR target/80389
7227         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
7228         conflict, set target->arch_name instead of target->cpu_name.
7230 2017-04-11  Richard Biener  <rguenther@suse.de>
7232         PR tree-optimization/80374
7233         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
7234         build_zero_cst, remove fold_convertible_p check again.
7236 2017-04-11  Martin Liska  <mliska@suse.cz>
7238         PR sanitizer/70878
7239         * ubsan.c (instrument_object_size): Do not instrument register
7240         variables.
7242 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7244         PR target/80381
7245         * config/i386/i386-builtin-types.def
7246         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
7247         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
7248         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
7249         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
7250         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
7251         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
7252         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
7253         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
7254         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
7255         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
7256         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
7257         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
7258         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
7259         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
7260         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
7261         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
7262         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
7263         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
7264         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
7265         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
7266         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
7267         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
7268         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
7269         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
7270         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
7271         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
7272         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
7273         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
7274         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
7275         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
7276         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
7277         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
7278         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
7279         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
7280         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
7281         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
7282         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
7283         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
7284         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
7285         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
7286         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
7287         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
7288         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
7289         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
7290         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
7291         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
7292         aliases.
7293         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
7294         flag to second_arg_count, handle 4 argument function type _COUNT
7295         aliases, handle second_arg_count on second argument rather than last.
7297 2017-04-10  Jeff Law  <law@redhat.com>
7299         PR tree-optimization/80374
7300         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
7301         record anything if we can not convert integer_zero_node to the
7302         desired type.
7304 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7306         PR target/80108
7307         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7308         Enhance special handling given to the TARGET_P9_MINMAX option in
7309         relation to certain other options.
7311 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
7313         PR tree-optimization/80153
7314         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
7315         remove POINTER_PLUS_EXPR's base part directly, rather than through
7316         aff_tree.
7318 2017-04-10  Richard Biener  <rguenther@suse.de>
7319             Bin Cheng  <bin.cheng@arm.com>
7321         PR tree-optimization/80153
7322         * tree-affine.c (aff_combination_to_tree): Get base pointer from
7323         the first element of pointer type aff_tree.  Build result expr in
7324         aff_tree's type.
7325         (add_elt_to_tree): Convert to type unconditionally.  Remove other
7326         fold_convert calls.
7327         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
7328         (rewrite_use_nonlinear_expr): Check invariant using iv information.
7330 2017-04-10  Richard Biener  <rguenther@suse.de>
7332         * tree-ssa-structalias.c (find_func_aliases): Properly handle
7333         asm inputs.
7335 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
7337         PR rtl-optimization/70478
7338         * lra-constraints.c (curr_small_class_check): New.
7339         (update_and_check_small_class_inputs): New.
7340         (process_alt_operands): Update curr_small_class_check.  Disfavor
7341         alternative insn memory operands.  Check available regs for small
7342         class operands.
7344 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
7346         PR target/80057
7347         * config/mips/mips.opt (-mvirt): Update description.
7348         * doc/invoke.texi (-mvirt): Likewise.
7350 2017-04-10  Richard Biener  <rguenther@suse.de>
7352         PR middle-end/80362
7353         * fold-const.c (fold_binary_loc): Look at unstripped ops when
7354         looking for NEGATE_EXPR in -A / -B to A / B folding.
7356 2017-04-10  Martin Liska  <mliska@suse.cz>
7358         PR gcov-profile/80224
7359         * gcov.c (print_usage): Fix usage string.
7360         (get_gcov_intermediate_filename): Remove.
7361         (output_gcov_file): Use both for normal and intermediate format.
7362         (generate_results): Do not initialize special file for
7363         intermediate format.
7365 2017-04-10  Richard Biener  <rguenther@suse.de>
7367         PR tree-optimization/80304
7368         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
7369         for safelen.
7371 2017-04-10  Nathan Sidwell  <nathan@acm.org>
7373         PR target/79905
7374         * config/rs6000/rs6000.c (rs6000_vector_type): New.
7375         (rs6000_init_builtins): Use it.
7377 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7379         * config/arm/arm.md (<mrc>): Add mode to SET source.
7380         (<mrrc>): Likewise.
7382 2017-04-10  Richard Biener  <rguenther@suse.de>
7384         PR middle-end/80344
7385         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
7387 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
7389         PR target/80324
7390         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
7391         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
7392         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
7393         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
7394         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
7395         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
7396         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
7397         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
7398         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
7399         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
7400         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
7401         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
7402         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
7403         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
7404         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
7405         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
7406         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
7407         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
7408         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
7409         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
7410         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
7411         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
7412         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
7414 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7416         PR rtl-optimization/70478
7417         * lra-constraints.c: Reverse the last patch.
7419 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
7421         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
7422         Add comment for WCHAR_T.
7424 2017-04-08  Martin Liska  <mliska@suse.cz>
7426         Revert:
7427         2017-04-07  Martin Liska  <mliska@suse.cz>
7429         PR ipa/80212
7430         * ipa-split.c (split_function): Add function part to a same comdat
7431         group.
7433 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7435         PR target/80358
7436         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
7438 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
7440         * rs6000/rs6000.c (vec_load_pendulum): Rename...
7441         (vec_pairing): ...to this.
7442         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
7443         (rs6000_sched_init): Adjust for name change.
7444         (struct rs6000_sched_context): Likewise.
7445         (rs6000_init_sched_context): Likewise.
7446         (rs6000_set_sched_context): Likewise.
7448 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
7450         PR target/80322
7451         PR target/80323
7452         PR target/80325
7453         PR target/80326
7454         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
7455         intrinsics.
7456         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
7457         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
7458         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
7460 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
7462         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
7464 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
7466         PR rtl-optimization/70703
7467         * ira-color.c (update_conflict_hard_regno_costs): Use
7468         int64_t instead of HOST_WIDE_INT.
7470 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
7472         PR rtl-optimization/70478
7473         * lra-constraints.c (process_alt_operands): Disfavor alternative
7474         insn memory operands.
7476 2017-04-07  Jeff Law  <law@redhat.com>
7478         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
7479         CALL and NOTE_INSN_CALL_ARG_LOCATION.
7481 2017-04-07  Martin Liska  <mliska@suse.cz>
7483         PR target/79889
7484         * config/aarch64/aarch64.c (aarch64_process_target_attr):
7485         Show error message instead of an ICE.
7487 2017-04-07  Martin Liska  <mliska@suse.cz>
7489         PR ipa/80212
7490         * ipa-split.c (split_function): Add function part to a same comdat
7491         group.
7493 2017-04-07  Richard Biener  <rguenther@suse.de>
7495         PR middle-end/80341
7496         * tree.c (get_unwidened): Also handle ! for_type case for
7497         INTEGER_CSTs.
7498         * convert.c (do_narrow): Split out from ...
7499         (convert_to_integer_1): ... here.  Do not pass final truncation
7500         type to get_unwidened for TRUNC_DIV_EXPR.
7502 2017-04-07  Richard Biener  <rguenther@suse.de>
7504         * tree-affine.c (wide_int_ext_for_comb): Take type rather
7505         than aff_tree.
7506         (aff_combination_const): Adjust.
7507         (aff_combination_scale): Likewise.
7508         (aff_combination_add_elt): Likewise.
7509         (aff_combination_add_cst): Likewise.
7510         (aff_combination_convert): Likewise.
7511         (add_elt_to_tree): Likewise.  Remove unused argument.
7512         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
7514 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7516         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
7517         definition.
7518         * config/arm/arm.c (arm_default_short_enums): Use
7519         ARM_DEFAULT_SHORT_ENUMS.
7520         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
7522 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
7524         PR debug/80234
7525         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
7526         members with redundant out-of-class redeclaration.
7528 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
7530         PR target/80286
7531         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
7532         * config/i386/i386.md (*zero_extendsidi2):
7533         Add (?*x,*x) and (?*v,*v) alternatives.
7535 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
7537         PR target/79733
7538         * config/i386/i386.c (ix86_expand_builtin)
7539         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
7540         mode from insn data. Convert operands to insn operand mode.
7541         Copy operands that don't satisfy insn predicate to a register.
7543 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
7545         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
7546         Update comments.
7548 2017-04-06  Richard Biener  <rguenther@suse.de>
7550         PR tree-optimization/80334
7551         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
7552         preserve alignment of accesses.
7554 2017-04-06  Richard Biener  <rguenther@suse.de>
7556         PR tree-optimization/80262
7557         * tree-sra.c (build_ref_for_offset): Preserve address-space
7558         information.
7559         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7560         Drop useless address-space information on MEM_REF offsets.
7562 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
7564         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
7566 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
7568         PR rtl-optimization/70703
7569         * ira-color.c (update_conflict_hard_regno_costs): Use
7570         HOST_WIDE_INT instead of long.
7572 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
7574         PR target/80298
7575         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
7576         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
7577         is not defined.
7578         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
7579         for x86_64 target.  Handle -m3dnowa option.
7581 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
7583         PR rtl-optimization/70703
7584         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
7585         (update_conflict_hard_regno_costs): Use long instead of unsigned
7586         arithmetic for cost calculation.
7588 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
7589             Bernd Edlinger  <bernd.edlinger@hotmail.de>
7591         PR sanitizer/80308
7592         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
7593         for big endian.
7595 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7597         PR target/78002
7598         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
7599         ptr_mode with Pmode throughout.
7600         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
7601         into probe_stack_range and use DImode.
7603 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7605         PR target/79890
7606         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
7607         call_eh_return is true.
7609 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7611         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
7612         Initialize last_match_fntype_index.
7614 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
7616         PR target/80310
7617         * tree-nvr.c: Include internal-fn.h.
7618         (pass_return_slot::execute): Ignore internal calls without
7619         direct optab.
7621 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7622             Richard Biener  <rguenther@suse.de>
7624         PR c++/80297
7625         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
7626         captures used multiple times, except for the last use.
7627         * generic-match-head.c: Include gimplify.h.
7629 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7631         PR tree-optimization/79390
7632         * target.h (struct noce_if_info): Declare.
7633         * targhooks.h (default_noce_conversion_profitable_p): Declare.
7634         * target.def (noce_conversion_profitable_p): New target hook.
7635         * ifcvt.h (struct noce_if_info): New type, moved from ...
7636         * ifcvt.c (struct noce_if_info): ... here.
7637         (noce_conversion_profitable_p): Renamed to ...
7638         (default_noce_conversion_profitable_p): ... this.  No longer
7639         static nor inline.
7640         (noce_try_store_flag_constants, noce_try_addcc,
7641         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
7642         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
7643         instead of noce_conversion_profitable_p.
7644         * config/i386/i386.c: Include ifcvt.h.
7645         (ix86_option_override_internal): Don't override
7646         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
7647         (ix86_noce_conversion_profitable_p): New function.
7648         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
7649         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
7650         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
7651         * doc/tm.texi: Regenerated.
7653 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7655         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
7656         correction.
7658 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7660         PR target/80307
7661         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
7662         instructions for small multiply cores.
7664 2017-04-04  Jeff Law  <law@redhat.com>
7666         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
7667         added member.
7668         (mips_expand_vec_perm_const): Initialize elements in orig_perm
7669         that are not set by the loop over the elements.
7671 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7673         PR target/80286
7674         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
7675         int mode, convert_modes it to mode as unsigned, otherwise use
7676         lowpart_subreg to mode rather than SImode.
7677         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
7678         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
7679         Use DImode instead of SImode for the shift count operand.
7680         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
7681         Likewise.
7683 2017-04-04  Richard Biener  <rguenther@suse.de>
7685         PR middle-end/80281
7686         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
7687         arithmetic done for the negate or the plus.  Simplify.
7688         (A - (-B) -> A + B): Likewise.
7689         * fold-const.c (split_tree): Make sure to not negate pointers.
7691 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
7693         PR rtl-optimization/60818
7694         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
7695         a compare of comparisons with the thing compared if this results
7696         in a different machine mode.
7698 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
7700         * alias.c (base_alias_check): Fix typo in comment.
7701         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
7702         * cgraphunit.c (symbol_table::compile): Likewise.
7703         * collect2.c (maybe_run_lto_and_relink): Likewise.
7704         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
7705         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
7706         * config/avr/avr.c (avr_map_op_t): Likewise.
7707         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
7708         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
7709         * config/epiphany/epiphany.md (movcc): Likewise.
7710         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
7711         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
7712         Likewise.
7713         * config/mips/mips.c (mips_save_restore_reg): Likewise.
7714         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
7715         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
7716         * config/sh/sh.c (sh_rtx_costs): Likewise.
7717         * fold-const.c (fold_truth_andor): Likewise.
7718         * genautomata.c (collapse_flag): Likewise.
7719         * gengtype.h (struct type::u::s): Likewise.
7720         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
7721         * input.c (FORMAT_AMOUNT): Likewise.
7722         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
7723         (known_aggs_to_agg_replacement_list): Likewise.
7724         * ipa-inline-analysis.c: Likewise.
7725         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
7726         * ipa-polymorphic-call.c
7727         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
7728         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
7729         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
7730         Likewise.
7731         * modulo-sched.c (apply_reg_moves): Likewise.
7732         * omp-expand.c (build_omp_regions_1): Likewise.
7733         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
7734         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
7735         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
7736         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7737         * value-prof.c: Likewise.
7738         * var-tracking.c (val_reset): Likewise.
7740 2017-04-03  Richard Biener  <rguenther@suse.de>
7742         PR tree-optimization/80275
7743         * fold-const.c (split_address_to_core_and_offset): Handle
7744         POINTER_PLUS_EXPR.
7746 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7748         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
7749         descriptors is at least equal to that of functions.
7751 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
7753         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
7755 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
7757         PR target/80250
7758         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
7759         (mov<IMOD4:mode>): New expander.
7760         (*mov<IMOD4:mode>_internal): New insn and split pattern.
7762 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
7764         PR rtl-optimization/79405
7765         * fwprop.c (propagations_left): New variable.
7766         (forward_propagate_into): Decrement it.
7767         (fwprop_init): Initialize it.
7768         (fw_prop): If the variable has reached zero, stop propagating.
7769         (fwprop_addr): Ditto.
7771 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
7773         PR debug/79255
7774         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
7775         a FUNCTION_DECL, pass it as decl instead of origin to
7776         process_scope_var.
7778 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
7780         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
7781         string.
7783 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
7785         PR target/80107
7786         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
7787         TARGET_VSX_SMALL_INTEGER.
7789 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7791         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
7792         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
7794 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
7796         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
7797         extraction from odd-numbered MSA register.
7799 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
7801         PR middle-end/80173
7802         * expmed.c (store_bit_field_1): Don't attempt to create
7803         a word subreg out of hard registers wider than word if they
7804         have HARD_REGNO_NREGS of 1 for their mode.
7806         PR middle-end/80163
7807         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
7808         conversions to integer types wider than word and pointer.
7810         PR debug/80025
7811         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
7812         (rtx_equal_for_cselib_p): Pass 0 to it.
7813         * cselib.c (cselib_hasher::equal): Likewise.
7814         (rtx_equal_for_cselib_1): Add depth argument.  If depth
7815         is 128, don't look up VALUE locs and punt.  Increment
7816         depth in recursive calls when walking VALUE locs.
7818 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7820         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
7821         (make_gcov_file_name): Use the canonical path name for generating
7822         the MD5 value.
7823         (read_line): Fix handling of files with ascii null bytes.
7825 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
7827         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
7828         to initialise a vector register instead
7829         of using a const_int.
7831 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7833         PR translation/80189
7834         * gimplify.c (omp_default_clause): Use %qs instead of %s in
7835         diagnostic messages.
7837 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
7839         PR target/80246
7840         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
7841         (dfp_diex_<mode>): Update mode of operand 1.
7842         * doc/extend.texi (dxex, dxexq): Document change to return type.
7843         (diex, diexq): Document change to argument type.
7845 2017-03-30  Martin Jambor  <mjambor@suse.cz>
7847         PR ipa/77333
7848         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
7849         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
7850         it reflects the signature changes performed at the callee side.
7851         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
7852         to cgraph_build_function_type_skip_args.
7853         (build_function_decl_skip_args): Adjust call to the above function.
7855 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7857         PR target/80206
7858         * config/i386/sse.md
7859         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
7860         register as dest whenever it is a MEM not rtx_equal_p to the
7861         corresponding dup operand, and when forcing into reg move the
7862         reg into the memory afterwards.
7863         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
7864         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
7865         for the force_reg mode.
7866         (avx512vl_vextractf128<mode>): Use register as dest either
7867         always when a MEM, or when it is a MEM not rtx_equal_p to the
7868         corresponding dup operand, or even not when it is a CONST_VECTOR
7869         depending on the mode and lo vs. hi.
7870         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
7871         parens.
7872         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
7873         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
7874         Likewise.  Require that operands[2] is even.
7875         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
7876         Remove extraneous parens.  Require that operands[2] is a multiple
7877         of 4.
7878         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
7879         operands[0] is a MEM if <mask_applied>, the predicates/constraints
7880         disallow memory then.
7882 2017-03-30  Richard Biener  <rguenther@suse.de>
7884         PR tree-optimization/77498
7885         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
7886         to non-constants over backedges.
7888 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
7890         PR rtl-optimization/80233
7891         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
7892         as last_combined_insn.  Do not test for BARRIER_P separately.
7894 2017-03-29  Andreas Schwab  <schwab@suse.de>
7896         PR ada/80146
7897         * calls.c (prepare_call_address): Convert funexp to Pmode before
7898         copying to temp reg.
7900 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7902         PR tree-optimization/80158
7903         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
7904         Handle possible future case of more than one alternate
7905         interpretation.
7906         (replace_rhs_if_not_dup): Likewise.
7907         (replace_one_candidate): Likewise.
7909 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7911         PR rtl-optimization/80193
7912         * ira.c (ira): Do not check allocation for LRA.
7914 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
7916         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
7917         (nvptx_output_simt_exit): Declare.
7918         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
7919         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
7920         (init_softstack_frame): Move initialization of crtl->is_leaf to...
7921         (nvptx_declare_function_name): ...here.  Emit declaration of local
7922         memory space buffer for omp_simt_enter insn.
7923         (nvptx_output_unisimt_switch): New.
7924         (nvptx_output_softstack_switch): New.
7925         (nvptx_output_simt_enter): New.
7926         (nvptx_output_simt_exit): New.
7927         * config/nvptx/nvptx.h (struct machine_function): New fields
7928         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
7929         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
7930         (UNSPECV_SIMT_EXIT): Ditto.
7931         (omp_simt_enter_insn): New insn.
7932         (omp_simt_enter): New expansion.
7933         (omp_simt_exit): New insn.
7934         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
7936         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
7937         (expand_GOMP_SIMT_ENTER_ALLOC): New.
7938         (expand_GOMP_SIMT_EXIT): New.
7939         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
7940         (GOMP_SIMT_ENTER_ALLOC): Ditto.
7941         (GOMP_SIMT_EXIT): Ditto.
7942         * target-insns.def (omp_simt_enter): New insn.
7943         (omp_simt_exit): Ditto.
7944         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
7945         simt_dlist.
7946         (lower_rec_simd_input_clauses): Implement SIMT privatization.
7947         (lower_rec_input_clauses): Likewise.
7948         (lower_lastprivate_clauses): Handle SIMT privatization.
7950         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
7951         (ompdevlow_adjust_simt_enter): New.
7952         (find_simtpriv_var_op): New.
7953         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
7954         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
7956         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
7957         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
7958         (copy_decl_for_dup_finish): Ditto.
7960         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
7962 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
7964         PR target/53383
7965         * config/i386/i386.c (ix86_option_override_internal): Always
7966         allow -mpreferred-stack-boundary=3 for 64-bit targets.
7968 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
7970         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
7972 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
7974         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
7975         mark new edge's irreducible flag accordign to it.
7976         (vect_do_peeling): Check loop preheader edge's irreducible flag
7977         and pass it to function slpeel_add_loop_guard.
7979 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
7981         PR tree-optimization/80218
7982         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
7983         Update block frequencies and counts.
7985 2017-03-28  Richard Biener  <rguenther@suse.de>
7987         PR tree-optimization/78644
7988         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
7989         of a simplification result we may not use it at all.
7991 2017-03-28  Richard Biener  <rguenther@suse.de>
7993         PR ipa/80205
7994         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
7995         without arguments, generate default definition of a SSA name.
7997 2017-03-28  Richard Biener  <rguenther@suse.de>
7999         PR middle-end/80222
8000         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
8001         TYPE_REF_CAN_ALIAS_ALL references.
8002         * fold-const.c (fold_indirect_ref_1): Likewise.
8004 2017-03-28  Martin Liska  <mliska@suse.cz>
8006         PR ipa/80104
8007         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
8008         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
8010 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
8011             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
8013         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
8014         (EXTRA_SPECS): Define.
8015         (SUBTARGET_EXTRA_SPECS): Likewise.
8016         (SUBTARGET_CPP_SPEC): Likewise.
8017         * config/arc/elf.h (EXTRA_SPECS): Renamed to
8018         SUBTARGET_EXTRA_SPECS.
8019         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
8021 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
8023         * config/arc/simdext.md (vst64_insn): Update pattern.
8024         (vld32wh_insn): Likewise.
8025         (vld32wl_insn): Likewise.
8026         (vld64_insn): Likewise.
8027         (vld32_insn): Likewise.
8029 2017-03-28  Marek Polacek  <polacek@redhat.com>
8031         PR sanitizer/80067
8032         * fold-const.c (fold_comparison): Use protected_set_expr_location
8033         instead of SET_EXPR_LOCATION.
8035 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8037         * tree.c (add_expr): Avoid name lookup warning.
8039 2017-03-27  Jeff Law  <law@redhat.com>
8041         PR tree-optimization/80216
8042         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
8043         function name.  Limit recursion depth.
8044         (record_temporary_equivalences): Corresponding changes.
8046 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
8048         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
8049         covered first.
8051 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
8053         PR target/80102
8054         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
8055         notes.
8056         * cfgcleanup.c (reg_note_cfa_p): New array.
8057         (insns_have_identical_cfa_notes): New function.
8058         (old_insns_match_p): Don't cross-jump in between /f
8059         and non-/f instructions.  If both i1 and i2 are frame related,
8060         verify all CFA notes, their order and content.
8062 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
8064         PR target/78543
8065         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
8066         HImode and SImode with zero extend to DImode to one insn.
8067         (bswap<mode>2_extenddi): Likewise.
8068         (bswapsi2_extenddi): Likewise.
8069         (bswaphi2_extendsi): Likewise.
8070         (bswaphi2): Combine bswap HImode and SImode into one insn.
8071         Separate memory insns from swapping register.
8072         (bswapsi2): Likewise.
8073         (bswap<mode>2): Likewise.
8074         (bswaphi2_internal): Delete, no longer used.
8075         (bswapsi2_internal): Likewise.
8076         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
8077         store, and gpr<-gpr swap insns.
8078         (bswap<mode>2_store): Likewise.
8079         (bswaphi2_reg): Register only splitter, combine with the splitter.
8080         (bswaphi2 splitter): Likewise.
8081         (bswapsi2_reg): Likewise.
8082         (bswapsi2 splitter): Likewise.
8083         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
8084         the insns into load, store, and register/register insns.
8085         (bswapdi2_ldbrx): Likewise.
8086         (bswapdi2_load): Likewise.
8087         (bswapdi2_store): Likewise.
8088         (bswapdi2_reg): Likewise.
8090 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
8092         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
8093         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
8095 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8097         PR target/80103
8098         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
8099         add comments.
8100         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8101         special handling for target option conflicts between dform
8102         options (-mpower9-dform, -mpower9-dform-vector,
8103         -mpower9-dform-scalar) and -mno-direct-move.
8105 2017-03-27  Richard Biener  <rguenther@suse.de>
8107         PR tree-optimization/80181
8108         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
8110 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8112         * config/arc/predicates.md (move_double_src_operand): Replace the
8113         call to move_double_src_operand with a call to address_operand.
8115 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8117         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
8118         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
8119         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
8121 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8123         * config/arc/predicates.md (long_immediate_loadstore_operand):
8124         Consider scaled addresses cases.
8126 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8128         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
8129         restored when in interrupt.
8130         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
8131         doesn't have delay slot.
8133 2017-03-27  Richard Biener  <rguenther@suse.de>
8135         PR ipa/79776
8136         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
8137         inlined thunk clones.
8139 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
8141         PR sanitizer/80168
8142         * asan.c (instrument_derefs): Copy over last operand from
8143         original COMPONENT_REF to the new COMPONENT_REF with
8144         DECL_BIT_FIELD_REPRESENTATIVE.
8145         * ubsan.c (instrument_object_size): Likewise.
8147 2017-03-27  Richard Biener  <rguenther@suse.de>
8149         PR tree-optimization/80170
8150         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
8151         sure DR/SCEV didnt fold in constants we do not see when looking
8152         at the reference base alignment.
8154 2017-03-27  Richard Biener  <rguenther@suse.de>
8156         PR middle-end/80171
8157         * gimple-fold.c (fold_ctor_reference): Properly guard against
8158         NULL return value from canonicalize_constructor_val.
8160 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
8162         PR target/80180
8163         * config/i386/i386.c (ix86_expand_builtin)
8164         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
8165         flags reg setting and flags reg using instructions.
8166         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
8167         clobbering instructions to zero extend op2.
8169 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
8171         * doc/install.texi (Configuration) <--with-aix-soname>:
8172         Update link to AIX ld.
8174 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
8176         PR rtl-optimization/80160
8177         PR rtl-optimization/80159
8178         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
8179         reg_alternate_class into account.
8181 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
8183         PR target/80148
8184         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
8185         to consider in curr_insn_transform.
8187 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
8189         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
8190         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
8191         and emit_mode_inner.
8193 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8195         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
8196         argument to the overloaded builtin variants.  Use the new flag to
8197         deprecate certain builtin variants.
8198         * config/s390/s390-builtin-types.def: Add new builtin types.
8199         * config/s390/s390-builtins.h: Support new flags field for
8200         overloaded builtins.
8201         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
8202         (s390_macro_to_expand): Enable vector float data type.
8203         (s390_cpu_cpp_builtins_internal): Indicate support of the new
8204         builtins by incrementing the __VEC__ version number.
8205         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
8206         vec_xst.
8207         (s390_resolve_overloaded_builtin): Emit error messages depending
8208         on the builtin flags.
8209         * config/s390/s390.c (s390_expand_builtin): Support additional
8210         flags argument.  Change error message to match the messages
8211         emitted in s390-c.c.
8212         * config/s390/s390.md: New UNSPEC_* constants.
8213         (op_type): Add new instruction types.
8214         * config/s390/vecintrin.h: Add new builtins and test data class
8215         constants.
8216         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
8217         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
8218         (VEC_INEXACT, VEC_NOINEXACT): New constants.
8219         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
8220         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
8221         ("vec_mergel<mode>"): V_HW -> VEC_HW.
8223         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
8224         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
8225         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
8226         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
8228         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
8229         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
8230         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
8231         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
8233         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
8234         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
8235         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
8236         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
8237         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
8238         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
8239         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
8241         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
8242         ("vec_scatter_element<V_HW_4:mode>_DI")
8243         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
8244         ("vec_fpint<mode>", "vflls")
8245         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
8246         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
8247         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
8248         ("*vec_cmphe<mode>_cc"): ... these.
8250         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
8251         mode constant instead of magic value.
8253 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8255         * config/s390/s390.c (s390_expand_vec_compare): Support other
8256         vector floating point modes than just V2DF.
8257         (s390_expand_vcond): Likewise.
8258         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
8259         (s390_cannot_change_mode_class): Prevent mode changes between TF
8260         and V1TF in vector registers.
8261         * config/s390/s390.md (DF, SF): New mode attributes.
8262         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
8263         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
8264         SFmode support for VRs.
8265         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
8266         vector fp modes.
8267         (VFT, VF_HW): New mode iterators.
8268         (vw, sdx): New mode attributes.
8269         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
8270         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
8271         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
8272         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
8273         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
8274         also the new vector floating point modes.  Renaming to ...
8276         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
8277         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
8278         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
8279         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
8280         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
8281         ("vec_unordered<mode>"): ... these.
8283         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
8284         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
8285         ("*vec_extendv2df"): New insn definitions.
8287 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8289         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
8290         ("mulditi3_2", "*muldi3_sign"): New patterns.
8291         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
8292         rename the pattern definition.
8294 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8296         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
8297         expander.
8298         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
8300 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8302         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
8303         instruction if possible.
8304         * config/s390/vector.md (vec_halfnumelts): New mode
8305         attribute.
8306         ("*vec_vllezlf<mode>"): New pattern.
8308 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8310         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
8311         ("popcountv4si2", "popcountv2di2"): Rename to ...
8312         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
8313         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
8314         condition.
8315         ("popcount<mode>2_vxe"): New pattern.
8317 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8319         * common/config/s390/s390-common.c (processor_flags_table): Add
8320         arch12.
8321         * config.gcc: Add arch12.
8322         * config/s390/driver-native.c (s390_host_detect_local_cpu):
8323         Default to arch12 for unknown CPU model numbers.
8324         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
8325         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
8326         PROCESSOR_max sanity check.
8327         * config/s390/s390-opts.h (enum processor_type): Add
8328         PROCESSOR_ARCH12.
8329         * config/s390/s390.c (processor_table): Add arch12.
8330         (s390_expand_builtin): Add check for B_VXE flag.
8331         (s390_issue_rate): Add PROCESSOR_ARCH12.
8332         (s390_get_sched_attrmask): Likewise.
8333         (s390_get_unit_mask): Likewise.
8334         (s390_sched_score): Enable z13 scheduling for arch12.
8335         (s390_sched_reorder): Likewise.
8336         (s390_sched_variable_issue): Likewise.
8337         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
8338         PF_VXE.
8339         (s390_tune_attr): Use z13 scheduling also for arch12.
8340         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
8341         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
8342         (TARGET_VXE_P): New macros.
8343         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
8344         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
8345         * config/s390/s390.opt: Add arch12 as processor_type.
8347 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8349         * config/s390/s390.md
8350         ("fixuns_truncdddi2", "fixuns_trunctddi2")
8351         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
8352         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
8354         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
8355         Rename expanders to ...
8357         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
8358         ("fixuns_truncdddi2_emu"): ... these.
8360         ("fixuns_trunc<mode>si2_emu"): New expander.
8362         ("*fixuns_truncdfdi2_z13"): Rename to ...
8363         ("*fixuns_truncdfdi2_vx"): ... this.
8365 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8367         * config/s390/2964.md: Remove the single element vector compare
8368         instructions which are no longer used.
8369         * config/s390/s390.c (s390_select_ccmode): Remove handling of
8370         vector CCmodes.
8371         (s390_canonicalize_comparison): Remove handling of DFmode
8372         compares.
8373         (s390_expand_vec_compare_scalar): Remove function.
8374         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
8375         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
8376         pattern.
8377         ("*cmp<mode>_ccs"): Add wfcdb instruction.
8379 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8381         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
8382         FP zero.
8383         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
8384         will anyway by matched by mov<mode>_64dfp.
8386 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8388         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
8389         vlef/vstef.  Add missing operand to vleif.
8391 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8393         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
8394         pair for all vector types with 64 bit elements.
8395         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
8396         * config/s390/vector.md (V_HW_64): ... here.
8397         (V_128_NOSINGLE): New mode iterator.
8398         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
8399         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
8400         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
8401         ("*vec_load_pairv2di"): Change to ...
8402         ("*vec_load_pair<mode>"): ... this one.
8404 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8406         * config/s390/constraints.md: Add comments.
8407         (jKK): Reject element sizes > 8 bytes.
8408         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
8409         s_operands.
8410         * config/s390/s390.md: Add the s_operand checks formerly in
8411         s390_split_ok_p to various splitters where they are still
8412         required.
8413         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
8414         for 128 bit vectors.  Plus two splitters.
8416 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8418         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
8419         the file.
8421 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8423         PR target/79893
8424         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
8425         error if the boundary argument is not constant.
8427 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
8429         PR rtl-optimization/80112
8430         * loop-doloop.c (doloop_condition_get): Don't check condition
8431         if cmp isn't SET with IF_THEN_ELSE src.
8433 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8435         PR tree-optimization/80158
8436         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
8437         replacing a candidate statement, also replace it for the
8438         candidate's alternate interpretation.
8439         (replace_rhs_if_not_dup): Likewise.
8440         (replace_one_candidate): Likewise.
8442 2017-03-24  Richard Biener  <rguenther@suse.de>
8444         PR tree-optimization/80167
8445         * graphite-isl-ast-to-gimple.c
8446         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
8447         properly.
8448         (translate_isl_ast_to_gimple::get_rename): Likewise.
8450 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8452         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
8453         handling of certain combinations of target options, including the
8454         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
8455         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
8457 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8459         PR target/71436
8460         * config/arm/arm.md (*load_multiple): Add reload_completed to
8461         matching condition.
8463 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8464             Richard Biener  <rguenth@suse.de>
8466         PR tree-optimization/79908
8467         PR tree-optimization/80136
8468         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
8469         been cast away, gimplify_and_add suffices.
8471 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
8473         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
8475 2017-03-23  Richard Biener  <rguenther@suse.de>
8477         PR tree-optimization/80032
8478         * gimplify.c (gimple_push_cleanup): Forced unconditional
8479         cleanups still have to go to the conditional_cleanups
8480         sequence.
8482 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
8484         PR tree-optimization/80072
8485         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
8486         to unsigned int.
8487         (next_operand_entry_id): Change type to unsigned int.
8488         (sort_by_operand_rank): Make sure to return the right return value
8489         even if unsigned fields are bigger than INT_MAX.
8490         (struct oecount): Change cnt and id type to unsigned int.
8491         (oecount_hasher::equal): Formatting fix.
8492         (oecount_cmp): Make sure to return the right return value
8493         even if unsigned fields are bigger than INT_MAX.
8494         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
8496         PR c++/80129
8497         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
8498         TREE_READONLY on result if writing it more than once.
8500         PR sanitizer/80110
8501         * doc/invoke.texi (-fsanitize=thread): Document that with
8502         -fnon-call-exceptions atomics are not able to throw
8503         exceptions.
8505         PR sanitizer/80110
8506         * tsan.c: Include tree-eh.h.
8507         (instrument_builtin_call): Call maybe_clean_eh_stmt or
8508         maybe_clean_or_replace_eh_stmt where needed.
8509         (instrument_memory_accesses): Add cfg_changed argument.
8510         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
8511         if it returned true.
8512         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
8514         PR rtl-optimization/63191
8515         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
8516         wrapper function, moved the whole old content into ...
8517         (ix86_delegitimize_address_1): ... this.  New inline function.
8518         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
8519         true as last argument instead of ix86_delegitimize_address.
8521 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
8523         * config/aarch64/aarch64.c (generic_branch_cost): Copy
8524         cortexa57_branch_cost.
8526 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
8528         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
8530 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8532         PR target/80123
8533         * doc/md.texi (Constraints): Document wA constraint.
8534         * config/rs6000/constraints.md (wA): New.
8535         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
8536         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
8537         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
8538         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
8540 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
8542         PR c++/80029
8543         * gimplify.c (is_oacc_declared): New function.
8544         (oacc_default_clause): Use it to set default flags for acc declared
8545         variables inside parallel regions.
8546         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
8547         declared variables.
8548         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
8549         declare attribute to any decl as necessary.
8551 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8553         PR target/80082
8554         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
8555         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
8556         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
8557         (arm_arch_lpae): This.
8558         * config/arm/arm.c (arm_arch7ve): Rename into ...
8559         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
8560         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
8561         arm_arch_lpae.
8563 2017-03-22  Martin Liska  <mliska@suse.cz>
8565         PR target/79906
8566         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
8567         error message instead of an ICE.
8569 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8571         * doc/extend.texi (6.11 Additional Floating Types): Revise.
8573 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8575         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8576         comments.
8577         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8578         comments.
8580 2017-03-21  Martin Sebor  <msebor@redhat.com>
8582         * doc/extend.texi: Use "cannot" instead of "can't."
8583         * doc/hostconfig.texi: Same.
8584         * doc/install.texi: Same.
8585         * doc/invoke.texi: Same.
8586         * doc/loop.texi: Same.
8587         * doc/md.texi: Same.
8588         * doc/objc.texi: Same.
8589         * doc/rtl.texi: Same.
8590         * doc/tm.texi: Same.
8591         * doc/tm.texi.in: Same.
8592         * doc/trouble.texi: Same.
8594 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
8596         PR debug/63238
8597         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
8598         (collect_checksum_attributes): Set it.
8599         (die_checksum_ordered): Use it.
8601 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8603         PR tree-optimization/79908
8604         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
8605         change: For a VA_ARG whose LHS has been cast away, use
8606         force_gimple_operand to construct the side effects.
8608 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
8610         PR translation/80001
8611         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
8612         more amenable to translation.
8613         (oacc_loop_auto_partitions): Likewise.
8615 2017-03-21  Marek Polacek  <polacek@redhat.com>
8616             Martin Sebor  <msebor@redhat.com>
8618         PR tree-optimization/80109
8619         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
8620         on INTEGRAL_TYPE_P.
8622 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
8623             Segher Boessenkool  <segher@kernel.crashing.org>
8625         PR target/80125
8626         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
8627         check reg_used_between_p between insn and one of succ or succ2
8628         depending on if succ is artificial insn not inserted into insn
8629         stream.
8631 2017-03-21  Martin Liska  <mliska@suse.cz>
8633         PR gcov-profile/80081
8634         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
8635         * doc/gcc.texi: Include gcov-dump stuff.
8636         * doc/gcov-dump.texi: New file.
8638 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
8640         PR rtl-optimization/79150
8641         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
8642         conditional jump, if the jump is the last insn of the loop.
8644 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8645             Richard Biener  <rguenth@suse.de>
8647         PR tree-optimization/79908
8648         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
8649         been cast away, use force_gimple_operand to construct the side
8650         effects.
8652 2017-03-21  Martin Liska  <mliska@suse.cz>
8654         PR libfortran/79956
8655         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
8656         to NULL.
8658 2017-03-21  Brad Spengler <spender@grsecurity.net>
8660         PR plugins/80094
8661         * plugin.c (htab_hash_plugin): New function.
8662         (add_new_plugin): Use it and adjust.
8663         (parse_plugin_arg_opt): Adjust.
8664         (init_one_plugin): Likewise.
8666 2017-03-21  Richard Biener  <rguenther@suse.de>
8668         PR tree-optimization/80032
8669         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
8670         if set force the cleanup to happen unconditionally.
8671         (gimplify_target_expr): Push inserted clobbers with force_uncond
8672         to avoid them being removed by control-dependent DCE.
8674 2017-03-21  Richard Biener  <rguenther@suse.de>
8676         PR tree-optimization/80122
8677         * tree-inline.c (copy_bb): Do not expans va-arg packs or
8678         va_arg_pack_len when the inlined call stmt requires pack
8679         expansion itself.
8680         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
8682 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
8684         PR sanitizer/78158
8685         * tsan.c (instrument_builtin_call): If the memory model argument
8686         is not a constant, assume it is valid.
8688         PR c/67338
8689         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
8690         avoid UB.
8692 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
8694         PR rtl-optimization/79910
8695         * combine.c (can_combine_p): Do not allow combining an I0 or I1
8696         if its dest is used by an insn before I2 (other than the combined
8697         insns themselves, which are properly handled already).
8699 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
8701         Revert:
8702         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
8704         * combine.c (record_used_regs): New static function.
8705         (try_combine): Handle situations where there is an additional
8706         instruction between I2 and I3 which needs to have a LOG_LINK
8707         updated.
8709         Revert:
8710         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
8712         * combine.c (try_combine): Delete redundant i1 test.  Call
8713         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8715 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8717         PR target/80083
8718         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
8719         alternatives 13/14.
8721 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8723         PR tree-optimization/80054
8724         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
8725         the optimization if a PHI or any of its arguments is not dominated
8726         by the candidate's basis.  Use gphi* rather than gimple* as
8727         appropriate.
8728         (replace_profitable_candidates): Clean up a gimple* variable that
8729         should be a gphi* variable.
8731 2017-03-20  Martin Sebor  <msebor@redhat.com>
8733         PR c++/52477
8734         * doc/extend.texi (attribute constructor): Document present limitation.
8736 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8738         PR target/79963
8739         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
8740         __POWER9_VECTOR__ #ifdef control, change template definition to
8741         use Power9-specific built-in function.
8742         (vec_any_eq): Likewise.
8743         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
8744         to control outcomes from this test.
8745         (vector_ae_<mode>p): For VEC_F modes, likewise.
8747 2017-03-20  Ian Lance Taylor  <iant@google.com>
8749         * config/i386/i386.c (ix86_function_regparm): Save an extra
8750         register for -fsplit-stack with DECL_STATIC_CHAIN.
8752 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
8754         PR target/79912
8755         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
8756         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
8758 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
8760         * config/riscv/riscv.c (riscv_print_operand): Use "fence
8761         iorw,ow".
8762         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
8763         iorw,iorw".
8765 2017-03-20  Marek Polacek  <polacek@redhat.com>
8767         PR sanitizer/80063
8768         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
8770 2017-03-20  Richard Biener  <rguenther@suse.de>
8772         PR tree-optimization/80113
8773         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
8774         allocate extra SSA name for PHI def.
8775         (add_close_phis_to_outer_loops): Likewise.
8776         (add_close_phis_to_merge_points): Likewise.
8777         (copy_loop_close_phi_args): Likewise.
8778         (copy_cond_phi_nodes): Likewise.
8780 2017-03-20  Martin Liska  <mliska@suse.cz>
8782         PR middle-end/79753
8783         * tree-chkp.c (chkp_build_returned_bound): Do not build
8784         returned bounds for a LHS that's not a BOUNDED_P type.
8786 2017-03-20  Martin Liska  <mliska@suse.cz>
8788         PR target/79769
8789         PR target/79770
8790         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
8791         COMPLEX_CST and VECTOR_CST.
8793 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8795         PR target/78857
8796         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
8797         target operand.  A new splitter adds the clobber statement in case
8798         the target operand is dead anyway.
8800 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
8802         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
8803         to age-old versions of binutils and glibc.
8805 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
8807         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
8809 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
8811         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
8813 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
8815         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
8816         requirement for binutils 2.13.
8818 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
8820         * combine.c (try_combine): Delete redundant i1 test.  Call
8821         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8823 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
8825         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
8826         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
8827         contents.
8828         <riscv64-*-elf>: Re-arrange section
8829         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
8830         <riscv32-*-linux>: Likewise.
8831         <riscv64-*-elf>: Likewise
8832         <riscv64-*-linux>: Likewise.
8834 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
8836         PR target/80052
8837         * aarch64.opt(verbose-cost-dump): Fix typo.
8839 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
8841         PR target/79951
8842         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
8843         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
8845 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
8847         * reload.c (find_reloads): When reloading a nonoffsettable address,
8848         use RELOAD_OTHER for it and its address reloads.
8850         PR rtl-optimization/79910
8851         * combine.c (record_used_regs): New static function.
8852         (try_combine): Handle situations where there is an additional
8853         instruction between I2 and I3 which needs to have a LOG_LINK
8854         updated.
8856 2017-03-17  Jeff Law  <law@redhat.com>
8858         PR tree-optimization/71437
8859         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
8860         conditional in the hash table first.
8861         (vrp_dom_walker::before_dom_children): Extract condition from
8862         ASSERT_EXPR.  Record condition, its inverion and any implied
8863         conditions as well.
8865 2017-03-17  Marek Polacek  <polacek@redhat.com>
8866             Markus Trippelsdorf  <markus@trippelsdorf.de>
8868         PR tree-optimization/80079
8869         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
8870         m_stores_head.
8872 2017-03-17  Richard Biener  <rguenther@suse.de>
8874         PR middle-end/80075
8875         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
8876         Properly verify the LHS before the RHS possibly claims to be
8877         handled.
8878         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
8879         do not throw.
8881 2017-03-17  Martin Jambor  <mjambor@suse.cz>
8883         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
8884         (List of -O2 options): Likewise.
8885         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
8886         (-fipa-vrp) New.
8888 2017-03-17  Tom de Vries  <tom@codesourcery.com>
8890         * gcov-dump.c (print_usage): Print bug_report_url.
8892 2017-03-17  Richard Biener  <rguenther@suse.de>
8894         PR middle-end/80050
8895         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
8896         (parser::peek): Likewise.
8898 2017-03-17  Richard Biener  <rguenther@suse.de>
8900         PR tree-optimization/80048
8901         * sese.c (free_sese_info): Properly release rename_map and
8902         copied_bb_map elements.
8904 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
8906         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
8907         Add linked-list forward and backlinks.  Insert on
8908         construction, remove on destruction.
8909         (class pass_store_merging): Add m_stores_head field.
8910         (pass_store_merging::terminate_and_process_all_chains):
8911         Iterate over m_stores_head list.
8912         (pass_store_merging::terminate_all_aliasing_chains):
8913         Likewise.
8914         (pass_store_merging::execute): Check for debug stmts first.
8915         Push new chains onto the m_stores_head stack.
8917 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
8919         PR target/71294
8920         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
8921         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
8922         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
8924 2017-03-16  Jeff Law  <law@redhat.com>
8926         PR tree-optimization/71437
8927         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
8928         member function.  Implementation moved into after_dom_children
8929         member function and into the threader's thread_outgoing_edges
8930         function.
8931         (dom_opt_dom_walker::after_dom_children): Simplify by moving
8932         some code into new thread_outgoing_edges.
8933         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
8934         definition.  Simplify marker handling (do it here).   Assume we always
8935         have the available expression and the const/copies tables.
8936         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
8937         and tree-vrp.c
8938         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
8939         * tree-vrp.c (equiv_stack): No longer file scoped.
8940         (vrp_dom_walker): New class.
8941         (vrp_dom_walker::before_dom_children): New member function.
8942         (vrp_dom_walker::after_dom_children): Likewise.
8943         (identify_jump_threads):  Setup domwalker.  Use it rather than
8944         walking edges in a random order by hand.  Simplify setup/finalization.
8945         (finalize_jump_threads): Remove.
8946         (vrp_finalize): Do not call identify_jump_threads here.
8947         (execute_vrp): Do it here instead and call thread_through_all_blocks
8948         here too.
8950         PR tree-optimization/71437
8951         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
8952         callers changed.
8953         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
8954         callers changed.
8955         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
8956         (dom_opt_dom_walker::thread_across_edge): Remove
8957         handle_dominating_asserts argument.  All callers changed.
8958         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
8959         changes.  Remove calls to lhs_of_dominating_assert.  Other
8960         uses of handle_dominating_asserts turn into unconditional code
8961         (simplify_control_stmt_condition_1): Likewise.
8962         (simplify_control_stmt_condition): Likewise.
8963         (thread_through_normal_block, thread_across_edge): Likewise.
8964         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
8965         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
8966         object if it is not an SSA_NAME.
8967         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
8968         before calling into the VRP specific simplifiers.
8969         (identify_jump_threads): Remove handle_dominating_asserts
8970         argument.
8972 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
8974         PR fortran/79886
8975         * tree-diagnostic.c (default_tree_printer): No longer static.
8976         * tree-diagnostic.h (default_tree_printer): New prototype.
8978 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
8980         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
8981         Change ins into fmov.
8983 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8985         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
8986         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
8987         Use h_con constraint for operand 1.
8988         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8989         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
8991 2017-03-15  Jeff Law  <law@redhat.com>
8993         PR tree-optimization/71437
8994         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
8995         (record_temporary_equivalences): Use it.
8997         PR tree-optimization/71437
8998         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
8999         tree-ssa-scopedtables.
9000         (lookup_avail_expr, build_and_record_new_cond): Likewise.
9001         (record_conditions, record_cond, vuse_eq): Likewise.
9002         (record_edge_info): Adjust to API tweak of record_conditions.
9003         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
9004         (record_temporary_equivalences, optimize_stmt): Likewise.
9005         (eliminate_redundant_computations): Likewise.
9006         (record_equivalences_from_stmt): Likewise.
9007         * tree-ssa-scopedtables.c: Include options.h and params.h.
9008         (vuse_eq): New function, moved from tree-ssa-dom.c
9009         (build_and_record_new_cond): Likewise.
9010         (record_conditions): Likewise.  Accept vector of conditions rather
9011         than edge_equivalence structure for first argument.
9012         for the first argument.
9013         (avail_exprs_stack::lookup_avail_expr): New member function, moved
9014         from tree-ssa-dom.c.
9015         (avail_exprs_stack::record_cond): Likewise.
9016         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
9017         from tree-ssa-dom.c.
9018         (avail_exprs_stack): Add new member functions lookup_avail_expr
9019         and record_cond.
9020         (record_conditions): Declare.
9022 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
9024         PR target/80017
9025         * lra-constraints.c (process_alt_operands): Increase reject for
9026         reloading an input/output operand.
9028 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9030         PR target/79038
9031         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
9032         insns to convert from signed/unsigned char/short to IEEE 128-bit
9033         floating point.
9034         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
9036 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
9038         PR target/80019
9039         * config/i386/i386.c (ix86_vector_duplicate_value): Create
9040         subreg of inner mode for values already in registers.
9042 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
9044         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
9045         iteration reg is used after the loop.
9047 2017-03-14  Martin Sebor  <msebor@redhat.com>
9049         PR tree-optimization/79800
9050         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
9051         precision in negative-positive range.
9052         (format_floating): Call non-const overload with adjusted precision.
9054 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9056         PR target/79947
9057         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
9058         -mpowerpc-gfxopt.
9060 2017-03-14  Martin Sebor  <msebor@redhat.com>
9062         PR middle-end/80020
9063         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
9064         * builtins.def (aligned_alloc): Use it.
9066         PR c/79936
9067         * Makefile.in (GTFILES): Add calls.c.
9068         * calls.c: Include "gt-calls.h".
9070 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
9072         PR rtl-optimization/79728
9073         * regs.h (struct target_regs): New field
9074         x_contains_allocatable_regs_of_mode.
9075         (contains_allocatable_regs_of_mode): New macro.
9076         * reginfo.c (init_reg_sets_1): Initialize it, and change
9077         contains_reg_of_mode so it includes global regs as well.
9078         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
9079         rather than contains_regs_of_mode.
9081 2017-03-14  Martin Liska  <mliska@suse.cz>
9083         * doc/invoke.texi: Document options that can't be combined with
9084         -fcheck-pointer-bounds.
9086 2017-03-14  Martin Liska  <mliska@suse.cz>
9088         PR middle-end/79831
9089         * doc/invoke.texi (-Wchkp): Document the option.
9091 2017-03-14  Martin Liska  <mliska@suse.cz>
9093         * Makefile.in: Install gcov-dump.
9095 2017-03-14  Martin Liska  <mliska@suse.cz>
9097         * multiple_target.c (expand_target_clones): Bail out for
9098         an invalid attribute.
9100 2017-03-14  Richard Biener  <rguenther@suse.de>
9102         * alias.c (struct alias_set_entry): Pack properly.
9103         * cfgloop.h (struct loop): Likewise.
9104         * cse.c (struct set): Likewise.
9105         * ipa-utils.c (struct searchc_env): Likewise.
9106         * loop-invariant.c (struct invariant): Likewise.
9107         * lra-remat.c (struct cand): Likewise.
9108         * recog.c (struct change_t): Likewise.
9109         * rtl.h (struct address_info): Likewise.
9110         * symbol-summary.h (function_summary): Likewise.
9111         * tree-loop-distribution.c (struct partition): Likewise.
9112         * tree-object-size.c (struct object_size_info): Likewise.
9113         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
9114         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
9115         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
9116         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
9117         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
9118         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
9119         (struct _stmt_vec_info): Likewise.
9121 2017-03-14  Martin Liska  <mliska@suse.cz>
9123         PR target/79892
9124         * multiple_target.c (create_dispatcher_calls): Check that
9125         a target can create a function dispatcher.
9127 2017-03-14  Martin Liska  <mliska@suse.cz>
9129         PR lto/66295
9130         * multiple_target.c (expand_target_clones): Drop local.local
9131         flag for default implementation.
9133 2017-03-14  Richard Biener  <rguenther@suse.de>
9135         PR tree-optimization/80030
9136         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
9138 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
9140         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
9141         gcc_fallthrough() instead of __attribute__((fallthrough));
9143 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
9145         * doc/gcc.texi: Remove "up" link to (DIR).
9146         * doc/gccint.texi: Ditto.
9148 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
9150         * doc/install.texi (Specific) <avr>: Remove reference to
9151         binutils 2.13.
9153 2017-03-13  Jeff Law  <law@redhat.com>
9155         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
9156         attribute rather than comments.
9158         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
9159         match_scratch operand is highest.
9161 2017-03-13  Martin Liska  <mliska@suse.cz>
9163         PR middle-end/78339
9164         * ipa-pure-const.c (warn_function_noreturn): If the declarations
9165         is a CHKP clone, use original declaration.
9167 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9169         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
9170         (arc_conditional_register_usage): Use a different allocation order
9171         when optimizing for size.
9172         * common/config/arc/arc-common.c (arc_option_optimization_table):
9173         Section anchors default on when optimizing for size.
9175 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9177         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
9179 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9181         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
9182         * config/arc/arc.md (cpu_facility): Add cd variant.
9183         (*movqi_insn): Add code density variant.
9184         (*movhi_insn): Likewise.
9185         (*movqi_insn): Likewise.
9186         (*addsi3_mixed): Likewise.
9187         (subsi3_insn): Likewise.
9189 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9191         * config/arc/arc.md (movsi_cond_exec): Update constraint.
9193 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9195         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
9196         expressions with MINUS and UNARY ops.
9198 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9200         PR target/79911
9201         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
9202         Rename to...
9203         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
9204         between vec_select and vector argument.
9205         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
9206         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
9207         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
9208         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
9209         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
9210         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
9212 2017-03-13  Richard Biener  <rguenther@suse.de>
9214         PR other/79991
9215         * params.def (vect-max-peeling-for-alignment): Fix typo.
9217 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9219         * doc/install.texi (Specific) <mips-*-*>: Remove description of
9220         issue that only occurred with binutils below 2.18.
9222 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9224         * doc/install.texi (Specific) <cris-axis-elf>: No longer
9225         refer to binutils 2.11/2.12 minimum.
9227 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9229         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
9230         ftp.kernel.org and simplify binutils requirement.
9232 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
9234         * doc/invoke.texi (Warning Options): Fix spelling of link-time
9235         optimization.
9236         (Optimize Options): Ditto.  Also remove redundancy.
9238 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9240         PR translation/79848
9241         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
9242         "%qs".
9243         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
9244         to G_ to avoid double translation.
9246 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9248         PR translation/79923
9249         * auto-profile.c (get_combined_location): Convert leading
9250         character of diagnostics to lower case and remove trailing period.
9251         (read_profile): Likewise for various diagnostics.
9252         * config/arm/arm.c (arm_option_override): Remove trailing period
9253         from various diagnostics.
9254         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
9255         (msp430_expand_delay_cycles): Likewise.
9257 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9259         PR target/79925
9260         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
9261         full command-line argument, rather than just "str".
9262         (aarch64_validate_march): Likewise.
9263         (aarch64_validate_mtune): Likewise.
9265 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
9267         PR rtl-optimization/78911
9268         * lra-assigns.c (must_not_spill_p): New function.
9269         (spill_for): Use it.
9271 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
9273         PR tree-optimization/79981
9274         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
9275         ATOMIC_COMPARE_EXCHANGE ifn result.
9276         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
9277         IFN_ATOMIC_COMPARE_EXCHANGE.
9279 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9281         PR driver/79875
9282         * opts.c (parse_sanitizer_options): Add missing question mark to
9283         "did you mean" message.
9285 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9287         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
9288         built-in.
9289         (VMULEUH_UNS): Likewise.
9290         (VMULOUB_UNS): Likewise.
9291         (VMULOUH_UNS): Likewise.
9292         * config/rs6000/rs6000.c (builtin_function_type): Remove
9293         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
9295 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9297         PR bootstrap/79952
9298         * read-rtl-function.c (function_reader::read_rtx_operand): Update
9299         x with result of extra_parsing_for_operand_code_0.
9300         (function_reader::extra_parsing_for_operand_code_0): Convert
9301         return type from void to rtx, returning x.  When reading
9302         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
9303         larger size containing struct block_symbol.
9305 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
9307         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
9308         -mfloat128-hardware without -m64.
9310 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
9312         PR target/79941
9313         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
9314         entries to the case statement that marks unsigned arguments to
9315         overloaded functions.
9317 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9319         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
9320         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
9322 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
9324         PR target/79907
9325         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
9326         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
9328 2017-03-10  Martin Liska  <mliska@suse.cz>
9330         PR target/65705
9331         PR target/69804
9332         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
9333         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
9334         FIELD != NULL.
9336 2017-03-10  Olivier Hainque  <hainque@adacore.com>
9338         * tree-switch-conversion (array_value_type): Start by resetting
9339         candidate type to it's main variant.
9341 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
9343         PR rtl-optimization/79909
9344         * combine.c (try_combine): Use simplify_replace_rtx on individual
9345         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
9346         of the whole CALL_INSN_FUNCTION_USAGE.
9348         PR tree-optimization/79972
9349         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
9350         get_range_info on SSA_NAMEs.  Formatting fixes.
9352 2017-03-10  Richard Biener  <rguenther@suse.de>
9353             Jakub Jelinek  <jakub@redhat.com>
9355         PR tree-optimization/77975
9356         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
9357         edge to be constant.
9358         (get_val_for): For constant x return it.  Formatting fix.
9359         (loop_niter_by_eval): Avoid pointless looping if the next iteration
9360         would use the same bases as the current one.
9362 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9364         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
9365         instead of vec_select for V1TImode.
9366         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
9367         longer needed.
9368         (VSX_LE_128): Add V1TI to this mode iterator.
9369         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
9370         (*vsx_le_perm_store_<mode>): Likewise.
9371         (pre-reload splitter for VSX stores): Likewise.
9372         (post-reload splitter for VSX stores): Likewise.
9373         (*vsx_xxpermdi2_le_<mode>): Likewise.
9374         (*vsx_lxvd2x2_le_<mode>): Likewise.
9375         (*vsx_stxvd2x2_le_<mode>): Likewise.
9377 2017-03-09  Michael Eager  <eager@eagercon.com>
9379         Correct failures with --enable-checking=yes,rtl.
9381         * config/microblaze/microblaze.c (microblaze_expand_shift):
9382         Replace GET_CODE test with CONST_INT_P and INTVAL test with
9383         test for const0_rtx.
9384         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
9385         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
9387 2017-03-09  Richard Biener  <rguenther@suse.de>
9389         PR tree-optimization/79977
9390         * graphite-scop-detection.c (scop_detection::merge_sese):
9391         Handle the case of extra exits to blocks dominating the entry.
9393 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
9395         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
9396         Document rdynamic.
9398 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
9400         PR rtl-optimization/79949
9401         * lra-constraints.c (process_alt_operands): Check memory when
9402         trying to predict a cycle.  Print about the overall increase.
9404 2017-03-09  Richard Biener  <rguenther@suse.de>
9406         PR middle-end/79971
9407         * gimple-expr.c (useless_type_conversion_p): Preserve
9408         TYPE_SATURATING for fixed-point types.
9410 2017-03-09  Richard Biener  <rguenther@suse.de>
9412         PR ipa/79970
9413         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
9414         alignment of BLKmode params.
9416 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9418         PR target/79913
9419         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
9420         (VALL_NO_V2Q): Likewise.
9421         (VDQF_DF): Delete.
9422         * config/aarch64/aarch64-simd.md
9423         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
9424         iterator.
9425         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
9426         VALL_NO_V2Q mode iterator.
9427         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
9429 2017-03-09  Martin Liska  <mliska@suse.cz>
9431         PR tree-optimization/79631
9432         * tree-chkp-opt.c (chkp_is_constant_addr): Call
9433         tree_int_cst_sign_bit just for INTEGER constants.
9435 2017-03-09  Martin Liska  <mliska@suse.cz>
9437         PR target/65705
9438         PR target/69804
9439         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
9440         sanitizers.
9442 2017-03-09  Marek Polacek  <polacek@redhat.com>
9444         PR c++/79672
9445         * tree.c (inchash::add_expr): Handle TREE_VEC.
9447 2017-03-09  Martin Liska  <mliska@suse.cz>
9449         PR ipa/79764
9450         (chkp_narrow_size_and_offset): New function.
9451         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
9452         (void chkp_parse_bit_field_ref): New function.
9453         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
9454         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
9456 2017-03-09  Martin Liska  <mliska@suse.cz>
9458         PR ipa/79761
9459         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
9460         (chkp_find_bounds_1): Remove gcc_unreachable.
9462 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
9464         PR sanitizer/79944
9465         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
9466         BUILT_IN_SYNC*, determine the access type from the size suffix and
9467         always build a MEM_REF with that type.  Handle forgotten
9468         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
9470         PR target/79932
9471         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
9472         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
9473         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
9474         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
9475         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
9476         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
9477         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
9478         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
9479         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
9480         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
9481         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
9482         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
9483         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
9484         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
9485         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
9486         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
9487         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
9488         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
9489         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
9490         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
9491         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
9492         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
9493         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
9494         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
9495         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
9496         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
9497         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
9498         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
9499         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
9500         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
9501         definitions outside of __OPTIMIZE__ guarded section.
9503         PR target/79932
9504         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
9505         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
9506         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
9507         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
9508         guarded section.
9510 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9512         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
9513         ("vfenez<mode>"): Add missing constraints.
9515 2017-03-08  Martin Sebor  <msebor@redhat.com>
9517         PR target/79928
9518         * config/nds32/nds32.c (nds32_option_override):
9519         Fix misspelled diagnostic.
9521 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9523         PR c/79940
9524         * gimplify.c (gimplify_omp_for): Replace index var in outer
9525         taskloop statement with an artificial variable and add
9526         OMP_CLAUSE_PRIVATE clause for it.
9528 2017-03-08  Richard Biener  <rguenther@suse.de>
9530         PR tree-optimization/79955
9531         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
9532         for accesses that are completely outside of the variable.
9534 2017-03-08  Andrew Haley  <aph@redhat.com>
9536         PR tree-optimization/79943
9537         * tree-ssa-loop-split.c (compute_new_first_bound): When
9538         calculating the new upper bound, (END-BEG) should be added, not
9539         subtracted.
9541 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9543         * config/avr/avr.md (setmemhi): Make sure match_dup
9544         operand number comes before match_scratch.
9546 2017-03-08  Richard Biener  <rguenther@suse.de>
9548         PR tree-optimization/79920
9549         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
9550         with ncopies == 1 to ...
9551         (vect_transform_slp_perm_load): ... here.  Properly compute
9552         all element loads by iterating VF times over the group.  Do
9553         not handle ncopies (computed in a broken way) in
9554         vect_create_mask_and_perm.
9556 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9558         PR sanitizer/79904
9559         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
9560         is a uniform vector, use uniform_vector_p return value instead of
9561         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
9563 2017-03-07  Marek Polacek  <polacek@redhat.com>
9565         PR middle-end/79809
9566         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
9567         (alloca_call_type): Likewise.
9569 2017-03-07  Martin Liska  <mliska@suse.cz>
9571         * gcov.c (process_args): Put comment to correct location.
9573 2017-03-07  Martin Liska  <mliska@suse.cz>
9575         PR middle-end/68270
9576         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
9577         Use array_at_struct_end_p instead of DECL_CHAIN (field).
9578         (chkp_narrow_bounds_for_field): Likewise.
9579         (chkp_parse_array_and_component_ref): Pass one more argument to
9580         call.
9582 2017-03-07  Richard Biener  <rguenther@suse.de>
9584         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
9585         preheaders.
9587 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
9589         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
9590         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
9592 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9594         PR c/79855
9595         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
9596         to end of description.
9597         (PARAM_MAX_STORES_TO_MERGE): Likewise.
9599 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
9601         PR rtl-optimization/79901
9602         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
9603         ...
9604         (*avx512f_<code><mode>3<mask_name>): ... this.
9605         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
9606         iterator instead of VI8_AVX2_AVX512BW.
9608         PR rtl-optimization/79901
9609         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
9610         min/max expander, expand it using expand_vec_cond_expr.
9612         PR sanitizer/79897
9613         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
9614         temporary.
9616 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
9618         PR c++/79821
9619         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
9620         to void * for PCH reasons.
9621         * dwarf2out.c (output_loc_operands, output_die): Cast
9622         v.val_vec.array to unsigned char *.
9624 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
9626         PR target/77850
9627         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
9628         vector types.
9630 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
9632         PR rtl-optimization/79571
9633         * lra-constraints.c (process_alt_operands): Calculate static
9634         reject and subtract it from overall when only addresses will be
9635         reloaded.
9637 2017-03-06  Julia Koval  <julia.koval@intel.com>
9639         PR target/79793
9640         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
9641         incoming stack boundary to 128 for 64-bit targets.
9643 2017-03-06  Richard Biener  <rguenther@suse.de>
9645         PR tree-optimization/79894
9646         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
9647         to NULL after folding it.
9649 2017-03-06  Richard Biener  <rguenther@suse.de>
9651         PR tree-optimization/79824
9652         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
9653         check disabling peeling for gaps.
9655 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
9657         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9658         attributes): Document gettimeofday.
9660 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
9662         * config/s390/s390.c (s390_option_override_internal): Set
9663         PARAM_MIN_VECT_LOOP_BOUND
9665 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
9667         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
9668         * config/s390/s390.md: Likewise.
9670 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
9672         PR target/79812
9673         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
9674         (<avx2_avx512>_perm<mode>): Rename to ...
9675         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
9676         of VI8F_256_512.
9677         (<avx512>_perm<mode>_mask): Rename to ...
9678         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
9679         of VI8F_256_512.
9680         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
9681         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
9682         instead of VI8F_256_512.
9683         (avx512f_perm<mode>): New define_expand.
9684         (avx512f_perm<mode>_mask): Likewise.
9685         (avx512f_perm<mode>_1<mask_name>): New define_insn.
9686         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
9688 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9690         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
9691         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
9692         if_then_else.
9693         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
9695 2017-03-06  Martin Liska  <mliska@suse.cz>
9697         PR sanitize/79783
9698         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
9699         when having a SSA NAME w/o VAR_DECL assigned to it.
9701 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9703         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
9704         msa_dpsub_<su>_d): Fix MODE for vec_select.
9706 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9708         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
9709         argument.
9710         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
9712 2017-03-06  Richard Biener  <rguenther@suse.de>
9714         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
9715         * plugin.c (register_plugin_info): Likewise.
9716         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
9718 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
9720         * config/i386/sse.md (sse_storehps, sse_storelps,
9721         avx_<castmode><avxsizesuffix>_<castmode>,
9722         avx512f_<castmode><avxsizesuffix>_<castmode>,
9723         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
9724         in condition that at least one operand is not a MEM.
9726 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
9728         PR middle-end/79805
9729         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
9730         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
9731         ECF_NOTHROW.
9732         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
9733         gimple_call_nothrow_p flag based on whether original builtin can throw.
9734         If it can, emit following stmts on the fallthrough edge.
9735         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
9736         don't create new bb if inserting just debug stmts on the edge, try to
9737         insert them on the fallthru bb or just reset debug stmts.
9739 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
9741         PR target/43763
9742         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
9743         restore recog_data (including the operand rtxes inside it) around
9744         the call to get_insn_template.
9746 2017-03-03  Martin Sebor  <msebor@redhat.com>
9748         PR tree-optimization/79699
9749         * context.c (context::~context): Free MPFR caches to avoid
9750         a memory leak on program exit.
9752 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9754         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
9755         Use wide_int::ulow () instead of .elt (0).
9757 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
9759         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
9760         (*pushxf): Limit oF constraint to 32bit targets and add oC
9761         constraint for 64bit targets.
9762         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
9763         (*pushdf): Change rmF constraint to rmC.
9765 2017-03-03  Martin Liska  <mliska@suse.cz>
9767         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
9768         Remove unused variable.
9770 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
9772         PR target/79807
9773         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
9774         is a memory operand, increase num_memory.
9775         (ix86_expand_args_builtin): Likewise.
9777 2017-03-03  Jan Hubicka  <jh@suse.cz>
9779         PR lto/79760
9780         * ipa-devirt.c (maybe_record_node): Properly handle
9781         __cxa_pure_virtual visibility.
9783 2017-03-03  Martin Liska  <mliska@suse.cz>
9785         PR tree-optimization/79803
9786         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
9787         assert.
9788         (pass_loop_prefetch::execute): Disabled optimization if an
9789         assumption about L1 cache size is not met.
9791 2017-03-03  Martin Liska  <mliska@suse.cz>
9793         PR rtl-optimization/79574
9794         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
9795         (hash_scan_set): Likewise.
9796         (dump_hash_table): Likewise.
9797         (hoist_code): Likewise.
9799 2017-03-03  Richard Biener  <rguenther@suse.de>
9801         * fixed-value.c (fixed_from_string): Restore use of elt (1)
9802         in place of uhigh ().
9803         (fixed_convert_from_real): Likewise.
9805 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
9807         PR target/79514
9808         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
9810 2017-03-03  Richard Biener  <rguenther@suse.de>
9812         PR middle-end/79818
9813         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
9814         TYPE_OVERFLOW_UNDEFINED check.
9816 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9818         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
9819         numbers.
9820         (vector_ae_<mode>_p): Likewise.
9821         (vector_nez_<mode>_p): Likewise.
9822         (vector_ne_v2di_p): Likewise.
9823         (vector_ae_v2di_p): Likewise.
9824         (vector_ne_<mode>_p): Likewise.
9825         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
9826         numbers.
9827         (vsx_tsqrt<mode>2_fe): Likewise.
9829 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
9831         PR target/79514
9832         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
9834 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
9836         PR rtl-optimization/79780
9837         * cprop.c (one_cprop_pass): When second and further conditional trap
9838         in a single basic block is turned into an unconditional trap, turn it
9839         into a deleted note to avoid RTL verification failures.
9841 2017-03-02  Richard Biener  <rguenther@suse.de>
9843         * fold-const.c (const_binop): Use ulow () instead of elt (0).
9845 2017-03-02  Richard Biener  <rguenther@suse.de>
9847         PR tree-optimization/79345
9848         PR c++/42000
9849         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
9850         param and abort the walk, returning -1 if it is hit.
9851         (walk_aliased_vdefs): Take a limit param and pass it on.
9852         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
9853         defaulting to 0 and return a signed int.
9854         * tree-ssa-uninit.c (struct check_defs_data): New struct.
9855         (check_defs): New helper.
9856         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
9857         about uninitialized memory.
9858         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
9859         bogus uninitialized warning.
9860         (fixed_convert_from_real): Likewise.
9862 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
9864         PR tree-optimization/66768
9865         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
9866         iv_use if base object can't be determined.
9868 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
9870         PR tree-optimization/79345
9871         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
9872         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
9873         (get_pattern_stats): Initialize it.
9874         * genemit.c (gen_expand): Verify match_scratch numbers come after
9875         match_operand/match_dup numbers.
9876         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
9877         match_scratch numbers.
9878         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
9879         Likewise.
9880         * config/s390/s390.md (trunctdsd2): Likewise.
9882 2017-03-02  Richard Biener  <rguenther@suse.de>
9884         * wide-int.h (wide_int_storage::operator=): Implement in terms
9885         of wi::copy.
9887 2017-03-02  Richard Biener  <rguenther@suse.de>
9889         PR tree-optimization/79777
9890         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
9891         the to insert expression to sth existing.
9893 2017-03-01  Martin Sebor  <msebor@redhat.com>
9895         PR middle-end/79692
9896         * gimple-ssa-sprintf.c
9897         (directive::known_width_and_precision): New function.
9898         (format_integer): Use it.
9899         (get_mpfr_format_length): Consider the full range of precision
9900         when computing %g output with the # flag.  Set the likely byte
9901         count to 3 rather than 1 when precision is indeterminate.
9902         (format_floating): Correct the lower bound of precision.
9904 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9906         * doc/invoke.texi: Document default code model for 64-bit Linux.
9908 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9910         PR target/79752
9911         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
9912         udiv rather than div since input pattern is unsigned.
9914 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
9916         * config/i386/i386.c (print_reg): Warn for values of
9917         unsupported size in integer register.
9919 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9921         PR target/79439
9922         * config/rs6000/predicates.md (current_file_function_operand): Do
9923         not allow self calls to be local if the function is replaceable.
9925 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9927         PR target/79395
9928         * config/rs6000/altivec.h (vec_ctz and others): Change the
9929         preprocessor macro that controls conditional compilation from
9930         _ARCH_PWR9 to __POWER9_VECTOR__.
9931         (vec_all_ne): Change parameterization of __altivec_scalar_pred
9932         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
9933         control (instead of _ARCH_PWR9 control) so that template
9934         definition uses power9-specific function.
9935         (vec_any_eq): Likewise.
9936         (vec_all_ne): Change macro definition to use a power9-specific
9937         expansion under #ifdef __POWER9_VECTOR__ control (instead of
9938         _ARCH_PWR9 control).
9939         (vec_any_eq) Likewise.
9940         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
9941         expansion for CMPNEF to remove support for xvcmpnesp instruction.
9942         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
9943         support for xvcmpnedp instruction.
9944         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
9945         macro expansion so that Power9 implementation of vec_all_ne does
9946         not use the AltiVec predicate framework.
9947         (VCMPNEH_P): Likewise.
9948         (VCMPNEW_P): Likewise.
9949         (VCMPNED_P): Likewise.
9950         (VCMPNEFP_P): Likewise.
9951         (VCMPNEDP_P): Likewise.
9952         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
9953         implementation of vec_any_eq to not use AltiVec predicate
9954         framework.
9955         (VCMPAEH_P): Likewise.
9956         (VCMPAEW_P): Likewise.
9957         (VCMPAED_P): Likewise.
9958         (VCMPAEFP_P): Likewise.
9959         (VCMPAEDP_P): Likewise.
9960         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
9961         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
9962         not use the AltiVec predicate framework.
9963         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
9964         of vec_any_eq to not use AltiVec predicate framework.
9965         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
9966         support for predefined __POWER9_VECTOR__ macro to indicate that
9967         Power9 instruction selection is enabled.
9968         (altivec_overloaded_builtins): Remove extraneous
9969         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
9970         function argument types RS6000_BTI_bool_V16QI and
9971         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
9972         entry for overloaded function argument types RS6000_BTI_bool_V4SI
9973         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
9974         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
9975         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
9976         Power9 for implementations of vec_cmpne.  Change the signature for
9977         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
9978         (representing vec_all_ne) to remove the previously described first
9979         argument of type RS6000_BTI_INTSI, as this was an artifact of
9980         reliance on the AltiVec predicate framework, which is no longer
9981         used in the implementation of these functions.  Add
9982         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
9983         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
9984         since, unlike the AltiVec predicate framework implementation, we
9985         do not share function descriptors between vec_alle and vec_anyeq.
9986         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
9987         set of modes that receive special treatment even when
9988         TARGET_P9_VECTOR is true.  The special treatment emits code that
9989         does not depend on Power9 instructions.
9990         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
9991         define_expand to not rely on AltiVec predicate framework.
9992         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
9993         function.
9994         (vector_ne_v2di_p): Change this define_expand to not rely on
9995         AltiVec predicate framework.
9996         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
9997         function.
9998         (vector_ne_<mode>_p): Change this define_expand to not rely on
9999         AltiVec predicate framework.
10000         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
10001         function.
10002         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
10003         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
10004         define_insn pattern.
10005         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
10006         define_insn pattern because the xvcmpne<VSs>. instruction is not
10007         supported.
10008         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
10009         instruction is not supported.
10011 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10013         * config/nvptx/nvptx.c: Include intl.h.
10015 2017-03-01  Martin Jambor  <mjambor@suse.cz>
10017         PR lto/78140
10018         * ipa-prop.h (ipa_bits): Removed field known.
10019         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
10020         to pointers.  Adjusted their comments to warn about their sharing.
10021         (ipcp_transformation_summary): Change bits to a vector of pointers.
10022         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
10023         (ipa_get_ipa_bits_for_value): Declare.
10024         * tree-vrp.h (value_range): Mark as GTY((for_user)).
10025         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
10026         (ipa_bits_hash_table): Likewise.
10027         (ipa_vr_ggc_hash_traits): Likewise.
10028         (ipa_vr_hash_table): Likewise.
10029         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
10030         being pointers and vr_known being removed.
10031         (ipa_set_jf_unknown): Likewise.
10032         (ipa_get_ipa_bits_for_value): New function.
10033         (ipa_set_jfunc_bits): Likewise.
10034         (ipa_get_value_range): New overloaded functions.
10035         (ipa_set_jfunc_vr): Likewise.
10036         (ipa_compute_jump_functions_for_edge): Use the above functions to
10037         construct bits and vr parts of jump functions.
10038         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
10039         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
10040         exist.
10041         (ipcp_grow_transformations_if_necessary): Also allocate
10042         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
10043         exist.
10044         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
10045         them.  Fix too long lines.
10046         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
10047         vr_known being removed.
10048         (ipa_read_jump_function): Use new setter functions to construct bits
10049         and vr parts of jump functions or set them to NULL.
10050         (write_ipcp_transformation_info): Adjust for bits being pointers.
10051         (read_ipcp_transformation_info): Likewise.
10052         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
10053         space.
10054         Include gt-ipa-prop.h.
10055         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
10056         being pointers.
10057         (ipcp_store_bits_results): Likewise.
10058         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
10059         Do not write to existing jump functions but use a temporary instead.
10061 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10063         PR c++/79681
10064         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
10065         attempt to use its first operand as BIT_FIELD_REF base.
10067 2017-03-01  Richard Biener  <rguenther@suse.de>
10069         PR middle-end/79721
10070         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
10071         interpolating formula in wrapping arithmetic.
10072         (chrec_apply): Convert chrec_evaluate return value to wanted type.
10074 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10076         PR tree-optimization/79734
10077         * tree-vect-generic.c (expand_vector_condition): Optimize
10078         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
10079         Handle VEC_COND_EXPR where comparison has different inner width from
10080         type's inner width.
10082 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
10084         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
10085         markup, and similar issues.  Remove @opindex entries for things
10086         that aren't options.  Add missing -mmpy-option entries.
10088 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10090         PR tree-optimization/79737
10091         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
10092         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
10093         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
10094         instead of byte_size.  Formatting fix.
10095         (shift_bytes_in_array_right): Formatting fix.
10097 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10099         PR target/79749
10100         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
10101         condition on optimize for the leaf function test.
10103 2017-02-28  Martin Liska  <mliska@suse.cz>
10105         PR lto/79625
10106         * read-rtl-function.c (function_reader::handle_unknown_directive):
10107         Bail out when one uses -flto.
10109 2017-02-28  Martin Liska  <mliska@suse.cz>
10111         * common.opt: Replace space with tabular for options of <number>
10112         type.
10113         * config/i386/i386.opt: Show <number> value for
10114         -mlarge-data-threshold.
10115         * opts.c (print_filtered_help): Do not display number in hexadecimal
10116         format.
10118 2017-02-28  Martin Liska  <mliska@suse.cz>
10120         * common.opt: Fix --help=option -Q for options which are of
10121         an enum type.
10123 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
10125         * config/i386/i386.c (print_reg): Error out for values
10126         of 8-bit size in invalid integer register.
10128 2017-02-28  Martin Sebor  <msebor@redhat.com>
10130         PR tree-optimization/79691
10131         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
10133 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10135         PR target/79729
10136         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
10137         gcc_unreachable with output_operand_lossage.
10139 2017-02-28  Richard Biener  <rguenther@suse.de>
10141         PR tree-optimization/79740
10142         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
10143         inserts.
10144         (visit_nary_op): Insert the nary into the hashtable if we
10145         pattern-matched sth.
10146         * tree-ssa-pre.c (eliminate_insert): Robustify.
10148 2017-02-28  Richard Biener  <rguenther@suse.de>
10150         PR middle-end/79731
10151         * fold-const.c (decode_field_reference): Reject out-of-bound
10152         accesses.
10154 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10156         * config/i386/i386.c: Include intl.h.
10157         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
10158         instead of just cond ? "..." : "...".
10159         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
10160         * coverage.c (read_counts_file): Likewise.
10161         * omp-offload.c: Include intl.h.
10162         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
10163         of just cond ? "..." : "...".
10164         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
10165         of just cond ? "..." : "...".
10167 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
10169         PR target/79742
10170         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
10171         entry, if present.
10172         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
10173         'tune for' CPU name.
10174         * config/arm/arm-cpu-data.h: Regenerated.
10176 2017-02-28  Richard Biener  <rguenther@suse.de>
10178         PR tree-optimization/79732
10179         * tree-inline.c (expand_call_inline): Do not shadow var.
10181 2017-02-28  Richard Biener  <rguenther@suse.de>
10183         PR tree-optimization/79723
10184         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
10185         address-space properly.
10187 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
10189         * doc/optinfo.texi (Optimization groups): Fix option used for
10190         OPTGROUP_ALL.
10191         * doc/invoke.texi (-fopt-info): Document "omp".
10192         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
10193         (OPTGROUP_ALL): Add OPTGROUP_OMP.
10194         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
10195         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
10196         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
10198         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
10199         all users.
10200         * dumpfile.c (optgroup_options): Instead of "openmp", associate
10201         OPTGROUP_OMP with "omp".
10203 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
10205         PR target/79544
10206         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
10207         for arithmetic shift of unsigned V2DI.
10209 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
10211         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
10212         arc/linux.h headers.
10213         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
10214         (LINK_SPEC): Likewise.
10215         (ARC_TLS_EXTRA_START_SPEC): Likewise.
10216         (EXTRA_SPECS): Likewise.
10217         (STARTFILE_SPEC): Likewise.
10218         (ENDFILE_SPEC): Likewise.
10219         (LIB_SPEC): Likewise.
10220         (TARGET_SDATA_DEFAULT): Likewise.
10221         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
10222         (MULTILIB_DEFAULTS): Likewise.
10223         (DWARF2_UNWIND_INFO): Likewise.
10224         * config/arc/big.h: New file.
10225         * config/arc/elf.h: Likewise.
10226         * config/arc/linux.h: Likewise.
10227         * config/arc/t-uClibc: Remove.
10229 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
10231         PR tree-optimization/77536
10232         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
10233         (tree_transform_and_unroll_loop): Use above function to compute the
10234         estimated niter of unrolled loop and use it when scaling profile.
10235         Also use count info rather than frequency if it's non-zero.
10236         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
10237         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
10238         (vect_transform_loop): Call above function.
10240 2017-02-27  Richard Biener  <rguenther@suse.de>
10242         PR tree-optimization/45397
10243         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
10244         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
10245         (visit_nary_op): Add pattern matching for CSEing sign-changed
10246         or truncated operations with wider ones.
10248 2017-02-27  Richard Biener  <rguenther@suse.de>
10250         PR tree-optimization/79690
10251         * tree-vect-stmts.c (vectorizable_store): Use vector type
10252         built from the DR with address-space.
10254 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10256         * doc/invoke.texi (Optimize Options): Refine the description
10257         of asan-use-after-return.
10259 2017-02-25  Alan Modra  <amodra@gmail.com>
10261         PR rtl-optimization/79584
10262         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
10263         base, not ad->base_term, the reg within base.  Remove assertion
10264         that ad->base == ad->base_term.  Replace gen_int_mode using
10265         bogus mode with const0_rtx.
10267 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
10269         PR middle-end/79396
10270         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
10271         FMA_EXPR like tcc_binary or tcc_unary.
10273         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
10275         PR debug/77589
10276         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
10277         bitfield.
10278         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
10279         (output_loc_operands): Handle DW_OP_call_ref and
10280         DW_OP_GNU_variable_value.
10281         (struct variable_value_struct): New type.
10282         (struct variable_value_hasher): Likewise.
10283         (variable_value_hash): New variable.
10284         (string_types): Remove.
10285         (copy_loc_descr): New function.
10286         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
10287         (prepend_loc_descr_to_each): New function.
10288         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
10289         instead of add_loc_descr_to_each if the first argument is single
10290         location list and the second has multiple.
10291         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
10292         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
10293         when looking for variable value which doesn't have other location info.
10294         (loc_list_from_tree): Formatting fix.
10295         (gen_array_type_die): Simplify DW_AT_string_length handling.
10296         (adjust_string_types): Remove.
10297         (gen_subprogram_die): Don't call adjust_string_types nor test/set
10298         string_types.  Call resolve_variable_values.
10299         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
10300         (resolve_addr_in_expr): Likewise.  Add A argument.
10301         (copy_deref_exprloc): Remove deref argument.  Adjust for the
10302         original expression being DW_OP_GNU_variable_value with optionally
10303         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
10304         optionally after it.
10305         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
10306         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
10307         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
10308         (variable_value_hasher::hash, variable_value_hasher::equal): New
10309         methods.
10310         (resolve_variable_value_in_expr, resolve_variable_value,
10311         resolve_variable_values, note_variable_value_in_expr,
10312         note_variable_value): New functions.
10313         (dwarf2out_early_finish): Call note_variable_value on all toplevel
10314         DIEs.
10316 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
10318         PR c/79677
10319         * opts.h (handle_generated_option): Add GENERATED_P argument.
10320         * opts-common.c (handle_option): Adjust function comment.
10321         (handle_generated_option): Add GENERATED_P argument, pass it to
10322         handle_option.
10323         (control_warning_option): Pass false to handle_generated_option
10324         GENERATED_P.
10325         * opts.c (maybe_default_option): Pass true to handle_generated_option
10326         GENERATED_P.
10327         * optc-gen.awk: Likewise.
10329 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10331         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
10332         a REG, look at the REG it is a SUBREG of.
10333         (splitter for cmpeqsi_t): Ditto.
10335 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10337         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
10338         the special USEs with the pattern of the insn, not the insn itself.
10340 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
10342         PR target/79473
10343         * doc/invoke.texi: Document -mload-store-pairs.
10345 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10346             Sandra Loosemore  <sandra@codesourcery.com>
10348         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
10349         argument isn't a CONST_INT.
10350         (nios2_alternate_compare_const): Assert op is a CONST_INT.
10351         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
10352         (nios2_validate_compare): Bypass alternate compare logic if *op2
10353         is not a CONST_INT.
10354         (ldstwm_operation_p): Return false if first_base is not a REG or
10355         if first_offset is not a CONST_INT.
10357 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10359         * config/cris/cris.md: Use correct operand in a define_peephole2.
10361 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10363         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
10365 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10367         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
10368         this_insn if it is an INSN or JUMP_INSN.
10369         (force_offsettable): Look at base, not at addr.
10370         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
10371         on things that aren't necessarily CONST_INTs.
10373 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
10375         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
10376         -mfpmath=sse is the default also for x86-32 targets with SSE2
10377         instruction set when @option{-ffast-math} is enabled
10379 2017-02-24  Jeff Law  <law@redhat.com>
10381         PR rtl-optimizatoin/79286
10382         * ira.c (update_equiv_regs): Drop may_trap_p exception to
10383         dominance test.
10385 2017-02-24  Richard Biener  <rguenther@suse.de>
10387         PR tree-optimization/79389
10388         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
10389         debug insns.
10391 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
10393         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
10394         function comment to reflect reality.
10395         (loop_exits_before_overflow): Fix typo in function description.
10397 2017-02-24  Richard Biener  <rguenther@suse.de>
10399         PR tree-optimization/79389
10400         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
10401         properly that a threading opportunity exists.  Detect conditional
10402         copy/constant propagation opportunities.
10404 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
10406         * config/visium/visium.md (type): Add trap.
10407         (b): New mode attribute.
10408         (*btst): Rename into...
10409         (*btst<mode>): ...this and adjust.
10410         (*cbranchsi4_btst_insn): Rename into...
10411         (*cbranch<mode>4_btst_insn): ...this and adjust.
10412         (trap): New define_insn.
10414 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
10416         PR tree-optimization/79389
10417         * ifcvt.c (struct noce_if_info): Add rev_cond field.
10418         (noce_reversed_cond_code): New function.
10419         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
10420         reversed_comparison_code.  Formatting fix.
10421         (noce_try_store_flag): Test rev_cond != NULL in addition to
10422         reversed_comparison_code.
10423         (noce_try_store_flag_constants): Likewise.
10424         (noce_try_store_flag_mask): Likewise.
10425         (noce_try_addcc): Use rev_cond if non-NULL instead of
10426         reversed_comparison_code.
10427         (noce_try_cmove_arith): Likewise.  Formatting fixes.
10428         (noce_try_minmax, noce_try_abs): Clear rev_cond.
10429         (noce_find_if_block): Initialize rev_cond.
10430         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
10431         instead of false as last argument never attempt to reverse it
10432         afterwards.
10434 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
10436         PR tree-optimization/79663
10437         * tree-predcom.c (combine_chains): Process refs in reverse order
10438         only for ZERO length chains, and add explaining comment.
10440 2017-02-23  Jeff Law  <law@redhat.com>
10442         PR tree-optimization/79578
10443         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
10444         in call to operand_equal_p.
10446 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
10448         PR target/71017
10449         * config/i386/cpuid.h: Fix another undefined behavior.
10451 2017-02-23  Richard Biener  <rguenther@suse.de>
10453         PR tree-optimization/79683
10454         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
10455         vector types for data-refs.
10457 2017-02-23  Martin Liska  <mliska@suse.cz>
10459         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
10461 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
10463         PR middle-end/79665
10464         * internal-fn.c (get_range_pos_neg): Moved to ...
10465         * tree.c (get_range_pos_neg): ... here.  No longer static.
10466         * tree.h (get_range_pos_neg): New prototype.
10467         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
10468         are known to be in between 0 and signed maximum inclusive, try to
10469         expand both unsigned and signed divmod and use the cheaper one from
10470         those.
10472 2017-02-22  Jeff Law  <law@redhat.com>
10474         PR tree-optimization/79578
10475         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
10476         to compare base operands.
10478 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
10480         PR target/79211
10481         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
10482         gpc_reg_operand instead of fpr_reg_operand.
10484 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
10486         * config/mips/mips.c (mips_return_in_memory): Force FP
10487         vector types to be returned in memory for o32 ABI.
10489 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
10491         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
10492         instead of DW_TAG_member for static data member declarations and don't
10493         set no_linkage_name for static inline data members.
10494         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
10495         to DW_TAG_member.
10497 2017-02-22  Martin Liska  <mliska@suse.cz>
10499         * doc/invoke.texi: Replace inequality signs with square brackets
10500         for -Wnormalized.
10502 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10504         PR tree-optimization/68644
10505         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
10507 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
10509         PR target/78660
10510         * lra-constraints.c (simplify_operand_subreg): Handle
10511         WORD_REGISTER_OPERATIONS targets.
10513 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
10515         PR target/70465
10516         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
10517         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
10518         elimination by swapping fld*.
10520 2017-02-22  Richard Biener  <rguenther@suse.de>
10522         PR tree-optimization/79673
10523         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
10524         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
10525         irrelevant address-space qualifiers and avoiding a
10526         ADDR_SPACE_CONVERT_EXPR from fold_convert.
10528 2017-02-22  Richard Biener  <rguenther@suse.de>
10530         PR tree-optimization/79666
10531         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
10532         to not symbolically negate if that may introduce undefined
10533         overflow.
10535 2017-02-22  Martin Liska  <mliska@suse.cz>
10537         PR lto/79587
10538         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
10539         * data-streamer-out.c (streamer_write_gcov_count_stream):
10540         Likewise.
10541         * value-prof.c (stream_out_histogram_value): Make assert more
10542         precise based on type of counter.
10544 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
10546         PR target/79593
10547         * config/i386/i386.md (standard_x87sse_constant_load splitter):
10548         Use nonimmediate_operand instead of memory_operand for operand 1.
10549         (float-extend standard_x87sse_constant_load splitter): Ditto.
10551 2017-02-21  Jeff Law  <law@redhat.com>
10553         PR tree-optimization/79621
10554         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
10555         blocks with edges to themselves.
10557 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10559         PR target/79633
10560         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
10561         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
10562         Use gimple_call_builtin_p.
10564         PR target/79570
10565         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
10566         on temporarily removed DEBUG_INSNs.
10568         PR tree-optimization/79649
10569         * tree-loop-distribution.c (classify_partition): Give up on
10570         non-generic address space loads/stores.
10572 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
10574         * doc/loop.texi (Loop manipulation): Remove nonexistent
10575         tree_ssa_loop_version from the documentation.
10576         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
10578 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10580         PR target/79494
10581         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
10582         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
10583         * config/rs6000/rs6000.c: Include except.h.
10584         (rs6000_expand_split_stack_prologue): Call
10585         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
10587 2017-02-21  Martin Jambor  <mjambor@suse.cz>
10589         PR lto/79579
10590         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
10591         have been analyzed.
10593 2017-02-21  Martin Jambor  <mjambor@suse.cz>
10595         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
10596         for backward compatibility only.
10597         * doc/invoke.texi (Option Summary): Remove all references to
10598         -fipa-cp-alignment.
10600 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
10602         PR target/78660
10603         Revert:
10604         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10606         * lra-constraints.c (curr_insn_transform): Handle
10607         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
10609 2017-02-21  Martin Liska  <mliska@suse.cz>
10611         * config/i386/i386.opt: Replace -masm-dialect with -masm.
10613 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
10615         PR translation/79638
10616         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
10618 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
10620         PR ada/67205
10621         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
10622         (arm_function_ok_for_sibcall): Return false for an indirect call by
10623         descriptor if all the argument registers are used.
10624         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
10625         alignment of the function.
10627 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10629         PR tree-optimization/61441
10630         * simplify-rtx.c (simplify_const_unary_operation): For
10631         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
10632         the sNaN unmodified.
10634 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10636         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
10637         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
10638         instead of SYSTEM_HEADER_DIR.
10640 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
10641             Martin LiÅ¡ka  <mliska@suse.cz>
10643         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
10644         Fix typos and grammar, use active voice, and clarify.
10646 2017-02-20  Marek Polacek  <polacek@redhat.com>
10648         PR middle-end/79537
10649         * gimplify.c (gimplify_expr): Handle unused *&&L;.
10651         PR sanitizer/79558
10652         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
10654 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
10656         PR target/79568
10657         * config/i386/i386.c (ix86_expand_builtin): Handle
10658         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
10659         ix86_builtins_isa[fcode].isa as a requirement of those
10660         flags and any other flag in the bitmask.
10661         (ix86_init_mmx_sse_builtins): Use 0 instead of
10662         ~OPTION_MASK_ISA_64BIT as mask.
10663         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
10664         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
10665         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
10666         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
10668 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10670         PR target/78012
10671         * lra-constraints.c (split_reg): Check requested split mode
10672         is supported by the register.
10674 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10676         * lra-constraints.c (simplify_operand_subreg): Remove early
10677         return false.
10679 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10681         PR target/78660
10682         * lra-constraints.c (curr_insn_transform): Tighten condition
10683         for converting SUBREG reloads from OP_OUT to OP_INOUT.
10685 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10687         PR target/78660
10688         * lra-constraints.c (curr_insn_transform): Handle
10689         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
10691 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
10693         Revert:
10694         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
10696         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10698 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
10700         PR c++/69523
10701         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
10702         description.
10704 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10706         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
10707         for FMA_EXPR.
10709 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
10711         * final.c (last_columnnum, override_columnnum): New variables.
10712         (final_start_function): Set last_columnnum, pass it to begin_prologue
10713         hook and pass 0 to dwarf2out_begin_prologue.
10714         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
10715         to source_line debug hook.
10716         (notice_source_line): Compute last_columnnum and for debug_column_info
10717         return true on column changes.
10718         * debug.h (struct gcc_debug_hooks): Add column argument to
10719         source_line and begin_prologue hooks.
10720         (debug_nothing_int_charstar_int_bool): Remove prototype.
10721         (debug_nothing_int_int_charstar,
10722         debug_nothing_int_int_charstar_int_bool): New prototypes.
10723         (dwarf2out_begin_prologue): Add column argument.
10724         * debug.c (do_nothing_debug_hooks): Adjust source_line and
10725         begin_prologue hooks.
10726         (debug_nothing_int_charstar_int_bool): Remove.
10727         (debug_nothing_int_int_charstar,
10728         debug_nothing_int_int_charstar_int_bool): New functions.
10729         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
10730         through to dwarf2out_source_line.
10731         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
10732         (dwarf2out_source_line): Add column argument, emit it if requested.
10733         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
10734         arguments.
10735         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
10736         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
10737         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
10738         through to dwarf2out_begin_prologue.
10739         (vmsdbgout_source_line): Add column argument, pass it through to
10740         dwarf2out_source_line.
10741         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
10742         dbxout_source_line caller.
10743         (dbxout_source_line): Add column argument.
10745         * common.opt (gno-column-info, gcolumn-info): New options.
10746         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
10747         (check_die): Also test for multiple DW_AT_decl_column attributes.
10748         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
10749         DW_AT_decl_column if requested.
10750         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
10751         if requested.
10752         (gen_variable_die): Likewise.
10753         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
10754         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
10756         PR target/79569
10757         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
10758         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
10759         (ix86_handle_option): Handle OPT_m3dnowa.
10760         * doc/invoke.texi (-m3dnowa): Document.
10761         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
10762         -m3dnowa instead of -m3dnow -march=athlon.
10764         PR target/79559
10765         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
10766         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
10768 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10770         PR target/79261
10771         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
10772         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
10773         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
10774         generator for vsx_xxpermdi_<mode>_be.
10775         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
10776         force big-endian semantics.
10777         (vsx_xxpermdi_<mode>_be): New define_expand with same
10778         implementation as previous version of vsx_xxpermdi_<mode>.
10780 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
10782         PR tree-optimization/79327
10783         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
10784         variable, its initialization and use.
10786 2017-02-17  Julia Koval  <julia.koval@intel.com>
10788         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
10789         (OPTION_MASK_ISA_PKU_UNSET): New.
10790         (ix86_handle_option): Handle -mrdpid.
10791         * config/i386/cpuid.h (bit_RDPID): New.
10792         * config/i386/driver-i386.c (host_detect_local_cpu):
10793         Detect RDPID feature.
10794         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
10795         * config/i386/i386-c.c (ix86_target_macros_internal):
10796         Handle RDPID flag.
10797         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
10798         (ix86_valid_target_attribute_inner_p): Add "rdpid".
10799         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
10800         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
10801         * config/i386/i386.md (define_insn "rdpid"): New.
10802         * config/i386/i386.opt Add -mrdpid.
10803         * config/i386/immintrin.h (_rdpid_u32): New.
10805 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
10807         PR rtl-optimization/79541
10808         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
10809         instead of transforming it into USE.
10811 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
10813         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
10814         If HONOR_SNANS (SFmode) force the input to a register.
10815         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
10816         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
10817         an frsp or similar insn.
10819 2017-02-17  Martin Liska  <mliska@suse.cz>
10821         PR rtl-optimization/79577
10822         * params.def (selsched-max-sched-times): Increase minimum to 1.
10824 2017-02-17  Martin Liska  <mliska@suse.cz>
10826         PR rtl-optimization/79574
10827         * gcse.c (want_to_gcse_p): Prevent integer overflow.
10829 2017-02-17  Martin Liska  <mliska@suse.cz>
10831         PR tree-optimization/79529
10832         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
10833         ssa_defined_default_def_p to handle cases which are implicitly
10834         defined.
10835         * tree-ssa.c (ssa_defined_default_def_p): New function.
10836         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
10837         which are implicitly defined.
10838         * tree-ssa.h (ssa_defined_default_def_p): Declare.
10840 2017-02-17  Richard Biener  <rguenther@suse.de>
10842         PR middle-end/79576
10843         * params.def (max-ssa-name-query-depth): Limit to 10.
10845 2017-02-17  Richard Biener  <rguenther@suse.de>
10847         PR tree-optimization/79552
10848         * tree-ssa-structalias.c (visit_loadstore): Properly verify
10849         default defs.
10851 2017-02-17  Richard Biener  <rguenther@suse.de>
10853         PR bootstrap/79567
10854         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
10856 2017-02-17  Marek Polacek  <polacek@redhat.com>
10858         PR middle-end/79536
10859         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
10860         (fold_negate_expr): New wrapper.
10862 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
10864         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
10865         Correct terminology and de-emphasize pre-standard behavior.
10867 2017-02-16  Alan Modra  <amodra@gmail.com>
10869         PR rtl-optimization/79286
10870         * ira.c (def_dominates_uses): New function.
10871         (update_equiv_regs): Don't create an equivalence for insns that
10872         may trap where the register def does not dominate the use.
10874 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
10876         PR rtl-optimization/78127
10877         * lra.c (lra): Call lra_eliminate before finish the loop after
10878         lra_constraint.
10880 2017-02-16  Richard Biener  <rguenther@suse.de>
10882         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
10883         isl/isl_val.h.
10884         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
10885         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
10886         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
10887         (isl_val_int_from_wi): New function.
10888         (extract_affine_gmp): Rename to ...
10889         (extract_affine_wi): ... this, take a widest_int.
10890         (extract_affine_int): Just wrap extract_affine_wi.
10891         (add_param_constraints): Use isl_val_int_from_wi.
10892         (add_loop_constraints): Likewise, and extract_affine_wi.
10894 2017-02-15  Jeff Law  <law@redhat.com>
10896         PR middle-end/79521
10897         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
10898         ira_init_register_move_cost_if_necessary.
10900 2017-02-15  Martin Sebor  <msebor@redhat.com>
10902         PR middle-end/32003
10903         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
10904         removed in a prior commit.
10906 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
10908         PR tree-optimization/79347
10909         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
10910         counters during peeling.
10912 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
10914         * Makefile.in (site.exp): Remove "set ISLVER".
10916 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
10918         PR target/79487
10919         * real.c (real_from_integer): Call real_convert even for decimal.
10921 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10923         PR target/79421
10924         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
10926 2017-02-14  Andrew Pinski  <apinski@cavium.com>
10928         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
10929         cores and change the partno/implementer to be correct.
10930         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
10931         the 'B" as the implementer.
10932         * config/aarch64/aarch64-tune.md: Regenerate.
10934 2017-02-14  Carl Love  <cel@us.ibm.com>
10936         * config/rs6000/rs6000.c: Add case statement entry to make the
10937         xvcvuxdsp built-in argument unsigned.
10938         * config/rs6000/vsx.md: Fix the source and return operand types so they
10939         match the instruction definitions from the ISA document.  Fix typo
10940         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
10941         statement.
10943 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
10945         PR target/79282
10946         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
10947         member early_clobber_alts.
10948         * lra-lives.c (reg_early_clobber_p): New.
10949         (process_bb_lives): Use it.
10950         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
10951         (debug_operand_data): Initialize early_clobber_alts.
10952         (setup_operand_alternative): Set up early_clobber_alts.
10953         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
10954         alternatives to new_insn_reg.
10955         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
10956         it.
10957         (lra_update_insn_regno_info): Pass the new arg.
10959 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
10961         PR middle-end/79505
10962         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
10963         (new_oacc_loop_raw): Don't clear already cleared fields.
10965         PR target/79481
10966         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
10967         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
10968         _mm512_prefetch_i64gather_ps): New inline functions and macros.
10970 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
10972         PR target/79495
10973         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
10975 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
10977         PR target/79498
10978         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
10979         the extra instruction to the right place to store 128-bit constant
10980         when needed.
10982 2017-02-14  Martin Sebor  <msebor@redhat.com>
10984         PR middle-end/79448
10985         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
10986           warning for strings of unknown length.
10988 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
10990         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
10992 2017-02-14  Jeff Law  <law@redhat.com>
10994         PR target/79404
10995         * ira-costs.c (scan_one_insn): Initialize register move costs
10996         for pseudos seen in USE/CLOBBER insns.
10998         PR tree-optimization/79095
10999         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
11000         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
11001         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
11002         if the operands are known to be not equal, then the resulting range
11003         is ~[0,0].
11004         (intersect_ranges): If the new range is ~[0,0] and the old range is
11005         wide, then prefer ~[0,0].
11006         * tree-vrp.c (overflow_comparison_p_1): New function.
11007         (overflow_comparison_p): New function.
11008         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
11009         if NAME is used in an overflow test.
11010         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
11011         overflow check that can be expressed as an equality test, then adjust
11012         ops to be that equality test.
11014 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11016         * config/s390/s390-builtin-types.def: Remove flags argument.
11017         * config/s390/s390.c (s390_init_builtins): Likewise.
11019 2017-02-14  Martin Liska  <mliska@suse.cz>
11021         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
11022         vector.  Fix trailing white spaces.
11024 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
11026         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
11027         HFmode.
11029 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11031         PR rtl-optimization/68664
11032         * config/arm/arm.c (arm_sched_can_speculate_insn):
11033         New function.  Declare prototype.
11034         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
11036 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11038         PR rtl-optimization/68664
11039         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
11040         New function.
11041         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
11043 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
11045         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
11046         max skip bytes for function, loop and jump.
11048 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11050         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
11051         ABS_EXPR for gimple dump.
11053 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
11055         PR target/79462
11056         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
11058         PR tree-optimization/79408
11059         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
11060         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
11061         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
11062         also if rhs1 is INTEGER_CST.
11064 2017-02-14  Richard Biener  <rguenther@suse.de>
11066         PR middle-end/79432
11067         * tree-into-ssa.c (insert_phi_nodes): When the function can
11068         have abnormal edges rewrite SSA names with broken use-def
11069         dominance out of SSA and register them for PHI insertion.
11071 2017-02-13  Martin Sebor  <msebor@redhat.com>
11073         PR middle-end/79496
11074         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
11075         clearing info.nowrite flag when snprintf size argument is a range.
11077 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
11079         * cprop.c (cprop_jump): Add missing space in string literal.
11080         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
11081         (get_constraint_for_component_ref): Likewise.
11082         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11083         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
11084         * lra-constraints.c (process_alt_operands): Likewise.
11085         * ipa-inline.c (inline_small_functions): Likewise.
11086         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
11087         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
11088         * trans-mem.c (diagnose_tm_1_op): Likewise.
11089         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
11090         (grid_parallel_clauses_gridifiable): Likewise.
11092         * config/nvptx/mkoffload.c (process): Add space in between
11093         , and %d.
11095         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
11096         "MOD4_SSE_REGS" and "ALL_REGS".
11098         * spellcheck.c (test_data): Add , in between "foo" and "food".
11100 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11102         PR target/79449
11103         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
11104         boundary crossing check and subsequent code generation agree.
11106 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11108         * config/aarch64/aarch64.c (has_memory_op): Delete.
11109         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
11110         has_memory_op.
11112 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
11114         PR rtl-optimization/79388
11115         PR rtl-optimization/79450
11116         * combine.c (distribute_notes): When removing TEM_INSN for which
11117         corresponding dest has last value recorded, invalidate that last
11118         value.
11120 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11122         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
11123         of explicit '@'.  Add missing assembly comment marker on branch costs
11124         printout.
11126 2017-02-13  Nathan Sidwell  <nathan@acm.org>
11128         * gengtype-lex.l (<in_struct>): Add '/'.
11130 2017-02-13  Martin Liska  <mliska@suse.cz>
11132         PR c/79471
11133         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
11135 2017-02-13  Richard Biener  <rguenther@suse.de>
11137         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
11138         Remove.
11139         * configure: Re-generate.
11140         * config.in: Likewise.
11141         * graphite-dependences.c: Simplify as if
11142         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
11143         * graphite-isl-ast-to-gimple.c: Likewise.
11144         * graphite-optimize-isl.c: Likewise.
11145         * graphite-poly.c: Likewise.
11146         * graphite-sese-to-poly.c: Likewise.
11147         * graphite.h: Likewise.
11148         * toplev.c: Include isl/version.h and use isl_version () for
11149         printing the ISL version.
11150         * doc/install.texi: Update ISL requirement.
11152 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
11154         * doc/standards.texi (Standards): Update reference to
11155         Objective-C 2.0.
11157 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
11159         * doc/extend.texi (Named Address Spaces): sourceware.org now
11160         defaults to https.
11161         * doc/install.texi (Binaries): Ditto.
11162         (Specific): Ditto.
11164 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
11166         * doc/cpp.texi: Replace "stringify"/"stringification" with C
11167         standard terminology "stringize"/"stringizing" throughout.
11168         * doc/cppinternals.texi: Likewise.
11170 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
11172         * doc/extend.texi: Fix some spelling mistakes and typos.
11173         * doc/invoke.texi: Likewise.
11175 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
11177         PR ipa/79224
11178         * params.def (inline-min-speedup) Change from 10 to 8.
11180 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
11182         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
11183         4.5.
11185 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
11187         PR ipa/79224
11188         * ipa-inline-analysis.c (get_minimal_bb): New function.
11189         (record_modified): Use it.
11190         (remap_edge_change_prob): Handle also ancestor functions.
11192 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
11194         * doc/contrib.texi (Contributors): Remove broken link into
11195         the Mauve CVS repository.
11197 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
11199         PR middle-end/79454
11200         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
11201         result computation whenever lhs doesn't have vector mode, not
11202         just when it has BLKmode.
11204 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
11206         * doc/makefile.texi (profiledbootstrap): Refer to the
11207         installation instructions only in textual form.
11209 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11211         PR target/79295
11212         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
11214 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
11216         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
11217         (Specific): Update mingw-w64 reference.
11218         (Binaries): Ditto.
11219         (Specific): Remove broken link to Renesas RX processor.
11221 2017-02-10  Richard Biener  <rguenther@suse.de>
11223         * toplev.c (process_options): Do not mention obsolete graphite
11224         options when printing sorry message about missing graphite support.
11225         Mention -floop-nest-optimize.
11227 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
11229         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
11230         (vtst_p16): Likewise.
11231         (vtstq_p8): Likewise.
11232         (vtstq_p16): Likewise.
11233         (vtst_p64): New.
11234         (vtstq_p64): Likewise.
11235         * config/arm/arm_neon.h (vgetq_lane_p64): New.
11236         (vset_lane_p64): New.
11237         (vsetq_lane_p64): New.
11239 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
11241         PR tree-optimization/79411
11242         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
11243         stmt operands are SSA_NAMEs used in abnormal phis.
11244         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
11245         phis.
11247 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
11249         PR ipa/70795
11250         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
11251         flag if needed.
11253 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
11255         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
11257 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11259         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
11260         to avoid warning.
11262         PR c/79413
11263         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
11264         not arbitrary TREE_CONSTANT.
11266         PR c/79431
11267         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
11268         "omp declare target link" attribute unless is_global_var.
11269         * omp-offload.c (find_link_var_op): Likewise.
11271 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11272             Chung-Lin Tang  <cltang@codesourcery.com>
11274         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
11275         OMP_CLAUSE_TILE.
11276         (gimplify_adjust_omp_clauses): Don't delete TILE.
11277         (gimplify_omp_for): Deal with TILE.
11278         * internal-fn.c (expand_GOACC_TILE): New function.
11279         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
11280         (GOACC_TILE): New.
11281         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
11282         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
11283         element fields.
11284         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
11285         avoid DIV for outermost collapse var.
11286         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
11287         Remove out of date comments, fix whitespace.
11288         * omp-general.c (omp_extract_for_data): Deal with tiling.
11289         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
11290         adjust OLF_DIM_BASE value.
11291         (struct omp_for_data): Add tiling field.
11292         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
11293         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
11294         for auto loops.  Remove default auto determining, moved to
11295         oacc_loop_fixed_partitions.
11296         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
11297         stmts, add e_mask field.
11298         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
11299         (oacc_thread_numbers): Use oacc_dim_call.
11300         (oacc_xform_tile): New.
11301         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
11302         (finish_oacc_loop): Adjust for ifns vector.
11303         (oacc_loop_discover_walk): Append loop abstraction sites to list,
11304         add case for GOACC_TILE fns.
11305         (oacc_loop_xform_loop): Delete.
11306         (oacc_loop_process): Iterate over call list directly, and add
11307         handling for GOACC_TILE fns.
11308         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
11309         dump partitioning.
11310         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
11311         vector partitioning to outer loops.  Assign 2 partitions to loops
11312         when available. Add TILE handling.
11313         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
11314         (execite_oacc_device_lower): Process GOACC_TILE fns,
11315         ignore unknown specs.
11316         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
11317         * tree.c (omp_clause_num_ops): Adjust TILE ops.
11318         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
11320 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
11322         * configure.ac (ACX_BUGURL): Update.
11323         * configure: Regenerate.
11325 2017-02-09  Richard Biener  <rguenther@suse.de>
11327         PR tree-optimization/69823
11328         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11329         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
11331 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
11333         * config/arc/arc-c.def: Add __NPS400__ definition.
11334         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
11335         (TARGET_NPS400): Define.
11337 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
11339         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
11340         file.
11341         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
11342         pointer, arch_info.
11343         (arc_cpu_types): Fill the arch_info field with a pointer into the
11344         arc_arch_types table.
11345         (arc_selected_cpu): Declare.
11346         * config/arc/arc.c (arc_selected_cpu): Make global.
11347         (arc_selected_arch): Delete.
11348         (arc_base_cpu): Delete.
11349         (arc_override_options): Remove references to deleted variables,
11350         update access to arch information.
11351         (ARC_OPT): Update access to arch information.
11352         (ARC_OPTX): Likewise.
11353         * config/arc/arc.h (arc_base_cpu): Remove declaration.
11354         (TARGET_ARC600): Update access to arch information.
11355         (TARGET_ARC601): Likewise.
11356         (TARGET_ARC700): Likewise.
11357         (TARGET_EM): Likewise.
11358         (TARGET_HS): Likewise.
11359         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
11360         information.
11362 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
11364         PR target/78604
11365         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
11366         condition/operands for integer GE/LE/GEU/LEU operations.
11368 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
11370         PR translation/79397
11371         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
11372         of AltiVec.
11374 2017-02-08  Martin Jambor  <mjambor@suse.cz>
11376         PR ipa/79375
11377         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
11378         whether allocation happened.
11379         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
11380         nothing was allocated.
11382 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
11384         PR tree-optimization/79408
11385         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
11386         constant, but SSA_NAME with a known integer range, use the minimum
11387         of that range instead of op1 to determine if modulo can be replaced
11388         with its first operand.
11390 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11392         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
11394 2017-02-08  Richard Biener  <rguenther@suse.de>
11396         PR tree-optimization/71824
11397         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
11398         Check all loops contained in the merged region.
11400 2017-02-07  Andrew Pinski  <apinski@cavium.com>
11402         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
11404 2017-02-07  Andrew Pinski  <apinski@cavium.com>
11406         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
11407         (thunderxt88): Likewise.
11408         (thunderxt81): Disable LSE and change v8.1 to v8.
11409         (thunderxt83): Likewise.
11411 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
11412             Richard Biener  <rguenther@suse.de>
11414         PR middle-end/79399
11415         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
11416         type from int to size_t.
11417         * ira-costs.c (struct_costs_size): Change type from int to size_t.
11419 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
11421         PR rtl-optimization/79386
11422         * cprop.c (bypass_conditional_jumps): Initialize
11423         bypass_last_basic_block already before splitting bbs after
11424         unconditional traps...
11425         (bypass_conditional_jumps): ... rather than here.
11427         PR target/79299
11428         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
11429         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
11430         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
11431         fix -masm=intel patterns.
11433 2017-02-07  Richard Biener  <rguenther@suse.de>
11435         PR tree-optimization/79256
11436         PR middle-end/79278
11437         * builtins.c (get_object_alignment_2): Use min_align_of_type
11438         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
11439         and ADJUST_FIELD_ALIGN.
11441         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
11442         type parameter.
11443         * doc/tm.texi: Regenerate.
11444         * stor-layout.c (layout_decl): Adjust.
11445         (update_alignment_for_field): Likewise.
11446         (place_field): Likewise.
11447         (min_align_of_type): Likewise.
11448         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
11449         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
11450         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
11451         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
11452         * config/frv/frv.c (frv_adjust_field_align): Likewise.
11453         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
11454         * config/i386/i386.c (x86_field_alignment): Likewise.
11455         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
11456         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
11457         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11458         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11459         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
11460         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
11461          Likewise.
11463         Revert
11464         2017-01-30  Richard Biener  <rguenther@suse.de>
11466         PR tree-optimization/79256
11467         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
11468         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
11469         alignment on TYPE.
11471 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
11473         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
11474         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
11475         builtins to SImode and emit a zero-extend, if necessary.
11477 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11479         * docs/invoke.texi (RISC-V Options): Alphabetize.
11481 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11483         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
11484         options.
11486 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11488         * config/riscv/riscv.c: New file.
11489         * gcc/common/config/riscv/riscv-common.c: Likewise.
11490         * config.gcc: Likewise.
11491         * config/riscv/constraints.md: Likewise.
11492         * config/riscv/elf.h: Likewise.
11493         * config/riscv/generic.md: Likewise.
11494         * config/riscv/linux.h: Likewise.
11495         * config/riscv/multilib-generator: Likewise.
11496         * config/riscv/peephole.md: Likewise.
11497         * config/riscv/pic.md: Likewise.
11498         * config/riscv/predicates.md: Likewise.
11499         * config/riscv/riscv-builtins.c: Likewise.
11500         * config/riscv/riscv-c.c: Likewise.
11501         * config/riscv/riscv-ftypes.def: Likewise.
11502         * config/riscv/riscv-modes.def: Likewise.
11503         * config/riscv/riscv-opts.h: Likewise.
11504         * config/riscv/riscv-protos.h: Likewise.
11505         * config/riscv/riscv.h: Likewise.
11506         * config/riscv/riscv.md: Likewise.
11507         * config/riscv/riscv.opt: Likewise.
11508         * config/riscv/sync.md: Likewise.
11509         * config/riscv/t-elf-multilib: Likewise.
11510         * config/riscv/t-linux: Likewise.
11511         * config/riscv/t-linux-multilib: Likewise.
11512         * config/riscv/t-riscv: Likewise.
11513         * configure.ac: Likewise.
11514         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
11515         Waterman as RISC-V maintainers.
11516         * doc/install.texi: Add RISC-V entries.
11517         * doc/invoke.texi: Add RISC-V options section.
11518         * doc/md.texi: Add RISC-V constraints section.
11519         * configure: Regenerated.
11521 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11523         PR target/66144
11524         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
11525         false values to be constant vectors with all 0 or all 1 bits set.
11526         (vcondu<mode><mode>): Likewise.
11527         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
11528         predicate.
11529         (fpmask_comparison_operator): Update comment.
11530         (vecint_comparison_operator): New predicate.
11531         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
11532         vector conditionals when the true and false values are constant
11533         vectors with all 0 bits or all 1 bits set.
11535 2017-02-06  Martin Sebor  <msebor@redhat.com>
11537         PR  tree-optimization/79376
11538         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
11540 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
11542         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
11543         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
11544         to simplify split condition.
11546 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
11548         * omp-expand.c (oxpand_omp_atomic_fetch_op,
11549         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
11550         false.
11552 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
11554         PR rtl-optimization/68664
11555         * target.def (can_speculate_insn): New hook.
11556         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
11557         * doc/tm.texi: Regenerate.
11558         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
11559         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
11560         (rs6000_sched_can_speculate_insn): New function.
11562 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
11564         PR tree-optimization/79284
11565         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
11566         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
11567         vectorizable_mask_load_store, vectorizable_operation,
11568         vect_is_simple_cond, get_same_sized_vectype): Use it instead
11569         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
11570         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
11571         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
11572         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11573         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11574         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
11575         is_gimple_assign (stmt).  Replace another such test with
11576         is_gimple_assign (stmt).
11578 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
11580         PR target/78883
11581         * config/avr/avr.c (rtl-iter.h): Include it.
11582         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
11583         (avr_legitimate_combined_insn): ...and implementation.
11585 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11587         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
11588         * config/s390/s390.c (s390_const_operand_ok)
11589         (s390_canonicalize_comparison, s390_extract_part)
11590         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
11591         (s390_contiguous_bitmask_p, s390_rtx_costs)
11592         (legitimize_pic_address): Likewise.
11593         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
11594         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
11595         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
11596         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
11597         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
11599 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
11601         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
11602         REGNO($0) == REGNO($1).
11604 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11606         * config/s390/linux.h(SIZE_TYPE): Add comment.
11608 2017-02-06  Julian Brown  <julian@codesourcery.com>
11609             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11610             Virendra Pathak  <virendra.pathak@broadcom.com>
11612         * config/aarch64/aarch64-cores.def: Change the scheduler
11613         to Thunderx2t99.
11614         * config/aarch64/aarch64.md: Include thunderx2t99.md.
11615         * config/aarch64/thunderx2t99.md: New file.
11617 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11619         * doc/standards.texi (Go Language): Update link to language
11620         standard.
11622 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
11624         * tree-eh.c (lower_resx): Sanitize profile.
11625         (cleanup_empty_eh_move_lp): Likewise.
11627 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
11629         PR tree-ssa/79347
11630         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
11631         ELSE_PROB.
11632         * cfgloopmanip.h (loop_version): Update prototype.
11633         * modulo-sched.c (sms_schedule): Update call of loop_version.
11634         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
11635         * tree-parloops.c (gen_parallel_loop): Likewise.
11636         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
11637         * tree-ssa-loop-split.c (split_loop): Likewise.
11638         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
11639         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
11641 2017-02-05  Martin Liska  <mliska@suse.cz>
11643         PR bootstrap/78985
11644         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
11645         variable to NULL.
11646         (print_operand_address): Initialize a struct to zero.
11648 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11650         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
11651         garbage collector only in textual form.
11653 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11655         * doc/extend.texi (x86 specific memory model extensions for
11656         transactional memory): Simplify a phrase.
11658 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11660         PR target/79353
11661         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
11662         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
11663         (atomic_storedi_1): Likewise.
11665 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
11667         PR tree-optimization/79338
11668         * tree-parloops.c (gather_scalar_reductions): Don't call
11669         vect_analyze_loop_form for loop->inner before destroying loop's
11670         loop_vinfo.
11672 2017-02-03  Martin Sebor  <msebor@redhat.com>
11674         PR tree-optimization/79327
11675         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
11676         when precision has resulted in leading zeros.
11677         (format_integer): Adjust the likely counter to assume an unknown
11678         argument that may be zero is non-zero.
11680 2017-02-03  Jason Merrill  <jason@redhat.com>
11682         PR c++/78689
11683         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
11684         avoid copying non-taken branch.
11686 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
11688         PR tree-optimization/79340
11689         * tree-vect-loop.c (vectorizable_reduction): Release
11690         vec_defs elements after safe_splicing them into other vectors.
11691         Formatting fixes.
11693         PR tree-optimization/79327
11694         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
11695         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
11696         dirtype.
11697         (format_integer): Use wide_int_to_tree instead of build_int_cst
11698         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
11699         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
11700         of shortest and longest sequence.
11702 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
11704         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11705         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
11707 2017-02-03  Walter Lee  <walt@tilera.com>
11709         PR target/78862
11710         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
11711         after initial stackframe link reg save.
11712         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
11714 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
11716         PR target/79354
11717         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
11718         wu for stxssp alternative.
11720 2017-02-03  Martin Sebor  <msebor@redhat.com>
11722         PR tree-optimization/79352
11723         * gimple-fold.c (get_range_strlen): Add argument.
11724         (get_range_strlen): Change return type to bool.
11725         (get_maxval_strlen): Pass in a dummy argument.
11726         * gimple-fold.h (get_range_strlen): Change return type to bool.
11727         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
11728         * tree.h (array_at_struct_end_p): Add argument.
11729         * tree.c (array_at_struct_end_p): Handle it.
11731 2017-02-03  Martin Liska  <mliska@suse.cz>
11733         PR lto/66295
11734         * multiple_target.c (create_dispatcher_calls): Redirect edge
11735         from a caller of a dispatcher.
11736         (expand_target_clones): Make the clones local.
11737         (ipa_target_clone): Do both target clones and resolvers.
11738         (ipa_dispatcher_calls): Remove the pass.
11739         (pass_dispatcher_calls::gate): Likewise.
11740         (make_pass_dispatcher_calls): Likewise.
11741         * passes.def (pass_target_clone): Put as very first IPA early
11742         pass.
11744 2017-02-03  Martin Liska  <mliska@suse.cz>
11746         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
11747         in case of a function with ifunc attribute.
11749 2017-02-03  Martin Liska  <mliska@suse.cz>
11751         * cgraph.c (cgraph_node::dump): Dump function version info.
11752         * symtab.c (symtab_node::dump_base): Add missing new line.
11754 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
11756         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
11757         (ifcombine_ifandif): Use it.
11759 2017-02-03  Martin Liska  <mliska@suse.cz>
11761         * doc/invoke.texi: Document default value for
11762         use-after-scope-direct-emission-threshold.
11764 2017-02-03  Martin Liska  <mliska@suse.cz>
11766         PR tree-optimization/79339
11767         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
11768         (format_floating): Likewise.
11770 2017-02-03  Martin Liska  <mliska@suse.cz>
11772         PR ipa/79337
11773         * ipa-prop.c (ipa_node_params_t::insert): Remove current
11774         implementation.
11775         (ipa_node_params_t::remove): Likewise.
11776         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
11777         initialization from removed ipa_node_params_t::insert.
11778         (ipa_node_params::~ipa_node_params): Move from removed
11779         ipa_node_params_t::release.
11780         * symbol-summary.h (symbol_summary::m_released): New member.
11781         Do not release a summary twice.  Do not allow to call finalizer
11782         for types of a summary that live in GGC memory.
11784 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11786         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
11787         cmp_branch fusion.
11789 2017-02-02  Martin Sebor  <msebor@redhat.com>
11791         PR middle-end/79275
11792         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
11793         (format_string): Tighten up the range of output for non-constant
11794         strings and correct the expected range for wide non-constant strings.
11796 2017-02-02  Martin Sebor  <msebor@redhat.com>
11798         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
11800         PR middle-end/32003
11801         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
11802         index.
11803         (-fdump-tree-@var): Add to index and document how to come up
11804         with pass-specific option and dump file names.
11805         (-fdump-passes): Clarify where to look for output.
11807 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
11809         PR middle-end/77445
11810         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
11811         statistics of the analyzed path; allow threading for speed when
11812         any of BBs along the path are optimized for speed.
11814 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
11816         PR middle-end/78468
11817         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
11818         settings of the virtual registers.
11820         Revert again
11821         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11823         * explow.c (get_dynamic_stack_size): Take known alignment of stack
11824         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11825         needed.
11827 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11829         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
11830         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
11832 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11834         * config/s390/s390.md: Add missing comments with the expanded
11835         mnemonics.
11836         * config/s390/vector.md: Likewise.
11837         * config/s390/vx-builtins.md: Likewise.
11839 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
11841         PR target/79197
11842         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
11843         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
11844         conditions on a single line.
11846 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11848         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
11849         __S390_VX__ to __VX__.
11851 2017-02-01  Andrew Pinski  <apinski@cavium.com>
11853         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
11854         stmt_info to record_stmt_cost.
11855         (vect_get_known_peeling_cost): Pass stmt_info if known to
11856         record_stmt_cost.
11857         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
11858         cpu_vector_cost field into
11859         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
11860         field into vec_int_stmt_cost and vec_fp_stmt_cost.
11861         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
11862         splitting of scalar_stmt_cost and vec_stmt_cost.
11863         (thunderx_vector_cost): Likewise.
11864         (cortexa57_vector_cost): LIkewise.
11865         (exynosm1_vector_cost): Likewise.
11866         (xgene1_vector_cost): Likewise.
11867         (thunderx2t99_vector_cost): Improve after the splitting of the two
11868         fields.
11869         (aarch64_builtin_vectorization_cost): Update for the splitting of
11870         scalar_stmt_cost and vec_stmt_cost.
11872 2017-02-01  Torvald Riegel  <triegel@redhat.com>
11873             Richard Henderson  <rth@redhat.com>
11875         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
11876         conditional on existance of a fast atomic load.
11877         * optabs-query.c (can_atomic_load_p): New function.
11878         * optabs-query.h (can_atomic_load_p): Declare it.
11879         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
11880         no fast atomic load is available for the particular size of access.
11881         (expand_atomic_compare_and_swap): Likewise.
11882         (expand_atomic_load): Likewise.
11883         (expand_atomic_store): Likewise.
11884         (expand_atomic_fetch_op): Likewise.
11885         * testsuite/lib/target-supports.exp
11886         (check_effective_target_sync_int_128): Remove x86 because it provides
11887         no fast atomic load.
11888         (check_effective_target_sync_int_128_runtime): Likewise.
11890 2017-02-01  Richard Biener  <rguenther@suse.de>
11892         * graphite.c: Include tree-vectorizer.h for find_loop_location.
11893         (graphite_transform_loops): Provide opt-info for optimized nests.
11894         * tree-parloop.c (parallelize_loops): Provide opt-info for
11895         parallelized loops.
11897 2017-02-01  Richard Biener  <rguenther@suse.de>
11899         PR middle-end/79315
11900         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
11901         was not set before.
11903 2017-02-01  Richard Biener  <rguenther@suse.de>
11905         PR tree-optimization/71824
11906         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
11907         Verify the loops are valid in the merged SESE region.
11908         (scop_detection::can_represent_loop_1): Check analyzing the
11909         evolution of the number of iterations in the region succeeds.
11911 2017-01-31  Ian Lance Taylor  <iant@golang.org>
11913         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
11914         REG_ARGS_SIZE note to 32-bit push insns and call insn.
11916 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
11918         PR preprocessor/79210
11919         * input.c (get_substring_ranges_for_loc): Replace line_width
11920         assertion with error-handling.
11922 2017-01-31  Richard Biener  <rguenther@suse.de>
11924         PR tree-optimization/77318
11925         * graphite-sese-to-poly.c (extract_affine): Fix assert.
11926         (create_pw_aff_from_tree): Take loop parameter.
11927         (add_condition_to_pbb): Pass loop of the condition to
11928         create_pw_aff_from_tree.
11930 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
11932         * config/s390/s390.c (s390_asan_shadow_offset): New function.
11933         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
11935 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11937         PR target/78597
11938         PR target/79038
11939         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
11940         no longer used.
11941         (convert_int_to_float128): Likewise.
11942         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
11943         (convert_int_to_float128): Likewise.
11944         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
11945         (UNSPEC_IEEE128_CONVERT): Likewise.
11946         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
11947         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
11948         Use local variables for IBM extended format.
11949         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
11950         (fix_trunc<mode>si2_fprs): Likewise.
11951         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
11952         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
11953         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
11954         to know that we can now have integers of all sizes in vector
11955         registers.
11956         (fix<uns>_<mode>di2_hw): Likewise.
11957         (float<uns>_<mode>si2_hw): Likewise.
11958         (fix_<mode>si2_hw): Likewise.
11959         (fixuns_<mode>si2_hw): Likewise.
11960         (float<uns>_<mode>di2_hw): Likewise.
11961         (float_<mode>di2_hw): Likewise.
11962         (float_<mode>si2_hw): Likewise.
11963         (floatuns_<mode>di2_hw): Likewise.
11964         (floatuns_<mode>si2_hw): Likewise.
11965         (xscvqp<su>wz_<mode>): Delete, no longer used.
11966         (xscvqp<su>dz_<mode>): Likewise.
11967         (xscv<su>dqp_<mode>): Likewise.
11968         (ieee128_mfvsrd_64bit): Likewise.
11969         (ieee128_mfvsrd_32bit): Likewise.
11970         (ieee128_mfvsrwz): Likewise.
11971         (ieee128_mtvsrw): Likewise.
11972         (ieee128_mtvsrd_64bit): Likewise.
11973         (ieee128_mtvsrd_32bit): Likewise.
11975 2017-01-31  Martin Liska  <mliska@suse.cz>
11977         PR ipa/79285
11978         * ipa-prop.c (ipa_free_all_node_params): Call release method
11979         instead of ~sumbol_summary to not to trigger double times
11980         dtor of hash_map.
11982 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
11984         PR tree-optimization/71691
11985         * bitmap.h (class auto_bitmap): New.
11986         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
11987         is_maybe_undefined instead of ssa_undefined_value_p.
11989 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11991         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
11992         __S390_ARCH_LEVEL__ to __ARCH__.
11994 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
11996         PR tree-optimization/79267
11997         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
11998         if should_remove_lhs_p is true.
12000 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
12002         PR debug/63238
12003         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
12004         (add_alignment_attribute): New.
12005         (base_type_die): Add alignment attribute.
12006         (subrange_type_die): Likewise.
12007         (modified_type_die): Likewise.
12008         (gen_array_type_die): Likewise.
12009         (gen_descr_array_type_die: Likewise.
12010         (gen_enumeration_type_die): Likewise.
12011         (gen_subprogram_die): Likewise.
12012         (gen_variable_die): Likewise.
12013         (gen_field_die): Likewise.
12014         (gen_ptr_to_mbr_type_die): Likewise.
12015         (gen_struct_or_union_type_die): Likewise.
12016         (gen_subroutine_type_die): Likewise.
12017         (gen_typedef_die): Likewise.
12018         (base_type_cmp): Compare alignment attribute.
12020 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
12022         PR target/79170
12023         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
12024         (setb_unsigned) New pattern for setb with CCUNS.
12025         * config/rs6000/rs6000.c (expand_block_compare): Use a different
12026         subfc./subfe sequence to avoid overflow problems.  Generate a
12027         shorter sequence with cmpld/setb for power9.
12028         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
12029         for generating subfc. instruction.
12030         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
12031         now uses this instruction.
12033 2017-01-30  Ian Lance Taylor  <iant@google.com>
12035         PR debug/79289
12036         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
12037         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
12039 2017-01-30  Martin Sebor  <msebor@redhat.com>
12041         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
12042         Move constant to the right of a relational operator.
12043         (get_mpfr_format_length, format_character, format_string): Ditto.
12044         (should_warn_p, maybe_warn): Same.
12046         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
12048 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
12050         PR lto/79061
12051         * asan.c (get_translation_unit_decl): Remove function.
12052         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
12054 2017-01-30  Martin Liska  <mliska@suse.cz>
12056         PR gcov-profile/79259
12057         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
12058         -fprofile-generate.
12060 2017-01-30  Martin Liska  <mliska@suse.cz>
12062         PR bootstrap/78985
12063         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
12064         Initialize variables with NULL value.
12066 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
12068         PR target/79260
12069         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
12070         tm_p_file.
12071         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
12073 2017-01-30  Richard Biener  <rguenther@suse.de>
12075         PR tree-optimization/79276
12076         * tree-vrp.c (process_assert_insertions): Properly adjust common
12077         when removing a duplicate.
12079         * gcc.dg/torture/pr79276.c: New testcase.
12081 2017-01-30  Richard Biener  <rguenther@suse.de>
12083         PR tree-optimization/79256
12084         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
12085         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
12086         alignment on TYPE.
12087         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
12089 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12091         PR target/79240
12092         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
12093         ("*r<noxa>sbg_<mode>_sll_bitmask")
12094         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12095         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
12096         Use contiguous_bitmask_nowrap_operand.
12098 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12100         PR target/79268
12101         * config/rs6000/altivec.h (vec_xl): Revise #define.
12102         (vec_xst): Likewise.
12104 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
12106         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
12108 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
12110         PR rtl-optimization/79194
12111         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
12112         traps before call to bypass_conditional_jumps.
12114 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
12116         PR tree-optimization/71374
12117         * lra-constraints.c (check_conflict_input_operands): New.
12118         (match_reload): Use it.
12120 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
12122         PR target/79131
12123         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
12124         account to calculate conflict_set.
12126 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
12128         PR rtl-optimization/78559
12129         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
12130         other_insn in combine.
12132 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
12134         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
12135         uint16_type_node for BT_UINT16.
12137 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
12139         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
12140         "RTL Tests" to menu.
12141         (GIMPLE Tests): New node.
12142         (RTL Tests): New node.
12144 2017-01-27  Richard Biener  <rguenther@suse.de>
12146         PR tree-optimization/79245
12147         * tree-loop-distribution.c (distribute_loop): Apply cost
12148         modeling also to detected patterns.
12150 2017-01-27  Richard Biener  <rguenther@suse.de>
12152         PR tree-optimization/71433
12153         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
12154         (compare_assert_loc): New function.
12155         (process_assert_insertions): Sort and optimize assert locations
12156         to remove duplicates and push down identical assertions on
12157         edges to their destination block.
12159 2017-01-27  Richard Biener  <rguenther@suse.de>
12161         PR tree-optimization/79244
12162         * tree-vrp.c (remove_range_assertions): Forcefully propagate
12163         out SSA names even if abnormal.
12165 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
12167         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
12168         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
12169         instead of MPFR_RNDN.
12171 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
12173         PR target/79239
12174         * arm.c (arm_option_override): Don't call build_target_option_node
12175         until after doing all option overrides.
12176         (arm_valid_target_attribute_tree): Likewise.
12178 2017-01-27  Martin Liska  <mliska@suse.cz>
12180         * doc/invoke.texi (-fprofile-arcs): Document profiling support
12181         for {cd}tors and C++ {cd}tors.
12183 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12185         * config/s390/s390.md ("*setmem_long_and")
12186         ("*setmem_long_and_31z"): Use zero_extend instead of and.
12188 2017-01-26  Martin Sebor  <msebor@redhat.com>
12190         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
12191         of precision.
12193 2017-01-26  Martin Sebor  <msebor@redhat.com>
12195         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
12196         HAVE_DFmode before using XFmode or DFmode.
12197         (parse_directive): Avoid using the z length modifier to avoid
12198         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
12200         PR middle-end/78703
12201         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
12202         to accept adjustment as an array.
12203         (get_int_range): New function.
12204         (struct directive): Make width and prec arrays.
12205         (directive::set_width, directive::set_precision): Call get_int_range.
12206         (format_integer, format_floating): Handle width and precision ranges.
12207         (format_string, parse_directive): Same.
12209 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12211         PR debug/79129
12212         * dwarf2out.c (generate_skeleton_bottom_up): For children with
12213         comdat_type_p set, just clone them, but keep the children in the
12214         original DIE.
12216         PR debug/78835
12217         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
12218         which have direct callers with -fvar-tracking-assignments enabled
12219         in the current TU.
12220         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
12221         inside of type units.
12223 2017-01-26  Martin Sebor  <msebor@redhat.com>
12225         PR middle-end/78703
12226         * gimple-ssa-sprintf.c (struct result_range): Add likely and
12227         unlikely counters.
12228         (struct format_result): Replace number_chars, number_chars_min,
12229         and number_chars_max with a single member of struct result_range.
12230         Remove bounded.
12231         (format_result::operator+=): Adjust.
12232         (struct fmtresult): Remove bounded.  Handle likely and unlikely
12233         counters.
12234         (fmtresult::adjust_for_width_or_precision): New function.
12235         (fmtresult:type_max_digits): New function.
12236         (bytes_remaining): Handle likely and unlikely counters.
12237         (min_bytes_remaining): Remove.
12238         (format_percent): Simplify.
12239         (format_integer, format_floating): Set likely and unlikely counters.
12240         (get_string_length, format_character, format_string): Same.
12241         (format_plain, should_warn_p): New function.
12242         (maybe_warn): Call should_warn_p.  Update diagnostic messages
12243         and handle those for all directives, including plain strings.
12244         (format_directive): Handle likely and unlikely counters.
12245         Remove unnecessary quoting from diagnostics.  Add an informational
12246         note.
12247         (add_bytes): Remove.
12248         (pass_sprintf_length::compute_format_length): Simplify.
12249         (try_substitute_return_value): Handle likely and unlikely counters.
12251 2017-01-26  Carl Love  <cel@us.ibm.com>
12253         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
12254         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
12256 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
12258         PR target/79131
12259         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
12260         endianess for subregs into account.
12261         * lra-constraints.c (lra_constraints): Do risky transformations
12262         always on the first iteration.
12263         * lra-lives.c (check_pseudos_live_through_calls): Add arg
12264         last_call_used_reg_set.
12265         (process_bb_lives): Define and use last_call_used_reg_set.
12266         * lra.c (lra): Always continue after lra_constraints on the first
12267         iteration.
12269 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
12271         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
12272         constant.
12273         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
12275 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12277         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
12278         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
12279         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
12280         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
12281         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
12282         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
12283         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
12284         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
12285         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
12287 2017-01-26  Marek Polacek  <polacek@redhat.com>
12289         PR c/79199
12290         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
12291         for the third operand.
12293 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12295         PR middle-end/79236
12296         * omp-low.c (struct omp_context): Add simt_stmt field.
12297         (scan_omp_for): Return omp_context *.
12298         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
12299         context to the _simt_ SIMD stmt.
12300         (lower_omp_for): For combined SIMD with sibling _simt_
12301         SIMD, make sure to use the same decls in _looptemp_
12302         clauses as in the sibling.
12304 2017-01-26  David Sherwood  <david.sherwood@arm.com>
12306         PR middle-end/79212
12307         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
12308         all contexts.
12310 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12312         PR target/70465
12313         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
12314         emit fld b; fld a; if possible.
12316         * brig-builtins.def: Update copyright years.
12317         * config/arm/arm_acle_builtins.def: Update copyright years.
12319 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
12321         PR target/79179
12322         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
12323         constraint instead of o for the stxsd instruction.
12325 2017-01-25  Carl Love  <cel@us.ibm.com>
12327         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
12328         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
12330 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
12332         * doc/invoke.texi (C++ Dialect Options): Fix typo.
12334 2017-01-25  Richard Biener  <rguenther@suse.de>
12336         PR tree-optimization/69264
12337         * target.def (vector_alignment_reachable): Improve documentation.
12338         * doc/tm.texi: Regenerate.
12339         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
12340         and add a comment.
12341         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
12342         earlier changes with respect to TYPE_USER_ALIGN.
12343         (vector_alignment_reachable_p): Likewise.  Improve dumping.
12345 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12347         PR target/79145
12348         * config/arm/arm.md (xordi3): Force constant operand into a register
12349         for TARGET_IWMMXT.
12351 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12353         * doc/invoke.texi (-fstore-merging): Correct default optimization
12354         levels at which it is enabled.
12355         (-O): Move -fstore-merging from list to...
12356         (-O2): ... Here.
12358 2017-01-25  Richard Biener  <rguenther@suse.de>
12360         PR debug/78363
12361         * omp-expand.c: Include debug.h.
12362         (expand_omp_taskreg): Make sure to generate early debug before
12363         outlining anything from a function.
12364         (expand_omp_target): Likewise.
12365         (grid_expand_target_grid_body): Likewise.
12367 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
12369         PR lto/79061
12370         * asan.c (get_translation_unit_decl): New function.
12371         (asan_add_global): Extract modules file name from globals
12372         TRANSLATION_UNIT_DECL name.
12374 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12376         PR target/77439
12377         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
12378         for long calls with APCS frame and VFP.
12380 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
12382         * cfg.c (original_copy_tables_initialized_p): New function.
12383         * cfg.h (original_copy_tables_initialized_p): New decl.
12384         * cfgrtl.c (relink_block_chain): Guard the call to
12385         free_original_copy_tables with a call to
12386         original_copy_tables_initialized_p.
12387         * cgraph.h (symtab_node::native_rtl_p): New decl.
12388         * cgraphunit.c (symtab_node::native_rtl_p): New function.
12389         (symtab_node::needed_p): Don't assert for early assembly output
12390         for __RTL functions.
12391         (cgraph_node::finalize_function): Set "force_output" for __RTL
12392         functions.
12393         (cgraph_node::analyze): Bail out early for __RTL functions.
12394         (analyze_functions): Update assertion to support __RTL functions.
12395         (cgraph_node::expand): Bail out early for __RTL functions.
12396         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
12397         __RTL functions.
12398         * function.h (struct function): Update comment for field
12399         "pass_startwith".
12400         * gimple-expr.c: Include "tree-pass.h".
12401         (gimple_has_body_p): Return false for __RTL functions.
12402         * Makefile.in (OBJS): Add run-rtl-passes.o.
12403         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
12404         accessor.
12405         (gcc::pass_manager::get_clean_slate): New accessor.
12406         * passes.c: Include "insn-addr.h".
12407         (should_skip_pass_p): Add logging.  Update logic for running
12408         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
12409         property-provider override so it is only done for gimple passes.
12410         Don't skip dfinit.
12411         (skip_pass): New function.
12412         (execute_one_pass): Call skip_pass when skipping passes.
12413         * read-md.c (md_reader::read_char): Support filtering
12414         the input to a subset of line numbers.
12415         (md_reader::md_reader): Initialize fields
12416         m_first_line and m_last_line.
12417         (md_reader::read_file_fragment): New function.
12418         * read-md.h (md_reader::read_file_fragment): New decl.
12419         (md_reader::m_first_line): New field.
12420         (md_reader::m_last_line): New field.
12421         * read-rtl-function.c (function_reader::create_function): Only
12422         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
12423         curr_properties.  Set DECL_INITIAL to a dummy block.
12424         (read_rtl_function_body_from_file_range): New function.
12425         * read-rtl-function.h (read_rtl_function_body_from_file_range):
12426         New decl.
12427         * run-rtl-passes.c: New file.
12428         * run-rtl-passes.h: New file.
12430 2017-01-24  Jeff Law  <law@redhat.com>
12432         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
12433         buffer size.
12435 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
12437         PR tree-optimization/79159
12438         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
12439         (record_nonwrapping_iv): Improve boundary using above function if no
12440         value range information.
12442 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12443             Martin Jambor  <mjambor@suse.cz>
12445         * brig-builtins.def: New file.
12446         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
12447         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
12448         (DEF_HSAIL_SAT_BUILTIN): Likewise.
12449         (DEF_HSAIL_INTR_BUILTIN): Likewise.
12450         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
12451         * builtin-types.def (BT_INT8): New.
12452         (BT_INT16): Likewise.
12453         (BT_UINT8): Likewise.
12454         (BT_UINT16): Likewise.
12455         (BT_FN_ULONG): Likewise.
12456         (BT_FN_UINT_INT): Likewise.
12457         (BT_FN_UINT_ULONG): Likewise.
12458         (BT_FN_UINT_LONG): Likewise.
12459         (BT_FN_UINT_PTR): Likewise.
12460         (BT_FN_ULONG_PTR): Likewise.
12461         (BT_FN_INT8_FLOAT): Likewise.
12462         (BT_FN_INT16_FLOAT): Likewise.
12463         (BT_FN_UINT32_FLOAT): Likewise.
12464         (BT_FN_UINT16_FLOAT): Likewise.
12465         (BT_FN_UINT8_FLOAT): Likewise.
12466         (BT_FN_UINT64_FLOAT): Likewise.
12467         (BT_FN_UINT16_UINT32): Likewise.
12468         (BT_FN_UINT32_UINT16): Likewise.
12469         (BT_FN_UINT16_UINT16_UINT16): Likewise.
12470         (BT_FN_INT_PTR_INT): Likewise.
12471         (BT_FN_UINT_PTR_UINT): Likewise.
12472         (BT_FN_LONG_PTR_LONG): Likewise.
12473         (BT_FN_ULONG_PTR_ULONG): Likewise.
12474         (BT_FN_VOID_UINT64_UINT64): Likewise.
12475         (BT_FN_UINT8_UINT8_UINT8): Likewise.
12476         (BT_FN_INT8_INT8_INT8): Likewise.
12477         (BT_FN_INT16_INT16_INT16): Likewise.
12478         (BT_FN_INT_INT_INT): Likewise.
12479         (BT_FN_UINT_FLOAT_UINT): Likewise.
12480         (BT_FN_FLOAT_UINT_UINT): Likewise.
12481         (BT_FN_ULONG_UINT_UINT): Likewise.
12482         (BT_FN_ULONG_UINT_PTR): Likewise.
12483         (BT_FN_ULONG_ULONG_ULONG): Likewise.
12484         (BT_FN_UINT_UINT_UINT): Likewise.
12485         (BT_FN_VOID_UINT_PTR): Likewise.
12486         (BT_FN_UINT_UINT_PTR: Likewise.
12487         (BT_FN_UINT32_UINT64_PTR): Likewise.
12488         (BT_FN_INT_INT_UINT_UINT): Likewise.
12489         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
12490         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
12491         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
12492         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
12493         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
12494         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
12495         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
12496         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
12497         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
12498         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
12499         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
12500         * doc/frontends.texi: List BRIG FE.
12501         * doc/install.texi (Testing): Add BRIG tesring requirements.
12502         * doc/invoke.texi (Overall Options): Mention BRIG.
12503         * doc/standards.texi (Standards): Doucment BRIG HSA version.
12505 2017-01-24  Richard Biener  <rguenther@suse.de>
12507         PR translation/79208
12508         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
12510 2017-01-24  Martin Jambor  <mjambor@suse.cz>
12512         PR bootstrap/79198
12513         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
12514         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
12515         and known_contexts.
12517 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
12519         PR middle-end/79123
12520         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
12521         casts from signed to unsigned really don't have a range.
12523 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
12525         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
12526         GMP_RNDx for compatiblity.
12528 2017-01-24  Martin Liska  <mliska@suse.cz>
12530         PR bootstrap/79132
12531         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
12532         that would prevent us to call alloca with -1 as argument.
12534 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
12536         * dwarf2out.c (output_compilation_unit_header, output_file_names):
12537         Avoid -Wformat-security warning.
12539 2017-01-23  Andrew Pinski  <apinski@cavium.com>
12541         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
12542         cost table.
12544 2017-01-23  Martin Sebor  <msebor@redhat.com>
12546         PR middle-end/78703
12547         * gimple-ssa-sprintf.c (warn_level): New global.
12548         (format_integer): Use it here and throughout the rest of the file.
12549         Use the same switch to compute sign as base.
12550         (maybe_warn): New function.
12551         (format_directive): Factor out warnings into maybe_warn.
12552         Add debugging output.  Use warn_level.
12553         (add_bytes): Use warn_level.
12554         (pass_sprintf_length::compute_format_length): Add debugging output.
12555         (try_substitute_return_value): Same.
12556         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
12558         PR middle-end/78703
12559         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
12560         (struct fmtresult, format_integer, format_floating): Adjust.
12561         (fmtresult::fmtresult): Set max correctly in two argument ctor.
12562         (get_string_length, format_string,format_directive): Same.
12563         (pass_sprintf_length::compute_format_length): Same.
12564         (try_substitute_return_value): Simplify slightly.
12566         PR middle-end/78703
12567         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
12568         (fmtresult::operator+=): Outlined.
12569         (struct fmtresult): Add ctors.
12570         (struct conversion_spec): Rename...
12571         (struct directive): ...to this.  Add and remove data members.
12572         (directive::set_width, directive::set_precision): New functions.
12573         (format_percent): Use fmtresult ctor.
12574         (get_width_and_precision): Remove.
12575         (format_integer): Make naming changes.  Avoid computing width and
12576         precision.
12577         (format_floating): Same.  Adjust indentation.
12578         (format_character, format_none): New functions.
12579         (format_string): Moved character handling to format_character.
12580         (format_directive): Remove arguments, change return type.
12581         (parse_directive): New function.
12582         (pass_sprintf_length::compute_format_length): Move directive
12583         parsing to parse_directive.
12585 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
12587         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
12588         (assign_assembler_name_if_needed): ... this.
12589         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
12590         (assign_assembler_name_if_needed): ... this.
12591         (free_lang_data_in_cgraph): Adjust callers.
12592         * cgraphunit.c (cgraph_node::analyze): Likewise.
12593         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
12594         Likewise.
12596 2017-01-23  Richard Biener  <rguenther@suse.de>
12598         PR tree-optimization/79088
12599         PR tree-optimization/79188
12600         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
12601         resetting loop bounds after last path deletion.  Reset loop
12602         bounds of the target loop, make code match the comments.
12603         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
12604         Make sure loops need no fixups.
12606 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12608         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
12609         exponent support with double type for first argument.
12610         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
12611         type returned by __builtin_vec_extract_sig,
12612         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
12613         functions from "vector int" to "vector unsigned int" or from
12614         "vector long long int" to "vector unsigned long long int".
12615         Changed type returned by __builtin_vec_extract_exp,
12616         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
12617         functions from "vector int" to "vector unsigned int" or from
12618         "vector long long int" to "vector unsigned long long int".
12619         Changed return type of __builtin_vec_test_data_class,
12620         __builtin_vec_test_data_class_sp, and
12621         __builtin_vec_test_data_class_dp from "vector int" to
12622         "vector bool int" or from "vector long long int" to "vector bool
12623         long long int" and changed second argument type from "unsigned
12624         int" to "int".  Added new overloaded function forms "vector float
12625         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
12626         "vector float __builtin_vec_insert_exp_sp (vector float, vector
12627         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
12628         double, vector unsigned long long int)" and "vector double
12629         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
12630         long int)".  Changed return type of
12631         __builtin_scalar_test_data_class and
12632         __builtin_scalar_test_data_class_sp and
12633         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
12634         int" and changed second argument from "unsigned int" to "int".
12635         Changed type returned by __builtin_scalar_test_neg,
12636         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
12637         from "int" to "bool int".  Added new overloaded function form
12638         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
12639         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
12640         exponent double-precision with floating point first argument.
12641         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
12642         documentation of scalar_test_data_class, scalar_test_neg,
12643         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
12644         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
12645         vec_test_data_class built-in functions to reflect refinements in
12646         their type signatures.
12648 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
12650         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
12651         size of buf.
12652         (aarch64_elf_asm_destructor): Likewise.
12654 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
12656         PR rtl-optimization/78634
12657         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
12658         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
12659         * ifcvt.c (noce_try_cmove): Add missing cost check.
12661         PR rtl-optimization/71724
12662         * combine.c (if_then_else_cond): Look for situations where it is
12663         beneficial to undo the work of one of the recursive calls.
12665 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
12667         PR tree-optimization/70754
12668         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
12669         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
12670         combined stmt before it if not NULL.
12671         (combine_chains): Process refs reversely and compute dominance point
12672         for root ref.
12674 2017-01-23  Martin Liska  <mliska@suse.cz>
12676         PR tree-optimization/79196
12677         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
12678         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
12679         instead of memcmp.
12680         (strlen_optimize_stmt): Call the renamed function.
12682 2017-01-23  Michael Matz  <matz@suse.de>
12684         PR tree-optimization/78384
12685         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
12687 2017-01-23  Richard Biener  <rguenther@suse.de>
12689         PR tree-optimization/79186
12690         * tree-vrp.c (register_new_assert_for): Make sure we've seen
12691         both incoming edges before moving an assert.
12693 2017-01-23  Martin Jambor  <mjambor@suse.cz>
12695         * ipa-prop.c (load_from_param_1): Removed.
12696         (load_from_unmodified_param): Bits from load_from_param_1 put back
12697         here.
12698         (load_from_param): Removed.
12699         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
12700         with stmt.  Reverted back to use of load_from_unmodified_param.
12702 2017-01-23  Martin Jambor  <mjambor@suse.cz>
12704         PR ipa/79108
12705         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
12706         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
12707         field a pointer to garbage collected vector, mark lattices and
12708         ipcp_orig_node with GTY((skip)).
12709         (ipa_get_param_count): Adjust to descriptors being a pointer.
12710         (ipa_get_param): Likewise.
12711         (ipa_get_type): Likewise.
12712         (ipa_get_param_move_cost): Likewise.
12713         (ipa_set_param_used): Likewise.
12714         (ipa_get_controlled_uses): Likewise.
12715         (ipa_set_controlled_uses): Likewise.
12716         (ipa_is_param_used): Likewise.
12717         (ipa_node_params_t): Move into garbage collector.  New methods insert
12718         and remove.
12719         (ipa_node_params_sum): Annotate wth GTY(()).
12720         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
12721         garbage collected.
12722         (ipa_load_from_parm_agg): Adjust declaration.
12723         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
12724         * ipa-profile.c (ipa_profile): Likewise.
12725         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
12726         (ipa_populate_param_decls): Make descriptors parameter garbage
12727         collected.
12728         (ipa_dump_param): Adjust to descriptors being a pointer.
12729         (ipa_alloc_node_params): Likewise.
12730         (ipa_initialize_node_params): Likewise.
12731         (load_from_param_1): Make descriptors parameter garbage collected.
12732         (load_from_unmodified_param): Likewise.
12733         (load_from_param): Likewise.
12734         (ipa_load_from_parm_agg): Likewise.
12735         (ipa_node_params::~ipa_node_params): Removed.
12736         (ipa_free_all_node_params): Remove call to delete operator.
12737         (ipa_node_params_t::insert): New.
12738         (ipa_node_params_t::remove): Likewise.
12739         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
12740         copy known_csts and known_contexts vectors.
12741         (ipa_read_node_info): Adjust to descriptors being a pointer.
12742         (ipcp_modif_dom_walker): Make m_descriptors field garbage
12743         collected.
12744         (ipcp_transform_function): Make descriptors variable garbage
12745         collected.
12747 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
12749         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
12750         * config/i386/avx512dqintrin.h: Ditto.
12751         * config/i386/avx512fintrin.h: Ditto.
12752         * gcc/config/i386/i386.c: Handle new builtins.
12753         * config/i386/i386-builtin.def: Add new builtins.
12754         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
12755         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
12757 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
12758             Martin Liska  <mliska@suse.cz>
12760         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
12761         * asan.c (asan_expand_poison_ifn): Support stores and use
12762         appropriate ASAN report function.
12763         * internal-fn.c (expand_ASAN_POISON_USE): New function.
12764         * internal-fn.def (ASAN_POISON_USE): Declare.
12765         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
12766         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
12767         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
12768         ASAN_POISON calls w/o LHS.
12769         * tree-ssa.c (execute_update_addresses_taken): Create clobber
12770         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
12771         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
12772         * gimplify.c (asan_poison_variables): Add attribute
12773         use_after_scope_memory to variables that really needs to live
12774         in memory.
12775         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
12776         having the attribute.
12778 2017-01-23  Martin Liska  <mliska@suse.cz>
12780         * asan.c (create_asan_shadow_var): New function.
12781         (asan_expand_poison_ifn): Likewise.
12782         * asan.h (asan_expand_poison_ifn): New declaration.
12783         * internal-fn.c (expand_ASAN_POISON): Likewise.
12784         * internal-fn.def (ASAN_POISON): New builtin.
12785         * sanopt.c (pass_sanopt::execute): Expand
12786         asan_expand_poison_ifn.
12787         * tree-inline.c (copy_decl_for_dup_finish): Make function
12788         external.
12789         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
12790         * tree-ssa.c (is_asan_mark_p): New function.
12791         (execute_update_addresses_taken): Rewrite local variables
12792         (identified just by use-after-scope as addressable) into SSA.
12794 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
12796         * doc/install.texi (Specific): opensource.apple.com uses https
12797         now. Remove trailing slash.
12799 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
12801         * README.Portability: Remove note on an Irix compatibility issue.
12803 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
12805         * gcov.c (INCLUDE_ALGORITHM): Define.
12806         (INCLUDE_VECTOR): Define.
12807         No longer include <vector> and <algorithm> directly.
12809 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
12811         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
12812         to https.
12813         * doc/invoke.texi (Code Gen Options): Ditto.
12815 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
12817         PR lto/78407
12818         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
12820 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
12822         rtl-optimization/79125
12823         * cprop.c (local_cprop_pass): Handle cases where we make an
12824         unconditional trap.
12826 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
12828         PR target/61729
12829         PR target/77850
12830         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
12831         read from, for big endian.
12833 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
12835         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
12836         register pauth builtins for LP64 only.
12838 2017-01-20  Marek Polacek  <polacek@redhat.com>
12840         PR c/79152
12841         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
12842         non-case labels.
12844 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
12846         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
12847         of safelen status.
12848         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
12849         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
12850         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
12852 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12854         PR target/71270
12855         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
12856         in big-endian mode when they are not a single duplicated value.
12858 2017-01-20  Richard Biener  <rguenther@suse.de>
12860         * BASE-VER: Bump to 7.0.1.
12862 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
12864         * omp-low.c (omplow_simd_context): New struct.  Use it...
12865         (lower_rec_simd_input_clauses): ...here and...
12866         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
12867         references to idx, lane, max_vf, is_simt.
12869 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
12871         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
12872         mcpu=nps400.
12874 2017-01-20  Martin Jambor  <mjambor@suse.cz>
12876         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
12877         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
12878         gt-hsa-common.h.
12879         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
12880         (GTFILES): Rename hsa.c to hsa-common.c.
12881         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
12882         * hsa-dump.c: Likewise.
12883         * hsa-gen.c: Likewise.
12884         * hsa-regalloc.c: Likewise.
12885         * ipa-hsa.c: Likewise.
12886         * omp-expand.c: Likewise.
12887         * omp-low.c: Likewise.
12888         * toplev.c: Likewise.
12890 2017-01-20  Marek Polacek  <polacek@redhat.com>
12892         PR c/64279
12893         * doc/invoke.texi: Document -Wduplicated-branches.
12894         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
12895         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
12896         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
12897         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
12898         return 0 only when not OEP_LEXICOGRAPHIC.
12899         (fold_build_cleanup_point_expr): Use the expression
12900         location when building CLEANUP_POINT_EXPR.
12901         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
12902         * tree.c (add_expr): Handle error_mark_node.
12904 2017-01-20  Martin Liska  <mliska@suse.cz>
12906         PR lto/69188
12907         * tree-profile.c (init_ic_make_global_vars): Do not call
12908         finalize_decl.
12909         (gimple_init_gcov_profiler): Likewise.
12911 2017-01-20  Martin Liska  <mliska@suse.cz>
12913         PR ipa/71190
12914         * cgraph.h (maybe_create_reference): Remove argument and
12915         update comment.
12916         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
12917         argument.
12918         * ipa-cp.c (create_specialized_node): Likewise.
12919         * symtab.c (symtab_node::maybe_create_reference): Handle
12920         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
12922 2017-01-20  Martin Liska  <mliska@suse.cz>
12924         * read-rtl-function.c (function_reader::create_function): Use
12925         build_decl instread of build_decl_stat.
12927 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
12929         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
12930         * config/i386/avx512dqintrin.h: Ditto.
12931         * config/i386/avx512fintrin.h: Ditto.
12932         * config/i386/i386-builtin-types.def: Add new types.
12933         * gcc/config/i386/i386.c: Handle new types.
12934         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
12935         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
12936         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
12937         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
12938         (__builtin_ia32_kshiftridi): New.
12939         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
12941 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
12943         PR target/78875
12944         PR target/79140
12945         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
12946         define to rs6000_init_stack_protect_guard.
12947         (rs6000_init_stack_protect_guard): New function.
12949 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
12950             Yunqiang Su  <yunqiang.su@imgtec.com>
12952         * config.gcc (supported_defaults): Add madd4.
12953         (with_madd4): Add validation.
12954         (all_defaults): Add madd4.
12955         * config/mips/mips.opt (mmadd4): New option.
12956         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12957         mmadd4.
12958         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
12959         __mips_no_madd4.
12960         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
12961         (ISA_HAS_FUSED_MADD4): Likewise.
12962         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
12963         * gcc/doc/install.texi (--with-madd4): Document the new option.
12965 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
12967         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
12968         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
12969         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
12970         (aarch64_init_pauth_hint_builtins): New.
12971         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
12972         (aarch64_expand_builtin): Expand new builtins.
12974 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
12976         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
12977         * combine-stack-adj.c (no_unhandled_cfa): Handle
12978         REG_CFA_TOGGLE_RA_MANGLE.
12979         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
12980         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
12981         info for return address signing.
12982         (aarch64_expand_epilogue): Likewise.
12984 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
12986         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
12987         * config/aarch64/aarch64-protos.h
12988         (aarch64_return_address_signing_enabled): New declaration.
12989         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
12990         New function.
12991         (aarch64_expand_prologue): Sign return address before it's pushed onto
12992         stack.
12993         (aarch64_expand_epilogue): Authenticate return address fetched from
12994         stack.
12995         (aarch64_override_options): Sanity check for ILP32 and ISA level.
12996         (aarch64_attributes): New function attributes for "sign-return-address".
12997         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
12998         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
12999         ("*do_return"): Generate combined instructions according to key index.
13000         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
13001         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
13002         iterators.
13003         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
13004         * config/aarch64/aarch64.opt (msign-return-address=): New.
13005         * doc/extend.texi (AArch64 Function Attributes): Documents
13006         "sign-return-address=".
13007         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
13009 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
13011         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
13012         overall option summary.
13014 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
13016         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
13017         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
13018         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
13019         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
13021 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13023         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
13024         -mpower9-minmax by default for -mcpu=power9.
13025         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
13026         128-bit floating point.
13028 2017-01-20  Alan Modra  <amodra@gmail.com>
13030         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
13031         optimizing for size.
13033 2017-01-20  Alan Modra  <amodra@gmail.com>
13035         PR target/79144
13036         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
13037         for strcmp and strncmp from corresponding builtin decl.
13039 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
13041         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
13042         instead of i386/rtems-64.h.
13043         * config/i386/rtems-64.h: Remove.
13045 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
13047         PR target/78478
13048         Revert:
13049         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
13051         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
13053 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
13055         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
13056         Change int to HOST_WIDE_INT.
13057         * config/aarch64/aarch64-protos.h
13058         (aarch64_simd_gen_const_vector_dup): Likewise.
13059         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
13061 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
13063         * langhooks-def.h (lhd_type_for_size): New decl.
13064         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
13065         * langhooks.c (lhd_type_for_size): New function, taken from
13066         lto_type_for_size.
13068 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
13070         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
13071         define_bypass for CR latency.
13072         (power9-cracked-alu): Update bypass latency and remove power9-branch.
13073         (power9-alu2): Add define_bypass for CR latency.
13074         (power9-cmp): New.
13075         (power9-mul): Update insn latency.
13076         (power9-mul-compare): Update insn latency, bypass latency and remove
13077         power9-branch.
13079 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13081         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
13082         Delete.
13083         * config/aarch64/aarch64.md
13084         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
13085         aarch64_nopcrelative_literal_loads.
13086         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13088 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
13090         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
13091         TARGET_LOONGSON_3A.
13092         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
13094 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
13096         PR target/78176
13097         * config.gcc (supported_defaults): Add lxc1-sxc1.
13098         (with_lxc1_sxc1): Add validation.
13099         (all_defaults): Add lxc1-sxc1.
13100         * config/mips/mips.opt (mlxc1-sxc1): New option.
13101         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13102         mlxc1-sxc1.
13103         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
13104         __mips_no_lxc1_sxc1.
13105         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
13106         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
13107         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
13109 2017-01-19  Richard Biener  <rguenther@suse.de>
13111         PR tree-optimization/72488
13112         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
13113         sure to restore SSA info.
13114         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
13116 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
13118         PR rtl-optimization/79121
13119         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
13120         of the inner type when shifting an extended value.
13122 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
13124         PR lto/78407
13125         * symtab.c (symtab_node::equal_address_to): Fix comparing of
13126         interposable aliases.
13128 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
13130         PR target/78516
13131         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
13132         Use the evmergelohi instruction.
13133         (mov_si<mode>_e500_subreg4_2_le): Likewise.
13134         (mov_sitf_e500_subreg8_2_be): Likewise.
13135         (mov_sitf_e500_subreg12_2_le): Likewise.
13136         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
13137         (mov_si<mode>_e500_subreg4_2_be): Likewise.
13138         (mov_sitf_e500_subreg8_2_le): Likewise.
13139         (mov_sitf_e500_subreg12_2_be): Likewise.
13141 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13143         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
13144         attribute from vecsimple to vecperm.
13145         (altivec_vbpermq2): Likewise.
13147 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13149         PR target/79040
13150         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
13152 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13153         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
13154         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
13155         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
13156         case where N arg is SIZE_MAX.
13157         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
13158         (cmpstrsi): Add pattern.
13160 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13162         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13163         __builtin_vec_revb builtins.
13164         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
13165         built-in functions to support generation of the ISA 3.0 XXBR<x>
13166         vector byte reverse instructions.
13167         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
13168         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
13169         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
13170         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
13171         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
13172         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
13173         (P9V_BUILTIN_VEC_REVB): Likewise.
13174         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
13175         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
13176         (p9_xxbrq_v16qi): Likewise.
13177         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
13178         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
13179         (p9_xxbrh_v8hi): Likewise.
13180         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
13181         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
13182         vec_revb built-in functions.
13184 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
13186         PR rtl-optimization/78952
13187         * config/i386/i386.md (any_extract): New code iterator.
13188         (*insvqi_2): Use any_extract for source operand.
13189         (*insvqi_3): Use any_shiftrt for source operand.
13191 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
13193         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
13194         New function.
13195         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
13197 2017-01-18  Matthias Klose  <doko@ubuntu.com>
13199         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
13201 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13203         * config/rs6000/altivec.h (vec_bperm): Change #define.
13204         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
13205         (altivec_vbpermq2): New define_insn.
13206         (altivec_vbpermd): Likewise.
13207         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
13208         function interface.
13209         (VBPERMD): Likewise.
13210         (VBPERM): New polymorphic function interface.
13211         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
13212         Add entries for P9V_BUILTIN_VEC_VBPERM.
13213         * doc/extend.texi: Add interfaces for vec_bperm.
13215 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13217         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
13218         first letter of error messages.
13219         (s390_resolve_overloaded_builtin): Likewise.
13220         * config/s390/s390.c (s390_expand_builtin): Likewise.
13221         (s390_invalid_arg_for_unprototyped_fn): Likewise.
13222         (s390_valid_target_attribute_inner_p): Likewise.
13223         * config/s390/s390.md ("tabort"): Likewise.
13225 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
13227         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
13228         (ISA_AVOID_DIV_HILO): New macro.
13229         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
13230         (ISA_HAS_DDIV): Likewise.
13232 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13234         * doc/invoke.texi (fabi-version): Correct number of occurrences.
13236 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13238         * doc/invoke.texi (fabi-version): Spelling fix.
13240 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13242         PR c++/70182
13243         * doc/invoke.texi (fabi-version): Mention mangling fix for
13244         operator names.
13246 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13248         PR c++/77489
13249         * doc/invoke.texi (fabi-version): Document discriminator mangling.
13251 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13253         PR target/78875
13254         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
13255         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
13256         the new options.
13257         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
13258         flexible settings.
13259         (stack_protect_test): Ditto.
13260         * config/rs6000/rs6000.opt (mstack-protector-guard=,
13261         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
13262         options.
13263         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
13264         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
13265         -mstack-protector-guard-offset=.
13266         (RS/6000 and PowerPC Options): Ditto.
13268 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
13270         * config/i386/i386.h (MASK_CLASS_P): New define.
13271         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
13272         there are no registers from different register sets also when
13273         mask registers are used.  Update function comment.
13274         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
13275         to (*k/*r) and (*k/*km) alternatives.
13277 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
13279         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
13280         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
13281         (EH_RETURN_HANDLER_RTX): New define.
13282         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
13283         Force frame pointer in EH return functions.
13284         (aarch64_expand_epilogue): Add barrier for eh_return.
13285         (aarch64_final_eh_return_addr): Remove.
13286         (aarch64_eh_return_handler_rtx): New function.
13287         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
13288         Remove.
13289         (aarch64_eh_return_handler_rtx): New prototype.
13291 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13293         * config/rs6000/altivec.h (vec_rlmi): New #define.
13294         (vec_vrlnm): Likewise.
13295         (vec_rlnm): Likewise.
13296         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
13297         (UNSPEC_VRLNM): Likewise.
13298         (VIlong): New mode iterator.
13299         (altivec_vrl<VI_char>mi): New define_insn.
13300         (altivec_vrl<VI_char>nm): Likewise.
13301         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
13302         function entry.
13303         (VRLDNM): Likewise.
13304         (RLNM): New polymorphic function entry.
13305         (VRLWMI): New monomorphic function entry.
13306         (VRLDMI): Likewise.
13307         (RLMI): New polymorphic function entry.
13308         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
13309         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
13310         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
13311         vec_vrlnm.
13313 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13315         PR debug/78839
13316         * dwarf2out.c (field_byte_offset): Restore the
13317         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
13318         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
13319         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
13320         of build2 + fold.
13322 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13324         PR ada/67205
13325         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
13327 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13329         PR debug/71669
13330         * dwarf2out.c (add_data_member_location_attribute): For constant
13331         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
13332         instead of DW_AT_data_member_location, DW_AT_bit_offset and
13333         DW_AT_byte_size attributes.
13335 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13337         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
13338         after forcing to constant memory when the code model is medium.
13340 2017-01-17  Julia Koval  <julia.koval@intel.com>
13342         PR target/76731
13343         * config/i386/avx512fintrin.h
13344         (_mm512_i32gather_ps): Change __addr type to void const*.
13345         (_mm512_mask_i32gather_ps): Ditto.
13346         (_mm512_i32gather_pd): Ditto.
13347         (_mm512_mask_i32gather_pd): Ditto.
13348         (_mm512_i64gather_ps): Ditto.
13349         (_mm512_mask_i64gather_ps): Ditto.
13350         (_mm512_i64gather_pd): Ditto.
13351         (_mm512_mask_i64gather_pd): Ditto.
13352         (_mm512_i32gather_epi32): Ditto.
13353         (_mm512_mask_i32gather_epi32): Ditto.
13354         (_mm512_i32gather_epi64): Ditto.
13355         (_mm512_mask_i32gather_epi64): Ditto.
13356         (_mm512_i64gather_epi32): Ditto.
13357         (_mm512_mask_i64gather_epi32): Ditto.
13358         (_mm512_i64gather_epi64): Ditto.
13359         (_mm512_mask_i64gather_epi64): Ditto.
13360         (_mm512_i32scatter_ps): Change __addr type to void*.
13361         (_mm512_mask_i32scatter_ps): Ditto.
13362         (_mm512_i32scatter_pd): Ditto.
13363         (_mm512_mask_i32scatter_pd): Ditto.
13364         (_mm512_i64scatter_ps): Ditto.
13365         (_mm512_mask_i64scatter_ps): Ditto.
13366         (_mm512_i64scatter_pd): Ditto.
13367         (_mm512_mask_i64scatter_pd): Ditto.
13368         (_mm512_i32scatter_epi32): Ditto.
13369         (_mm512_mask_i32scatter_epi32): Ditto.
13370         (_mm512_i32scatter_epi64): Ditto.
13371         (_mm512_mask_i32scatter_epi64): Ditto.
13372         (_mm512_i64scatter_epi32): Ditto.
13373         (_mm512_mask_i64scatter_epi32): Ditto.
13374         (_mm512_i64scatter_epi64): Ditto.
13375         (_mm512_mask_i64scatter_epi64): Ditto.
13376         * config/i386/avx512pfintrin.h
13377         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
13378         (_mm512_mask_prefetch_i32gather_ps): Ditto.
13379         (_mm512_mask_prefetch_i64gather_pd): Ditto.
13380         (_mm512_mask_prefetch_i64gather_ps): Ditto.
13381         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
13382         (_mm512_prefetch_i32scatter_ps): Ditto.
13383         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
13384         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
13385         (_mm512_prefetch_i64scatter_pd): Ditto.
13386         (_mm512_prefetch_i64scatter_ps): Ditto.
13387         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
13388         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
13389         * config/i386/avx512vlintrin.h
13390         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
13391         (_mm_mmask_i32gather_ps): Ditto.
13392         (_mm256_mmask_i32gather_pd): Ditto.
13393         (_mm_mmask_i32gather_pd): Ditto.
13394         (_mm256_mmask_i64gather_ps): Ditto.
13395         (_mm_mmask_i64gather_ps): Ditto.
13396         (_mm256_mmask_i64gather_pd): Ditto.
13397         (_mm_mmask_i64gather_pd): Ditto.
13398         (_mm256_mmask_i32gather_epi32): Ditto.
13399         (_mm_mmask_i32gather_epi32): Ditto.
13400         (_mm256_mmask_i32gather_epi64): Ditto.
13401         (_mm_mmask_i32gather_epi64): Ditto.
13402         (_mm256_mmask_i64gather_epi32): Ditto.
13403         (_mm_mmask_i64gather_epi32): Ditto.
13404         (_mm256_mmask_i64gather_epi64): Ditto.
13405         (_mm_mmask_i64gather_epi64): Ditto.
13406         (_mm256_i32scatter_ps): Change __addr type to void*.
13407         (_mm256_mask_i32scatter_ps): Ditto.
13408         (_mm_i32scatter_ps): Ditto.
13409         (_mm_mask_i32scatter_ps): Ditto.
13410         (_mm256_i32scatter_pd): Ditto.
13411         (_mm256_mask_i32scatter_pd): Ditto.
13412         (_mm_i32scatter_pd): Ditto.
13413         (_mm_mask_i32scatter_pd): Ditto.
13414         (_mm256_i64scatter_ps): Ditto.
13415         (_mm256_mask_i64scatter_ps): Ditto.
13416         (_mm_i64scatter_ps): Ditto.
13417         (_mm_mask_i64scatter_ps): Ditto.
13418         (_mm256_i64scatter_pd): Ditto.
13419         (_mm256_mask_i64scatter_pd): Ditto.
13420         (_mm_i64scatter_pd): Ditto.
13421         (_mm_mask_i64scatter_pd): Ditto.
13422         (_mm256_i32scatter_epi32): Ditto.
13423         (_mm256_mask_i32scatter_epi32): Ditto.
13424         (_mm_i32scatter_epi32): Ditto.
13425         (_mm_mask_i32scatter_epi32): Ditto.
13426         (_mm256_i32scatter_epi64): Ditto.
13427         (_mm256_mask_i32scatter_epi64): Ditto.
13428         (_mm_i32scatter_epi64): Ditto.
13429         (_mm_mask_i32scatter_epi64): Ditto.
13430         (_mm256_i64scatter_epi32): Ditto.
13431         (_mm256_mask_i64scatter_epi32): Ditto.
13432         (_mm_i64scatter_epi32): Ditto.
13433         (_mm_mask_i64scatter_epi32): Ditto.
13434         (_mm256_i64scatter_epi64): Ditto.
13435         (_mm256_mask_i64scatter_epi64): Ditto.
13436         (_mm_i64scatter_epi64): Ditto.
13437         (_mm_mask_i64scatter_epi64): Ditto.
13438         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
13439         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
13440         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
13441         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
13442         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
13443         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
13444         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
13445         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
13446         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
13447         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
13448         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
13449         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
13450         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
13451         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
13452         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
13453         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
13454         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
13455         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
13456         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
13457         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
13458         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
13459         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
13460         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
13461         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
13462         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
13463         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
13464         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
13465         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
13466         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
13467         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
13468         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
13469         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
13470         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
13471         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
13472         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
13473         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
13474         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
13475         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
13476         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
13477         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
13478         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
13479         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
13480         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
13481         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
13482         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
13483         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
13484         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
13485         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
13486         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
13487         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
13488         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
13489         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
13490         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
13491         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
13492         definitions accordingly.
13494 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
13495             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
13497         PR target/79079
13498         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
13499         gen_lowpart.
13501 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
13503         PR target/79058
13504         * ira-conflicts.c (ira_build_conflicts): Update total conflict
13505         hard regs for inner regno.
13507 2017-01-17  Martin Liska  <mliska@suse.cz>
13509         PR ipa/71207
13510         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
13511         assumption and add comment.
13513 2017-01-17  Nathan Sidwell  <nathan@acm.org>
13515         * ipa-visibility.c (localize_node): New function, broken out of ...
13516         (function_and_variable_visibility): ... here. Call it.
13518 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
13520         PR middle-end/77445
13521         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
13522         correctly set frequency of oudgoing edge.
13523         (duplicate_thread_path): Fix profile updating.
13525 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13527         PR other/79046
13528         * configure.ac: Add GCC_BASE_VER.
13529         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
13530         version from BASE-VER file.
13531         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
13532         (gcc.o): Depend on $(BASEVER).
13533         * common.opt (dumpfullversion): New option.
13534         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
13535         * doc/invoke.texi: Document -dumpfullversion.
13536         * doc/install.texi: Document --with-gcc-major-version-only.
13537         * configure: Regenerated.
13539 2017-01-17  Richard Biener  <rguenther@suse.de>
13541         PR tree-optimization/71433
13542         * tree-vrp.c (register_new_assert_for): Merge same asserts
13543         on all incoming edges.
13544         (process_assert_insertions_for): Handle insertions at the
13545         beginning of BBs.
13547 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
13549         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
13550         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
13552 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13554         PR target/78633
13555         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
13556         RTL sharing.
13558 2017-01-17  Alan Modra  <amodra@gmail.com>
13560         PR target/79066
13561         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
13562         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
13563         symbolic stack limit when pic.
13565 2017-01-16  Martin Sebor  <msebor@redhat.com>
13567         PR tree-optimization/78608
13568         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
13570 2017-01-16  Jeff Law  <law@redhat.com>
13572         Revert:
13573         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
13574         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
13575         for several include directories that may be relative to sysroot.
13576         * config/i386/x-mingw32 (gplus_includedir): Define.
13577         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
13578         (native_system_includedir): Likewise.
13579         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
13580         override if TARGET_SYSTEM_ROOT is defined.
13581         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
13583         PR tree-optimization/79090
13584         PR tree-optimization/33562
13585         PR tree-optimization/61912
13586         PR tree-optimization/77485
13587         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
13588         and computed trims into the dump file.
13590 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
13592         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
13594 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
13596         PR c/79089
13597         * gimplify.c (gimplify_init_constructor): If want_value and
13598         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
13599         fix.
13601         PR target/79080
13602         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
13603         sequence.  Formatting fixes.
13604         (doloop_optimize): Formatting fixes.
13606         PR driver/49726
13607         * gcc.c (debug_level_greater_than_spec_func): New function.
13608         (static_spec_functions): Add debug-level-gt spec function.
13609         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
13610         !g0.
13611         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
13612         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
13613         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
13614         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
13615         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
13616         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
13618 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
13620         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
13621         QImode fixups to general and mask registers only.
13623 2017-01-16  Carl Love  <cel@us.ibm.com>
13625         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
13626         for built-in functions
13627         vector signed char vec_nabs (vector signed char)
13628         vector signed short vec_nabs (vector signed short)
13629         vector signed int vec_nabs (vector signed int)
13630         vector signed long long vec_nabs (vector signed long long)
13631         vector float vec_nabs (vector float)
13632         vector double vec_nabs (vector double)
13633         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
13634         and NABS overload.
13635         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
13636         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
13637         * doc/extend.texi: Update the documentation file for the new built-in
13638         functions.
13640 2017-01-16  Martin Sebor  <msebor@redhat.com>
13642         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
13643         message.
13645 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13647         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
13648         UNSPEC_VSX__XXSPLTD to require special splat handling.
13650 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
13652         PR bootstrap/78616
13653         * system.h: Poison strndup.
13655 2017-01-16  Alan Modra  <amodra@gmail.com>
13657         PR target/79098
13658         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
13659         use a switch.
13661 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
13663         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
13665 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
13667         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
13668         call recog here.  Assert that INSN_CODE (insn) is non-negative.
13670 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
13672         PR target/72749
13673         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
13674         fallthrough.
13675         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
13676         in the currently scheduled RTL fragment.
13678 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
13680         PR rtl-optimization/78751
13681         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
13682         give up.
13684 2017-01-14  Jeff Law  <law@redhat.com>
13686         PR tree-optimization/79090
13687         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
13688         variable length stores.
13689         (compute_trims): Delete dead assignment to *trim_tail.
13690         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
13691         zero length.
13693 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
13695         PR rtl-optimization/78626
13696         PR rtl-optimization/78727
13697         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
13698         of a block, and split such blocks after everything else is finished.
13700 2017-01-14  Alan Modra  <amodra@gmail.com>
13702         PR target/72749
13703         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
13704         target legitimate_combined_insn.
13705         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
13706         (rs6000_legitimate_combined_insn): New function.
13707         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
13708         all uses.
13709         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
13710         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
13711         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
13713 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
13715         * doc/frontends.texi (G++ and GCC): Remove references to Java.
13717 2017-01-13  Jeff Law  <law@redhat.com>
13719         PR tree-optimization/33562
13720         PR tree-optimization/61912
13721         PR tree-optimization/77485
13722         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
13723         a statement.
13724         (delete_dead_assignment): Likewise.
13725         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
13726         statement to delete_dead_call and delete_dead_assignment.
13728 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
13730         PR c/78304
13731         * substring-locations.c (format_warning_va): Strengthen case 1 so
13732         that both endpoints of the substring must be within the format
13733         range for just the substring to be printed.
13735 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
13737         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
13738         * config/i386/i386.c (ix86_target_string): Add missing options
13739         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
13740         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
13741         flags_other and ix86_target_other to flags2_other.  Display unknown
13742         isa2 options.
13743         (ix86_valid_target_attribute_inner_p): Add missing options and
13744         reorder options by implied ISAs, as in ix86_target_string.
13746 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
13748         * hash-table.h (hash_table::too_empty_p): New function.
13749         (hash_table::expand): Use it.
13750         (hash_table::traverse): Likewise.
13751         (hash_table::empty_slot): Use sizeof (value_type) instead of
13752         sizeof (PTR) to convert bytes to elements.  Shrink the table
13753         if the current size is excessive for the current number of
13754         elements.
13756 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
13758         * ira-costs.c (record_reg_classes): Break from the inner loop
13759         early once alt_fail is known to be true.  Update outer loop
13760         handling accordingly.
13762 2017-01-13  Jeff Law  <law@redhat.com>
13764         * tree-ssa-dse.c (decrement_count): New function.
13765         (increment_start_addr, maybe_trim_memstar_call): Likewise.
13766         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
13767         when we know the partially dead statement is a mem* function.
13769         PR tree-optimization/61912
13770         PR tree-optimization/77485
13771         * tree-ssa-dse.c: Include expr.h.
13772         (maybe_trim_constructor_store): New function.
13773         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
13775         PR tree-optimization/33562
13776         PR tree-optimization/61912
13777         PR tree-optimization/77485
13778         * doc/invoke.texi: Document new dse-max-object-size param.
13779         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
13780         * tree-ssa-dse.c: Include params.h.
13781         (dse_store_status): New enum.
13782         (initialize_ao_ref_for_dse): New, partially extracted from
13783         dse_optimize_stmt.
13784         (valid_ao_ref_for_dse, normalize_ref): New.
13785         (setup_live_bytes_from_ref, compute_trims): Likewise.
13786         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
13787         (maybe_trim_partially_dead_store): Likewise.
13788         (maybe_trim_complex_store): Likewise.
13789         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
13790         Track what bytes live from the original store.  Return tri-state
13791         for dead, partially dead or live.
13792         (dse_dom_walker): Add constructor, destructor and new private members.
13793         (delete_dead_call, delete_dead_assignment): New extracted from
13794         dse_optimize_stmt.
13795         (dse_optimize_stmt): Make a member of dse_dom_walker.
13796         Use initialize_ao_ref_for_dse.
13798         PR tree-optimization/33562
13799         PR tree-optimization/61912
13800         PR tree-optimization/77485
13801         * sbitmap.h (bitmap_count_bits): Prototype.
13802         (bitmap_clear_range, bitmap_set_range): Likewise.
13803         * sbitmap.c (bitmap_clear_range): New function.
13804         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
13806 2017-01-13  Martin Liska  <mliska@suse.cz>
13808         PR ipa/79043
13809         * function.c (set_cfun): Add new argument force.
13810         * function.h (set_cfun): Likewise.
13811         * ipa-inline-transform.c (inline_call): Use the function when
13812         strict alising from is dropped for function we inline to.
13814 2017-01-13  Richard Biener  <rguenther@suse.de>
13816         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
13817         for dumping GIMPLE INTEGER_CSTs.
13819 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13821         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
13822         to 201112L since C++17.
13824 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
13826         PR sanitizer/78887
13827         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
13828         if -fsanitize=kernel-address is present.
13830 2017-01-13  Richard Biener  <rguenther@suse.de>
13832         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
13833         as _Literal ( type ) number in case usual suffixes do not
13834         preserve all information.
13836 2017-01-13  Richard Biener  <rguenther@suse.de>
13838         PR tree-optimization/77283
13839         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
13840         and ssa-iterators.h.
13841         (is_feasible_trace): Implement a cost model based on joiner
13842         PHI node uses.
13844 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13846         PR target/79004
13847         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
13848         char or short to __float128/_Float128 directly.
13850 2017-01-12  Martin Sebor  <msebor@redhat.com>
13852         to -Wformat-overflow.
13853         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
13854         (min_bytes_remaining): Same.
13855         (get_string_length): Same.
13856         (format_string): Same.
13857         (format_directive): Same.
13858         (add_bytes): Same.
13859         (pass_sprintf_length::handle_gimple_call): Same.
13861 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
13863         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
13864         info.nowrite calls with no lhs that can't throw.  Return bool
13865         whether gsi_remove has been called or not.
13866         (pass_sprintf_length::handle_gimple_call): Return bool whether
13867         try_substitute_return_value called gsi_remove.  Formatting fix.
13868         (pass_sprintf_length::execute): Don't use gsi_remove if
13869         handle_gimple_call returned true.
13871         PR bootstrap/79069
13872         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
13873         be removed due to side-effects, don't remove following barrier nor
13874         turn the successor edge into fallthru edge.
13876 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13878         PR target/79044
13879         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
13880         element-reversing loads and stores as not swappable.
13882 2017-01-12  Nathan Sidwell  <nathan@acm.org>
13883             Nicolai Stange  <nicstange@gmail.com>
13885         * combine.c (try_combine): Don't ignore result of overlap checking
13886         loop.  Combine overlap & asm check into single loop.
13888 2017-01-12  Richard Biener  <rguenther@suse.de>
13890         * tree-pretty-print.c (dump_generic_node): Provide -gimple
13891         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
13893 2017-01-12  Richard Biener  <rguenther@suse.de>
13895         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
13896         and TS_TARGET_OPTION directly derive from TS_BASE.
13897         * tree-core.h (tree_optimization_option): Derive from tree_base.
13898         (tree_target_option): Likewise.
13900 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
13902         * config/i386/i386.c (memory_address_length): Increase len
13903         only when rip_relative_addr_p returns false.
13905 2017-01-11  Julia Koval  <julia.koval@intel.com>
13907         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
13908         (OPTION_MASK_ISA_SGX_SET): New.
13909         (ix86_handle_option): Handle OPT_msgx.
13910         * config.gcc: Added sgxintrin.h.
13911         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
13912         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
13913         * config/i386/i386.c (ix86_target_string): Add -msgx.
13914         (PTA_SGX): New.
13915         (ix86_option_override_internal): Handle new options.
13916         (ix86_valid_target_attribute_inner_p): Add sgx.
13917         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
13918         * config/i386/i386.opt: Add msgx.
13919         * config/i386/sgxintrin.h: New file.
13920         * config/i386/x86intrin.h: Add sgxintrin.h.
13922 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
13924         PR c++/71537
13925         * fold-const.c (maybe_nonzero_address): Return 1 for function
13926         local objects.
13927         (tree_single_nonzero_warnv_p): Don't handle function local objects
13928         here.
13930         PR c++/72813
13931         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
13932         of c-header.
13934 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
13936         PR driver/78877
13937         * opts.c: Include "spellcheck.h"
13938         (struct string_fragment): New struct.
13939         (struct edit_distance_traits<const string_fragment &>): New
13940         struct.
13941         (get_closest_sanitizer_option): New function.
13942         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
13944 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
13946         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
13947         by 12.
13948         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
13949         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
13950         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
13951         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
13952         for initial die_offset if dwarf_split_debug_info.
13953         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
13954         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
13955         fields.
13956         (output_skeleton_debug_sections): Formatting fix.  Use
13957         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
13958         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
13960 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
13962         * config/arm/cortex-a53.md: Add bypasses for
13963         cortex_a53_r2f_cvt.
13964         (cortex_a53_r2f): Only use for transfers.
13965         (cortex_a53_f2r): Likewise.
13966         (cortex_a53_r2f_cvt): Add reservation for conversions.
13967         (cortex_a53_f2r_cvt): Likewise.
13969 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
13971         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
13972         to all inlined functions, change static to extern.
13974 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
13976         PR target/78253
13977         * config/arm/arm.c (legitimize_pic_address): Handle reference to
13978         weak symbol.
13979         (arm_assemble_integer): Likewise.
13981 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
13983         * config.gcc: Use new awk script to check CPU, FPU and architecture
13984         parameters for --with-... options.
13985         * config/arm/parsecpu.awk: New file
13986         * config/arm/arm-cpus.in: New file.
13987         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
13988         files.
13989         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
13990         files.
13991         * config/arm/t-arm: Update dependency rules.
13992         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
13993         of processing .def files.
13994         * config/arm/genopt.sh: Deleted.
13995         * config/arm/gentune.sh: Deleted.
13996         * config/arm/arm-cores.def: Deleted.
13997         * config/arm/arm-arches.def: Deleted.
13998         * config/arm/arm-fpus.def: Deleted.
13999         * config/arm/arm-tune.md: Regenerated.
14000         * config/arm/arm-tables.opt: Regenerated.
14001         * config/arm/arm-cpu.h: New generated file.
14002         * config/arm/arm-cpu-data.h: New generated file.
14003         * config/arm/arm-cpu-cdata.h: New generated file.
14005 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
14007         PR lto/79042
14008         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
14009         bit.
14010         (input_varpool_node): Unpack dynamically_initialized bit.
14012 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14014         PR rtl-optimization/79032
14015         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
14016         the alignment of the adjusted memory reference against that of MODE,
14017         instead of the alignment of the original memory reference.
14019 2017-01-11  Martin Jambor  <mjambor@suse.cz>
14021         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
14022         test.
14023         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
14024         decorated functions.
14026 2017-01-11  Richard Biener  <rguenther@suse.de>
14028         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
14029         set range/nonnull info for PHI results.  Do not set it on
14030         stmts marked for removal.
14032 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
14034         * expr.c (store_field): In the bitfield case, fetch the return value
14035         from the registers before applying a single big-endian adjustment.
14036         Always do a final load for a BLKmode value not larger than a word.
14038 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
14040         PR c++/77949
14041         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
14042         that we correctly handle column numbers greater than
14043         LINE_MAP_MAX_COLUMN_NUMBER.
14045 2017-01-10  Martin Sebor  <msebor@redhat.com>
14047         PR middle-end/78245
14048         * gimple-ssa-sprintf.c (get_destination_size): Call
14049         {init,fini}object_sizes.
14050         * tree-object-size.c (addr_object_size): Adjust.
14051         (pass_through_call): Adjust.
14052         (pass_object_sizes::execute): Adjust.
14053         * tree-object-size.h (fini_object_sizes): Declare.
14055 2017-01-10  Martin Sebor  <msebor@redhat.com>
14057         PR tree-optimization/78775
14058         * builtins.c (get_size_range): Move...
14059         * calls.c: ...to here.
14060         (alloc_max_size): Accept zero argument.
14061         (operand_signed_p): Remove.
14062         (maybe_warn_alloc_args_overflow): Call get_size_range.
14063         * calls.h (get_size_range): Declare.
14065 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
14067         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
14068         from TI's devices.csv file as of September 2016.
14069         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
14071 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
14073         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
14074         * doc/invoke.texi: Likewise.
14075         * doc/md.texi: Likewise.
14076         * doc/objc.texi: Likewise.
14078 2017-01-10  Joshua Conner  <joshconner@google.com>
14080         * config/arm/fuchsia-elf.h: New file.
14081         * config/fuchsia.h: New file.
14082         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
14083         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
14084         targets.
14085         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
14087 2016-01-10  Richard Biener  <rguenther@suse.de>
14089         PR tree-optimization/79034
14090         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
14091         Propagate out degenerate PHIs in the joiner.
14093 2017-01-10  Martin Liska  <mliska@suse.cz>
14095         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
14096         (sort_congruence_classes_by_decl_uid): Likewise.
14097         (sort_congruence_class_groups_by_decl_uid): Likewise.
14098         (sem_item_optimizer::merge_classes): Sort class, groups in these
14099         classes and members in the groups by DECL_UID of declarations.
14100         This would make merge operations stable.
14102 2017-01-10  Martin Liska  <mliska@suse.cz>
14104         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
14105         usage of m_classes_vec.
14106         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
14107         (sem_item_optimizer::get_group_by_hash): Likewise.
14108         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
14109         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
14110         (sem_item_optimizer::verify_classes): Likewise.
14111         (sem_item_optimizer::process_cong_reduction): Likewise.
14112         (sem_item_optimizer::dump_cong_classes): Likewise.
14113         (sem_item_optimizer::merge_classes): Likewise.
14114         * ipa-icf.h (congruence_class_hash): Rename from
14115         congruence_class_group_hash.  Remove declaration of m_classes_vec.
14117 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
14119         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
14120         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
14121         * config.gcc: Add avx512vpopcntdqintrin.h.
14122         * config/i386/avx512vpopcntdqintrin.h: New.
14123         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
14124         * config/i386/i386-builtin-types.def: Add new types.
14125         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
14126         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
14127         __builtin_ia32_vpopcountq_v8di_mask): New.
14128         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14129         __AVX512VPOPCNTDQ__.
14130         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
14131         (PTA_AVX512VPOPCNTDQ): Define.
14132         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
14133         TARGET_AVX512VPOPCNTDQ_P): Define.
14134         * config/i386/i386.opt: Add mavx512vpopcntdq.
14135         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
14136         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
14138 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14140         PR middle-end/77484
14141         * predict.def (PRED_CALL): Set to 67.
14143 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
14145         * expr.c (store_field): In the bitfield case, if the value comes from
14146         a function call and is of an aggregate type returned in registers, do
14147         not modify the field mode; extract the value in all cases if the mode
14148         is BLKmode and the size is not larger than a word.
14150 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
14152         PR target/71017
14153         * config/i386/cpuid.h: Fix undefined behavior.
14155 2017-01-04  Jeff Law  <law@redhat.com>
14157         PR tree-optimization/79007
14158         PR tree-optimization/67955
14159         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
14160         conservative for pt.null when flag_non_call_exceptions is on.
14162 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
14164         PR translation/79019
14165         PR translation/79020
14166         * params.def (PARAM_INLINE_MIN_SPEEDUP,
14167         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
14168         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
14169         in descriptions.
14170         * config/avr/avr.opt (maccumulate-args): Likewise.
14171         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
14172         * common.opt (freport-bug): Likewise.
14173         * cif-code.def (CIF_FINAL_ERROR): Likewise.
14174         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
14175         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
14176         translatable string.
14177         * config/i386/i386.c (function_value_32): Likewise.
14178         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
14179         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
14180         Likewise.
14181         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
14182         * common/config/msp430/msp430-common.c (msp430_handle_option):
14183         Likewise.
14184         * symtab.c (symtab_node::verify_base): Likewise.
14185         * opts.c (set_debug_level): Likewise.
14186         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
14187         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14188         missing whitespace to translatable strings.
14189         * config/avr/avr.md (bswapsi2): Fix typo in comment.
14190         * config/sh/superh.h: Likewise.
14191         * config/i386/xopintrin.h: Likewise.
14192         * config/i386/znver1.md: Likewise.
14193         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
14194         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
14195         * double-int.h (struct double_int): Likewise.
14196         * double-int.c (div_and_round_double): Likewise.
14197         * wide-int.cc: Likewise.
14198         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14199         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
14200         * cfgcleanup.c (crossjumps_occured): Renamed to ...
14201         (crossjumps_occurred): ... this.
14202         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
14203         Adjust all uses.
14205         PR tree-optimization/78899
14206         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
14207         returning bool return struct loop *, NULL for failure and the new
14208         loop on success.
14209         (versionable_outer_loop_p): Don't version outer loop if it has
14210         dont_vectorized bit set.
14211         (tree_if_conversion): When versioning outer loop, ensure
14212         tree_if_conversion is performed also on the inner loop of the
14213         non-vectorizable outer loop copy.
14214         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
14215         LOOP_VECTORIZED in inner loop of the scalar outer loop and
14216         prevent vectorization of it.
14217         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
14218         the outer loop vectorization of the non-scalar version is attempted
14219         before vectorization of the inner loop in scalar version.  If
14220         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
14221         vectorization of its inner loop.
14222         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
14223         has 2 inner loops, rename also on edges from bb whose single pred
14224         is outer_loop->header.  Fix typo in function comment.
14226 2017-01-09  Martin Sebor  <msebor@redhat.com>
14228         PR bootstrap/79033
14229         * asan.c (asan_emit_stack_protection): Increase local buffer size
14230         to avoid snprintf truncation warning.
14232 2017-01-09  Andrew Pinski  <apinski@cavium.com>
14234         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
14235         to reference thunderx2t99 for the tuning structure
14236         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
14237         Rename to ...
14238         (thunderx2t99_extra_costs): This.
14239         * config/aarch64/aarch64-tune.md: Regenerate.
14240         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
14241         (vulcan_addrcost_table): This.
14242         (vulcan_regmove_cost): Rename to ...
14243         (thunderx2t99_regmove_cost): This.
14244         (vulcan_vector_cost): Rename to ...
14245         (thunderx2t99_vector_cost): this.
14246         (vulcan_branch_cost): Rename to ...
14247         (thunderx2t99_branch_cost): This.
14248         (vulcan_tunings): Rename to ...
14249         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
14250         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
14252 2017-01-09  Martin Jambor  <mjambor@suse.cz>
14254         PR ipa/78365
14255         PR ipa/78599
14256         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
14257         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
14258         (propagate_vr_accross_jump_function): Use the above function for all
14259         value range computations for pass-through jump functions and type
14260         converasion from explicit value range values.
14261         (ipcp_propagate_stage): Do not attempt to deduce types of formal
14262         parameters from TYPE_ARG_TYPES.
14263         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
14264         (ipa_write_node_info): Stream type of the actual argument.
14265         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
14267 2017-01-09  Martin Liska  <mliska@suse.cz>
14269         PR pch/78970
14270         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
14271         (lookup_compiler): Do not show error message with have_E.
14273 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
14275         PR tree-optimization/78938
14276         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
14277         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
14278         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
14279         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
14280         fixes.
14282 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14284         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
14285         is const0_rtx.
14287 2017-01-09  Richard Biener  <rguenther@suse.de>
14289         PR tree-optimization/78997
14290         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
14291         name condition properly.
14293 2017-01-09  Richard Biener  <rguenther@suse.de>
14295         PR debug/79000
14296         * dwarf2out.c (is_cxx): New overload with context.
14297         (is_naming_typedef_decl): Use it.
14299 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14301         * invoke.texi (Option Summary): Correct spacing in option lists
14302         and add line breaks to fix over-long lines.
14304 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14306         PR middle-end/17660
14308         * extend.texi (Common Variable Attributes): Add xref to GCC
14309         Internals manual to explain mode attribute keywords.
14311 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14313         PR other/16519
14314         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
14315         and Preprocessor Options.
14316         (Options for Linking): Document -pthread here....
14317         (RS/6000 and PowerPC Options): ...not here.
14318         (Solaris 2 Options): ...or here.
14319         * doc/cppopts.texi: Document -pthread.
14321 2017-01-08  Martin Sebor  <msebor@redhat.com>
14323         PR middle-end/77708
14324         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
14325         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
14326         New member functions.
14327         (format_directive): Used them.
14328         (add_bytes): Same.
14329         (pass_sprintf_length::handle_gimple_call): Same.
14330         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
14331         to avoid truncation for any argument.
14332         (extract_affine_mul): Same.
14333         * tree.c (get_file_function_name): Same.
14335 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14337         PR middle-end/77484
14338         * predict.def (PRED_INDIR_CALL): Set to 86.
14340 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14342         PR preprocessor/54124
14343         * doc/cppopts.texi: Reformat -d subtable to list the full name
14344         of the options.  Add cross-reference to the docs for the general
14345         compiler -d options.
14346         * doc/invoke.texi (Developer Options): Add cross-reference to the
14347         preprocessor-specific -d option documentation.
14349 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14351         PR preprocessor/13498
14352         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
14353         redudant material, and reflect new command-line options.
14354         (System Headers): Likewise.
14356 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14358         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
14359         -isystem, and -idirafter.  Copy-edit.
14360         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
14361         default for -ftrack-macro-expansion.  Delete obsolete and
14362         badly-formatted implementation details about -fdebug-cpp output.
14363         * doc/cppwarnopts.texi: Copy-edit.
14365 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
14367         PR c++/72803
14368         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
14369         that the transition from a max line width >= 1<<10 to narrower
14370         lines works correctly.
14372 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
14374         * doc/options.texi (PerFunction): New.
14375         * opt-functions.awk (switch_flags): Map both Optimization and
14376         PerFunction to CL_OPTIMIZATION.
14377         * opth-gen.awk: Test for PerFunction flag along with
14378         Optimization.
14379         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
14380         it only when the latter is present.  Skip those that don't in
14381         the hash function generator.
14382         * common.opt (fvar-tracking): Mark as PerFunction instead of
14383         Optimization.
14384         (fvar-tracking-assignments): Likewise.
14385         (fvar-tracking-assignments-toggle): Likewise.
14386         (fvar-tracking-uninit): Likewise.
14388 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
14390         PR translation/79018
14391         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
14392         the and store.
14394 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
14396         PR target/57583
14397         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
14398         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
14399         TARGET_LONG_JUMP_TABLE_OFFSETS.
14400         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
14401         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
14402         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
14403         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
14404         * config/m68k/m68k.md (tablejump expander): Likewise.
14405         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
14406         TARGET_LONG_JUMP_TABLE_OFFSETS.
14407         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
14408         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
14410 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
14411             David Holsgrove <david.holsgrove@xilinx.com>
14413         * common/config/microblaze/microblaze-common.c
14414         (TARGET_EXCEPT_UNWIND_INFO): Remove.
14415         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
14416         New prototype.
14417         * config/microblaze/microblaze.c (microblaze_must_save_register)
14418         (microblaze_expand_epilogue, microblaze_return_addr): Handle
14419         calls_eh_return.
14420         (microblaze_eh_return): New function.
14421         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
14422         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
14423         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
14424         * config/microblaze/microblaze.md (eh_return): New pattern.
14426 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
14428         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
14429         GCC_DIAGNOSTIC_STRINGIFY): Define.
14431         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
14433 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14435         * config/arm/arm.md (<mcrr>): New.
14436         (<mrrc>): New.
14437         * config/arm/arm.c (arm_arch5te): New.
14438         (arm_option_override): Set arm_arch5te.
14439         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
14440         and mrrc2.
14441         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
14442         (arm_mcrr_qualifiers): ... this. New.
14443         (MRRC_QUALIFIERS): Define to...
14444         (arm_mrrc_qualifiers): ... this. New.
14445         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
14446         __arm_mrrc2): New.
14447         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
14448         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
14449         (MRRCI, mrrc, MRRC): New.
14450         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
14451         VUNSPEC_MRRC2): New.
14453 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14455         * config/arm/arm.md (<mcr>): New.
14456         (<mrc>): New.
14457         * config/arm/arm.c (arm_coproc_builtin_available): Add
14458         support for mcr, mrc, mcr2 and mrc2.
14459         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
14460         (arm_mcr_qualifiers): ... this. New.
14461         (MRC_QUALIFIERS): Define to ...
14462         (arm_mrc_qualifiers): ... this. New.
14463         (MCR_QUALIFIERS): Define to ...
14464         (arm_mcr_qualifiers): ... this. New.
14465         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
14466         __arm_mrc2): New.
14467         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
14468         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
14469         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
14470         VUNSPEC_MRC2): New.
14472 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14474         * config/arm/arm.md (*ldc): New.
14475         (*stc): New.
14476         (<ldc>): New.
14477         (<stc>): New.
14478         * config/arm/arm.c (arm_coproc_builtin_available): Add
14479         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
14480         (arm_coproc_ldc_stc_legitimate_address): New.
14481         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
14482         'qualifier_const_pointer'.
14483         (LDC_QUALIFIERS): Define to...
14484         (arm_ldc_qualifiers): ... this. New.
14485         (STC_QUALIFIERS): Define to...
14486         (arm_stc_qualifiers): ... this. New.
14487         * config/arm/arm-protos.h
14488         (arm_coproc_ldc_stc_legitimate_address): New.
14489         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
14490         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
14491         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
14492         stc2, stcl, stc2l): New.
14493         * config/arm/constraints.md (Uz): New.
14494         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
14495         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
14496         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
14497         VUNSPEC_STC2L): New.
14499 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14501         * config/arm/arm.md (<cdp>): New.
14502         * config/arm/arm.c (neon_const_bounds): Rename this ...
14503         (arm_const_bounds): ... this.
14504         (arm_coproc_builtin_available): New.
14505         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
14506         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
14507         (CDP_QUALIFIERS): Define to...
14508         (arm_cdp_qualifiers): ... this. New.
14509         (void_UP): Define.
14510         (arm_expand_builtin_args): Add case for 6 arguments.
14511         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
14512         (arm_const_bounds): ... this.
14513         (arm_coproc_builtin_available): New.
14514         * config/arm/arm_acle.h (__arm_cdp): New.
14515         (__arm_cdp2): New.
14516         * config/arm/arm_acle_builtins.def (cdp): New.
14517         (cdp2): New.
14518         * config/arm/iterators.md (CDPI,CDP,cdp): New.
14519         * config/arm/neon.md: Rename all 'neon_const_bounds' to
14520         'arm_const_bounds'.
14521         * config/arm/types.md (coproc): New.
14522         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
14523         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
14524         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
14525         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
14527 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14529         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
14530         (UBINOP_QUALIFIERS): New.
14531         (si_UP): Define.
14532         (acle_builtin_data): New. Change comment.
14533         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
14534         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
14535         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
14536         arm_acle_builtins.def.
14537         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
14538         (arm_init_acle_builtins): New.
14539         (CRC32_BUILTIN): Remove.
14540         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
14541         crc32cb, crc32ch and crc32cw.
14542         (arm_init_crc32_builtins): Remove.
14543         (arm_init_builtins): Use arm_init_acle_builtins rather
14544         than arm_init_crc32_builtins.
14545         (arm_expand_acle_builtin): New.
14546         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
14547         * config/arm/arm_acle_builtins.def: New.
14549 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14551         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
14552         (arm_builtin_datum): ... this.
14553         (arm_init_neon_builtin): Rename to ...
14554         (arm_init_builtin): ... this. Add a new parameters PREFIX
14555         and USE_SIG_IN_NAME.
14556         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
14557         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
14558         'arm_builtin_datum'.
14559         (arm_init_vfp_builtins): Likewise.
14560         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
14561         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
14562         (arm_expand_neon_args): Rename to ...
14563         (arm_expand_builtin_args): ... this. Rename builtin_arg
14564         enum values and differentiate between ARG_BUILTIN_MEMORY
14565         and ARG_BUILTIN_NEON_MEMORY.
14566         (arm_expand_neon_builtin_1): Rename to ...
14567         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
14568         values, arm_expand_builtin_args and add bool parameter NEON.
14569         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
14570         (arm_expand_vfp_builtin): Likewise.
14571         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
14573 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14575         PR middle-end/77484
14576         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
14577         * predict.c (tree_estimate_probability_bb): Reverse direction of
14578         polymorphic call predictor.
14580 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
14582         * passes.c (execute_one_pass): Split out pass-skipping logic into...
14583         (determine_pass_name_match): ...this new function and...
14584         (should_skip_pass_p): ...this new function.
14586 2017-01-06  Nathan Sidwell  <nathan@acm.org>
14588         * ipa-visibility.c (function_and_variable_visibility): Reformat
14589         comments and long lines.  Remove extrneous if.
14590         * symtab.c (symtab_node::make_decl_local): Fix code format.
14591         (symtab_node::set_section_for_node): Fix comment typo.
14593 2017-01-06  Martin Liska  <mliska@suse.cz>
14595         PR bootstrap/79003
14596         * lra-constraints.c: Rename invariant to lra_invariant.
14597         * predict.c (set_even_probabilities): Initialize e to NULL.
14599 2017-01-05  Martin Sebor  <msebor@redhat.com>
14601         PR tree-optimization/78910
14602         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
14603         (format_integer): Correct off-by-one error in the handling
14604         of precision with negative numbers in signed conversions..
14606 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14608         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
14610 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
14612         PR tree-optimization/71016
14613         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
14614         factor_out_conditional_conversion.  Formatting fix.
14615         (factor_out_conditional_conversion): Add cond_stmt argument.
14616         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
14617         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
14618         Formatting fix.
14620 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
14622         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
14623         read-rtl-function.o, and selftest-rtl.o.
14624         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
14625         (selftest::aarch64_test_loading_full_dump): New function.
14626         (selftest::aarch64_run_selftests): New function.
14627         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
14628         selftest::aarch64_run_selftests.
14629         * config/i386/i386.c
14630         (selftest::ix86_test_loading_dump_fragment_1): New function.
14631         (selftest::ix86_test_loading_call_insn): New function.
14632         (selftest::ix86_test_loading_full_dump): New function.
14633         (selftest::ix86_test_loading_unspec): New function.
14634         (selftest::ix86_run_selftests): Call the new functions.
14635         * emit-rtl.c (maybe_set_max_label_num): New function.
14636         * emit-rtl.h (maybe_set_max_label_num): New decl.
14637         * function.c (instantiate_decls): Guard call to
14638         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
14639         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
14640         "static".
14641         * gensupport.c (gen_reader::gen_reader): Pass "false"
14642         for new "compact" param of rtx_reader.
14643         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
14644         rather than an empty string for NULL strings.
14645         * read-md.c: Potentially include config.h rather than bconfig.h.
14646         Wrap include of errors.h with #ifdef GENERATOR_FILE.
14647         (have_error): New global, copied from errors.c.
14648         (md_reader::read_name): Rename to...
14649         (md_reader::read_name_1): ...this, adding "out_loc" param,
14650         and converting "missing name or number" to returning false, rather
14651         than failing.
14652         (md_reader::read_name): Reimplement in terms of read_name_1.
14653         (md_reader::read_name_or_nil): New function.
14654         (md_reader::read_string): Handle "(nil)" by returning NULL.
14655         (md_reader::md_reader): Add new param "compact".
14656         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
14657         (md_reader::read_file): New method.
14658         * read-md.h (md_reader::md_reader): Add new param "compact".
14659         (md_reader::read_file): New method.
14660         (md_reader::is_compact): New accessor.
14661         (md_reader::read_name): Convert return type from void to file_location.
14662         (md_reader::read_name_or_nil): New decl.
14663         (md_reader::read_name_1): New decl.
14664         (md_reader::m_compact): New field.
14665         (noop_reader::noop_reader): Pass "false" for new "compact" param
14666         of rtx_reader.
14667         (rtx_reader::rtx_reader): Add new "compact" param.
14668         (rtx_reader::read_rtx_operand): Make virtual and convert return
14669         type from void to rtx.
14670         (rtx_reader::read_until): New decl.
14671         (rtx_reader::handle_any_trailing_information): New virtual function.
14672         (rtx_reader::postprocess): New virtual function.
14673         (rtx_reader::finalize_string): New virtual function.
14674         (rtx_reader::m_in_call_function_usage): New field.
14675         (rtx_reader::m_reuse_rtx_by_id): New field.
14676         * read-rtl-function.c: New file.
14677         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
14678         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
14679         (selftest::verify_three_block_rtl_cfg): New decl.
14680         * read-rtl-function.h: New file.
14681         * read-rtl.c: Potentially include config.h rather than bconfig.h.
14682         For host, include function.h, memmodel.h, and emit-rtl.h.
14683         (one_time_initialization): New function.
14684         (struct compact_insn_name): New struct.
14685         (compact_insn_names): New array.
14686         (find_code): Handle insn codes in compact dumps.
14687         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
14688         (bind_subst_iter_and_attr): Likewise.
14689         (add_condition_to_string): Likewise.
14690         (add_condition_to_rtx): Likewise.
14691         (apply_attribute_uses): Likewise.
14692         (add_current_iterators): Likewise.
14693         (apply_iterators): Likewise.
14694         (initialize_iterators): Guard usage of apply_subst_iterator with
14695         #ifdef GENERATOR_FILE.
14696         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
14697         (md_reader::read_mapping): Likewise.
14698         (add_define_attr_for_define_subst): Likewise.
14699         (add_define_subst_attr): Likewise.
14700         (read_subst_mapping): Likewise.
14701         (check_code_iterator): Likewise.
14702         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
14703         logic to...
14704         (one_time_initialization): New function.
14705         (rtx_reader::read_until): New method.
14706         (read_flags): New function.
14707         (parse_reg_note_name): New function.
14708         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
14709         Handle reuse_rtx ids.
14710         Wrap iterator lookup within #ifdef GENERATOR_FILE.
14711         Add parsing support for RTL dumps, mirroring the special-cases in
14712         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
14713         values, and calling handle_any_trailing_information.
14714         (rtx_reader::read_rtx_operand): Convert return type from void
14715         to rtx, returning return_rtx.  Handle case 'e'.  Call
14716         finalize_string on XSTR and XTMPL fields.
14717         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
14718          "(nil)" values were omitted.  Call the postprocess vfunc on the
14719         return_rtx.
14720         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
14721         class ctor.  Initialize m_in_call_function_usage.  Call
14722         one_time_initialization.
14723         * rtl-tests.c (selftest::test_uncond_jump): Call
14724         set_new_first_and_last_insn.
14725         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
14726         * selftest-rtl.c: New file.
14727         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
14728         (selftest::get_insn_by_uid): New decl.
14729         * selftest-run-tests.c (selftest::run_tests): Call
14730         read_rtl_function_c_tests.
14731         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
14732         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
14733         dumps.
14735 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
14737         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
14738         operands in a special way.  Assert that pos+len <= mode precision.
14740 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
14742         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
14743         3 argument Alias with unlimited for the negative form.
14744         (fno-vect-cost-model): Removed.
14746 2017-01-05  Martin Liska  <mliska@suse.cz>
14748         * hsa-gen.c (gen_hsa_divmod): New function.
14749         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
14751 2017-01-05  Martin Liska  <mliska@suse.cz>
14753         PR pch/78970
14754         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
14755         header.
14757 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14759         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
14760         small constant length operands.
14762 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14764         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
14765         between loop iterations.
14767 2017-01-05  Martin Liska  <mliska@suse.cz>
14769         PR sanitizer/78815
14770         * gimplify.c (gimplify_decl_expr): Compare to
14771         asan_poisoned_variables instread of checking flags.
14772         (gimplify_target_expr): Likewise.
14773         (gimplify_expr): Likewise.
14774         (gimplify_function_tree): Conditionally initialize
14775         asan_poisoned_variables.
14777 2017-01-04  Jeff Law  <law@redhat.com>
14779         PR tree-optimizatin/78812
14780         * rtl.h (contains_mem_rtx_p): Prototype.
14781         * ifcvt.c (containts_mem_rtx_p): Move from here to...
14782         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
14783         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
14784         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
14785         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
14787 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
14789         * input.c (assert_char_at_range): Default-initialize actual_range.
14791 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
14793         * df-scan.c (df_ref_create_structure): Make regno unsigned,
14794         to match the caller.
14796 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
14798         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
14799         insns after final jump in test to emit dummy move.
14801 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
14803         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
14804         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
14806 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
14808         * multiple_target.c (create_dispatcher_calls): Init e_next.
14809         * tree-ssa-loop-split.c (split_loop): Init border.
14810         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
14811         scalar_type.
14813 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14815         PR target/71977
14816         PR target/70568
14817         PR target/78823
14818         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
14819         (altivec_register_operand): Do not return true if the operand
14820         contains a SUBREG mixing SImode and SFmode.
14821         (vsx_register_operand): Likewise.
14822         (vsx_reg_sfsubreg_ok): New predicate.
14823         (vfloat_operand): Do not return true if the operand contains a
14824         SUBREG mixing SImode and SFmode.
14825         (vint_operand): Likewise.
14826         (vlogical_operand): Likewise.
14827         (gpc_reg_operand): Likewise.
14828         (int_reg_operand): Likewise.
14829         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
14830         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
14831         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
14832         SImode and SFmode.
14833         (rs6000_emit_move_si_sf_subreg): New helper function.
14834         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
14835         fixup SUBREGs involving SImode and SFmode.
14836         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
14837         numbers for the new peephole2 optimization.
14838         (peephole2 for SFmode unions): New peephole2 to optimize cases in
14839         the GLIBC math library that do AND/IOR/XOR operations on single
14840         precision floating point.
14841         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
14842         target macros to say whether we need to avoid SUBREGs mixing
14843         SImode and SFmode.
14844         (TARGET_ALLOW_SF_SUBREG): Likewise.
14845         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
14846         (UNSPEC_SI_FROM_SF): Likewise.
14847         (iorxor): Change spacing.
14848         (and_ior_xor): New iterator for AND, IOR, and XOR.
14849         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
14850         (movdi_from_sf_zero_ext): Likewise.
14851         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
14852         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
14853         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
14854         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
14855         (fms<mode>4): Likewise.
14856         (fnma<mode>4): Likewise.
14857         (fnms<mode>4): Likewise.
14858         (nfma<mode>4): Likewise.
14859         (nfms<mode>4): Likewise.
14861 2017-01-04  Marek Polacek  <polacek@redhat.com>
14863         PR c++/64767
14864         * doc/invoke.texi: Document -Wpointer-compare.
14866 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
14868         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
14869         RejectNegative.
14871         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
14872         descriptions for -gdwarf-5 and emit them as uleb128 instead of
14873         2-byte data.
14875 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14877         PR target/78056
14878         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
14879         documentation of the powerpc_popcntb_ok attribute.
14880         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14881         code to issue warning messages if a requested CPU configuration is
14882         not supported by the binary (assembler and loader) toolchain.
14883         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
14884         made to define a built-in function that has been disabled.
14885         (paired_init_builtins): Add assertion to prevent ICE if attempt is
14886         made to define a built-in function that has been disabled.
14887         (altivec_init_builtins): Add comment explaining why definition
14888         of the DST built-in functions is not preceded by an assertion
14889         check.  Add assertions to prevent ICE if attempts are made to
14890         define an altivec predicate or an abs* built-in function that has
14891         been disabled.
14892         (htm_init_builtins): Add comment explaining why definition of the
14893         htm built-in functions is not preceded by an assertion check.
14895 2017-01-04  Jeff Law  <law@redhat.com>
14897         PR tree-optimizatin/67955
14898         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
14899         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
14900         the points-to solution does not include pt_null.  Use DECL_PT_UID
14901         unconditionally.
14903 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
14905         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
14906         Use gen_int_mode instead of gen_lopwart for const_int operands.
14908 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
14910         PR tree-optimization/71563
14911         * match.pd: Simplify X << Y into X if Y is known to be 0 or
14912         out of range value - has low bits known to be zero.
14914 2017-01-04  Alan Modra  <amodra@gmail.com>
14916         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
14917         * configure: Regenerate.
14918         * config.in: Regenerate.
14920 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
14922         PR bootstrap/77569
14923         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
14924         a substring of the message, but strcmp with the whole message.  Ifdef
14925         ENABLE_NLS, translate the message first using dgettext.
14927 2017-01-03  Jeff Law  <law@redhat.com>
14929         PR tree-optimizatin/78856
14930         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
14931         (mark_threaded_blocks): Remove code to truncate thread paths that
14932         cross multiple loop headers.  Instead invalidate the cached loop
14933         iteration information and handle case of a thread path walking
14934         into an irreducible region.
14936 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14938         PR target/78900
14939         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
14940         assertions.  Add support for doing the signbit if the IEEE 128-bit
14941         floating point value is in a GPR.
14942         * config/rs6000/rs6000.md (Fsignbit): Delete.
14943         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
14944         Update the length attribute if the value is in a GPR.
14945         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
14946         the sign or zero extension instruction, since the value is always 0/1.
14947         (signbit<mode>2_dm2): Delete using <Fsignbit>.
14949         PR target/78953
14950         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
14951         extracting SImode to a GPR register so that we can generate a
14952         store, limit the vector to be in a traditional Altivec register
14953         for the vextuwrx instruction.
14955 2017-01-03  Ian Lance Taylor  <iant@google.com>
14957         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
14959 2017-01-03  Martin Sebor  <msebor@redhat.com>
14961         PR tree-optimization/78696
14962         * gimple-ssa-sprintf.c (format_floating): Correct handling of
14963         precision.  Use MPFR for %f for greater fidelity.  Correct handling
14964         of %g.
14965         (pass_sprintf_length::compute_format_length): Set width and precision
14966         specified by asrerisk to void_node for vararg functions.
14967         (try_substitute_return_value): Adjust dump output.
14969 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
14971         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
14973 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14975         * doc/invoke.texi (SPARC options): Document -mlra as the default.
14976         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
14977         -mlra/-mno-lra was passed to the compiler.
14979 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
14981         PR rtl-optimization/65618
14982         * emit-rtl.c (try_split): Move initialization of "before" and
14983         "after" to just before the call to emit_insn_after_setloc.
14985 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
14987         * doc/md.texi (Standard Names): Remove reference to Java frontend.
14989 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
14991         * dwarf2out.c (gen_enumeration_type_die): When
14992         -gno-strict-dwarf, add a DW_AT_encoding attribute.
14994 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
14996         PR tree-optimization/78965
14997         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
14998         Change first argument from const call_info & to call_info &.  For %n
14999         set info.nowrite to false.
15001         PR middle-end/78901
15002         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
15003         possibly throwing calls.
15005         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
15006         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
15007         and fns handling, rather than in a separate case SSA_NAME.
15009 2017-01-02  Jeff Law  <law@redhat.com>
15011         * config/darwin-driver.c (darwin_driver_init): Const-correctness
15012         fixes for first_period and second_period variables.
15014 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
15016         PR target/78967
15017         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
15018         (*insvqi_1): New insn pattern.
15019         (*insvqi_1_mem_rex64): Ditto.
15020         (*insvqi_2): Ditto.
15021         (*insvqi_3): Rename from *insvqi.
15023         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
15025 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
15027         * doc/cfg.texi (Edges): Remove reference to Java.
15028         (Maintaining the CFG): Ditto.
15030 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
15032         PR middle-end/77674
15033         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
15034         transparent aliases.
15036 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
15038         PR middle-end/77484
15039         * predict.def (PRED_CALL): Update hitrate.
15040         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
15041         * predict.c (tree_estimate_probability_bb): Split CALL predictor
15042         into direct/indirect/polymorphic variants.
15044 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
15046         Update copyright years.
15048         * gcc.c (process_command): Update copyright notice dates.
15049         * gcov-dump.c (print_version): Ditto.
15050         * gcov.c (print_version): Ditto.
15051         * gcov-tool.c (print_version): Ditto.
15052         * gengtype.c (create_file): Ditto.
15053         * doc/cpp.texi: Bump @copying's copyright year.
15054         * doc/cppinternals.texi: Ditto.
15055         * doc/gcc.texi: Ditto.
15056         * doc/gccint.texi: Ditto.
15057         * doc/gcov.texi: Ditto.
15058         * doc/install.texi: Ditto.
15059         * doc/invoke.texi: Ditto.
15061 Copyright (C) 2017 Free Software Foundation, Inc.
15063 Copying and distribution of this file, with or without modification,
15064 are permitted in any medium without royalty provided the copyright
15065 notice and this notice are preserved.