libgo: add misc/cgo files
[official-gcc.git] / gcc / ChangeLog
blob7c19bf042c0f6306420a40ae788b7f724a42dfbb
1 gcc/ChangeLog:
3 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
4             Olivier Hainque  <hainque@adacore.com>
6         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
7         for all vxworks7 targets.
8         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
9         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
10         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
11         variations for VX6/VX7 and 32/64bits later on in ...
12         (VXWORKS_LIB_SPEC): Leverage new macros.
13         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
14         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
16 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
18         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
19         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
21 2017-06-26  Carl Love  <cel@us.ibm.com>
23         * config/rs6000/rs6000-c.c: Add support for built-in functions
24         vector bool char vec_reve (vector bool char);
25         vector signed char vec_reve (vector signed char);
26         vector unsigned char vec_reve (vector unsigned char);
27         vector bool int vec_reve (vector bool int);
28         vector signed int vec_reve (vector signed int);
29         vector unsigned int vec_reve (vector unsigned int);
30         vector bool long long vec_reve (vector bool long long);
31         vector signed long long vec_reve (vector signed long long);
32         vector unsigned long long vec_reve (vector unsigned long long);
33         vector bool short vec_reve (vector bool short);
34         vector signed short vec_reve (vector signed short);
35         vector double vec_reve (vector double);
36         vector float vec_reve (vector float);
37         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
38         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
39         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
40         (altivec_vreve): New pattern.
41         * config/rs6000/altivec.h (vec_reve): New define.
42         * doc/extend.texi (vec_rev): Update the built-in documentation file
43         for the new built-in functions.
45 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
47         PR tree-optimization/71815
48         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
49         function.
50         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
51         has_single_use.
52         (slsr_process_phi): Likewise.
53         (replace_uncond_cands_and_profitable_phis): Don't replace a
54         multiply candidate with a stride of 1 (copy or cast).
55         (phi_incr_cost): Call uses_consumed_by_stmt rather than
56         has_single_use.
57         (lowest_cost_path): Likewise.
58         (total_savings): Likewise.
60 2017-06-26  Richard Biener  <rguenther@suse.de>
62         PR target/81175
63         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
64         Use def_builtin_pure for all gather builtins.
66 2017-06-26  Richard Biener  <rguenther@suse.de>
68         PR tree-optimization/81203
69         * tree-tailcall.c (find_tail_calls): Do not move stmts into
70         non-dominating BBs.
72 2017-06-26  Marek Polacek  <polacek@redhat.com>
74         PR c/80116
75         * doc/invoke.texi: Document -Wmultistatement-macros.
77 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
79         * doc/sourcebuild.texi (ARM-specific attributes): Document new
80         arm_neon_ok_no_float_abi effective target.
82 2017-06-26  Richard Biener  <rguenther@suse.de>
84         PR tree-optimization/80928
85         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
86         (copy_bbs): Set BB_DUPLICATED flag early.
87         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
88         marked blocks.
89         (execute_on_shrinking_pred): Likewise.
90         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
91         BB_DUPLICATED blocks.
92         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
93         iterate over all PHIs considering removal of *gsi.
95 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
97         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
98         qdf24xx.
100 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
102         * config/rs6000/rs6000-string.c: (expand_block_clear,
103         do_load_for_compare, select_block_compare_mode,
104         compute_current_alignment, expand_block_compare,
105         expand_strncmp_align_check, expand_strn_compare,
106         expand_block_move, rs6000_output_load_multiple)
107         Move functions related to string/block move/compare
108         to a separate file.
109         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
110         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
111         for this function which is now used in two files.
112         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
113         * config.gcc: Add rs6000-string.o to extra_objs for
114         targets powerpc*-*-* and rs6000*-*-*.
116 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
118         PR target/80510
119         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
120         32-bit, since indexed is not valid for DImode.
121         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
122         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
123         (define_peephole2 for Altivec d-form load): Add 32-bit support.
124         (define_peephole2 for Altivec d-form store): Likewise.
126         PR ipa/81185
127         * multiple_target.c (create_dispatcher_calls): Only create the
128         dispatcher call if the function is the default clone of a
129         versioned function.
131 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
133         PR middle-end/80902
134         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
135         a call, force the call to not be a tail call.
137 2017-06-23  Jeff Law  <law@redhat.com>
139         * doc/contrib.texi: Add entry for Steven Pemberton's work on
140         enquire.
142 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
144         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
145         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
146         handling for early expansion of vector shifts (sl,sr,sra,rl).
147         (builtin_function_type): Add vector shift right instructions
148         to the unsigned argument list.
150 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
152         rtl-optimizatoin/79286
153         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
154         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
155         trap.  PIC register plus a const unspec without offset can never trap.
157 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
159         * tree.h (builtin_structptr_type): New type.
160         (builtin_structptr_types): Declare new array.
161         * tree.c (builtin_structptr_types): New array.
162         (free_lang_data, build_common_tree_nodes): Use it.
164 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
166         PR c++/81187
167         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
168         -Wnoexcept.
170 2017-06-22  Matt Turner  <mattst88@gmail.com>
172         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
173         Lake models to skylake case.  Assume skylake for unknown
174         models with clflushopt.
176 2017-06-22  Jeff Law  <law@redhat.com>
178         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
179         frame sizes that do not satisfy aarch64_uimm12_shift.
181 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
183         * profile-count.h (apply_probability,
184         apply_scale, probability_in): Fix checks for zero.
186 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
188         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
189         * doc/cppdiropts.texi (-I @var{dir}): Document it.
191 2016-06-22  Richard Biener  <rguenther@suse.de>
193         * tree-vect-loop.c (vect_model_reduction_cost): Handle
194         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
195         REDUC_MAX_EXPR support.
196         (vectorizable_reduction): Likewise.
197         (vect_create_epilog_for_reduction): Likewise.
199 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
201         * match.pd (A / (1 << B) -> A >> B): New.
202         * generic-match-head.c: Include optabs-tree.h.
203         * gimple-match-head.c: Likewise.
204         * optabs-tree.h (target_supports_op_p): New.
205         * optabs-tree.c (target_supports_op_p): New.
207 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
209         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
210         $gcc_cv_ld --help output.
211         (gcc_cv_ld_demangle): Likewise.
212         (gcc_cv_ld_eh_frame_hdr): Likewise.
213         (gcc_cv_ld_pie): Likewise.
214         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
215         (gcc_cv_ld_buildid): Likewise.
216         (gcc_cv_ld_sysroot): Likewise.
217         (ld_bndplt_support): Likewise.
218         (ld_pushpopstate_support): Likewise.
219         * configure: Regenerate.
220         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
222 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
224         PR target/81151
225         * config/i386/sse.md (round<mode>2): Renumber match_dup and
226         operands indexes to avoid gap between operands and match_dups.
228 2017-06-21  Andrew Pinski  <apinski@cavium.com>
230         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
231         Increment Arith_shift and Arith_shift_reg by 1.
232         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
233         New tuning flag.
234         * config/aarch64/aarch64.c (thunderx_tunings): Enable
235         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
236         (aarch64_strip_extend): Add new argument and test for it.
237         (aarch64_cheap_mult_shift_p): New function.
238         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
239         add a cost if it is true.
240         Update calls to aarch64_strip_extend.
241         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
243 2017-06-21  Andrew Pinski  <apinski@cavium.com>
245         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
246         tunings.
247         (thunderxt88): Likewise.
248         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
249         (thunderx_prefetch_tune): New variable.
250         (thunderx2t99_prefetch_tune): Update for the correct values.
251         (thunderxt88_tunings): New variable.
252         (thunderx_tunings): Use thunderx_prefetch_tune instead of
253         generic_prefetch_tune.
254         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
256 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
258         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
259         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
260         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
261         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
262         (aarch64_atomic_cas<mode>, GPI): Likewise.
264 2017-06-21  Martin Liska  <mliska@suse.cz>
266         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
267         statements on cold and hot labels.
268         * predict.c (tree_estimate_probability_bb): Remove the
269         prediction from this place.
271 2017-06-21  Martin Liska  <mliska@suse.cz>
273         PR tree-optimization/79489
274         * gimplify.c (maybe_add_early_return_predict_stmt): New
275         function.
276         (gimplify_return_expr): Call the function.
277         * predict.c (tree_estimate_probability_bb): Remove handling
278         of early return.
279         * predict.def: Update comment about early return predictor.
280         * gimple-predict.h (is_gimple_predict): New function.
281         * predict.def: Change default value of early return to 66.
282         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
283         statements.
284         * passes.def: Put pass_strip_predict_hints to the beginning of
285         IPA passes.
287 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
289         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
290         FUNCTION_DECL declarations.
291         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
292         declarations.
293         (dwaf2out_decl): Likewise.
294         * godump.c (go_early_global_decl): Skip call to the real debug hook
295         for FUNCTION_DECL declarations.
296         * passes.c (rest_of_decl_compilation): Skip call to the
297         early_global_decl debug hook for FUNCTION_DECL declarations, unless
298         -fdump-go-spec is passed.
300 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
302         * config/i386/i386.c (struct builtin_isa): New field pure_p.
303         Reorder for compactness.
304         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
305         (def_builtin_pure, def_builtin_pure2): New functions.
306         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
308 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
310         * match.pd (nop_convert): New predicate.
311         ((A +- CST1) +- CST2): Allow some NOP conversions.
313 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
315         PR c++/81130
316         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
317         with ctors/dtors if GOVD_SHARED is set.
319 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
321         * config/aarch64/aarch64.md (movti_aarch64):
322         Emit mov rather than orr.
323         (movtf_aarch64): Likewise.
324         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
325         Emit mov rather than orr.
327 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
329         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
330         Swap alternatives, make integer dup more expensive.
332 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
334         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
335         Return true for non-tls symbols.
337 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
339         * config/aarch64/aarch64-cores.def (cortex-a55): New.
340         (cortex-a75): Likewise.
341         (cortex-a75.cortex-a55): Likewise.
342         * config/aarch64/aarch64-tune.md: Regenerate.
343         * doc/invoke.texi (-mtune): Document new values for -mtune.
345 2017-06-21  Tom de Vries  <tom@codesourcery.com>
347         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
348         stack_size feature.
349         (Effective-Target Keywords, Other attributes): Suggest using
350         dg-add-options stack_size feature to get stack limit in stack_size
351         effective target documentation.
353 2017-06-21  Julian Brown  <julian@codesourcery.com>
354             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
356         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
357         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
358         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
359         reservation.
360         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
361         attribute type list for neon_multiply.
362         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
363         attribute type list for neon_multiply.
364         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
365         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
366         attribute type list for neon_multiply.
367         * config/arm/types.md (crypto_pmull): Add.
368         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
369         attribute type list.    
371 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
373         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
374         arm1176jzf-s.
376 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
378         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
379         to make sure not to dereference a NULL cost_classes_ptr pointer.
381 2017-06-20  Carl Love  <cel@us.ibm.com>
383         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
384         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
385         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
386         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
387         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
388         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
389         VMULOSW): New enum "unspec" values.
390         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
391         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
392         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
393         altivec_vmulosw): New patterns.
394         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
395         VMULOSW): Add definitions.
397 2017-06-20  Julia Koval  <julia.koval@intel.com>
399         * config/i386/i386.c: Fix rounding expand for new pattern.
400         * config/i386/subst.md: Fix pattern (parallel -> unspec).
402 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
404         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
405         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
407 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
409         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
410         feature string.
412 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
414         * config/aarch64/aarch64-cores.def: Rearrange to sort by
415         architecture, then by implementer ID.
416         * config/aarch64/aarch64-tune.md: Regenerate.
418 2017-06-20  Richard Biener  <rguenther@suse.de>
420         PR middle-end/81097
421         * fold-const.c (split_tree): Fold to type before negating.
423 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
425         * diagnostic-show-locus.c
426         (selftest::test_fixit_deletion_affecting_newline): New function.
427         (selftest::diagnostic_show_locus_c_tests): Call it.
429 2017-06-20  Andreas Schwab  <schwab@suse.de>
431         PR target/80970
432         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
433         instead of "+d".
435 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
437         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
438         __ARM_FEATURE_COPROC according to support.
440 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
442         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
443         Rewritten to avoid overflow for > 32-bit pointers.
445         PR sanitizer/81125
446         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
447         by removing enum keyword.
448         (ubsan_type_descriptor): Likewise.  Formatting fix.
450         PR target/81121
451         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
452         splitter): Require TARGET_SSE2 in the condition.
454 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
456         PR target/79799
457         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
458         for doing vector set of SFmode on ISA 3.0.
459         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
460         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
461         element.
462         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
463         SFmode value into a V4SF variable that was extracted from another
464         V4SF variable without converting the element to double precision
465         and back to single precision vector format.
466         (vsx_insert_extract_v4sf_p9_2): Likewise.
468 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
470         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
471         in UWHI to avoid undefined overflow.
473         PR sanitizer/81125
474         * ubsan.h (enum ubsan_encode_value_phase): New.
475         (ubsan_encode_value): Change second argument to
476         enum ubsan_encode_value_phase with default value of
477         UBSAN_ENCODE_VALUE_GENERIC.
478         * ubsan.c (ubsan_encode_value): Change second argument to
479         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
480         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
481         create_tmp_var_raw instead of create_tmp_var and use a
482         TARGET_EXPR.
483         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
484         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
485         ubsan_encode_value callers.
487         PR sanitizer/81111
488         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
489         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
490         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
492 2017-06-19  Richard Biener  <rguenther@suse.de>
494         PR middle-end/81118
495         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
496         estimates if we changed anything.
498 2017-06-19  Richard Biener  <rguenther@suse.de>
500         PR tree-optimization/80887
501         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
502         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
503         simplified lookups, then reset mprts_hook.
504         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
505         simplifying.
506         (try_to_simplify): Likewise.
508 2017-06-19  Martin Liska  <mliska@suse.cz>
510         PR sanitizer/80879
511         * gimplify.c (gimplify_switch_expr):
512         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
514 2017-06-19  Martin Liska  <mliska@suse.cz>
516         * doc/install.texi: Document that PGO runs in 4 stages.
518 2017-06-19  Martin Liska  <mliska@suse.cz>
520         PR ipa/80732
521         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
522         to dispatcher function name.
523         * multiple_target.c (replace_function_decl): New function.
524         (create_dispatcher_calls): Redirect both edges and references.
526 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
528         * profile-count.c (profile_count::dump): Dump quality.
529         (profile_count::differs_from_p): Update for unsigned val.
530         * profile-count.h (profile_count_quality): New enum.
531         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
533 2017-06-19  Richard Biener  <rguenther@suse.de>
535         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
536         struct function as arg.
537         (estimate_numbers_of_iterations): Export overload with loop arg.
538         (free_numbers_of_iterations_estimates_loop): Use an overload of
539         free_numbers_of_iterations_estimates instead.
540         * tree-cfg.c (remove_bb): Adjust.
541         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
542         * tree-parloops.c (gen_parallel_loop): Likewise.
543         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
544         Likewise.
545         (tree_unroll_loops_completely): Likewise.
546         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
547         Use an overload instead and export.
548         (estimated_loop_iterations): Adjust.
549         (max_loop_iterations): Likewise.
550         (likely_max_loop_iterations): Likewise.
551         (estimate_numbers_of_iterations): Take struct function as arg
552         and adjust.
553         (loop_exits_before_overflow): Adjust.
554         (free_numbers_of_iterations_estimates_loop): Use an overload.
555         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
556         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
558 2017-06-19  Richard Biener  <rguenther@suse.de>
560         PR ipa/81112
561         * ipa-prop.c (find_constructor_constant_at_offset): Handle
562         RANGE_EXPR conservatively.
564 2017-06-16  Carl Love  <cel@us.ibm.com>
566         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
567         definitions for vec_float, vec_float2, vec_floato,
568         vec_floate built-ins.
569         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
570         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
571         floate.
572         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
573         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
574         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
575         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
576         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
577         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
578         vec_floato): Add builtin defines.
579         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
580         Update the built-in documentation file for the new built-in
581         functions.
583 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
585         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
586         (mthumb): Mark as the negative of -marm.
588 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
590         * doc/invoke.texi (ARM Options, -mcpu): Document supported
591         extension options.
592         (ARM Options, -mtune): Document that this accepts the same
593         extension options as -mcpu.
594         (ARM Options, -mfpu): Document addition of -mfpu=auto.
596 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
598         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
599         permitted extensions.
601 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
603         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
604         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
605         (armv8-m.main): Add option +nodsp.
606         * config/arm/arm-cpu-cdata.h: Regenerated.
608 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
610         * config/arm/t-fuchsia: New file.
611         * config.gcc (arm*-*-fuchsia*): Use it.
613 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
615         * config/arm/t-symbian: Rewrite for new option infrastructure.
617 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
619         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
620         (MULTILIB_REQUIRED): Likewise.
622 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
624         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
625         (MULTILIB_RESUE): Likewise.
626         (MULTILIB_MATCHES): Likewise.
627         (MULTLIB_REQUIRED): Likewise.
629 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
631         * config/arm/t-rtems: Rewrite for new option framework.
633 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
635         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
636         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
637         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
638         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
639         * config/arm/t-multilib: ... here.
640         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
641         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
642         armv7-a and armv8*-a when A-profile libraries have not been built.
643         * config/arm/t-rmprofile: Rewrite.
645 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
647         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
648         with a backslash.  Remove the backslash after substituting unescaped
649         periods.
650         * doc/fragments.texi (MULTILIB_REUSE): Document it.
652 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
654         * config.gcc: (arm*-*-*): When building a-profile libraries, force
655         the driver to pass through the default setting of -mfloat-abi.
656         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
657         rather than NULL.
658         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
659         (all_feat_combs): New rule.
660         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
661         default libraries.
662         * config/arm/t-aprofile: Rewrite.
664 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
666         * config/arm/arm.h (FPUTYPE_AUTO): Define.
667         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
668         fpu is not specified by the user/command-line.
669         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
670         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
671         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
672         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
673         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
674         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
676 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
678         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
679         * config/arm/t-arm-elf: Rewritten.
681 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
683         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
684         have some floating-point instructions.
685         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
686         (TARGET_MAYBE_HARD_FLOAT): New macro.
687         * config/arm/arm-builtins.c (arm_init_builtins): Use
688         TARGET_MAYBE_HARD_FLOAT.
689         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
691 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
693         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
694         (configargs.h): Include it.
695         (arm_print_hint_for_fpu_option): New function.
696         (arm_parse_fpu_option): New function.
697         (candidate_extension): New class.
698         (arm_canon_for_multilib): New function.
699         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
700         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
701         (ARCH_CANONICAL_SPECS): New macro.
702         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
704 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
706         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
707         are set after handling multilib fragments.  Set target_cpu_default2
708         from with_cpu.
710 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
712         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
713         cpu name.
714         (arm*-*-*): Set target_cpu_default2 to a quoted string.
715         * config/arm/parsecpu.awk (check_cpu): Validate any extension
716         options.
717         (check_arch): Likewise.
718         * config/arm/arm.c (arm_configure_build_target): Handle
719         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
720         options in the default.
722 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
724         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
725         when an option is an alias of another.
726         * config/arm/parsecpu.awk (optalias): New parser token.
727         (gen_comm_data): Mark non-alias options as such.  Emit entries
728         for extension aliases.
729         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
730         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
731         (armv6kz, armv6zk, armv6t2): Likewise.
732         (armv7): Make vfpv3-d16 an alias.
733         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
734         canonical order.
735         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
736         Sort in canonical order.
737         (armv8-a): Sort in canonical order.
738         (armv8.1-a, armv8.2-a):  Likewise.
739         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
740         canonical order.
741         (cortex-a9): Sort in canonical order.
742         * config/arm/arm.c (selftests.h): Include it.
743         (arm_test_cpu_arch_data): New function.
744         (arm_run_self_tests): New function.
745         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
746         (targetm): Move declaration to the end of the file.
747         * arm-cpu-cdata.h: Regenerated.
749 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
751         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
752         call to target_mode_check describing the type of option passed.
753         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
754         (arm_target_thumb_only): Use arm_parse_arch_option_name or
755         arm_parse_cpu_option_name to match parameters against list of
756         available targets.
757         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
758         arm_arch_core_flags data structure.
759         * config/arm/arm-cpu_cdata.h: Regenerated.
761 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
763         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
764         config/arm/arm.c.
765         (arm_print_hint_for_cpu_option): Likewise.
766         (arm_print_hint_for_arch_option): Likewise.
767         (arm_parse_cpu_option_name): Likewise.
768         (arm_parse_arch_option_name): Likewise.
769         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
770         of entries in the all_fpus list.
771         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
772         (arm_parse_cpu_option_name): Declare.
773         (arm_parse_arch_option_name): Declare.
774         (arm_parse_option_features): Declare.
775         (arm_intialize_isa): Declare.
776         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
777         data tables to ...
778         (gen_comm_data): ... here.  Make definitions non-static.
779         * config/arm/arm-cpu-data.h: Regenerated.
780         * config/arm/arm-cpu-cdata.h: Regenerated.
782 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
784         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
785         (cpu_arch_extension): New structure.
786         (cpu_arch_option, arch_option, cpu_option): New structures.
787         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
788         architecture types.
789         (gen_data): Generate new format data tables.
790         * config/arm/arm.c (cpu_tune): New structure.
791         (cpu_option, processors): Delete.
792         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
793         (arm_print_hint_for_cpu_option): ... this and ...
794         (arm_print_hint_for_arch_option): ... this.
795         (arm_parse_arch_cpu_name): Delete.  Replace with ...
796         (arm_parse_cpu_option_name): ... this and ...
797         (arm_parse_arch_option_name): ... this.
798         (arm_unrecognized_feature): Change type of target parameter to
799         cpu_arch_option.
800         (arm_parse_arch_cpu_features): Delete.  Replace with ...
801         (arm_parse_option_features): ... this.
802         (arm_configure_build_target): Rework to use new configuration data
803         tables.
804         (arm_print_tune_info): Rework for new configuration data tables.
805         * config/arm/arm-cpu-data.h: Regenerated.
806         * config/arm/arm-cpu.h: Regenerated.
808 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
810         * Makefile.in (OBJS): Move sbitmap.o from here ...
811         (OBJS-libcommon): ... to here.
813 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
815         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
816         (ISA_ALL_CRYPTO): New macro.
817         (ISA_ALL_SIMD): New macro
818         (ISA_ALL_FP): New macro.
819         * config/arm/arm.c (fpu_bitlist): Update initializer.
820         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
821         simd or fp.
822         (arm9e): Add fpu.  Add option for nofp
823         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
824         (arm926ej-s, arm1026ej-s): Likewise.
825         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
826         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
827         neon-fp16, neon-vfpv4, nofp and nosimd.
828         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
829         (cortex-a8): Add fpu.  Add option for nofp.
830         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
831         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
832         (cortex-r4f): Add fpu.
833         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
834         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
835         for nofp.
836         (cortex-r8): Likewise.
837         (cortex-m4): Add fpu.  Add option for nofp.
838         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
839         (cortex-a17.cortex-a7): Likewise.
840         (cortex-a32): Add fpu.  Add options for crypto and nofp.
841         (cortex-a35, cortex-a53): Likewise.
842         (cortex-a57): Add fpu.  Add option for crypto.
843         (cortex-a72, cortex-a73): Likewise.
844         (exynos-m1): Likewise.
845         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
846         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
847         (cortex-m33): Add fpu.  Add option for nofp.
848         * config/arm/arm-cpu-cdata.h: Regenerated
849         * config/arm/arm-cpu-data.h: Regenerated.
851 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
853         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
854         (armv5te, armv5tej): Likewise.
855         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
856         (armv7): Add options fp and vfpv3-d16.
857         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
858         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
859         nofp and nosimd.
860         (armv7ve): Likewise.
861         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
862         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
863         (armv8-a): Add nocrypto option.
864         (armv8.1-a, armv8.2-a): Likewise.
865         (armv8-m.main): add options fp, fp.dp and nofp.
867 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
869         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
870         nofp.
871         (armv8-a+crc): Delete.
872         (armv8.1-a): Add options simd, crypto and nofp.
873         (armv8.2-a): Add options fp16, simd, crypto and nofp.
874         (armv8.2-a+fp16): Delete.
875         (armv8-m.main): Add option dsp.
876         (armv8-m.main+dsp): Delete.
877         (cortex-a8): Add fpu.  Add nofp option.
878         (cortex-a9): Add fpu.  Add nofp and nosimd options.
879         * config/arm/parsecpu.awk (gen_data): Generate option tables and
880         link to main cpu and architecture data structures.
881         (gen_comm_data): Only put isa attributes from the main architecture
882         in common tables.
883         (option): New statement for architecture and CPU entries.
884         * arm.c (struct cpu_option): New structure.
885         (struct processors): Add entry for options.
886         (arm_unrecognized_feature): New function.
887         (arm_parse_arch_cpu_name): Ignore any characters after the first
888         '+' character.
889         (arm_parse_arch_cpu_feature): New function.
890         (arm_configure_build_target): Separate out any CPU and architecture
891         features and parse separately.  Don't error out if -mfpu=auto is
892         used with only an architecture string.
893         (arm_print_asm_arch_directives): New function.
894         (arm_file_start): Call it.
895         * config/arm/arm-cpu-cdata.h: Regenerated.
896         * config/arm/arm-cpu-data.h: Likewise.
897         * config/arm/arm-tables.opt: Likewise.
899 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
901         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
902         assembler when it is not -mfpu=auto.
904 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
906         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
907         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
908         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
909         (ASM_CPU_SPEC): Rewrite.
910         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
911         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
912         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
913         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
914         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
915         copied string is NUL-terminated.  Also strip any characters prefixed
916         by '+'.
917         (arm_rewrite_selected_arch): New function.
918         (arm_rewrite_march): New function.
920 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
922         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
923         (x_arm_cpu_string, x_arm_tune_string): Likewise.
924         (march, mcpu, mtune): Convert to string-based options.
925         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
926         (arm_parse_arch_cpu_name): New function.
927         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
928         identify selected architecture or CPU.
929         (arm_option_save): New function.
930         (TARGET_OPTION_SAVE): Redefine.
931         (arm_option_restore): Restore string options.
932         (arm_option_print): Print string options.
934 2017-06-16  Martin Sebor  <msebor@redhat.com>
936         PR tree-optimization/80933
937         PR tree-optimization/80934
938         * builtins.c (fold_builtin_3): Do not handle bcmp here.
939         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
940         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
941         (gimple_fold_builtin): Call them.
943 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
945         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
946         as unlikely; update profile.
948 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
950         * predict.c (force_edge_cold): Handle declaring edges impossible
951         more aggresively.
953 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
955         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
956         profile.
957         (try_unroll_loop_completely): Fix reporting.
959 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
961         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
963 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
965         PR target/71778
966         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
967         if given a non-constant argument for an intrinsic which requires a
968         constant.
970 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
972         * profile.c (compare_freqs): New function.
973         (branch_prob): Sort edge list.
974         (find_spanning_tree): Assume that the list is priority sorted.
976 2017-06-16  Richard Biener  <rguenther@suse.de>
978         PR tree-optimization/81090
979         * passes.def (pass_record_bounds): Remove.
980         * tree-pass.h (make_pass_record_bounds): Likewise.
981         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
982         make_pass_record_bounds): Likewise.
983         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
984         not free niter estimates at the beginning but at the end.
985         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
987 2017-06-16  Richard Biener  <rguenther@suse.de>
989         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
990         initializer to workaround ICE in host GCC 4.8.
992 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
994         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
995         counts.
996         (clone_inlined_nodes): Update.
998 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1000         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
1001         prefetch settings, and enable prefetching by default at -O3.
1003 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1005         * config/aarch64/aarch64.c (aarch64_override_options_internal):
1006         Set flag_prefetch_loop_arrays according to tuning data.
1008 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1010         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
1011         New tune structure.
1012         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
1013         [Unrelated to main purpose of the patch] Place the pointer field last
1014         to enable type checking errors when tune structure are wrongly merged.
1015         * config/aarch64/aarch64.c (generic_prefetch_tune,)
1016         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
1017         (thunderx2t99_prefetch_tune): New tune constants.
1018         (tune_params *_tunings): Update all tunings (no functional change).
1019         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
1020         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
1021         from tunings structures.
1023 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
1025         PR sanitizer/81094
1026         * ubsan.c (instrument_null): Add T argument, use it instead
1027         of computing it based on IS_LHS.
1028         (instrument_object_size): Likewise.
1029         (pass_ubsan::execute): Adjust instrument_null and
1030         instrument_object_size callers to pass gimple_get_lhs or
1031         gimple_assign_rhs1 result to it.  Use instrument_null instead of
1032         calling get_base_address and instrument_mem_ref.  Handle
1033         aggregate call arguments for object-size sanitization.
1035 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
1037         PR tree-optimization/81089
1038         * tree-vrp.c (is_masked_range_test): Validate operands of
1039         subexpression.
1041 2017-06-15  Martin Sebor  <msebor@redhat.com>
1043         PR c++/80560
1044         * dumpfile.c (dump_register): Avoid calling memset to initialize
1045         a class with a default ctor.
1046         * gcc.c (struct compiler): Remove const qualification.
1047         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
1048         * hash-table.h: Ditto.
1049         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
1050           assignment.
1051         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
1052         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
1053         default ctor.
1054         * params.h (struct param_info): Make struct members non-const.
1055         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
1056         with default initialization.
1057         * vec.h (vec_copy_construct, vec_default_construct): New helper
1058         functions.
1059         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
1060         with vec_copy_construct.
1061         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
1062         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
1063         * doc/invoke.texi (-Wclass-memaccess): Document.
1065 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1067         * emit-rtl.h (is_leaf): Update comment about local
1068         register allocator.
1070 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
1072         PR target/78818
1073         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
1074         for a variable to have a section before checking if the section has a
1075         name.
1076         Set section to.persistent if persistent attribute is set.
1077         Warn if .persistent attribute is used on an automatic variable.
1079 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
1081         PR rtl-optimization/80474
1082         * reorg.c (update_block): Do not ignore instructions in a delay slot.
1084 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
1086         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
1087         of REGNO.
1089 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
1091         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
1092         (casesi): Emit bounds checking as RTL.
1093         (casesi_internal_mips16_<mode>): Remove bounds checking.
1095 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
1097         * config/xtensa/xtensa.c (xtensa_option_override): Append
1098         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
1099         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
1100          xtensa_doloop_hooks): Define unconditionally.
1101         (xtensa_reorg_loops): Only call reorg_loops in the presence of
1102         TARGET_LOOPS.
1103         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
1104         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
1105         for it in xtensa_option_override.
1106         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1107          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
1109 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
1111         * doc/cppopts.texi: Document '-' special value to -MF.
1113 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
1115         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
1116         (cortex_a53_fconst): Likewise.
1117         (cortex_a53_fpmul): Likewise.
1118         (cortex_a53_f_load_64): Likewise.
1119         (cortex_a53_f_load_many): Likewise.
1120         (cortex_a53_advsimd_alu): Likewise.
1121         (cortex_a53_advsimd_alu_q): Likewise.
1122         (cortex_a53_advsimd_mul): Likewise.
1123         (cortex_a53_advsimd_mul_q): Likewise.
1124         (fpmac bypass): Add new bypass for fpmac-fpmac case.
1125         Add missing fmul, r2f_cvt and fconst cases.
1127 2017-06-14  Richard Biener  <rguenther@suse.de>
1129         PR middle-end/81088
1130         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
1131         literal constants.
1132         (fold_binary_loc): When associating do not treat pre-existing
1133         TREE_OVERFLOW on literal constants as a reason to allow
1134         TREE_OVERFLOW on associated literal constants.
1136 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1138         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
1139         (MASK_FEATURES): New macro.
1140         * config/sparc/sparc.c (sparc_option_override): Remove the special
1141         handling of -mfpu and generalize it to all MASK_FEATURES switches.
1143 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1145         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
1146         a division of 0 if non-call exceptions are enabled.
1148 2017-06-14  Andrew Pinski  <apinski@cavium.com>
1149             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
1151         PR target/71663
1152         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
1153         Improve vector initialization code gen for only variable case. 
1155 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
1157         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
1159 2017-06-14  Richard Biener  <rguenther@suse.de>
1161         PR tree-optimization/81083
1162         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
1163         as values.
1165 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1167         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
1168         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
1169         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
1170         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
1171         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
1172         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
1174 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1176         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
1177         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
1179 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1181         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
1183 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1185         * config/rs6000/t-rtems: Don't handle SPE.
1187 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1189         * config/rs6000/t-linux: Don't handle SPE.
1191 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1193         * config/rs6000/eabispe.h: Delete file.
1195 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1197         * config/rs6000/t-spe: Delete file.
1199 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1201         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
1202         (rs6000_legitimate_offset_address_p): Return false for anything in
1203         V2SImode or V2SFmode.
1205 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
1207         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
1208         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
1209         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
1210         and V4HImode.
1211         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
1212         (rs6000_legitimate_offset_address_p): Ditto.
1213         (rs6000_emit_move): Ditto.
1214         (rs6000_init_builtins): Remove V4HI_type_node.
1216 2017-06-13  Martin Liska  <mliska@suse.cz>
1218         PR sanitize/78204
1219         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
1220         (gate_asan): Likewise.
1221         * asan.h (asan_no_sanitize_address_p): Remove the function.
1222         (sanitize_flags_p): New function.
1223         * builtins.def: Fix coding style.
1224         * common.opt: Use renamed enum value.
1225         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
1226         * doc/extend.texi: Document no_sanitize attribute.
1227         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
1228         to SANITIZE_UNDEFINED_NONDEFAULT.
1229         * gcc.c (sanitize_spec_function): Use the renamed enum value.
1230         * gimple-fold.c (optimize_atomic_compare_exchange_p):
1231         Use sanitize_flags_p.
1232         * gimplify.c (gimplify_function_tree): Likewise.
1233         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
1234         * opts.c (parse_no_sanitize_attribute): New function.
1235         (common_handle_option): Use renamed enum value.
1236         * opts.h (parse_no_sanitize_attribute): Declare.
1237         * tree.c (sanitize_flags_p): New function.
1238         * tree.h: Declared here.
1239         * tsan.c: Use sanitize_flags_p.
1240         * ubsan.c (ubsan_expand_null_ifn): Likewise.
1241         (instrument_mem_ref): Likewise.
1242         (instrument_bool_enum_load): Likewise.
1243         (do_ubsan_in_current_function): Remove the function.
1244         (pass_ubsan::execute): Use sanitize_flags_p.
1245         * ubsan.h: Remove do_ubsan_in_current_function
1246         * tree-cfg.c (print_no_sanitize_attr_value): New function.
1247         (dump_function_to_file): Use it here.
1249 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1251         PR tree-optimization/80803
1252         PR tree-optimization/81063
1253         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
1254         (propagate_subaccesses_across_link): Enqueue subtree whenever
1255         necessary instead of relying on the caller.
1257 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1259         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
1260         that have a first_link.
1261         (sort_and_splice_var_accesses): Do not check first_link before
1262         enquing.
1263         (subtree_mark_written_and_enqueue): Likewise.
1264         (propagate_all_subaccesses): Likewise and do not stop at first
1265         parent with a first_link.
1267 2017-06-13  Martin Jambor  <mjambor@suse.cz>
1269         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
1270         instead of f.
1272 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1274         * match.pd: New pattern.
1276 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1278         * tree-vrp.c (is_masked_range_test): New function.
1279         (register_edge_assert_for): Determine ranges for
1280         some bit tests.
1282 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
1284         PR tree-optimization/67328
1285         * fold-const.c (maskable_range_p): New function.
1286         (build_range_check): Generate bittests if possible.
1288 2017-06-13  Martin Liska  <mliska@suse.cz>
1290         * gimple-pretty-print.c (dump_probability): Add new argument.
1291         (dump_edge_probability): Dump both probability and count.
1292         (dump_gimple_label): Likewise.
1293         (dump_gimple_bb_header): Likewise.
1295 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
1297         PR target/81072
1298         * config/avr/avr-devices.c: Fix indentation.
1299         * config/avr/gen-avr-mmcu-specs.c: Dito.
1301 2017-06-13  Richard Biener  <rguenther@suse.de>
1303         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
1304         instead get vector type from stmt_info.
1305         (vectorizable_reduction): Adjust.  Remove dead code.
1307 2017-06-13  Richard Biener  <rguenther@suse.de>
1309         PR middle-end/81065
1310         * fold-const.c (extract_muldiv_1): Remove bogus distribution
1311         case of C * (x * C2 + C3).
1312         (fold_addr_of_array_ref_difference): Properly fold index difference.
1314 2017-06-12  David S. Miller  <davem@davemloft.net>
1316         PR target/80968
1317         * config/sparc/sparc.md (return expander): Emit frame blockage if
1318         function uses alloca.
1320 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
1322         * combine.c (make_field_assignment): Check len rather than the mode
1323         precision when calling force_to_mode.
1325 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
1327         Support multilibs and devices that see flash in RAM address range.
1329         PR target/81072
1330         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
1331         (avr_mcu_t) <flash_pm_offset>: New field.
1332         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
1333         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
1334         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
1335         (AVR_TINY_PM_OFFSET): Remove macro.
1336         * config/avr/avr.opt (-mshort-calls): New option.
1337         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1338         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
1339         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
1340         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
1341         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
1342         instead of avr_arch->have_jmp_call.
1343         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
1344         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
1345         avr_arch->flash_pm_offset to define.
1346         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
1347         new field flash_pm_offset.  Add entry for avrxmega3.
1348         (avr_texinfo): Add entry for avrxmega3.
1349         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
1350         attiny212, attiny214,
1351         attiny412, attiny414, attiny416, attiny417,
1352         attiny814, attiny816, attiny817,
1353         attiny1614, attiny1616, attiny1617,
1354         attiny3214, attiny3216, attiny3217.
1355         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
1356         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
1357         (avr_print_operand_address) [AVR_TINY]: Same.
1358         (avr_asm_init_sections) <readonly_data_section>: Only patch
1359         callback if avr_arch->flash_pm_offset = 0.
1360         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
1361         for rodata if avr_arch->flash_pm_offset != 0.
1362         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
1363         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
1364         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
1365         (m_options): Append opt_rcall.
1366         (m_dirnames): Append dir_rcall.
1367         * config/avr/t-multilib: Regenerate.
1369         * configure.ac [target=avr]: Check whether avrxmega3 default
1370         linker description file works as needed.
1371         * configure: Regenerate.
1372         * doc/avr-mmcu.texi: Regenerate.
1373         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
1374         <__AVR_ARCH__>: Document avrxmega3 and 103.
1375         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
1376         <__AVR_SHORT_CALLS__>: Document it.
1377         <__AVR_PM_BASE_ADDRESS__>: Document it.
1378         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
1379         (AVR Variable Attributes) <progmem>: Document this is
1380         not needed for avrxmega3.
1381         (AVR Named Address Spaces) <__flash>: Dito.
1383 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
1385         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
1387 2017-06-12  Doug Rupp  <rupp@adacore.com>
1389         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
1390         Append vxworks-stdint.h to the tm_file list.
1391         * config/vxworks-stdint.h: New file.
1393 2017-06-12  Martin Liska  <mliska@suse.cz>
1395         PR tree-optimization/81041
1396         * tree-profile.c (gimple_gen_ic_func_profiler):
1397         Create an extra BB in profile-generate
1398         (gimple_gen_time_profiler): Likewise.
1400 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
1402         PR tree-optimization/81003
1403         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
1404         (update_range_test): Use it instead of force_gimple_operand_gsi.
1406 2017-06-12  Richard Biener  <rguenther@suse.de>
1408         PR tree-optimization/81053
1409         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
1410         with backedge value not defined in loop.  Simplify def stmt
1411         compute.
1413 2017-06-11  Tom de Vries  <tom@codesourcery.com>
1415         PR target/79939
1416         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
1417         Return true.
1418         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
1419         nvptx_cannot_force_const_mem.
1421 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1423         * opts.c (finish_options): Move test for flag_split_stack after
1424         it has been initialized.
1426 2017-06-11  Jason Merrill  <jason@redhat.com>
1428         * tree.h (id_equal): New.
1429         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
1430         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
1431         instead of strcmp of IDENTIFIER_POINTER.
1433 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1435         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
1436         (mark_all_inlined_calls_cdtor): Fix formating.
1437         (inline_transform): Rescale profile before inlining.
1439 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1441         * cgraph.h (cgraph_edge::clone): Update prototype.
1442         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
1443         (cgraph_node::create_clone): Update.
1444         (cgraph_node::create_version_clone): Update.
1445         * tree-inline.c (copy_bb): Update.
1446         (expand_call_inline): Update.
1448 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
1450         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
1451         factored out from ...
1452         (rs6000_emit_prologue): ... here.
1454 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
1456         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
1457         factored out from ...
1458         (rs6000_emit_prologue): ... here.
1460 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1462         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
1463         edge counts.
1464         (handle_missing_profiles): Fix computation of tp_first_run.
1465         (counts_to_freqs): Do not touch freqs when count is 0.
1467 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
1469         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
1470         profile.
1472 2017-06-10  Tom de Vries  <tom@codesourcery.com>
1474         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
1475         attributes): Document signal effective target.
1477 2017-06-10  Tom de Vries  <tom@codesourcery.com>
1479         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
1480         Document effective target stack_size.
1482 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
1484         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
1485         to the edit_context if they can be auto-applied.
1487 2017-06-9  Ian Lance Taylor  <iant@golang.org>
1489         * opts.c (finish_options): If -fsplit-stack, disable implicit
1490         -forder-blocks-and-partition.
1491         * doc/invoke.texi (Optimize Options): Document that when using
1492         -fsplit-stack -forder-blocks-and-partition is not implicitly
1493         enabled.
1495 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1497         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
1498         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
1499         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
1500         * builtins.def (abort, trap, unreachable): Declare cold.
1501         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
1502         * tree-core.h (ECF_COLD): New.
1503         * tree.c (set_call_expr_flags): Handle ECF_COLD.
1504         (build_common_builtin_nodes): Mark unreachable and abort as cold.
1506 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1508         * predict.c (unlikely_executed_stmt_p): Cleanup.
1510 2017-06-09  Richard Biener  <rguenther@suse.de>
1512         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
1513         model if the ref is always written to.
1515 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
1517         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
1519 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
1521         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
1522         than udiv.
1524 2017-06-09  Tom de Vries  <tom@codesourcery.com>
1526         PR target/80855
1527         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
1528         "target cannot support label values" when encountering LABEL_REF.
1530 2017-06-09  Martin Liska  <mliska@suse.cz>
1532         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
1533         (gimple_gen_ic_func_profiler): Emit direct comparison
1534         of __gcov_indirect_call_callee with NULL.
1535         (gimple_gen_time_profiler): Change probability from
1536         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
1538 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1540         * profile.c (edge_gcov_counts): Turn to pointer.
1541         (compute_branch_probabilities, compute_branch_probabilities): Update.
1542         (branch_prob): Do not clear edge_gcov_count.
1543         * profile.h (edge_gcov_counts): Turn to pointer.
1544         (edge_gcov_count): Update.
1546 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
1548         * gimple.h (gimple_check_failed): Mark cold.
1550 2017-06-09  Richard Biener  <rguenther@suse.de>
1552         PR tree-optimization/66623
1553         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
1554         refactor check_reduction into two parts, properly computing
1555         whether we have to check reduction validity for outer loop
1556         vectorization.
1558 2017-06-09  Richard Biener  <rguenther@suse.de>
1560         PR tree-optimization/79483
1561         * graphite-scop-detection.c (order): New global.
1562         (get_order): Compute bb to order mapping that satisfies code
1563         generation constraints.
1564         (cmp_pbbs): New helper.
1565         (build_scops): Start domwalk at entry block, sort generated
1566         pbbs.
1568 2017-06-09  Richard Biener  <rguenther@suse.de>
1570         PR middle-end/81007
1571         * ipa-polymorphic-call.c
1572         (ipa_polymorphic_call_context::restrict_to_inner_class):
1573         Skip FIELD_DECLs with error_mark_node type.
1574         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
1575         last again.
1577 2017-06-09  Martin Liska  <mliska@suse.cz>
1579         * predict.c (struct branch_predictor): New struct.
1580         (test_prediction_value_range): New test.
1581         (predict_c_tests): New function.
1582         * selftest-run-tests.c (selftest::run_tests): Run the function.
1583         * selftest.h: Declare new tests.
1585 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
1587         PR target/80966
1588         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
1589         gen_add3_insn did not fail.
1590         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
1591         r0, construct that number in a temporary reg and add that reg to r0.
1592         If asked to put the result in r0 as well, fail.
1594 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
1596         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
1597         for early expansion of vec_eqv.
1599 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
1601         PR middle-end/81005
1602         * ubsan.c (instrument_null): Avoid pointless code temporary.
1603         (pass_ubsan::execute): Instrument aggregate arguments of calls.
1605 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
1607         PR target/81015
1608         Revert:
1609         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
1611         PR target/59874
1612         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
1613         (*clzhi2): Ditto.
1615 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1617         * predict.c (unlikely_executed_edge_p): Move ahead.
1618         (probably_never_executed_edge_p): Use it.
1620 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1622         PR middle-end/79988
1623         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
1624         gimple_call_builtin_p call.
1626 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1628         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
1629         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
1630         rtl_check_failed_type2, rtl_check_failed_code1,
1631         rtl_check_failed_code2, rtl_check_failed_code_mode,
1632         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
1633         rtvec_check_failed_bounds, rtl_check_failed_flag,
1634         _fatal_insn_not_found, _fatal_insn): Likewise.
1635         * tree.h (tree_contains_struct_check_failed,
1636         tree_check_failed, tree_not_check_failed,
1637         tree_class_check_failed, tree_range_check_failed,
1638         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
1639         tree_vec_elt_check_failed, phi_node_elt_check_failed,
1640         tree_operand_check_failed, omp_clause_check_failed,
1641         omp_clause_operand_check_failed, omp_clause_range_check_failed):
1642         Likewise.
1644 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1646         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
1647         flag_branch_probabilities.
1648         * ipa-inline.c (edge_badness): Likewise.
1649         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
1650         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1651         * predict.c (maybe_hot_frequency_p): Likewise.
1652         (probably_never_executed): Likewise.
1653         * sched-ebb.c (schedule_ebbs): Likewise.
1654         * sched-rgn.c (find_single_block_region): Likewise.
1655         * tracer.c (tail_duplicate): Likewise.
1657 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1659         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
1660         longer requires x_flag_profile_use.
1662 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1664         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
1665         instead of flag_reorder_blocks_and_partition.
1666         * dbxout.c (dbxout_function_end): Likewise.
1667         * dwarf2out.c (gen_subprogram_die): Likewise.
1668         * haifa-sched.c (sched_create_recovery_edges): Likewise.
1669         * hw-doloop.c (reorg_loops): Likewise.
1670         * varasm.c (assemble_start_function,
1671         assemble_end_function): Likewise.
1672         (decide_function_section): Do not check for
1673         flag_reorder_blocks_and_partition.
1675 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1677         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
1678         New function.
1679         (chkp_get_hard_register_fake_addr_expr): Ditto.
1680         (chkp_build_addr_expr): Add check for hard reg case.
1681         (chkp_parse_array_and_component_ref): Ditto.
1682         (chkp_find_bounds_1): Ditto.
1683         (chkp_process_stmt): Don't generate bounds store for
1684         hard reg case.
1686 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1688         * predict.c (maybe_hot_bb_p): Do not check profile status.
1689         (maybe_hot_edge_p): Likewise.
1690         (probably_never_executed): Check for zero counts even if profile
1691         is not read.
1692         (unlikely_executed_edge_p): New function.
1693         (unlikely_executed_stmt_p): New function.
1694         (unlikely_executed_bb_p): New function.
1695         (set_even_probabilities): Use unlikely predicates.
1696         (combine_predictions_for_bb): Likewise.
1697         (predict_paths_for_bb): Likewise.
1698         (predict_paths_leading_to_edge): Likewise.
1699         (determine_unlikely_bbs): New function.
1700         (estimate_bb_frequencies): Use it.
1701         (compute_function_frequency): Use zero counts even if profile is
1702         not read.
1703         * profile-count.h: Fix typo.
1705 2017-08-08  Julia Koval  <julia.koval@intel.com>
1707         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
1708         _mm512_mask_cvtsepi16_storeu_epi8,
1709         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
1710         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
1711         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
1712         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
1713         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
1714         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
1715         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
1716         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
1717         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
1718         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
1719         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
1720         __builtin_ia32_pmovuswb256mem_mask,
1721         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
1722         __builtin_ia32_pmovwb512mem_mask): New builtins.
1724 2017-08-08  Julia Koval  <julia.koval@intel.com>
1726         PR target/73350,80862
1727         * config/i386/subst.md (round): Fix round pattern.
1728         * config/i386/i386.c (ix86_erase_embedded_rounding):
1729         Fix erasing rounding for the fixed pattern.
1731 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
1733         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
1735 2017-06-08  Martin Liska  <mliska@suse.cz>
1737         PR gcov-profile/80911
1738         * gcov.c (block_info::block_info): New constructor.
1740 2017-06-07  Carl Love  <cel@us.ibm.com>
1742         * config/rs6000/rs6000-c: The return type of the following
1743         built-in functions was implemented as int not long long.  Fix sign
1744         of return value for the unsigned version of vec_mulo and vec_mule.
1745         vector unsigned long long vec_bperm (vector unsigned long long,
1746                                              vector unsigned char)
1747         vector signed long long vec_mule (vector signed int,
1748                                           vector signed int)
1749         vector unsigned long long vec_mule (vector unsigned int,
1750                                             vector unsigned int)
1751         vector signed long long vec_mulo (vector signed int,
1752                                           vector signed int)
1753         vector unsigned long long vec_mulo (vector unsigned int,
1754                                             vector unsigned int)
1755         * doc/extend.texi: Fix the documentation for the built-in
1756         functions.
1758 2017-06-07  Carl Love  <cel@us.ibm.com>
1760         PR target/80982
1761         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
1762         for BE.
1764 2017-06-07  Carl Love  <cel@us.ibm.com>
1766         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
1767         support, Generate       doublehv for signed int/float for BE case only.
1769 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
1771         * doc/invoke.texi (mcx16): Rewrite.
1773 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1775         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
1776         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
1777         *mov<mode>_softfloat, and an anonymous splitter): Use
1778         nonimmediate_operand instead of rs6000_nonimmediate_operand.
1780 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1782         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
1783         SPEFSCR registers.
1784         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
1785         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
1786         (rs6000_debug_reg_global): Adjust.
1787         (rs6000_init_hard_regno_mode_ok): Adjust.
1788         (rs6000_dbx_register_number): Adjust.
1789         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
1790         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1791         Remove SPE_ACC and SPEFSCR.
1792         (REG_ALLOC_ORDER): Ditto.
1793         (FRAME_POINTER_REGNUM): Change to 111.
1794         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
1795         (REG_CLASS_NAMES): Ditto.
1796         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
1797         (REGISTER_NAMES): Ditto.
1798         (ADDITIONAL_REG_NAMES): Ditto.
1799         (rs6000_reg_names): Ditto.
1800         * config/rs6000/rs6000.md: Renumber some register number
1801         define_constants.
1803 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1805         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
1806         registers.
1807         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
1808         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
1809         to 117.
1810         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
1811         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1812         Delete the SPE high registers.
1813         (REG_ALLOC_ORDER): Ditto.
1814         (enum reg_class): Remove SPE_HIGH_REGS.
1815         (REG_CLASS_NAMES): Ditto.
1816         (REG_CLASS_CONTENTS): Delete the SPE high registers.
1817         (REGISTER_NAMES): Ditto.
1818         (rs6000_reg_names): Ditto.
1819         * doc/tm.texi.in: Remove SPE as example.
1820         * doc/tm.texi: Regenerate.
1822 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1824         * config/rs6000/8540.md (ppc8540_brinc): Delete.
1825         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
1826         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
1827         * config/rs6000/rs6000.md (type): Remove "brinc".
1829 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1831         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
1832         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
1833         * config/rs6000/linuxspe.h: Delete file.
1834         * config/rs6000/rs6000.md: Don't include spe.md.
1835         * config/rs6000/spe.h: Delete file.
1836         * config/rs6000/spe.md: Delete file.
1837         * config/rs6000/t-rs6000: Remove spe.md.
1839 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1841         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
1842         (reg_or_none500mem_operand): Delete.
1843         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
1844         instead of reg_or_none500mem_operand.
1846 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1848         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
1849         handling of SPE flags.
1850         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
1852 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1854         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
1855         SPE ABI handling.
1856         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
1857         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
1858         paired_divv2sf3): Similar.
1859         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
1860         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
1861         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
1862         RS6000_BUILTIN_S.
1863         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
1864         Rename the paired_* instruction patterns.
1865         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
1866         define __SPE__.
1867         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
1868         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
1869         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
1870         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
1871         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
1872         PAIRED_VECTOR_MODE.
1873         (struct machine_function): Delete field spe_insn_chain_scanned_p.
1874         (spe_func_has_64bit_regs_p): Delete.
1875         (spe_expand_predicate_builtin): Delete.
1876         (spe_expand_evsel_builtin): Delete.
1877         (TARGET_DWARF_REGISTER_SPAN): Do not define.
1878         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
1879         (invalid_e500_subreg): Delete.
1880         (rs6000_legitimize_address): Always force_reg op2 as well, for
1881         paired single memory accesses.
1882         (rs6000_member_type_forces_blk): Delete.
1883         (rs6000_spe_function_arg): Delete.
1884         (rs6000_expand_unop_builtin): Delete SPE handling.
1885         (rs6000_expand_binop_builtin): Ditto.
1886         (spe_expand_stv_builtin): Delete.
1887         (bdesc_2arg_spe): Delete.
1888         (spe_expand_builtin): Delete.
1889         (spe_expand_predicate_builtin): Delete.
1890         (spe_expand_evsel_builtin): Delete.
1891         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
1892         (spe_init_builtins): Delete.
1893         (spe_func_has_64bit_regs_p): Delete.
1894         (savres_routine_name): Delete "info" parameter.  Adjust callers.
1895         (rs6000_emit_stack_reset): Ditto.
1896         (rs6000_dwarf_register_span): Delete.
1897         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
1898         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
1899         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
1900         Delete.
1901         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
1902         Delete.
1903         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
1904         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
1905         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
1906         mulv2sf3, divv2sf3): Delete expanders.
1908 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1910         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
1912 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1914         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
1915         * config/rs6000/rs6000.c: Ditto.
1917 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1919         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
1920         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
1921         comparison_operator.
1923 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1925         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
1926         * config/rs6000/rs6000.opt: Ditto.
1927         * config/rs6000/t-rtems: Ditto.
1929 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1931         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
1932         TARGET_E500_SINGLE by 0, simplify.
1933         * config/rs6000/rs6000.c: Ditto.
1934         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
1935         (spe_build_register_parallel): Delete.
1936         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
1937         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
1938         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
1939         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
1940         (E500_CONVERT): Delete.
1941         * config/rs6000/spe.md: Remove many patterns and all define_constants.
1943 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
1945         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
1946         * config/rs6000/dfp.md: Ditto.
1947         (negdd2, *negdd2_fpr): Merge.
1948         (absdd2, *absdd2_fpr): Merge.
1949         (negtd2, *negtd2_fpr): Merge.
1950         (abstd2, *abstd2_fpr): Merge.
1951         * config/rs6000/e500.h: Delete file.
1952         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
1953         TARGET_FPRS by 1 and simplify.
1954         * config/rs6000/rs6000-c.c: Ditto.
1955         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
1956         TARGET_DF_SPE by 0.
1957         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
1958         TARGET_DF_SPE.
1959         * config/rs6000/rs6000.md: Ditto.
1960         (floatdidf2, *floatdidf2_fpr): Merge.
1961         (move_from_CR_gt_bit): Delete.
1962         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
1963         (E500_CR_IOR_COMPARE): Delete.
1964         (All patterns that require !TARGET_FPRS): Delete.
1965         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
1967 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1969         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
1971 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1973         * graphds.c (add_edge): Intitialize edge's attached data.
1974         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
1975         pointer parameter.  Call pointed function on each edge during
1976         graph traversing.  Skip traversing the edge when the function
1977         returns true.
1978         (graphds_dfs, graphds_scc): Ditto.
1979         (for_each_edge): New parameter.  Pass the new parameter to callback
1980         function.
1981         * graphds.h (skip_edge_callback): New function pointer type.
1982         (graphds_dfs, graphds_scc): New function pointer parameter.
1983         (graphds_edge_callback, for_each_edge): New parameter.
1985 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
1987         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
1988         out code checking if runtime alias check is possible to below ...
1989         Call the new function.
1990         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
1991         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
1993 2017-06-07  Marek Polacek  <polacek@redhat.com>
1995         PR sanitizer/80932
1996         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
1997         TYPE_OVERFLOW_WRAPS check. 
1999 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2001         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
2002         if versioning is required.
2003         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
2004         peeling with the check for versioning.
2006 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2008         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
2009         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
2010         Set true to new parameter if new ssa variable is defined.
2011         (vect_gen_vector_loop_niters): Refactor.  Set range information
2012         for the new vector loop bound variable.
2013         (vect_do_peeling): Ditto.
2015 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2017         * tree-affine.c (ssa.h): Include header file.
2018         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
2019         has wrapping overflow behavior.
2021 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2023         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
2025 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2027         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
2028         (tree_to_aff_combination): ... here.
2030 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
2032         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
2033         reg_pressure model function.
2034         (ivopts_global_cost_for_size): Delete.
2035         (determine_set_costs, iv_ca_recount_cost): Call new model function
2036         ivopts_estimate_reg_pressure.
2038 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
2040         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more expensive than udiv.
2041         Remove floating point cases from mod.
2043 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
2045         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost): Increase idiv cost.
2047 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
2049         * config/aarch64/aarch64.md
2050         (copysignsf3): Fix mask generation.
2052 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
2054         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
2055         TDI_gimple.
2056         (class dump_manager): Add register_dumps method.
2057         * dumpfile.c: Include langhooks.h.
2058         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
2059         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
2060         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
2061         (dump_manager::dump_register): Start with 512 entries instead of 32.
2062         (dump_manager::register_dumps): New method.
2063         * toplev.c (general_init): Instead of invoking register_dumps
2064         langhook, invoke register_dumps method on the dump manager.
2065         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
2066         TDI_generic.
2068 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
2070         * doc/md.texi: Clarify the restrictions on a define_insn condition.
2071         Say that # requires an associated define_split to exist, and that
2072         the define_split must be suitable for use after register allocation.
2074 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2076         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
2077         (compute_outgoing_frequencies): Also initialize zero counts.
2078         (find_many_sub_basic_blocks): Do not produce uninitialized profile
2079         around loops; preserve more of profile when nothing changes.
2081 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
2083         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
2084         here.
2085         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
2086         * config/arm/arm-cpu-cdata.h: Regenerate.
2087         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
2088         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
2089         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
2090         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
2091         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
2092         support.
2093         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
2094         support.
2095         * config/arm/t-rmprofile: Likewise.
2096         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
2098 2017-06-06  David S. Miller  <davem@davemloft.net>
2100         PR target/80968
2101         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
2102         blockage if function uses alloca.
2104 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2106         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
2107         New "uid" fields to hold pretty-print IDs of group and ref.
2108         Memory references are now identified as <group_id>:<ref_id>
2109         instead of using [random] addresses.
2110         (dump_mem_details): Simplify, no functional change.
2111         (dump_mem_ref): Simplify and make output more concise.
2112         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
2113         (find_or_create_group): Initialize group uid.
2114         (record_ref): Initialize ref uid.  Improve debug output.
2115         (prune_group_by_reuse, should_issue_prefetch_p,)
2116         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
2117         (mark_nontemporal_store, determine_loop_nest_reuse):
2118         Improve debug output.
2120 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2122         * dbgcnt.def (prefetch): New debug counter.
2123         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
2124         (schedule_prefetches): Stop issueing prefetches if debug counter
2125         tripped.
2127 2017-06-06  Tom de Vries  <tom@codesourcery.com>
2129         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
2130         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
2132 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2134         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
2135         Use aarch64_reg_or_zero predicate for operand 4.
2136         (aarch64_compare_and_swap<mode> define_insn_and_split):
2137         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
2138         (aarch64_store_exclusive<mode>): Likewise for operand 2.
2140 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2142         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
2143         (arm_compute_save_core_reg_mask): This.
2144         (thumb1_compute_save_reg_mask): Rename into ...
2145         (thumb1_compute_save_core_reg_mask): This.
2146         (arm_compute_save_reg0_reg12_mask): Adapt comment.
2147         (arm_compute_frame_layout): Likewise.
2149 2017-06-06  Richard Biener  <rguenther@suse.de>
2151         PR tree-optimization/80974
2152         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
2153         keep or clear leaders SSA info.
2155 2017-06-06  Tom de Vries  <tom@codesourcery.com>
2157         * config/nvptx/nvptx.c (split_mode_p): New function.
2158         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
2160 2017-06-06  Tom de Vries  <tom@codesourcery.com>
2162         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
2164 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2166         PR bootstrap/80978
2167         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
2168         profile.
2170 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2172         * shrink-wrap.c (handle_simple_exit): Update profile.
2173         (try_shrink_wrapping): Upate profile.
2175 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2177         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
2178         (tree_guess_outgoing_edge_probabilities): New.
2179         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
2180         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
2182 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2184         * ipa-split.c (split_function): Initialize return bb profile.
2186 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
2188         * profile.c (compute_branch_probabilities): Also initialize
2189         EXIT_BLOCK profile.
2191 2017-06-06  Richard Biener  <rguenther@suse.de>
2193         PR tree-optimization/80928
2194         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
2195         (vect_analyze_loop_operations): Properly guard analysis for
2196         pure SLP case.
2197         (vect_transform_loop): Likewise.
2198         (vect_analyze_loop_2): Also reset SLP type on PHIs.
2199         (vect_model_induction_cost): Do not cost for pure SLP.
2200         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
2201         of induction in inner loop vectorization.
2202         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
2203         (vect_get_and_check_slp_defs): Handle vect_induction_def.
2204         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
2205         recursion.
2206         (vect_analyze_slp_cost_1): Cost induction.
2207         (vect_detect_hybrid_slp_stmts): Handle PHIs.
2208         (vect_get_slp_vect_defs): Likewise.
2209         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
2210         (vect_transform_stmt): Handle SLP reductions.
2211         * tree-vectorizer.h (vectorizable_induction): Adjust.
2213 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2215         * config/rs6000/rs6000.c (make_resolver_func): Update
2216         init_lowered_empty_function call.
2218 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2220         * doc/invoke.texi: Document the -fprofile-abs-path option.
2221         * common.opt (fprofile-abs-path): New option.
2222         * gcov-io.h (gcov_write_filename): Declare.
2223         * gcov-io.c (gcov_write_filename): New function.
2224         * coverage.c (coverage_begin_function): Use gcov_write_filename.
2225         * profile.c (output_location): Likewise.
2227 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2229         * shring-wrap.c: Revert accidental commit.
2231 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
2233         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
2235 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2237         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
2238         new edge.
2239         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
2240         profile in callgraph edge.
2241         * profile-count.h (apply_probability): If THIS is 0, then result is 0
2242         (apply_scale): Likewise.
2243         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
2244         Also scale profile when inlining function with zero profile.
2245         (initialize_cfun): Update exit block profile even when it is zero.
2246         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
2247         when profile is read.
2249 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2251         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
2252         (CLONE_*): New constants to define the processors we can generate
2253         code for with the target_clone attribute.
2254         (rs6000_clone_map): New array to identify which clone processors
2255         the current program is running on.
2256         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
2257         target_clone attribute.
2258         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
2259         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
2260         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
2261         (cpu_expand_builtin): Add support for target_clone attribute.
2262         (rs6000_valid_attribute_p): Allow "default" attribute.
2263         (get_decl_name): New debug function to simplify printing the
2264         current function name in debugging statements.
2265         (rs6000_clone_priority): New functions to support the target_clone
2266         attribute, and be able to generate code to switch between ISA 2.05
2267         through ISA 3.0 (power6 through power9).
2268         (rs6000_compare_version_priority): Likewise.
2269         (rs6000_get_function_versions_dispatcher): Likewise.
2270         (make_resolver_func): Likewise.
2271         (add_condition_to_bb): Likewise.
2272         (dispatch_function_versions): Likewise.
2273         (rs6000_generate_version_dispatcher_body): Likewise.
2274         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
2275         (fusion_gpr_load_p): Fix a spacing issue.
2276         * doc/extend.texi (Common Function Attributes): Document that the
2277         PowerPC supports the target_clone attribute.
2279 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2281         * config/arm/arm.h: explain F symbol found in description of ARM
2282         register allocation in its legend.
2284 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2286         * config/mips/frame-header-opt.c: Include profile-count.h.
2287         * config/riscv/riscv.c: Include profile-count.h
2289 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
2291         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
2292         update profile.
2293         (sm_set_flag_if_changed): Add bbs field.
2294         (execute_sm_if_changed_flag_set): Pass BBS.
2295         (execute_sm): Update.
2297 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2299         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
2300         New pattern.
2302 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2304         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
2305         (peephole2): New peephole2 to emit the above.
2306         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
2308 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2310         * config/aarch64/aarch64.c (define_peephole2 above
2311         *sub_<shift>_<mode>): New peephole.
2313 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
2315         * config/i386/i386.c (make_resolver_func): Update.
2316         * Makefile.in: Add profile-count.h and profile-count.o
2317         * auto-profile.c (afdo_indirect_call): Update to new API.
2318         (afdo_set_bb_count): Update.
2319         (afdo_propagate_edge): Update.
2320         (afdo_propagate_circuit): Update.
2321         (afdo_calculate_branch_prob): Update.
2322         (afdo_annotate_cfg): Update.
2323         * basic-block.h: Include profile-count.h
2324         (struct edge_def): Turn count to profile_count.
2325         (struct basic_block_def): Likewie.
2326         (REG_BR_PROB_BASE): Move to profile-count.h
2327         (RDIV): Move to profile-count.h
2328         * bb-reorder.c (max_entry_count): Turn to profile_count.
2329         (find_traces): Update.
2330         (rotate_loop):Update.
2331         (connect_traces):Update.
2332         (sanitize_hot_paths):Update.
2333         * bt-load.c (migrate_btr_defs): Update.
2334         * cfg.c (RDIV): Remove.
2335         (init_flow): Use alloc_block.
2336         (alloc_block): Uninitialize count.
2337         (unchecked_make_edge): Uninitialize count.
2338         (check_bb_profile): Update.
2339         (dump_edge_info): Update.
2340         (dump_bb_info): Update.
2341         (update_bb_profile_for_threading): Update.
2342         (scale_bbs_frequencies_int): Update.
2343         (scale_bbs_frequencies_gcov_type): Update.
2344         (scale_bbs_frequencies_profile_count): New.
2345         * cfg.h (update_bb_profile_for_threading): Update.
2346         (scale_bbs_frequencies_profile_count): Declare.
2347         * cfgbuild.c (compute_outgoing_frequencies): Update.
2348         (find_many_sub_basic_blocks): Update.
2349         * cfgcleanup.c (try_forward_edges): Update.
2350         (try_crossjump_to_edge): Update.
2351         * cfgexpand.c (expand_gimple_tailcall): Update.
2352         (construct_exit_block): Update.
2353         * cfghooks.c (verify_flow_info): Update.
2354         (dump_bb_for_graph): Update.
2355         (split_edge): Update.
2356         (make_forwarder_block): Update.
2357         (duplicate_block): Update.
2358         (account_profile_record): Update.
2359         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
2360         (get_estimated_loop_iterations): Update.
2361         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
2362         (single_likely_exit): Update.
2363         * cfgloopmanip.c (scale_loop_profile): Update.
2364         (loopify): Update.
2365         (set_zero_probability): Update.
2366         (lv_adjust_loop_entry_edge): Update.
2367         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
2368         (purge_dead_edges): Update.
2369         (rtl_account_profile_record): Update.
2370         * cgraph.c (cgraph_node::create): Uninitialize count.
2371         (symbol_table::create_edge): Uninitialize count.
2372         (cgraph_update_edges_for_call_stmt_node): Update.
2373         (cgraph_edge::dump_edge_flags): Update.
2374         (cgraph_node::dump): Update.
2375         (cgraph_edge::maybe_hot_p): Update.
2376         * cgraph.h: Include profile-count.h
2377         (create_clone), create_edge, create_indirect_edge): Update.
2378         (cgraph_node): Turn count to profile_count.
2379         (cgraph_edge0: Likewise.
2380         (make_speculative, clone): Update.
2381         (create_edge): Update.
2382         (init_lowered_empty_function): Update.
2383         * cgraphclones.c (cgraph_edge::clone): Update.
2384         (duplicate_thunk_for_node): Update.
2385         (cgraph_node::create_clone): Update.
2386         * cgraphunit.c (cgraph_node::analyze): Update.
2387         (cgraph_node::expand_thunk): Update.
2388         * final.c (dump_basic_block_info): Update.
2389         * gimple-streamer-in.c (input_bb): Update.
2390         * gimple-streamer-out.c (output_bb): Update.
2391         * graphite.c (print_global_statistics): Update.
2392         (print_graphite_scop_statistics): Update.
2393         * hsa-brig.c: Include basic-block.h.
2394         * hsa-dump.c: Include basic-block.h.
2395         * hsa-gen.c (T sum_slice): Update.
2396         (convert_switch_statements):Update.
2397         * hsa-regalloc.c: Include basic-block.h.
2398         * ipa-chkp.c (chkp_produce_thunks): Update.
2399         * ipa-cp.c (struct caller_statistics): Update.
2400         (init_caller_stats): Update.
2401         (gather_caller_stats): Update.
2402         (ipcp_cloning_candidate_p): Update.
2403         (good_cloning_opportunity_p): Update.
2404         (get_info_about_necessary_edges): Update.
2405         (dump_profile_updates): Update.
2406         (update_profiling_info): Update.
2407         (update_specialized_profile): Update.
2408         (perhaps_add_new_callers): Update.
2409         (decide_about_value): Update.
2410         (ipa_cp_c_finalize): Update.
2411         * ipa-devirt.c (struct odr_type_warn_count): Update.
2412         (struct decl_warn_count): Update.
2413         (struct final_warning_record): Update.
2414         (possible_polymorphic_call_targets): Update.
2415         (ipa_devirt): Update.
2416         * ipa-fnsummary.c (redirect_to_unreachable): Update.
2417         * ipa-icf.c (sem_function::merge): Update.
2418         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
2419         * ipa-inline.c (compute_uninlined_call_time): Update.
2420         (compute_inlined_call_time): Update.
2421         (want_inline_small_function_p): Update.
2422         (want_inline_self_recursive_call_p): Update.
2423         (edge_badness): Update.
2424         (lookup_recursive_calls): Update.
2425         (recursive_inlining): Update.
2426         (inline_small_functions): Update.
2427         (dump_overall_stats): Update.
2428         (dump_inline_stats): Update.
2429         * ipa-profile.c (ipa_profile_generate_summary): Update.
2430         (ipa_propagate_frequency): Update.
2431         (ipa_profile): Update.
2432         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
2433         * ipa-utils.c (ipa_merge_profiles): Update.
2434         * loop-doloop.c (doloop_modify): Update.
2435         * loop-unroll.c (report_unroll): Update.
2436         (unroll_loop_runtime_iterations): Update.
2437         * lto-cgraph.c (lto_output_edge): Update.
2438         (lto_output_node): Update.
2439         (input_node): Update.
2440         (input_edge): Update.
2441         (merge_profile_summaries): Update.
2442         * lto-streamer-in.c (input_cfg): Update.
2443         * lto-streamer-out.c (output_cfg): Update.
2444         * mcf.c (create_fixup_graph): Update.
2445         (adjust_cfg_counts): Update.
2446         (sum_edge_counts): Update.
2447         * modulo-sched.c (sms_schedule): Update.
2448         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
2449         * predict.c (maybe_hot_count_p): Update.
2450         (probably_never_executed): Update.
2451         (dump_prediction): Update.
2452         (combine_predictions_for_bb): Update.
2453         (propagate_freq): Update.
2454         (handle_missing_profiles): Update.
2455         (counts_to_freqs): Update.
2456         (rebuild_frequencies): Update.
2457         (force_edge_cold): Update.
2458         * predict.h: Include profile-count.h
2459         (maybe_hot_count_p, counts_to_freqs): UPdate.
2460         * print-rtl-function.c: Do not include cfg.h
2461         * print-rtl.c: Include basic-block.h
2462         * profile-count.c: New file.
2463         * profile-count.h: New file.
2464         * profile.c (is_edge_inconsistent): Update.
2465         (correct_negative_edge_counts): Update.
2466         (is_inconsistent): Update.
2467         (set_bb_counts): Update.
2468         (read_profile_edge_counts): Update.
2469         (compute_frequency_overlap): Update.
2470         (compute_branch_probabilities): Update; Initialize and deinitialize
2471         gcov_count tables.
2472         (branch_prob): Update.
2473         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
2474         (edge_gcov_count): New.
2475         (bb_gcov_count): New.
2476         * shrink-wrap.c (try_shrink_wrapping): Update.
2477         * tracer.c (better_p): Update.
2478         * trans-mem.c (expand_transaction): Update.
2479         (ipa_tm_insert_irr_call): Update.
2480         (ipa_tm_insert_gettmclone_call): Update.
2481         * tree-call-cdce.c: Update.
2482         * tree-cfg.c (gimple_duplicate_sese_region): Update.
2483         (gimple_duplicate_sese_tail): Update.
2484         (gimple_account_profile_record): Update.
2485         (execute_fixup_cfg): Update.
2486         * tree-inline.c (copy_bb): Update.
2487         (copy_edges_for_bb): Update.
2488         (initialize_cfun): Update.
2489         (freqs_to_counts): Update.
2490         (copy_cfg_body): Update.
2491         (expand_call_inline): Update.
2492         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
2493         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
2494         (try_unroll_loop_completely): Update.
2495         (try_peel_loop): Update.
2496         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
2497         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
2498         * tree-ssa-loop-split.c (connect_loops): Update.
2499         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
2500         * tree-ssa-reassoc.c (branch_fixup): Update.
2501         * tree-ssa-tail-merge.c (replace_block_by): Update.
2502         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
2503         (compute_path_counts): Update.
2504         (update_profile): Update.
2505         (recompute_probabilities): Update.
2506         (update_joiner_offpath_counts): Update.
2507         (estimated_freqs_path): Update.
2508         (freqs_to_counts_path): Update.
2509         (clear_counts_path): Update.
2510         (ssa_fix_duplicate_block_edges): Update.
2511         (duplicate_thread_path): Update.
2512         * tree-switch-conversion.c (case_bit_test_cmp): Update.
2513         (struct switch_conv_info): Update.
2514         * tree-tailcall.c (decrease_profile): Update.
2515         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
2516         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
2517         * value-prof.c (check_counter): Update.
2518         (gimple_divmod_fixed_value): Update.
2519         (gimple_mod_pow2): Update.
2520         (gimple_mod_subtract): Update.
2521         (gimple_ic_transform): Update.
2522         (gimple_stringop_fixed_value): Update.
2523         * value-prof.h (gimple_ic): Update.
2525 2017-06-02  Carl Love  <cel@us.ibm.com>
2527         * config/rs6000/rs6000-c: Add support for built-in functions
2528         vector double vec_doublee (vector signed int);
2529         vector double vec_doublee (vector unsigned int);
2530         vector double vec_doublee (vector float);
2531         vector double vec_doubleh (vector signed int);
2532         vector double vec_doubleh (vector unsigned int);
2533         vector double vec_doubleh (vector float);
2534         vector double vec_doublel (vector signed int);
2535         vector double vec_doublel (vector unsigned int);
2536         vector double vec_doublel (vector float);
2537         vector double vec_doubleo (vector signed int);
2538         vector double vec_doubleo (vector unsigned int);
2539         vector double vec_doubleo (vector float);.
2540         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
2541         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
2542         UNS_DOUBLEL.
2543         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
2544         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
2545         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
2546         VS_sxwsp.
2547         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
2548         vec_doublel, vec_doubleh.
2549         * doc/extend.texi: Update the built-in documentation file for the
2550         new built-in functions.
2552 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
2554         PR jit/80954
2555         * ipa-inline-analysis.c (free_growth_caches): Set
2556         edge_removal_hook_holder to NULL after removing it.
2558 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
2560         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2561         comparision with zero.
2563 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
2564         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2565         for early expansion of vec_min and vec_max builtins.
2566         (builtin_function_type): Add min/max unsigned variants to those
2567         identified as having unsigned arguments.
2569 2017-06-02  Olivier Hainque  <hainque@adacore.com>
2571         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
2573 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2575         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2576         Use VALL_F16 iterator rather than VALL.
2578 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2580         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
2581         Emit CBNZ inside loop when doing a strong exchange and comparing
2582         against zero.  Generate the CC flags after the loop.
2584 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
2586         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
2587         (dl_section_ref): New.
2588         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
2589         On AIX, append an expression to subtract the size of the
2590         section length to dl_section_ref.
2592 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
2594         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
2595         for early expansion of vector absolute builtins.
2597 2017-06-02  Richard Biener  <rguenther@suse.de>
2599         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
2600         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
2602 2017-06-02  Richard Biener  <rguenther@suse.de>
2604         PR tree-optimization/80948
2605         * tree-tailcall.c (find_tail_calls): Track stmts to move in
2606         stmt order as well.
2608 2017-06-02  Richard Biener  <rguenther@suse.de>
2610         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
2611         PHIs are ok.
2612         * tree-vect-stmts.c (process_use): Do not mark backedge defs
2613         for inductions as relevant.
2615 2017-06-02  Richard Biener  <rguenther@suse.de>
2617         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
2618         (vectorizable_induction): ... this.  Remove dead code.
2620 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
2622         * builtins. (expand_builtin_alloca): Remove second parameter and
2623         infer its value from the first parameter instead.
2624         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
2626 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
2628         PR rtl-optimization/80903
2629         * loop-doloop.c (add_test): Unshare sequence.
2631 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2633         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
2635 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2637         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
2638         static.
2639         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
2640         xlogue_layout::get_instance, logue_layout::xlogue_layout,
2641         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
2642         (xlogue_layout::get_stub_rtx): Make static.
2643         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
2644         (xlogue_layout::compute_stub_managed_regs): Rename to...
2645         (xlogue_layout::count_stub_managed_regs): ...this.
2646         (xlogue_layout::is_stub_managed_reg): New function.
2647         (xlogue_layout::m_stub_names): Rename to...
2648         (xlogue_layout::s_stub_names): ...this, make static.
2649         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
2650         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
2651         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
2652         xlogue_layout::s_stub_names): Instantiate statics.
2653         (stub_managed_regs): Remove.
2654         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
2655         (disable_call_ms2sysv_xlogues): Rename to...
2656         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
2657         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
2658         warning logic.
2659         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
2660         change after reload_completed.
2661         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
2662         directly.
2663         (ix86_expand_prologue): Likewise.
2664         (ix86_expand_epilogue): Likewise.
2665         (ix86_expand_split_stack_prologue): Likewise.
2666         (ix86_compute_frame_layout): Remove frame parameter ...
2667         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
2668         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
2669         only if necessary.
2670         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
2671         (ix86_frame): Move from here ...
2672         * config/i386/i386.h (ix86_frame): ... to here.
2673         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
2674         complete ix86_frame data structure instead.  Remove some_ld_name.
2676 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2678         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
2679         symbols that hold a DECL_VALUE_EXPR.
2681 2017-06-01  Martin Jambor  <mjambor@suse.cz>
2683         PR tree-optimization/80898
2684         * tree-sra.c (process_subtree_disqualification): Removed.
2685         (disqualify_candidate): Do not acll
2686         process_subtree_disqualification.
2687         (subtree_mark_written_and_enqueue): New function.
2688         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
2689         RHS has been disqualified and re-queue LHS if necessary.  Apart
2690         from that, ignore disqualified RHS.
2692 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2694         * config/s390/s390.c (s390_emit_epilogue): Disable early return
2695         address fetch for z10 or later.
2697 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2699         * config/arc/arc.md (tst_movb): Add guard when splitting.
2701 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2703         * config/arc/arc.c (arc_can_eliminate): Test against
2704         arc_frame_pointer_needed.
2706 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2708         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
2709         to prevent store reordering.
2710         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
2711         (type): Add block type.
2712         (stack_tie): Define special instruction to be used in
2713         expand_prologue.
2715 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2717         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
2718         constraint. It is not valid for the pattern.
2719         (noncommutative_binary_comparison): Likewise.
2721 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2723         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
2724         scaled addresses.
2726 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2728         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
2729         be used by the reg-alloc.
2731 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2733         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
2734         reg-alloc when having mul64 or mul32x16 instructions.
2735         (mulsidi3): Likewise.
2736         (umulsidi3): Likewise.
2737         (mulsi32x16): New pattern.
2738         (mulsi64): Likewise.
2739         (mulsidi64): Likewise.
2740         (umulsidi64): Likewise.
2741         (MUL32x16_REG): Define.
2742         (mul64_600): Use MUL32x16_REG.
2743         (mac64_600): Likewise.
2744         (umul64_600): Likewise.
2745         (umac64_600): Likewise.
2747 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
2749         * config/arc/arc.md (mulsi3_700): Make it commutative.
2751 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
2753         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
2754         type for movstouw.
2755         (*sign_extendsidi2_insn): Likewise for movstosw.
2757 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2759         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
2760         the type of the input discriminant value.  Convert the
2761         discriminant value of signedness vary.
2763 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
2765         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
2766         Add to -Wall section.
2768 2017-06-01  Richard Biener  <rguenther@suse.de>
2770         PR middle-end/66313
2771         * fold-const.c (fold_plusminus_mult_expr): If the factored
2772         factor may be zero use a wrapping type for the inner operation.
2773         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
2774         and handle moved defs.
2775         (process_assignment): Properly guard the unary op case.  Return a
2776         tri-state indicating that moving the stmt before the call may allow
2777         to continue.  Pass through to_move.
2778         (find_tail_calls): Handle moving unrelated defs before
2779         the call.
2781 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
2783         PR target/80618
2784         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
2785         splitter result in the canonical way.
2787 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
2789         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
2790         also for 32bit target.  Update insn attributes.
2791         (zero-extendsidi2 splitter): Allow all registers for operand 1.
2793 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
2795         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
2796         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
2797         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
2798         (_mm_maskz_min_ss): New intrinsics.
2800 2017-05-31  Martin Liska  <mliska@suse.cz>
2802         * tree-vect-loop.c (vect_create_epilog_for_reduction):
2803         Change comment style to one we normally use.
2804         (vectorizable_reduction): Likewise.
2805         (vectorizable_induction): Likewise.
2806         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
2807         (vectorizable_call): Likewise.
2808         (vectorizable_simd_clone_call): Likewise.
2809         (vectorizable_conversion): Likewise.
2810         (vectorizable_assignment): Likewise.
2811         (vectorizable_shift): Likewise.
2812         (vectorizable_operation): Likewise.
2813         (vectorizable_store): Likewise.
2814         (vectorizable_load): Likewise.
2815         * tree-vectorizer.h: Likewise.
2817 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
2819         * passes.c (emergency_dump_function): New.
2820         * tree-pass.h (emergency_dump_function): Declare.
2821         * plugin.c (plugins_internal_error_function): Remove.
2822         * plugin.h (plugins_internal_error_function): Remove declaration.
2823         * toplev.c (internal_error_function): New static function.  Use it...
2824         (general_init): ...here.
2826 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
2828         * config/arc/arc.c (arc_print_operand): Handle constant operands.
2829         (arc_rtx_costs): Add costs for new patterns.
2830         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
2831         * config/arc/predicates.md: Add _1_2_3_operand predicate.
2833 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
2835         * tree-ssa-strlen.c (get_next_strinfo): New function.
2836         (get_stridx_plus_constant): Use it.
2837         (zero_length_string): Likewise.
2838         (adjust_related_strinfos): Likewise.
2839         (adjust_last_stmt): Likewise.
2841 2017-05-31  Richard Biener  <rguenther@suse.de>
2843         PR target/80880
2844         * config/i386/i386.c (ix86_expand_builtin): Remove assert
2845         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
2847 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
2849         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
2850         loop_vinfo argument and use of dependence distance vectors.
2851         Check instead whether the two references differ only in their
2852         initial value and assume that they have the same alignment if the
2853         difference is a multiple of the vector alignment.
2854         (vect_analyze_data_refs_alignment): Update call accordingly.
2856 2017-05-31  Martin Liska  <mliska@suse.cz>
2858         PR target/79155
2859         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
2861 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
2863         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
2864         (create_intersect_range_checks): Move from ...
2865         * tree-data-ref.c (create_intersect_range_checks_index)
2866         (create_intersect_range_checks): ... to here.
2867         (create_runtime_alias_checks): New function factored from ...
2868         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
2869         here.  Call above function.
2870         * tree-data-ref.h (create_runtime_alias_checks): New function.
2872 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
2874         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
2875         segment length for dr_b and compute it in wide_int.
2877 2017-05-31  Richard Biener  <rguenther@suse.de>
2879         PR tree-optimization/80906
2880         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
2881         and pass through iv_map.
2882         (copy_bb_and_scalar_dependences): Adjust.
2883         (translate_pending_phi_nodes): Likewise.
2884         (copy_loop_close_phi_args): Handle code-generating IVs instead
2885         of ICEing.
2887 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
2889         * diagnostic-color.c (color_dict): Add "type-diff".
2890         (parse_gcc_colors): Update comment.
2891         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2892         -fdiagnostics-show-template-tree and -fno-elide-type.
2893         (GCC_COLORS): Add type-diff to example.
2894         (type-diff=): New.
2895         (-fdiagnostics-show-template-tree): New.
2896         (-fno-elide-type): New.
2897         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
2898         the pp_format_decoder callback.  Call any m_format_postprocessor's
2899         "handle" method.
2900         (pretty_printer::pretty_printer): Initialize
2901         m_format_postprocessor.
2902         (pretty_printer::~pretty_printer): Delete any
2903         m_format_postprocessor.
2904         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
2905         (class format_postprocessor): New class.
2906         (struct pretty_printer::format_decoder): Document the new parameters.
2907         (struct pretty_printer::m_format_postprocessor): New field.
2908         * tree-diagnostic.c (default_tree_printer): Update for new
2909         bool and const char ** params.
2910         * tree-diagnostic.h (default_tree_printer): Likewise.
2912 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
2914         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
2915         (lwa_operand): Delete rs6000_gen_cell_microcode test.
2916         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
2917         rs6000_gen_cell_microcode code.
2918         (rs6000_final_prescan_insn): Delete.
2919         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
2920         "warn-cell-microcode" entries.
2921         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
2922         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
2923         throughout.  Change cc_reg_not_micro_cr0_operand to
2924         cc_reg_not_cr0_operand throughout.
2925         (*extendhi<mode>2_noload): Delete.
2926         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
2927         (mwarn-cell-microcode): Delete.
2928         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
2929         -mgen-cell-microcode and -mwarn-cell-microcode.
2931 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
2933         PR target/80833
2934         * config/i386/constraints.md (Yd): New constraint.
2935         (Ye): Ditto.
2936         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
2937         and (?Yd, r) alternatives.  Update insn attributes.
2938         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
2939         and (?*Yd, r) alternatives.  Update insn attributes.
2940         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
2942 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
2944         * gimplify.c (gimplify_modify_expr): Don't create a
2945         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
2946         function.
2948 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
2950         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
2952 2017-05-30  Richard Biener  <rguenther@suse.de>
2954         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
2955         and reduc_def fields.
2956         (STMT_VINFO_REDUC_TYPE): New define.
2957         (STMT_VINFO_REDUC_DEF): Likewise.
2958         (vect_force_simple_reduction): Adjust prototype.
2959         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
2960         (vect_is_simple_reduction): Remove check_reduction argument.
2961         (vect_force_simple_reduction): Adjust and set
2962         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
2963         (vectorizable_reduction): Do not re-do reduction analysis
2964         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
2965         * tree-parloops.c (gather_scalar_reductions): Adjust.
2967 2017-05-30  Richard Biener  <rguenther@suse.de>
2969         PR middle-end/80901
2970         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
2971         split_edge code.
2973 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2975         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
2976         Introduce unknown_misalignment parameter and remove vf.
2977         (vect_peeling_hash_get_lowest_cost):
2978         Pass unknown_misalignment parameter.
2979         (vect_enhance_data_refs_alignment):
2980         Fix unsupportable data ref treatment.
2982 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2984         * tree-vect-data-refs.c (vect_get_data_access_cost):
2985         Workaround for SLP handling.
2986         (vect_enhance_data_refs_alignment):
2987         Compute costs for doing no peeling at all, compare to the best
2988         peeling costs so far and avoid peeling if cheaper.
2990 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2992         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
2993         Return peeling info and set costs to zero for unlimited cost
2994         model.
2995         (vect_enhance_data_refs_alignment): Also inspect all datarefs
2996         with unknown misalignment. Compute and costs for unknown
2997         misalignment, compare them to the costs for known misalignment
2998         and choose the cheapest for peeling.
3000 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3002         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
3003         (vect_get_peeling_costs_all_drs): Create function.
3004         (vect_peeling_hash_get_lowest_cost):
3005         Use vect_get_peeling_costs_all_drs.
3006         (vect_peeling_supportable): Create function.
3007         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
3009 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3011         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
3012         DR_HAS_NEGATIVE_STEP.
3013         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
3014         (vect_enhance_data_refs_alignment): Use.
3015         (vect_duplicate_ssa_name_ptr_info): Use.
3016         * tree-vectorizer.h (dr_misalignment): Use.
3017         (known_alignment_for_access_p): Use.
3019 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
3021         PR target/78838
3022         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
3023         .lowtext.
3024         (has_section_name): New function.
3026 2017-05-30  Martin Liska  <mliska@suse.cz>
3028         PR other/80909
3029         * auto-profile.c (get_function_decl_from_block): Fix
3030         parenthesis.
3032 2017-05-30  Richard Biener  <rguenther@suse.de>
3034         PR middle-end/80876
3035         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
3037 2017-05-30  Martin Liska  <mliska@suse.cz>
3039         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
3040         * dumpfile.h (struct dump_file_info): Remove ctors.
3042 2017-05-30  Martin Liska  <mliska@suse.cz>
3044         * predict.def: Fix GNU coding style.
3046 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
3048         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
3049         Mark 'to' argument with ATTRIBUTE_UNUSED.
3051 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
3053         * config/xtensa/xtensa.c (xtensa_emit_call): Use
3054         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
3055         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
3056         format string.
3058 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3060         * doc/install.texi (Options specification): Restore entry of
3061         --enable-sjlj-exceptions.
3063 2017-05-27  Michael Eager  <eager@eagercon.com>
3065         Revert:
3066         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
3068         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
3070         * config/microblaze/microblaze.h
3071         (FIXED_REGISTERS): Update in macro.
3072         (CALL_USED_REGISTERS): Update in macro.
3074 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
3076         * doc/install.texi: Add links to macOS binary distributions.
3078 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
3080         PR bootstrap/80887
3081         Revert:
3082         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
3084         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
3086 2017-05-26  Martin Liska  <mliska@suse.cz>
3088         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
3090 2017-05-26  Martin Liska  <mliska@suse.cz>
3092         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
3093         always leading ';; '.
3094         (dump_bb_info): Likewise.
3095         (brief_dump_cfg): Likewise.
3096         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
3097         * dumpfile.c: Remove usage of TDF_VERBOSE.
3098         * dumpfile.h (enum dump_kind): Likewise.
3099         (dump_gimple_bb_header): Do not use TDF_COMMENT.
3100         * print-tree.c (debug_verbose): Remove.
3101         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
3102         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
3103         * tree-diagnostic.c (default_tree_printer): Replace
3104         TDF_DIAGNOSTIC with TDF_SLIM.
3106 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
3108         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
3109         in parameter loop, rather than loop_vinfo.
3110         (create_intersect_range_checks): Ditto.
3111         (vect_create_cond_for_alias_checks): Update call to above functions.
3113 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
3115         PR tree-optimization/80815
3116         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
3117         for merging runtime alias checks.  Handle negative DR_STEPs.
3119 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
3121         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
3122         Move from ...
3123         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
3124         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
3125         out code pruning runtime alias checks.
3126         * tree-data-ref.c (prune_runtime_alias_test_list): New function
3127         factored out from above.
3128         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
3129         Move from ...
3130         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
3131         ... to here.
3132         (prune_runtime_alias_test_list): New decalaration.
3134 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
3136         * tree-vect-data-refs.c (compare_tree): Rename and move ...
3137         * tree-data-ref.c (data_ref_compare_tree): ... to here.
3138         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
3139         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
3140         (operator==, comp_dr_with_seg_len_pair): Ditto.
3141         (vect_prune_runtime_alias_test_list): Ditto.
3143 2017-05-26  Martin Liska  <mliska@suse.cz>
3145         PR ipa/80663
3146         * params.def: Bound partial-inlining-entry-probability param.
3148 2017-05-26  Marek Polacek  <polacek@redhat.com>
3150         PR sanitizer/80875
3151         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
3152         can be negated.
3154 2017-05-26  Richard Biener  <rguenther@suse.de>
3156         PR tree-optimization/80842
3157         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
3158         value.
3160 2017-05-26  Richard Biener  <rguenther@suse.de>
3162         PR tree-optimization/80844
3163         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
3165 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
3167         * doc/md.texi (Machine Constraints): Update x86 family
3168         machine constraints section to match 'config/i386/constraints.md'.
3170 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
3172         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
3174 2017-05-25  Nathan Sidwell  <nathan@acm.org>
3176         * doc/invoke.texi (--enable-languages): Update documentation.
3178 2017-05-25  Martin Liska  <mliska@suse.cz>
3180         * dumpfile.c: Add TDF_FOLDING.
3181         * dumpfile.h (enum dump_kind): Likewise.
3182         * genmatch.c (dt_simplify::gen_1): Use it.
3184 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
3186         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
3188 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
3190         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
3191         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
3193 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
3195         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
3196         * match.pd (X == C): Rewrite it here.
3197         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
3198         with_certain_nonzero_bits2): New predicates.
3199         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
3201 2017-05-24  Nathan Sidwell  <nathan@acm.org>
3203         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
3204         avoid warning.
3206         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
3207         warning.
3209 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
3211         * config/powerpcspe: New port.  Files are copied from the rs6000
3212         port, with "rs6000" in filenames replaced by "powerpcspe".
3214 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
3216         PR rtl-optimization/80754
3217         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
3219 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
3221         * config/sparc/sparc.md (length): Return the correct value for -mflat
3222         sibcalls to match output_sibcall.
3224 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
3226         PR bootstrap/80860
3227         PR bootstrap/80843
3228         * config/rs6000/rs6000.c (struct machine_function): Add new field
3229         n_components.
3230         (rs6000_get_separate_components): Init that field, use it.
3231         (rs6000_components_for_bb): Use the field.
3233 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3235         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
3237 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
3239         PR middle-end/80823
3240         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
3242 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3244         PR target/80725
3245         * config/s390/s390.c (s390_check_qrst_address): Check incoming
3246         address against address_operand predicate.
3247         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
3249 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
3251         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
3252         parameters passed indirectly.
3254 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
3256         * config/i386/i386.md (*movdi_internal): Remove SSE4
3257         alternative 18 (?r, *v).  Update insn attributes.
3258         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
3259         Update insn attributes.
3260         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
3261         Update insn attributes.
3262         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
3263         alternative 1 (r, v). Remove isa attribute.
3264         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3265         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
3266         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3268 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3270         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
3271         dg-line directive.
3273 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3275         * cgraphunit.c (symbol_table::process_new_functions): Update.
3276         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
3277         (inline_generate_summary): Rename to ...
3278         (ipa_fn_summary_generate): ... this one.
3279         (inline_read_summary): Rename to ...
3280         (ipa_fn_summary_read): ... this one.
3281         (inline_write_summary): Rename to ...
3282         (ipa_fn_summary_write): ... this one.
3283         (inline_free_summary): Rename to ...
3284         (ipa_free_fn_summary): ... this one.
3285         (pass_data_local_fn_summary, pass_local_fn_summary,
3286         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
3287         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
3288         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
3289         make_pass_ipa_fn_summary): New.
3290         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
3291         inline_write_summary, inline_free_summary): Remove.
3292         (ipa_free_fn_summary) : New.
3293         * ipa-inline.c (ipa_inline): Update.
3294         (pass_ipa_inline): Do not generate summaries.
3295         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
3296         Remove.
3297         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
3298         and add pass_ipa_fn_summary.
3299         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
3300         New.
3301         (make_pass_inline_parameters): Remove.
3303 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
3305         * omp-low.c (struct omp_context): Remove "default_kind" member.
3306         Adjust all users.
3308         * omp-offload.c (execute_oacc_device_lower): Remove the
3309         parallelism dimensions function attributes for unparallelized
3310         OpenACC kernels constructs.
3312 2017-05-23  Martin Liska  <mliska@suse.cz>
3314         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
3315         functions.
3316         (cgraph_edge::make_speculative): Likewise.
3317         (cgraph_edge::resolve_speculation): Likewise.
3318         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3319         (cgraph_node::dump): Likewise.
3320         * cgraph.h: Likewise.
3321         * cgraphunit.c (analyze_functions): Likewise.
3322         (symbol_table::compile): Likewise.
3323         * ipa-cp.c (print_all_lattices): Likewise.
3324         (determine_versionability): Likewise.
3325         (initialize_node_lattices): Likewise.
3326         (ipcp_verify_propagated_values): Likewise.
3327         (estimate_local_effects): Likewise.
3328         (update_profiling_info): Likewise.
3329         (create_specialized_node): Likewise.
3330         (perhaps_add_new_callers): Likewise.
3331         (decide_about_value): Likewise.
3332         (decide_whether_version_node): Likewise.
3333         (identify_dead_nodes): Likewise.
3334         (ipcp_store_bits_results): Likewise.
3335         * ipa-devirt.c (dump_targets): Likewise.
3336         (ipa_devirt): Likewise.
3337         * ipa-icf.c (sem_item::dump): Likewise.
3338         (sem_function::equals): Likewise.
3339         (sem_variable::equals): Likewise.
3340         (sem_item_optimizer::read_section): Likewise.
3341         (sem_item_optimizer::execute): Likewise.
3342         (congruence_class::dump): Likewise.
3343         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
3344         (dump_inline_summary): Likewise.
3345         (estimate_node_size_and_time): Likewise.
3346         (inline_analyze_function): Likewise.
3347         * ipa-inline-transform.c (inline_call): Likewise.
3348         * ipa-inline.c (report_inline_failed_reason): Likewise.
3349         (want_early_inline_function_p): Likewise.
3350         (edge_badness): Likewise.
3351         (update_edge_key): Likewise.
3352         (inline_small_functions): Likewise.
3353         * ipa-profile.c (ipa_profile): Likewise.
3354         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
3355         (ipa_make_edge_direct_to_target): Likewise.
3356         (remove_described_reference): Likewise.
3357         (ipa_impossible_devirt_target): Likewise.
3358         (propagate_controlled_uses): Likewise.
3359         (ipa_print_node_params): Likewise.
3360         (ipcp_transform_function): Likewise.
3361         * ipa-pure-const.c (pure_const_read_summary): Likewise.
3362         (propagate_pure_const): Likewise.
3363         * ipa-reference.c (generate_summary): Likewise.
3364         (read_write_all_from_decl): Likewise.
3365         (propagate): Likewise.
3366         (ipa_reference_read_optimization_summary): Likewise.
3367         * ipa-utils.c (ipa_merge_profiles): Likewise.
3368         * ipa.c (walk_polymorphic_call_targets): Likewise.
3369         (symbol_table::remove_unreachable_nodes): Likewise.
3370         (ipa_single_use): Likewise.
3371         * passes.c (execute_todo): Likewise.
3372         * predict.c (drop_profile): Likewise.
3373         * symtab.c (symtab_node::get_dump_name): New function.
3374         (symtab_node::dump_name): Likewise.
3375         (symtab_node::dump_asm_name): Likewise.
3376         (symtab_node::dump_references): Likewise.
3377         (symtab_node::dump_referring): Likewise.
3378         (symtab_node::dump_base): Likewise.
3379         (symtab_node::debug_symtab): Likewise.
3380         * tree-sra.c (convert_callers_for_node): Likewise.
3381         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3382         * value-prof.c (init_node_map): Likewise.
3384 2017-05-23  Martin Liska  <mliska@suse.cz>
3386         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
3387         and symtab_node::debug_symtab to symbol_table::debug.
3388         * cgraphunit.c (analyze_functions): Use the renamed function.
3389         (symbol_table::compile): Likewise.
3390         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
3391         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3392         * passes.c (execute_todo): Likewise.
3393         * symtab.c (symbol_table::dump): New function.
3394         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
3396 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3398         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
3399         that nonconst implies exec.
3401 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
3403         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
3404         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
3405         (inline_edge_summary_vec): Turn into ...
3406         (ipa_call_summaries): ... this one.
3407         (redirect_to_unreachable, edge_set_predicate,
3408         evaluate_properties_for_edge, inline_summary_alloc,
3409         reset_ipa_call_summary, reset_inline_summary,
3410         inline_summary_t::duplicate): Update.
3411         (inline_edge_duplication_hook): Turn to ...
3412         (ipa_call_summary_t::duplicate): ... this one.
3413         (inline_edge_removal_hook): Turn to ...
3414         (ipa_call_summary_t::remove): ... this one.
3415         (dump_inline_edge_summary): Turn to ...
3416         (dump_ipa_call_summary): ... this one.
3417         (estimate_function_body_sizes): Update.
3418         (inline_update_callee_summaries): Update.
3419         (remap_edge_change_prob): Update.
3420         (remap_edge_summaries): Update.
3421         (inline_merge_summary): Update.
3422         (do_estimate_edge_time): Update.
3423         (inline_generate_summary): Update.
3424         (inline_read_section): Update.
3425         (inline_read_summary): Update.
3426         (inline_free_summary): Update.
3427         * ipa-inline.c (can_inline_edge_p): Update.
3428         (compute_inlined_call_time): Update.
3429         (want_inline_small_function_p): Update.
3430         (edge_badness): Update.
3431         (early_inliner): Update.
3432         * ipa-inline.h (inline_edge_summary): Turn to ...
3433         (ipa_call_summary): ... this one.
3434         (ipa_call_summary_t): New class.
3435         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
3436         (ipa_call_summaries): New.
3437         (inline_edge_summary): Remove.
3438         (estimate_edge_growth): Update.
3439         * ipa-profile.c (ipa_propagate_frequency_1): Update.
3440         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3441         * ipa-split.c (execute_split_functions): Update.
3442         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
3444 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3446         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
3447         attributes): Document rdrand effective target.
3449 2017-05-23  Tom de Vries  <tom@codesourcery.com>
3451         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
3452         attributes): Sort alphabetically.
3454 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
3456         * config/avr/genmultilib.awk: Use gsub instead of gensub.
3458 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3460         PR target/80718
3461         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
3462         V2DF/V2DI splat into two separate patterns, one that handles
3463         registers, and the other that only handles memory.  Drop support
3464         for splatting from a GPR on ISA 2.07 and then splitting the
3465         splat into direct move and splat.
3466         (vsx_splat_<mode>_reg): Likewise.
3467         (vsx_splat_<mode>_mem): Likewise.
3469 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
3471         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
3473 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
3475         PR middle-end/80809
3476         * omp-low.c (finish_taskreg_remap): New function.
3477         (finish_taskreg_scan): If unit size of ctx->record_type
3478         is non-constant, unshare the size expression and replace
3479         decls in it with possible outer var refs.
3481         PR middle-end/80809
3482         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
3483         GOVD_SHARED rather than GOVD_PRIVATE with it.
3484         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
3485         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
3487         PR middle-end/80853
3488         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
3489         as last argument to build_outer_var_ref for pointer bases of array
3490         section reductions.
3492 2017-05-19  Martin Sebor  <msebor@redhat.com>
3494         * print-tree.c (print_node): Print DECL_READ_P flag.
3496 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3498         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
3499         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
3500         * cgraph.c: Likewise.
3501         * cgraphunit.c: Likewise.
3502         * gengtype.c: Likewise.
3503         * ipa-cp.c: Likewise.
3504         * ipa-devirt.c: Likewise.
3505         * ipa-icf.c: Likewise.
3506         * ipa-predicate.c: Likewise.
3507         * ipa-profile.c: Likewise.
3508         * ipa-prop.c: Likewise.
3509         * ipa-split.c: Likewise.
3510         * ipa.c: Likewise.
3511         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
3512         edge_predicate_pool, dump_inline_hints,
3513         inline_summary::account_size_time, redirect_to_unreachable,
3514         edge_set_predicate, set_hint_predicate,
3515         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
3516         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
3517         inline_summary_t::remove, remap_hint_predicate_after_duplication,
3518         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
3519         ipa_call_summary_t::remove, initialize_growth_caches,
3520         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
3521         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
3522         mark_modified, unmodified_parm_1, unmodified_parm,
3523         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
3524         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
3525         compute_bb_predicates, will_be_nonconstant_expr_predicate,
3526         will_be_nonconstant_predicate, record_modified_bb_info,
3527         get_minimal_bb, record_modified, param_change_prob,
3528         phi_result_unknown_predicate, predicate_for_phi_result,
3529         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
3530         estimate_function_body_sizes, compute_inline_parameters,
3531         compute_inline_parameters_for_curren, pass_data_inline_parameters,
3532         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
3533         inline_update_callee_summaries, remap_edge_change_prob,
3534         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
3535         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
3536         inline_analyze_function, inline_summary_t::insert,
3537         inline_generate_summary, read_ipa_call_summary, inline_read_section,
3538         inline_read_summary, write_ipa_call_summary, inline_write_summary,
3539         inline_free_summary): Move to ipa-fnsummary.h
3540         (predicate_t): Remove.
3541         * ipa-fnsummary.c: New file.
3542         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
3543         (enum inline_hints_vals, inline_hints, agg_position_info,
3544         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
3545         inline_summaries, ipa_call_summary, ipa_call_summary_t,
3546         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
3547         dump_inline_summary, dump_inline_hints, inline_generate_summary,
3548         inline_read_summary, inline_write_summary, inline_free_summary,
3549         inline_analyze_function, initialize_inline_failed,
3550         inline_merge_summary, inline_update_overall_summary,
3551         compute_inline_parameters): Move to ipa-fnsummary.h
3552         * ipa-fnsummary.h: New file.
3553         * ipa-inline-transform.h: Include ipa-inline.h.
3554         * ipa-inline.c: LIkewise.
3556 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3558         * ipa-inline.c (edge_badness): Use inlined_time instead of
3559         inline_summaries->get.
3561 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3563         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
3565 2017-05-22  Nathan Sidwell  <nathan@acm.org>
3567         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
3568         (fdump-lang): Document 'raw' option.
3569         * dumpfile.h (TDI_tu): Delete.
3570         * dumpfile.c (dump_files): Remove translation-unit.
3571         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
3573 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
3575         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
3576         command option from $(AWK) call.
3577         * config/avr/genmultilib.awk: Simplify and rewrite so that it
3578         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
3579         [FORMAT]: Remove handling of variable.
3580         * config/avr/t-multilib: Regenerate.
3582 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3584         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
3585         self_time.
3586         (dump_inline_summary): Do not print self_time.
3587         (estimate_function_body_sizes): Do not set self_time.
3588         (compute_inline_parameters): Likewise.
3589         (inline_read_section, inline_write_summary): Do not stream self_time.
3590         * ipa-inline.h (inline_summary): Drop self_time.
3592 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
3594         * ipa-inline-analysis.c (account_size_time): Rename to ...
3595         (inline_summary::account_size_time): ... this one.
3596         (reset_ipa_call_summary): Turn to ...
3597         (ipa_call_summary::reset): ... this one.
3598         (reset_inline_summary): Turn to ...
3599         (inline_summary::reset): ... this one.
3600         (inline_summary_t::remove): Update.
3601         (inline_summary_t::duplicate): Update.
3602         (ipa_call_summary_t::remove): Update.
3603         (dump_inline_summary): Update.
3604         (estimate_function_body_sizes): Update.
3605         (compute_inline_parameters): Update.
3606         (estimate_node_size_and_time): Update.
3607         (inline_merge_summary): Update.
3608         (inline_update_overall_summary): Update.
3609         (inline_read_section): Update.
3610         (inline_write_summary): Update.
3611         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
3612         add account_size_time and reset member functions.
3613         (ipa_call_summary): Add reset function.
3614         * ipa-predicate.h (predicate::operator &): Constify.
3616 2017-05-22  Richard Biener  <rguenther@suse.de>
3618         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
3620 2017-05-19  Jason Merrill  <jason@redhat.com>
3622         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
3624 2017-05-19  Marek Polacek  <polacek@redhat.com>
3626         PR sanitizer/80800
3627         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
3628         TYPE_OVERFLOW_WRAPS checks.
3630 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
3632         * tree-core.h (enum omp_clause_default_kind): Add
3633         "OMP_CLAUSE_DEFAULT_PRESENT".
3634         * tree-pretty-print.c (dump_omp_clause): Handle it.
3635         * gimplify.c (enum gimplify_omp_var_data): Add
3636         "GOVD_MAP_FORCE_PRESENT".
3637         (gimplify_adjust_omp_clauses_1): Map it to
3638         "GOMP_MAP_FORCE_PRESENT".
3639         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
3641         * gimplify.c (oacc_default_clause): Clarify.
3643 2017-05-19  Nathan Sidwell  <nathan@acm.org>
3645         LANG_HOOK_REGISTER_DUMPS
3646         * toplev.c (general_init): Call register dump lang hook.
3647         * doc/invoke.texi: Document -fdump-lang option family.
3648         * dumpfile.c (dump_files): Remove class dump here.
3649         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
3650         * dumpfile.h (tree_dump_index): Remove TDI_class.
3651         * langhooks-def.h (lhd_register_dumps): Declare.
3652         (LANG_HOOKS_REGISTER_DUMPS): Define.
3653         (LANG_HOOKS_INITIALIZER): Add it.
3654         * langhooks.c (lhd_register_dumps): Define.
3655         * langhooks.h (struct lang_hooks): Add register_dumps.
3657 2017-05-19  Nathan Sidwell  <nathan@acm.org>
3659         * context.h (context::set_passes): New.
3660         * context.c (context::context): Do not create pass manager.
3661         * toplev.c (general_init): Create pass manager here.
3663 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3665         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
3666         use this splitter if two add or or instructions would also work for
3667         the constant we want to generate.
3669 2017-05-19  Richard Biener  <rguenther@suse.de>
3671         PR build/80821
3672         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
3673         predicate evaluation.
3675 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
3677         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
3678         add ctor.
3679         * ipa-inline.c (want_inline_small_function_p): Do not cast to
3680         unsigned.
3682 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
3684         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
3685         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
3686         (inline_edge_summary_vec): Turn into ...
3687         (ipa_call_summaries): ... this one.
3688         (redirect_to_unreachable, edge_set_predicate,
3689         evaluate_properties_for_edge, inline_summary_alloc,
3690         reset_ipa_call_summary, reset_inline_summary,
3691         inline_summary_t::duplicate): Update.
3692         (inline_edge_duplication_hook): Turn to ...
3693         (ipa_call_summary_t::duplicate): ... this one.
3694         (inline_edge_removal_hook): Turn to ...
3695         (ipa_call_summary_t::remove): ... this one.
3696         (dump_inline_edge_summary): Turn to ...
3697         (dump_ipa_call_summary): ... this one.
3698         (estimate_function_body_sizes): Update.
3699         (inline_update_callee_summaries): Update.
3700         (remap_edge_change_prob): Update.
3701         (remap_edge_summaries): Update.
3702         (inline_merge_summary): Update.
3703         (do_estimate_edge_time): Update.
3704         (inline_generate_summary): Update.
3705         (inline_read_section): Update.
3706         (inline_read_summary): Update.
3707         (inline_free_summary): Update.
3708         * ipa-inline.c (can_inline_edge_p): Update.
3709         (compute_inlined_call_time): Update.
3710         (want_inline_small_function_p): Update.
3711         (edge_badness): Update.
3712         (early_inliner): Update.
3713         * ipa-inline.h (inline_edge_summary): Turn to ...
3714         (ipa_call_summary): ... this one.
3715         (ipa_call_summary_t): New class.
3716         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
3717         (ipa_call_summaries): New.
3718         (inline_edge_summary): Remove.
3719         (estimate_edge_growth): Update.
3720         * ipa-profile.c (ipa_propagate_frequency_1): Update.
3721         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
3722         * ipa-split.c (execute_split_functions): Update.
3723         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
3725 2017-05-19  Richard Biener  <rguenther@suse.de>
3727         PR middle-end/80764
3728         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
3730 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3732         * config/rs6000/rs6000.c (struct machine_function): Add field
3733         fpr_is_wrapped_separately.
3734         (rs6000_get_separate_components): Use 64 components.  Handle the
3735         new FPR components.
3736         (rs6000_components_for_bb): Handle the FPR components.
3737         (rs6000_emit_prologue_components): Handle the FPR components.
3738         (rs6000_emit_epilogue_components): Handle the FPR components.
3739         (rs6000_set_handled_components): Handle the FPR components.
3740         (rs6000_emit_prologue): Don't output prologue code for those FPRs
3741         that are already separately shrink-wrapped.
3742         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
3743         that are already separately shrink-wrapped.
3745 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3747         PR target/80510
3748         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
3749         New predicate.
3751         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
3752         (define_peephole2 for Altivec d-form load): Add peepholes to catch
3753         cases where the register allocator uses a move and an offsettable
3754         memory operation to/from a FPR register on ISA 2.06/2.07.
3755         (define_peephole2 for Altivec d-form store): Likewise.
3757 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
3759         PR target/80799
3760         * config/i386/mmx.md (*mov<mode>_internal): Enable
3761         alternatives 11, 12, 13 and 14 also for 32bit targets.
3762         Remove alternatives 15, 16, 17 and 18.
3763         * config/i386/sse.md (vec_concatv2di): Change
3764         alternative (!x, *y) to (x, ?!*Yn).
3766 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
3768         * dumpfile.h (enum dump_kind): Remove stray comma.
3770 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
3772         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
3773         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
3774         predicate::num_conditions
3775         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
3776         (CHANGED): turn into predicate::changed.
3777         (agg_position_info): Move to ipa-predicate.h
3778         (add_condition, predicate::add_clause, predicate::operator &=,
3779         predicate::or_with, predicate::evaluate, predicate::probability,
3780         dump_condition, dump_clause, predicate::dump,
3781         predicate::remap_after_duplication, predicate::remap_after_inlining,
3782         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
3783         (evaluate_conditions_for_known_args): Update.
3784         (set_cond_stmt_execution_predicate): Update.
3785         * ipa-inline.h: Include ipa-predicate.h
3786         (condition, inline_param_summary, conditions, agg_position_info,
3787         predicate): Move to ipa-predicate.h
3788         * ipa-predicate.c: New file.
3789         * ipa-predicate.h: New file.
3791 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
3793         * final.c (leaf_function_p): Check we are not in a sequence.
3795 2017-05-18  Martin Liska  <mliska@suse.cz>
3797         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
3798         * dumpfile.c (dump_register): Use new enum dump_kind.
3799         (get_dump_file_name): Likewise.
3800         (dump_enable_all): Likewise.
3801         (dump_switch_p_1): Likewise.
3802         (enable_rtl_dump_file): Remove usage of TDF_RTL.
3803         * dumpfile.h (enum dump_kind): New enum type.
3804         (struct dump_file_info): Create constructor and
3805         format fields and comments.
3806         * passes.c (pass_manager::register_one_dump_file):
3807         Use num dump_kind.
3808         * statistics.c (statistics_early_init): Likewise.
3809         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
3810         TDF_TREE with TDF_SLIM.
3811         (gather_memory_references_ref): Likewise.
3813 2017-05-18  Martin Liska  <mliska@suse.cz>
3815         * vec.h (struct vnull): Use it.
3817 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
3819         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
3820         (true_predicate, false_predicate, true_predicate_p,
3821         false_predicate_p): Remove.
3822         (single_cond_predicate, not_inlined_predicate): Turn to member function
3823         in ipa-inline.h
3824         (add_condition): Update.
3825         (add_clause): Turn to...
3826         (predicate::add_clause): ... this one; update; allow passing NULL
3827         as parameter.
3828         (and_predicates): Turn to ...
3829         (predicate::operator &=): ... this one.
3830         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
3831         (or_predicates): Turn to ...
3832         (predicate::or_with): ... this one.
3833         (evaluate_predicate): Turn to ...
3834         (predicate::evaluate): ... this one.
3835         (predicate_probability): Turn to ...
3836         (predicate::probability): ... this one.
3837         (dump_condition): Update.
3838         (dump_predicate): Turn to ...
3839         (predicate::dump): ... this one.
3840         (account_size_time): Update.
3841         (edge_set_predicate): Update.
3842         (set_hint_predicate): UPdate.
3843         (evaluate_conditions_for_known_args): Update.
3844         (evaluate_properties_for_edge): Update.
3845         (remap_predicate_after_duplication): Turn to...
3846         (predicate::remap_after_duplication): ... this one.
3847         (remap_hint_predicate_after_duplication): Update.
3848         (inline_summary_t::duplicate): UPdate.
3849         (dump_inline_edge_summary): Update.
3850         (dump_inline_summary): Update.
3851         (set_cond_stmt_execution_predicate): Update.
3852         (set_switch_stmt_execution_predicate): Update.
3853         (compute_bb_predicates): Update.
3854         (will_be_nonconstant_expr_predicate): Update.
3855         (will_be_nonconstant_predicate): Update.
3856         (phi_result_unknown_predicate): Update.
3857         (predicate_for_phi_result): Update.
3858         (array_index_predicate): Update.
3859         (estimate_function_body_sizes): Update.
3860         (estimate_node_size_and_time): Update.
3861         (estimate_ipcp_clone_size_and_time): Update.
3862         (remap_predicate): Rename to ...
3863         (predicate::remap_after_inlining): ... this one.
3864         (remap_hint_predicate): Update.
3865         (inline_merge_summary): Update.
3866         (inline_update_overall_summary): Update.
3867         (estimate_size_after_inlining): Update.
3868         (read_predicate): Rename to ...
3869         (predicate::stream_in): ... this one.
3870         (read_inline_edge_summary): Update.
3871         (write_predicate): Rename to ...
3872         (predicate::stream_out): ... this one.
3873         (write_inline_edge_summary): Update.
3874         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
3875         (clause_t): Turn to uint32_t
3876         (predicate): Turn to class; implement constructor and operators
3877         ==, !=, &
3878         (size_time_entry): Update.
3879         (inline_summary): Update.
3880         (inline_edge_summary): Update.
3882 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
3884         * fold-const.c (fold_binary_loc): Move transformation...
3885         * match.pd (C - X CMP X): ... here.
3887 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
3889         * config/sparc/sparc.c (sparc_option_override): Set function
3890         alignment for -mcpu=niagara7 to 64 to match the I$ line.
3891         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
3892         latency to 1.
3893         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
3894         latency to 2.
3895         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
3897 2017-05-18  Marek Polacek  <polacek@redhat.com>
3899         PR sanitizer/80797
3900         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
3901         (pass_ubsan::execute): Call gimple_assign_single_p instead of
3902         gimple_assign_load_p.
3904 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
3906         PR middle-end/80692
3907         * real.c (do_compare): Give decimal_do_compare preference over
3908         comparing just the signs.
3910 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
3912         * doc/md.texi (Canonicalization of Instructions): Describe the
3913         canonical form of instructions that inherently set a condition
3914         code register.
3916 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
3918         PR middle-end/80775
3919         * tree-cfg.c: Move deletion of unreachable case statements to after
3920         the merging of consecutive case labels.
3922 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3924         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
3925         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
3926         restoring of callee-saved registers.
3928 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3930         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
3931         * config/visium/visium.c (single_set_and_flags): Likewise.
3932         * config/visium/visium.md (Substitutions): Likewise.
3934 2017-05-17  Martin Liska  <mliska@suse.cz>
3936         * cfg.c: Introduce dump_flags_t type and
3937         use it instead of int type.
3938         * cfg.h: Likewise.
3939         * cfghooks.c: Likewise.
3940         * cfghooks.h (struct cfg_hooks): Likewise.
3941         * cfgrtl.c: Likewise.
3942         * cfgrtl.h: Likewise.
3943         * cgraph.c (cgraph_node::get_body): Likewise.
3944         * coretypes.h: Likewise.
3945         * domwalk.c: Likewise.
3946         * domwalk.h: Likewise.
3947         * dumpfile.c (struct dump_option_value_info): Likewise.
3948         (dump_enable_all): Likewise.
3949         (dump_switch_p_1): Likewise.
3950         (opt_info_switch_p): Likewise.
3951         * dumpfile.h (enum tree_dump_index): Likewise.
3952         (struct dump_file_info): Likewise.
3953         * genemit.c: Likewise.
3954         * generic-match-head.c: Likewise.
3955         * gengtype.c (open_base_files): Likewise.
3956         * gimple-pretty-print.c: Likewise.
3957         * gimple-pretty-print.h: Likewise.
3958         * graph.c (print_graph_cfg): Likewise.
3959         * graphite-scop-detection.c (dot_all_sese): Likewise.
3960         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
3961         * loop-unroll.c (report_unroll): Likewise.
3962         * passes.c (pass_manager::register_one_dump_file): Likewise.
3963         * print-tree.c: Likewise.
3964         * statistics.c: Likewise.
3965         * tree-cfg.c: Likewise.
3966         * tree-cfg.h: Likewise.
3967         * tree-dfa.c: Likewise.
3968         * tree-dfa.h: Likewise.
3969         * tree-dump.c (dump_function): Likewise.
3970         * tree-dump.h (struct dump_info): Likewise.
3971         * tree-pretty-print.c: Likewise.
3972         * tree-pretty-print.h: Likewise.
3973         * tree-ssa-live.c: Likewise.
3974         * tree-ssa-live.h: Likewise.
3975         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3976         * tree-vect-loop.c: Likewise.
3977         * tree-vect-slp.c: Likewise.
3979 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
3980             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3982         PR tree-optimization/80457
3983         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
3984         of all arguments to a statement as scalar_to_vec operations.
3985         (vectorizable_call): Adjust call to vect_model_simple_cost for
3986         new parameter.
3987         (vectorizable_conversion): Likewise.
3988         (vectorizable_assignment): Likewise.
3989         (vectorizable_shift): Likewise.
3990         (vectorizable_operation): Likewise.
3991         (vectorizable_comparison): Likewise.
3992         (vect_is_simple_cond): Record the def types for operands.
3993         (vectorizable_condition): Likewise, call vect_model_simple_cost.
3994         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
3995         for statement argument count.
3997 2017-05-16  Carl Love  <cel@us.ibm.com>
3999         * config/rs6000/rs6000-c: Add support for built-in functions
4000         vector unsigned long long vec_bperm (vector unsigned long long,
4001                                              vector unsigned char)
4002         vector signed long long vec_mule (vector signed int,
4003                                           vector signed int)
4004         vector unsigned long long vec_mule (vector unsigned int,
4005                                             vector unsigned int)
4006         vector signed long long vec_mulo (vector signed int,
4007                                           vector signed int)
4008         vector unsigned long long vec_mulo (vector unsigned int,
4009                                             vector unsigned int)
4010         vector signed char vec_sldw (vector signed char,
4011                                      vector signed char,
4012                                      const int)
4013         vector unsigned char vec_sldw (vector unsigned char,
4014                                        vector unsigned char,
4015                                        const int)
4016         vector signed short vec_sldw (vector signed short,
4017                                       vector signed short,
4018                                       const int)
4019         vector unsigned short vec_sldw (vector unsigned short,
4020                                         vector unsigned short,
4021                                         const int)
4022         vector signed int vec_sldw (vector signed int,
4023                                     vector signed int,
4024                                     const int)
4025         vector unsigned int vec_sldw (vector unsigned int,
4026                                       vector unsigned int,
4027                                       const int)
4028         vector signed long long vec_sldw (vector signed long long,
4029                                           vector signed long long,
4030                                           const int)
4031         vector unsigned long long vec_sldw (vector unsigned long long,
4032                                             vector unsigned long long,
4033                                             const int)
4034         * config/rs6000/rs6000-c: Add support for built-in functions
4035         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
4036         * config/rs6000/altivec.h: Add defintion for vec_sldw.
4037         * doc/extend.texi: Update the built-in documentation for the
4038         new built-in functions.
4040 2017-05-16  Marek Polacek  <polacek@redhat.com>
4042         PR sanitizer/80536
4043         PR sanitizer/80386
4044         * tree.c (save_expr): Don't fold the expression.
4046 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
4048         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
4049         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
4050         and (?*y,m).  Update insn attributes.
4052 2017-05-16  Martin Liska  <mliska@suse.cz>
4054         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
4055         flags argument of print_gimple_stmt, print_gimple_expr,
4056         print_generic_stmt and print_generic_expr.
4057         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4058         * coretypes.h: Likewise.
4059         * except.c (dump_eh_tree): Likewise.
4060         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4061         * gimple-pretty-print.h: Likewise.
4062         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
4063         (backprop::push_to_worklist): Likewise.
4064         (backprop::pop_from_worklist): Likewise.
4065         (backprop::process_use): Likewise.
4066         (backprop::intersect_uses): Likewise.
4067         (note_replacement): Likewise.
4068         * gimple-ssa-store-merging.c
4069         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
4070         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4071         (pass_store_merging::execute): Likewise.
4072         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
4073         (ssa_base_cand_dump_callback): Likewise.
4074         (dump_incr_vec): Likewise.
4075         (replace_refs): Likewise.
4076         (replace_mult_candidate): Likewise.
4077         (create_add_on_incoming_edge): Likewise.
4078         (create_phi_basis): Likewise.
4079         (insert_initializers): Likewise.
4080         (all_phi_incrs_profitable): Likewise.
4081         (introduce_cast_before_cand): Likewise.
4082         (replace_one_candidate): Likewise.
4083         * gimplify.c (gimplify_expr): Likewise.
4084         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
4085         (set_rename): Likewise.
4086         (rename_uses): Likewise.
4087         (copy_loop_phi_nodes): Likewise.
4088         (add_close_phis_to_merge_points): Likewise.
4089         (copy_loop_close_phi_args): Likewise.
4090         (copy_cond_phi_args): Likewise.
4091         (graphite_copy_stmts_from_block): Likewise.
4092         (translate_pending_phi_nodes): Likewise.
4093         * graphite-poly.c (print_pdr): Likewise.
4094         (dump_gbb_cases): Likewise.
4095         (dump_gbb_conditions): Likewise.
4096         (print_scop_params): Likewise.
4097         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
4098         (build_cross_bb_scalars_use): Likewise.
4099         (gather_bbs::before_dom_children): Likewise.
4100         * hsa-dump.c (dump_hsa_immed): Likewise.
4101         * ipa-cp.c (print_ipcp_constant_value): Likewise.
4102         (get_replacement_map): Likewise.
4103         * ipa-inline-analysis.c (dump_condition): Likewise.
4104         (estimate_function_body_sizes): Likewise.
4105         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
4106         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
4107         * ipa-prop.c (ipa_dump_param): Likewise.
4108         (ipa_print_node_jump_functions_for_edge): Likewise.
4109         (ipa_modify_call_arguments): Likewise.
4110         (ipa_modify_expr): Likewise.
4111         (ipa_dump_param_adjustments): Likewise.
4112         (ipa_dump_agg_replacement_values): Likewise.
4113         (ipcp_modif_dom_walker::before_dom_children): Likewise.
4114         * ipa-pure-const.c (check_stmt): Likewise.
4115         (pass_nothrow::execute): Likewise.
4116         * ipa-split.c (execute_split_functions): Likewise.
4117         * omp-offload.c (dump_oacc_loop_part): Likewise.
4118         (dump_oacc_loop): Likewise.
4119         * trans-mem.c (tm_log_emit): Likewise.
4120         (tm_memopt_accumulate_memops): Likewise.
4121         (dump_tm_memopt_set): Likewise.
4122         (dump_tm_memopt_transform): Likewise.
4123         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4124         (print_loop): Likewise.
4125         * tree-chkp-opt.c (chkp_print_addr): Likewise.
4126         (chkp_gather_checks_info): Likewise.
4127         (chkp_get_check_result): Likewise.
4128         (chkp_remove_check_if_pass): Likewise.
4129         (chkp_use_outer_bounds_if_possible): Likewise.
4130         (chkp_reduce_bounds_lifetime): Likewise.
4131         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
4132         (chkp_mark_completed_bounds): Likewise.
4133         (chkp_register_incomplete_bounds): Likewise.
4134         (chkp_mark_invalid_bounds): Likewise.
4135         (chkp_maybe_copy_and_register_bounds): Likewise.
4136         (chkp_build_returned_bound): Likewise.
4137         (chkp_get_bound_for_parm): Likewise.
4138         (chkp_build_bndldx): Likewise.
4139         (chkp_get_bounds_by_definition): Likewise.
4140         (chkp_generate_extern_var_bounds): Likewise.
4141         (chkp_get_bounds_for_decl_addr): Likewise.
4142         * tree-chrec.c (chrec_apply): Likewise.
4143         * tree-data-ref.c (dump_data_reference): Likewise.
4144         (dump_subscript): Likewise.
4145         (dump_data_dependence_relation): Likewise.
4146         (analyze_overlapping_iterations): Likewise.
4147         * tree-inline.c (expand_call_inline): Likewise.
4148         (tree_function_versioning): Likewise.
4149         * tree-into-ssa.c (dump_defs_stack): Likewise.
4150         (dump_currdefs): Likewise.
4151         (dump_names_replaced_by): Likewise.
4152         (dump_update_ssa): Likewise.
4153         (update_ssa): Likewise.
4154         * tree-object-size.c (pass_object_sizes::execute): Likewise.
4155         * tree-parloops.c (build_new_reduction): Likewise.
4156         (try_create_reduction_list): Likewise.
4157         (ref_conflicts_with_region): Likewise.
4158         (oacc_entry_exit_ok_1): Likewise.
4159         (oacc_entry_exit_single_gang): Likewise.
4160         * tree-pretty-print.h: Likewise.
4161         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
4162         (get_scalar_evolution): Likewise.
4163         (add_to_evolution): Likewise.
4164         (get_loop_exit_condition): Likewise.
4165         (analyze_evolution_in_loop): Likewise.
4166         (analyze_initial_condition): Likewise.
4167         (analyze_scalar_evolution): Likewise.
4168         (instantiate_scev): Likewise.
4169         (number_of_latch_executions): Likewise.
4170         (gather_chrec_stats): Likewise.
4171         (final_value_replacement_loop): Likewise.
4172         (scev_const_prop): Likewise.
4173         * tree-sra.c (dump_access): Likewise.
4174         (disqualify_candidate): Likewise.
4175         (create_access): Likewise.
4176         (reject): Likewise.
4177         (maybe_add_sra_candidate): Likewise.
4178         (create_access_replacement): Likewise.
4179         (analyze_access_subtree): Likewise.
4180         (analyze_all_variable_accesses): Likewise.
4181         (sra_modify_assign): Likewise.
4182         (initialize_constant_pool_replacements): Likewise.
4183         (find_param_candidates): Likewise.
4184         (decide_one_param_reduction): Likewise.
4185         (replace_removed_params_ssa_names): Likewise.
4186         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4187         * tree-ssa-copy.c (dump_copy_of): Likewise.
4188         (copy_prop_visit_cond_stmt): Likewise.
4189         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
4190         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
4191         (record_equivalences_from_stmt): Likewise.
4192         * tree-ssa-dse.c (compute_trims): Likewise.
4193         (delete_dead_call): Likewise.
4194         (delete_dead_assignment): Likewise.
4195         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
4196         (forward_propagate_into_cond): Likewise.
4197         (pass_forwprop::execute): Likewise.
4198         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4199         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
4200         Likewise.
4201         (move_computations_worker): Likewise.
4202         (execute_sm): Likewise.
4203         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
4204         (remove_exits_and_undefined_stmts): Likewise.
4205         (remove_redundant_iv_tests): Likewise.
4206         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
4207         (adjust_iv_update_pos): Likewise.
4208         * tree-ssa-math-opts.c (bswap_replace): Likewise.
4209         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
4210         (value_replacement): Likewise.
4211         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4212         * tree-ssa-pre.c (print_pre_expr): Likewise.
4213         (get_representative_for): Likewise.
4214         (create_expression_by_pieces): Likewise.
4215         (insert_into_preds_of_block): Likewise.
4216         (eliminate_insert): Likewise.
4217         (eliminate_dom_walker::before_dom_children): Likewise.
4218         (eliminate): Likewise.
4219         (remove_dead_inserted_code): Likewise.
4220         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
4221         * tree-ssa-reassoc.c (get_rank): Likewise.
4222         (eliminate_duplicate_pair): Likewise.
4223         (eliminate_plus_minus_pair): Likewise.
4224         (eliminate_not_pairs): Likewise.
4225         (undistribute_ops_list): Likewise.
4226         (eliminate_redundant_comparison): Likewise.
4227         (update_range_test): Likewise.
4228         (optimize_range_tests_var_bound): Likewise.
4229         (optimize_vec_cond_expr): Likewise.
4230         (rewrite_expr_tree): Likewise.
4231         (rewrite_expr_tree_parallel): Likewise.
4232         (linearize_expr): Likewise.
4233         (break_up_subtract): Likewise.
4234         (linearize_expr_tree): Likewise.
4235         (attempt_builtin_powi): Likewise.
4236         (attempt_builtin_copysign): Likewise.
4237         (transform_stmt_to_copy): Likewise.
4238         (transform_stmt_to_multiply): Likewise.
4239         (dump_ops_vector): Likewise.
4240         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
4241         (print_scc): Likewise.
4242         (set_ssa_val_to): Likewise.
4243         (visit_reference_op_store): Likewise.
4244         (visit_use): Likewise.
4245         (sccvn_dom_walker::before_dom_children): Likewise.
4246         (run_scc_vn): Likewise.
4247         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
4248         Likewise.
4249         (expr_hash_elt::print): Likewise.
4250         (const_and_copies::pop_to_marker): Likewise.
4251         (const_and_copies::record_const_or_copy_raw): Likewise.
4252         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
4253         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
4254         (dump_predicates): Likewise.
4255         (find_uninit_use): Likewise.
4256         (warn_uninitialized_phi): Likewise.
4257         (pass_late_warn_uninitialized::execute): Likewise.
4258         * tree-ssa.c (verify_vssa): Likewise.
4259         (verify_ssa): Likewise.
4260         (maybe_optimize_var): Likewise.
4261         * tree-vrp.c (dump_value_range): Likewise.
4262         (dump_all_value_ranges): Likewise.
4263         (dump_asserts_for): Likewise.
4264         (register_edge_assert_for_2): Likewise.
4265         (vrp_visit_cond_stmt): Likewise.
4266         (vrp_visit_switch_stmt): Likewise.
4267         (vrp_visit_stmt): Likewise.
4268         (vrp_visit_phi_node): Likewise.
4269         (simplify_cond_using_ranges_1): Likewise.
4270         (fold_predicate_in): Likewise.
4271         (evrp_dom_walker::before_dom_children): Likewise.
4272         (evrp_dom_walker::push_value_range): Likewise.
4273         (evrp_dom_walker::pop_value_range): Likewise.
4274         (execute_early_vrp): Likewise.
4276 2017-05-16  Richard Biener  <rguenther@suse.de>
4278         * dwarf2out.c (loc_list_from_tree_1): Do not create
4279         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
4281 2017-05-16  Richard Biener  <rguenther@suse.de>
4283         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
4284         just generated.
4285         (note_variable_value_in_expr): If we resolved the decl ref
4286         do not push to the stack.
4288 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4290         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
4291         operations in fast-math mode.
4292         (vaddq_f16): Likewise.
4293         (vmul_f16): Likewise.
4294         (vmulq_f16): Likewise.
4295         (vsub_f16): Likewise.
4296         (vsubq_f16): Likewise.
4297         * config/arm/neon.md (add<mode>3): New.
4298         (sub<mode>3): New.
4299         (fma:<VH:mode>3): New.  Also remove outdated comment.
4300         (mul<mode>3): New.
4302 2017-05-16  Martin Liska  <mliska@suse.cz>
4304         PR ipa/79849.
4305         PR ipa/79850.
4306         * ipa-devirt.c (warn_types_mismatch): Fix typo.
4307         (odr_types_equivalent_p): Likewise.
4309 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
4311         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
4313 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
4315         PR target/80425
4316         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
4317         non-interunit SSE move alternatives with '?'.
4318         (zero-extendsidi peephole2): New peephole to skip intermediate
4319         general register in SSE zero-extend sequence.
4321 2017-05-15  Jeff Law  <law@redhat.com>
4323         * reorg.c (relax_delay_slots): Create a new variable to hold
4324         the temporary target rather than clobbering TARGET_LABEL.
4326         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
4327         missing argument to extract_bit_field call.
4328         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
4330 2017-05-15  Martin Liska  <mliska@suse.cz>
4332         PR driver/31468
4333         * gcc.c (process_command): Do not allow empty argument of -o option.
4335 2017-05-15  Renlin Li  <renlin.li@arm.com>
4337         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
4338         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
4339         * config/aarch64/constraints.md (Usf): Add long call check.
4340         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
4341         (call_value): Likewise.
4342         (sibcall): Likewise.
4343         (sibcall_value): Likewise.
4344         (call_insn): New.
4345         (call_value_insn): New.
4346         (sibcall_insn): Update rtx pattern.
4347         (sibcall_value_insn): Likewise.
4348         (call_internal): Remove.
4349         (call_value_internal): Likewise.
4350         (sibcall_internal): Likewise.
4351         (sibcall_value_internal): Likewise.
4352         (call_reg): Likewise.
4353         (call_symbol): Likewise.
4354         (call_value_reg): Likewise.
4355         (call_value_symbol): Likewise.
4357 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
4359         PR target/80600
4360         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
4362 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
4364         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
4365         compatible with CCGOCmode and with CCZmode.
4367 2017-05-14  Martin Sebor  <msebor@redhat.com>
4369         PR middle-end/77671
4370         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
4371         (gimple_fold_builtin_snprintf): Same.
4372         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
4373         (gimple_fold_builtin_snprintf): Same.
4374         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
4375         of character types.
4376         (is_call_safe): New function.
4377         (try_substitute_return_value): Call it.
4378         (try_simplify_call): New function.
4379         (pass_sprintf_length::handle_gimple_call): Call it.
4381 2017-05-14  Martin Sebor  <msebor@redhat.com>
4383         PR middle-end/80669
4384         * builtins.c (expand_builtin_stpncpy): Simplify.
4386 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
4388         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
4389         * config/i386/i386.h
4390         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
4391         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
4392         (struct machine_function): Add new members call_ms2sysv,
4393         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
4394         (struct machine_frame_state): New fields sp_realigned and
4395         sp_realigned_offset.
4396         * config/i386/i386.c
4397         (enum xlogue_stub): New enum.
4398         (enum xlogue_stub_sets): New enum.
4399         (class xlogue_layout): New class.
4400         (struct ix86_frame): New fields stack_realign_allocate_offset,
4401         stack_realign_offset and outlined_save_offset.  Modify comments to
4402         detail stack layout when using out-of-line stubs.
4403         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
4404         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
4405         -mcall-ms2sysv-xlogues.
4406         (stub_managed_regs): New static variable.
4407         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
4408         registers managed by out-of-line stub.
4409         (disable_call_ms2sysv_xlogues): New function.
4410         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
4411         m->call_ms2sysv when appropriate and compute frame layout for
4412         out-of-line stubs.
4413         (sp_valid_at, fp_valid_at): New inline functions.
4414         (choose_basereg): New function.
4415         (choose_baseaddr): Add align parameter, use choose_basereg and modify
4416         all callers.
4417         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
4418         Use align parameter of choose_baseaddr to generated aligned SSE movs
4419         when possible.
4420         (pro_epilogue_adjust_stack): Modify to track
4421         machine_frame_state::sp_realigned.
4422         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
4423         (ix86_nsaved_sseregs): Likewise.
4424         (ix86_emit_save_regs): Likewise.
4425         (ix86_emit_save_regs_using_mov): Likewise.
4426         (ix86_emit_save_sse_regs_using_mov): Likewise.
4427         (get_scratch_register_on_entry): Likewise.
4428         (gen_frame_set): New function.
4429         (gen_frame_load): Likewise.
4430         (gen_frame_store): Likewise.
4431         (emit_outlined_ms2sysv_save): Likewise.
4432         (emit_outlined_ms2sysv_restore): Likewise.
4433         (ix86_expand_prologue): Modify stack re-alignment code and call
4434         emit_outlined_ms2sysv_save when appropriate.
4435         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
4436         parameter rtx_insn *insn, which allows the function to be used to only
4437         generate the notes.
4438         (ix86_expand_epilogue): Modify validity checks of frame and stack
4439         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
4440         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
4441         * config/i386/predicates.md
4442         (save_multiple): New predicate.
4443         (restore_multiple): Likewise.
4444         * config/i386/sse.md
4445         (save_multiple<mode>): New pattern.
4446         (save_multiple_realign<mode>): Likewise.
4447         (restore_multiple<mode>): Likewise.
4448         (restore_multiple_and_return<mode>): Likewise.
4449         (restore_multiple_leave_return<mode>): Likewise.
4450         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
4452 2017-05-14  Julia Koval  <julia.koval@intel.com>
4454         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
4455         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
4456         (__builtin_ia32_xsetbv): New builtins.
4457         * config/i386/i386.c (ix86_expand_special_args_builtin):
4458         Process new types.
4459         (ix86_expand_builtin): Special expand for new intrinsics.
4460         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
4461         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
4462         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
4464 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4466         * cfganal.c (inverted_post_order_compute): Change argument type
4467         to vec *.
4468         * cfganal.h (inverted_post_order_compute): Adjust prototype.
4469         * df-core.c (rest_of_handle_df_initialize): Adjust.
4470         (rest_of_handle_df_finish): Likewise.
4471         (df_analyze_1): Likewise.
4472         (df_analyze): Likewise.
4473         (loop_inverted_post_order_compute): Change argument to be a vec *.
4474         (df_analyze_loop): Adjust.
4475         (df_get_n_blocks): Likewise.
4476         (df_get_postorder): Likewise.
4477         * df.h (struct df_d): Change field to be a vec.
4478         * lcm.c (compute_laterin): Adjust.
4479         (compute_available): Likewise.
4480         * lra-lives.c (lra_create_live_ranges_1): Likewise.
4481         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
4482         * tree-ssa-pre.c (compute_antic): Likewise.
4484 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4486         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
4487         (depth_first_search::depth_first_search): Change structure init
4488         function to this constructor.
4489         (depth_first_search::add_bb): Rename function to this member.
4490         (depth_first_search::execute): Likewise.
4491         (flow_dfs_compute_reverse_finish): Adjust.
4493 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4495         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
4496         (longest_simple_path): Likewise.
4497         * shrink-wrap.c (spread_components): Likewise.
4498         (disqualify_problematic_components): Likewise.
4499         (emit_common_heads_for_components): Likewise.
4500         (emit_common_tails_for_components): Likewise.
4501         (insert_prologue_epilogue_for_components): Likewise.
4503 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4505         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
4506         auto_sbitmap.
4508 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4510         * df-core.c (df_set_blocks): Start using auto_bitmap.
4511         (df_compact_blocks): Likewise.
4512         * df-problems.c (df_rd_confluence_n): Likewise.
4513         * df-scan.c (df_insn_rescan_all): Likewise.
4514         (df_process_deferred_rescans): Likewise.
4515         (df_update_entry_block_defs): Likewise.
4516         (df_update_exit_block_uses): Likewise.
4517         (df_entry_block_bitmap_verify): Likewise.
4518         (df_exit_block_bitmap_verify): Likewise.
4519         (df_scan_verify): Likewise.
4520         * lra-constraints.c (lra_constraints): Likewise.
4521         (undo_optional_reloads): Likewise.
4522         (lra_undo_inheritance): Likewise.
4523         * lra-remat.c (calculate_gen_cands): Likewise.
4524         (do_remat): Likewise.
4525         * lra-spills.c (assign_spill_hard_regs): Likewise.
4526         (spill_pseudos): Likewise.
4527         * tree-ssa-pre.c (bitmap_set_and): Likewise.
4528         (bitmap_set_subtract_values): Likewise.
4530 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4532         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
4533         management with auto_bitmap.
4534         (fix_inter_tick): Likewise.
4535         (fix_recovery_deps): Likewise.
4536         * ira.c (add_store_equivs): Likewise.
4537         (find_moveable_pseudos): Likewise.
4538         (split_live_ranges_for_shrink_wrap): Likewise.
4539         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
4540         (rtx_reuse_manager::seen_def_p): Likewise.
4541         (rtx_reuse_manager::set_seen_def): Likewise.
4542         * print-rtl.h (class rtx_reuse_manager): Likewise.
4544 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4546         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
4547         lifetime.
4548         (migrate_btr_def): Likewise.
4549         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
4550         * df-core.c (loop_post_order_compute): Likewise.
4551         (loop_inverted_post_order_compute): Likewise.
4552         * hsa-common.h: Likewise.
4553         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
4554         * init-regs.c (initialize_uninitialized_regs): Likewise.
4555         * ipa-inline.c (resolve_noninline_speculation): Likewise.
4556         (inline_small_functions): Likewise.
4557         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
4558         * ira.c (combine_and_move_insns): Likewise.
4559         (build_insn_chain): Likewise.
4560         * loop-invariant.c (find_invariants): Likewise.
4561         * lower-subreg.c (propagate_pseudo_copies): Likewise.
4562         * predict.c (tree_predict_by_opcode): Likewise.
4563         (predict_paths_leading_to): Likewise.
4564         (predict_paths_leading_to_edge): Likewise.
4565         (estimate_loops_at_level): Likewise.
4566         (estimate_loops): Likewise.
4567         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4568         (spread_components): Likewise.
4569         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
4570         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
4571         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
4572         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
4573         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
4574         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
4575         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
4576         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
4577         (mark_threaded_blocks): Likewise.
4578         (thread_through_all_blocks): Likewise.
4579         * tree-ssa.c (verify_ssa): Likewise.
4580         (execute_update_addresses_taken): Likewise.
4581         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
4583 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4585         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
4586         auto_vec.
4587         (post_order_compute): Likewise.
4588         (inverted_post_order_compute): Likewise.
4589         (pre_and_rev_post_order_compute_fn): Likewise.
4591 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4593         * genrecog.c (int_set::int_set): Explicitly construct our
4594         auto_vec base class.
4595         * vec.h (auto_vec::auto_vec): New constructor.
4597 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4599         * bitmap.h (class auto_bitmap): New constructor taking
4600         bitmap_obstack * argument.
4602 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4604         * bitmap.h (class auto_bitmap): Change type of m_bits to
4605         bitmap_head, and adjust ctor / dtor and member operators.
4607 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
4609         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
4610         when returned register mode doesn't match original mode.
4612 2017-05-12  Jeff Law  <law@redhat.com>
4613             Jakub Jelinek  <jakub@redhat.com>
4615         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
4616         we look for cc setter after the compare-elim changes.
4617         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
4618         within the vector to match what compare-elim now expects.
4619         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
4620         (xorsi3_flags, one_cmplsi2_flags): Likewise.
4622         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
4623         after the compare-elim changes.
4624         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
4625         the vector to match what compare-elim now expects.
4626         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
4627         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
4628         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
4629         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
4630         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
4632         * config/visium/visium.c (single_set_and_flags): Fix where
4633         we look for cc setter after the compare-elim changes.
4634         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
4635         with the vector to match what compare-elim now expects.
4636         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
4637         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
4638         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
4639         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
4640         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
4641         (neg<mode>2_insn_set_overflow): Likewise.
4643 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
4645         PR middle-end/79794
4646         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
4647         maybe_expand_insn call, set ops[0].target.  If still set after call,
4648         set alt_rtl.  Add extra arg to recursive calls.
4649         (extract_bit_field): Add alt_rtl argument.  Pass to
4650         extract_bit_field.
4651         * expmed.h (extract_bit_field): Fix prototype.
4652         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
4653         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
4654         to extract_bit_field_calls.
4655         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
4656         Pass alt_rtl to extract_bit_field calls.
4657         * calls.c (store_unaligned_arguments_into_psuedos)
4658         load_register_parameters): Pass extra NULL to extract_bit_field calls.
4659         * optabs.c (maybe_legitimize_operand): Clear op->target when call
4660         gen_reg_rtx.
4661         * optabs.h (struct expand_operand): Add target bitfield.
4663 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
4665         * compare-elim.c (try_eliminate_compare): Canonicalize
4666         operation with embedded compare to
4667         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
4668          (set (reg) (operation)].
4670         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
4672 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
4674         PR target/80723
4675         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
4676         cost of adding a carry flag for ADC instruction.
4677         [case MINUS]: Ignore the cost of subtracting a carry flag
4678         for SBB instruction.
4680 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
4682         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
4683         and x86intrin.h
4684         * config/rs6000/bmiintrin.h: New file.
4685         * config/rs6000/bmi2intrin.h: New file.
4686         * config/rs6000/x86intrin.h: New file.
4688 2017-05-12  Jeff Law  <law@redhat.com>
4690         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
4691         markers.
4693 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
4695         PR middle-end/80707
4696         * tree-cfg.c: Remove cfg edges of unreachable case statements.
4698 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4700         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
4701         early expansion of vector divide builtins.
4702         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
4703         builtins identified as having unsigned arguments.
4705 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4707         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
4708         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
4709         expansion of vector logical operations (and, andc, or, xor,
4710         nor, orc, nand).
4712 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4714         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
4715         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
4717 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
4719         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
4720         early GIMPLE expansion of vector multiplies.
4722 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
4724         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
4725         TARGET_HAVE_MOVT conditional.
4726         (movt splitter): Likewise.
4728 2017-05-12  Richard Biener  <rguenther@suse.de>
4730         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
4731         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4732         Fold all stmts not inplace.
4734 2017-05-12  Richard Biener  <rguenther@suse.de>
4736         PR tree-optimization/80713
4737         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
4738         inserted_exprs bit for not removed stmts.
4740 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
4742         PR middle-end/69921
4743         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
4744         parallelized" attribute for parallelized OpenACC kernels.
4745         * omp-offload.c (execute_oacc_device_lower): Use it.
4747         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
4748         Set "oacc kernels" attribute.
4749         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
4750         parameter.  Adjust all users.
4751         (oacc_fn_attrib_kernels_p): Remove function.
4752         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
4753         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
4754         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4755         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
4756         assert "oacc kernels" attribute is set.
4758 2017-05-11  Carl Love  <cel@us.ibm.com>
4760         * config/rs6000/rs6000-c: Add support for built-in functions
4761         vector unsigned char vec_popcnt (vector signed char)
4762         vector unsigned char vec_popcnt (vector unsigned char)
4763         vector unsigned short vec_popcnt (vector signed short)
4764         vector unsigned short vec_popcnt (vector unsigned short)
4765         vector unsigned int vec_popcnt (vector signed int)
4766         vector unsigned int vec_popcnt (vector unsigned int)
4767         vector unsigned long long vec_popcnt (vector signed long long)
4768         vector unsigned long long vec_popcnt (vector unsigned long long)
4769         vector signed long long vec_slo (vector signed long long,
4770                                          vector signed char)
4771         vector signed long long vec_slo (vector signed long long,
4772                                          vector unsigned char)
4773         vector unsigned long long vec_slo (vector unsigned long long,
4774                                            vector signed char)
4775         vector unsigned long long vec_slo (vector unsigned long long,
4776                                            vector unsigned char)
4777         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
4778         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
4779         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
4780         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
4781         * doc/extend.texi: Update the built-in documentation file for the
4782         new built-in functions.
4784 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4786         * attribs.h (sorted_attr_string): Move machine independent
4787         functions for target clone support from the i386 port to common
4788         code.  Rename ix86_function_versions to common_function_versions.
4789         Rename make_name to make_unique_name.
4790         (common_function_versions): Likewise.
4791         (make_unique_name): Likewise.
4792         (make_dispatcher_decl): Likewise.
4793         (is_function_default_version): Likewise.
4794         * attribs.c (attr_strcmp): Likewise.
4795         (sorted_attr_string): Likewise.
4796         (common_function_versions): Likewise.
4797         (make_unique_name): Likewise.
4798         (make_dispatcher_decl): Likewise.
4799         (is_function_default_version): Likewise.
4800         * config/i386/i386.c (attr_strcmp): Likewise.
4801         (sorted_attr_string): Likewise.
4802         (ix86_function_versions): Likewise.
4803         (make_name): Likewise.
4804         (make_dispatcher_decl): Likewise.
4805         (is_function_default_version): Likewise.
4806         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
4808 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4810         PR target/80695
4811         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4812         Account for direct move costs for vec_construct of integer
4813         vectors.
4815 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
4817         PR target/80706
4818         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
4819         (UNSPEC_STX_ATOMIC): Ditto.
4820         (loaddi_via_sse): New insn.
4821         (storedi_via_sse): Ditto.
4822         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
4823         Update corresponding peephole2 patterns.
4824         (atomic_storedi_fpu): Ditto.
4826 2017-05-11  Julia Koval  <julia.koval@intel.com>
4828         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
4829         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
4830         New intrinsics.
4831         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
4832         (__builtin_ia32_rsqrt14ss_mask): New builtins.
4833         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
4835 2017-05-11  Nathan Sidwell  <nathan@acm.org>
4837         * graphite-poly.c: Include dumpfile.h.
4839         * dumpfle.h (dump_function): Declare here ...
4840         * tree-dump.h (dump_function): ... not here.
4841         * dumpfile.c: #include tree-cfg.h.
4842         (dump_function): Move here from ...
4843         * tree-dump.c (dump_function): ... here.
4844         * gimplify.c: #include splay-tree.h, not tree-dump.h.
4845         * graphite-poly.c: Don't include tree-dump.h.
4846         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
4847         * print-tree.c: Likewise.
4848         * stor-layout.c: Likewise.
4849         * tree-nested.c: Likewise.
4851         * dumpfile.c (dump_start): Use TDF_FLAGS.
4852         (dump_enable_all): Fix TDF_KIND check thinko.
4854 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4856         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4857         array entries to represent two legal parameterizations of the
4858         overloaded __builtin_cmpb function, as represented by the
4859         P6_OV_BUILTIN_CMPB constant.
4860         (altivec_resolve_overloaded_builtin): Add special case handling
4861         for the __builtin_cmpb function, as represented by the
4862         P6_OV_BUILTIN_CMPB constant.
4863         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
4864         (BU_P6_64BIT_2): New macro.
4865         (BU_P6_OVERLOAD_2): New macro
4866         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
4867         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
4868         (CMPB): Add overload support to represent both 32-bit and 64-bit
4869         compare-bytes function.
4870         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
4871         support for TARGET_CMPB.
4872         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
4873         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
4874         documentation of the __builtin_cmpb overloaded built-in function.
4876 2017-05-11  Richard Biener  <rguenther@suse.de>
4878         PR tree-optimization/80705
4879         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
4880         bases are not vectorizable.
4882 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4884         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
4885         when counting register pressure.
4887 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4889         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
4890         (iv_ca_more_deps): Renamed to ...
4891         (iv_ca_compare_deps): ... this.
4892         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
4894 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4896         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
4897         to ...
4898         (determine_group_iv_costs): ... here.
4899         (find_inv_vars_cb): Record inv var if it's not recorded before.
4901 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4903         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
4904         (get_shiftadd_cost): Ditto.
4906 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4908         * tree-ssa-address.c: Include header file.
4909         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
4910         address.
4911         (add_to_parts): Refactor.
4912         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
4913         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
4914         in new order.
4916 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4918         PR tree-optimization/53090
4919         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
4920         COMP_IV_EXPR_2.
4921         (extract_cond_operands): Detect condition with IV on both sides
4922         and return COMP_IV_EXPR_2.
4923         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
4924         (rewrite_use_compare): Simplify by removing call to function
4925         extract_cond_operands.
4927 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4929         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
4930         (extract_cond_operands): Detect condition comparing against non-
4931         invariant bound and return appropriate enum value.
4932         (find_interesting_uses_cond): Update use of extract_cond_operands.
4933         Handle its return value accordingly.
4934         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
4936 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4938         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
4939         nonlinear iv_use computation in loop invariant sensitive way.
4941 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4943         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
4944         (find_iv_candidates): Call relate_compare_use_with_all_cands.
4946 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4948         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
4949         (dump_cand): Support iv_cand.inv_exprs.
4950         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
4951         for candidates.
4952         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
4953         iv_cand.inv_exprs.
4955 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4957         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
4958         from ...
4959         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
4960         as local function.  Include necessary header files.
4961         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
4963 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4965         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
4967 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4969         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
4970         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
4971         RSHIFT_EXPR and BIT_NOT_EXPR.
4973 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4975         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
4976         (adjust_setup_cost): New parameter supporting round up adjustment.
4977         (struct address_cost_data): Delete.
4978         (force_expr_to_var_cost): Don't bound cost with spill_cost.
4979         (split_address_cost, ptr_difference_cost): Delete.
4980         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
4981         (struct ainc_cost_data): New struct.
4982         (get_address_cost_ainc): New function.
4983         (get_address_cost, get_computation_cost): Reimplement.
4984         (determine_group_iv_cost_address): Record inv_expr for all uses of
4985         a group.
4986         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
4987         (iv_ca_has_deps): Reimplemented to ...
4988         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
4989         than OLD_CP.
4990         (iv_ca_extend): Call iv_ca_more_deps.
4992 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
4994         * tree-ssa-address.c (struct mem_address): Move to header file.
4995         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
4996         * tree-ssa-address.h (struct mem_address): Move from C file.
4997         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
4999 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
5001         * tree-affine.h (aff_combination_type): New interface.
5002         (aff_combination_zero_p): Remove static.
5003         (aff_combination_const_p): New interface.
5004         (aff_combination_singleton_var_p): New interfaces.
5006 2017-05-11  Richard Biener  <rguenther@suse.de>
5008         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5009         Skip unreachable blocks and destinations.
5010         (eliminate): Move stmt removal and fixup ...
5011         (fini_eliminate): ... here.  Skip inserted exprs.
5012         (pass_pre::execute): Move fini_pre after fini_eliminate.
5013         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
5014         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
5015         PRE to get rid of dead code that has invalid SSA form and
5016         split critical edges again.
5018 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
5020         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
5022 2017-05-11  Richard Biener  <rguenther@suse.de>
5024         * passes.c (execute_function_todo): Verify loops if they are
5025         said to be up-to-date.
5026         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
5027         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
5029 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
5031         PR target/80090
5032         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
5033         handle calling assemble_external ourself.
5035         PR target/79027
5036         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
5037         modes with zero size.  Enhance comment.
5039 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5041         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
5042         built-ins for vec_xl and vec_xst with short and char pointer
5043         arguments.
5045 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
5047         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
5048         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
5049         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
5050         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
5051         (_mm_maskz_min_round_ss): New intrinsics.
5052         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
5053         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
5054         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
5055         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
5056         (__builtin_ia32_minss_mask_round): New builtins.
5057         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5058         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
5059         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
5060         Rename to ...
5061         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
5062         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
5063         Change to ...
5064         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
5065         ... this.
5067 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
5069         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
5070         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
5071         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
5072         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
5073         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
5074         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
5075         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
5076         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5077         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
5078         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
5079         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
5080         (__builtin_ia32_mulss_mask_round): New builtins.
5081         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
5082         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
5083         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
5084         Rename to ...
5085         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
5086         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
5087         Change to ...
5088         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
5089         ... this.
5091 2017-05-10  Julia Koval  <julia.koval@intel.com>
5093         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
5094         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
5095         (_mm256_setr_m128i): New intrinsics.
5097 2017-05-10  Julia Koval  <julia.koval@intel.com>
5099         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
5100         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
5101         (_mm_maskz_rcp14_ss): New intrinsics.
5102         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
5103         (__builtin_ia32_rcp14ss_mask): New builtins.
5104         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
5106 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
5108         PR tree-optimization/51513
5109         * tree-cfg.c (gimple_seq_unreachable_p): New function.
5110         (assert_unreachable_fallthru_edge_p): Use it.
5111         (group_case_labels_stmt): Likewise.
5112         * tree-cfg.h: Prototype it.
5113         * stmt.c: Include cfghooks.h and tree-cfg.h.
5114         (emit_case_dispatch_table) <gap_label>: New local variable.
5115         Use it to fill dispatch table gaps.
5116         Test for default_label before updating probabilities.
5117         (expand_case) <default_label>: Remove unneeded initialization.
5118         Test for unreachable default case statement and remove its edge.
5119         Set default_label accordingly.
5120         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
5122 2017-05-10  Carl Love  <cel@us.ibm.com>
5124         * config/rs6000/rs6000-c: Add support for built-in functions
5125         vector signed char      vec_neg (vector signed char)
5126         vector signed short int vec_neg (vector short int)
5127         vector signed int       vec_neg (vector signed int)
5128         vector signed long long vec_neg (vector signed long long)
5129         vector float            vec_neg (vector float)
5130         vector double           vec_neg (vector double)
5131         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
5132         overload.
5133         * config/rs6000/altivec.h: Add define for vec_neg
5134         * doc/extend.texi: Update the built-in documentation for the
5135         new built-in functions.
5137 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5139         PR tree-optimization/77644
5140         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
5142 2017-05-10  Nathan Sidwell  <nathan@acm.org>
5144         * dumpfile.h (TDI_lang_all): New.
5145         (TDF_KIND): New. Renumber others
5146         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
5147         than bits.
5148         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
5149         lang-all.
5150         (get_dump_file_name): Adjust suffix generation.
5151         (dump_enable_all): Use TDF_KIND.
5152         * doc/invoke.texi (-fdump-lang-all): Document.
5154         * dumpfile.h: Tabify.
5156 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
5158         PR target/80671
5159         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
5160         Move member access before delete.
5162 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
5164         * tree-inline.c (expand_call_inline): Split block at stmt
5165         before the call.
5167 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5169         PR target/68163
5170         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
5171         are now unused after splitting mov{sf,sd}_hardfloat.
5172         (f32_lr2): Likewise.
5173         (f32_lm): Likewise.
5174         (f32_lm2): Likewise.
5175         (f32_li): Likewise.
5176         (f32_li2): Likewise.
5177         (f32_lv): Likewise.
5178         (f32_sr): Likewise.
5179         (f32_sr2): Likewise.
5180         (f32_sm): Likewise.
5181         (f32_sm2): Likewise.
5182         (f32_si): Likewise.
5183         (f32_si2): Likewise.
5184         (f32_sv): Likewise.
5185         (f32_dm): Likewise.
5186         (f32_vsx): Likewise.
5187         (f32_av): Likewise.
5188         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
5189         For movsf, order stores so the VSX stores occur before the GPR
5190         store which encourages the register allocator to use a traditional
5191         FPR instead of a GPR.  For movsd, order the stores so that the GPR
5192         store comes before the VSX stores to allow the power6 to work.
5193         This is due to the power6 not having a 32-bit integer store
5194         instruction from a FPR.
5195         (movsf_hardfloat): Likewise.
5196         (movsd_hardfloat): Likewise.
5198 2017-05-09  Martin Sebor  <msebor@redhat.com>
5200         PR translation/80280
5201         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
5202         added in r247778.
5204         PR translation/80280
5205         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
5206         data member added in r247778.
5207         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
5209 2017-05-09  Nathan Sidwell  <nathan@acm.org>
5211         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
5213         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
5214         typedefs.
5216 2017-05-09  Marek Polacek  <polacek@redhat.com>
5218         * doc/invoke.texi: Fix typo.
5220 2017-05-09  Richard Biener  <rguenther@suse.de>
5222         * tree-vrp.c (vrp_val_is_max): Adjust comment.
5223         (vrp_val_is_min): Likewise.
5224         (set_value_range_to_value): Likewise.
5225         (set_value_range_to_nonnegative): Likewise.
5226         (gimple_assign_nonzero_p): Likewise.
5227         (gimple_stmt_nonzero_p): Likewise.
5228         (vrp_int_const_binop): Likewise.  Remove unreachable case.
5229         (adjust_range_with_scev): Adjust comments.
5230         (compare_range_with_value): Likewise.
5231         (extract_range_from_phi_node): Likewise.
5232         (test_for_singularity): Likewise.
5234 2017-05-09  Richard Biener  <rguenther@suse.de>
5236         * tree-vrp.c (get_single_symbol): Add assert that we don't
5237         get overflowed constants as invariant part.
5238         (compare_values_warnv): Add comment before the TREE_NO_WARNING
5239         checks.  Use wi::cmp instead of recursing for integer constants.
5240         (compare_values): Just ignore whether we assumed undefined
5241         overflow instead of failing the compare.
5242         (extract_range_for_var_from_comparison_expr): Add comment before the
5243         TREE_NO_WARNING sets.
5244         (test_for_singularity): Likewise.
5245         (extract_range_from_comparison): Do not disable optimization
5246         when we assumed undefined overflow.
5247         (extract_range_basic): Remove init of unused var.
5249 2017-05-09  Richard Biener  <rguenther@suse.de>
5251         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
5252         (extract_range_from_multiplicative_op_1): Adjust.
5253         (extract_range_from_binary_expr_1): Use int_const_binop.
5255 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5257         PR target/80101
5258         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
5259         rs6000_store_data_bypass_p in seven define_bypass directives and
5260         in several comments.
5261         * config/rs6000/rs6000-protos.h: Add prototype for
5262         rs6000_store_data_bypass_p function.
5263         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
5264         function implements slightly different (rs6000-specific) semantics
5265         than store_data_bypass_p, returning false rather than aborting
5266         with assertion error when arguments do not satisfy the
5267         requirements of store data bypass.
5268         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
5269         rs6000_store_data_bypass_p.
5271 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
5273         * config/xtensa/xtensa-protos.h
5274         (xtensa_initial_elimination_offset): New declaration.
5275         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
5276         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
5277         macro definition, add case for FRAME_POINTER_REGNUM when
5278         FRAME_GROWS_DOWNWARD.
5279         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
5280         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
5281         xtensa_initial_elimination_offset.
5283 2017-05-08  Nathan Sidwell  <nathan@acm.org>
5285         * doc/invoke.texi: Alphabetize -fdump options.
5287 2017-05-08  Martin Sebor  <msebor@redhat.com>
5289         PR translation/80280
5290         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
5292 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5294         * target.def (compute_frame_layout): New optional target hook.
5295         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
5296         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
5297         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
5298         target hook.
5299         * reload1.c (verify_initial_elim_offsets): Likewise.
5300         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
5301         (use_simple_return_p): Call arm_compute_frame_layout if needed.
5302         (arm_get_frame_offsets): Split up into this ...
5303         (arm_compute_frame_layout): ... and this function.
5305 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
5307         * config/aarch64/constraints.md (Usa): New constraint.
5308         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
5310 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5312         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
5313         with_multilib_list after it has been checked.
5315 2017-05-08  Richard Biener  <rguenther@suse.de>
5317         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
5318         (bitmap_set_subtract_values): Likewise.
5320 2017-05-08  Richard Biener  <rguenther@suse.de>
5322         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
5323         (gimple_assign_nonzero): ... this and remove strict_overflow_p
5324         argument.
5325         (gimple_stmt_nonzero_warnv_p): Rename to ...
5326         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
5327         argument.
5328         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
5329         (extract_range_basic): Adjust, do not disable propagation on
5330         strict overflow sensitive simplification.
5331         (vrp_visit_cond_stmt): Likewise.
5333 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
5335         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
5336         body size unconditionally.
5338 2017-05-07  Jeff Law  <law@redhat.com>
5340         Revert:
5341         2017-05-06  Jeff Law  <law@redhat.com>
5342         PR tree-optimization/78496
5343         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
5344         code.
5346         PR tree-optimization/78496
5347         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
5348         (simplify_stmt_using_ranges): Call it.
5349         (vrp_dom_walker::before_dom_children): Extract equivalences
5350         from an ASSERT_EXPR with an equality comparison against a
5351         constant.
5353 2017-05-06  Jeff Law  <law@redhat.com>
5355         PR tree-optimization/78496
5356         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
5357         code.
5359         PR tree-optimization/78496
5360         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
5361         (simplify_stmt_using_ranges): Call it.
5362         (vrp_dom_walker::before_dom_children): Extract equivalences
5363         from an ASSERT_EXPR with an equality comparison against a
5364         constant.
5366 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
5368         * lra-constraints.c (lra_copy_reg_equiv): New function.
5369         (split_reg): Use it to copy equivalence information from the
5370         original register to the spill register.
5372 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
5374         PR rtl-optimization/75964
5375         * simplify-rtx.c (simplify_const_relational_operation): Remove
5376         invalid handling of comparisons of integer ABS.
5378 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
5380         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
5381         initialize to zero.
5382         (init_regs): Remove declaration.
5383         (function_arg_advance_32): Initialize error_p as boolean variable.
5385 2017-05-05  Nathan Sidwell  <nathan@acm.org>
5387         * store-motion.c (remove_reachable_equiv_notes): Reformat long
5388         lines.  Use for (;;).
5390 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5392         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
5393         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
5394         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
5395         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
5396         VF=2 that require versioning.
5398 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5400         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
5401         int.
5403 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5405         * diagnostic.h (diagnostic_override_option_index): Convert from
5406         macro to inline function.
5408 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5410         * diagnostic.c (last_module_changed_p): New function.
5411         (set_last_module): New function.
5412         (diagnostic_report_current_module): Convert macro usage to
5413         the above functions.
5414         * diagnostic.h (diagnostic_context::last_module): Strengthen
5415         from const line_map * to const line_map_ordinary *.
5416         (diagnostic_last_module_changed): Delete macro.
5417         (diagnostic_set_last_module): Delete macro.
5419 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5421         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
5422         with diagnostic_report_diagnostic.
5423         (diagnostic_n_impl_richloc): Likewise.
5424         * diagnostic.h (report_diagnostic): Delete macro.
5425         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
5426         with diagnostic_report_diagnostic.
5427         * substring-locations.c (format_warning_va): Likewise.
5429 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5431         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
5432         save/restor of format_spec.  Move option-printing code to...
5433         (print_option_information): ...this new function, and
5434         reimplement by simply printing to the pretty_printer,
5435         rather than appending to the format string.
5437 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
5439         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
5440         handling logic into...
5441         (update_effective_level_from_pragmas): ...this new function.
5443 2017-05-04  Andrew Waterman  <andrew@sifive.com>
5445         * config/riscv/riscv.opt (mstrict-align): New option.
5446         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
5447         (SLOW_UNALIGNED_ACCESS): Define.
5448         (riscv_slow_unaligned_access): Declare.
5449         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
5450         field.
5451         (riscv_slow_unaligned_access): New variable.
5452         (rocket_tune_info): Set slow_unaligned_access to true.
5453         (optimize_size_tune_info): Set slow_unaligned_access to false.
5454         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
5455         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
5456         (riscv_option_override): Set riscv_slow_unaligned_access.
5457         * doc/invoke.texi: Add -mstrict-align to RISC-V.
5459 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
5461         * config/riscv/riscv.md: Unify indentation.
5463 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5465         PR target/79038
5466         PR target/79202
5467         PR target/79203
5468         * config/rs6000/rs6000.md (u code attribute): Add FIX and
5469         UNSIGNED_FIX.
5470         (extendsi<mode>2): Add support for doing sign extension via
5471         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
5472         don't have ISA 3.0 instructions.
5473         (extendsi<mode>2 splitter): Likewise.
5474         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
5475         generate the normal insns since SImode can now go in vector
5476         registers.  Disallow the special UNSPECs needed for previous
5477         machines to hide SImode being used.  Add new insns
5478         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
5479         (fix_trunc<mode>si2_stfiwx): Likewise.
5480         (fix_trunc<mode>si2_internal): Likewise.
5481         (fixuns_trunc<mode>si2): Likewise.
5482         (fixuns_trunc<mode>si2_stfiwx): Likewise.
5483         (fctiw<u>z_<mode>_smallint): Likewise.
5484         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
5485         of floating point to 32-bit integer from doing a direct move to
5486         the GPR registers to do a store.
5487         (fctiwz_<mode>): Break long line.
5489 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
5491         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
5492         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
5493         (addr_list, addr_offset_valid_p): New.
5494         (split_address_groups): Check offset validity with above function.
5495         (gt-tree-ssa-loop-ivopts.h): Include header file.
5497 2017-05-05  Nathan Sidwell  <nathan@acm.org>
5499         * config.gcc (arm*-*-*): Add missing 'fi'.
5501 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
5503         * doc/invoke.texi (-fopt-info): Explicitly say order of options
5504         included in -fopt-info does not matter.
5505         * doc/optinfo.texi (-fopt-info): Fix description of default
5506         behavour. Explicitly say order of options included in -fopt-info
5507         does not matter.
5509 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5511         * config.gcc: Allow combinations of aprofile and rmprofile values for
5512         --with-multilib-list.
5513         * config/arm/t-multilib: New file.
5514         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
5515         variables.  Remove setting of ISA and floating-point ABI in
5516         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
5517         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
5518         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
5519         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
5520         CPU options.
5521         * config/arm/t-rmprofile: Likewise except for the matches changes.
5522         * doc/install.texi (--with-multilib-list): Document the combination of
5523         aprofile and rmprofile values and warn about pitfalls in doing that.
5525 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
5527         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
5528         (movdi_aarch64): Likewise.
5530 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
5532         PR tree-optimization/80632
5533         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
5534         field.
5535         (build_arrays): Initialize it for virtual phis.
5536         (fix_phi_nodes): Use it for virtual phis.
5538         PR tree-optimization/80558
5539         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
5540         [x, y] op z into [x op, y op z] for op & or | if conditions
5541         are met.
5543 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5544             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5546         PR target/71607
5547         * config/arm/arm.md (use_literal_pool): Remove.
5548         (64-bit immediate split): No longer takes cost into consideration
5549         if arm_disable_literal_pool is enabled.
5550         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
5551         used when arm_disable_literal_pool is enabled.
5552         (arm_max_const_double_inline_cost): Remove use of
5553         arm_disable_literal_pool.
5554         (push_minipool_fix): Add assert.
5555         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
5556         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
5557         (no_literal_pool_sf_immediate): New.
5559 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5561         PR tree-optimization/80613
5562         * tree-ssa-dce.c (propagate_necessity): Remove cases for
5563         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
5565 2017-05-05  Richard Biener  <rguenther@suse.de>
5567         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
5569 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
5571         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
5572         of this flag from insn conditions due to removal from r247495.
5574 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
5576         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
5577         New function.
5578         (arm_early_store_addr_dep_ptr): Likewise.
5579         * config/arm/aarch-common-protos.h
5580         (arm_early_load_addr_dep_ptr): Add prototype.
5581         (arm_early_store_addr_dep_ptr): Likewise.
5582         * config/arm/cortex-a53.md: Add new bypasses.
5584 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
5586         * tree.c (next_type_uid): Change type to unsigned.
5587         (type_hash_canon): Decrement back next_type_uid if
5588         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
5589         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
5590         if possible.
5592 2017-05-04  Martin Sebor  <msebor@redhat.com>
5594         * builtins.c: Fix a trivial typo in a comment.
5596         PR middle-end/79234
5597         * builtins.c (check_sizes): Adjust to handle reading past the end.
5598         Avoid printing excessive upper bound of ranges.  Use %E to print
5599         tree nodes instead of converting them to %wu.
5600         (expand_builtin_memchr): New function.
5601         (compute_dest_size): Rename...
5602         (compute_objsize): ...to this.
5603         (expand_builtin_memcpy): Adjust.
5604         (expand_builtin_mempcpy): Adjust.
5605         (expand_builtin_strcat): Adjust.
5606         (expand_builtin_strcpy): Adjust.
5607         (check_strncat_sizes): Adjust.
5608         (expand_builtin_strncat): Adjust.
5609         (expand_builtin_strncpy): Adjust and simplify.
5610         (expand_builtin_memset): Adjust.
5611         (expand_builtin_bzero): Adjust.
5612         (expand_builtin_memcmp): Adjust.
5613         (expand_builtin): Handle memcmp.
5614         (maybe_emit_chk_warning): Check strncat just once.
5616 2017-05-04  Martin Sebor  <msebor@redhat.com>
5618         PR preprocessor/79214
5619         PR middle-end/79222
5620         PR middle-end/79223
5621         * builtins.c (check_sizes): Add inlining context and issue
5622         warnings even when -Wno-system-headers is set.
5623         (check_strncat_sizes): Same.
5624         (expand_builtin_strncat): Same.
5625         (expand_builtin_memmove): New function.
5626         (expand_builtin_stpncpy): Same.
5627         (expand_builtin): Handle memmove and stpncpy.
5629 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
5631         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
5632         which is not used any more.
5634 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5636         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
5638 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5640         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
5641         (cortexa53_tunings): Likewise.
5642         (cortexa57_tunings): Likewise.
5643         (cortexa72_tunings): Likewise.
5644         (cortexa73_tunings): Likewise.
5646 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5648         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
5649         Set loop alignment to 8.
5651 2017-05-04  Martin Sebor  <msebor@redhat.com>
5653         PR translation/80280
5654         * builtins.c (expand_builtin_object_size): Add missing quoting to
5655         %D and like directives.
5656         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
5657         (hsa_type_for_tree_type): Same.
5658         (verify_function_arguments): Same.
5659         * symtab.c (symbol_table::change_decl_assembler_name): Same.
5660         * varasm.c (get_section): Same.
5661         (mark_weak): Same.
5663 2017-05-04  Martin Sebor  <msebor@redhat.com>
5665         PR translation/80280
5666         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
5668 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
5670         * config/aarch64/aarch64.c (generic_addrcost_table):
5671         Change HI/TI mode setting.
5673 2017-05-04  Martin Jambor  <mjambor@suse.cz>
5675         PR tree-optimization/80622
5676         * tree-sra.c (comes_initialized_p): New function.
5677         (build_accesses_from_assign): Only set write lazily when
5678         comes_initialized_p is false.
5679         (analyze_access_subtree): Use comes_initialized_p.
5680         (propagate_subaccesses_across_link): Assert !comes_initialized_p
5681         instead of testing for PARM_DECL.
5683 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5685         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
5686         constraint on operand 0 to allow more general addressing modes.
5687         Adjust output template.
5688         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
5689         New function.
5690         * config/aarch64/aarch64-protos.h
5691         (aarch64_address_valid_for_prefetch_p): Declare prototype.
5692         * config/aarch64/constraints.md (Dp): New address constraint.
5693         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
5694         predicate.
5696 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
5698         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
5699         update use of estimate_ipcp_clone_size_and_time.
5700         (estimate_local_effects): Update use of
5701         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
5702         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
5703         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
5704         Return nonspecialized time.
5706 2017-05-04  Richard Biener  <rguenther@suse.de>
5708         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
5709         for the last VUSE which def dominates the PHI.  Directly call
5710         maybe_skip_until.
5711         (get_continuation_for_phi_1): Remove.
5713 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
5715         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
5716         to explain the use of truncating division.  Cap the number of
5717         iterations to the maximum given by nb_iterations_upper_bound,
5718         if defined.
5720 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5722         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
5723         * configure: Regenerate.
5724         * config.in: Regenerate.
5725         * config/i386/driver-mingw32.c: new file.
5726         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
5727         * config.host: Link driver-mingw32.o on MinGW host.
5728         * doc/install.texi: Document new --enable-mingw-wildcard configure
5729         option.
5731 2017-05-04  Marek Polacek  <polacek@redhat.com>
5733         PR tree-optimization/80612
5734         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
5736 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5737             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
5739         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
5740         (movt splitter): Likewise.
5741         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
5742         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
5743         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
5744         block for Thumb-1 with MOVT.
5745         (thumb2_legitimate_address_p): Move code block ...
5746         (can_avoid_literal_pool_for_label_p): ... into this new function.
5747         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
5748         literal pool.
5749         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
5750         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
5751         "M-profile targets with the MOVT instruction".
5753 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
5755         * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
5756         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
5757         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
5759 2017-05-04  Martin Liska  <mliska@suse.cz>
5761         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
5762         variable cond_code.
5764 2017-05-04  Richard Biener  <rguenther@suse.de>
5766         * tree.c (array_at_struct_end_p): Handle arrays at struct
5767         end with flexarrays more conservatively.  Refactor and treat
5768         arrays of arrays or aggregates more strict.  Fix
5769         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
5770         * tree.c (array_at_struct_end_p): Adjust prototype.
5771         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
5772         * gimple-fold.c (get_range_strlen): Likewise.
5773         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
5775 2017-05-04  Richard Biener  <rguenther@suse.de>
5777         PR tree-optimization/31130
5778         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
5779         false.
5780         (supports_overflow_infinity): Likewise.
5781         (is_negative_overflow_infinity): Likewise.
5782         (is_positive_overflow_infinity): Likewise.
5783         (is_overflow_infinity): Likewise.
5784         (stmt_overflow_infinity): Likewise.
5785         (overflow_infinity_range_p): Likewise.
5786         (usable_range_p): Remove as always returning true.
5787         (make_overflow_infinity): Remove.
5788         (negative_overflow_infinity): Likewise.
5789         (positive_overflow_infinity): Likewise.
5790         (avoid_overflow_infinity): Likewise.
5791         (set_value_range): Adjust accordingly.
5792         (set_value_range_to_nonnegative): Likewise, remove now unused
5793         overflow_infinity arg.
5794         (vrp_operand_equal_p): Adjust.
5795         (update_value_range): Likewise.
5796         (range_int_cst_singleton_p): Likewise.
5797         (operand_less_p): Likewise.
5798         (compare_values_warnv): Likewise.
5799         (extract_range_for_var_from_comparison_expr): Likewise.
5800         (vrp_int_const_binop): Likewise.
5801         (zero_nonzero_bits_from_vr): Likewise.
5802         (extract_range_from_multiplicative_op_1): Likewise.
5803         (extract_range_from_binary_expr_1): Likewise.
5804         (extract_range_from_unary_expr): Likewise.
5805         (extract_range_from_comparison): Likewise.
5806         (extract_range_basic): Likewise.
5807         (adjust_range_with_scev): Likewise.
5808         (compare_ranges): Likewise.
5809         (compare_range_with_value): Likewise.
5810         (dump_value_range): Likewise.
5811         (test_for_singularity): Likewise, remove strict_overflow_p parameter
5812         never used.
5813         (simplify_cond_using_ranges): Adjust.
5815 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
5817         * brig-builtins.def: Added a builtin for class_f64.
5818         * builtin-types.def: Added a builtin type needed by class_f64.
5820 2017-05-03  Jason Merrill  <jason@redhat.com>
5822         * timevar.def: Add TV_CONSTEXPR.
5824 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
5826         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
5828 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5830         * ipa-prop.c (ipa_update_after_lto_read): Removed.
5831         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
5832         * ipa-cp.c (ipcp_propagate_stage): Do not call
5833         ipa_update_after_lto_read.
5834         * ipa-inline.c (ipa_inline): Likewise.
5836 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5838         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
5839         tag.  Added a default constructor and a destructor.
5840         (ipa_edge_args_sum_t): New class;
5841         (ipa_edge_args_sum): Declare.
5842         (ipa_edge_args_vector): Remove declaration.
5843         (IPA_EDGE_REF): Use ipa_edge_args_sum.
5844         (ipa_free_edge_args_substructures): Remove declaration.
5845         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
5846         (ipa_edge_args_info_available_for_edge_p): Likewise.
5847         * ipa-prop.c (ipa_edge_args_vector): Removed.
5848         (edge_removal_hook_holder): Likewise.
5849         (edge_duplication_hook_holder): Likewise.
5850         (ipa_edge_args_sum): New variable.
5851         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
5852         ipa_edge_args_vector.
5853         (ipa_free_edge_args_substructures): Likewise.
5854         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
5855         ipa_edge_args_vector.
5856         (ipa_edge_removal_hook): Turned into method
5857         ipa_edge_args_sum_t::remove.
5858         (ipa_edge_duplication_hook): Turned into method
5859         ipa_edge_args_sum_t::duplicate.
5860         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
5861         registering edge hooks.
5862         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
5863         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
5864         ipa_edge_args_sum instead of ipa_edge_args_vector.
5865         * ipa-profile.c (ipa_profile): Likewise.
5867 2017-05-03  Martin Jambor  <mjambor@suse.cz>
5869         * symbol-summary.h (function_summary): New method exists.
5870         (function_summary::symtab_removal): Deallocate through release.
5871         (call_summary): New class.
5872         (gt_ggc_mx): New overload.
5873         (gt_pch_nx): Likewise.
5874         (gt_pch_nx): Likewise.
5876 2017-05-03  Jeff Law  <law@redhat.com>
5878         PR tree-optimization/78496
5879         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
5880         from simplify_cond_using_ranges.  Split off code to walk
5881         backwards through casts into ...
5882         (simplify_cond_using_ranges_2): New function.
5883         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
5884         (execute_vrp): After identifying jump threads, call
5885         simplify_cond_using_ranges_2.
5887 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
5889         PR bootstrap/80609
5890         * ipa-inline.h (inline_summary): Add ctor.
5891         (create_ggc): Do not use ggc_cleared_alloc.
5893 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
5894             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5896         * gcc.c (handle_braces): Support escaping in switch matching
5897         text.
5898         * doc/invoke.texi (Spec Files): Document it.
5899         Remove superfluous @code markup in items.
5901 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
5903         * diagnostic-show-locus.c (struct column_range): New struct.
5904         (get_affected_columns): New function.
5905         (get_printed_columns): New function.
5906         (struct correction): New struct.
5907         (correction::ensure_capacity): New function.
5908         (correction::ensure_terminated): New function.
5909         (struct line_corrections): New struct.
5910         (line_corrections::~line_corrections): New dtor.
5911         (line_corrections::add_hint): New function.
5912         (layout::print_trailing_fixits): Reimplement in terms of the new
5913         classes.
5914         (selftest::test_overlapped_fixit_printing): New function.
5915         (selftest::diagnostic_show_locus_c_tests): Call it.
5917 2017-05-03  Nathan Sidwell  <nathan@acm.org>
5919         Canonicalize canonical type hashing
5920         * tree.h (type_hash_canon_hash): Declare.
5921         * tree.c (type_hash_list, attribute_hash_list): Move into
5922         type_hash_canon_hash.
5923         (build_type_attribute_qual_variant): Break out hash code calc into
5924         type_hash_canon_hash.
5925         (type_hash_canon_hash): New.  Generic type hash computation.
5926         (build_range_type_1, build_array_type_1, build_function_type,
5927         build_method_type_directly, build_offset_type, build_complex_type,
5928         make_vector_type): Call it.
5930 2017-05-03  Richard Biener  <rguenther@suse.de>
5932         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5933         When all DRs have unknown misaligned do not always peel
5934         when there is a store but apply the same costing model as if
5935         there were only loads.
5937 2017-05-03  Richard Biener  <rguenther@suse.de>
5939         Revert
5940         PR tree-optimization/80492
5941         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
5942         compare_base_decls returning dont-know properly.
5944 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5946         * config/arm/iterators.md (CCSI): New mode iterator.
5947         (arch): New mode attribute.
5948         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
5949         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
5950         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
5951         code iterator for success result mode.
5952         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
5953         the corresponding new insn generators.
5955 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
5957         Revert r247509
5958         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
5959         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
5961 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
5963         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
5964         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
5965         (DDR_A): Wrap DDR argument in brackets.
5966         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
5967         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
5968         (DDR_REVERSED_P): Likewise.
5970 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
5972         PR tree-optimization/79472
5973         * tree-switch-conversion.c (struct switch_conv_info): Add
5974         contiguous_range and default_case_nonstandard fields.
5975         (collect_switch_conv_info): Compute contiguous_range and
5976         default_case_nonstandard fields, don't clear final_bb if
5977         contiguous_range and only the default case doesn't have the required
5978         structure.
5979         (check_all_empty_except_final): Set default_case_nonstandard instead
5980         of failing if contiguous_range and the default case doesn't have empty
5981         block.
5982         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
5983         and only the default case doesn't have the required constants.  Skip
5984         virtual phis.
5985         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
5986         if default_case_nonstandard.
5987         (build_constructors): Build constant 1 just once.  Assert that default
5988         values aren't inserted in between cases if contiguous_range.  Skip
5989         virtual phis.
5990         (build_arrays): Skip virtual phis.
5991         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
5992         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
5993         Handle virtual phis.
5994         (gen_inbound_check): Handle default_case_nonstandard case.
5995         (process_switch): Adjust check_final_bb caller.  Call
5996         gather_default_values with the first non-default case instead of
5997         default case if default_case_nonstandard.
5999 2017-05-02  Nathan Sidwell  <nathan@acm.org>
6001         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
6002         check.  Fix formatting.
6004 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
6006         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
6007         errors when comparing specialized and unspecialized times.
6009 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
6011         * diagnostic-show-locus.c
6012         (layout::should_print_annotation_line_p): Make private.
6013         (layout::print_annotation_line): Make private.
6014         (layout::annotation_line_showed_range_p): Make private.
6015         (layout::show_ruler): Make private.
6016         (layout::print_source_line): Make private.  Pass in line and
6017         line_width, rather than calling location_get_source_line.  Drop
6018         returned value.
6019         (layout::print_leading_fixits): New method.
6020         (layout::print_any_fixits): Rename to...
6021         (layout::print_trailing_fixits): ...this, and make private.
6022         Don't print newline fixits.
6023         (diagnostic_show_locus): Move logic for printing one row into...
6024         (layout::print_line): ...this new function.  Move the
6025         location_get_source_line call and error-handling from
6026         print_source_line to here.  Call print_leading_fixits, and rename
6027         print_any_fixits to print_trailing_fixits.
6028         (selftest::test_fixit_insert_containing_newline): Update now that
6029         newlines are partially supported.
6030         (selftest::test_fixit_insert_containing_newline_2): New test.
6031         (selftest::test_fixit_replace_containing_newline): Update comments.
6032         (selftest::diagnostic_show_locus_c_tests): Call the new test.
6033         * edit-context.c (class added_line): New class.
6034         (class edited_line): Describe newline handling in comment.
6035         (edited_line::actually_edited_p): New method.
6036         (edited_line::print_content): Delete redundant decl.
6037         (edited_line::m_predecessors): New field.
6038         (edited_file::print_content): Call edited_line::print_content.
6039         (edited_file::print_diff): Update to support newlines.
6040         (edited_file::print_diff_hunk): Likewise.
6041         (edited_file::print_run_of_changed_lines): New function.
6042         (edited_file::print_diff_line): Convert to...
6043         (print_diff_line): ...this.
6044         (edited_file::get_effective_line_count): New function.
6045         (edited_line::edited_line): Initialize new field m_predecessors.
6046         (edited_line::~edited_line): Clean up m_predecessors.
6047         (edited_line::apply_fixit): Handle newlines.
6048         (edited_line::get_effective_line_count): New function.
6049         (edited_line::print_content): New function.
6050         (edited_line::print_diff_lines): New function.
6051         (selftest::test_applying_fixits_insert_containing_newline): New
6052         test.
6053         (selftest::test_applying_fixits_replace_containing_newline): New
6054         test.
6055         (selftest::insert_line): New function.
6056         (selftest::test_applying_fixits_multiple_lines): Add example of
6057         inserting a line.
6058         (selftest::edit_context_c_tests): Call the new tests.
6060 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6062         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
6063         parameter cand.  Update dump information.
6064         (get_computation_cost): Update uses.
6066 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6068         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
6069         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
6070         (get_computation_at, rewrite_use_address): Update use of
6071         get_computation_aff.
6073 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6075         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
6076         (get_computation): Delete.
6077         (get_computation_cost): Implement like get_computation_cost_at.
6078         Use get_computation_at.
6079         (get_computation_cost_at): Delete.
6080         (rewrite_use_nonlinear_expr): Use get_computation_at.
6081         (rewrite_use_compare, remove_unused_ivs): Ditto.
6083 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6085         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
6087 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6089         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
6090         (ivopts_global_cost_for_size): Rename parameter and update uses.
6091         (iv_ca_recount_cost): Update uses.
6092         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
6093         candidates seperately in n_invs and n_cands.
6094         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
6096 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6098         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
6099         (find_inv_vars_cb): New.
6100         (find_depends): Renamed to ...
6101         (find_inv_vars): ... this.
6102         (add_candidate_1, force_var_cost): Call find_inv_vars.
6103         (split_address_cost, determine_group_iv_cost_cond): Ditto.
6105 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6107         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
6108         inv_vars.  Add inv_exprs.
6109         (struct iv_cand): Rename depends_on to inv_vars.
6110         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
6111         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
6112         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
6113         (dump_cand): Dump inv_vars.
6114         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
6115         (record_invariant, find_depends, add_candidate_1): Ditto.
6116         (set_group_iv_cost, force_var_cost): Ditto.
6117         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
6118         (get_computation_cost_at, get_computation_cost): Ditto.
6119         (determine_group_iv_cost_generic): Ditto.
6120         (determine_group_iv_cost_address): Ditto.
6121         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
6122         (determine_group_iv_costs): Ditto.
6123         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
6124         (iv_ca_set_remove_invariants): Renamed to ...
6125         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
6126         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
6127         (iv_ca_set_add_invariants):  Renamed to ...
6128         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
6129         (iv_ca_set_cp): Use iv_ca_set_add_invs.
6130         (iv_ca_has_deps): Support inv_vars and inv_exprs.
6131         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
6132         (create_new_ivs): Remove useless dump.
6134 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6136         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
6137         iv_cand code.
6138         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
6139         (iv_ca_set_no_cp, create_new_iv): Ditto.
6141 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
6143         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
6145 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
6147         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
6148         function tree_check2.
6150 2017-05-02  Martin Liska  <mliska@suse.cz>
6152         * doc/gcov.texi: Add missing preposition.
6153         * gcov.c (function_info::function_info): Properly fill up
6154         all member variables.
6156 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
6158         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
6160 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
6162         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
6164 2017-05-02  Martin Liska  <mliska@suse.cz>
6166         PR lto/77954.
6167         * lto-streamer-in.c (lto_read_tree_1): Remove
6168         LTO_STREAMER_DEBUG.
6169         * lto-streamer.c (struct tree_hash_entry): Likewise.
6170         (struct tree_entry_hasher): Likewise.
6171         (tree_entry_hasher::hash): Likewise.
6172         (tree_entry_hasher::equal): Likewise.
6173         (lto_streamer_init): Likewise.
6174         (lto_orig_address_map): Likewise.
6175         (lto_orig_address_get): Likewise.
6176         (lto_orig_address_remove): Likewise.
6177         * lto-streamer.h: Likewise.
6178         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
6179         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
6181 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
6183         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
6184         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
6185         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
6186         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
6187         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
6188         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
6189         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
6190         (mm_maskz_sub_ss): New intrinsics.
6191         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6192         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
6193         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
6194         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
6195         (__builtin_ia32_subss_mask_round): New builtins.
6196         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
6197         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
6198         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
6199         Renamed to ...
6200         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
6201         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
6202         Changed to ...
6203         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
6204         ... this.
6206 2017-05-02  Martin Jambor  <mjambor@suse.cz>
6208         PR tree-optimization/78687
6209         * tree-sra.c (access): New field parent.
6210         (process_subtree_disqualification): New function.
6211         (disqualify_candidate): Call it.
6212         (build_accesses_from_assign): Reset write flag if creating an
6213         assighnment link.
6214         (build_access_subtree): Fill in parent field and also prpagate
6215         down grp_write flag.
6216         (create_artificial_child_access): New parameter set_grp_write, set
6217         grp_write to its value.
6218         (propagate_subaccesses_across_link): Also propagate grp_write flag
6219         values.
6220         (propagate_all_subaccesses): Push the closest parent back to work
6221         queue if add_access_to_work_queue returned true.
6223 2017-05-02  Richard Biener  <rguenther@suse.de>
6225         * common.opt (fstrict-overflow): Alias negative to fwrapv.
6226         * doc/invoke.texi (fstrict-overflow): Remove all traces of
6227         -fstrict-overflow documentation.
6228         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
6229         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
6230         flag_strict_overflow.
6231         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
6232         * lto-opts.c (lto_write_options): Do not stream it.
6233         * lto-wrapper.c (merge_and_complain): Do not handle it.
6234         * opts.c (default_options_table): Do not set -fstrict-overflow.
6235         (finish_options): Likewise do not clear it when sanitizing.
6236         * simplify-rtx.c (simplify_const_relational_operation): Do not
6237         test flag_strict_overflow.
6239 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
6241         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
6242         using enabled attribute.
6243         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
6244         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
6245         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
6246         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
6247         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
6248         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
6249         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
6250         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
6251         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
6252         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
6254 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
6256         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
6258 2017-05-02  Richard Biener  <rguenther@suse.de>
6260         PR tree-optimization/80591
6261         Revert
6262         2017-04-10  Richard Biener  <rguenther@suse.de>
6264         * tree-ssa-structalias.c (find_func_aliases): Properly handle
6265         asm inputs.
6267 2017-05-02  Richard Biener  <rguenther@suse.de>
6269         PR tree-optimization/80549
6270         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
6271         (cleanup_tree_cfg_noloop): Create forwarders to known loop
6272         headers if they do not have a preheader.
6274 2017-05-02  Martin Liska  <mliska@suse.cz>
6276         PR other/80589
6277         * common.opt: Fix typo.
6278         * doc/invoke.texi: Likewise.
6280 2017-05-01  Jan Beulich  <jbeulich@suse.com>
6282         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
6283         swapping, add (x,x,m,x,n) alternative.
6285 2017-05-01  Nathan Sidwell  <nathan@acm.org>
6287         * calls.c (combine_pending_stack_adjustment_and_call): Remove
6288         unnecessary unadjusted_alignment check.
6290 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
6292         PR c++/80038
6293         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
6294         operations here.
6295         * gimplify.c (gimplify_cilk_detach): New function.
6296         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
6297         * tree-core.h: Document EXPR_CILK_SPAWN.
6298         * tree.h (EXPR_CILK_SPAWN): Define.
6300 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
6302         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
6303         to use new fixit_hint representation, using the "replace" logic.
6304         (get_line_span_for_fixit_hint): Likewise.
6305         (layout::print_any_fixits): Likewise.
6306         (selftest::test_one_liner_many_fixits): Rename to...
6307         (selftest::test_one_liner_many_fixits_1): ...this, and update
6308         comment and expected output to reflect that the multiple fix-it
6309         hints are now consolidated into one insertion.
6310         (selftest::test_one_liner_many_fixits_2): New test.
6311         (selftest::test_diagnostic_show_locus_one_liner): Update for
6312         above.
6313         (selftest::test_fixit_consolidation): Update for fix-it API
6314         change.
6315         * diagnostic.c (print_parseable_fixits): Likewise.
6316         * edit-context.c (edited_line::m_line_events): Convert from
6317         auto_vec <line_event *> to auto_vec <line_event>.
6318         (class line_event): Convert from abstract base class to a concrete
6319         class, taking over the role of replace_event.
6320         (class insert_event): Delete.
6321         (class replace_event): Rename to class line_event.  Convert to
6322         half-open range.
6323         (edit_context::add_fixits): Reimplement.
6324         (edit_context::apply_insert): Delete.
6325         (edit_context::apply_replace): Rename to...
6326         (edit_context::apply_fixit): ...this.  Convert to half-open range.
6327         (edited_file::apply_insert): Delete.
6328         (edited_file::apply_replace): Rename to...
6329         (edited_file::apply_fixit): ...this.
6330         (edited_line::~edited_line): Drop deletion of events.
6331         (edited_line::apply_insert): Delete.
6332         (edited_line::apply_replace): Rename to...
6333         (edited_line::apply_fixit): ...this.  Convert to half-open range.
6334         Update for change to type of m_line_events.
6335         * edit-context.h (edit_context::apply_insert): Delete.
6336         (edit_context::apply_replace): Rename to...
6337         (edit_context::apply_fixit): ...this.
6339 2017-05-01  Martin Sebor  <msebor@redhat.com>
6341         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
6342         known.
6344 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
6346         PR target/68491
6347         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
6348         __get_cpuid_max returns 0.
6349         (__get_cpuid_count): Ditto.
6351 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6353         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
6354         replacement expression is another instance of one of its arguments.
6356 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
6358         PR target/79430
6359         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
6360         check for stack push/pop autoinc.
6361         * config/i386/i386.c (ix86_agi_dependent): Return false
6362         if the only reason why modified_in_p returned true is that
6363         addr is SP based and set_insn is a push or pop.
6365 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
6367         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
6368         overflow check.
6370 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
6372         PR ipa/79224
6373         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
6374         (account_size_time): Use two predicates - exec_pred and
6375         nonconst_pred_ptr.
6376         (evaluate_conditions_for_known_args): Compute both clause and
6377         nonspec_clause.
6378         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
6379         (inline_summary_t::duplicate): Update.
6380         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
6381         separately.
6382         (compute_inline_parameters): Likewise.
6383         (estimate_edge_size_and_time): Update caluclation of time.
6384         (estimate_node_size_and_time): Compute both time and nonspecialized
6385         time.
6386         (estimate_ipcp_clone_size_and_time): Update.
6387         (inline_merge_summary): Update.
6388         (do_estimate_edge_time): Update.
6389         (do_estimate_edge_size): Update.
6390         (do_estimate_edge_hints): Update.
6391         (inline_read_section, inline_write_summary): Stream both new predicates.
6392         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
6393         as argument.
6394         (compute_inlined_call_time): Cleanup.
6395         (big_speedup_p): Update.
6396         (edge_badness): Update.
6397         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
6398         (size_time_entry): Replace predicate by exec_predicate and
6399         nonconst_predicate.
6400         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
6401         (estimate_edge_time): Return also nonspec_time.
6402         (reset_edge_growth_cache): Update.
6404 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
6406         PR rtl-optimization/80491
6407         * ifcvt.c (noce_process_if_block): When looking for x setter
6408         with missing else_bb, don't check only the insn right before
6409         cond_earliest, but look for the last insn that x is modified in
6410         within the same bb.
6412         PR rtl-optimization/80491
6413         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
6415 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
6417         PR tree-optimization/80487
6418         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
6420 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6422         PR tree-optimization/79697
6423         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
6424         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
6425         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
6426         BUILT_IN_STRNDUP.
6427         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
6428         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
6430 2017-04-28  Martin Sebor  <msebor@redhat.com>
6432         PR tree-optimization/80523
6433         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
6434         (init_target_to_host_charmap, target_to_host, target_strtol10): New
6435         functions.
6436         (maybe_warn, format_directive, parse_directive): Use new functions.
6437         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
6439 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
6441         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
6443 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6445         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
6446         target_header_dir): Set correctly.
6447         * configure: Regenerated.
6448         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
6449         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
6450         instead of SYSTEM_HEADER_DIR.
6452 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
6454         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
6455         (estimate_local_effects): Likewise.
6456         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
6457         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
6458         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
6459         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
6460         do_estimate_edge_time, estimate_edge_time): Likewise.
6461         * ipa-inline-analysis.c (estimate_node_size_and_time,
6462         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
6463         (estimate_time_after_inlining): Remove.
6465 2017-04-28  Martin Liska  <mliska@suse.cz>
6467         * doc/gcov.texi: Enhance documentation of gcov.
6469 2017-04-28  Martin Liska  <mliska@suse.cz>
6471         * doc/gcov.texi: Sort options in alphabetic order.
6472         * doc/gcov-dump.texi: Likewise.
6473         * doc/gcov-tool.texi: Likewise.
6474         * gcov.c (print_usage): Likewise.
6475         * gcov-dump.c (print_usage): Likewise.
6476         * gcov-tool.c (print_merge_usage_message): Likewise.
6477         (print_rewrite_usage_message): Likewise.
6478         (print_overlap_usage_message): Likewise.
6480 2017-04-28  Martin Liska  <mliska@suse.cz>
6482         PR gcov-profile/53915
6483         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
6485 2017-04-28  Martin Liska  <mliska@suse.cz>
6487         PR gcov-profile/79891
6488         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
6489         is marked by compiler as living on a line.
6490         (get_cycles_count): Remove usage of the union.
6491         (output_intermediate_file): Likewise.
6492         (find_source): Fix GNU coding style.
6493         (accumulate_line_counts): Remove old non-all block mode.
6494         (output_lines): Remove usage of the union.
6495         * profile.c (output_location): Include all BBs, even if
6496         belonging to a same line (and file) as a previous BB.
6498 2017-04-28  Martin Liska  <mliska@suse.cz>
6500         * gcov.c (process_args): Handle new argument 'w'.
6501         (read_graph_file): Assign ID to BBs.
6502         (output_branch_count): Display BB # if verbose flag is set.
6503         (output_lines): Likewise for arcs.
6504         (print_usage): Add '--verbose' option help.
6505         * doc/gcov.texi: Document --verbose (-w) option.
6507 2017-04-28  Martin Liska  <mliska@suse.cz>
6509         * gcov.c (struct block_location_info): New struct.
6510         (process_file): Fill up the new structure.
6511         (read_graph_file): Replace usage of encoding by the newly added
6512         struct.
6513         (add_line_counts): Likewise.
6514         (accumulate_line_counts): Remove usage of the union.
6515         (function_info::function_info): New function.
6516         (function_info::~function_info): Likewise.
6517         (process_file): Call delete instead of release_function.
6518         (release_function): Release the function.
6519         (release_structures): Call delete instead of release_function.
6520         (solve_flow_graph): Replace usage of num_blocks.
6521         (find_exception_blocks): Likewise.
6522         (output_lines): Fix GNU coding style.
6524 2017-04-28  Martin Liska  <mliska@suse.cz>
6526         PR driver/56469
6527         * coverage.c (coverage_remove_note_file): New function.
6528         * coverage.h: Declare the function.
6529         * toplev.c (finalize): Clean if an error has been seen.
6531 2017-04-28  Martin Liska  <mliska@suse.cz>
6533         PR gcov-profile/80031
6534         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
6535         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
6536         * gcov.c (read_graph_file): Read just number of blocks.
6537         * profile.c (branch_prob): Do not stream 0 flags per a basic
6538         block.
6540 2017-04-28  Martin Liska  <mliska@suse.cz>
6542         * gcov-dump.c (tag_*): Add new argument to declarations.
6543         (dump_gcov_file): Likewise.
6544         (tag_blocks): Add and use new argument depth.
6545         (tag_arcs): Likewise.
6546         (tag_lines): Likewise.
6547         (tag_counters): Likewise.
6548         (tag_summary): Likewise.
6549         (dump_working_sets): Use depth to do a proper indentation.
6551 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
6553         PR bootstrap/80531
6554         * cgraph.h (symtab_node::debug_symtab): No longer inline.
6555         * symtab.c (symtab_node::debug_symtab): Move definition here.
6557 2017-04-28  Richard Biener  <rguenther@suse.de>
6559         * lto-streamer.h (LTO_major_version): Bump to 7.
6561 2017-04-28  Richard Biener  <rguenther@suse.de>
6563         * tree-vrp.c (assert_info): New struct.
6564         (add_assert_info): New helper.
6565         (register_edge_assert_for_2): Refactor to add asserts to a vector
6566         of assert_info.
6567         (register_edge_assert_for_1): Likewise.
6568         (register_edge_assert_for): Likewise.
6569         (finish_register_edge_assert_for): New helper actually registering
6570         asserts where live on edge.
6571         (find_conditional_asserts): Adjust.
6572         (find_switch_asserts): Likewise.
6573         (evrp_dom_walker::try_find_new_range): Generalize.
6574         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
6576 2017-04-27  Marek Polacek  <polacek@redhat.com>
6578         PR sanitizer/80349
6579         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
6580         arg10 and arg11 to itype.
6582 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
6584         * doc/extend.texi (Object Size Checking): Improve grammar.
6586 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
6588         PR target/80530
6589         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
6590         that the logic for permitting reciprocal estimates matches that
6591         in use_rsqrt_p.
6593 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6595         PR c++/80534
6596         * tree.c (type_cache_hasher::equal): Only compare
6597         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
6598         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
6599         non-aggregate element types.
6600         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
6601         about the flag on ARRAY_TYPEs in the comment, formatting fix.
6603 2017-04-27  Richard Biener  <rguenther@suse.de>
6605         PR middle-end/80533
6606         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
6607         stripping ARRAY_REFs from MEM_EXPR make sure we're not
6608         keeping a reference to a trailing array.
6610 2017-04-27  Richard Biener  <rguenther@suse.de>
6612         PR middle-end/80539
6613         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
6614         being in loop-closed SSA form conservatively.
6615         (chrec_fold_multiply_poly_poly): Likewise.
6617 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
6619         PR middle-end/79665
6620         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
6621         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
6623 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6625         PR target/77728
6626         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
6627         (aarch64_function_arg_alignment): Return unsigned int again, but still
6628         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
6629         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
6630         Don't emit -Wpsabi note.
6631         (aarch64_function_arg_boundary): Likewise.
6632         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
6633         caller.
6635 2017-04-26  Nathan Sidwell  <nathan@acm.org>
6637         * tree.h (crc32_unsigned_n): Declare.
6638         (crc32_unsigned, crc32_unsigned): Make inline.
6639         * tree.c (crc32_unsigned_bits): Replace with ...
6640         (crc32_unsigned_n): ... this.
6641         (crc32_unsigned, crc32_byte): Remove.
6642         (crc32_string): Remove unnecessary braces.
6644 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
6646         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
6647         * ipa-inline-analysis.c (MAX_TIME): Remove.
6648         (account_size_time): Use sreal for time.
6649         (dump_inline_summary): Update.
6650         (estimate_function_body_sizes): Update.
6651         (estimate_edge_size_and_time): Update.
6652         (estimate_calls_size_and_time): Update.
6653         (estimate_node_size_and_time): Update.
6654         (inline_merge_summary): Update.
6655         (inline_update_overall_summary): Update.
6656         (estimate_time_after_inlining): Update.
6657         (inline_read_section): Update.
6658         (inline_write_summary): Update.
6659         * ipa-inline.c (compute_uninlined_call_time): Update.
6660         (compute_inlined_call_time): Update.
6661         (recursive_inlining): Update.
6662         (inline_small_functions): Update.
6663         (dump_overall_stats): Update.
6664         * ipa-inline.h: Include sreal.h.
6665         (size_time_entry): Turn time to sreal.
6666         (inline_summary): Turn self_time nad time to sreal.
6668 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
6670         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
6671         data-streamer.h
6672         (sreal::stream_out, sreal::stream_in): New.
6673         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
6675 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
6677         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
6678         environment.
6680 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
6682         PR target/70799
6683         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6684         Handle ASHIFTRT.
6685         (dimode_scalar_chain::compute_convert_gain): Ditto.
6686         (dimode_scalar_chain::make_vector_copies): Ditto.
6687         (dimode_scalar_chain::convert_reg): Ditto.
6688         (dimode_scalar_chain::convert_insn): Ditto.
6689         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
6690         (VI248_AVX512BW_1): New mode iterator.
6691         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
6692         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
6693         mode iterator.
6695 2017-04-25  Martin Sebor  <msebor@redhat.com>
6697         PR tree-optimization/80497
6698         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
6699         constants are representable in HOST_WIDE_INT.
6700         (parse_directive): Ditto.
6702 2017-04-25  Martin Sebor  <msebor@redhat.com>
6704         PR bootstrap/80486
6705         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
6706         (new_zero_array): Adjust signature.
6707         (dom_info::dom_init): Used unsigned rather that size_t.
6708         (dom_info::dom_info): Same.
6710 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6711             Jakub Jelinek  <jakub@redhat.com>
6713         PR target/77728
6714         * config/arm/arm.c: Include gimple.h.
6715         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
6716         returns negative, increment ncrn only if it returned positive.
6717         (arm_needs_doubleword_align): Return int instead of bool,
6718         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
6719         members, but if there is any such non-FIELD_DECL
6720         > PARM_BOUNDARY aligned decl, return -1 instead of false.
6721         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
6722         returns negative, increment nregs only if it returned positive.
6723         (arm_setup_incoming_varargs): Likewise.
6724         (arm_function_arg_boundary): Emit -Wpsabi note if
6725         arm_needs_doubleword_align returns negative, return
6726         DOUBLEWORD_ALIGNMENT only if it returned positive.
6728 2017-04-25  Marek Polacek  <polacek@redhat.com>
6730         PR sanitizer/80349
6731         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
6732         first argument to type.
6734 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
6736         PR target/80482
6737         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
6738         type checks to test for compatibility instead of equality.
6740 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6741             Jakub Jelinek  <jakub@redhat.com>
6743         PR target/77728
6744         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
6745         type.
6746         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
6747         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
6748         the alignment computation, but return their maximum in warn_alignment.
6749         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
6750         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
6751         is smaller.
6752         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
6753         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
6754         caller.
6756 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6758         * config/arc/simdext.md (dmpyh): Fix typo.
6760 2017-04-25  Richard Biener  <rguenther@suse.de>
6762         PR tree-optimization/80492
6763         * alias.c (compare_base_decls): Handle registers with asm
6764         specification conservatively.
6765         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
6766         compare_base_decls returning dont-know properly.
6768 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6770         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
6771         (legitimate_offset_address_p): New function.
6772         (arc_legitimate_address_p): Use above function.
6774 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6776         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
6778 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6780         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
6781         ACCH registers whenever they are available.
6783 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6785         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
6786         double regs fix when not used.
6788 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6790         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
6791         core registers.
6792         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
6793         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
6795 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6797         * config/arc/arc.c (arc_output_addsi): Check for h-register class
6798         when emitting short ADD instructions.
6800 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
6802         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
6803         constraint.
6804         (cmpsi_cc_c_insn): Likewise.
6805         (cbranchsi4_scratch): Compute proper instruction length using
6806         compact_hreg_operand.
6807         * config/arc/predicates.md (compact_hreg_operand): New predicate.
6809 2017-04-25  Richard Biener  <rguenther@suse.de>
6811         PR middle-end/80509
6812         * passes.c (pass_manager::pass_manager): Initialize
6813         m_name_to_pass_map.
6815 2017-04-25  Richard Biener  <rguenther@suse.de>
6817         PR tree-optimization/79201
6818         * tree-ssa-sink.c (statement_sink_location): Handle calls.
6820 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6822         PR target/80464
6823         * config/s390/vector.md: Split MEM->GPR vector moves for
6824         non-s_operand addresses.
6826 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6828         PR target/79895
6829         * config/s390/predicates.md (reload_const_wide_int_operand): New
6830         predicate.
6831         * config/s390/s390.md ("movti"): Remove d/P alternative.
6832         ("movti_bigconst"): New pattern definition.
6834 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6836         PR target/80080
6837         * s390-protos.h (s390_expand_cs_hqi): Removed.
6838         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
6839         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
6840         modes as well as CCZ1mode and CCZmode.
6841         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
6842         signature of s390_emit_compare_and_swap.
6843         (s390_expand_cs_hqi): Likewise, make static.
6844         (s390_expand_cs_tdsi): Generate an explicit compare before trying
6845         compare-and-swap, in some cases.
6846         (s390_expand_cs): Wrapper function.
6847         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
6848         atomic_exchange.
6849         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
6850         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
6851         patterns for small and large integers.  Forbid symref memory operands.
6852         Move expander to s390.c.  Require cc register.
6853         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
6854         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
6855         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
6856         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
6857         symref memory operands.  Remove CC mode and call s390_match_ccmode
6858         instead.
6859         ("atomic_exchange<mode>"): Allow and implement all integer modes.
6861 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6863         * config/s390/s390.md (define_peephole2): New peephole to help
6864         combining the load-and-test pattern with volatile memory.
6866 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6868         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
6869         with CCZmode for TARGET_Z196.
6871 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
6873         PR rtl-optimization/80501
6874         * combine.c (make_compound_operation_int): Set subreg_code to SET
6875         even for AND with mask of the sign bit of mode.
6877         PR rtl-optimization/80500
6878         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
6879         sum's initial value.
6881 2017-04-25  Julian Brown  <julian@codesourcery.com>
6882             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6884         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
6886 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
6888         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
6890 2017-04-25  Julian Brown  <julian@codesourcery.com>
6891             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6893         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
6894         (thunderx2t99_sha): New Reservation.
6896 2017-04-25  Julian Brown  <julian@codesourcery.com>
6897             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
6899         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
6900         type for 1-element load.
6902 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
6904         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
6906 2017-04-24  Martin Jambor  <mjambor@suse.cz>
6908         PR tree-optimization/80293
6909         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
6910         char arrays not totally scalarizable if it is false.
6911         (analyze_all_variable_accesses): Pass correct value in the new
6912         parameter.  Add a statistics counter.
6914 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
6916         PR middle-end/79931
6917         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
6919 2017-04-24  Richard Biener  <rguenther@suse.de>
6921         PR tree-optimization/80494
6922         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
6923         out for complex types.
6925 2017-04-24  Richard Biener  <rguenther@suse.de>
6927         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
6928         * tree-ssa-sccvn.c (print_scc): Print SCC size.
6929         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
6930         (DFS): Adjust and never fail.
6931         (sccvn_dom_walker::fail): Remove.
6932         (sccvn_dom_walker::before_dom_children): Adjust.
6933         (run_scc_vn): Likewise and never fail.
6934         * tree-ssa-pre.c (pass_pre::execute): Adjust.
6935         (pass_fre::execute): Likewise.
6937 2017-04-24  Richard Biener  <rguenther@suse.de>
6939         PR tree-optimization/79725
6940         * tree-ssa-sink.c (statement_sink_location): Return whether
6941         failure reason was zero uses.  Move that check later.
6942         (sink_code_in_bb): Deal with zero uses by removing the stmt
6943         if possible.
6945 2017-04-24  Richard Biener  <rguenther@suse.de>
6947         PR c++/2972
6948         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
6949         pointer-based references.
6951 2017-04-24  Richard Biener  <rguenther@suse.de>
6953         PR bootstrap/79814
6954         * pass_manager.h (pass_manager::operator new): Remove.
6955         (pass_manager::operator delete): Likewise.
6956         * passes.c (pass_manager::operator new): Remove.
6957         (pass_manager::operator delete): Likewise.
6958         (pass_manager::pass_manager): Zero individual pass members.
6960 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
6962         PR target/70799
6963         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
6964         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
6965         Check "XEXP (src, 1)" operand here.
6966         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
6967         Check "XEXP (src, 1)" operand here.
6968         (dimode_scalar_chain::make_vector_copies): Detect count register
6969         of a shift instruction.  Zero extend count register from QImode
6970         to DImode to satisfy vector shift pattern count operand predicate.
6971         Substitute vector shift count operand with a DImode copy.
6972         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
6973         vector register.
6975 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
6977         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
6978         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
6979         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
6980         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
6981         (UNSPEC_NOREX_MEM): Remove definition.
6983 2017-04-21  Richard Biener  <rguenther@suse.de>
6985         PR tree-optimization/79547
6986         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6987         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
6988         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
6989         without any constraints.
6991 2017-04-21  Richard Biener  <rguenther@suse.de>
6993         PR tree-optimization/78847
6994         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
6996 2017-04-21  Richard Biener  <rguenther@suse.de>
6998         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
6999         (build_distinct_type_copy): Likewise.
7000         (build_variant_type_copy): Likewise.
7001         * tree.c (build_qualified_type): Pass down mem-stat info.
7002         (build_distinct_type_copy): Likewise.
7003         (build_variant_type_copy): Likewise.
7005 2017-04-21  Richard Biener  <rguenther@suse.de>
7007         PR tree-optimization/80237
7008         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
7009         defaulted to NULL.
7010         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
7011         for a simplified result.
7013 2016-04-21  Richard Biener  <rguenther@suse.de>
7015         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
7016         sth as strict as a simple_iv but a chrec without symbols and an
7017         operand defined in the loop we are peeling (and not some subloop).
7018         (propagate_constants_for_unrolling): Propagate all constants.
7020 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
7022         PR target/79804
7023         * config/i386/i386.c (print_reg): Remove assert for disalowed
7024         regno values, call output_operand_lossage instead.
7026 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
7028         PR target/78090
7029         * config/i386/constraints.md (Yc): New register constraint.
7030         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
7031         Use Yc constraint for alternative 2 of operand 0.  Remove
7032         preferred_for_speed attribute.
7034 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7036         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
7037         lastprivate clauses in SIMT case.
7039 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
7041         * doc/invoke.texi (-Wextra-semi): Document new warning option.
7043 2017-04-20  Richard Biener  <rguenther@suse.de>
7045         PR tree-optimization/57796
7046         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
7047         as N scalar stores.
7048         (vect_model_load_cost): Cost gathers as N scalar loads.
7050 2017-04-20  Richard Biener  <rguenther@suse.de>
7052         * ggc-page.c (ggc_allocated_p): Rename to ...
7053         (safe_lookup_page_table_entry): ... this and return the lookup
7054         result.
7055         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
7057 2017-04-20  Richard Biener  <rguenther@suse.de>
7059         PR tree-optimization/80453
7060         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
7061         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
7062         from the conditions.
7063         (vn_phi_eq): Pass them down.
7064         (vn_phi_lookup): Record them.
7065         (vn_phi_insert): Likewise.
7067 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
7069         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
7070         uninitialized variable warning to avoid buffer overrun.
7072 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7074         PR other/71250
7075         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
7076         is suppressed for '{ 0 }' in C.
7078 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
7080         * BASE-VER: Set to 8.0.0.
7082 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7084         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
7085         priority .init_array and .fini_array section with SECTION_NOTYPE
7086         flag.
7088 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
7090         PR middle-end/80423
7091         * tree.h (build_array_type): Add typeless_storage default argument.
7092         * tree.c (type_cache_hasher::equal): Also compare
7093         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
7094         (build_array_type): Add typeless_storage argument, set
7095         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
7096         recursive call.
7097         (build_nonshared_array_type): Adjust build_array_type_1 caller.
7098         (build_array_type): Likewise.  Add typeless_storage argument.
7100 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7101             Jakub Jelinek  <jakub@redhat.com>
7103         PR tree-optimization/80426
7104         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
7105         operation on symbolic operands, also compute the overflow for the
7106         invariant part when the operation degenerates into a negation.
7108 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
7110         PR debug/80461
7111         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
7112         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
7114         PR debug/80436
7115         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
7117 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
7119         PR target/80462
7120         * config/avr/avr.c (tree.h): Include it.
7121         (cgraph.h): Include it.
7122         (avr_encode_section_info): Don't warn for uninitialized progmem
7123         variable if it's just an alias.
7125 2017-04-19  Richard Biener  <rguenther@suse.de>
7127         PR ipa/65972
7128         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
7129         when needed by AutoPGO.
7131 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
7133         PR lto/50345
7134         * doc/lto.texi: Remove an extra 'that'.
7136 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
7138         PR rtl-optimization/80429
7139         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
7140         are only used in debug insns.
7142 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7143             Vladimir Makarov  <vmakarov@redhat.com>
7145         * config/sparc/predicates.md (input_operand): Add comment.  Return
7146         true for any memory operand when LRA is in progress.
7147         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
7149 2017-04-18  Jeff Law  <law@redhat.com>
7151         PR target/74563
7152         * mips.md ({return,simple_return}_internal): Do not overwrite
7153         operands[0].
7155 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
7157         PR tree-optimization/80443
7158         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
7159         instead of adding 1, subtract -1 and similarly instead of subtracting
7160         1 add -1.
7162 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
7164         PR rtl-optimization/80357
7165         * haifa-sched.c (tmp_bitmap): New variable.
7166         (model_recompute): Handle duplicate use records.
7167         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
7168         (free_global_sched_pressure_data): Free it.
7170 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7172         Revert:
7173         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7174         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
7175         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
7176         instead of SYSTEM_HEADER_DIR.
7178 2017-04-18  Jeff Law  <law@redhat.com>
7180         PR middle-end/80422
7181         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
7182         predecessors after walking up the insn chain.
7184 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
7186         PR debug/80263
7187         * dwarf2out.c (modified_type_die): Try harder not to emit internal
7188         sizetype type into debug info.
7190 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7192         PR target/80099
7193         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
7194         unneeded test for TARGET_UPPER_REGS_SF.
7195         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
7197 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
7199         PR sanitizer/80444
7200         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
7201         instead of gsi_after_labels.
7203 2017-04-18  Jeff Law  <law@redhat.com>
7205         * regcprop.c (maybe_mode_change): Avoid creating copies of the
7206         stack pointer.
7208         Revert:
7209         2017-04-13  Jeff Law  <law@redhat.com>
7210         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
7211         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
7213 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
7215         PR target/79453
7216         * config/avr/avr.c (intl.h): Include it.
7217         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
7219 2017-04-18  Martin Liska  <mliska@suse.cz>
7221         PR gcov-profile/78783
7222         * gcov-tool.c (gcov_output_files): Validate that destination
7223         file is either removed by the tool or by a user.
7225 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
7226             Guy Benyei  <guybe@mellanox.com>
7228         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
7229         block, and do not negate it, the stored id is already negative.
7231 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
7233         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
7235 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7237         PR target/80098
7238         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
7239         masks of options that should be turned off if the VSX vector
7240         options are turned off.
7241         (OTHER_P8_VECTOR_MASKS): Likewise.
7242         (OTHER_VSX_VECTOR_MASKS): Likewise.
7243         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
7244         rs6000_disable_incompatible_switches to validate no type switches
7245         like -mvsx.
7246         (rs6000_incompatible_switch): New function to disallow turning on
7247         other vector options if -mno-vsx, -mno-power8-vector, or
7248         -mno-power9-vector are specified.
7250 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7252         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
7254 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7256         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
7257         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
7258         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
7259         (ARG_POINTER_CFA_OFFSET): Likewise.
7261 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
7263         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
7264         conditions to take advantage of various optimizations.
7266 2017-04-13  Jeff Law  <law@redhat.com>
7268         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
7269         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
7270         (zero_extendsidi2_dext): Likewise.
7272 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7274         PR sanitizer/80403
7275         * fold-const.c (fold_ternary_loc): Revert
7276         use op0 instead of fold_convert_loc (loc, type, arg0) part of
7277         2017-04-12 change.
7279 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
7281         PR rtl-optimization/80343
7282         * lra-remat.c (update_scratch_ops): Assign original hard reg to
7283         new scratch pseudo.
7285 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
7287         PR sanitizer/80414
7288         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
7289         to ubsan_encode_value.
7291 2017-04-13  Jeff Law  <law@redhat.com>
7293         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
7294         appearing in DEBUG_INSNs.
7296 2017-04-13  Martin Liska  <mliska@suse.cz>
7298         PR gcov-profile/80413
7299         * gcov-io.c (gcov_write_string): Copy to buffer just when
7300         allocated size is greater than zero.
7302 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7304         PR debug/80321
7305         * dwarf2out.c (decls_for_scope): Ignore declarations of
7306         current_function_decl in BLOCK_NONLOCALIZED_VARS.
7308 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
7310         PR lto/69953
7311         * ipa-visibility.c (non_local_p): Fix typos.
7312         (localize_node): When localizing symbol in same comdat group,
7313         dissolve the group only when we know external symbols are going
7314         to be privatized.
7315         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
7317 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7319         PR tree-optimization/79390
7320         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
7321         order does not result in usable sequence, retry with reversed operand
7322         order.
7324         PR sanitizer/80403
7325         PR sanitizer/80404
7326         PR sanitizer/80405
7327         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
7328         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
7329         op0 instead of fold_convert_loc (loc, type, arg0).
7331 2017-04-12  Jeff Law  <law@redhat.com>
7333         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
7334         has a delay slot in the generated code.
7336         * config/cris/cris.md (cris_preferred_reload_class): Return
7337         GENNONACR_REGS rather than GENERAL_REGS.
7339 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7341         PR c/80163
7342         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
7343         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
7344         signedness of the result type.
7346 2017-04-12  Richard Biener  <rguenther@suse.de>
7347             Jeff Law  <law@redhat.com>
7349         PR tree-optimization/80359
7350         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
7351         trim stores to TARGET_MEM_REFs.
7353 2017-04-12  Richard Biener  <rguenther@suse.de>
7355         PR tree-optimization/79390
7356         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
7357         threading case even more.
7359 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
7361         PR target/80382
7362         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
7363         for quad_address_p for TImode, instead of just not indexed_address.
7365 2017-04-12  Richard Biener  <rguenther@suse.de>
7366             Bernd Edlinger  <bernd.edlinger@hotmail.de>
7368         PR middle-end/79671
7369         * alias.c (component_uses_parent_alias_set_from): Handle
7370         TYPE_TYPELESS_STORAGE.
7371         (get_alias_set): Likewise.
7372         * tree-core.h (tree_type_common): Add typeless_storage flag.
7373         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
7374         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
7375         for types containing members with TYPE_TYPELESS_STORAGE.
7376         (place_field): Likewise.
7377         (layout_type): Likewise for ARRAY_TYPE.
7378         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
7379         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
7380         TYPE_TYPELESS_STORAGE.
7381         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
7383 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
7385         PR sanitizer/80349
7386         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
7387         first argument to type.
7389 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7391         PR target/80376
7392         PR target/80315
7393         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
7394         CONST0_RTX (mode) rather than const0_rtx where appropriate.
7395         (rs6000_expand_binop_builtin): Likewise.
7396         (rs6000_expand_ternop_builtin): Likewise; also add missing
7397         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
7398         vshasigma built-ins.
7399         * doc/extend.texi: Document that vec_xxpermdi's third argument
7400         must be a constant.
7402 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
7404         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
7405         Use shift_const cost parameter when calculating gain of STV shifts.
7407 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
7409         PR rtl-optimization/70478
7410         * lra-constraints.c (process_alt_operands): Check memory for
7411         disfavoring memory insn operand.
7413 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7415         PR middle-end/80100
7416         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
7417         left shift in unsigned HOST_WIDE_INT type.
7419         PR rtl-optimization/80385
7420         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
7421         (not (neg X)) into (plus X -1) for complex or non-integral modes.
7423         PR libgomp/80394
7424         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
7425         if they have any depend clauses.
7427 2017-04-11  Martin Liska  <mliska@suse.cz>
7429         PR ipa/80212
7430         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
7431         * ipa-split.c (split_function): Create a local comdat symbol
7432         if caller is in a comdat group.
7434 2017-04-11  Martin Liska  <mliska@suse.cz>
7436         PR ipa/80212
7437         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
7438         flags.
7440 2017-04-11  Martin Sebor  <msebor@redhat.com>
7442         PR middle-end/80364
7443         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
7444         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
7445         for INTEGER_TYPE.
7446         (directive::set_width, directive::set_precision, format_character):
7447         Adjust.
7448         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
7449         INTEGER_TYPE.
7451 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
7453         PR target/80389
7454         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
7455         conflict, set target->arch_name instead of target->cpu_name.
7457 2017-04-11  Richard Biener  <rguenther@suse.de>
7459         PR tree-optimization/80374
7460         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
7461         build_zero_cst, remove fold_convertible_p check again.
7463 2017-04-11  Martin Liska  <mliska@suse.cz>
7465         PR sanitizer/70878
7466         * ubsan.c (instrument_object_size): Do not instrument register
7467         variables.
7469 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7471         PR target/80381
7472         * config/i386/i386-builtin-types.def
7473         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
7474         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
7475         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
7476         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
7477         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
7478         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
7479         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
7480         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
7481         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
7482         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
7483         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
7484         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
7485         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
7486         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
7487         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
7488         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
7489         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
7490         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
7491         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
7492         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
7493         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
7494         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
7495         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
7496         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
7497         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
7498         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
7499         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
7500         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
7501         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
7502         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
7503         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
7504         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
7505         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
7506         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
7507         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
7508         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
7509         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
7510         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
7511         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
7512         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
7513         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
7514         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
7515         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
7516         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
7517         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
7518         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
7519         aliases.
7520         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
7521         flag to second_arg_count, handle 4 argument function type _COUNT
7522         aliases, handle second_arg_count on second argument rather than last.
7524 2017-04-10  Jeff Law  <law@redhat.com>
7526         PR tree-optimization/80374
7527         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
7528         record anything if we can not convert integer_zero_node to the
7529         desired type.
7531 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7533         PR target/80108
7534         * config/rs6000/rs6000.c (rs6000_option_override_internal):
7535         Enhance special handling given to the TARGET_P9_MINMAX option in
7536         relation to certain other options.
7538 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
7540         PR tree-optimization/80153
7541         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
7542         remove POINTER_PLUS_EXPR's base part directly, rather than through
7543         aff_tree.
7545 2017-04-10  Richard Biener  <rguenther@suse.de>
7546             Bin Cheng  <bin.cheng@arm.com>
7548         PR tree-optimization/80153
7549         * tree-affine.c (aff_combination_to_tree): Get base pointer from
7550         the first element of pointer type aff_tree.  Build result expr in
7551         aff_tree's type.
7552         (add_elt_to_tree): Convert to type unconditionally.  Remove other
7553         fold_convert calls.
7554         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
7555         (rewrite_use_nonlinear_expr): Check invariant using iv information.
7557 2017-04-10  Richard Biener  <rguenther@suse.de>
7559         * tree-ssa-structalias.c (find_func_aliases): Properly handle
7560         asm inputs.
7562 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
7564         PR rtl-optimization/70478
7565         * lra-constraints.c (curr_small_class_check): New.
7566         (update_and_check_small_class_inputs): New.
7567         (process_alt_operands): Update curr_small_class_check.  Disfavor
7568         alternative insn memory operands.  Check available regs for small
7569         class operands.
7571 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
7573         PR target/80057
7574         * config/mips/mips.opt (-mvirt): Update description.
7575         * doc/invoke.texi (-mvirt): Likewise.
7577 2017-04-10  Richard Biener  <rguenther@suse.de>
7579         PR middle-end/80362
7580         * fold-const.c (fold_binary_loc): Look at unstripped ops when
7581         looking for NEGATE_EXPR in -A / -B to A / B folding.
7583 2017-04-10  Martin Liska  <mliska@suse.cz>
7585         PR gcov-profile/80224
7586         * gcov.c (print_usage): Fix usage string.
7587         (get_gcov_intermediate_filename): Remove.
7588         (output_gcov_file): Use both for normal and intermediate format.
7589         (generate_results): Do not initialize special file for
7590         intermediate format.
7592 2017-04-10  Richard Biener  <rguenther@suse.de>
7594         PR tree-optimization/80304
7595         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
7596         for safelen.
7598 2017-04-10  Nathan Sidwell  <nathan@acm.org>
7600         PR target/79905
7601         * config/rs6000/rs6000.c (rs6000_vector_type): New.
7602         (rs6000_init_builtins): Use it.
7604 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7606         * config/arm/arm.md (<mrc>): Add mode to SET source.
7607         (<mrrc>): Likewise.
7609 2017-04-10  Richard Biener  <rguenther@suse.de>
7611         PR middle-end/80344
7612         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
7614 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
7616         PR target/80324
7617         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
7618         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
7619         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
7620         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
7621         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
7622         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
7623         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
7624         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
7625         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
7626         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
7627         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
7628         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
7629         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
7630         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
7631         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
7632         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
7633         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
7634         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
7635         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
7636         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
7637         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
7638         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
7639         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
7641 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7643         PR rtl-optimization/70478
7644         * lra-constraints.c: Reverse the last patch.
7646 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
7648         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
7649         Add comment for WCHAR_T.
7651 2017-04-08  Martin Liska  <mliska@suse.cz>
7653         Revert:
7654         2017-04-07  Martin Liska  <mliska@suse.cz>
7656         PR ipa/80212
7657         * ipa-split.c (split_function): Add function part to a same comdat
7658         group.
7660 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7662         PR target/80358
7663         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
7665 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
7667         * rs6000/rs6000.c (vec_load_pendulum): Rename...
7668         (vec_pairing): ...to this.
7669         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
7670         (rs6000_sched_init): Adjust for name change.
7671         (struct rs6000_sched_context): Likewise.
7672         (rs6000_init_sched_context): Likewise.
7673         (rs6000_set_sched_context): Likewise.
7675 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
7677         PR target/80322
7678         PR target/80323
7679         PR target/80325
7680         PR target/80326
7681         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
7682         intrinsics.
7683         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
7684         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
7685         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
7687 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
7689         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
7691 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
7693         PR rtl-optimization/70703
7694         * ira-color.c (update_conflict_hard_regno_costs): Use
7695         int64_t instead of HOST_WIDE_INT.
7697 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
7699         PR rtl-optimization/70478
7700         * lra-constraints.c (process_alt_operands): Disfavor alternative
7701         insn memory operands.
7703 2017-04-07  Jeff Law  <law@redhat.com>
7705         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
7706         CALL and NOTE_INSN_CALL_ARG_LOCATION.
7708 2017-04-07  Martin Liska  <mliska@suse.cz>
7710         PR target/79889
7711         * config/aarch64/aarch64.c (aarch64_process_target_attr):
7712         Show error message instead of an ICE.
7714 2017-04-07  Martin Liska  <mliska@suse.cz>
7716         PR ipa/80212
7717         * ipa-split.c (split_function): Add function part to a same comdat
7718         group.
7720 2017-04-07  Richard Biener  <rguenther@suse.de>
7722         PR middle-end/80341
7723         * tree.c (get_unwidened): Also handle ! for_type case for
7724         INTEGER_CSTs.
7725         * convert.c (do_narrow): Split out from ...
7726         (convert_to_integer_1): ... here.  Do not pass final truncation
7727         type to get_unwidened for TRUNC_DIV_EXPR.
7729 2017-04-07  Richard Biener  <rguenther@suse.de>
7731         * tree-affine.c (wide_int_ext_for_comb): Take type rather
7732         than aff_tree.
7733         (aff_combination_const): Adjust.
7734         (aff_combination_scale): Likewise.
7735         (aff_combination_add_elt): Likewise.
7736         (aff_combination_add_cst): Likewise.
7737         (aff_combination_convert): Likewise.
7738         (add_elt_to_tree): Likewise.  Remove unused argument.
7739         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
7741 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7743         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
7744         definition.
7745         * config/arm/arm.c (arm_default_short_enums): Use
7746         ARM_DEFAULT_SHORT_ENUMS.
7747         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
7749 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
7751         PR debug/80234
7752         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
7753         members with redundant out-of-class redeclaration.
7755 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
7757         PR target/80286
7758         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
7759         * config/i386/i386.md (*zero_extendsidi2):
7760         Add (?*x,*x) and (?*v,*v) alternatives.
7762 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
7764         PR target/79733
7765         * config/i386/i386.c (ix86_expand_builtin)
7766         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
7767         mode from insn data. Convert operands to insn operand mode.
7768         Copy operands that don't satisfy insn predicate to a register.
7770 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
7772         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
7773         Update comments.
7775 2017-04-06  Richard Biener  <rguenther@suse.de>
7777         PR tree-optimization/80334
7778         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
7779         preserve alignment of accesses.
7781 2017-04-06  Richard Biener  <rguenther@suse.de>
7783         PR tree-optimization/80262
7784         * tree-sra.c (build_ref_for_offset): Preserve address-space
7785         information.
7786         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7787         Drop useless address-space information on MEM_REF offsets.
7789 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
7791         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
7793 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
7795         PR rtl-optimization/70703
7796         * ira-color.c (update_conflict_hard_regno_costs): Use
7797         HOST_WIDE_INT instead of long.
7799 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
7801         PR target/80298
7802         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
7803         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
7804         is not defined.
7805         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
7806         for x86_64 target.  Handle -m3dnowa option.
7808 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
7810         PR rtl-optimization/70703
7811         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
7812         (update_conflict_hard_regno_costs): Use long instead of unsigned
7813         arithmetic for cost calculation.
7815 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
7816             Bernd Edlinger  <bernd.edlinger@hotmail.de>
7818         PR sanitizer/80308
7819         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
7820         for big endian.
7822 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7824         PR target/78002
7825         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
7826         ptr_mode with Pmode throughout.
7827         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
7828         into probe_stack_range and use DImode.
7830 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7832         PR target/79890
7833         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
7834         call_eh_return is true.
7836 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7838         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
7839         Initialize last_match_fntype_index.
7841 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
7843         PR target/80310
7844         * tree-nvr.c: Include internal-fn.h.
7845         (pass_return_slot::execute): Ignore internal calls without
7846         direct optab.
7848 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7849             Richard Biener  <rguenther@suse.de>
7851         PR c++/80297
7852         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
7853         captures used multiple times, except for the last use.
7854         * generic-match-head.c: Include gimplify.h.
7856 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7858         PR tree-optimization/79390
7859         * target.h (struct noce_if_info): Declare.
7860         * targhooks.h (default_noce_conversion_profitable_p): Declare.
7861         * target.def (noce_conversion_profitable_p): New target hook.
7862         * ifcvt.h (struct noce_if_info): New type, moved from ...
7863         * ifcvt.c (struct noce_if_info): ... here.
7864         (noce_conversion_profitable_p): Renamed to ...
7865         (default_noce_conversion_profitable_p): ... this.  No longer
7866         static nor inline.
7867         (noce_try_store_flag_constants, noce_try_addcc,
7868         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
7869         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
7870         instead of noce_conversion_profitable_p.
7871         * config/i386/i386.c: Include ifcvt.h.
7872         (ix86_option_override_internal): Don't override
7873         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
7874         (ix86_noce_conversion_profitable_p): New function.
7875         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
7876         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
7877         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
7878         * doc/tm.texi: Regenerated.
7880 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7882         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
7883         correction.
7885 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7887         PR target/80307
7888         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
7889         instructions for small multiply cores.
7891 2017-04-04  Jeff Law  <law@redhat.com>
7893         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
7894         added member.
7895         (mips_expand_vec_perm_const): Initialize elements in orig_perm
7896         that are not set by the loop over the elements.
7898 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7900         PR target/80286
7901         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
7902         int mode, convert_modes it to mode as unsigned, otherwise use
7903         lowpart_subreg to mode rather than SImode.
7904         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
7905         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
7906         Use DImode instead of SImode for the shift count operand.
7907         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
7908         Likewise.
7910 2017-04-04  Richard Biener  <rguenther@suse.de>
7912         PR middle-end/80281
7913         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
7914         arithmetic done for the negate or the plus.  Simplify.
7915         (A - (-B) -> A + B): Likewise.
7916         * fold-const.c (split_tree): Make sure to not negate pointers.
7918 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
7920         PR rtl-optimization/60818
7921         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
7922         a compare of comparisons with the thing compared if this results
7923         in a different machine mode.
7925 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
7927         * alias.c (base_alias_check): Fix typo in comment.
7928         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
7929         * cgraphunit.c (symbol_table::compile): Likewise.
7930         * collect2.c (maybe_run_lto_and_relink): Likewise.
7931         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
7932         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
7933         * config/avr/avr.c (avr_map_op_t): Likewise.
7934         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
7935         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
7936         * config/epiphany/epiphany.md (movcc): Likewise.
7937         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
7938         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
7939         Likewise.
7940         * config/mips/mips.c (mips_save_restore_reg): Likewise.
7941         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
7942         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
7943         * config/sh/sh.c (sh_rtx_costs): Likewise.
7944         * fold-const.c (fold_truth_andor): Likewise.
7945         * genautomata.c (collapse_flag): Likewise.
7946         * gengtype.h (struct type::u::s): Likewise.
7947         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
7948         * input.c (FORMAT_AMOUNT): Likewise.
7949         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
7950         (known_aggs_to_agg_replacement_list): Likewise.
7951         * ipa-inline-analysis.c: Likewise.
7952         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
7953         * ipa-polymorphic-call.c
7954         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
7955         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
7956         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
7957         Likewise.
7958         * modulo-sched.c (apply_reg_moves): Likewise.
7959         * omp-expand.c (build_omp_regions_1): Likewise.
7960         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
7961         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
7962         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
7963         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7964         * value-prof.c: Likewise.
7965         * var-tracking.c (val_reset): Likewise.
7967 2017-04-03  Richard Biener  <rguenther@suse.de>
7969         PR tree-optimization/80275
7970         * fold-const.c (split_address_to_core_and_offset): Handle
7971         POINTER_PLUS_EXPR.
7973 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7975         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
7976         descriptors is at least equal to that of functions.
7978 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
7980         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
7982 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
7984         PR target/80250
7985         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
7986         (mov<IMOD4:mode>): New expander.
7987         (*mov<IMOD4:mode>_internal): New insn and split pattern.
7989 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
7991         PR rtl-optimization/79405
7992         * fwprop.c (propagations_left): New variable.
7993         (forward_propagate_into): Decrement it.
7994         (fwprop_init): Initialize it.
7995         (fw_prop): If the variable has reached zero, stop propagating.
7996         (fwprop_addr): Ditto.
7998 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
8000         PR debug/79255
8001         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
8002         a FUNCTION_DECL, pass it as decl instead of origin to
8003         process_scope_var.
8005 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
8007         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
8008         string.
8010 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
8012         PR target/80107
8013         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
8014         TARGET_VSX_SMALL_INTEGER.
8016 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8018         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
8019         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
8021 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
8023         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
8024         extraction from odd-numbered MSA register.
8026 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
8028         PR middle-end/80173
8029         * expmed.c (store_bit_field_1): Don't attempt to create
8030         a word subreg out of hard registers wider than word if they
8031         have HARD_REGNO_NREGS of 1 for their mode.
8033         PR middle-end/80163
8034         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
8035         conversions to integer types wider than word and pointer.
8037         PR debug/80025
8038         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
8039         (rtx_equal_for_cselib_p): Pass 0 to it.
8040         * cselib.c (cselib_hasher::equal): Likewise.
8041         (rtx_equal_for_cselib_1): Add depth argument.  If depth
8042         is 128, don't look up VALUE locs and punt.  Increment
8043         depth in recursive calls when walking VALUE locs.
8045 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8047         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
8048         (make_gcov_file_name): Use the canonical path name for generating
8049         the MD5 value.
8050         (read_line): Fix handling of files with ascii null bytes.
8052 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
8054         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
8055         to initialise a vector register instead
8056         of using a const_int.
8058 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
8060         PR translation/80189
8061         * gimplify.c (omp_default_clause): Use %qs instead of %s in
8062         diagnostic messages.
8064 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
8066         PR target/80246
8067         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
8068         (dfp_diex_<mode>): Update mode of operand 1.
8069         * doc/extend.texi (dxex, dxexq): Document change to return type.
8070         (diex, diexq): Document change to argument type.
8072 2017-03-30  Martin Jambor  <mjambor@suse.cz>
8074         PR ipa/77333
8075         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
8076         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
8077         it reflects the signature changes performed at the callee side.
8078         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
8079         to cgraph_build_function_type_skip_args.
8080         (build_function_decl_skip_args): Adjust call to the above function.
8082 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
8084         PR target/80206
8085         * config/i386/sse.md
8086         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
8087         register as dest whenever it is a MEM not rtx_equal_p to the
8088         corresponding dup operand, and when forcing into reg move the
8089         reg into the memory afterwards.
8090         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
8091         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
8092         for the force_reg mode.
8093         (avx512vl_vextractf128<mode>): Use register as dest either
8094         always when a MEM, or when it is a MEM not rtx_equal_p to the
8095         corresponding dup operand, or even not when it is a CONST_VECTOR
8096         depending on the mode and lo vs. hi.
8097         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
8098         parens.
8099         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
8100         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
8101         Likewise.  Require that operands[2] is even.
8102         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
8103         Remove extraneous parens.  Require that operands[2] is a multiple
8104         of 4.
8105         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
8106         operands[0] is a MEM if <mask_applied>, the predicates/constraints
8107         disallow memory then.
8109 2017-03-30  Richard Biener  <rguenther@suse.de>
8111         PR tree-optimization/77498
8112         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
8113         to non-constants over backedges.
8115 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
8117         PR rtl-optimization/80233
8118         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
8119         as last_combined_insn.  Do not test for BARRIER_P separately.
8121 2017-03-29  Andreas Schwab  <schwab@suse.de>
8123         PR ada/80146
8124         * calls.c (prepare_call_address): Convert funexp to Pmode before
8125         copying to temp reg.
8127 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8129         PR tree-optimization/80158
8130         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
8131         Handle possible future case of more than one alternate
8132         interpretation.
8133         (replace_rhs_if_not_dup): Likewise.
8134         (replace_one_candidate): Likewise.
8136 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8138         PR rtl-optimization/80193
8139         * ira.c (ira): Do not check allocation for LRA.
8141 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
8143         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
8144         (nvptx_output_simt_exit): Declare.
8145         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
8146         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
8147         (init_softstack_frame): Move initialization of crtl->is_leaf to...
8148         (nvptx_declare_function_name): ...here.  Emit declaration of local
8149         memory space buffer for omp_simt_enter insn.
8150         (nvptx_output_unisimt_switch): New.
8151         (nvptx_output_softstack_switch): New.
8152         (nvptx_output_simt_enter): New.
8153         (nvptx_output_simt_exit): New.
8154         * config/nvptx/nvptx.h (struct machine_function): New fields
8155         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
8156         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
8157         (UNSPECV_SIMT_EXIT): Ditto.
8158         (omp_simt_enter_insn): New insn.
8159         (omp_simt_enter): New expansion.
8160         (omp_simt_exit): New insn.
8161         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
8163         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
8164         (expand_GOMP_SIMT_ENTER_ALLOC): New.
8165         (expand_GOMP_SIMT_EXIT): New.
8166         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
8167         (GOMP_SIMT_ENTER_ALLOC): Ditto.
8168         (GOMP_SIMT_EXIT): Ditto.
8169         * target-insns.def (omp_simt_enter): New insn.
8170         (omp_simt_exit): Ditto.
8171         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
8172         simt_dlist.
8173         (lower_rec_simd_input_clauses): Implement SIMT privatization.
8174         (lower_rec_input_clauses): Likewise.
8175         (lower_lastprivate_clauses): Handle SIMT privatization.
8177         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
8178         (ompdevlow_adjust_simt_enter): New.
8179         (find_simtpriv_var_op): New.
8180         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
8181         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
8183         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
8184         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
8185         (copy_decl_for_dup_finish): Ditto.
8187         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
8189 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
8191         PR target/53383
8192         * config/i386/i386.c (ix86_option_override_internal): Always
8193         allow -mpreferred-stack-boundary=3 for 64-bit targets.
8195 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
8197         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
8199 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
8201         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
8202         mark new edge's irreducible flag accordign to it.
8203         (vect_do_peeling): Check loop preheader edge's irreducible flag
8204         and pass it to function slpeel_add_loop_guard.
8206 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
8208         PR tree-optimization/80218
8209         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
8210         Update block frequencies and counts.
8212 2017-03-28  Richard Biener  <rguenther@suse.de>
8214         PR tree-optimization/78644
8215         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
8216         of a simplification result we may not use it at all.
8218 2017-03-28  Richard Biener  <rguenther@suse.de>
8220         PR ipa/80205
8221         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
8222         without arguments, generate default definition of a SSA name.
8224 2017-03-28  Richard Biener  <rguenther@suse.de>
8226         PR middle-end/80222
8227         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
8228         TYPE_REF_CAN_ALIAS_ALL references.
8229         * fold-const.c (fold_indirect_ref_1): Likewise.
8231 2017-03-28  Martin Liska  <mliska@suse.cz>
8233         PR ipa/80104
8234         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
8235         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
8237 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
8238             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
8240         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
8241         (EXTRA_SPECS): Define.
8242         (SUBTARGET_EXTRA_SPECS): Likewise.
8243         (SUBTARGET_CPP_SPEC): Likewise.
8244         * config/arc/elf.h (EXTRA_SPECS): Renamed to
8245         SUBTARGET_EXTRA_SPECS.
8246         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
8248 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
8250         * config/arc/simdext.md (vst64_insn): Update pattern.
8251         (vld32wh_insn): Likewise.
8252         (vld32wl_insn): Likewise.
8253         (vld64_insn): Likewise.
8254         (vld32_insn): Likewise.
8256 2017-03-28  Marek Polacek  <polacek@redhat.com>
8258         PR sanitizer/80067
8259         * fold-const.c (fold_comparison): Use protected_set_expr_location
8260         instead of SET_EXPR_LOCATION.
8262 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8264         * tree.c (add_expr): Avoid name lookup warning.
8266 2017-03-27  Jeff Law  <law@redhat.com>
8268         PR tree-optimization/80216
8269         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
8270         function name.  Limit recursion depth.
8271         (record_temporary_equivalences): Corresponding changes.
8273 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
8275         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
8276         covered first.
8278 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
8280         PR target/80102
8281         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
8282         notes.
8283         * cfgcleanup.c (reg_note_cfa_p): New array.
8284         (insns_have_identical_cfa_notes): New function.
8285         (old_insns_match_p): Don't cross-jump in between /f
8286         and non-/f instructions.  If both i1 and i2 are frame related,
8287         verify all CFA notes, their order and content.
8289 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
8291         PR target/78543
8292         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
8293         HImode and SImode with zero extend to DImode to one insn.
8294         (bswap<mode>2_extenddi): Likewise.
8295         (bswapsi2_extenddi): Likewise.
8296         (bswaphi2_extendsi): Likewise.
8297         (bswaphi2): Combine bswap HImode and SImode into one insn.
8298         Separate memory insns from swapping register.
8299         (bswapsi2): Likewise.
8300         (bswap<mode>2): Likewise.
8301         (bswaphi2_internal): Delete, no longer used.
8302         (bswapsi2_internal): Likewise.
8303         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
8304         store, and gpr<-gpr swap insns.
8305         (bswap<mode>2_store): Likewise.
8306         (bswaphi2_reg): Register only splitter, combine with the splitter.
8307         (bswaphi2 splitter): Likewise.
8308         (bswapsi2_reg): Likewise.
8309         (bswapsi2 splitter): Likewise.
8310         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
8311         the insns into load, store, and register/register insns.
8312         (bswapdi2_ldbrx): Likewise.
8313         (bswapdi2_load): Likewise.
8314         (bswapdi2_store): Likewise.
8315         (bswapdi2_reg): Likewise.
8317 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
8319         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
8320         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
8322 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8324         PR target/80103
8325         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
8326         add comments.
8327         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8328         special handling for target option conflicts between dform
8329         options (-mpower9-dform, -mpower9-dform-vector,
8330         -mpower9-dform-scalar) and -mno-direct-move.
8332 2017-03-27  Richard Biener  <rguenther@suse.de>
8334         PR tree-optimization/80181
8335         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
8337 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8339         * config/arc/predicates.md (move_double_src_operand): Replace the
8340         call to move_double_src_operand with a call to address_operand.
8342 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8344         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
8345         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
8346         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
8348 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8350         * config/arc/predicates.md (long_immediate_loadstore_operand):
8351         Consider scaled addresses cases.
8353 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
8355         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
8356         restored when in interrupt.
8357         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
8358         doesn't have delay slot.
8360 2017-03-27  Richard Biener  <rguenther@suse.de>
8362         PR ipa/79776
8363         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
8364         inlined thunk clones.
8366 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
8368         PR sanitizer/80168
8369         * asan.c (instrument_derefs): Copy over last operand from
8370         original COMPONENT_REF to the new COMPONENT_REF with
8371         DECL_BIT_FIELD_REPRESENTATIVE.
8372         * ubsan.c (instrument_object_size): Likewise.
8374 2017-03-27  Richard Biener  <rguenther@suse.de>
8376         PR tree-optimization/80170
8377         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
8378         sure DR/SCEV didnt fold in constants we do not see when looking
8379         at the reference base alignment.
8381 2017-03-27  Richard Biener  <rguenther@suse.de>
8383         PR middle-end/80171
8384         * gimple-fold.c (fold_ctor_reference): Properly guard against
8385         NULL return value from canonicalize_constructor_val.
8387 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
8389         PR target/80180
8390         * config/i386/i386.c (ix86_expand_builtin)
8391         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
8392         flags reg setting and flags reg using instructions.
8393         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
8394         clobbering instructions to zero extend op2.
8396 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
8398         * doc/install.texi (Configuration) <--with-aix-soname>:
8399         Update link to AIX ld.
8401 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
8403         PR rtl-optimization/80160
8404         PR rtl-optimization/80159
8405         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
8406         reg_alternate_class into account.
8408 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
8410         PR target/80148
8411         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
8412         to consider in curr_insn_transform.
8414 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
8416         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
8417         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
8418         and emit_mode_inner.
8420 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8422         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
8423         argument to the overloaded builtin variants.  Use the new flag to
8424         deprecate certain builtin variants.
8425         * config/s390/s390-builtin-types.def: Add new builtin types.
8426         * config/s390/s390-builtins.h: Support new flags field for
8427         overloaded builtins.
8428         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
8429         (s390_macro_to_expand): Enable vector float data type.
8430         (s390_cpu_cpp_builtins_internal): Indicate support of the new
8431         builtins by incrementing the __VEC__ version number.
8432         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
8433         vec_xst.
8434         (s390_resolve_overloaded_builtin): Emit error messages depending
8435         on the builtin flags.
8436         * config/s390/s390.c (s390_expand_builtin): Support additional
8437         flags argument.  Change error message to match the messages
8438         emitted in s390-c.c.
8439         * config/s390/s390.md: New UNSPEC_* constants.
8440         (op_type): Add new instruction types.
8441         * config/s390/vecintrin.h: Add new builtins and test data class
8442         constants.
8443         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
8444         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
8445         (VEC_INEXACT, VEC_NOINEXACT): New constants.
8446         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
8447         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
8448         ("vec_mergel<mode>"): V_HW -> VEC_HW.
8450         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
8451         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
8452         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
8453         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
8455         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
8456         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
8457         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
8458         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
8460         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
8461         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
8462         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
8463         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
8464         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
8465         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
8466         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
8468         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
8469         ("vec_scatter_element<V_HW_4:mode>_DI")
8470         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
8471         ("vec_fpint<mode>", "vflls")
8472         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
8473         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
8474         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
8475         ("*vec_cmphe<mode>_cc"): ... these.
8477         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
8478         mode constant instead of magic value.
8480 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8482         * config/s390/s390.c (s390_expand_vec_compare): Support other
8483         vector floating point modes than just V2DF.
8484         (s390_expand_vcond): Likewise.
8485         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
8486         (s390_cannot_change_mode_class): Prevent mode changes between TF
8487         and V1TF in vector registers.
8488         * config/s390/s390.md (DF, SF): New mode attributes.
8489         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
8490         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
8491         SFmode support for VRs.
8492         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
8493         vector fp modes.
8494         (VFT, VF_HW): New mode iterators.
8495         (vw, sdx): New mode attributes.
8496         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
8497         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
8498         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
8499         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
8500         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
8501         also the new vector floating point modes.  Renaming to ...
8503         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
8504         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
8505         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
8506         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
8507         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
8508         ("vec_unordered<mode>"): ... these.
8510         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
8511         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
8512         ("*vec_extendv2df"): New insn definitions.
8514 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8516         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
8517         ("mulditi3_2", "*muldi3_sign"): New patterns.
8518         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
8519         rename the pattern definition.
8521 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8523         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
8524         expander.
8525         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
8527 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8529         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
8530         instruction if possible.
8531         * config/s390/vector.md (vec_halfnumelts): New mode
8532         attribute.
8533         ("*vec_vllezlf<mode>"): New pattern.
8535 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8537         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
8538         ("popcountv4si2", "popcountv2di2"): Rename to ...
8539         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
8540         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
8541         condition.
8542         ("popcount<mode>2_vxe"): New pattern.
8544 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8546         * common/config/s390/s390-common.c (processor_flags_table): Add
8547         arch12.
8548         * config.gcc: Add arch12.
8549         * config/s390/driver-native.c (s390_host_detect_local_cpu):
8550         Default to arch12 for unknown CPU model numbers.
8551         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
8552         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
8553         PROCESSOR_max sanity check.
8554         * config/s390/s390-opts.h (enum processor_type): Add
8555         PROCESSOR_ARCH12.
8556         * config/s390/s390.c (processor_table): Add arch12.
8557         (s390_expand_builtin): Add check for B_VXE flag.
8558         (s390_issue_rate): Add PROCESSOR_ARCH12.
8559         (s390_get_sched_attrmask): Likewise.
8560         (s390_get_unit_mask): Likewise.
8561         (s390_sched_score): Enable z13 scheduling for arch12.
8562         (s390_sched_reorder): Likewise.
8563         (s390_sched_variable_issue): Likewise.
8564         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
8565         PF_VXE.
8566         (s390_tune_attr): Use z13 scheduling also for arch12.
8567         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
8568         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
8569         (TARGET_VXE_P): New macros.
8570         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
8571         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
8572         * config/s390/s390.opt: Add arch12 as processor_type.
8574 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8576         * config/s390/s390.md
8577         ("fixuns_truncdddi2", "fixuns_trunctddi2")
8578         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
8579         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
8581         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
8582         Rename expanders to ...
8584         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
8585         ("fixuns_truncdddi2_emu"): ... these.
8587         ("fixuns_trunc<mode>si2_emu"): New expander.
8589         ("*fixuns_truncdfdi2_z13"): Rename to ...
8590         ("*fixuns_truncdfdi2_vx"): ... this.
8592 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8594         * config/s390/2964.md: Remove the single element vector compare
8595         instructions which are no longer used.
8596         * config/s390/s390.c (s390_select_ccmode): Remove handling of
8597         vector CCmodes.
8598         (s390_canonicalize_comparison): Remove handling of DFmode
8599         compares.
8600         (s390_expand_vec_compare_scalar): Remove function.
8601         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
8602         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
8603         pattern.
8604         ("*cmp<mode>_ccs"): Add wfcdb instruction.
8606 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8608         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
8609         FP zero.
8610         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
8611         will anyway by matched by mov<mode>_64dfp.
8613 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8615         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
8616         vlef/vstef.  Add missing operand to vleif.
8618 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8620         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
8621         pair for all vector types with 64 bit elements.
8622         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
8623         * config/s390/vector.md (V_HW_64): ... here.
8624         (V_128_NOSINGLE): New mode iterator.
8625         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
8626         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
8627         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
8628         ("*vec_load_pairv2di"): Change to ...
8629         ("*vec_load_pair<mode>"): ... this one.
8631 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8633         * config/s390/constraints.md: Add comments.
8634         (jKK): Reject element sizes > 8 bytes.
8635         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
8636         s_operands.
8637         * config/s390/s390.md: Add the s_operand checks formerly in
8638         s390_split_ok_p to various splitters where they are still
8639         required.
8640         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
8641         for 128 bit vectors.  Plus two splitters.
8643 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8645         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
8646         the file.
8648 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8650         PR target/79893
8651         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
8652         error if the boundary argument is not constant.
8654 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
8656         PR rtl-optimization/80112
8657         * loop-doloop.c (doloop_condition_get): Don't check condition
8658         if cmp isn't SET with IF_THEN_ELSE src.
8660 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8662         PR tree-optimization/80158
8663         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
8664         replacing a candidate statement, also replace it for the
8665         candidate's alternate interpretation.
8666         (replace_rhs_if_not_dup): Likewise.
8667         (replace_one_candidate): Likewise.
8669 2017-03-24  Richard Biener  <rguenther@suse.de>
8671         PR tree-optimization/80167
8672         * graphite-isl-ast-to-gimple.c
8673         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
8674         properly.
8675         (translate_isl_ast_to_gimple::get_rename): Likewise.
8677 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8679         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
8680         handling of certain combinations of target options, including the
8681         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
8682         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
8684 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8686         PR target/71436
8687         * config/arm/arm.md (*load_multiple): Add reload_completed to
8688         matching condition.
8690 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8691             Richard Biener  <rguenth@suse.de>
8693         PR tree-optimization/79908
8694         PR tree-optimization/80136
8695         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
8696         been cast away, gimplify_and_add suffices.
8698 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
8700         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
8702 2017-03-23  Richard Biener  <rguenther@suse.de>
8704         PR tree-optimization/80032
8705         * gimplify.c (gimple_push_cleanup): Forced unconditional
8706         cleanups still have to go to the conditional_cleanups
8707         sequence.
8709 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
8711         PR tree-optimization/80072
8712         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
8713         to unsigned int.
8714         (next_operand_entry_id): Change type to unsigned int.
8715         (sort_by_operand_rank): Make sure to return the right return value
8716         even if unsigned fields are bigger than INT_MAX.
8717         (struct oecount): Change cnt and id type to unsigned int.
8718         (oecount_hasher::equal): Formatting fix.
8719         (oecount_cmp): Make sure to return the right return value
8720         even if unsigned fields are bigger than INT_MAX.
8721         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
8723         PR c++/80129
8724         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
8725         TREE_READONLY on result if writing it more than once.
8727         PR sanitizer/80110
8728         * doc/invoke.texi (-fsanitize=thread): Document that with
8729         -fnon-call-exceptions atomics are not able to throw
8730         exceptions.
8732         PR sanitizer/80110
8733         * tsan.c: Include tree-eh.h.
8734         (instrument_builtin_call): Call maybe_clean_eh_stmt or
8735         maybe_clean_or_replace_eh_stmt where needed.
8736         (instrument_memory_accesses): Add cfg_changed argument.
8737         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
8738         if it returned true.
8739         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
8741         PR rtl-optimization/63191
8742         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
8743         wrapper function, moved the whole old content into ...
8744         (ix86_delegitimize_address_1): ... this.  New inline function.
8745         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
8746         true as last argument instead of ix86_delegitimize_address.
8748 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
8750         * config/aarch64/aarch64.c (generic_branch_cost): Copy
8751         cortexa57_branch_cost.
8753 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
8755         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
8757 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8759         PR target/80123
8760         * doc/md.texi (Constraints): Document wA constraint.
8761         * config/rs6000/constraints.md (wA): New.
8762         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
8763         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
8764         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
8765         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
8767 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
8769         PR c++/80029
8770         * gimplify.c (is_oacc_declared): New function.
8771         (oacc_default_clause): Use it to set default flags for acc declared
8772         variables inside parallel regions.
8773         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
8774         declared variables.
8775         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
8776         declare attribute to any decl as necessary.
8778 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8780         PR target/80082
8781         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
8782         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
8783         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
8784         (arm_arch_lpae): This.
8785         * config/arm/arm.c (arm_arch7ve): Rename into ...
8786         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
8787         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
8788         arm_arch_lpae.
8790 2017-03-22  Martin Liska  <mliska@suse.cz>
8792         PR target/79906
8793         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
8794         error message instead of an ICE.
8796 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8798         * doc/extend.texi (6.11 Additional Floating Types): Revise.
8800 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8802         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
8803         comments.
8804         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8805         comments.
8807 2017-03-21  Martin Sebor  <msebor@redhat.com>
8809         * doc/extend.texi: Use "cannot" instead of "can't."
8810         * doc/hostconfig.texi: Same.
8811         * doc/install.texi: Same.
8812         * doc/invoke.texi: Same.
8813         * doc/loop.texi: Same.
8814         * doc/md.texi: Same.
8815         * doc/objc.texi: Same.
8816         * doc/rtl.texi: Same.
8817         * doc/tm.texi: Same.
8818         * doc/tm.texi.in: Same.
8819         * doc/trouble.texi: Same.
8821 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
8823         PR debug/63238
8824         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
8825         (collect_checksum_attributes): Set it.
8826         (die_checksum_ordered): Use it.
8828 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8830         PR tree-optimization/79908
8831         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
8832         change: For a VA_ARG whose LHS has been cast away, use
8833         force_gimple_operand to construct the side effects.
8835 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
8837         PR translation/80001
8838         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
8839         more amenable to translation.
8840         (oacc_loop_auto_partitions): Likewise.
8842 2017-03-21  Marek Polacek  <polacek@redhat.com>
8843             Martin Sebor  <msebor@redhat.com>
8845         PR tree-optimization/80109
8846         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
8847         on INTEGRAL_TYPE_P.
8849 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
8850             Segher Boessenkool  <segher@kernel.crashing.org>
8852         PR target/80125
8853         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
8854         check reg_used_between_p between insn and one of succ or succ2
8855         depending on if succ is artificial insn not inserted into insn
8856         stream.
8858 2017-03-21  Martin Liska  <mliska@suse.cz>
8860         PR gcov-profile/80081
8861         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
8862         * doc/gcc.texi: Include gcov-dump stuff.
8863         * doc/gcov-dump.texi: New file.
8865 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
8867         PR rtl-optimization/79150
8868         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
8869         conditional jump, if the jump is the last insn of the loop.
8871 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8872             Richard Biener  <rguenth@suse.de>
8874         PR tree-optimization/79908
8875         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
8876         been cast away, use force_gimple_operand to construct the side
8877         effects.
8879 2017-03-21  Martin Liska  <mliska@suse.cz>
8881         PR libfortran/79956
8882         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
8883         to NULL.
8885 2017-03-21  Brad Spengler <spender@grsecurity.net>
8887         PR plugins/80094
8888         * plugin.c (htab_hash_plugin): New function.
8889         (add_new_plugin): Use it and adjust.
8890         (parse_plugin_arg_opt): Adjust.
8891         (init_one_plugin): Likewise.
8893 2017-03-21  Richard Biener  <rguenther@suse.de>
8895         PR tree-optimization/80032
8896         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
8897         if set force the cleanup to happen unconditionally.
8898         (gimplify_target_expr): Push inserted clobbers with force_uncond
8899         to avoid them being removed by control-dependent DCE.
8901 2017-03-21  Richard Biener  <rguenther@suse.de>
8903         PR tree-optimization/80122
8904         * tree-inline.c (copy_bb): Do not expans va-arg packs or
8905         va_arg_pack_len when the inlined call stmt requires pack
8906         expansion itself.
8907         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
8909 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
8911         PR sanitizer/78158
8912         * tsan.c (instrument_builtin_call): If the memory model argument
8913         is not a constant, assume it is valid.
8915         PR c/67338
8916         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
8917         avoid UB.
8919 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
8921         PR rtl-optimization/79910
8922         * combine.c (can_combine_p): Do not allow combining an I0 or I1
8923         if its dest is used by an insn before I2 (other than the combined
8924         insns themselves, which are properly handled already).
8926 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
8928         Revert:
8929         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
8931         * combine.c (record_used_regs): New static function.
8932         (try_combine): Handle situations where there is an additional
8933         instruction between I2 and I3 which needs to have a LOG_LINK
8934         updated.
8936         Revert:
8937         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
8939         * combine.c (try_combine): Delete redundant i1 test.  Call
8940         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8942 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8944         PR target/80083
8945         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
8946         alternatives 13/14.
8948 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8950         PR tree-optimization/80054
8951         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
8952         the optimization if a PHI or any of its arguments is not dominated
8953         by the candidate's basis.  Use gphi* rather than gimple* as
8954         appropriate.
8955         (replace_profitable_candidates): Clean up a gimple* variable that
8956         should be a gphi* variable.
8958 2017-03-20  Martin Sebor  <msebor@redhat.com>
8960         PR c++/52477
8961         * doc/extend.texi (attribute constructor): Document present limitation.
8963 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8965         PR target/79963
8966         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
8967         __POWER9_VECTOR__ #ifdef control, change template definition to
8968         use Power9-specific built-in function.
8969         (vec_any_eq): Likewise.
8970         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
8971         to control outcomes from this test.
8972         (vector_ae_<mode>p): For VEC_F modes, likewise.
8974 2017-03-20  Ian Lance Taylor  <iant@google.com>
8976         * config/i386/i386.c (ix86_function_regparm): Save an extra
8977         register for -fsplit-stack with DECL_STATIC_CHAIN.
8979 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
8981         PR target/79912
8982         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
8983         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
8985 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
8987         * config/riscv/riscv.c (riscv_print_operand): Use "fence
8988         iorw,ow".
8989         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
8990         iorw,iorw".
8992 2017-03-20  Marek Polacek  <polacek@redhat.com>
8994         PR sanitizer/80063
8995         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
8997 2017-03-20  Richard Biener  <rguenther@suse.de>
8999         PR tree-optimization/80113
9000         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
9001         allocate extra SSA name for PHI def.
9002         (add_close_phis_to_outer_loops): Likewise.
9003         (add_close_phis_to_merge_points): Likewise.
9004         (copy_loop_close_phi_args): Likewise.
9005         (copy_cond_phi_nodes): Likewise.
9007 2017-03-20  Martin Liska  <mliska@suse.cz>
9009         PR middle-end/79753
9010         * tree-chkp.c (chkp_build_returned_bound): Do not build
9011         returned bounds for a LHS that's not a BOUNDED_P type.
9013 2017-03-20  Martin Liska  <mliska@suse.cz>
9015         PR target/79769
9016         PR target/79770
9017         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
9018         COMPLEX_CST and VECTOR_CST.
9020 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9022         PR target/78857
9023         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
9024         target operand.  A new splitter adds the clobber statement in case
9025         the target operand is dead anyway.
9027 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
9029         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
9030         to age-old versions of binutils and glibc.
9032 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
9034         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
9036 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
9038         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
9040 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
9042         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
9043         requirement for binutils 2.13.
9045 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
9047         * combine.c (try_combine): Delete redundant i1 test.  Call
9048         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
9050 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
9052         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
9053         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
9054         contents.
9055         <riscv64-*-elf>: Re-arrange section
9056         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
9057         <riscv32-*-linux>: Likewise.
9058         <riscv64-*-elf>: Likewise
9059         <riscv64-*-linux>: Likewise.
9061 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
9063         PR target/80052
9064         * aarch64.opt(verbose-cost-dump): Fix typo.
9066 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
9068         PR target/79951
9069         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
9070         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
9072 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
9074         * reload.c (find_reloads): When reloading a nonoffsettable address,
9075         use RELOAD_OTHER for it and its address reloads.
9077         PR rtl-optimization/79910
9078         * combine.c (record_used_regs): New static function.
9079         (try_combine): Handle situations where there is an additional
9080         instruction between I2 and I3 which needs to have a LOG_LINK
9081         updated.
9083 2017-03-17  Jeff Law  <law@redhat.com>
9085         PR tree-optimization/71437
9086         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
9087         conditional in the hash table first.
9088         (vrp_dom_walker::before_dom_children): Extract condition from
9089         ASSERT_EXPR.  Record condition, its inverion and any implied
9090         conditions as well.
9092 2017-03-17  Marek Polacek  <polacek@redhat.com>
9093             Markus Trippelsdorf  <markus@trippelsdorf.de>
9095         PR tree-optimization/80079
9096         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
9097         m_stores_head.
9099 2017-03-17  Richard Biener  <rguenther@suse.de>
9101         PR middle-end/80075
9102         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
9103         Properly verify the LHS before the RHS possibly claims to be
9104         handled.
9105         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
9106         do not throw.
9108 2017-03-17  Martin Jambor  <mjambor@suse.cz>
9110         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
9111         (List of -O2 options): Likewise.
9112         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
9113         (-fipa-vrp) New.
9115 2017-03-17  Tom de Vries  <tom@codesourcery.com>
9117         * gcov-dump.c (print_usage): Print bug_report_url.
9119 2017-03-17  Richard Biener  <rguenther@suse.de>
9121         PR middle-end/80050
9122         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
9123         (parser::peek): Likewise.
9125 2017-03-17  Richard Biener  <rguenther@suse.de>
9127         PR tree-optimization/80048
9128         * sese.c (free_sese_info): Properly release rename_map and
9129         copied_bb_map elements.
9131 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
9133         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
9134         Add linked-list forward and backlinks.  Insert on
9135         construction, remove on destruction.
9136         (class pass_store_merging): Add m_stores_head field.
9137         (pass_store_merging::terminate_and_process_all_chains):
9138         Iterate over m_stores_head list.
9139         (pass_store_merging::terminate_all_aliasing_chains):
9140         Likewise.
9141         (pass_store_merging::execute): Check for debug stmts first.
9142         Push new chains onto the m_stores_head stack.
9144 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9146         PR target/71294
9147         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
9148         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
9149         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
9151 2017-03-16  Jeff Law  <law@redhat.com>
9153         PR tree-optimization/71437
9154         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
9155         member function.  Implementation moved into after_dom_children
9156         member function and into the threader's thread_outgoing_edges
9157         function.
9158         (dom_opt_dom_walker::after_dom_children): Simplify by moving
9159         some code into new thread_outgoing_edges.
9160         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
9161         definition.  Simplify marker handling (do it here).   Assume we always
9162         have the available expression and the const/copies tables.
9163         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
9164         and tree-vrp.c
9165         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
9166         * tree-vrp.c (equiv_stack): No longer file scoped.
9167         (vrp_dom_walker): New class.
9168         (vrp_dom_walker::before_dom_children): New member function.
9169         (vrp_dom_walker::after_dom_children): Likewise.
9170         (identify_jump_threads):  Setup domwalker.  Use it rather than
9171         walking edges in a random order by hand.  Simplify setup/finalization.
9172         (finalize_jump_threads): Remove.
9173         (vrp_finalize): Do not call identify_jump_threads here.
9174         (execute_vrp): Do it here instead and call thread_through_all_blocks
9175         here too.
9177         PR tree-optimization/71437
9178         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
9179         callers changed.
9180         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
9181         callers changed.
9182         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
9183         (dom_opt_dom_walker::thread_across_edge): Remove
9184         handle_dominating_asserts argument.  All callers changed.
9185         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
9186         changes.  Remove calls to lhs_of_dominating_assert.  Other
9187         uses of handle_dominating_asserts turn into unconditional code
9188         (simplify_control_stmt_condition_1): Likewise.
9189         (simplify_control_stmt_condition): Likewise.
9190         (thread_through_normal_block, thread_across_edge): Likewise.
9191         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
9192         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
9193         object if it is not an SSA_NAME.
9194         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
9195         before calling into the VRP specific simplifiers.
9196         (identify_jump_threads): Remove handle_dominating_asserts
9197         argument.
9199 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
9201         PR fortran/79886
9202         * tree-diagnostic.c (default_tree_printer): No longer static.
9203         * tree-diagnostic.h (default_tree_printer): New prototype.
9205 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
9207         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
9208         Change ins into fmov.
9210 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9212         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
9213         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
9214         Use h_con constraint for operand 1.
9215         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
9216         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
9218 2017-03-15  Jeff Law  <law@redhat.com>
9220         PR tree-optimization/71437
9221         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
9222         (record_temporary_equivalences): Use it.
9224         PR tree-optimization/71437
9225         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
9226         tree-ssa-scopedtables.
9227         (lookup_avail_expr, build_and_record_new_cond): Likewise.
9228         (record_conditions, record_cond, vuse_eq): Likewise.
9229         (record_edge_info): Adjust to API tweak of record_conditions.
9230         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
9231         (record_temporary_equivalences, optimize_stmt): Likewise.
9232         (eliminate_redundant_computations): Likewise.
9233         (record_equivalences_from_stmt): Likewise.
9234         * tree-ssa-scopedtables.c: Include options.h and params.h.
9235         (vuse_eq): New function, moved from tree-ssa-dom.c
9236         (build_and_record_new_cond): Likewise.
9237         (record_conditions): Likewise.  Accept vector of conditions rather
9238         than edge_equivalence structure for first argument.
9239         for the first argument.
9240         (avail_exprs_stack::lookup_avail_expr): New member function, moved
9241         from tree-ssa-dom.c.
9242         (avail_exprs_stack::record_cond): Likewise.
9243         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
9244         from tree-ssa-dom.c.
9245         (avail_exprs_stack): Add new member functions lookup_avail_expr
9246         and record_cond.
9247         (record_conditions): Declare.
9249 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
9251         PR target/80017
9252         * lra-constraints.c (process_alt_operands): Increase reject for
9253         reloading an input/output operand.
9255 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9257         PR target/79038
9258         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
9259         insns to convert from signed/unsigned char/short to IEEE 128-bit
9260         floating point.
9261         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
9263 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
9265         PR target/80019
9266         * config/i386/i386.c (ix86_vector_duplicate_value): Create
9267         subreg of inner mode for values already in registers.
9269 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
9271         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
9272         iteration reg is used after the loop.
9274 2017-03-14  Martin Sebor  <msebor@redhat.com>
9276         PR tree-optimization/79800
9277         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
9278         precision in negative-positive range.
9279         (format_floating): Call non-const overload with adjusted precision.
9281 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9283         PR target/79947
9284         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
9285         -mpowerpc-gfxopt.
9287 2017-03-14  Martin Sebor  <msebor@redhat.com>
9289         PR middle-end/80020
9290         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
9291         * builtins.def (aligned_alloc): Use it.
9293         PR c/79936
9294         * Makefile.in (GTFILES): Add calls.c.
9295         * calls.c: Include "gt-calls.h".
9297 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
9299         PR rtl-optimization/79728
9300         * regs.h (struct target_regs): New field
9301         x_contains_allocatable_regs_of_mode.
9302         (contains_allocatable_regs_of_mode): New macro.
9303         * reginfo.c (init_reg_sets_1): Initialize it, and change
9304         contains_reg_of_mode so it includes global regs as well.
9305         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
9306         rather than contains_regs_of_mode.
9308 2017-03-14  Martin Liska  <mliska@suse.cz>
9310         * doc/invoke.texi: Document options that can't be combined with
9311         -fcheck-pointer-bounds.
9313 2017-03-14  Martin Liska  <mliska@suse.cz>
9315         PR middle-end/79831
9316         * doc/invoke.texi (-Wchkp): Document the option.
9318 2017-03-14  Martin Liska  <mliska@suse.cz>
9320         * Makefile.in: Install gcov-dump.
9322 2017-03-14  Martin Liska  <mliska@suse.cz>
9324         * multiple_target.c (expand_target_clones): Bail out for
9325         an invalid attribute.
9327 2017-03-14  Richard Biener  <rguenther@suse.de>
9329         * alias.c (struct alias_set_entry): Pack properly.
9330         * cfgloop.h (struct loop): Likewise.
9331         * cse.c (struct set): Likewise.
9332         * ipa-utils.c (struct searchc_env): Likewise.
9333         * loop-invariant.c (struct invariant): Likewise.
9334         * lra-remat.c (struct cand): Likewise.
9335         * recog.c (struct change_t): Likewise.
9336         * rtl.h (struct address_info): Likewise.
9337         * symbol-summary.h (function_summary): Likewise.
9338         * tree-loop-distribution.c (struct partition): Likewise.
9339         * tree-object-size.c (struct object_size_info): Likewise.
9340         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
9341         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
9342         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
9343         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
9344         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
9345         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
9346         (struct _stmt_vec_info): Likewise.
9348 2017-03-14  Martin Liska  <mliska@suse.cz>
9350         PR target/79892
9351         * multiple_target.c (create_dispatcher_calls): Check that
9352         a target can create a function dispatcher.
9354 2017-03-14  Martin Liska  <mliska@suse.cz>
9356         PR lto/66295
9357         * multiple_target.c (expand_target_clones): Drop local.local
9358         flag for default implementation.
9360 2017-03-14  Richard Biener  <rguenther@suse.de>
9362         PR tree-optimization/80030
9363         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
9365 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
9367         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
9368         gcc_fallthrough() instead of __attribute__((fallthrough));
9370 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
9372         * doc/gcc.texi: Remove "up" link to (DIR).
9373         * doc/gccint.texi: Ditto.
9375 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
9377         * doc/install.texi (Specific) <avr>: Remove reference to
9378         binutils 2.13.
9380 2017-03-13  Jeff Law  <law@redhat.com>
9382         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
9383         attribute rather than comments.
9385         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
9386         match_scratch operand is highest.
9388 2017-03-13  Martin Liska  <mliska@suse.cz>
9390         PR middle-end/78339
9391         * ipa-pure-const.c (warn_function_noreturn): If the declarations
9392         is a CHKP clone, use original declaration.
9394 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9396         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
9397         (arc_conditional_register_usage): Use a different allocation order
9398         when optimizing for size.
9399         * common/config/arc/arc-common.c (arc_option_optimization_table):
9400         Section anchors default on when optimizing for size.
9402 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9404         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
9406 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9408         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
9409         * config/arc/arc.md (cpu_facility): Add cd variant.
9410         (*movqi_insn): Add code density variant.
9411         (*movhi_insn): Likewise.
9412         (*movqi_insn): Likewise.
9413         (*addsi3_mixed): Likewise.
9414         (subsi3_insn): Likewise.
9416 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9418         * config/arc/arc.md (movsi_cond_exec): Update constraint.
9420 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
9422         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
9423         expressions with MINUS and UNARY ops.
9425 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9427         PR target/79911
9428         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
9429         Rename to...
9430         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
9431         between vec_select and vector argument.
9432         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
9433         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
9434         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
9435         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
9436         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
9437         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
9439 2017-03-13  Richard Biener  <rguenther@suse.de>
9441         PR other/79991
9442         * params.def (vect-max-peeling-for-alignment): Fix typo.
9444 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9446         * doc/install.texi (Specific) <mips-*-*>: Remove description of
9447         issue that only occurred with binutils below 2.18.
9449 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9451         * doc/install.texi (Specific) <cris-axis-elf>: No longer
9452         refer to binutils 2.11/2.12 minimum.
9454 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
9456         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
9457         ftp.kernel.org and simplify binutils requirement.
9459 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
9461         * doc/invoke.texi (Warning Options): Fix spelling of link-time
9462         optimization.
9463         (Optimize Options): Ditto.  Also remove redundancy.
9465 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9467         PR translation/79848
9468         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
9469         "%qs".
9470         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
9471         to G_ to avoid double translation.
9473 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9475         PR translation/79923
9476         * auto-profile.c (get_combined_location): Convert leading
9477         character of diagnostics to lower case and remove trailing period.
9478         (read_profile): Likewise for various diagnostics.
9479         * config/arm/arm.c (arm_option_override): Remove trailing period
9480         from various diagnostics.
9481         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
9482         (msp430_expand_delay_cycles): Likewise.
9484 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9486         PR target/79925
9487         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
9488         full command-line argument, rather than just "str".
9489         (aarch64_validate_march): Likewise.
9490         (aarch64_validate_mtune): Likewise.
9492 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
9494         PR rtl-optimization/78911
9495         * lra-assigns.c (must_not_spill_p): New function.
9496         (spill_for): Use it.
9498 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
9500         PR tree-optimization/79981
9501         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
9502         ATOMIC_COMPARE_EXCHANGE ifn result.
9503         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
9504         IFN_ATOMIC_COMPARE_EXCHANGE.
9506 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9508         PR driver/79875
9509         * opts.c (parse_sanitizer_options): Add missing question mark to
9510         "did you mean" message.
9512 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9514         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
9515         built-in.
9516         (VMULEUH_UNS): Likewise.
9517         (VMULOUB_UNS): Likewise.
9518         (VMULOUH_UNS): Likewise.
9519         * config/rs6000/rs6000.c (builtin_function_type): Remove
9520         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
9522 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
9524         PR bootstrap/79952
9525         * read-rtl-function.c (function_reader::read_rtx_operand): Update
9526         x with result of extra_parsing_for_operand_code_0.
9527         (function_reader::extra_parsing_for_operand_code_0): Convert
9528         return type from void to rtx, returning x.  When reading
9529         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
9530         larger size containing struct block_symbol.
9532 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
9534         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
9535         -mfloat128-hardware without -m64.
9537 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
9539         PR target/79941
9540         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
9541         entries to the case statement that marks unsigned arguments to
9542         overloaded functions.
9544 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9546         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
9547         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
9549 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
9551         PR target/79907
9552         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
9553         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
9555 2017-03-10  Martin Liska  <mliska@suse.cz>
9557         PR target/65705
9558         PR target/69804
9559         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
9560         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
9561         FIELD != NULL.
9563 2017-03-10  Olivier Hainque  <hainque@adacore.com>
9565         * tree-switch-conversion (array_value_type): Start by resetting
9566         candidate type to it's main variant.
9568 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
9570         PR rtl-optimization/79909
9571         * combine.c (try_combine): Use simplify_replace_rtx on individual
9572         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
9573         of the whole CALL_INSN_FUNCTION_USAGE.
9575         PR tree-optimization/79972
9576         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
9577         get_range_info on SSA_NAMEs.  Formatting fixes.
9579 2017-03-10  Richard Biener  <rguenther@suse.de>
9580             Jakub Jelinek  <jakub@redhat.com>
9582         PR tree-optimization/77975
9583         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
9584         edge to be constant.
9585         (get_val_for): For constant x return it.  Formatting fix.
9586         (loop_niter_by_eval): Avoid pointless looping if the next iteration
9587         would use the same bases as the current one.
9589 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9591         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
9592         instead of vec_select for V1TImode.
9593         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
9594         longer needed.
9595         (VSX_LE_128): Add V1TI to this mode iterator.
9596         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
9597         (*vsx_le_perm_store_<mode>): Likewise.
9598         (pre-reload splitter for VSX stores): Likewise.
9599         (post-reload splitter for VSX stores): Likewise.
9600         (*vsx_xxpermdi2_le_<mode>): Likewise.
9601         (*vsx_lxvd2x2_le_<mode>): Likewise.
9602         (*vsx_stxvd2x2_le_<mode>): Likewise.
9604 2017-03-09  Michael Eager  <eager@eagercon.com>
9606         Correct failures with --enable-checking=yes,rtl.
9608         * config/microblaze/microblaze.c (microblaze_expand_shift):
9609         Replace GET_CODE test with CONST_INT_P and INTVAL test with
9610         test for const0_rtx.
9611         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
9612         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
9614 2017-03-09  Richard Biener  <rguenther@suse.de>
9616         PR tree-optimization/79977
9617         * graphite-scop-detection.c (scop_detection::merge_sese):
9618         Handle the case of extra exits to blocks dominating the entry.
9620 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
9622         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
9623         Document rdynamic.
9625 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
9627         PR rtl-optimization/79949
9628         * lra-constraints.c (process_alt_operands): Check memory when
9629         trying to predict a cycle.  Print about the overall increase.
9631 2017-03-09  Richard Biener  <rguenther@suse.de>
9633         PR middle-end/79971
9634         * gimple-expr.c (useless_type_conversion_p): Preserve
9635         TYPE_SATURATING for fixed-point types.
9637 2017-03-09  Richard Biener  <rguenther@suse.de>
9639         PR ipa/79970
9640         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
9641         alignment of BLKmode params.
9643 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9645         PR target/79913
9646         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
9647         (VALL_NO_V2Q): Likewise.
9648         (VDQF_DF): Delete.
9649         * config/aarch64/aarch64-simd.md
9650         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
9651         iterator.
9652         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
9653         VALL_NO_V2Q mode iterator.
9654         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
9656 2017-03-09  Martin Liska  <mliska@suse.cz>
9658         PR tree-optimization/79631
9659         * tree-chkp-opt.c (chkp_is_constant_addr): Call
9660         tree_int_cst_sign_bit just for INTEGER constants.
9662 2017-03-09  Martin Liska  <mliska@suse.cz>
9664         PR target/65705
9665         PR target/69804
9666         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
9667         sanitizers.
9669 2017-03-09  Marek Polacek  <polacek@redhat.com>
9671         PR c++/79672
9672         * tree.c (inchash::add_expr): Handle TREE_VEC.
9674 2017-03-09  Martin Liska  <mliska@suse.cz>
9676         PR ipa/79764
9677         (chkp_narrow_size_and_offset): New function.
9678         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
9679         (void chkp_parse_bit_field_ref): New function.
9680         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
9681         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
9683 2017-03-09  Martin Liska  <mliska@suse.cz>
9685         PR ipa/79761
9686         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
9687         (chkp_find_bounds_1): Remove gcc_unreachable.
9689 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
9691         PR sanitizer/79944
9692         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
9693         BUILT_IN_SYNC*, determine the access type from the size suffix and
9694         always build a MEM_REF with that type.  Handle forgotten
9695         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
9697         PR target/79932
9698         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
9699         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
9700         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
9701         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
9702         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
9703         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
9704         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
9705         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
9706         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
9707         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
9708         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
9709         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
9710         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
9711         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
9712         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
9713         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
9714         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
9715         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
9716         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
9717         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
9718         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
9719         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
9720         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
9721         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
9722         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
9723         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
9724         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
9725         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
9726         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
9727         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
9728         definitions outside of __OPTIMIZE__ guarded section.
9730         PR target/79932
9731         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
9732         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
9733         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
9734         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
9735         guarded section.
9737 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9739         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
9740         ("vfenez<mode>"): Add missing constraints.
9742 2017-03-08  Martin Sebor  <msebor@redhat.com>
9744         PR target/79928
9745         * config/nds32/nds32.c (nds32_option_override):
9746         Fix misspelled diagnostic.
9748 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9750         PR c/79940
9751         * gimplify.c (gimplify_omp_for): Replace index var in outer
9752         taskloop statement with an artificial variable and add
9753         OMP_CLAUSE_PRIVATE clause for it.
9755 2017-03-08  Richard Biener  <rguenther@suse.de>
9757         PR tree-optimization/79955
9758         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
9759         for accesses that are completely outside of the variable.
9761 2017-03-08  Andrew Haley  <aph@redhat.com>
9763         PR tree-optimization/79943
9764         * tree-ssa-loop-split.c (compute_new_first_bound): When
9765         calculating the new upper bound, (END-BEG) should be added, not
9766         subtracted.
9768 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9770         * config/avr/avr.md (setmemhi): Make sure match_dup
9771         operand number comes before match_scratch.
9773 2017-03-08  Richard Biener  <rguenther@suse.de>
9775         PR tree-optimization/79920
9776         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
9777         with ncopies == 1 to ...
9778         (vect_transform_slp_perm_load): ... here.  Properly compute
9779         all element loads by iterating VF times over the group.  Do
9780         not handle ncopies (computed in a broken way) in
9781         vect_create_mask_and_perm.
9783 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
9785         PR sanitizer/79904
9786         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
9787         is a uniform vector, use uniform_vector_p return value instead of
9788         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
9790 2017-03-07  Marek Polacek  <polacek@redhat.com>
9792         PR middle-end/79809
9793         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
9794         (alloca_call_type): Likewise.
9796 2017-03-07  Martin Liska  <mliska@suse.cz>
9798         * gcov.c (process_args): Put comment to correct location.
9800 2017-03-07  Martin Liska  <mliska@suse.cz>
9802         PR middle-end/68270
9803         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
9804         Use array_at_struct_end_p instead of DECL_CHAIN (field).
9805         (chkp_narrow_bounds_for_field): Likewise.
9806         (chkp_parse_array_and_component_ref): Pass one more argument to
9807         call.
9809 2017-03-07  Richard Biener  <rguenther@suse.de>
9811         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
9812         preheaders.
9814 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
9816         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
9817         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
9819 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9821         PR c/79855
9822         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
9823         to end of description.
9824         (PARAM_MAX_STORES_TO_MERGE): Likewise.
9826 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
9828         PR rtl-optimization/79901
9829         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
9830         ...
9831         (*avx512f_<code><mode>3<mask_name>): ... this.
9832         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
9833         iterator instead of VI8_AVX2_AVX512BW.
9835         PR rtl-optimization/79901
9836         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
9837         min/max expander, expand it using expand_vec_cond_expr.
9839         PR sanitizer/79897
9840         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
9841         temporary.
9843 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
9845         PR c++/79821
9846         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
9847         to void * for PCH reasons.
9848         * dwarf2out.c (output_loc_operands, output_die): Cast
9849         v.val_vec.array to unsigned char *.
9851 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
9853         PR target/77850
9854         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
9855         vector types.
9857 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
9859         PR rtl-optimization/79571
9860         * lra-constraints.c (process_alt_operands): Calculate static
9861         reject and subtract it from overall when only addresses will be
9862         reloaded.
9864 2017-03-06  Julia Koval  <julia.koval@intel.com>
9866         PR target/79793
9867         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
9868         incoming stack boundary to 128 for 64-bit targets.
9870 2017-03-06  Richard Biener  <rguenther@suse.de>
9872         PR tree-optimization/79894
9873         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
9874         to NULL after folding it.
9876 2017-03-06  Richard Biener  <rguenther@suse.de>
9878         PR tree-optimization/79824
9879         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
9880         check disabling peeling for gaps.
9882 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
9884         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9885         attributes): Document gettimeofday.
9887 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
9889         * config/s390/s390.c (s390_option_override_internal): Set
9890         PARAM_MIN_VECT_LOOP_BOUND
9892 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
9894         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
9895         * config/s390/s390.md: Likewise.
9897 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
9899         PR target/79812
9900         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
9901         (<avx2_avx512>_perm<mode>): Rename to ...
9902         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
9903         of VI8F_256_512.
9904         (<avx512>_perm<mode>_mask): Rename to ...
9905         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
9906         of VI8F_256_512.
9907         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
9908         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
9909         instead of VI8F_256_512.
9910         (avx512f_perm<mode>): New define_expand.
9911         (avx512f_perm<mode>_mask): Likewise.
9912         (avx512f_perm<mode>_1<mask_name>): New define_insn.
9913         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
9915 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9917         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
9918         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
9919         if_then_else.
9920         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
9922 2017-03-06  Martin Liska  <mliska@suse.cz>
9924         PR sanitize/79783
9925         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
9926         when having a SSA NAME w/o VAR_DECL assigned to it.
9928 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9930         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
9931         msa_dpsub_<su>_d): Fix MODE for vec_select.
9933 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
9935         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
9936         argument.
9937         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
9939 2017-03-06  Richard Biener  <rguenther@suse.de>
9941         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
9942         * plugin.c (register_plugin_info): Likewise.
9943         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
9945 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
9947         * config/i386/sse.md (sse_storehps, sse_storelps,
9948         avx_<castmode><avxsizesuffix>_<castmode>,
9949         avx512f_<castmode><avxsizesuffix>_<castmode>,
9950         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
9951         in condition that at least one operand is not a MEM.
9953 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
9955         PR middle-end/79805
9956         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
9957         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
9958         ECF_NOTHROW.
9959         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
9960         gimple_call_nothrow_p flag based on whether original builtin can throw.
9961         If it can, emit following stmts on the fallthrough edge.
9962         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
9963         don't create new bb if inserting just debug stmts on the edge, try to
9964         insert them on the fallthru bb or just reset debug stmts.
9966 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
9968         PR target/43763
9969         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
9970         restore recog_data (including the operand rtxes inside it) around
9971         the call to get_insn_template.
9973 2017-03-03  Martin Sebor  <msebor@redhat.com>
9975         PR tree-optimization/79699
9976         * context.c (context::~context): Free MPFR caches to avoid
9977         a memory leak on program exit.
9979 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9981         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
9982         Use wide_int::ulow () instead of .elt (0).
9984 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
9986         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
9987         (*pushxf): Limit oF constraint to 32bit targets and add oC
9988         constraint for 64bit targets.
9989         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
9990         (*pushdf): Change rmF constraint to rmC.
9992 2017-03-03  Martin Liska  <mliska@suse.cz>
9994         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
9995         Remove unused variable.
9997 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
9999         PR target/79807
10000         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
10001         is a memory operand, increase num_memory.
10002         (ix86_expand_args_builtin): Likewise.
10004 2017-03-03  Jan Hubicka  <jh@suse.cz>
10006         PR lto/79760
10007         * ipa-devirt.c (maybe_record_node): Properly handle
10008         __cxa_pure_virtual visibility.
10010 2017-03-03  Martin Liska  <mliska@suse.cz>
10012         PR tree-optimization/79803
10013         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
10014         assert.
10015         (pass_loop_prefetch::execute): Disabled optimization if an
10016         assumption about L1 cache size is not met.
10018 2017-03-03  Martin Liska  <mliska@suse.cz>
10020         PR rtl-optimization/79574
10021         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
10022         (hash_scan_set): Likewise.
10023         (dump_hash_table): Likewise.
10024         (hoist_code): Likewise.
10026 2017-03-03  Richard Biener  <rguenther@suse.de>
10028         * fixed-value.c (fixed_from_string): Restore use of elt (1)
10029         in place of uhigh ().
10030         (fixed_convert_from_real): Likewise.
10032 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
10034         PR target/79514
10035         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
10037 2017-03-03  Richard Biener  <rguenther@suse.de>
10039         PR middle-end/79818
10040         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
10041         TYPE_OVERFLOW_UNDEFINED check.
10043 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10045         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
10046         numbers.
10047         (vector_ae_<mode>_p): Likewise.
10048         (vector_nez_<mode>_p): Likewise.
10049         (vector_ne_v2di_p): Likewise.
10050         (vector_ae_v2di_p): Likewise.
10051         (vector_ne_<mode>_p): Likewise.
10052         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
10053         numbers.
10054         (vsx_tsqrt<mode>2_fe): Likewise.
10056 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
10058         PR target/79514
10059         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
10061 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
10063         PR rtl-optimization/79780
10064         * cprop.c (one_cprop_pass): When second and further conditional trap
10065         in a single basic block is turned into an unconditional trap, turn it
10066         into a deleted note to avoid RTL verification failures.
10068 2017-03-02  Richard Biener  <rguenther@suse.de>
10070         * fold-const.c (const_binop): Use ulow () instead of elt (0).
10072 2017-03-02  Richard Biener  <rguenther@suse.de>
10074         PR tree-optimization/79345
10075         PR c++/42000
10076         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
10077         param and abort the walk, returning -1 if it is hit.
10078         (walk_aliased_vdefs): Take a limit param and pass it on.
10079         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
10080         defaulting to 0 and return a signed int.
10081         * tree-ssa-uninit.c (struct check_defs_data): New struct.
10082         (check_defs): New helper.
10083         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
10084         about uninitialized memory.
10085         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
10086         bogus uninitialized warning.
10087         (fixed_convert_from_real): Likewise.
10089 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
10091         PR tree-optimization/66768
10092         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
10093         iv_use if base object can't be determined.
10095 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
10097         PR tree-optimization/79345
10098         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
10099         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
10100         (get_pattern_stats): Initialize it.
10101         * genemit.c (gen_expand): Verify match_scratch numbers come after
10102         match_operand/match_dup numbers.
10103         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
10104         match_scratch numbers.
10105         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
10106         Likewise.
10107         * config/s390/s390.md (trunctdsd2): Likewise.
10109 2017-03-02  Richard Biener  <rguenther@suse.de>
10111         * wide-int.h (wide_int_storage::operator=): Implement in terms
10112         of wi::copy.
10114 2017-03-02  Richard Biener  <rguenther@suse.de>
10116         PR tree-optimization/79777
10117         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
10118         the to insert expression to sth existing.
10120 2017-03-01  Martin Sebor  <msebor@redhat.com>
10122         PR middle-end/79692
10123         * gimple-ssa-sprintf.c
10124         (directive::known_width_and_precision): New function.
10125         (format_integer): Use it.
10126         (get_mpfr_format_length): Consider the full range of precision
10127         when computing %g output with the # flag.  Set the likely byte
10128         count to 3 rather than 1 when precision is indeterminate.
10129         (format_floating): Correct the lower bound of precision.
10131 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10133         * doc/invoke.texi: Document default code model for 64-bit Linux.
10135 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
10137         PR target/79752
10138         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
10139         udiv rather than div since input pattern is unsigned.
10141 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
10143         * config/i386/i386.c (print_reg): Warn for values of
10144         unsupported size in integer register.
10146 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10148         PR target/79439
10149         * config/rs6000/predicates.md (current_file_function_operand): Do
10150         not allow self calls to be local if the function is replaceable.
10152 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10154         PR target/79395
10155         * config/rs6000/altivec.h (vec_ctz and others): Change the
10156         preprocessor macro that controls conditional compilation from
10157         _ARCH_PWR9 to __POWER9_VECTOR__.
10158         (vec_all_ne): Change parameterization of __altivec_scalar_pred
10159         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
10160         control (instead of _ARCH_PWR9 control) so that template
10161         definition uses power9-specific function.
10162         (vec_any_eq): Likewise.
10163         (vec_all_ne): Change macro definition to use a power9-specific
10164         expansion under #ifdef __POWER9_VECTOR__ control (instead of
10165         _ARCH_PWR9 control).
10166         (vec_any_eq) Likewise.
10167         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
10168         expansion for CMPNEF to remove support for xvcmpnesp instruction.
10169         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
10170         support for xvcmpnedp instruction.
10171         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
10172         macro expansion so that Power9 implementation of vec_all_ne does
10173         not use the AltiVec predicate framework.
10174         (VCMPNEH_P): Likewise.
10175         (VCMPNEW_P): Likewise.
10176         (VCMPNED_P): Likewise.
10177         (VCMPNEFP_P): Likewise.
10178         (VCMPNEDP_P): Likewise.
10179         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
10180         implementation of vec_any_eq to not use AltiVec predicate
10181         framework.
10182         (VCMPAEH_P): Likewise.
10183         (VCMPAEW_P): Likewise.
10184         (VCMPAED_P): Likewise.
10185         (VCMPAEFP_P): Likewise.
10186         (VCMPAEDP_P): Likewise.
10187         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
10188         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
10189         not use the AltiVec predicate framework.
10190         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
10191         of vec_any_eq to not use AltiVec predicate framework.
10192         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
10193         support for predefined __POWER9_VECTOR__ macro to indicate that
10194         Power9 instruction selection is enabled.
10195         (altivec_overloaded_builtins): Remove extraneous
10196         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
10197         function argument types RS6000_BTI_bool_V16QI and
10198         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
10199         entry for overloaded function argument types RS6000_BTI_bool_V4SI
10200         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
10201         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
10202         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
10203         Power9 for implementations of vec_cmpne.  Change the signature for
10204         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
10205         (representing vec_all_ne) to remove the previously described first
10206         argument of type RS6000_BTI_INTSI, as this was an artifact of
10207         reliance on the AltiVec predicate framework, which is no longer
10208         used in the implementation of these functions.  Add
10209         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
10210         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
10211         since, unlike the AltiVec predicate framework implementation, we
10212         do not share function descriptors between vec_alle and vec_anyeq.
10213         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
10214         set of modes that receive special treatment even when
10215         TARGET_P9_VECTOR is true.  The special treatment emits code that
10216         does not depend on Power9 instructions.
10217         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
10218         define_expand to not rely on AltiVec predicate framework.
10219         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
10220         function.
10221         (vector_ne_v2di_p): Change this define_expand to not rely on
10222         AltiVec predicate framework.
10223         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
10224         function.
10225         (vector_ne_<mode>_p): Change this define_expand to not rely on
10226         AltiVec predicate framework.
10227         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
10228         function.
10229         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
10230         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
10231         define_insn pattern.
10232         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
10233         define_insn pattern because the xvcmpne<VSs>. instruction is not
10234         supported.
10235         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
10236         instruction is not supported.
10238 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10240         * config/nvptx/nvptx.c: Include intl.h.
10242 2017-03-01  Martin Jambor  <mjambor@suse.cz>
10244         PR lto/78140
10245         * ipa-prop.h (ipa_bits): Removed field known.
10246         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
10247         to pointers.  Adjusted their comments to warn about their sharing.
10248         (ipcp_transformation_summary): Change bits to a vector of pointers.
10249         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
10250         (ipa_get_ipa_bits_for_value): Declare.
10251         * tree-vrp.h (value_range): Mark as GTY((for_user)).
10252         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
10253         (ipa_bits_hash_table): Likewise.
10254         (ipa_vr_ggc_hash_traits): Likewise.
10255         (ipa_vr_hash_table): Likewise.
10256         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
10257         being pointers and vr_known being removed.
10258         (ipa_set_jf_unknown): Likewise.
10259         (ipa_get_ipa_bits_for_value): New function.
10260         (ipa_set_jfunc_bits): Likewise.
10261         (ipa_get_value_range): New overloaded functions.
10262         (ipa_set_jfunc_vr): Likewise.
10263         (ipa_compute_jump_functions_for_edge): Use the above functions to
10264         construct bits and vr parts of jump functions.
10265         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
10266         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
10267         exist.
10268         (ipcp_grow_transformations_if_necessary): Also allocate
10269         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
10270         exist.
10271         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
10272         them.  Fix too long lines.
10273         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
10274         vr_known being removed.
10275         (ipa_read_jump_function): Use new setter functions to construct bits
10276         and vr parts of jump functions or set them to NULL.
10277         (write_ipcp_transformation_info): Adjust for bits being pointers.
10278         (read_ipcp_transformation_info): Likewise.
10279         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
10280         space.
10281         Include gt-ipa-prop.h.
10282         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
10283         being pointers.
10284         (ipcp_store_bits_results): Likewise.
10285         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
10286         Do not write to existing jump functions but use a temporary instead.
10288 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10290         PR c++/79681
10291         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
10292         attempt to use its first operand as BIT_FIELD_REF base.
10294 2017-03-01  Richard Biener  <rguenther@suse.de>
10296         PR middle-end/79721
10297         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
10298         interpolating formula in wrapping arithmetic.
10299         (chrec_apply): Convert chrec_evaluate return value to wanted type.
10301 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
10303         PR tree-optimization/79734
10304         * tree-vect-generic.c (expand_vector_condition): Optimize
10305         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
10306         Handle VEC_COND_EXPR where comparison has different inner width from
10307         type's inner width.
10309 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
10311         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
10312         markup, and similar issues.  Remove @opindex entries for things
10313         that aren't options.  Add missing -mmpy-option entries.
10315 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10317         PR tree-optimization/79737
10318         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
10319         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
10320         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
10321         instead of byte_size.  Formatting fix.
10322         (shift_bytes_in_array_right): Formatting fix.
10324 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10326         PR target/79749
10327         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
10328         condition on optimize for the leaf function test.
10330 2017-02-28  Martin Liska  <mliska@suse.cz>
10332         PR lto/79625
10333         * read-rtl-function.c (function_reader::handle_unknown_directive):
10334         Bail out when one uses -flto.
10336 2017-02-28  Martin Liska  <mliska@suse.cz>
10338         * common.opt: Replace space with tabular for options of <number>
10339         type.
10340         * config/i386/i386.opt: Show <number> value for
10341         -mlarge-data-threshold.
10342         * opts.c (print_filtered_help): Do not display number in hexadecimal
10343         format.
10345 2017-02-28  Martin Liska  <mliska@suse.cz>
10347         * common.opt: Fix --help=option -Q for options which are of
10348         an enum type.
10350 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
10352         * config/i386/i386.c (print_reg): Error out for values
10353         of 8-bit size in invalid integer register.
10355 2017-02-28  Martin Sebor  <msebor@redhat.com>
10357         PR tree-optimization/79691
10358         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
10360 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10362         PR target/79729
10363         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
10364         gcc_unreachable with output_operand_lossage.
10366 2017-02-28  Richard Biener  <rguenther@suse.de>
10368         PR tree-optimization/79740
10369         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
10370         inserts.
10371         (visit_nary_op): Insert the nary into the hashtable if we
10372         pattern-matched sth.
10373         * tree-ssa-pre.c (eliminate_insert): Robustify.
10375 2017-02-28  Richard Biener  <rguenther@suse.de>
10377         PR middle-end/79731
10378         * fold-const.c (decode_field_reference): Reject out-of-bound
10379         accesses.
10381 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
10383         * config/i386/i386.c: Include intl.h.
10384         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
10385         instead of just cond ? "..." : "...".
10386         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
10387         * coverage.c (read_counts_file): Likewise.
10388         * omp-offload.c: Include intl.h.
10389         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
10390         of just cond ? "..." : "...".
10391         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
10392         of just cond ? "..." : "...".
10394 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
10396         PR target/79742
10397         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
10398         entry, if present.
10399         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
10400         'tune for' CPU name.
10401         * config/arm/arm-cpu-data.h: Regenerated.
10403 2017-02-28  Richard Biener  <rguenther@suse.de>
10405         PR tree-optimization/79732
10406         * tree-inline.c (expand_call_inline): Do not shadow var.
10408 2017-02-28  Richard Biener  <rguenther@suse.de>
10410         PR tree-optimization/79723
10411         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
10412         address-space properly.
10414 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
10416         * doc/optinfo.texi (Optimization groups): Fix option used for
10417         OPTGROUP_ALL.
10418         * doc/invoke.texi (-fopt-info): Document "omp".
10419         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
10420         (OPTGROUP_ALL): Add OPTGROUP_OMP.
10421         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
10422         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
10423         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
10425         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
10426         all users.
10427         * dumpfile.c (optgroup_options): Instead of "openmp", associate
10428         OPTGROUP_OMP with "omp".
10430 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
10432         PR target/79544
10433         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
10434         for arithmetic shift of unsigned V2DI.
10436 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
10438         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
10439         arc/linux.h headers.
10440         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
10441         (LINK_SPEC): Likewise.
10442         (ARC_TLS_EXTRA_START_SPEC): Likewise.
10443         (EXTRA_SPECS): Likewise.
10444         (STARTFILE_SPEC): Likewise.
10445         (ENDFILE_SPEC): Likewise.
10446         (LIB_SPEC): Likewise.
10447         (TARGET_SDATA_DEFAULT): Likewise.
10448         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
10449         (MULTILIB_DEFAULTS): Likewise.
10450         (DWARF2_UNWIND_INFO): Likewise.
10451         * config/arc/big.h: New file.
10452         * config/arc/elf.h: Likewise.
10453         * config/arc/linux.h: Likewise.
10454         * config/arc/t-uClibc: Remove.
10456 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
10458         PR tree-optimization/77536
10459         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
10460         (tree_transform_and_unroll_loop): Use above function to compute the
10461         estimated niter of unrolled loop and use it when scaling profile.
10462         Also use count info rather than frequency if it's non-zero.
10463         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
10464         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
10465         (vect_transform_loop): Call above function.
10467 2017-02-27  Richard Biener  <rguenther@suse.de>
10469         PR tree-optimization/45397
10470         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
10471         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
10472         (visit_nary_op): Add pattern matching for CSEing sign-changed
10473         or truncated operations with wider ones.
10475 2017-02-27  Richard Biener  <rguenther@suse.de>
10477         PR tree-optimization/79690
10478         * tree-vect-stmts.c (vectorizable_store): Use vector type
10479         built from the DR with address-space.
10481 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10483         * doc/invoke.texi (Optimize Options): Refine the description
10484         of asan-use-after-return.
10486 2017-02-25  Alan Modra  <amodra@gmail.com>
10488         PR rtl-optimization/79584
10489         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
10490         base, not ad->base_term, the reg within base.  Remove assertion
10491         that ad->base == ad->base_term.  Replace gen_int_mode using
10492         bogus mode with const0_rtx.
10494 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
10496         PR middle-end/79396
10497         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
10498         FMA_EXPR like tcc_binary or tcc_unary.
10500         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
10502         PR debug/77589
10503         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
10504         bitfield.
10505         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
10506         (output_loc_operands): Handle DW_OP_call_ref and
10507         DW_OP_GNU_variable_value.
10508         (struct variable_value_struct): New type.
10509         (struct variable_value_hasher): Likewise.
10510         (variable_value_hash): New variable.
10511         (string_types): Remove.
10512         (copy_loc_descr): New function.
10513         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
10514         (prepend_loc_descr_to_each): New function.
10515         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
10516         instead of add_loc_descr_to_each if the first argument is single
10517         location list and the second has multiple.
10518         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
10519         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
10520         when looking for variable value which doesn't have other location info.
10521         (loc_list_from_tree): Formatting fix.
10522         (gen_array_type_die): Simplify DW_AT_string_length handling.
10523         (adjust_string_types): Remove.
10524         (gen_subprogram_die): Don't call adjust_string_types nor test/set
10525         string_types.  Call resolve_variable_values.
10526         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
10527         (resolve_addr_in_expr): Likewise.  Add A argument.
10528         (copy_deref_exprloc): Remove deref argument.  Adjust for the
10529         original expression being DW_OP_GNU_variable_value with optionally
10530         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
10531         optionally after it.
10532         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
10533         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
10534         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
10535         (variable_value_hasher::hash, variable_value_hasher::equal): New
10536         methods.
10537         (resolve_variable_value_in_expr, resolve_variable_value,
10538         resolve_variable_values, note_variable_value_in_expr,
10539         note_variable_value): New functions.
10540         (dwarf2out_early_finish): Call note_variable_value on all toplevel
10541         DIEs.
10543 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
10545         PR c/79677
10546         * opts.h (handle_generated_option): Add GENERATED_P argument.
10547         * opts-common.c (handle_option): Adjust function comment.
10548         (handle_generated_option): Add GENERATED_P argument, pass it to
10549         handle_option.
10550         (control_warning_option): Pass false to handle_generated_option
10551         GENERATED_P.
10552         * opts.c (maybe_default_option): Pass true to handle_generated_option
10553         GENERATED_P.
10554         * optc-gen.awk: Likewise.
10556 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10558         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
10559         a REG, look at the REG it is a SUBREG of.
10560         (splitter for cmpeqsi_t): Ditto.
10562 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10564         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
10565         the special USEs with the pattern of the insn, not the insn itself.
10567 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
10569         PR target/79473
10570         * doc/invoke.texi: Document -mload-store-pairs.
10572 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10573             Sandra Loosemore  <sandra@codesourcery.com>
10575         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
10576         argument isn't a CONST_INT.
10577         (nios2_alternate_compare_const): Assert op is a CONST_INT.
10578         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
10579         (nios2_validate_compare): Bypass alternate compare logic if *op2
10580         is not a CONST_INT.
10581         (ldstwm_operation_p): Return false if first_base is not a REG or
10582         if first_offset is not a CONST_INT.
10584 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10586         * config/cris/cris.md: Use correct operand in a define_peephole2.
10588 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10590         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
10592 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
10594         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
10595         this_insn if it is an INSN or JUMP_INSN.
10596         (force_offsettable): Look at base, not at addr.
10597         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
10598         on things that aren't necessarily CONST_INTs.
10600 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
10602         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
10603         -mfpmath=sse is the default also for x86-32 targets with SSE2
10604         instruction set when @option{-ffast-math} is enabled
10606 2017-02-24  Jeff Law  <law@redhat.com>
10608         PR rtl-optimizatoin/79286
10609         * ira.c (update_equiv_regs): Drop may_trap_p exception to
10610         dominance test.
10612 2017-02-24  Richard Biener  <rguenther@suse.de>
10614         PR tree-optimization/79389
10615         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
10616         debug insns.
10618 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
10620         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
10621         function comment to reflect reality.
10622         (loop_exits_before_overflow): Fix typo in function description.
10624 2017-02-24  Richard Biener  <rguenther@suse.de>
10626         PR tree-optimization/79389
10627         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
10628         properly that a threading opportunity exists.  Detect conditional
10629         copy/constant propagation opportunities.
10631 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
10633         * config/visium/visium.md (type): Add trap.
10634         (b): New mode attribute.
10635         (*btst): Rename into...
10636         (*btst<mode>): ...this and adjust.
10637         (*cbranchsi4_btst_insn): Rename into...
10638         (*cbranch<mode>4_btst_insn): ...this and adjust.
10639         (trap): New define_insn.
10641 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
10643         PR tree-optimization/79389
10644         * ifcvt.c (struct noce_if_info): Add rev_cond field.
10645         (noce_reversed_cond_code): New function.
10646         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
10647         reversed_comparison_code.  Formatting fix.
10648         (noce_try_store_flag): Test rev_cond != NULL in addition to
10649         reversed_comparison_code.
10650         (noce_try_store_flag_constants): Likewise.
10651         (noce_try_store_flag_mask): Likewise.
10652         (noce_try_addcc): Use rev_cond if non-NULL instead of
10653         reversed_comparison_code.
10654         (noce_try_cmove_arith): Likewise.  Formatting fixes.
10655         (noce_try_minmax, noce_try_abs): Clear rev_cond.
10656         (noce_find_if_block): Initialize rev_cond.
10657         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
10658         instead of false as last argument never attempt to reverse it
10659         afterwards.
10661 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
10663         PR tree-optimization/79663
10664         * tree-predcom.c (combine_chains): Process refs in reverse order
10665         only for ZERO length chains, and add explaining comment.
10667 2017-02-23  Jeff Law  <law@redhat.com>
10669         PR tree-optimization/79578
10670         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
10671         in call to operand_equal_p.
10673 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
10675         PR target/71017
10676         * config/i386/cpuid.h: Fix another undefined behavior.
10678 2017-02-23  Richard Biener  <rguenther@suse.de>
10680         PR tree-optimization/79683
10681         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
10682         vector types for data-refs.
10684 2017-02-23  Martin Liska  <mliska@suse.cz>
10686         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
10688 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
10690         PR middle-end/79665
10691         * internal-fn.c (get_range_pos_neg): Moved to ...
10692         * tree.c (get_range_pos_neg): ... here.  No longer static.
10693         * tree.h (get_range_pos_neg): New prototype.
10694         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
10695         are known to be in between 0 and signed maximum inclusive, try to
10696         expand both unsigned and signed divmod and use the cheaper one from
10697         those.
10699 2017-02-22  Jeff Law  <law@redhat.com>
10701         PR tree-optimization/79578
10702         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
10703         to compare base operands.
10705 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
10707         PR target/79211
10708         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
10709         gpc_reg_operand instead of fpr_reg_operand.
10711 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
10713         * config/mips/mips.c (mips_return_in_memory): Force FP
10714         vector types to be returned in memory for o32 ABI.
10716 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
10718         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
10719         instead of DW_TAG_member for static data member declarations and don't
10720         set no_linkage_name for static inline data members.
10721         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
10722         to DW_TAG_member.
10724 2017-02-22  Martin Liska  <mliska@suse.cz>
10726         * doc/invoke.texi: Replace inequality signs with square brackets
10727         for -Wnormalized.
10729 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10731         PR tree-optimization/68644
10732         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
10734 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
10736         PR target/78660
10737         * lra-constraints.c (simplify_operand_subreg): Handle
10738         WORD_REGISTER_OPERATIONS targets.
10740 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
10742         PR target/70465
10743         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
10744         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
10745         elimination by swapping fld*.
10747 2017-02-22  Richard Biener  <rguenther@suse.de>
10749         PR tree-optimization/79673
10750         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
10751         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
10752         irrelevant address-space qualifiers and avoiding a
10753         ADDR_SPACE_CONVERT_EXPR from fold_convert.
10755 2017-02-22  Richard Biener  <rguenther@suse.de>
10757         PR tree-optimization/79666
10758         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
10759         to not symbolically negate if that may introduce undefined
10760         overflow.
10762 2017-02-22  Martin Liska  <mliska@suse.cz>
10764         PR lto/79587
10765         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
10766         * data-streamer-out.c (streamer_write_gcov_count_stream):
10767         Likewise.
10768         * value-prof.c (stream_out_histogram_value): Make assert more
10769         precise based on type of counter.
10771 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
10773         PR target/79593
10774         * config/i386/i386.md (standard_x87sse_constant_load splitter):
10775         Use nonimmediate_operand instead of memory_operand for operand 1.
10776         (float-extend standard_x87sse_constant_load splitter): Ditto.
10778 2017-02-21  Jeff Law  <law@redhat.com>
10780         PR tree-optimization/79621
10781         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
10782         blocks with edges to themselves.
10784 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10786         PR target/79633
10787         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
10788         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
10789         Use gimple_call_builtin_p.
10791         PR target/79570
10792         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
10793         on temporarily removed DEBUG_INSNs.
10795         PR tree-optimization/79649
10796         * tree-loop-distribution.c (classify_partition): Give up on
10797         non-generic address space loads/stores.
10799 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
10801         * doc/loop.texi (Loop manipulation): Remove nonexistent
10802         tree_ssa_loop_version from the documentation.
10803         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
10805 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10807         PR target/79494
10808         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
10809         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
10810         * config/rs6000/rs6000.c: Include except.h.
10811         (rs6000_expand_split_stack_prologue): Call
10812         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
10814 2017-02-21  Martin Jambor  <mjambor@suse.cz>
10816         PR lto/79579
10817         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
10818         have been analyzed.
10820 2017-02-21  Martin Jambor  <mjambor@suse.cz>
10822         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
10823         for backward compatibility only.
10824         * doc/invoke.texi (Option Summary): Remove all references to
10825         -fipa-cp-alignment.
10827 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
10829         PR target/78660
10830         Revert:
10831         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10833         * lra-constraints.c (curr_insn_transform): Handle
10834         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
10836 2017-02-21  Martin Liska  <mliska@suse.cz>
10838         * config/i386/i386.opt: Replace -masm-dialect with -masm.
10840 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
10842         PR translation/79638
10843         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
10845 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
10847         PR ada/67205
10848         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
10849         (arm_function_ok_for_sibcall): Return false for an indirect call by
10850         descriptor if all the argument registers are used.
10851         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
10852         alignment of the function.
10854 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
10856         PR tree-optimization/61441
10857         * simplify-rtx.c (simplify_const_unary_operation): For
10858         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
10859         the sNaN unmodified.
10861 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10863         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
10864         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
10865         instead of SYSTEM_HEADER_DIR.
10867 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
10868             Martin LiÅ¡ka  <mliska@suse.cz>
10870         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
10871         Fix typos and grammar, use active voice, and clarify.
10873 2017-02-20  Marek Polacek  <polacek@redhat.com>
10875         PR middle-end/79537
10876         * gimplify.c (gimplify_expr): Handle unused *&&L;.
10878         PR sanitizer/79558
10879         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
10881 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
10883         PR target/79568
10884         * config/i386/i386.c (ix86_expand_builtin): Handle
10885         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
10886         ix86_builtins_isa[fcode].isa as a requirement of those
10887         flags and any other flag in the bitmask.
10888         (ix86_init_mmx_sse_builtins): Use 0 instead of
10889         ~OPTION_MASK_ISA_64BIT as mask.
10890         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
10891         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
10892         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
10893         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
10895 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10897         PR target/78012
10898         * lra-constraints.c (split_reg): Check requested split mode
10899         is supported by the register.
10901 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10903         * lra-constraints.c (simplify_operand_subreg): Remove early
10904         return false.
10906 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10908         PR target/78660
10909         * lra-constraints.c (curr_insn_transform): Tighten condition
10910         for converting SUBREG reloads from OP_OUT to OP_INOUT.
10912 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
10914         PR target/78660
10915         * lra-constraints.c (curr_insn_transform): Handle
10916         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
10918 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
10920         Revert:
10921         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
10923         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10925 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
10927         PR c++/69523
10928         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
10929         description.
10931 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10933         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
10934         for FMA_EXPR.
10936 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
10938         * final.c (last_columnnum, override_columnnum): New variables.
10939         (final_start_function): Set last_columnnum, pass it to begin_prologue
10940         hook and pass 0 to dwarf2out_begin_prologue.
10941         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
10942         to source_line debug hook.
10943         (notice_source_line): Compute last_columnnum and for debug_column_info
10944         return true on column changes.
10945         * debug.h (struct gcc_debug_hooks): Add column argument to
10946         source_line and begin_prologue hooks.
10947         (debug_nothing_int_charstar_int_bool): Remove prototype.
10948         (debug_nothing_int_int_charstar,
10949         debug_nothing_int_int_charstar_int_bool): New prototypes.
10950         (dwarf2out_begin_prologue): Add column argument.
10951         * debug.c (do_nothing_debug_hooks): Adjust source_line and
10952         begin_prologue hooks.
10953         (debug_nothing_int_charstar_int_bool): Remove.
10954         (debug_nothing_int_int_charstar,
10955         debug_nothing_int_int_charstar_int_bool): New functions.
10956         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
10957         through to dwarf2out_source_line.
10958         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
10959         (dwarf2out_source_line): Add column argument, emit it if requested.
10960         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
10961         arguments.
10962         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
10963         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
10964         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
10965         through to dwarf2out_begin_prologue.
10966         (vmsdbgout_source_line): Add column argument, pass it through to
10967         dwarf2out_source_line.
10968         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
10969         dbxout_source_line caller.
10970         (dbxout_source_line): Add column argument.
10972         * common.opt (gno-column-info, gcolumn-info): New options.
10973         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
10974         (check_die): Also test for multiple DW_AT_decl_column attributes.
10975         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
10976         DW_AT_decl_column if requested.
10977         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
10978         if requested.
10979         (gen_variable_die): Likewise.
10980         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
10981         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
10983         PR target/79569
10984         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
10985         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
10986         (ix86_handle_option): Handle OPT_m3dnowa.
10987         * doc/invoke.texi (-m3dnowa): Document.
10988         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
10989         -m3dnowa instead of -m3dnow -march=athlon.
10991         PR target/79559
10992         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
10993         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
10995 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10997         PR target/79261
10998         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
10999         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
11000         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
11001         generator for vsx_xxpermdi_<mode>_be.
11002         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
11003         force big-endian semantics.
11004         (vsx_xxpermdi_<mode>_be): New define_expand with same
11005         implementation as previous version of vsx_xxpermdi_<mode>.
11007 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
11009         PR tree-optimization/79327
11010         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
11011         variable, its initialization and use.
11013 2017-02-17  Julia Koval  <julia.koval@intel.com>
11015         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
11016         (OPTION_MASK_ISA_PKU_UNSET): New.
11017         (ix86_handle_option): Handle -mrdpid.
11018         * config/i386/cpuid.h (bit_RDPID): New.
11019         * config/i386/driver-i386.c (host_detect_local_cpu):
11020         Detect RDPID feature.
11021         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
11022         * config/i386/i386-c.c (ix86_target_macros_internal):
11023         Handle RDPID flag.
11024         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
11025         (ix86_valid_target_attribute_inner_p): Add "rdpid".
11026         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
11027         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
11028         * config/i386/i386.md (define_insn "rdpid"): New.
11029         * config/i386/i386.opt Add -mrdpid.
11030         * config/i386/immintrin.h (_rdpid_u32): New.
11032 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
11034         PR rtl-optimization/79541
11035         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
11036         instead of transforming it into USE.
11038 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
11040         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
11041         If HONOR_SNANS (SFmode) force the input to a register.
11042         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
11043         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
11044         an frsp or similar insn.
11046 2017-02-17  Martin Liska  <mliska@suse.cz>
11048         PR rtl-optimization/79577
11049         * params.def (selsched-max-sched-times): Increase minimum to 1.
11051 2017-02-17  Martin Liska  <mliska@suse.cz>
11053         PR rtl-optimization/79574
11054         * gcse.c (want_to_gcse_p): Prevent integer overflow.
11056 2017-02-17  Martin Liska  <mliska@suse.cz>
11058         PR tree-optimization/79529
11059         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
11060         ssa_defined_default_def_p to handle cases which are implicitly
11061         defined.
11062         * tree-ssa.c (ssa_defined_default_def_p): New function.
11063         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
11064         which are implicitly defined.
11065         * tree-ssa.h (ssa_defined_default_def_p): Declare.
11067 2017-02-17  Richard Biener  <rguenther@suse.de>
11069         PR middle-end/79576
11070         * params.def (max-ssa-name-query-depth): Limit to 10.
11072 2017-02-17  Richard Biener  <rguenther@suse.de>
11074         PR tree-optimization/79552
11075         * tree-ssa-structalias.c (visit_loadstore): Properly verify
11076         default defs.
11078 2017-02-17  Richard Biener  <rguenther@suse.de>
11080         PR bootstrap/79567
11081         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
11083 2017-02-17  Marek Polacek  <polacek@redhat.com>
11085         PR middle-end/79536
11086         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
11087         (fold_negate_expr): New wrapper.
11089 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
11091         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
11092         Correct terminology and de-emphasize pre-standard behavior.
11094 2017-02-16  Alan Modra  <amodra@gmail.com>
11096         PR rtl-optimization/79286
11097         * ira.c (def_dominates_uses): New function.
11098         (update_equiv_regs): Don't create an equivalence for insns that
11099         may trap where the register def does not dominate the use.
11101 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
11103         PR rtl-optimization/78127
11104         * lra.c (lra): Call lra_eliminate before finish the loop after
11105         lra_constraint.
11107 2017-02-16  Richard Biener  <rguenther@suse.de>
11109         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
11110         isl/isl_val.h.
11111         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
11112         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
11113         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
11114         (isl_val_int_from_wi): New function.
11115         (extract_affine_gmp): Rename to ...
11116         (extract_affine_wi): ... this, take a widest_int.
11117         (extract_affine_int): Just wrap extract_affine_wi.
11118         (add_param_constraints): Use isl_val_int_from_wi.
11119         (add_loop_constraints): Likewise, and extract_affine_wi.
11121 2017-02-15  Jeff Law  <law@redhat.com>
11123         PR middle-end/79521
11124         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
11125         ira_init_register_move_cost_if_necessary.
11127 2017-02-15  Martin Sebor  <msebor@redhat.com>
11129         PR middle-end/32003
11130         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
11131         removed in a prior commit.
11133 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
11135         PR tree-optimization/79347
11136         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
11137         counters during peeling.
11139 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
11141         * Makefile.in (site.exp): Remove "set ISLVER".
11143 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
11145         PR target/79487
11146         * real.c (real_from_integer): Call real_convert even for decimal.
11148 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11150         PR target/79421
11151         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
11153 2017-02-14  Andrew Pinski  <apinski@cavium.com>
11155         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
11156         cores and change the partno/implementer to be correct.
11157         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
11158         the 'B" as the implementer.
11159         * config/aarch64/aarch64-tune.md: Regenerate.
11161 2017-02-14  Carl Love  <cel@us.ibm.com>
11163         * config/rs6000/rs6000.c: Add case statement entry to make the
11164         xvcvuxdsp built-in argument unsigned.
11165         * config/rs6000/vsx.md: Fix the source and return operand types so they
11166         match the instruction definitions from the ISA document.  Fix typo
11167         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
11168         statement.
11170 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
11172         PR target/79282
11173         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
11174         member early_clobber_alts.
11175         * lra-lives.c (reg_early_clobber_p): New.
11176         (process_bb_lives): Use it.
11177         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
11178         (debug_operand_data): Initialize early_clobber_alts.
11179         (setup_operand_alternative): Set up early_clobber_alts.
11180         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
11181         alternatives to new_insn_reg.
11182         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
11183         it.
11184         (lra_update_insn_regno_info): Pass the new arg.
11186 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
11188         PR middle-end/79505
11189         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
11190         (new_oacc_loop_raw): Don't clear already cleared fields.
11192         PR target/79481
11193         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
11194         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
11195         _mm512_prefetch_i64gather_ps): New inline functions and macros.
11197 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
11199         PR target/79495
11200         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
11202 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
11204         PR target/79498
11205         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
11206         the extra instruction to the right place to store 128-bit constant
11207         when needed.
11209 2017-02-14  Martin Sebor  <msebor@redhat.com>
11211         PR middle-end/79448
11212         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
11213           warning for strings of unknown length.
11215 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
11217         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
11219 2017-02-14  Jeff Law  <law@redhat.com>
11221         PR target/79404
11222         * ira-costs.c (scan_one_insn): Initialize register move costs
11223         for pseudos seen in USE/CLOBBER insns.
11225         PR tree-optimization/79095
11226         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
11227         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
11228         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
11229         if the operands are known to be not equal, then the resulting range
11230         is ~[0,0].
11231         (intersect_ranges): If the new range is ~[0,0] and the old range is
11232         wide, then prefer ~[0,0].
11233         * tree-vrp.c (overflow_comparison_p_1): New function.
11234         (overflow_comparison_p): New function.
11235         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
11236         if NAME is used in an overflow test.
11237         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
11238         overflow check that can be expressed as an equality test, then adjust
11239         ops to be that equality test.
11241 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11243         * config/s390/s390-builtin-types.def: Remove flags argument.
11244         * config/s390/s390.c (s390_init_builtins): Likewise.
11246 2017-02-14  Martin Liska  <mliska@suse.cz>
11248         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
11249         vector.  Fix trailing white spaces.
11251 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
11253         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
11254         HFmode.
11256 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11258         PR rtl-optimization/68664
11259         * config/arm/arm.c (arm_sched_can_speculate_insn):
11260         New function.  Declare prototype.
11261         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
11263 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11265         PR rtl-optimization/68664
11266         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
11267         New function.
11268         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
11270 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
11272         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
11273         max skip bytes for function, loop and jump.
11275 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11277         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
11278         ABS_EXPR for gimple dump.
11280 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
11282         PR target/79462
11283         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
11285         PR tree-optimization/79408
11286         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
11287         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
11288         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
11289         also if rhs1 is INTEGER_CST.
11291 2017-02-14  Richard Biener  <rguenther@suse.de>
11293         PR middle-end/79432
11294         * tree-into-ssa.c (insert_phi_nodes): When the function can
11295         have abnormal edges rewrite SSA names with broken use-def
11296         dominance out of SSA and register them for PHI insertion.
11298 2017-02-13  Martin Sebor  <msebor@redhat.com>
11300         PR middle-end/79496
11301         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
11302         clearing info.nowrite flag when snprintf size argument is a range.
11304 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
11306         * cprop.c (cprop_jump): Add missing space in string literal.
11307         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
11308         (get_constraint_for_component_ref): Likewise.
11309         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11310         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
11311         * lra-constraints.c (process_alt_operands): Likewise.
11312         * ipa-inline.c (inline_small_functions): Likewise.
11313         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
11314         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
11315         * trans-mem.c (diagnose_tm_1_op): Likewise.
11316         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
11317         (grid_parallel_clauses_gridifiable): Likewise.
11319         * config/nvptx/mkoffload.c (process): Add space in between
11320         , and %d.
11322         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
11323         "MOD4_SSE_REGS" and "ALL_REGS".
11325         * spellcheck.c (test_data): Add , in between "foo" and "food".
11327 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11329         PR target/79449
11330         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
11331         boundary crossing check and subsequent code generation agree.
11333 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11335         * config/aarch64/aarch64.c (has_memory_op): Delete.
11336         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
11337         has_memory_op.
11339 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
11341         PR rtl-optimization/79388
11342         PR rtl-optimization/79450
11343         * combine.c (distribute_notes): When removing TEM_INSN for which
11344         corresponding dest has last value recorded, invalidate that last
11345         value.
11347 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11349         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
11350         of explicit '@'.  Add missing assembly comment marker on branch costs
11351         printout.
11353 2017-02-13  Nathan Sidwell  <nathan@acm.org>
11355         * gengtype-lex.l (<in_struct>): Add '/'.
11357 2017-02-13  Martin Liska  <mliska@suse.cz>
11359         PR c/79471
11360         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
11362 2017-02-13  Richard Biener  <rguenther@suse.de>
11364         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
11365         Remove.
11366         * configure: Re-generate.
11367         * config.in: Likewise.
11368         * graphite-dependences.c: Simplify as if
11369         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
11370         * graphite-isl-ast-to-gimple.c: Likewise.
11371         * graphite-optimize-isl.c: Likewise.
11372         * graphite-poly.c: Likewise.
11373         * graphite-sese-to-poly.c: Likewise.
11374         * graphite.h: Likewise.
11375         * toplev.c: Include isl/version.h and use isl_version () for
11376         printing the ISL version.
11377         * doc/install.texi: Update ISL requirement.
11379 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
11381         * doc/standards.texi (Standards): Update reference to
11382         Objective-C 2.0.
11384 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
11386         * doc/extend.texi (Named Address Spaces): sourceware.org now
11387         defaults to https.
11388         * doc/install.texi (Binaries): Ditto.
11389         (Specific): Ditto.
11391 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
11393         * doc/cpp.texi: Replace "stringify"/"stringification" with C
11394         standard terminology "stringize"/"stringizing" throughout.
11395         * doc/cppinternals.texi: Likewise.
11397 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
11399         * doc/extend.texi: Fix some spelling mistakes and typos.
11400         * doc/invoke.texi: Likewise.
11402 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
11404         PR ipa/79224
11405         * params.def (inline-min-speedup) Change from 10 to 8.
11407 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
11409         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
11410         4.5.
11412 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
11414         PR ipa/79224
11415         * ipa-inline-analysis.c (get_minimal_bb): New function.
11416         (record_modified): Use it.
11417         (remap_edge_change_prob): Handle also ancestor functions.
11419 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
11421         * doc/contrib.texi (Contributors): Remove broken link into
11422         the Mauve CVS repository.
11424 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
11426         PR middle-end/79454
11427         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
11428         result computation whenever lhs doesn't have vector mode, not
11429         just when it has BLKmode.
11431 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
11433         * doc/makefile.texi (profiledbootstrap): Refer to the
11434         installation instructions only in textual form.
11436 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11438         PR target/79295
11439         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
11441 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
11443         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
11444         (Specific): Update mingw-w64 reference.
11445         (Binaries): Ditto.
11446         (Specific): Remove broken link to Renesas RX processor.
11448 2017-02-10  Richard Biener  <rguenther@suse.de>
11450         * toplev.c (process_options): Do not mention obsolete graphite
11451         options when printing sorry message about missing graphite support.
11452         Mention -floop-nest-optimize.
11454 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
11456         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
11457         (vtst_p16): Likewise.
11458         (vtstq_p8): Likewise.
11459         (vtstq_p16): Likewise.
11460         (vtst_p64): New.
11461         (vtstq_p64): Likewise.
11462         * config/arm/arm_neon.h (vgetq_lane_p64): New.
11463         (vset_lane_p64): New.
11464         (vsetq_lane_p64): New.
11466 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
11468         PR tree-optimization/79411
11469         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
11470         stmt operands are SSA_NAMEs used in abnormal phis.
11471         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
11472         phis.
11474 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
11476         PR ipa/70795
11477         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
11478         flag if needed.
11480 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
11482         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
11484 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11486         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
11487         to avoid warning.
11489         PR c/79413
11490         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
11491         not arbitrary TREE_CONSTANT.
11493         PR c/79431
11494         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
11495         "omp declare target link" attribute unless is_global_var.
11496         * omp-offload.c (find_link_var_op): Likewise.
11498 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11499             Chung-Lin Tang  <cltang@codesourcery.com>
11501         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
11502         OMP_CLAUSE_TILE.
11503         (gimplify_adjust_omp_clauses): Don't delete TILE.
11504         (gimplify_omp_for): Deal with TILE.
11505         * internal-fn.c (expand_GOACC_TILE): New function.
11506         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
11507         (GOACC_TILE): New.
11508         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
11509         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
11510         element fields.
11511         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
11512         avoid DIV for outermost collapse var.
11513         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
11514         Remove out of date comments, fix whitespace.
11515         * omp-general.c (omp_extract_for_data): Deal with tiling.
11516         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
11517         adjust OLF_DIM_BASE value.
11518         (struct omp_for_data): Add tiling field.
11519         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
11520         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
11521         for auto loops.  Remove default auto determining, moved to
11522         oacc_loop_fixed_partitions.
11523         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
11524         stmts, add e_mask field.
11525         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
11526         (oacc_thread_numbers): Use oacc_dim_call.
11527         (oacc_xform_tile): New.
11528         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
11529         (finish_oacc_loop): Adjust for ifns vector.
11530         (oacc_loop_discover_walk): Append loop abstraction sites to list,
11531         add case for GOACC_TILE fns.
11532         (oacc_loop_xform_loop): Delete.
11533         (oacc_loop_process): Iterate over call list directly, and add
11534         handling for GOACC_TILE fns.
11535         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
11536         dump partitioning.
11537         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
11538         vector partitioning to outer loops.  Assign 2 partitions to loops
11539         when available. Add TILE handling.
11540         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
11541         (execite_oacc_device_lower): Process GOACC_TILE fns,
11542         ignore unknown specs.
11543         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
11544         * tree.c (omp_clause_num_ops): Adjust TILE ops.
11545         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
11547 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
11549         * configure.ac (ACX_BUGURL): Update.
11550         * configure: Regenerate.
11552 2017-02-09  Richard Biener  <rguenther@suse.de>
11554         PR tree-optimization/69823
11555         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11556         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
11558 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
11560         * config/arc/arc-c.def: Add __NPS400__ definition.
11561         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
11562         (TARGET_NPS400): Define.
11564 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
11566         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
11567         file.
11568         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
11569         pointer, arch_info.
11570         (arc_cpu_types): Fill the arch_info field with a pointer into the
11571         arc_arch_types table.
11572         (arc_selected_cpu): Declare.
11573         * config/arc/arc.c (arc_selected_cpu): Make global.
11574         (arc_selected_arch): Delete.
11575         (arc_base_cpu): Delete.
11576         (arc_override_options): Remove references to deleted variables,
11577         update access to arch information.
11578         (ARC_OPT): Update access to arch information.
11579         (ARC_OPTX): Likewise.
11580         * config/arc/arc.h (arc_base_cpu): Remove declaration.
11581         (TARGET_ARC600): Update access to arch information.
11582         (TARGET_ARC601): Likewise.
11583         (TARGET_ARC700): Likewise.
11584         (TARGET_EM): Likewise.
11585         (TARGET_HS): Likewise.
11586         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
11587         information.
11589 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
11591         PR target/78604
11592         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
11593         condition/operands for integer GE/LE/GEU/LEU operations.
11595 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
11597         PR translation/79397
11598         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
11599         of AltiVec.
11601 2017-02-08  Martin Jambor  <mjambor@suse.cz>
11603         PR ipa/79375
11604         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
11605         whether allocation happened.
11606         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
11607         nothing was allocated.
11609 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
11611         PR tree-optimization/79408
11612         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
11613         constant, but SSA_NAME with a known integer range, use the minimum
11614         of that range instead of op1 to determine if modulo can be replaced
11615         with its first operand.
11617 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11619         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
11621 2017-02-08  Richard Biener  <rguenther@suse.de>
11623         PR tree-optimization/71824
11624         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
11625         Check all loops contained in the merged region.
11627 2017-02-07  Andrew Pinski  <apinski@cavium.com>
11629         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
11631 2017-02-07  Andrew Pinski  <apinski@cavium.com>
11633         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
11634         (thunderxt88): Likewise.
11635         (thunderxt81): Disable LSE and change v8.1 to v8.
11636         (thunderxt83): Likewise.
11638 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
11639             Richard Biener  <rguenther@suse.de>
11641         PR middle-end/79399
11642         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
11643         type from int to size_t.
11644         * ira-costs.c (struct_costs_size): Change type from int to size_t.
11646 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
11648         PR rtl-optimization/79386
11649         * cprop.c (bypass_conditional_jumps): Initialize
11650         bypass_last_basic_block already before splitting bbs after
11651         unconditional traps...
11652         (bypass_conditional_jumps): ... rather than here.
11654         PR target/79299
11655         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
11656         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
11657         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
11658         fix -masm=intel patterns.
11660 2017-02-07  Richard Biener  <rguenther@suse.de>
11662         PR tree-optimization/79256
11663         PR middle-end/79278
11664         * builtins.c (get_object_alignment_2): Use min_align_of_type
11665         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
11666         and ADJUST_FIELD_ALIGN.
11668         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
11669         type parameter.
11670         * doc/tm.texi: Regenerate.
11671         * stor-layout.c (layout_decl): Adjust.
11672         (update_alignment_for_field): Likewise.
11673         (place_field): Likewise.
11674         (min_align_of_type): Likewise.
11675         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
11676         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
11677         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
11678         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
11679         * config/frv/frv.c (frv_adjust_field_align): Likewise.
11680         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
11681         * config/i386/i386.c (x86_field_alignment): Likewise.
11682         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
11683         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
11684         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
11685         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11686         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
11687         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
11688          Likewise.
11690         Revert
11691         2017-01-30  Richard Biener  <rguenther@suse.de>
11693         PR tree-optimization/79256
11694         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
11695         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
11696         alignment on TYPE.
11698 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
11700         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
11701         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
11702         builtins to SImode and emit a zero-extend, if necessary.
11704 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11706         * docs/invoke.texi (RISC-V Options): Alphabetize.
11708 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11710         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
11711         options.
11713 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
11715         * config/riscv/riscv.c: New file.
11716         * gcc/common/config/riscv/riscv-common.c: Likewise.
11717         * config.gcc: Likewise.
11718         * config/riscv/constraints.md: Likewise.
11719         * config/riscv/elf.h: Likewise.
11720         * config/riscv/generic.md: Likewise.
11721         * config/riscv/linux.h: Likewise.
11722         * config/riscv/multilib-generator: Likewise.
11723         * config/riscv/peephole.md: Likewise.
11724         * config/riscv/pic.md: Likewise.
11725         * config/riscv/predicates.md: Likewise.
11726         * config/riscv/riscv-builtins.c: Likewise.
11727         * config/riscv/riscv-c.c: Likewise.
11728         * config/riscv/riscv-ftypes.def: Likewise.
11729         * config/riscv/riscv-modes.def: Likewise.
11730         * config/riscv/riscv-opts.h: Likewise.
11731         * config/riscv/riscv-protos.h: Likewise.
11732         * config/riscv/riscv.h: Likewise.
11733         * config/riscv/riscv.md: Likewise.
11734         * config/riscv/riscv.opt: Likewise.
11735         * config/riscv/sync.md: Likewise.
11736         * config/riscv/t-elf-multilib: Likewise.
11737         * config/riscv/t-linux: Likewise.
11738         * config/riscv/t-linux-multilib: Likewise.
11739         * config/riscv/t-riscv: Likewise.
11740         * configure.ac: Likewise.
11741         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
11742         Waterman as RISC-V maintainers.
11743         * doc/install.texi: Add RISC-V entries.
11744         * doc/invoke.texi: Add RISC-V options section.
11745         * doc/md.texi: Add RISC-V constraints section.
11746         * configure: Regenerated.
11748 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11750         PR target/66144
11751         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
11752         false values to be constant vectors with all 0 or all 1 bits set.
11753         (vcondu<mode><mode>): Likewise.
11754         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
11755         predicate.
11756         (fpmask_comparison_operator): Update comment.
11757         (vecint_comparison_operator): New predicate.
11758         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
11759         vector conditionals when the true and false values are constant
11760         vectors with all 0 bits or all 1 bits set.
11762 2017-02-06  Martin Sebor  <msebor@redhat.com>
11764         PR  tree-optimization/79376
11765         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
11767 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
11769         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
11770         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
11771         to simplify split condition.
11773 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
11775         * omp-expand.c (oxpand_omp_atomic_fetch_op,
11776         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
11777         false.
11779 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
11781         PR rtl-optimization/68664
11782         * target.def (can_speculate_insn): New hook.
11783         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
11784         * doc/tm.texi: Regenerate.
11785         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
11786         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
11787         (rs6000_sched_can_speculate_insn): New function.
11789 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
11791         PR tree-optimization/79284
11792         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
11793         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
11794         vectorizable_mask_load_store, vectorizable_operation,
11795         vect_is_simple_cond, get_same_sized_vectype): Use it instead
11796         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
11797         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
11798         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
11799         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11800         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11801         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
11802         is_gimple_assign (stmt).  Replace another such test with
11803         is_gimple_assign (stmt).
11805 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
11807         PR target/78883
11808         * config/avr/avr.c (rtl-iter.h): Include it.
11809         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
11810         (avr_legitimate_combined_insn): ...and implementation.
11812 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11814         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
11815         * config/s390/s390.c (s390_const_operand_ok)
11816         (s390_canonicalize_comparison, s390_extract_part)
11817         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
11818         (s390_contiguous_bitmask_p, s390_rtx_costs)
11819         (legitimize_pic_address): Likewise.
11820         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
11821         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
11822         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
11823         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
11824         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
11826 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
11828         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
11829         REGNO($0) == REGNO($1).
11831 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11833         * config/s390/linux.h(SIZE_TYPE): Add comment.
11835 2017-02-06  Julian Brown  <julian@codesourcery.com>
11836             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
11837             Virendra Pathak  <virendra.pathak@broadcom.com>
11839         * config/aarch64/aarch64-cores.def: Change the scheduler
11840         to Thunderx2t99.
11841         * config/aarch64/aarch64.md: Include thunderx2t99.md.
11842         * config/aarch64/thunderx2t99.md: New file.
11844 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11846         * doc/standards.texi (Go Language): Update link to language
11847         standard.
11849 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
11851         * tree-eh.c (lower_resx): Sanitize profile.
11852         (cleanup_empty_eh_move_lp): Likewise.
11854 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
11856         PR tree-ssa/79347
11857         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
11858         ELSE_PROB.
11859         * cfgloopmanip.h (loop_version): Update prototype.
11860         * modulo-sched.c (sms_schedule): Update call of loop_version.
11861         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
11862         * tree-parloops.c (gen_parallel_loop): Likewise.
11863         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
11864         * tree-ssa-loop-split.c (split_loop): Likewise.
11865         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
11866         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
11868 2017-02-05  Martin Liska  <mliska@suse.cz>
11870         PR bootstrap/78985
11871         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
11872         variable to NULL.
11873         (print_operand_address): Initialize a struct to zero.
11875 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11877         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
11878         garbage collector only in textual form.
11880 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
11882         * doc/extend.texi (x86 specific memory model extensions for
11883         transactional memory): Simplify a phrase.
11885 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
11887         PR target/79353
11888         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
11889         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
11890         (atomic_storedi_1): Likewise.
11892 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
11894         PR tree-optimization/79338
11895         * tree-parloops.c (gather_scalar_reductions): Don't call
11896         vect_analyze_loop_form for loop->inner before destroying loop's
11897         loop_vinfo.
11899 2017-02-03  Martin Sebor  <msebor@redhat.com>
11901         PR tree-optimization/79327
11902         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
11903         when precision has resulted in leading zeros.
11904         (format_integer): Adjust the likely counter to assume an unknown
11905         argument that may be zero is non-zero.
11907 2017-02-03  Jason Merrill  <jason@redhat.com>
11909         PR c++/78689
11910         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
11911         avoid copying non-taken branch.
11913 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
11915         PR tree-optimization/79340
11916         * tree-vect-loop.c (vectorizable_reduction): Release
11917         vec_defs elements after safe_splicing them into other vectors.
11918         Formatting fixes.
11920         PR tree-optimization/79327
11921         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
11922         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
11923         dirtype.
11924         (format_integer): Use wide_int_to_tree instead of build_int_cst
11925         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
11926         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
11927         of shortest and longest sequence.
11929 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
11931         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11932         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
11934 2017-02-03  Walter Lee  <walt@tilera.com>
11936         PR target/78862
11937         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
11938         after initial stackframe link reg save.
11939         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
11941 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
11943         PR target/79354
11944         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
11945         wu for stxssp alternative.
11947 2017-02-03  Martin Sebor  <msebor@redhat.com>
11949         PR tree-optimization/79352
11950         * gimple-fold.c (get_range_strlen): Add argument.
11951         (get_range_strlen): Change return type to bool.
11952         (get_maxval_strlen): Pass in a dummy argument.
11953         * gimple-fold.h (get_range_strlen): Change return type to bool.
11954         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
11955         * tree.h (array_at_struct_end_p): Add argument.
11956         * tree.c (array_at_struct_end_p): Handle it.
11958 2017-02-03  Martin Liska  <mliska@suse.cz>
11960         PR lto/66295
11961         * multiple_target.c (create_dispatcher_calls): Redirect edge
11962         from a caller of a dispatcher.
11963         (expand_target_clones): Make the clones local.
11964         (ipa_target_clone): Do both target clones and resolvers.
11965         (ipa_dispatcher_calls): Remove the pass.
11966         (pass_dispatcher_calls::gate): Likewise.
11967         (make_pass_dispatcher_calls): Likewise.
11968         * passes.def (pass_target_clone): Put as very first IPA early
11969         pass.
11971 2017-02-03  Martin Liska  <mliska@suse.cz>
11973         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
11974         in case of a function with ifunc attribute.
11976 2017-02-03  Martin Liska  <mliska@suse.cz>
11978         * cgraph.c (cgraph_node::dump): Dump function version info.
11979         * symtab.c (symtab_node::dump_base): Add missing new line.
11981 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
11983         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
11984         (ifcombine_ifandif): Use it.
11986 2017-02-03  Martin Liska  <mliska@suse.cz>
11988         * doc/invoke.texi: Document default value for
11989         use-after-scope-direct-emission-threshold.
11991 2017-02-03  Martin Liska  <mliska@suse.cz>
11993         PR tree-optimization/79339
11994         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
11995         (format_floating): Likewise.
11997 2017-02-03  Martin Liska  <mliska@suse.cz>
11999         PR ipa/79337
12000         * ipa-prop.c (ipa_node_params_t::insert): Remove current
12001         implementation.
12002         (ipa_node_params_t::remove): Likewise.
12003         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
12004         initialization from removed ipa_node_params_t::insert.
12005         (ipa_node_params::~ipa_node_params): Move from removed
12006         ipa_node_params_t::release.
12007         * symbol-summary.h (symbol_summary::m_released): New member.
12008         Do not release a summary twice.  Do not allow to call finalizer
12009         for types of a summary that live in GGC memory.
12011 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
12013         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
12014         cmp_branch fusion.
12016 2017-02-02  Martin Sebor  <msebor@redhat.com>
12018         PR middle-end/79275
12019         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
12020         (format_string): Tighten up the range of output for non-constant
12021         strings and correct the expected range for wide non-constant strings.
12023 2017-02-02  Martin Sebor  <msebor@redhat.com>
12025         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
12027         PR middle-end/32003
12028         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
12029         index.
12030         (-fdump-tree-@var): Add to index and document how to come up
12031         with pass-specific option and dump file names.
12032         (-fdump-passes): Clarify where to look for output.
12034 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
12036         PR middle-end/77445
12037         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
12038         statistics of the analyzed path; allow threading for speed when
12039         any of BBs along the path are optimized for speed.
12041 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
12043         PR middle-end/78468
12044         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
12045         settings of the virtual registers.
12047         Revert again
12048         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12050         * explow.c (get_dynamic_stack_size): Take known alignment of stack
12051         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
12052         needed.
12054 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12056         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
12057         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
12059 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12061         * config/s390/s390.md: Add missing comments with the expanded
12062         mnemonics.
12063         * config/s390/vector.md: Likewise.
12064         * config/s390/vx-builtins.md: Likewise.
12066 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
12068         PR target/79197
12069         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
12070         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
12071         conditions on a single line.
12073 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12075         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
12076         __S390_VX__ to __VX__.
12078 2017-02-01  Andrew Pinski  <apinski@cavium.com>
12080         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
12081         stmt_info to record_stmt_cost.
12082         (vect_get_known_peeling_cost): Pass stmt_info if known to
12083         record_stmt_cost.
12084         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
12085         cpu_vector_cost field into
12086         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
12087         field into vec_int_stmt_cost and vec_fp_stmt_cost.
12088         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
12089         splitting of scalar_stmt_cost and vec_stmt_cost.
12090         (thunderx_vector_cost): Likewise.
12091         (cortexa57_vector_cost): LIkewise.
12092         (exynosm1_vector_cost): Likewise.
12093         (xgene1_vector_cost): Likewise.
12094         (thunderx2t99_vector_cost): Improve after the splitting of the two
12095         fields.
12096         (aarch64_builtin_vectorization_cost): Update for the splitting of
12097         scalar_stmt_cost and vec_stmt_cost.
12099 2017-02-01  Torvald Riegel  <triegel@redhat.com>
12100             Richard Henderson  <rth@redhat.com>
12102         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
12103         conditional on existance of a fast atomic load.
12104         * optabs-query.c (can_atomic_load_p): New function.
12105         * optabs-query.h (can_atomic_load_p): Declare it.
12106         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
12107         no fast atomic load is available for the particular size of access.
12108         (expand_atomic_compare_and_swap): Likewise.
12109         (expand_atomic_load): Likewise.
12110         (expand_atomic_store): Likewise.
12111         (expand_atomic_fetch_op): Likewise.
12112         * testsuite/lib/target-supports.exp
12113         (check_effective_target_sync_int_128): Remove x86 because it provides
12114         no fast atomic load.
12115         (check_effective_target_sync_int_128_runtime): Likewise.
12117 2017-02-01  Richard Biener  <rguenther@suse.de>
12119         * graphite.c: Include tree-vectorizer.h for find_loop_location.
12120         (graphite_transform_loops): Provide opt-info for optimized nests.
12121         * tree-parloop.c (parallelize_loops): Provide opt-info for
12122         parallelized loops.
12124 2017-02-01  Richard Biener  <rguenther@suse.de>
12126         PR middle-end/79315
12127         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
12128         was not set before.
12130 2017-02-01  Richard Biener  <rguenther@suse.de>
12132         PR tree-optimization/71824
12133         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
12134         Verify the loops are valid in the merged SESE region.
12135         (scop_detection::can_represent_loop_1): Check analyzing the
12136         evolution of the number of iterations in the region succeeds.
12138 2017-01-31  Ian Lance Taylor  <iant@golang.org>
12140         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
12141         REG_ARGS_SIZE note to 32-bit push insns and call insn.
12143 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
12145         PR preprocessor/79210
12146         * input.c (get_substring_ranges_for_loc): Replace line_width
12147         assertion with error-handling.
12149 2017-01-31  Richard Biener  <rguenther@suse.de>
12151         PR tree-optimization/77318
12152         * graphite-sese-to-poly.c (extract_affine): Fix assert.
12153         (create_pw_aff_from_tree): Take loop parameter.
12154         (add_condition_to_pbb): Pass loop of the condition to
12155         create_pw_aff_from_tree.
12157 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
12159         * config/s390/s390.c (s390_asan_shadow_offset): New function.
12160         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
12162 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
12164         PR target/78597
12165         PR target/79038
12166         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
12167         no longer used.
12168         (convert_int_to_float128): Likewise.
12169         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
12170         (convert_int_to_float128): Likewise.
12171         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
12172         (UNSPEC_IEEE128_CONVERT): Likewise.
12173         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
12174         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
12175         Use local variables for IBM extended format.
12176         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
12177         (fix_trunc<mode>si2_fprs): Likewise.
12178         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
12179         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
12180         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
12181         to know that we can now have integers of all sizes in vector
12182         registers.
12183         (fix<uns>_<mode>di2_hw): Likewise.
12184         (float<uns>_<mode>si2_hw): Likewise.
12185         (fix_<mode>si2_hw): Likewise.
12186         (fixuns_<mode>si2_hw): Likewise.
12187         (float<uns>_<mode>di2_hw): Likewise.
12188         (float_<mode>di2_hw): Likewise.
12189         (float_<mode>si2_hw): Likewise.
12190         (floatuns_<mode>di2_hw): Likewise.
12191         (floatuns_<mode>si2_hw): Likewise.
12192         (xscvqp<su>wz_<mode>): Delete, no longer used.
12193         (xscvqp<su>dz_<mode>): Likewise.
12194         (xscv<su>dqp_<mode>): Likewise.
12195         (ieee128_mfvsrd_64bit): Likewise.
12196         (ieee128_mfvsrd_32bit): Likewise.
12197         (ieee128_mfvsrwz): Likewise.
12198         (ieee128_mtvsrw): Likewise.
12199         (ieee128_mtvsrd_64bit): Likewise.
12200         (ieee128_mtvsrd_32bit): Likewise.
12202 2017-01-31  Martin Liska  <mliska@suse.cz>
12204         PR ipa/79285
12205         * ipa-prop.c (ipa_free_all_node_params): Call release method
12206         instead of ~sumbol_summary to not to trigger double times
12207         dtor of hash_map.
12209 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
12211         PR tree-optimization/71691
12212         * bitmap.h (class auto_bitmap): New.
12213         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
12214         is_maybe_undefined instead of ssa_undefined_value_p.
12216 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12218         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
12219         __S390_ARCH_LEVEL__ to __ARCH__.
12221 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
12223         PR tree-optimization/79267
12224         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
12225         if should_remove_lhs_p is true.
12227 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
12229         PR debug/63238
12230         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
12231         (add_alignment_attribute): New.
12232         (base_type_die): Add alignment attribute.
12233         (subrange_type_die): Likewise.
12234         (modified_type_die): Likewise.
12235         (gen_array_type_die): Likewise.
12236         (gen_descr_array_type_die: Likewise.
12237         (gen_enumeration_type_die): Likewise.
12238         (gen_subprogram_die): Likewise.
12239         (gen_variable_die): Likewise.
12240         (gen_field_die): Likewise.
12241         (gen_ptr_to_mbr_type_die): Likewise.
12242         (gen_struct_or_union_type_die): Likewise.
12243         (gen_subroutine_type_die): Likewise.
12244         (gen_typedef_die): Likewise.
12245         (base_type_cmp): Compare alignment attribute.
12247 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
12249         PR target/79170
12250         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
12251         (setb_unsigned) New pattern for setb with CCUNS.
12252         * config/rs6000/rs6000.c (expand_block_compare): Use a different
12253         subfc./subfe sequence to avoid overflow problems.  Generate a
12254         shorter sequence with cmpld/setb for power9.
12255         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
12256         for generating subfc. instruction.
12257         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
12258         now uses this instruction.
12260 2017-01-30  Ian Lance Taylor  <iant@google.com>
12262         PR debug/79289
12263         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
12264         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
12266 2017-01-30  Martin Sebor  <msebor@redhat.com>
12268         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
12269         Move constant to the right of a relational operator.
12270         (get_mpfr_format_length, format_character, format_string): Ditto.
12271         (should_warn_p, maybe_warn): Same.
12273         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
12275 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
12277         PR lto/79061
12278         * asan.c (get_translation_unit_decl): Remove function.
12279         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
12281 2017-01-30  Martin Liska  <mliska@suse.cz>
12283         PR gcov-profile/79259
12284         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
12285         -fprofile-generate.
12287 2017-01-30  Martin Liska  <mliska@suse.cz>
12289         PR bootstrap/78985
12290         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
12291         Initialize variables with NULL value.
12293 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
12295         PR target/79260
12296         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
12297         tm_p_file.
12298         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
12300 2017-01-30  Richard Biener  <rguenther@suse.de>
12302         PR tree-optimization/79276
12303         * tree-vrp.c (process_assert_insertions): Properly adjust common
12304         when removing a duplicate.
12306         * gcc.dg/torture/pr79276.c: New testcase.
12308 2017-01-30  Richard Biener  <rguenther@suse.de>
12310         PR tree-optimization/79256
12311         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
12312         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
12313         alignment on TYPE.
12314         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
12316 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12318         PR target/79240
12319         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
12320         ("*r<noxa>sbg_<mode>_sll_bitmask")
12321         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12322         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
12323         Use contiguous_bitmask_nowrap_operand.
12325 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12327         PR target/79268
12328         * config/rs6000/altivec.h (vec_xl): Revise #define.
12329         (vec_xst): Likewise.
12331 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
12333         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
12335 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
12337         PR rtl-optimization/79194
12338         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
12339         traps before call to bypass_conditional_jumps.
12341 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
12343         PR tree-optimization/71374
12344         * lra-constraints.c (check_conflict_input_operands): New.
12345         (match_reload): Use it.
12347 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
12349         PR target/79131
12350         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
12351         account to calculate conflict_set.
12353 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
12355         PR rtl-optimization/78559
12356         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
12357         other_insn in combine.
12359 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
12361         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
12362         uint16_type_node for BT_UINT16.
12364 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
12366         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
12367         "RTL Tests" to menu.
12368         (GIMPLE Tests): New node.
12369         (RTL Tests): New node.
12371 2017-01-27  Richard Biener  <rguenther@suse.de>
12373         PR tree-optimization/79245
12374         * tree-loop-distribution.c (distribute_loop): Apply cost
12375         modeling also to detected patterns.
12377 2017-01-27  Richard Biener  <rguenther@suse.de>
12379         PR tree-optimization/71433
12380         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
12381         (compare_assert_loc): New function.
12382         (process_assert_insertions): Sort and optimize assert locations
12383         to remove duplicates and push down identical assertions on
12384         edges to their destination block.
12386 2017-01-27  Richard Biener  <rguenther@suse.de>
12388         PR tree-optimization/79244
12389         * tree-vrp.c (remove_range_assertions): Forcefully propagate
12390         out SSA names even if abnormal.
12392 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
12394         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
12395         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
12396         instead of MPFR_RNDN.
12398 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
12400         PR target/79239
12401         * arm.c (arm_option_override): Don't call build_target_option_node
12402         until after doing all option overrides.
12403         (arm_valid_target_attribute_tree): Likewise.
12405 2017-01-27  Martin Liska  <mliska@suse.cz>
12407         * doc/invoke.texi (-fprofile-arcs): Document profiling support
12408         for {cd}tors and C++ {cd}tors.
12410 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12412         * config/s390/s390.md ("*setmem_long_and")
12413         ("*setmem_long_and_31z"): Use zero_extend instead of and.
12415 2017-01-26  Martin Sebor  <msebor@redhat.com>
12417         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
12418         of precision.
12420 2017-01-26  Martin Sebor  <msebor@redhat.com>
12422         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
12423         HAVE_DFmode before using XFmode or DFmode.
12424         (parse_directive): Avoid using the z length modifier to avoid
12425         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
12427         PR middle-end/78703
12428         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
12429         to accept adjustment as an array.
12430         (get_int_range): New function.
12431         (struct directive): Make width and prec arrays.
12432         (directive::set_width, directive::set_precision): Call get_int_range.
12433         (format_integer, format_floating): Handle width and precision ranges.
12434         (format_string, parse_directive): Same.
12436 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12438         PR debug/79129
12439         * dwarf2out.c (generate_skeleton_bottom_up): For children with
12440         comdat_type_p set, just clone them, but keep the children in the
12441         original DIE.
12443         PR debug/78835
12444         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
12445         which have direct callers with -fvar-tracking-assignments enabled
12446         in the current TU.
12447         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
12448         inside of type units.
12450 2017-01-26  Martin Sebor  <msebor@redhat.com>
12452         PR middle-end/78703
12453         * gimple-ssa-sprintf.c (struct result_range): Add likely and
12454         unlikely counters.
12455         (struct format_result): Replace number_chars, number_chars_min,
12456         and number_chars_max with a single member of struct result_range.
12457         Remove bounded.
12458         (format_result::operator+=): Adjust.
12459         (struct fmtresult): Remove bounded.  Handle likely and unlikely
12460         counters.
12461         (fmtresult::adjust_for_width_or_precision): New function.
12462         (fmtresult:type_max_digits): New function.
12463         (bytes_remaining): Handle likely and unlikely counters.
12464         (min_bytes_remaining): Remove.
12465         (format_percent): Simplify.
12466         (format_integer, format_floating): Set likely and unlikely counters.
12467         (get_string_length, format_character, format_string): Same.
12468         (format_plain, should_warn_p): New function.
12469         (maybe_warn): Call should_warn_p.  Update diagnostic messages
12470         and handle those for all directives, including plain strings.
12471         (format_directive): Handle likely and unlikely counters.
12472         Remove unnecessary quoting from diagnostics.  Add an informational
12473         note.
12474         (add_bytes): Remove.
12475         (pass_sprintf_length::compute_format_length): Simplify.
12476         (try_substitute_return_value): Handle likely and unlikely counters.
12478 2017-01-26  Carl Love  <cel@us.ibm.com>
12480         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
12481         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
12483 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
12485         PR target/79131
12486         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
12487         endianess for subregs into account.
12488         * lra-constraints.c (lra_constraints): Do risky transformations
12489         always on the first iteration.
12490         * lra-lives.c (check_pseudos_live_through_calls): Add arg
12491         last_call_used_reg_set.
12492         (process_bb_lives): Define and use last_call_used_reg_set.
12493         * lra.c (lra): Always continue after lra_constraints on the first
12494         iteration.
12496 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
12498         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
12499         constant.
12500         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
12502 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12504         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
12505         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
12506         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
12507         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
12508         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
12509         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
12510         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
12511         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
12512         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
12514 2017-01-26  Marek Polacek  <polacek@redhat.com>
12516         PR c/79199
12517         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
12518         for the third operand.
12520 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12522         PR middle-end/79236
12523         * omp-low.c (struct omp_context): Add simt_stmt field.
12524         (scan_omp_for): Return omp_context *.
12525         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
12526         context to the _simt_ SIMD stmt.
12527         (lower_omp_for): For combined SIMD with sibling _simt_
12528         SIMD, make sure to use the same decls in _looptemp_
12529         clauses as in the sibling.
12531 2017-01-26  David Sherwood  <david.sherwood@arm.com>
12533         PR middle-end/79212
12534         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
12535         all contexts.
12537 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12539         PR target/70465
12540         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
12541         emit fld b; fld a; if possible.
12543         * brig-builtins.def: Update copyright years.
12544         * config/arm/arm_acle_builtins.def: Update copyright years.
12546 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
12548         PR target/79179
12549         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
12550         constraint instead of o for the stxsd instruction.
12552 2017-01-25  Carl Love  <cel@us.ibm.com>
12554         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
12555         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
12557 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
12559         * doc/invoke.texi (C++ Dialect Options): Fix typo.
12561 2017-01-25  Richard Biener  <rguenther@suse.de>
12563         PR tree-optimization/69264
12564         * target.def (vector_alignment_reachable): Improve documentation.
12565         * doc/tm.texi: Regenerate.
12566         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
12567         and add a comment.
12568         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
12569         earlier changes with respect to TYPE_USER_ALIGN.
12570         (vector_alignment_reachable_p): Likewise.  Improve dumping.
12572 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12574         PR target/79145
12575         * config/arm/arm.md (xordi3): Force constant operand into a register
12576         for TARGET_IWMMXT.
12578 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12580         * doc/invoke.texi (-fstore-merging): Correct default optimization
12581         levels at which it is enabled.
12582         (-O): Move -fstore-merging from list to...
12583         (-O2): ... Here.
12585 2017-01-25  Richard Biener  <rguenther@suse.de>
12587         PR debug/78363
12588         * omp-expand.c: Include debug.h.
12589         (expand_omp_taskreg): Make sure to generate early debug before
12590         outlining anything from a function.
12591         (expand_omp_target): Likewise.
12592         (grid_expand_target_grid_body): Likewise.
12594 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
12596         PR lto/79061
12597         * asan.c (get_translation_unit_decl): New function.
12598         (asan_add_global): Extract modules file name from globals
12599         TRANSLATION_UNIT_DECL name.
12601 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12603         PR target/77439
12604         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
12605         for long calls with APCS frame and VFP.
12607 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
12609         * cfg.c (original_copy_tables_initialized_p): New function.
12610         * cfg.h (original_copy_tables_initialized_p): New decl.
12611         * cfgrtl.c (relink_block_chain): Guard the call to
12612         free_original_copy_tables with a call to
12613         original_copy_tables_initialized_p.
12614         * cgraph.h (symtab_node::native_rtl_p): New decl.
12615         * cgraphunit.c (symtab_node::native_rtl_p): New function.
12616         (symtab_node::needed_p): Don't assert for early assembly output
12617         for __RTL functions.
12618         (cgraph_node::finalize_function): Set "force_output" for __RTL
12619         functions.
12620         (cgraph_node::analyze): Bail out early for __RTL functions.
12621         (analyze_functions): Update assertion to support __RTL functions.
12622         (cgraph_node::expand): Bail out early for __RTL functions.
12623         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
12624         __RTL functions.
12625         * function.h (struct function): Update comment for field
12626         "pass_startwith".
12627         * gimple-expr.c: Include "tree-pass.h".
12628         (gimple_has_body_p): Return false for __RTL functions.
12629         * Makefile.in (OBJS): Add run-rtl-passes.o.
12630         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
12631         accessor.
12632         (gcc::pass_manager::get_clean_slate): New accessor.
12633         * passes.c: Include "insn-addr.h".
12634         (should_skip_pass_p): Add logging.  Update logic for running
12635         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
12636         property-provider override so it is only done for gimple passes.
12637         Don't skip dfinit.
12638         (skip_pass): New function.
12639         (execute_one_pass): Call skip_pass when skipping passes.
12640         * read-md.c (md_reader::read_char): Support filtering
12641         the input to a subset of line numbers.
12642         (md_reader::md_reader): Initialize fields
12643         m_first_line and m_last_line.
12644         (md_reader::read_file_fragment): New function.
12645         * read-md.h (md_reader::read_file_fragment): New decl.
12646         (md_reader::m_first_line): New field.
12647         (md_reader::m_last_line): New field.
12648         * read-rtl-function.c (function_reader::create_function): Only
12649         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
12650         curr_properties.  Set DECL_INITIAL to a dummy block.
12651         (read_rtl_function_body_from_file_range): New function.
12652         * read-rtl-function.h (read_rtl_function_body_from_file_range):
12653         New decl.
12654         * run-rtl-passes.c: New file.
12655         * run-rtl-passes.h: New file.
12657 2017-01-24  Jeff Law  <law@redhat.com>
12659         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
12660         buffer size.
12662 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
12664         PR tree-optimization/79159
12665         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
12666         (record_nonwrapping_iv): Improve boundary using above function if no
12667         value range information.
12669 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12670             Martin Jambor  <mjambor@suse.cz>
12672         * brig-builtins.def: New file.
12673         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
12674         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
12675         (DEF_HSAIL_SAT_BUILTIN): Likewise.
12676         (DEF_HSAIL_INTR_BUILTIN): Likewise.
12677         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
12678         * builtin-types.def (BT_INT8): New.
12679         (BT_INT16): Likewise.
12680         (BT_UINT8): Likewise.
12681         (BT_UINT16): Likewise.
12682         (BT_FN_ULONG): Likewise.
12683         (BT_FN_UINT_INT): Likewise.
12684         (BT_FN_UINT_ULONG): Likewise.
12685         (BT_FN_UINT_LONG): Likewise.
12686         (BT_FN_UINT_PTR): Likewise.
12687         (BT_FN_ULONG_PTR): Likewise.
12688         (BT_FN_INT8_FLOAT): Likewise.
12689         (BT_FN_INT16_FLOAT): Likewise.
12690         (BT_FN_UINT32_FLOAT): Likewise.
12691         (BT_FN_UINT16_FLOAT): Likewise.
12692         (BT_FN_UINT8_FLOAT): Likewise.
12693         (BT_FN_UINT64_FLOAT): Likewise.
12694         (BT_FN_UINT16_UINT32): Likewise.
12695         (BT_FN_UINT32_UINT16): Likewise.
12696         (BT_FN_UINT16_UINT16_UINT16): Likewise.
12697         (BT_FN_INT_PTR_INT): Likewise.
12698         (BT_FN_UINT_PTR_UINT): Likewise.
12699         (BT_FN_LONG_PTR_LONG): Likewise.
12700         (BT_FN_ULONG_PTR_ULONG): Likewise.
12701         (BT_FN_VOID_UINT64_UINT64): Likewise.
12702         (BT_FN_UINT8_UINT8_UINT8): Likewise.
12703         (BT_FN_INT8_INT8_INT8): Likewise.
12704         (BT_FN_INT16_INT16_INT16): Likewise.
12705         (BT_FN_INT_INT_INT): Likewise.
12706         (BT_FN_UINT_FLOAT_UINT): Likewise.
12707         (BT_FN_FLOAT_UINT_UINT): Likewise.
12708         (BT_FN_ULONG_UINT_UINT): Likewise.
12709         (BT_FN_ULONG_UINT_PTR): Likewise.
12710         (BT_FN_ULONG_ULONG_ULONG): Likewise.
12711         (BT_FN_UINT_UINT_UINT): Likewise.
12712         (BT_FN_VOID_UINT_PTR): Likewise.
12713         (BT_FN_UINT_UINT_PTR: Likewise.
12714         (BT_FN_UINT32_UINT64_PTR): Likewise.
12715         (BT_FN_INT_INT_UINT_UINT): Likewise.
12716         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
12717         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
12718         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
12719         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
12720         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
12721         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
12722         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
12723         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
12724         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
12725         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
12726         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
12727         * doc/frontends.texi: List BRIG FE.
12728         * doc/install.texi (Testing): Add BRIG tesring requirements.
12729         * doc/invoke.texi (Overall Options): Mention BRIG.
12730         * doc/standards.texi (Standards): Doucment BRIG HSA version.
12732 2017-01-24  Richard Biener  <rguenther@suse.de>
12734         PR translation/79208
12735         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
12737 2017-01-24  Martin Jambor  <mjambor@suse.cz>
12739         PR bootstrap/79198
12740         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
12741         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
12742         and known_contexts.
12744 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
12746         PR middle-end/79123
12747         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
12748         casts from signed to unsigned really don't have a range.
12750 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
12752         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
12753         GMP_RNDx for compatiblity.
12755 2017-01-24  Martin Liska  <mliska@suse.cz>
12757         PR bootstrap/79132
12758         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
12759         that would prevent us to call alloca with -1 as argument.
12761 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
12763         * dwarf2out.c (output_compilation_unit_header, output_file_names):
12764         Avoid -Wformat-security warning.
12766 2017-01-23  Andrew Pinski  <apinski@cavium.com>
12768         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
12769         cost table.
12771 2017-01-23  Martin Sebor  <msebor@redhat.com>
12773         PR middle-end/78703
12774         * gimple-ssa-sprintf.c (warn_level): New global.
12775         (format_integer): Use it here and throughout the rest of the file.
12776         Use the same switch to compute sign as base.
12777         (maybe_warn): New function.
12778         (format_directive): Factor out warnings into maybe_warn.
12779         Add debugging output.  Use warn_level.
12780         (add_bytes): Use warn_level.
12781         (pass_sprintf_length::compute_format_length): Add debugging output.
12782         (try_substitute_return_value): Same.
12783         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
12785         PR middle-end/78703
12786         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
12787         (struct fmtresult, format_integer, format_floating): Adjust.
12788         (fmtresult::fmtresult): Set max correctly in two argument ctor.
12789         (get_string_length, format_string,format_directive): Same.
12790         (pass_sprintf_length::compute_format_length): Same.
12791         (try_substitute_return_value): Simplify slightly.
12793         PR middle-end/78703
12794         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
12795         (fmtresult::operator+=): Outlined.
12796         (struct fmtresult): Add ctors.
12797         (struct conversion_spec): Rename...
12798         (struct directive): ...to this.  Add and remove data members.
12799         (directive::set_width, directive::set_precision): New functions.
12800         (format_percent): Use fmtresult ctor.
12801         (get_width_and_precision): Remove.
12802         (format_integer): Make naming changes.  Avoid computing width and
12803         precision.
12804         (format_floating): Same.  Adjust indentation.
12805         (format_character, format_none): New functions.
12806         (format_string): Moved character handling to format_character.
12807         (format_directive): Remove arguments, change return type.
12808         (parse_directive): New function.
12809         (pass_sprintf_length::compute_format_length): Move directive
12810         parsing to parse_directive.
12812 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
12814         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
12815         (assign_assembler_name_if_needed): ... this.
12816         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
12817         (assign_assembler_name_if_needed): ... this.
12818         (free_lang_data_in_cgraph): Adjust callers.
12819         * cgraphunit.c (cgraph_node::analyze): Likewise.
12820         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
12821         Likewise.
12823 2017-01-23  Richard Biener  <rguenther@suse.de>
12825         PR tree-optimization/79088
12826         PR tree-optimization/79188
12827         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
12828         resetting loop bounds after last path deletion.  Reset loop
12829         bounds of the target loop, make code match the comments.
12830         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
12831         Make sure loops need no fixups.
12833 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12835         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
12836         exponent support with double type for first argument.
12837         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
12838         type returned by __builtin_vec_extract_sig,
12839         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
12840         functions from "vector int" to "vector unsigned int" or from
12841         "vector long long int" to "vector unsigned long long int".
12842         Changed type returned by __builtin_vec_extract_exp,
12843         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
12844         functions from "vector int" to "vector unsigned int" or from
12845         "vector long long int" to "vector unsigned long long int".
12846         Changed return type of __builtin_vec_test_data_class,
12847         __builtin_vec_test_data_class_sp, and
12848         __builtin_vec_test_data_class_dp from "vector int" to
12849         "vector bool int" or from "vector long long int" to "vector bool
12850         long long int" and changed second argument type from "unsigned
12851         int" to "int".  Added new overloaded function forms "vector float
12852         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
12853         "vector float __builtin_vec_insert_exp_sp (vector float, vector
12854         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
12855         double, vector unsigned long long int)" and "vector double
12856         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
12857         long int)".  Changed return type of
12858         __builtin_scalar_test_data_class and
12859         __builtin_scalar_test_data_class_sp and
12860         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
12861         int" and changed second argument from "unsigned int" to "int".
12862         Changed type returned by __builtin_scalar_test_neg,
12863         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
12864         from "int" to "bool int".  Added new overloaded function form
12865         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
12866         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
12867         exponent double-precision with floating point first argument.
12868         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
12869         documentation of scalar_test_data_class, scalar_test_neg,
12870         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
12871         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
12872         vec_test_data_class built-in functions to reflect refinements in
12873         their type signatures.
12875 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
12877         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
12878         size of buf.
12879         (aarch64_elf_asm_destructor): Likewise.
12881 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
12883         PR rtl-optimization/78634
12884         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
12885         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
12886         * ifcvt.c (noce_try_cmove): Add missing cost check.
12888         PR rtl-optimization/71724
12889         * combine.c (if_then_else_cond): Look for situations where it is
12890         beneficial to undo the work of one of the recursive calls.
12892 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
12894         PR tree-optimization/70754
12895         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
12896         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
12897         combined stmt before it if not NULL.
12898         (combine_chains): Process refs reversely and compute dominance point
12899         for root ref.
12901 2017-01-23  Martin Liska  <mliska@suse.cz>
12903         PR tree-optimization/79196
12904         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
12905         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
12906         instead of memcmp.
12907         (strlen_optimize_stmt): Call the renamed function.
12909 2017-01-23  Michael Matz  <matz@suse.de>
12911         PR tree-optimization/78384
12912         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
12914 2017-01-23  Richard Biener  <rguenther@suse.de>
12916         PR tree-optimization/79186
12917         * tree-vrp.c (register_new_assert_for): Make sure we've seen
12918         both incoming edges before moving an assert.
12920 2017-01-23  Martin Jambor  <mjambor@suse.cz>
12922         * ipa-prop.c (load_from_param_1): Removed.
12923         (load_from_unmodified_param): Bits from load_from_param_1 put back
12924         here.
12925         (load_from_param): Removed.
12926         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
12927         with stmt.  Reverted back to use of load_from_unmodified_param.
12929 2017-01-23  Martin Jambor  <mjambor@suse.cz>
12931         PR ipa/79108
12932         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
12933         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
12934         field a pointer to garbage collected vector, mark lattices and
12935         ipcp_orig_node with GTY((skip)).
12936         (ipa_get_param_count): Adjust to descriptors being a pointer.
12937         (ipa_get_param): Likewise.
12938         (ipa_get_type): Likewise.
12939         (ipa_get_param_move_cost): Likewise.
12940         (ipa_set_param_used): Likewise.
12941         (ipa_get_controlled_uses): Likewise.
12942         (ipa_set_controlled_uses): Likewise.
12943         (ipa_is_param_used): Likewise.
12944         (ipa_node_params_t): Move into garbage collector.  New methods insert
12945         and remove.
12946         (ipa_node_params_sum): Annotate wth GTY(()).
12947         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
12948         garbage collected.
12949         (ipa_load_from_parm_agg): Adjust declaration.
12950         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
12951         * ipa-profile.c (ipa_profile): Likewise.
12952         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
12953         (ipa_populate_param_decls): Make descriptors parameter garbage
12954         collected.
12955         (ipa_dump_param): Adjust to descriptors being a pointer.
12956         (ipa_alloc_node_params): Likewise.
12957         (ipa_initialize_node_params): Likewise.
12958         (load_from_param_1): Make descriptors parameter garbage collected.
12959         (load_from_unmodified_param): Likewise.
12960         (load_from_param): Likewise.
12961         (ipa_load_from_parm_agg): Likewise.
12962         (ipa_node_params::~ipa_node_params): Removed.
12963         (ipa_free_all_node_params): Remove call to delete operator.
12964         (ipa_node_params_t::insert): New.
12965         (ipa_node_params_t::remove): Likewise.
12966         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
12967         copy known_csts and known_contexts vectors.
12968         (ipa_read_node_info): Adjust to descriptors being a pointer.
12969         (ipcp_modif_dom_walker): Make m_descriptors field garbage
12970         collected.
12971         (ipcp_transform_function): Make descriptors variable garbage
12972         collected.
12974 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
12976         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
12977         * config/i386/avx512dqintrin.h: Ditto.
12978         * config/i386/avx512fintrin.h: Ditto.
12979         * gcc/config/i386/i386.c: Handle new builtins.
12980         * config/i386/i386-builtin.def: Add new builtins.
12981         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
12982         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
12984 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
12985             Martin Liska  <mliska@suse.cz>
12987         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
12988         * asan.c (asan_expand_poison_ifn): Support stores and use
12989         appropriate ASAN report function.
12990         * internal-fn.c (expand_ASAN_POISON_USE): New function.
12991         * internal-fn.def (ASAN_POISON_USE): Declare.
12992         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
12993         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
12994         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
12995         ASAN_POISON calls w/o LHS.
12996         * tree-ssa.c (execute_update_addresses_taken): Create clobber
12997         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
12998         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
12999         * gimplify.c (asan_poison_variables): Add attribute
13000         use_after_scope_memory to variables that really needs to live
13001         in memory.
13002         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
13003         having the attribute.
13005 2017-01-23  Martin Liska  <mliska@suse.cz>
13007         * asan.c (create_asan_shadow_var): New function.
13008         (asan_expand_poison_ifn): Likewise.
13009         * asan.h (asan_expand_poison_ifn): New declaration.
13010         * internal-fn.c (expand_ASAN_POISON): Likewise.
13011         * internal-fn.def (ASAN_POISON): New builtin.
13012         * sanopt.c (pass_sanopt::execute): Expand
13013         asan_expand_poison_ifn.
13014         * tree-inline.c (copy_decl_for_dup_finish): Make function
13015         external.
13016         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
13017         * tree-ssa.c (is_asan_mark_p): New function.
13018         (execute_update_addresses_taken): Rewrite local variables
13019         (identified just by use-after-scope as addressable) into SSA.
13021 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
13023         * doc/install.texi (Specific): opensource.apple.com uses https
13024         now. Remove trailing slash.
13026 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
13028         * README.Portability: Remove note on an Irix compatibility issue.
13030 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
13032         * gcov.c (INCLUDE_ALGORITHM): Define.
13033         (INCLUDE_VECTOR): Define.
13034         No longer include <vector> and <algorithm> directly.
13036 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
13038         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
13039         to https.
13040         * doc/invoke.texi (Code Gen Options): Ditto.
13042 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
13044         PR lto/78407
13045         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
13047 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
13049         rtl-optimization/79125
13050         * cprop.c (local_cprop_pass): Handle cases where we make an
13051         unconditional trap.
13053 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
13055         PR target/61729
13056         PR target/77850
13057         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
13058         read from, for big endian.
13060 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
13062         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
13063         register pauth builtins for LP64 only.
13065 2017-01-20  Marek Polacek  <polacek@redhat.com>
13067         PR c/79152
13068         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
13069         non-case labels.
13071 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
13073         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
13074         of safelen status.
13075         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
13076         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
13077         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
13079 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13081         PR target/71270
13082         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
13083         in big-endian mode when they are not a single duplicated value.
13085 2017-01-20  Richard Biener  <rguenther@suse.de>
13087         * BASE-VER: Bump to 7.0.1.
13089 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
13091         * omp-low.c (omplow_simd_context): New struct.  Use it...
13092         (lower_rec_simd_input_clauses): ...here and...
13093         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
13094         references to idx, lane, max_vf, is_simt.
13096 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
13098         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
13099         mcpu=nps400.
13101 2017-01-20  Martin Jambor  <mjambor@suse.cz>
13103         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
13104         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
13105         gt-hsa-common.h.
13106         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
13107         (GTFILES): Rename hsa.c to hsa-common.c.
13108         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
13109         * hsa-dump.c: Likewise.
13110         * hsa-gen.c: Likewise.
13111         * hsa-regalloc.c: Likewise.
13112         * ipa-hsa.c: Likewise.
13113         * omp-expand.c: Likewise.
13114         * omp-low.c: Likewise.
13115         * toplev.c: Likewise.
13117 2017-01-20  Marek Polacek  <polacek@redhat.com>
13119         PR c/64279
13120         * doc/invoke.texi: Document -Wduplicated-branches.
13121         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
13122         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
13123         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
13124         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
13125         return 0 only when not OEP_LEXICOGRAPHIC.
13126         (fold_build_cleanup_point_expr): Use the expression
13127         location when building CLEANUP_POINT_EXPR.
13128         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
13129         * tree.c (add_expr): Handle error_mark_node.
13131 2017-01-20  Martin Liska  <mliska@suse.cz>
13133         PR lto/69188
13134         * tree-profile.c (init_ic_make_global_vars): Do not call
13135         finalize_decl.
13136         (gimple_init_gcov_profiler): Likewise.
13138 2017-01-20  Martin Liska  <mliska@suse.cz>
13140         PR ipa/71190
13141         * cgraph.h (maybe_create_reference): Remove argument and
13142         update comment.
13143         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
13144         argument.
13145         * ipa-cp.c (create_specialized_node): Likewise.
13146         * symtab.c (symtab_node::maybe_create_reference): Handle
13147         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
13149 2017-01-20  Martin Liska  <mliska@suse.cz>
13151         * read-rtl-function.c (function_reader::create_function): Use
13152         build_decl instread of build_decl_stat.
13154 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
13156         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
13157         * config/i386/avx512dqintrin.h: Ditto.
13158         * config/i386/avx512fintrin.h: Ditto.
13159         * config/i386/i386-builtin-types.def: Add new types.
13160         * gcc/config/i386/i386.c: Handle new types.
13161         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
13162         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
13163         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
13164         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
13165         (__builtin_ia32_kshiftridi): New.
13166         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
13168 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
13170         PR target/78875
13171         PR target/79140
13172         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
13173         define to rs6000_init_stack_protect_guard.
13174         (rs6000_init_stack_protect_guard): New function.
13176 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
13177             Yunqiang Su  <yunqiang.su@imgtec.com>
13179         * config.gcc (supported_defaults): Add madd4.
13180         (with_madd4): Add validation.
13181         (all_defaults): Add madd4.
13182         * config/mips/mips.opt (mmadd4): New option.
13183         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13184         mmadd4.
13185         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
13186         __mips_no_madd4.
13187         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
13188         (ISA_HAS_FUSED_MADD4): Likewise.
13189         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
13190         * gcc/doc/install.texi (--with-madd4): Document the new option.
13192 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
13194         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
13195         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
13196         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
13197         (aarch64_init_pauth_hint_builtins): New.
13198         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
13199         (aarch64_expand_builtin): Expand new builtins.
13201 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
13203         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
13204         * combine-stack-adj.c (no_unhandled_cfa): Handle
13205         REG_CFA_TOGGLE_RA_MANGLE.
13206         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
13207         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
13208         info for return address signing.
13209         (aarch64_expand_epilogue): Likewise.
13211 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
13213         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
13214         * config/aarch64/aarch64-protos.h
13215         (aarch64_return_address_signing_enabled): New declaration.
13216         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
13217         New function.
13218         (aarch64_expand_prologue): Sign return address before it's pushed onto
13219         stack.
13220         (aarch64_expand_epilogue): Authenticate return address fetched from
13221         stack.
13222         (aarch64_override_options): Sanity check for ILP32 and ISA level.
13223         (aarch64_attributes): New function attributes for "sign-return-address".
13224         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
13225         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
13226         ("*do_return"): Generate combined instructions according to key index.
13227         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
13228         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
13229         iterators.
13230         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
13231         * config/aarch64/aarch64.opt (msign-return-address=): New.
13232         * doc/extend.texi (AArch64 Function Attributes): Documents
13233         "sign-return-address=".
13234         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
13236 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
13238         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
13239         overall option summary.
13241 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
13243         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
13244         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
13245         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
13246         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
13248 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
13250         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
13251         -mpower9-minmax by default for -mcpu=power9.
13252         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
13253         128-bit floating point.
13255 2017-01-20  Alan Modra  <amodra@gmail.com>
13257         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
13258         optimizing for size.
13260 2017-01-20  Alan Modra  <amodra@gmail.com>
13262         PR target/79144
13263         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
13264         for strcmp and strncmp from corresponding builtin decl.
13266 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
13268         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
13269         instead of i386/rtems-64.h.
13270         * config/i386/rtems-64.h: Remove.
13272 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
13274         PR target/78478
13275         Revert:
13276         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
13278         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
13280 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
13282         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
13283         Change int to HOST_WIDE_INT.
13284         * config/aarch64/aarch64-protos.h
13285         (aarch64_simd_gen_const_vector_dup): Likewise.
13286         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
13288 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
13290         * langhooks-def.h (lhd_type_for_size): New decl.
13291         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
13292         * langhooks.c (lhd_type_for_size): New function, taken from
13293         lto_type_for_size.
13295 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
13297         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
13298         define_bypass for CR latency.
13299         (power9-cracked-alu): Update bypass latency and remove power9-branch.
13300         (power9-alu2): Add define_bypass for CR latency.
13301         (power9-cmp): New.
13302         (power9-mul): Update insn latency.
13303         (power9-mul-compare): Update insn latency, bypass latency and remove
13304         power9-branch.
13306 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13308         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
13309         Delete.
13310         * config/aarch64/aarch64.md
13311         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
13312         aarch64_nopcrelative_literal_loads.
13313         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13315 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
13317         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
13318         TARGET_LOONGSON_3A.
13319         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
13321 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
13323         PR target/78176
13324         * config.gcc (supported_defaults): Add lxc1-sxc1.
13325         (with_lxc1_sxc1): Add validation.
13326         (all_defaults): Add lxc1-sxc1.
13327         * config/mips/mips.opt (mlxc1-sxc1): New option.
13328         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13329         mlxc1-sxc1.
13330         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
13331         __mips_no_lxc1_sxc1.
13332         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
13333         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
13334         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
13336 2017-01-19  Richard Biener  <rguenther@suse.de>
13338         PR tree-optimization/72488
13339         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
13340         sure to restore SSA info.
13341         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
13343 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
13345         PR rtl-optimization/79121
13346         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
13347         of the inner type when shifting an extended value.
13349 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
13351         PR lto/78407
13352         * symtab.c (symtab_node::equal_address_to): Fix comparing of
13353         interposable aliases.
13355 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
13357         PR target/78516
13358         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
13359         Use the evmergelohi instruction.
13360         (mov_si<mode>_e500_subreg4_2_le): Likewise.
13361         (mov_sitf_e500_subreg8_2_be): Likewise.
13362         (mov_sitf_e500_subreg12_2_le): Likewise.
13363         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
13364         (mov_si<mode>_e500_subreg4_2_be): Likewise.
13365         (mov_sitf_e500_subreg8_2_le): Likewise.
13366         (mov_sitf_e500_subreg12_2_be): Likewise.
13368 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13370         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
13371         attribute from vecsimple to vecperm.
13372         (altivec_vbpermq2): Likewise.
13374 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13376         PR target/79040
13377         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
13379 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13380         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
13381         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
13382         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
13383         case where N arg is SIZE_MAX.
13384         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
13385         (cmpstrsi): Add pattern.
13387 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13389         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13390         __builtin_vec_revb builtins.
13391         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
13392         built-in functions to support generation of the ISA 3.0 XXBR<x>
13393         vector byte reverse instructions.
13394         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
13395         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
13396         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
13397         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
13398         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
13399         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
13400         (P9V_BUILTIN_VEC_REVB): Likewise.
13401         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
13402         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
13403         (p9_xxbrq_v16qi): Likewise.
13404         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
13405         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
13406         (p9_xxbrh_v8hi): Likewise.
13407         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
13408         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
13409         vec_revb built-in functions.
13411 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
13413         PR rtl-optimization/78952
13414         * config/i386/i386.md (any_extract): New code iterator.
13415         (*insvqi_2): Use any_extract for source operand.
13416         (*insvqi_3): Use any_shiftrt for source operand.
13418 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
13420         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
13421         New function.
13422         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
13424 2017-01-18  Matthias Klose  <doko@ubuntu.com>
13426         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
13428 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13430         * config/rs6000/altivec.h (vec_bperm): Change #define.
13431         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
13432         (altivec_vbpermq2): New define_insn.
13433         (altivec_vbpermd): Likewise.
13434         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
13435         function interface.
13436         (VBPERMD): Likewise.
13437         (VBPERM): New polymorphic function interface.
13438         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
13439         Add entries for P9V_BUILTIN_VEC_VBPERM.
13440         * doc/extend.texi: Add interfaces for vec_bperm.
13442 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13444         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
13445         first letter of error messages.
13446         (s390_resolve_overloaded_builtin): Likewise.
13447         * config/s390/s390.c (s390_expand_builtin): Likewise.
13448         (s390_invalid_arg_for_unprototyped_fn): Likewise.
13449         (s390_valid_target_attribute_inner_p): Likewise.
13450         * config/s390/s390.md ("tabort"): Likewise.
13452 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
13454         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
13455         (ISA_AVOID_DIV_HILO): New macro.
13456         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
13457         (ISA_HAS_DDIV): Likewise.
13459 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13461         * doc/invoke.texi (fabi-version): Correct number of occurrences.
13463 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13465         * doc/invoke.texi (fabi-version): Spelling fix.
13467 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13469         PR c++/70182
13470         * doc/invoke.texi (fabi-version): Mention mangling fix for
13471         operator names.
13473 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
13475         PR c++/77489
13476         * doc/invoke.texi (fabi-version): Document discriminator mangling.
13478 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
13480         PR target/78875
13481         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
13482         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
13483         the new options.
13484         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
13485         flexible settings.
13486         (stack_protect_test): Ditto.
13487         * config/rs6000/rs6000.opt (mstack-protector-guard=,
13488         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
13489         options.
13490         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
13491         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
13492         -mstack-protector-guard-offset=.
13493         (RS/6000 and PowerPC Options): Ditto.
13495 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
13497         * config/i386/i386.h (MASK_CLASS_P): New define.
13498         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
13499         there are no registers from different register sets also when
13500         mask registers are used.  Update function comment.
13501         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
13502         to (*k/*r) and (*k/*km) alternatives.
13504 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
13506         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
13507         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
13508         (EH_RETURN_HANDLER_RTX): New define.
13509         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
13510         Force frame pointer in EH return functions.
13511         (aarch64_expand_epilogue): Add barrier for eh_return.
13512         (aarch64_final_eh_return_addr): Remove.
13513         (aarch64_eh_return_handler_rtx): New function.
13514         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
13515         Remove.
13516         (aarch64_eh_return_handler_rtx): New prototype.
13518 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13520         * config/rs6000/altivec.h (vec_rlmi): New #define.
13521         (vec_vrlnm): Likewise.
13522         (vec_rlnm): Likewise.
13523         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
13524         (UNSPEC_VRLNM): Likewise.
13525         (VIlong): New mode iterator.
13526         (altivec_vrl<VI_char>mi): New define_insn.
13527         (altivec_vrl<VI_char>nm): Likewise.
13528         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
13529         function entry.
13530         (VRLDNM): Likewise.
13531         (RLNM): New polymorphic function entry.
13532         (VRLWMI): New monomorphic function entry.
13533         (VRLDMI): Likewise.
13534         (RLMI): New polymorphic function entry.
13535         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
13536         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
13537         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
13538         vec_vrlnm.
13540 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13542         PR debug/78839
13543         * dwarf2out.c (field_byte_offset): Restore the
13544         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
13545         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
13546         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
13547         of build2 + fold.
13549 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13551         PR ada/67205
13552         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
13554 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13556         PR debug/71669
13557         * dwarf2out.c (add_data_member_location_attribute): For constant
13558         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
13559         instead of DW_AT_data_member_location, DW_AT_bit_offset and
13560         DW_AT_byte_size attributes.
13562 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13564         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
13565         after forcing to constant memory when the code model is medium.
13567 2017-01-17  Julia Koval  <julia.koval@intel.com>
13569         PR target/76731
13570         * config/i386/avx512fintrin.h
13571         (_mm512_i32gather_ps): Change __addr type to void const*.
13572         (_mm512_mask_i32gather_ps): Ditto.
13573         (_mm512_i32gather_pd): Ditto.
13574         (_mm512_mask_i32gather_pd): Ditto.
13575         (_mm512_i64gather_ps): Ditto.
13576         (_mm512_mask_i64gather_ps): Ditto.
13577         (_mm512_i64gather_pd): Ditto.
13578         (_mm512_mask_i64gather_pd): Ditto.
13579         (_mm512_i32gather_epi32): Ditto.
13580         (_mm512_mask_i32gather_epi32): Ditto.
13581         (_mm512_i32gather_epi64): Ditto.
13582         (_mm512_mask_i32gather_epi64): Ditto.
13583         (_mm512_i64gather_epi32): Ditto.
13584         (_mm512_mask_i64gather_epi32): Ditto.
13585         (_mm512_i64gather_epi64): Ditto.
13586         (_mm512_mask_i64gather_epi64): Ditto.
13587         (_mm512_i32scatter_ps): Change __addr type to void*.
13588         (_mm512_mask_i32scatter_ps): Ditto.
13589         (_mm512_i32scatter_pd): Ditto.
13590         (_mm512_mask_i32scatter_pd): Ditto.
13591         (_mm512_i64scatter_ps): Ditto.
13592         (_mm512_mask_i64scatter_ps): Ditto.
13593         (_mm512_i64scatter_pd): Ditto.
13594         (_mm512_mask_i64scatter_pd): Ditto.
13595         (_mm512_i32scatter_epi32): Ditto.
13596         (_mm512_mask_i32scatter_epi32): Ditto.
13597         (_mm512_i32scatter_epi64): Ditto.
13598         (_mm512_mask_i32scatter_epi64): Ditto.
13599         (_mm512_i64scatter_epi32): Ditto.
13600         (_mm512_mask_i64scatter_epi32): Ditto.
13601         (_mm512_i64scatter_epi64): Ditto.
13602         (_mm512_mask_i64scatter_epi64): Ditto.
13603         * config/i386/avx512pfintrin.h
13604         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
13605         (_mm512_mask_prefetch_i32gather_ps): Ditto.
13606         (_mm512_mask_prefetch_i64gather_pd): Ditto.
13607         (_mm512_mask_prefetch_i64gather_ps): Ditto.
13608         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
13609         (_mm512_prefetch_i32scatter_ps): Ditto.
13610         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
13611         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
13612         (_mm512_prefetch_i64scatter_pd): Ditto.
13613         (_mm512_prefetch_i64scatter_ps): Ditto.
13614         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
13615         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
13616         * config/i386/avx512vlintrin.h
13617         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
13618         (_mm_mmask_i32gather_ps): Ditto.
13619         (_mm256_mmask_i32gather_pd): Ditto.
13620         (_mm_mmask_i32gather_pd): Ditto.
13621         (_mm256_mmask_i64gather_ps): Ditto.
13622         (_mm_mmask_i64gather_ps): Ditto.
13623         (_mm256_mmask_i64gather_pd): Ditto.
13624         (_mm_mmask_i64gather_pd): Ditto.
13625         (_mm256_mmask_i32gather_epi32): Ditto.
13626         (_mm_mmask_i32gather_epi32): Ditto.
13627         (_mm256_mmask_i32gather_epi64): Ditto.
13628         (_mm_mmask_i32gather_epi64): Ditto.
13629         (_mm256_mmask_i64gather_epi32): Ditto.
13630         (_mm_mmask_i64gather_epi32): Ditto.
13631         (_mm256_mmask_i64gather_epi64): Ditto.
13632         (_mm_mmask_i64gather_epi64): Ditto.
13633         (_mm256_i32scatter_ps): Change __addr type to void*.
13634         (_mm256_mask_i32scatter_ps): Ditto.
13635         (_mm_i32scatter_ps): Ditto.
13636         (_mm_mask_i32scatter_ps): Ditto.
13637         (_mm256_i32scatter_pd): Ditto.
13638         (_mm256_mask_i32scatter_pd): Ditto.
13639         (_mm_i32scatter_pd): Ditto.
13640         (_mm_mask_i32scatter_pd): Ditto.
13641         (_mm256_i64scatter_ps): Ditto.
13642         (_mm256_mask_i64scatter_ps): Ditto.
13643         (_mm_i64scatter_ps): Ditto.
13644         (_mm_mask_i64scatter_ps): Ditto.
13645         (_mm256_i64scatter_pd): Ditto.
13646         (_mm256_mask_i64scatter_pd): Ditto.
13647         (_mm_i64scatter_pd): Ditto.
13648         (_mm_mask_i64scatter_pd): Ditto.
13649         (_mm256_i32scatter_epi32): Ditto.
13650         (_mm256_mask_i32scatter_epi32): Ditto.
13651         (_mm_i32scatter_epi32): Ditto.
13652         (_mm_mask_i32scatter_epi32): Ditto.
13653         (_mm256_i32scatter_epi64): Ditto.
13654         (_mm256_mask_i32scatter_epi64): Ditto.
13655         (_mm_i32scatter_epi64): Ditto.
13656         (_mm_mask_i32scatter_epi64): Ditto.
13657         (_mm256_i64scatter_epi32): Ditto.
13658         (_mm256_mask_i64scatter_epi32): Ditto.
13659         (_mm_i64scatter_epi32): Ditto.
13660         (_mm_mask_i64scatter_epi32): Ditto.
13661         (_mm256_i64scatter_epi64): Ditto.
13662         (_mm256_mask_i64scatter_epi64): Ditto.
13663         (_mm_i64scatter_epi64): Ditto.
13664         (_mm_mask_i64scatter_epi64): Ditto.
13665         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
13666         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
13667         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
13668         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
13669         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
13670         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
13671         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
13672         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
13673         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
13674         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
13675         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
13676         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
13677         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
13678         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
13679         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
13680         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
13681         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
13682         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
13683         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
13684         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
13685         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
13686         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
13687         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
13688         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
13689         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
13690         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
13691         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
13692         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
13693         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
13694         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
13695         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
13696         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
13697         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
13698         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
13699         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
13700         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
13701         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
13702         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
13703         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
13704         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
13705         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
13706         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
13707         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
13708         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
13709         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
13710         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
13711         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
13712         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
13713         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
13714         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
13715         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
13716         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
13717         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
13718         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
13719         definitions accordingly.
13721 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
13722             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
13724         PR target/79079
13725         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
13726         gen_lowpart.
13728 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
13730         PR target/79058
13731         * ira-conflicts.c (ira_build_conflicts): Update total conflict
13732         hard regs for inner regno.
13734 2017-01-17  Martin Liska  <mliska@suse.cz>
13736         PR ipa/71207
13737         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
13738         assumption and add comment.
13740 2017-01-17  Nathan Sidwell  <nathan@acm.org>
13742         * ipa-visibility.c (localize_node): New function, broken out of ...
13743         (function_and_variable_visibility): ... here. Call it.
13745 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
13747         PR middle-end/77445
13748         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
13749         correctly set frequency of oudgoing edge.
13750         (duplicate_thread_path): Fix profile updating.
13752 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
13754         PR other/79046
13755         * configure.ac: Add GCC_BASE_VER.
13756         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
13757         version from BASE-VER file.
13758         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
13759         (gcc.o): Depend on $(BASEVER).
13760         * common.opt (dumpfullversion): New option.
13761         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
13762         * doc/invoke.texi: Document -dumpfullversion.
13763         * doc/install.texi: Document --with-gcc-major-version-only.
13764         * configure: Regenerated.
13766 2017-01-17  Richard Biener  <rguenther@suse.de>
13768         PR tree-optimization/71433
13769         * tree-vrp.c (register_new_assert_for): Merge same asserts
13770         on all incoming edges.
13771         (process_assert_insertions_for): Handle insertions at the
13772         beginning of BBs.
13774 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
13776         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
13777         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
13779 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13781         PR target/78633
13782         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
13783         RTL sharing.
13785 2017-01-17  Alan Modra  <amodra@gmail.com>
13787         PR target/79066
13788         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
13789         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
13790         symbolic stack limit when pic.
13792 2017-01-16  Martin Sebor  <msebor@redhat.com>
13794         PR tree-optimization/78608
13795         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
13797 2017-01-16  Jeff Law  <law@redhat.com>
13799         Revert:
13800         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
13801         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
13802         for several include directories that may be relative to sysroot.
13803         * config/i386/x-mingw32 (gplus_includedir): Define.
13804         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
13805         (native_system_includedir): Likewise.
13806         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
13807         override if TARGET_SYSTEM_ROOT is defined.
13808         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
13810         PR tree-optimization/79090
13811         PR tree-optimization/33562
13812         PR tree-optimization/61912
13813         PR tree-optimization/77485
13814         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
13815         and computed trims into the dump file.
13817 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
13819         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
13821 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
13823         PR c/79089
13824         * gimplify.c (gimplify_init_constructor): If want_value and
13825         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
13826         fix.
13828         PR target/79080
13829         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
13830         sequence.  Formatting fixes.
13831         (doloop_optimize): Formatting fixes.
13833         PR driver/49726
13834         * gcc.c (debug_level_greater_than_spec_func): New function.
13835         (static_spec_functions): Add debug-level-gt spec function.
13836         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
13837         !g0.
13838         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
13839         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
13840         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
13841         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
13842         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
13843         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
13845 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
13847         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
13848         QImode fixups to general and mask registers only.
13850 2017-01-16  Carl Love  <cel@us.ibm.com>
13852         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
13853         for built-in functions
13854         vector signed char vec_nabs (vector signed char)
13855         vector signed short vec_nabs (vector signed short)
13856         vector signed int vec_nabs (vector signed int)
13857         vector signed long long vec_nabs (vector signed long long)
13858         vector float vec_nabs (vector float)
13859         vector double vec_nabs (vector double)
13860         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
13861         and NABS overload.
13862         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
13863         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
13864         * doc/extend.texi: Update the documentation file for the new built-in
13865         functions.
13867 2017-01-16  Martin Sebor  <msebor@redhat.com>
13869         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
13870         message.
13872 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13874         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
13875         UNSPEC_VSX__XXSPLTD to require special splat handling.
13877 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
13879         PR bootstrap/78616
13880         * system.h: Poison strndup.
13882 2017-01-16  Alan Modra  <amodra@gmail.com>
13884         PR target/79098
13885         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
13886         use a switch.
13888 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
13890         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
13892 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
13894         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
13895         call recog here.  Assert that INSN_CODE (insn) is non-negative.
13897 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
13899         PR target/72749
13900         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
13901         fallthrough.
13902         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
13903         in the currently scheduled RTL fragment.
13905 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
13907         PR rtl-optimization/78751
13908         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
13909         give up.
13911 2017-01-14  Jeff Law  <law@redhat.com>
13913         PR tree-optimization/79090
13914         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
13915         variable length stores.
13916         (compute_trims): Delete dead assignment to *trim_tail.
13917         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
13918         zero length.
13920 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
13922         PR rtl-optimization/78626
13923         PR rtl-optimization/78727
13924         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
13925         of a block, and split such blocks after everything else is finished.
13927 2017-01-14  Alan Modra  <amodra@gmail.com>
13929         PR target/72749
13930         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
13931         target legitimate_combined_insn.
13932         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
13933         (rs6000_legitimate_combined_insn): New function.
13934         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
13935         all uses.
13936         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
13937         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
13938         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
13940 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
13942         * doc/frontends.texi (G++ and GCC): Remove references to Java.
13944 2017-01-13  Jeff Law  <law@redhat.com>
13946         PR tree-optimization/33562
13947         PR tree-optimization/61912
13948         PR tree-optimization/77485
13949         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
13950         a statement.
13951         (delete_dead_assignment): Likewise.
13952         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
13953         statement to delete_dead_call and delete_dead_assignment.
13955 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
13957         PR c/78304
13958         * substring-locations.c (format_warning_va): Strengthen case 1 so
13959         that both endpoints of the substring must be within the format
13960         range for just the substring to be printed.
13962 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
13964         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
13965         * config/i386/i386.c (ix86_target_string): Add missing options
13966         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
13967         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
13968         flags_other and ix86_target_other to flags2_other.  Display unknown
13969         isa2 options.
13970         (ix86_valid_target_attribute_inner_p): Add missing options and
13971         reorder options by implied ISAs, as in ix86_target_string.
13973 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
13975         * hash-table.h (hash_table::too_empty_p): New function.
13976         (hash_table::expand): Use it.
13977         (hash_table::traverse): Likewise.
13978         (hash_table::empty_slot): Use sizeof (value_type) instead of
13979         sizeof (PTR) to convert bytes to elements.  Shrink the table
13980         if the current size is excessive for the current number of
13981         elements.
13983 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
13985         * ira-costs.c (record_reg_classes): Break from the inner loop
13986         early once alt_fail is known to be true.  Update outer loop
13987         handling accordingly.
13989 2017-01-13  Jeff Law  <law@redhat.com>
13991         * tree-ssa-dse.c (decrement_count): New function.
13992         (increment_start_addr, maybe_trim_memstar_call): Likewise.
13993         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
13994         when we know the partially dead statement is a mem* function.
13996         PR tree-optimization/61912
13997         PR tree-optimization/77485
13998         * tree-ssa-dse.c: Include expr.h.
13999         (maybe_trim_constructor_store): New function.
14000         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
14002         PR tree-optimization/33562
14003         PR tree-optimization/61912
14004         PR tree-optimization/77485
14005         * doc/invoke.texi: Document new dse-max-object-size param.
14006         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
14007         * tree-ssa-dse.c: Include params.h.
14008         (dse_store_status): New enum.
14009         (initialize_ao_ref_for_dse): New, partially extracted from
14010         dse_optimize_stmt.
14011         (valid_ao_ref_for_dse, normalize_ref): New.
14012         (setup_live_bytes_from_ref, compute_trims): Likewise.
14013         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
14014         (maybe_trim_partially_dead_store): Likewise.
14015         (maybe_trim_complex_store): Likewise.
14016         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
14017         Track what bytes live from the original store.  Return tri-state
14018         for dead, partially dead or live.
14019         (dse_dom_walker): Add constructor, destructor and new private members.
14020         (delete_dead_call, delete_dead_assignment): New extracted from
14021         dse_optimize_stmt.
14022         (dse_optimize_stmt): Make a member of dse_dom_walker.
14023         Use initialize_ao_ref_for_dse.
14025         PR tree-optimization/33562
14026         PR tree-optimization/61912
14027         PR tree-optimization/77485
14028         * sbitmap.h (bitmap_count_bits): Prototype.
14029         (bitmap_clear_range, bitmap_set_range): Likewise.
14030         * sbitmap.c (bitmap_clear_range): New function.
14031         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
14033 2017-01-13  Martin Liska  <mliska@suse.cz>
14035         PR ipa/79043
14036         * function.c (set_cfun): Add new argument force.
14037         * function.h (set_cfun): Likewise.
14038         * ipa-inline-transform.c (inline_call): Use the function when
14039         strict alising from is dropped for function we inline to.
14041 2017-01-13  Richard Biener  <rguenther@suse.de>
14043         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
14044         for dumping GIMPLE INTEGER_CSTs.
14046 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14048         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
14049         to 201112L since C++17.
14051 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
14053         PR sanitizer/78887
14054         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
14055         if -fsanitize=kernel-address is present.
14057 2017-01-13  Richard Biener  <rguenther@suse.de>
14059         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
14060         as _Literal ( type ) number in case usual suffixes do not
14061         preserve all information.
14063 2017-01-13  Richard Biener  <rguenther@suse.de>
14065         PR tree-optimization/77283
14066         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
14067         and ssa-iterators.h.
14068         (is_feasible_trace): Implement a cost model based on joiner
14069         PHI node uses.
14071 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14073         PR target/79004
14074         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
14075         char or short to __float128/_Float128 directly.
14077 2017-01-12  Martin Sebor  <msebor@redhat.com>
14079         to -Wformat-overflow.
14080         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
14081         (min_bytes_remaining): Same.
14082         (get_string_length): Same.
14083         (format_string): Same.
14084         (format_directive): Same.
14085         (add_bytes): Same.
14086         (pass_sprintf_length::handle_gimple_call): Same.
14088 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
14090         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
14091         info.nowrite calls with no lhs that can't throw.  Return bool
14092         whether gsi_remove has been called or not.
14093         (pass_sprintf_length::handle_gimple_call): Return bool whether
14094         try_substitute_return_value called gsi_remove.  Formatting fix.
14095         (pass_sprintf_length::execute): Don't use gsi_remove if
14096         handle_gimple_call returned true.
14098         PR bootstrap/79069
14099         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
14100         be removed due to side-effects, don't remove following barrier nor
14101         turn the successor edge into fallthru edge.
14103 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14105         PR target/79044
14106         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
14107         element-reversing loads and stores as not swappable.
14109 2017-01-12  Nathan Sidwell  <nathan@acm.org>
14110             Nicolai Stange  <nicstange@gmail.com>
14112         * combine.c (try_combine): Don't ignore result of overlap checking
14113         loop.  Combine overlap & asm check into single loop.
14115 2017-01-12  Richard Biener  <rguenther@suse.de>
14117         * tree-pretty-print.c (dump_generic_node): Provide -gimple
14118         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
14120 2017-01-12  Richard Biener  <rguenther@suse.de>
14122         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
14123         and TS_TARGET_OPTION directly derive from TS_BASE.
14124         * tree-core.h (tree_optimization_option): Derive from tree_base.
14125         (tree_target_option): Likewise.
14127 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
14129         * config/i386/i386.c (memory_address_length): Increase len
14130         only when rip_relative_addr_p returns false.
14132 2017-01-11  Julia Koval  <julia.koval@intel.com>
14134         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
14135         (OPTION_MASK_ISA_SGX_SET): New.
14136         (ix86_handle_option): Handle OPT_msgx.
14137         * config.gcc: Added sgxintrin.h.
14138         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
14139         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
14140         * config/i386/i386.c (ix86_target_string): Add -msgx.
14141         (PTA_SGX): New.
14142         (ix86_option_override_internal): Handle new options.
14143         (ix86_valid_target_attribute_inner_p): Add sgx.
14144         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
14145         * config/i386/i386.opt: Add msgx.
14146         * config/i386/sgxintrin.h: New file.
14147         * config/i386/x86intrin.h: Add sgxintrin.h.
14149 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
14151         PR c++/71537
14152         * fold-const.c (maybe_nonzero_address): Return 1 for function
14153         local objects.
14154         (tree_single_nonzero_warnv_p): Don't handle function local objects
14155         here.
14157         PR c++/72813
14158         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
14159         of c-header.
14161 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
14163         PR driver/78877
14164         * opts.c: Include "spellcheck.h"
14165         (struct string_fragment): New struct.
14166         (struct edit_distance_traits<const string_fragment &>): New
14167         struct.
14168         (get_closest_sanitizer_option): New function.
14169         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
14171 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
14173         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
14174         by 12.
14175         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
14176         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
14177         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
14178         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
14179         for initial die_offset if dwarf_split_debug_info.
14180         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
14181         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
14182         fields.
14183         (output_skeleton_debug_sections): Formatting fix.  Use
14184         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
14185         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
14187 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
14189         * config/arm/cortex-a53.md: Add bypasses for
14190         cortex_a53_r2f_cvt.
14191         (cortex_a53_r2f): Only use for transfers.
14192         (cortex_a53_f2r): Likewise.
14193         (cortex_a53_r2f_cvt): Add reservation for conversions.
14194         (cortex_a53_f2r_cvt): Likewise.
14196 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
14198         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
14199         to all inlined functions, change static to extern.
14201 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
14203         PR target/78253
14204         * config/arm/arm.c (legitimize_pic_address): Handle reference to
14205         weak symbol.
14206         (arm_assemble_integer): Likewise.
14208 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
14210         * config.gcc: Use new awk script to check CPU, FPU and architecture
14211         parameters for --with-... options.
14212         * config/arm/parsecpu.awk: New file
14213         * config/arm/arm-cpus.in: New file.
14214         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
14215         files.
14216         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
14217         files.
14218         * config/arm/t-arm: Update dependency rules.
14219         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
14220         of processing .def files.
14221         * config/arm/genopt.sh: Deleted.
14222         * config/arm/gentune.sh: Deleted.
14223         * config/arm/arm-cores.def: Deleted.
14224         * config/arm/arm-arches.def: Deleted.
14225         * config/arm/arm-fpus.def: Deleted.
14226         * config/arm/arm-tune.md: Regenerated.
14227         * config/arm/arm-tables.opt: Regenerated.
14228         * config/arm/arm-cpu.h: New generated file.
14229         * config/arm/arm-cpu-data.h: New generated file.
14230         * config/arm/arm-cpu-cdata.h: New generated file.
14232 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
14234         PR lto/79042
14235         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
14236         bit.
14237         (input_varpool_node): Unpack dynamically_initialized bit.
14239 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14241         PR rtl-optimization/79032
14242         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
14243         the alignment of the adjusted memory reference against that of MODE,
14244         instead of the alignment of the original memory reference.
14246 2017-01-11  Martin Jambor  <mjambor@suse.cz>
14248         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
14249         test.
14250         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
14251         decorated functions.
14253 2017-01-11  Richard Biener  <rguenther@suse.de>
14255         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
14256         set range/nonnull info for PHI results.  Do not set it on
14257         stmts marked for removal.
14259 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
14261         * expr.c (store_field): In the bitfield case, fetch the return value
14262         from the registers before applying a single big-endian adjustment.
14263         Always do a final load for a BLKmode value not larger than a word.
14265 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
14267         PR c++/77949
14268         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
14269         that we correctly handle column numbers greater than
14270         LINE_MAP_MAX_COLUMN_NUMBER.
14272 2017-01-10  Martin Sebor  <msebor@redhat.com>
14274         PR middle-end/78245
14275         * gimple-ssa-sprintf.c (get_destination_size): Call
14276         {init,fini}object_sizes.
14277         * tree-object-size.c (addr_object_size): Adjust.
14278         (pass_through_call): Adjust.
14279         (pass_object_sizes::execute): Adjust.
14280         * tree-object-size.h (fini_object_sizes): Declare.
14282 2017-01-10  Martin Sebor  <msebor@redhat.com>
14284         PR tree-optimization/78775
14285         * builtins.c (get_size_range): Move...
14286         * calls.c: ...to here.
14287         (alloc_max_size): Accept zero argument.
14288         (operand_signed_p): Remove.
14289         (maybe_warn_alloc_args_overflow): Call get_size_range.
14290         * calls.h (get_size_range): Declare.
14292 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
14294         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
14295         from TI's devices.csv file as of September 2016.
14296         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
14298 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
14300         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
14301         * doc/invoke.texi: Likewise.
14302         * doc/md.texi: Likewise.
14303         * doc/objc.texi: Likewise.
14305 2017-01-10  Joshua Conner  <joshconner@google.com>
14307         * config/arm/fuchsia-elf.h: New file.
14308         * config/fuchsia.h: New file.
14309         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
14310         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
14311         targets.
14312         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
14314 2016-01-10  Richard Biener  <rguenther@suse.de>
14316         PR tree-optimization/79034
14317         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
14318         Propagate out degenerate PHIs in the joiner.
14320 2017-01-10  Martin Liska  <mliska@suse.cz>
14322         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
14323         (sort_congruence_classes_by_decl_uid): Likewise.
14324         (sort_congruence_class_groups_by_decl_uid): Likewise.
14325         (sem_item_optimizer::merge_classes): Sort class, groups in these
14326         classes and members in the groups by DECL_UID of declarations.
14327         This would make merge operations stable.
14329 2017-01-10  Martin Liska  <mliska@suse.cz>
14331         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
14332         usage of m_classes_vec.
14333         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
14334         (sem_item_optimizer::get_group_by_hash): Likewise.
14335         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
14336         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
14337         (sem_item_optimizer::verify_classes): Likewise.
14338         (sem_item_optimizer::process_cong_reduction): Likewise.
14339         (sem_item_optimizer::dump_cong_classes): Likewise.
14340         (sem_item_optimizer::merge_classes): Likewise.
14341         * ipa-icf.h (congruence_class_hash): Rename from
14342         congruence_class_group_hash.  Remove declaration of m_classes_vec.
14344 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
14346         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
14347         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
14348         * config.gcc: Add avx512vpopcntdqintrin.h.
14349         * config/i386/avx512vpopcntdqintrin.h: New.
14350         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
14351         * config/i386/i386-builtin-types.def: Add new types.
14352         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
14353         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
14354         __builtin_ia32_vpopcountq_v8di_mask): New.
14355         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14356         __AVX512VPOPCNTDQ__.
14357         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
14358         (PTA_AVX512VPOPCNTDQ): Define.
14359         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
14360         TARGET_AVX512VPOPCNTDQ_P): Define.
14361         * config/i386/i386.opt: Add mavx512vpopcntdq.
14362         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
14363         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
14365 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14367         PR middle-end/77484
14368         * predict.def (PRED_CALL): Set to 67.
14370 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
14372         * expr.c (store_field): In the bitfield case, if the value comes from
14373         a function call and is of an aggregate type returned in registers, do
14374         not modify the field mode; extract the value in all cases if the mode
14375         is BLKmode and the size is not larger than a word.
14377 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
14379         PR target/71017
14380         * config/i386/cpuid.h: Fix undefined behavior.
14382 2017-01-04  Jeff Law  <law@redhat.com>
14384         PR tree-optimization/79007
14385         PR tree-optimization/67955
14386         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
14387         conservative for pt.null when flag_non_call_exceptions is on.
14389 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
14391         PR translation/79019
14392         PR translation/79020
14393         * params.def (PARAM_INLINE_MIN_SPEEDUP,
14394         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
14395         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
14396         in descriptions.
14397         * config/avr/avr.opt (maccumulate-args): Likewise.
14398         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
14399         * common.opt (freport-bug): Likewise.
14400         * cif-code.def (CIF_FINAL_ERROR): Likewise.
14401         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
14402         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
14403         translatable string.
14404         * config/i386/i386.c (function_value_32): Likewise.
14405         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
14406         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
14407         Likewise.
14408         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
14409         * common/config/msp430/msp430-common.c (msp430_handle_option):
14410         Likewise.
14411         * symtab.c (symtab_node::verify_base): Likewise.
14412         * opts.c (set_debug_level): Likewise.
14413         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
14414         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
14415         missing whitespace to translatable strings.
14416         * config/avr/avr.md (bswapsi2): Fix typo in comment.
14417         * config/sh/superh.h: Likewise.
14418         * config/i386/xopintrin.h: Likewise.
14419         * config/i386/znver1.md: Likewise.
14420         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
14421         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
14422         * double-int.h (struct double_int): Likewise.
14423         * double-int.c (div_and_round_double): Likewise.
14424         * wide-int.cc: Likewise.
14425         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14426         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
14427         * cfgcleanup.c (crossjumps_occured): Renamed to ...
14428         (crossjumps_occurred): ... this.
14429         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
14430         Adjust all uses.
14432         PR tree-optimization/78899
14433         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
14434         returning bool return struct loop *, NULL for failure and the new
14435         loop on success.
14436         (versionable_outer_loop_p): Don't version outer loop if it has
14437         dont_vectorized bit set.
14438         (tree_if_conversion): When versioning outer loop, ensure
14439         tree_if_conversion is performed also on the inner loop of the
14440         non-vectorizable outer loop copy.
14441         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
14442         LOOP_VECTORIZED in inner loop of the scalar outer loop and
14443         prevent vectorization of it.
14444         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
14445         the outer loop vectorization of the non-scalar version is attempted
14446         before vectorization of the inner loop in scalar version.  If
14447         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
14448         vectorization of its inner loop.
14449         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
14450         has 2 inner loops, rename also on edges from bb whose single pred
14451         is outer_loop->header.  Fix typo in function comment.
14453 2017-01-09  Martin Sebor  <msebor@redhat.com>
14455         PR bootstrap/79033
14456         * asan.c (asan_emit_stack_protection): Increase local buffer size
14457         to avoid snprintf truncation warning.
14459 2017-01-09  Andrew Pinski  <apinski@cavium.com>
14461         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
14462         to reference thunderx2t99 for the tuning structure
14463         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
14464         Rename to ...
14465         (thunderx2t99_extra_costs): This.
14466         * config/aarch64/aarch64-tune.md: Regenerate.
14467         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
14468         (vulcan_addrcost_table): This.
14469         (vulcan_regmove_cost): Rename to ...
14470         (thunderx2t99_regmove_cost): This.
14471         (vulcan_vector_cost): Rename to ...
14472         (thunderx2t99_vector_cost): this.
14473         (vulcan_branch_cost): Rename to ...
14474         (thunderx2t99_branch_cost): This.
14475         (vulcan_tunings): Rename to ...
14476         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
14477         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
14479 2017-01-09  Martin Jambor  <mjambor@suse.cz>
14481         PR ipa/78365
14482         PR ipa/78599
14483         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
14484         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
14485         (propagate_vr_accross_jump_function): Use the above function for all
14486         value range computations for pass-through jump functions and type
14487         converasion from explicit value range values.
14488         (ipcp_propagate_stage): Do not attempt to deduce types of formal
14489         parameters from TYPE_ARG_TYPES.
14490         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
14491         (ipa_write_node_info): Stream type of the actual argument.
14492         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
14494 2017-01-09  Martin Liska  <mliska@suse.cz>
14496         PR pch/78970
14497         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
14498         (lookup_compiler): Do not show error message with have_E.
14500 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
14502         PR tree-optimization/78938
14503         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
14504         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
14505         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
14506         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
14507         fixes.
14509 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14511         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
14512         is const0_rtx.
14514 2017-01-09  Richard Biener  <rguenther@suse.de>
14516         PR tree-optimization/78997
14517         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
14518         name condition properly.
14520 2017-01-09  Richard Biener  <rguenther@suse.de>
14522         PR debug/79000
14523         * dwarf2out.c (is_cxx): New overload with context.
14524         (is_naming_typedef_decl): Use it.
14526 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14528         * invoke.texi (Option Summary): Correct spacing in option lists
14529         and add line breaks to fix over-long lines.
14531 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14533         PR middle-end/17660
14535         * extend.texi (Common Variable Attributes): Add xref to GCC
14536         Internals manual to explain mode attribute keywords.
14538 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
14540         PR other/16519
14541         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
14542         and Preprocessor Options.
14543         (Options for Linking): Document -pthread here....
14544         (RS/6000 and PowerPC Options): ...not here.
14545         (Solaris 2 Options): ...or here.
14546         * doc/cppopts.texi: Document -pthread.
14548 2017-01-08  Martin Sebor  <msebor@redhat.com>
14550         PR middle-end/77708
14551         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
14552         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
14553         New member functions.
14554         (format_directive): Used them.
14555         (add_bytes): Same.
14556         (pass_sprintf_length::handle_gimple_call): Same.
14557         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
14558         to avoid truncation for any argument.
14559         (extract_affine_mul): Same.
14560         * tree.c (get_file_function_name): Same.
14562 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14564         PR middle-end/77484
14565         * predict.def (PRED_INDIR_CALL): Set to 86.
14567 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14569         PR preprocessor/54124
14570         * doc/cppopts.texi: Reformat -d subtable to list the full name
14571         of the options.  Add cross-reference to the docs for the general
14572         compiler -d options.
14573         * doc/invoke.texi (Developer Options): Add cross-reference to the
14574         preprocessor-specific -d option documentation.
14576 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14578         PR preprocessor/13498
14579         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
14580         redudant material, and reflect new command-line options.
14581         (System Headers): Likewise.
14583 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14585         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
14586         -isystem, and -idirafter.  Copy-edit.
14587         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
14588         default for -ftrack-macro-expansion.  Delete obsolete and
14589         badly-formatted implementation details about -fdebug-cpp output.
14590         * doc/cppwarnopts.texi: Copy-edit.
14592 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
14594         PR c++/72803
14595         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
14596         that the transition from a max line width >= 1<<10 to narrower
14597         lines works correctly.
14599 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
14601         * doc/options.texi (PerFunction): New.
14602         * opt-functions.awk (switch_flags): Map both Optimization and
14603         PerFunction to CL_OPTIMIZATION.
14604         * opth-gen.awk: Test for PerFunction flag along with
14605         Optimization.
14606         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
14607         it only when the latter is present.  Skip those that don't in
14608         the hash function generator.
14609         * common.opt (fvar-tracking): Mark as PerFunction instead of
14610         Optimization.
14611         (fvar-tracking-assignments): Likewise.
14612         (fvar-tracking-assignments-toggle): Likewise.
14613         (fvar-tracking-uninit): Likewise.
14615 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
14617         PR translation/79018
14618         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
14619         the and store.
14621 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
14623         PR target/57583
14624         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
14625         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
14626         TARGET_LONG_JUMP_TABLE_OFFSETS.
14627         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
14628         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
14629         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
14630         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
14631         * config/m68k/m68k.md (tablejump expander): Likewise.
14632         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
14633         TARGET_LONG_JUMP_TABLE_OFFSETS.
14634         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
14635         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
14637 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
14638             David Holsgrove <david.holsgrove@xilinx.com>
14640         * common/config/microblaze/microblaze-common.c
14641         (TARGET_EXCEPT_UNWIND_INFO): Remove.
14642         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
14643         New prototype.
14644         * config/microblaze/microblaze.c (microblaze_must_save_register)
14645         (microblaze_expand_epilogue, microblaze_return_addr): Handle
14646         calls_eh_return.
14647         (microblaze_eh_return): New function.
14648         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
14649         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
14650         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
14651         * config/microblaze/microblaze.md (eh_return): New pattern.
14653 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
14655         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
14656         GCC_DIAGNOSTIC_STRINGIFY): Define.
14658         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
14660 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14662         * config/arm/arm.md (<mcrr>): New.
14663         (<mrrc>): New.
14664         * config/arm/arm.c (arm_arch5te): New.
14665         (arm_option_override): Set arm_arch5te.
14666         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
14667         and mrrc2.
14668         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
14669         (arm_mcrr_qualifiers): ... this. New.
14670         (MRRC_QUALIFIERS): Define to...
14671         (arm_mrrc_qualifiers): ... this. New.
14672         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
14673         __arm_mrrc2): New.
14674         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
14675         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
14676         (MRRCI, mrrc, MRRC): New.
14677         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
14678         VUNSPEC_MRRC2): New.
14680 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14682         * config/arm/arm.md (<mcr>): New.
14683         (<mrc>): New.
14684         * config/arm/arm.c (arm_coproc_builtin_available): Add
14685         support for mcr, mrc, mcr2 and mrc2.
14686         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
14687         (arm_mcr_qualifiers): ... this. New.
14688         (MRC_QUALIFIERS): Define to ...
14689         (arm_mrc_qualifiers): ... this. New.
14690         (MCR_QUALIFIERS): Define to ...
14691         (arm_mcr_qualifiers): ... this. New.
14692         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
14693         __arm_mrc2): New.
14694         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
14695         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
14696         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
14697         VUNSPEC_MRC2): New.
14699 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14701         * config/arm/arm.md (*ldc): New.
14702         (*stc): New.
14703         (<ldc>): New.
14704         (<stc>): New.
14705         * config/arm/arm.c (arm_coproc_builtin_available): Add
14706         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
14707         (arm_coproc_ldc_stc_legitimate_address): New.
14708         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
14709         'qualifier_const_pointer'.
14710         (LDC_QUALIFIERS): Define to...
14711         (arm_ldc_qualifiers): ... this. New.
14712         (STC_QUALIFIERS): Define to...
14713         (arm_stc_qualifiers): ... this. New.
14714         * config/arm/arm-protos.h
14715         (arm_coproc_ldc_stc_legitimate_address): New.
14716         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
14717         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
14718         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
14719         stc2, stcl, stc2l): New.
14720         * config/arm/constraints.md (Uz): New.
14721         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
14722         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
14723         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
14724         VUNSPEC_STC2L): New.
14726 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14728         * config/arm/arm.md (<cdp>): New.
14729         * config/arm/arm.c (neon_const_bounds): Rename this ...
14730         (arm_const_bounds): ... this.
14731         (arm_coproc_builtin_available): New.
14732         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
14733         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
14734         (CDP_QUALIFIERS): Define to...
14735         (arm_cdp_qualifiers): ... this. New.
14736         (void_UP): Define.
14737         (arm_expand_builtin_args): Add case for 6 arguments.
14738         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
14739         (arm_const_bounds): ... this.
14740         (arm_coproc_builtin_available): New.
14741         * config/arm/arm_acle.h (__arm_cdp): New.
14742         (__arm_cdp2): New.
14743         * config/arm/arm_acle_builtins.def (cdp): New.
14744         (cdp2): New.
14745         * config/arm/iterators.md (CDPI,CDP,cdp): New.
14746         * config/arm/neon.md: Rename all 'neon_const_bounds' to
14747         'arm_const_bounds'.
14748         * config/arm/types.md (coproc): New.
14749         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
14750         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
14751         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
14752         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
14754 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14756         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
14757         (UBINOP_QUALIFIERS): New.
14758         (si_UP): Define.
14759         (acle_builtin_data): New. Change comment.
14760         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
14761         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
14762         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
14763         arm_acle_builtins.def.
14764         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
14765         (arm_init_acle_builtins): New.
14766         (CRC32_BUILTIN): Remove.
14767         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
14768         crc32cb, crc32ch and crc32cw.
14769         (arm_init_crc32_builtins): Remove.
14770         (arm_init_builtins): Use arm_init_acle_builtins rather
14771         than arm_init_crc32_builtins.
14772         (arm_expand_acle_builtin): New.
14773         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
14774         * config/arm/arm_acle_builtins.def: New.
14776 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
14778         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
14779         (arm_builtin_datum): ... this.
14780         (arm_init_neon_builtin): Rename to ...
14781         (arm_init_builtin): ... this. Add a new parameters PREFIX
14782         and USE_SIG_IN_NAME.
14783         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
14784         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
14785         'arm_builtin_datum'.
14786         (arm_init_vfp_builtins): Likewise.
14787         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
14788         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
14789         (arm_expand_neon_args): Rename to ...
14790         (arm_expand_builtin_args): ... this. Rename builtin_arg
14791         enum values and differentiate between ARG_BUILTIN_MEMORY
14792         and ARG_BUILTIN_NEON_MEMORY.
14793         (arm_expand_neon_builtin_1): Rename to ...
14794         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
14795         values, arm_expand_builtin_args and add bool parameter NEON.
14796         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
14797         (arm_expand_vfp_builtin): Likewise.
14798         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
14800 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
14802         PR middle-end/77484
14803         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
14804         * predict.c (tree_estimate_probability_bb): Reverse direction of
14805         polymorphic call predictor.
14807 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
14809         * passes.c (execute_one_pass): Split out pass-skipping logic into...
14810         (determine_pass_name_match): ...this new function and...
14811         (should_skip_pass_p): ...this new function.
14813 2017-01-06  Nathan Sidwell  <nathan@acm.org>
14815         * ipa-visibility.c (function_and_variable_visibility): Reformat
14816         comments and long lines.  Remove extrneous if.
14817         * symtab.c (symtab_node::make_decl_local): Fix code format.
14818         (symtab_node::set_section_for_node): Fix comment typo.
14820 2017-01-06  Martin Liska  <mliska@suse.cz>
14822         PR bootstrap/79003
14823         * lra-constraints.c: Rename invariant to lra_invariant.
14824         * predict.c (set_even_probabilities): Initialize e to NULL.
14826 2017-01-05  Martin Sebor  <msebor@redhat.com>
14828         PR tree-optimization/78910
14829         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
14830         (format_integer): Correct off-by-one error in the handling
14831         of precision with negative numbers in signed conversions..
14833 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14835         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
14837 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
14839         PR tree-optimization/71016
14840         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
14841         factor_out_conditional_conversion.  Formatting fix.
14842         (factor_out_conditional_conversion): Add cond_stmt argument.
14843         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
14844         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
14845         Formatting fix.
14847 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
14849         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
14850         read-rtl-function.o, and selftest-rtl.o.
14851         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
14852         (selftest::aarch64_test_loading_full_dump): New function.
14853         (selftest::aarch64_run_selftests): New function.
14854         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
14855         selftest::aarch64_run_selftests.
14856         * config/i386/i386.c
14857         (selftest::ix86_test_loading_dump_fragment_1): New function.
14858         (selftest::ix86_test_loading_call_insn): New function.
14859         (selftest::ix86_test_loading_full_dump): New function.
14860         (selftest::ix86_test_loading_unspec): New function.
14861         (selftest::ix86_run_selftests): Call the new functions.
14862         * emit-rtl.c (maybe_set_max_label_num): New function.
14863         * emit-rtl.h (maybe_set_max_label_num): New decl.
14864         * function.c (instantiate_decls): Guard call to
14865         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
14866         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
14867         "static".
14868         * gensupport.c (gen_reader::gen_reader): Pass "false"
14869         for new "compact" param of rtx_reader.
14870         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
14871         rather than an empty string for NULL strings.
14872         * read-md.c: Potentially include config.h rather than bconfig.h.
14873         Wrap include of errors.h with #ifdef GENERATOR_FILE.
14874         (have_error): New global, copied from errors.c.
14875         (md_reader::read_name): Rename to...
14876         (md_reader::read_name_1): ...this, adding "out_loc" param,
14877         and converting "missing name or number" to returning false, rather
14878         than failing.
14879         (md_reader::read_name): Reimplement in terms of read_name_1.
14880         (md_reader::read_name_or_nil): New function.
14881         (md_reader::read_string): Handle "(nil)" by returning NULL.
14882         (md_reader::md_reader): Add new param "compact".
14883         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
14884         (md_reader::read_file): New method.
14885         * read-md.h (md_reader::md_reader): Add new param "compact".
14886         (md_reader::read_file): New method.
14887         (md_reader::is_compact): New accessor.
14888         (md_reader::read_name): Convert return type from void to file_location.
14889         (md_reader::read_name_or_nil): New decl.
14890         (md_reader::read_name_1): New decl.
14891         (md_reader::m_compact): New field.
14892         (noop_reader::noop_reader): Pass "false" for new "compact" param
14893         of rtx_reader.
14894         (rtx_reader::rtx_reader): Add new "compact" param.
14895         (rtx_reader::read_rtx_operand): Make virtual and convert return
14896         type from void to rtx.
14897         (rtx_reader::read_until): New decl.
14898         (rtx_reader::handle_any_trailing_information): New virtual function.
14899         (rtx_reader::postprocess): New virtual function.
14900         (rtx_reader::finalize_string): New virtual function.
14901         (rtx_reader::m_in_call_function_usage): New field.
14902         (rtx_reader::m_reuse_rtx_by_id): New field.
14903         * read-rtl-function.c: New file.
14904         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
14905         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
14906         (selftest::verify_three_block_rtl_cfg): New decl.
14907         * read-rtl-function.h: New file.
14908         * read-rtl.c: Potentially include config.h rather than bconfig.h.
14909         For host, include function.h, memmodel.h, and emit-rtl.h.
14910         (one_time_initialization): New function.
14911         (struct compact_insn_name): New struct.
14912         (compact_insn_names): New array.
14913         (find_code): Handle insn codes in compact dumps.
14914         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
14915         (bind_subst_iter_and_attr): Likewise.
14916         (add_condition_to_string): Likewise.
14917         (add_condition_to_rtx): Likewise.
14918         (apply_attribute_uses): Likewise.
14919         (add_current_iterators): Likewise.
14920         (apply_iterators): Likewise.
14921         (initialize_iterators): Guard usage of apply_subst_iterator with
14922         #ifdef GENERATOR_FILE.
14923         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
14924         (md_reader::read_mapping): Likewise.
14925         (add_define_attr_for_define_subst): Likewise.
14926         (add_define_subst_attr): Likewise.
14927         (read_subst_mapping): Likewise.
14928         (check_code_iterator): Likewise.
14929         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
14930         logic to...
14931         (one_time_initialization): New function.
14932         (rtx_reader::read_until): New method.
14933         (read_flags): New function.
14934         (parse_reg_note_name): New function.
14935         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
14936         Handle reuse_rtx ids.
14937         Wrap iterator lookup within #ifdef GENERATOR_FILE.
14938         Add parsing support for RTL dumps, mirroring the special-cases in
14939         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
14940         values, and calling handle_any_trailing_information.
14941         (rtx_reader::read_rtx_operand): Convert return type from void
14942         to rtx, returning return_rtx.  Handle case 'e'.  Call
14943         finalize_string on XSTR and XTMPL fields.
14944         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
14945          "(nil)" values were omitted.  Call the postprocess vfunc on the
14946         return_rtx.
14947         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
14948         class ctor.  Initialize m_in_call_function_usage.  Call
14949         one_time_initialization.
14950         * rtl-tests.c (selftest::test_uncond_jump): Call
14951         set_new_first_and_last_insn.
14952         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
14953         * selftest-rtl.c: New file.
14954         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
14955         (selftest::get_insn_by_uid): New decl.
14956         * selftest-run-tests.c (selftest::run_tests): Call
14957         read_rtl_function_c_tests.
14958         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
14959         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
14960         dumps.
14962 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
14964         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
14965         operands in a special way.  Assert that pos+len <= mode precision.
14967 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
14969         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
14970         3 argument Alias with unlimited for the negative form.
14971         (fno-vect-cost-model): Removed.
14973 2017-01-05  Martin Liska  <mliska@suse.cz>
14975         * hsa-gen.c (gen_hsa_divmod): New function.
14976         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
14978 2017-01-05  Martin Liska  <mliska@suse.cz>
14980         PR pch/78970
14981         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
14982         header.
14984 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14986         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
14987         small constant length operands.
14989 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14991         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
14992         between loop iterations.
14994 2017-01-05  Martin Liska  <mliska@suse.cz>
14996         PR sanitizer/78815
14997         * gimplify.c (gimplify_decl_expr): Compare to
14998         asan_poisoned_variables instread of checking flags.
14999         (gimplify_target_expr): Likewise.
15000         (gimplify_expr): Likewise.
15001         (gimplify_function_tree): Conditionally initialize
15002         asan_poisoned_variables.
15004 2017-01-04  Jeff Law  <law@redhat.com>
15006         PR tree-optimizatin/78812
15007         * rtl.h (contains_mem_rtx_p): Prototype.
15008         * ifcvt.c (containts_mem_rtx_p): Move from here to...
15009         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
15010         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
15011         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
15012         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
15014 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
15016         * input.c (assert_char_at_range): Default-initialize actual_range.
15018 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
15020         * df-scan.c (df_ref_create_structure): Make regno unsigned,
15021         to match the caller.
15023 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
15025         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
15026         insns after final jump in test to emit dummy move.
15028 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
15030         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
15031         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
15033 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
15035         * multiple_target.c (create_dispatcher_calls): Init e_next.
15036         * tree-ssa-loop-split.c (split_loop): Init border.
15037         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
15038         scalar_type.
15040 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15042         PR target/71977
15043         PR target/70568
15044         PR target/78823
15045         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
15046         (altivec_register_operand): Do not return true if the operand
15047         contains a SUBREG mixing SImode and SFmode.
15048         (vsx_register_operand): Likewise.
15049         (vsx_reg_sfsubreg_ok): New predicate.
15050         (vfloat_operand): Do not return true if the operand contains a
15051         SUBREG mixing SImode and SFmode.
15052         (vint_operand): Likewise.
15053         (vlogical_operand): Likewise.
15054         (gpc_reg_operand): Likewise.
15055         (int_reg_operand): Likewise.
15056         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
15057         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
15058         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
15059         SImode and SFmode.
15060         (rs6000_emit_move_si_sf_subreg): New helper function.
15061         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
15062         fixup SUBREGs involving SImode and SFmode.
15063         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
15064         numbers for the new peephole2 optimization.
15065         (peephole2 for SFmode unions): New peephole2 to optimize cases in
15066         the GLIBC math library that do AND/IOR/XOR operations on single
15067         precision floating point.
15068         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
15069         target macros to say whether we need to avoid SUBREGs mixing
15070         SImode and SFmode.
15071         (TARGET_ALLOW_SF_SUBREG): Likewise.
15072         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
15073         (UNSPEC_SI_FROM_SF): Likewise.
15074         (iorxor): Change spacing.
15075         (and_ior_xor): New iterator for AND, IOR, and XOR.
15076         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
15077         (movdi_from_sf_zero_ext): Likewise.
15078         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
15079         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
15080         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
15081         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
15082         (fms<mode>4): Likewise.
15083         (fnma<mode>4): Likewise.
15084         (fnms<mode>4): Likewise.
15085         (nfma<mode>4): Likewise.
15086         (nfms<mode>4): Likewise.
15088 2017-01-04  Marek Polacek  <polacek@redhat.com>
15090         PR c++/64767
15091         * doc/invoke.texi: Document -Wpointer-compare.
15093 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
15095         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
15096         RejectNegative.
15098         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
15099         descriptions for -gdwarf-5 and emit them as uleb128 instead of
15100         2-byte data.
15102 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15104         PR target/78056
15105         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
15106         documentation of the powerpc_popcntb_ok attribute.
15107         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15108         code to issue warning messages if a requested CPU configuration is
15109         not supported by the binary (assembler and loader) toolchain.
15110         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
15111         made to define a built-in function that has been disabled.
15112         (paired_init_builtins): Add assertion to prevent ICE if attempt is
15113         made to define a built-in function that has been disabled.
15114         (altivec_init_builtins): Add comment explaining why definition
15115         of the DST built-in functions is not preceded by an assertion
15116         check.  Add assertions to prevent ICE if attempts are made to
15117         define an altivec predicate or an abs* built-in function that has
15118         been disabled.
15119         (htm_init_builtins): Add comment explaining why definition of the
15120         htm built-in functions is not preceded by an assertion check.
15122 2017-01-04  Jeff Law  <law@redhat.com>
15124         PR tree-optimizatin/67955
15125         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
15126         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
15127         the points-to solution does not include pt_null.  Use DECL_PT_UID
15128         unconditionally.
15130 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
15132         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
15133         Use gen_int_mode instead of gen_lopwart for const_int operands.
15135 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
15137         PR tree-optimization/71563
15138         * match.pd: Simplify X << Y into X if Y is known to be 0 or
15139         out of range value - has low bits known to be zero.
15141 2017-01-04  Alan Modra  <amodra@gmail.com>
15143         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
15144         * configure: Regenerate.
15145         * config.in: Regenerate.
15147 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
15149         PR bootstrap/77569
15150         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
15151         a substring of the message, but strcmp with the whole message.  Ifdef
15152         ENABLE_NLS, translate the message first using dgettext.
15154 2017-01-03  Jeff Law  <law@redhat.com>
15156         PR tree-optimizatin/78856
15157         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
15158         (mark_threaded_blocks): Remove code to truncate thread paths that
15159         cross multiple loop headers.  Instead invalidate the cached loop
15160         iteration information and handle case of a thread path walking
15161         into an irreducible region.
15163 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15165         PR target/78900
15166         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
15167         assertions.  Add support for doing the signbit if the IEEE 128-bit
15168         floating point value is in a GPR.
15169         * config/rs6000/rs6000.md (Fsignbit): Delete.
15170         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
15171         Update the length attribute if the value is in a GPR.
15172         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
15173         the sign or zero extension instruction, since the value is always 0/1.
15174         (signbit<mode>2_dm2): Delete using <Fsignbit>.
15176         PR target/78953
15177         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
15178         extracting SImode to a GPR register so that we can generate a
15179         store, limit the vector to be in a traditional Altivec register
15180         for the vextuwrx instruction.
15182 2017-01-03  Ian Lance Taylor  <iant@google.com>
15184         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
15186 2017-01-03  Martin Sebor  <msebor@redhat.com>
15188         PR tree-optimization/78696
15189         * gimple-ssa-sprintf.c (format_floating): Correct handling of
15190         precision.  Use MPFR for %f for greater fidelity.  Correct handling
15191         of %g.
15192         (pass_sprintf_length::compute_format_length): Set width and precision
15193         specified by asrerisk to void_node for vararg functions.
15194         (try_substitute_return_value): Adjust dump output.
15196 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
15198         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
15200 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15202         * doc/invoke.texi (SPARC options): Document -mlra as the default.
15203         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
15204         -mlra/-mno-lra was passed to the compiler.
15206 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
15208         PR rtl-optimization/65618
15209         * emit-rtl.c (try_split): Move initialization of "before" and
15210         "after" to just before the call to emit_insn_after_setloc.
15212 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
15214         * doc/md.texi (Standard Names): Remove reference to Java frontend.
15216 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
15218         * dwarf2out.c (gen_enumeration_type_die): When
15219         -gno-strict-dwarf, add a DW_AT_encoding attribute.
15221 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
15223         PR tree-optimization/78965
15224         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
15225         Change first argument from const call_info & to call_info &.  For %n
15226         set info.nowrite to false.
15228         PR middle-end/78901
15229         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
15230         possibly throwing calls.
15232         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
15233         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
15234         and fns handling, rather than in a separate case SSA_NAME.
15236 2017-01-02  Jeff Law  <law@redhat.com>
15238         * config/darwin-driver.c (darwin_driver_init): Const-correctness
15239         fixes for first_period and second_period variables.
15241 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
15243         PR target/78967
15244         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
15245         (*insvqi_1): New insn pattern.
15246         (*insvqi_1_mem_rex64): Ditto.
15247         (*insvqi_2): Ditto.
15248         (*insvqi_3): Rename from *insvqi.
15250         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
15252 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
15254         * doc/cfg.texi (Edges): Remove reference to Java.
15255         (Maintaining the CFG): Ditto.
15257 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
15259         PR middle-end/77674
15260         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
15261         transparent aliases.
15263 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
15265         PR middle-end/77484
15266         * predict.def (PRED_CALL): Update hitrate.
15267         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
15268         * predict.c (tree_estimate_probability_bb): Split CALL predictor
15269         into direct/indirect/polymorphic variants.
15271 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
15273         Update copyright years.
15275         * gcc.c (process_command): Update copyright notice dates.
15276         * gcov-dump.c (print_version): Ditto.
15277         * gcov.c (print_version): Ditto.
15278         * gcov-tool.c (print_version): Ditto.
15279         * gengtype.c (create_file): Ditto.
15280         * doc/cpp.texi: Bump @copying's copyright year.
15281         * doc/cppinternals.texi: Ditto.
15282         * doc/gcc.texi: Ditto.
15283         * doc/gccint.texi: Ditto.
15284         * doc/gcov.texi: Ditto.
15285         * doc/install.texi: Ditto.
15286         * doc/invoke.texi: Ditto.
15288 Copyright (C) 2017 Free Software Foundation, Inc.
15290 Copying and distribution of this file, with or without modification,
15291 are permitted in any medium without royalty provided the copyright
15292 notice and this notice are preserved.